,nl,code
0,define the method i with an argument self.,def i ( self ) :
1,"if out has an 'isatty' argument and return value of the function out.isatty is true,","if hasattr ( out , 'isatty' ) and out . isatty ( ) :"
2,"if ValueError exception is caught,",except ValueError :
3,"raise an ValueError exception with an argument string ""Base36 conversion input too large."".","raise ValueError ( ""Base36 conversion input too large."" )"
4,return is empty dictionary.,return { }
5,"get the value under the key 'database' of the options dictionary, use it as a index to get an element from connections, substitute it for connection.",connection = connections [ options [ 'database' ] ]
6,"if out_log is true,",if out_log :
7,substitute model._meta.app_label for app.,app = model . _meta . app_label
8,define the method __nonzero__ with an argument self.,def __nonzero__ ( self ) :
9,from django.db.migrations.loader import MigrationLoader into default name space.,from django . db . migrations . loader import MigrationLoader
10,"call the method gettext_module.find with 3 arguments: string 'django', path and list with an element: result of the function,","if gettext_module . find ( 'django' , path , [ to_locale ( lang_code ) ] ) is not None :"
11,from django.conf import settings into default name space.,from django . conf import settings
12,define the method as_bytes with arguments self and unixfrom set to boolean False.,"def as_bytes ( self , unixfrom = False ) :"
13,"define the method add with 5 arguments, self class instance, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def add ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
14,"HITS and MISSES are integer 0 and 1, respectively.","HITS , MISSES = 0 , 1"
15,"if key if contained in value under the DEFAULT_CACHE_ALIAS key of caches dictionary, return boolean True, otherwise return False.",return key in caches [ DEFAULT_CACHE_ALIAS ]
16,substitute asvar for self.asvar.,self . asvar = asvar
17,"raise an TypeError with an argument string ""update expected at most 1 arguments, got %d"" formated with length of args.","raise TypeError ( ""update expected at most 1 arguments, got %d"" % len ( args ) )"
18,define the method getlist with 2 arguments: self and key.,"def getlist ( self , key ) :"
19,"call the function _add_doc with 2 arguments: reraise and string """"""Reraise an exception."""""".","_add_doc ( reraise , """"""Reraise an exception."""""" )"
20,if encoding does not exists substitute it for settings.DEFAULT_CHARSET.,encoding = encoding or settings . DEFAULT_CHARSET
21,"call the method form.add_initial_prefix with an argument self.auto_id, substitute the result for self.html_initial_id.",self . html_initial_id = form . add_initial_prefix ( self . auto_id )
22,define the method start_serialization with an argument self.,def start_serialization ( self ) :
23,"if result is not None,",if result is not None :
24,convert host to lowercase.,host = host . lower ( )
25,"for every var in self.vars,",for var in self . vars :
26,call the method parser.skip_past with an argument string 'endcomment'.,parser . skip_past ( 'endcomment' )
27,call the method parser.delete_first_token.,parser . delete_first_token ( )
28,"if model_identifier is false,",if not model_identifier :
29,"get the type of form object, return an instance of resulting class created with 3 arguments: class_name, tuple with an element form,","return type ( form ) ( class_name , ( form , ) , form_class_attrs )"
30,"__all__ is a list containing next strings, 'CheckMessage', 'Debug', 'Info', 'Warning', 'Error', 'Critical',","__all__ = [ 'CheckMessage' , 'Debug' , 'Info' , 'Warning' , 'Error' , 'Critical' , 'DEBUG' , 'INFO' , 'WARNING' , 'ERROR' , 'CRITICAL' , 'register' , 'run_checks' , 'tag_exists' , 'Tags' , ]"
31,substitute params for self.params.,self . params = params
32,"' ' for 's', 'x' for 'S', 'x' for 'W', '!' for 'W' and None for 'Z'. derive the class Choice from list base class.",class Choice ( list ) :
33,return boolean False.,return False
34,return boolean True.,return True
35,return the result. define the method id_for_label with 2 arguments: self and id_.,"def id_for_label ( self , id_ ) :"
36,"call the method parser.add_argument with 4 arguments: string 'args', metavar set to string 'fixture', nargs set to '+',","parser . add_argument ( 'args' , metavar = 'fixture' , nargs = '+' , help = 'Fixture labels.' )"
37,call the method self.setFeature with 2 arguments: handler.feature_external_pes and boolean False.,"self . setFeature ( handler . feature_external_pes , False )"
38,from django.utils.safestring import mark_safe into default name space.,from django . utils . safestring import mark_safe
39,"if not,",else :
40,"call the function warnings.warn with 2 arguments: string '""requires_model_validation"" is deprecated '","warnings . warn ( '""requires_model_validation"" is deprecated ' 'in favor of ""requires_system_checks"".' , RemovedInDjango19Warning )"
41,return nothing.,return
42,"if NotImplementedError exception is caught,",except NotImplementedError :
43,"if current_len is smaller than or equal to length,",if current_len <= length :
44,"otherwise if msg and visible_issue_count are true,",elif msg and visible_issue_count :
45,append value to self.dicts list.,self . dicts . append ( value )
46,"if confirm equals string 'yes',",if confirm == 'yes' :
47,"if kwarg_format is true,",if kwarg_format :
48,"format string normal_row with an dictionary containing 6 entries: return value of the function force_text with an argument bf_errors,","output . append ( normal_row % { 'errors' : force_text ( bf_errors ) , 'label' : force_text ( label ) , 'field' : six . text_type ( bf ) , 'help_text' : help_text , 'html_class_attr' : html_class_attr , 'field_name' : bf . html_name , } )"
49,"if self.activated is boolean False,",if not self . activated :
50,do nothing.,pass
51,content_length is None.,content_length = None
52,define the method __init__ with 2 arguments: self and token.,"def __init__ ( self , tokens ) :"
53,"split locale by '_', append the first element of the result to locales.",locales . append ( locale . split ( '_' ) [ 0 ] )
54,substitute var for self.var.,self . var = var
55,define the method __iter__ with an argument self.,def __iter__ ( self ) :
56,""" * The database isn't running or isn't configured correctly.\n * At least one of the expected database tables doesn't exist.\n"" "" * The SQL was invalid.\nHint: Look at the output of 'django-admin.py sqlflush'. That's the SQL this command wasn't able to run.\n"" ""The full error: %s"", where '%s' is replaced by value under the 'NAME' key of the connection.settings_dict dictionary and e. call the function six.reraise with 3 arguments: CommandError, CommandError created with argument new_msg,","six . reraise ( CommandError , CommandError ( new_msg ) , sys . exc_info ( ) [ 2 ] )"
57,"return the result. if UnicodeDecodeError exception is caught,",except UnicodeDecodeError :
58,"if value under the 'primary_key' key of the dictionary contained under the column_name key of the dictionary indexes is true,",if indexes [ column_name ] [ 'primary_key' ] :
59,"define the function build_request_repr with arguments: request, path_override set to None, GET_override set to None,","def build_request_repr ( request , path_override = None , GET_override = None , POST_override = None , COOKIES_override = None , META_override = None ) :"
60,"evaluate the method type(self).__bool__ with argument self, return the result.",return type ( self ) . __bool__ ( self )
61,"call the form.is_valid method, if it evaluates to false,",if not form . is_valid ( ) :
62,import module sys.,import sys
63,"increment s_len by integer 1,",s_len += 1
64,call the function get_urlconf with an argument urlconf.,urlconf = get_urlconf ( )
65,from email.mime.message import MIMEMessage into default name space.,from email . mime . message import MIMEMessage
66,"return a string '<%s: %r>', format it with __name__ field of the self class and repr_attr.","return '<%s: %r>' % ( type ( self ) . __name__ , repr_attr )"
67,"if not,",else :
68,"default set to DEFAULT_DB_ALIAS and help as a string 'Nominates a specific database to load fixtures into. Defaults to the ""default"" database.' call the method parser.add_argument with 5 arguments: string '--app', action as a string 'store', dest as a string 'app_label',","parser . add_argument ( '--app' , action = 'store' , dest = 'app_label' , default = None , help = 'Only look for fixtures in the specified app.' )"
69,"__version__ is a string ""1.6.1"".","__version__ = ""1.6.1"""
70,"call the method render from the base class of the class FileInput, called with 3 arguments: name, None and attrs as attrs.","return super ( FileInput , self ) . render ( name , None , attrs = attrs )"
71,"convert priority into a floating point integer, substitute it for priority.",priority = float ( priority )
72,define the function resolve with arguments path and urlconf set to None.,"def resolve ( path , urlconf = None ) :"
73,derive the class File from the FileProxyMixin base class.,class File ( FileProxyMixin ) :
74,"if not,",else :
75,"__author__ is a string ""Benjamin Peterson "".","__author__ = ""Benjamin Peterson """
76,call the method __init__ with an argument name form the base class of the class MovedAttribute.,"super ( MovedAttribute , self ) . __init__ ( name )"
77,"if use_natural_keys is true,",if use_natural_keys :
78,define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
79,"if not,",else :
80,define the method __repr__ with an argument self.,def __repr__ ( self ) :
81,import module warnings.,import warnings
82,import module threading.,import threading
83,"return an empty string,",return ''
84,"if attrs is None,",if attrs is None :
85,return an empty string.,return ''
86,raise an ValueError exception with an argument e.,raise ValueError ( e )
87,"call the function urlquote with 2 arguments value and unpacked dictionary kwargs, return the result.","return urlquote ( value , ** kwargs )"
88,"substitute the '%s' with table and 3 elements of a list: b64encoded, exp and key, respectively. if DatabaseError exception is caught,",except DatabaseError :
89,define the function do_filter with 2 arguments: parser and token.,"def do_filter ( parser , token ) :"
90,fp is a instance of a class six.BytesIO.,fp = six . BytesIO ( )
91,"try,",try :
92,"register.tag decorator,",@ register . tag
93,"call the method return self.format with an argument string 'D, j M Y H:i:s O', return the result.","return self . format ( 'D, j M Y H:i:s O' )"
94,derive the class Form from the base classes DeclarativeFieldsMetaclass and BaseForm.,"class Form ( six . with_metaclass ( DeclarativeFieldsMetaclass , BaseForm ) ) :"
95,"substitute it for value of dictionary response under the key 'Vary'. define function has_vary_header, with response and header_query as arguments.","def has_vary_header ( response , header_query ) :"
96,"extension_map is a dictioanry with 6 initial elntries: TarArchive for '.tar', TarArchive for '.tar.bz2', TarArchive for '.tar.gz',","extension_map = { '.tar' : TarArchive , '.tar.bz2' : TarArchive , '.tar.gz' : TarArchive , '.tgz' : TarArchive , '.tz2' : TarArchive , '.zip' : ZipArchive , }"
97,"for every app_config in return value of the method apps.get_app_configs,",for app_config in apps . get_app_configs ( ) :
98,"while x is greater than zero,",while x > 0 :
99,"if length of name is greater than integer 255,",if len ( name ) > 255 :
100,"bitwise shift integer 1 to the left by 31 spaces, substitute integer 1 from the result, convert the result to a integer, substitute it for MAXSIZE.",MAXSIZE = int ( ( 1 << 31 ) - 1 )
101,add params to extra_params dictionary.,extra_params . update ( params )
102,"self.field.choice_cache is a list containing results of the method self.choice called with an argument obj,",self . field . choice_cache = [ self . choice ( obj ) for obj in self . queryset . all ( ) ]
103,update defaults dictionary with kwargs.,defaults . update ( kwargs )
104,"matches is boolean True,",matches = True
105,derive the class EmailMultiAlternatives from the EmailMessage base class.,class EmailMultiAlternatives ( EmailMessage ) :
106,"call the function get_commands, substitute it for commands.",commands = get_commands ( )
107,define the method get_connection with arguments self and fail_silently set to boolean False.,"def get_connection ( self , fail_silently = False ) :"
108,"if not,",else :
109,from functools import update_wrapper.,from functools import update_wrapper
110,get is a string ''.,get = ''
111,"if not,",else :
112,"from django.template.base import Variable, Library and VariableDoesNotExist into default name space.","from django . template . base import Variable , Library , VariableDoesNotExist"
113,define the function reset_translation.,def reset_translations ( ) :
114,"try,",try :
115,define the method regex with an argument self.,def regex ( self ) :
116,return settings.TEMPLATE_STRING_IF_INVALID.,return settings . TEMPLATE_STRING_IF_INVALID
117,"call the method tag.groups, substitute the result for closing_tag, tagname and self_closing, respectively.","closing_tag , tagname , self_closing = tag . groups ( )"
118,return settings.LANGUAGE_CODE.,return settings . LANGUAGE_CODE
119,from django.template.base import TemplateDoesNotExist into default name space.,from django . template . base import TemplateDoesNotExist
120,"get the value under the key key of the self.find_template_cache dictionary, substitute it for result.",result = self . find_template_cache [ key ]
121,"result of the function force_text with an argument option_label, return the result. define the method render_options with 3 arguments: self, choices and selected_choices.","def render_options ( self , choices , selected_choices ) :"
122,derive the class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
123,"for every f in opts.local_fields that has an 'post_create_sql' attribute, append f to a list, substitute the resulting list for post_sql_fields.","post_sql_fields = [ f for f in opts . local_fields if hasattr ( f , 'post_create_sql' ) ]"
124,substitute self.max_value for the value under the 'max' key of the attrs dictionary.,attrs [ 'max' ] = self . max_value
125,"convert filename to lowercase, use the result as an argument for the call to the function os.path.splitext,","base , tail_ext = os . path . splitext ( filename . lower ( ) )"
126,define the method empty_variable with 2 arguments: self and token.,"def empty_variable ( self , token ) :"
127,raise an TypeError exception with an argument string 'Level not an integer or a valid string: %r' formated with level.,raise TypeError ( 'Level not an integer or a ' 'valid string: %r' % level )
128,"get the value under the self key of the context.render_context dictionary, substitute it for cycle_iter.",cycle_iter = context . render_context [ self ]
129,flush the output buffer of the self.stdout object.,self . stdout . flush ( )
130,derive the class SerializationError from the Exception base class.,class SerializationError ( Exception ) :
131,"call the BaseCache initialization method __init__ with 3 arguments self, list of arguments args and dictionary of arguments kwargs.","BaseCache . __init__ ( self , * args , ** kwargs )"
132,"define the method render with 4 arguments: self, name, value and attrs set to None.","def render ( self , name , value , attrs = None ) :"
133,"assign it to value under the string "".moves.urllib_robotparser"" appended to __name__ key of the sys.modules dictionary, and to value under the string "".moves.urllib.robotparser"" appended to __name__ key of the sys.modules dictionary. derive class Module_six_moves_urllib from the types.ModuleType base class.",class Module_six_moves_urllib ( types . ModuleType ) :
134,"substitute '%s' in string '%s %s' with the elements of value converted into a tuple, substitute the result for value.",value = '%s %s' % tuple ( value )
135,delete Trans.,del Trans
136,"and integer 60, substitute the result for timezone. divide timezone by integer 60, substitute the quotient of the division for hour and reminder for minute.","hour , minute = divmod ( timezone , 60 )"
137,"call the method value.encode with an argument self._charset, use the result as an argument for the call to the bytes function,",return bytes ( value . encode ( self . _charset ) )
138,"break from the loop execution,",break
139,"convert tagname to lowercase, substitute it for tagname.",tagname = tagname . lower ( )
140,"if self.is_bound is false,",if not self . is_bound :
141,"if not,",else :
142,"call the get_script_name function with environ as argument, substitute the result for script_name.",script_name = get_script_name ( environ )
143,"if domain equals a string 'djangojs' and file_ext is contained in command.extensions,",if domain == 'djangojs' and file_ext in command . extensions :
144,return value.,return value
145,"with an argument i, append the result to a list, substitute the resulting list for forms. return forms.",return forms
146,use the global variable _serializers.,global _serializers
147,substitute ending for self.ending.,self . ending = ending
148,"get value under the BLOCK_CONTEXT_KEY key of context.render_context dictionary, substitute it for block_context.",block_context = context . render_context . get ( BLOCK_CONTEXT_KEY )
149,derive the class VariableDoesNotExist form the base class Exception.,class VariableDoesNotExist ( Exception ) :
150,"if fp is an instance of file and data is an instance of unicode and fp.encoding is not None,","if ( isinstance ( fp , file ) and isinstance ( data , unicode ) and fp . encoding is not None ) :"
151,call the function _load_serializers.,_load_serializers ( )
152,define the method changed_data with an argument self.,def changed_data ( self ) :
153,"and ip_address_validator_map converted to a list, respectively. call the re.compile function with an argument raw string '^[\d,]+$', substitute the result for comma_separated_int_list_re.","comma_separated_int_list_re = re . compile ( '^[\d,]+$' )"
154,define the method __init__ with arguments: self and options set to None.,"def __init__ ( self , options = None ) :"
155,"if elt is an instance of NonCapture class,","if isinstance ( elt , NonCapture ) :"
156,append decimals to parts.,parts . append ( decimals )
157,"call the serializer function, call the dumps method on the result with an argument obj, substitute result for data.",data = serializer ( ) . dumps ( obj )
158,"evaluate the method self._cache.decr with key and negative delta as arguments, return the result.","return self . _cache . decr ( key , - delta )"
159,"substitute nodelist_true and nodelist_false for self.nodelist_true and self.nodelist_false, respectively.","self . nodelist_true , self . nodelist_false = nodelist_true , nodelist_false"
160,"for every label in labels,",for label in labels :
161,derive class InvalidCacheBackendError from the ImproperlyConfigured base class.,class InvalidCacheBackendError ( ImproperlyConfigured ) :
162,"if result is not None,",if result is not None :
163,"define the method __init__ with 6 arguments: self, name, old_mod, new_mod, old_attr set to None, new_attr set to None.","def __init__ ( self , name , old_mod , new_mod , old_attr = None , new_attr = None ) :"
164,status_code is an integer 405.,status_code = 405
165,self.second is None.,self . second = None
166,call the method f.save_form_data with 2 arguments: instance and value under the f.name key of cleaned_data dictionary.,"f . save_form_data ( instance , cleaned_data [ f . name ] )"
167,"get the 'value' attribute of the _urlconfs, if it exists return it, otherwise return defaults.","return getattr ( _urlconfs , ""value"" , default )"
168,"raise an exception of class NotImplementedError, with string 'subclasses of BaseCache must provide a get() method' as argument.",raise NotImplementedError ( 'subclasses of BaseCache must provide a get() method' )
169,substitute tempfile.gettempdir for gettempdir.,gettempdir = tempfile . gettempdir
170,define the method __init__ with 2 arguments: self and attrs set to None.,"def __init__ ( self , attrs = None ) :"
171,"paths is a list containing results of the function force_text called with an argument p, for every p in paths.",paths = [ force_text ( p ) for p in paths ]
172,from unittest import import everything.,from unittest import *
173,read chunk_size bytes from file and store it in data.,data = file . read ( chunk_size )
174,"for every dirpath, dirnames and locale_filenames in directory tree starting at the basedir directory.","for dirpath , dirnames , locale_filenames in os . walk ( basedir ) :"
175,"for every obj in result of the method self.queryset.all. for every choice in self.field.choice_cache,",for choice in self . field . choice_cache :
176,"if ValueError, TypeError or ValidationError exception is caught,","except ( ValueError , TypeError , ValidationError ) :"
177,"_meth_self is a string ""__self__"".","_meth_self = ""__self__"""
178,"append it to the string "" Target specific migration: "", use it as the argument for the call to the self.style.MIGRATE_LABEL method, call the self.stdout.write method with previous return value as an argument. if run_syncdb and executor.loader.unmigrated_apps is true,",if run_syncdb and executor . loader . unmigrated_apps :
179,raise an exception.,raise
180,define the method __getitem__ with 2 arguments: self and idx.,"def __getitem__ ( self , idx ) :"
181,self.cookies is an instance of SimpleCookie class created with self.cookies as an argument.,self . cookies = SimpleCookie ( self . cookies )
182,"define the method __init__ with 4 arguments: self, form, field and name.","def __init__ ( self , form , field , name ) :"
183,"call the method match.groupdict, substitute the result for kw.",kw = match . groupdict ( )
184,define the method __bool__ with an argument self.,def __bool__ ( self ) :
185,"if InvalidTemplateLibrary, renamed to e, exception is caught,",except InvalidTemplateLibrary as e :
186,define the function F with an argument i.,def F ( i ) :
187,"if 'media' is not contained in attrs,",if 'media' not in attrs :
188,"if LookupError exception is caught,",except LookupError :
189,"if initial is None,",if initial is None :
190,"from django.utils import iri_to_uri, force_bytes, force_text to the default name space.","from django . utils . encoding import iri_to_uri , force_bytes , force_text"
191,derive the class StreamingBuffer from the object base class.,class StreamingBuffer ( object ) :
192,"call the method e.encode with an argument string ""latin-1"".","return s . encode ( ""latin-1"" )"
193,"return boolean False,",return False
194,"for every code in tuple with 2 elements: lang_code and generic_lang_code,","for code in ( lang_code , generic_lang_code ) :"
195,"try,",try :
196,if language_code is not containsed in self._app_dict,if language_code not in self . _app_dict :
197,"subtract length of the ext from the integer 255, take first elements of the name list up to the previous result index,",name = name [ : 255 - len ( ext ) ] + ext
198,matches is boolean False.,matches = False
199,substitute value under idx key of dictionary d for d.,d = d [ idx ]
200,"call the function date with 2 arguments: result of the call to the function datetime.now with an argument tz set to tzinfo,","return date ( datetime . now ( tz = tzinfo ) , self . format_string )"
201,"if data is None,",if data is None :
202,match is None.,match = None
203,ModelFormMetaclass and BaseModelForm. do nothing.,pass
204,call the function handle_m2m with an argument relobj.,handle_m2m ( relobj )
205,"if i is smaller than result of the method self.initial_form_count and key 'instance' is not contained in kwargs,",if i < self . initial_form_count ( ) and 'instance' not in kwargs :
206,derive the class EscapeData from object base class.,class EscapeData ( object ) :
207,"get the value under the 'exclude' key of the options dictionary, substitute it for exclude.",exclude = options . get ( 'exclude' )
208,define the method data with an argument self.,def data ( self ) :
209,from IPython.frontend.terminal.ipapp import TerminalIPythonApp into default namespace.,from IPython . frontend . terminal . ipapp import TerminalIPythonApp
210,"request_repr is a string ""unavailable"".","request_repr = ""unavailable"""
211,return integer 1.,return 1
212,"value under the 'feed_url' key of the self.feed dictionary for 'href'. if value under the 'language' key of the self.feed dictionary is not None,",if self . feed [ 'language' ] is not None :
213,from threading import local into default name space.,from threading import local
214,"call the method token.split_contents, substitute the result for bits.",bits = token . split_contents ( )
215,from django.conf import settings into default name space.,from django . conf import settings
216,"call the function force_text with an argument s, strip the result of whitespaces from both ends,","s = force_text ( s ) . strip ( ) . replace ( ' ' , '_' )"
217,define the method indent with argument self and level.,"def indent ( self , level ) :"
218,"if root is true,",if root :
219,"raise a ValueError exception with an argument string ""JSON can't represent timezone-aware times."".","raise ValueError ( ""JSON can't represent timezone-aware times."" )"
220,yield key and value under the key key of self dictionary.,"yield key , self [ key ]"
221,"if type of result is ConvertingDict, ConvertingList or ConvertingTuple,","if type ( result ) in ( ConvertingDict , ConvertingList , ConvertingTuple ) :"
222,"initialize the object of a InMemoryUploadedFile class with arguments: file set to self.file, field_name set to self.field_name,","return InMemoryUploadedFile ( file = self . file , field_name = self . field_name , name = self . file_name , content_type = self . content_type , size = file_size , charset = self . charset , content_type_extra = self . content_type_extra )"
223,"call the function timedelta with an argument seconds set to negative _time.timezone, substitute the result for self.STDOFFSET.",self . STDOFFSET = timedelta ( seconds = - _time . timezone )
224,from django.conf import settings into default name space.,from django . conf import settings
225,"substitute format for self.format if format is true, if not self.format is None.",self . format = format if format else None
226,"call the file.__exit__ method on self with exc, value and tb as the arguments.","self . file . __exit__ ( exc , value , tb )"
227,substitute form.instance for obj.,obj = form . instance
228,"if can_fail is true,",if can_fail :
229,"call the function exec_ with an argument string """"""def reraise(tp, value, tb=None): raise tp, value, tb"""""".","exec_ ( """"""def reraise(tp, value, tb=None): raise tp, value, tb """""" )"
230,"define the function salted_hmac with 3 arguments: key_salt, value and secret set to None.","def salted_hmac ( key_salt , value , secret = None ) :"
231,"convert name to lower case if it equals to string 'from' or 'to,","if name . lower ( ) in ( 'from' , 'to' ) :"
232,"if ret equals to integer 0, return boolean True, otherwise return boolean False.",return ( ret == 0 )
233,"if first element of data_list is contained in self.empty_values,",if data_list [ 0 ] in self . empty_values :
234,substitute self.__class__ for response._handler_class.,response . _handler_class = self . __class__
235,call the method self.end_object with an argument obj.,self . end_object ( obj )
236,"substitute the '%s' with table and list containing key, respectively. return default.",return default
237,"if self.forms is true,",if self . forms :
238,from django.utils.safestring import mark_safe into default name space.,from django . utils . safestring import mark_safe
239,define the method upload_handlers with arguments: self and upload_handlers.,"def upload_handlers ( self , upload_handlers ) :"
240,"if AttributeError exception is caught,",except AttributeError :
241,substitute state for self.state.,self . state = state
242,"divide hits by a floating point number self.per_page, convert its ceiling value to an integer and substitute it for self._num_pages.",self . _num_pages = int ( ceil ( hits / float ( self . per_page ) ) )
243,from django.conf import settings into default name space.,from django . conf import settings
244,"define the method __init__ with arguments self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
245,"try,",try :
246,"define method set_cdata_mode, with self class instance and tag as the arguments.","def set_cdata_mode ( self , tag ) :"
247,"if instance is None,",if instance is None :
248,return boolean False.,return False
249,append tuple with 2 elements: migration.app_label and migration.name to replaces.,"replaces . append ( ( migration . app_label , migration . name ) )"
250,"if response has an attribute 'render' and response.render is a callable object,","if hasattr ( response , 'render' ) and callable ( response . render ) :"
251,"write string ""Performing system checks...\n\n"" to self.stdout stream.","self . stdout . write ( ""Performing system checks...\n\n"" )"
252,define the function extract with 2 arguments path and to_path set to empty string.,"def extract ( path , to_path = '' ) :"
253,"call the method self.build_attrs with an argument attrs, substitute the result for final_attrs.",final_attrs = self . build_attrs ( attrs )
254,"define the function construct_instance with 4 arguments: form, instance, fields set to None and exclude set to None.","def construct_instance ( form , instance , fields = None , exclude = None ) :"
255,"call the function run with 5 arguments: self.addr, self.port converted to an integer, handler, ipv6 set to self.use_ipv6, and threading set to threading.","run ( self . addr , int ( self . port ) , handler , ipv6 = self . use_ipv6 , threading = threading )"
256,"if self._done is true,",if self . _done :
257,dklen is None.,dklen = None
258,"if values has an attribute '__len__',","if not hasattr ( values , '__len__' ) :"
259,import module errno.,import errno
260,locales is a difference between the locales and exclude sets.,locales = set ( locales ) - set ( exclude )
261,"call the method self.fetch_command with an argument command, call the method run_from_argv on the result with an argument self.argv.",self . fetch_command ( subcommand ) . run_from_argv ( self . argv )
262,import module re.,import re
263,call the self.setup_environ method.,self . setup_environ ( )
264,"try,",try :
265,"for every locale in locales,",for locale in locales :
266,"try,",try :
267,"if key exists, substitute it for self.key, if not substitute settings.SECRET_KEY for key.",self . key = key or settings . SECRET_KEY
268,"if length of app_labels is greater than integer 1 and primary_keys is true,",if len ( app_labels ) > 1 and primary_keys :
269,"if PY3 is true,",if PY3 :
270,"return a dictionary with an entry: self.ns for ""xmlns"".","return { ""xmlns"" : self . ns }"
271,"if day_of_year is smaller than or equalt to jan1_weekday subtracted from integer 8 and jan1_weekday is greater than integer 4,",if day_of_year <= ( 8 - jan1_weekday ) and jan1_weekday > 4 :
272,"if self.message_context is true,",if self . message_context :
273,"if close is True,",if close :
274,"define the function dec with an argument func,",def dec ( func ) :
275,return data.,return data
276,substitute _urllib_robotparser_moved_attributes for Module_six_moves_urllib_robotparser._moved_attributes.,Module_six_moves_urllib_robotparser . _moved_attributes = _urllib_robotparser_moved_attributes
277,"call the method clear from the base class of the class QueryDict, return the result.","super ( QueryDict , self ) . clear ( )"
278,"call the function to_python with an argument pk, substitute the result for pk.",pk = to_python ( pk )
279,from itertools import chain into default name space.,from itertools import chain
280,"if field is not equal to NON_FIELD_ERRORS and field is not contained in self.fields,",if field != NON_FIELD_ERRORS and field not in self . fields :
281,define the method remove_potfiles with an argument self.,def remove_potfiles ( self ) :
282,"if the key doesnt exists substitute self.use_natural_keys for self.use_natural_foreign_keys. remove the 'use_natural_primary_keys' key from the options dictionary and substitute it for self.use_natural_primary_keys,","self . use_natural_primary_keys = options . pop ( 'use_natural_primary_keys' , False )"
283,define the method exit_command with an argument self.,def exit_command ( self ) :
284,"if max_num is None,",if max_num is None :
285,return settings.LANGUAGE_CODE.,return settings . LANGUAGE_CODE
286,"define the function literals with 3 arguments: choices, prefix set to an empty string and suffix set to an empty string.","def literals ( choices , prefix = """" , suffix = """" ) :"
287,"if self.merge and conflicts are both true,",if self . merge and conflicts :
288,"define the method __init__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
289,if attr is an instance of MovedModule.,"if isinstance ( attr , MovedModule ) :"
290,"evaluates to true, call the function select_template with an argument file_name, substitute the result for t.",t = select_template ( file_name )
291,"default string value, substitute it for value. return value if six.PY2 is true, if not return value.encode(ISO_8859_1).decode(UTF_8).",return value if six . PY2 else value . encode ( ISO_8859_1 ) . decode ( UTF_8 )
292,"if ch is not equal to a sring '?' or escaped is true,",if ch != '?' or escaped :
293,return errors.,return errors
294,"otherwise if domains equals a string django' and, file_ext equals '.py' or file_ext is contained in command.extensions,",elif domain == 'django' and ( file_ext == '.py' or file_ext in command . extensions ) :
295,"call the method self.build_attrs with 2 arguments: attrs and name set to name, substitute the result for final_attrs.","final_attrs = self . build_attrs ( attrs , name = name )"
296,"crate a dictionary with app mapping and from the class Migration, created with arguments: string 'custom' and app,","changes = dict ( ( app , [ Migration ( ""custom"" , app ) ] ) for app in app_labels )"
297,"and self.regex.flags equals to other.regex.flags and self.message equals to other.message and self.code equals to other.code, and self.inverse_match equals to other.inverse_match, return the result. define the method __ne__ with arguments self and other.","def __ne__ ( self , other ) :"
298,"CheckboxInput, Select, NullBooleanSelect, SelectMultiple, DateInput, DateTimeInput, TimeInput, SplitDateTimeWidget, SplitHiddenDateTimeWidget and FILE_INPUT_CONTRADICTION. from django.utils import formats into default name space.",from django . utils import formats
299,substitute whitelist for self.domain_whitelist.,self . domain_whitelist = whitelist
300,"call the method result.setlist with 2 arguments: return value of the function copy.deepcopy called with 2 arguments: key and memo,","result . setlist ( copy . deepcopy ( key , memo ) , copy . deepcopy ( value , memo ) )"
301,"if not,",else :
302,_empty_value is an empty list.,_empty_value = [ ]
303,return output.,return output
304,"and absolute value of p, substitute the result for exp. try,",try :
305,"if stream_or_string is an instance of bytes,","if isinstance ( stream_or_string , bytes ) :"
306,call the self.clear method.,self . clear ( )
307,"substitute the result for args and kwargs. return an instance of AssignmentNode class created with 4 arguments: takes_context, args, kwargs and target_var.","return AssignmentNode ( takes_context , args , kwargs , target_var )"
308,"return _translations dictionary value, under the language key.",return _translations [ language ]
309,"if not,",else :
310,"for every form in self call the form.as_ul method, join the results in a string, separated by an empty string.",forms = ' ' . join ( form . as_ul ( ) for form in self )
311,"call the as_bytes method on the return value of the message.message method append to it '\n' character, use it as the argument for the call to the self.stream.write method.",self . stream . write ( message . message ( ) . as_bytes ( ) + b'\n' )
312,substitute value under the key key of self dictionary for val.,val = self [ key ]
313,"if not,",else :
314,from django.utils.functional import allow_lazy into default name space.,from django . utils . functional import allow_lazy
315,"raise an TemplateSyntaxError exception with an argument string ""Second (optional) argument to %s tag must be 'parsed'"",","raise TemplateSyntaxError ( ""Second (optional) argument to %s tag"" "" must be 'parsed'"" % bits [ 0 ] )"
316,"if tags exists and if all elements in the return value of the method checks.tag_exists called with an argument tag,",if tags and any ( not checks . tag_exists ( tag ) for tag in tags ) :
317,and only if self.match is None or return value of the method self.match_re.search called with an argument f is true. append a tuple containing 2 elements: full_file and f to self.choices list.,"self . choices . append ( ( full_file , f ) )"
318,append loader to loaders.,loaders . append ( loader )
319,"remove kwargs dictionary element under the 'method' key, substitute it for method.",method = kwargs . pop ( 'method' )
320,define the method add_arguments with arguments self and parser.,"def add_arguments ( self , parser ) :"
321,"call the method token.split_contents, substitute the result.",bits = token . split_contents ( )
322,"raise an AttributeError exception with string ""Unable to determine the file's size."" as argument.","raise AttributeError ( ""Unable to determine the file's size."" )"
323,derive the class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
324,self.items is an empty list.,self . items = [ ]
325,define the method stringfilter with an argument func.,def stringfilter ( func ) :
326,"call the function inline_re.match with an argument t.contents, substitute the result for imatch.",imatch = inline_re . match ( t . contents )
327,define the function gettext with an argument message.,def gettext ( message ) :
328,"default set to DEFAULT_DB_ALIAS and help set to string 'Nominates a database onto which to open a shell. Defaults to the ""default"" database.'. define the method handle with arguments self and unpacked dictionary options.","def handle ( self , ** options ) :"
329,sys.stderr is an instance of NullDevice class.,sys . stderr = NullDevice ( )
330,define the method __repr__ with an argument self.,def __repr__ ( self ) :
331,"zfile is an instance of GzipFile class, created with 3 arguments: mode set to string 'wb', compresslevel set to integer 6,","zfile = GzipFile ( mode = 'wb' , compresslevel = 6 , fileobj = buf )"
332,"try,",try :
333,"__all__ is an list containing strings: 'activate', 'deactivate', 'override', 'deactivate_all', 'get_language',","__all__ = [ 'activate' , 'deactivate' , 'override' , 'deactivate_all' , 'get_language' , 'get_language_from_request' , 'get_language_info' , 'get_language_bidi' , 'check_for_language' , 'to_locale' , 'templatize' , 'string_concat' , 'gettext' , 'gettext_lazy' , 'gettext_noop' , 'ugettext' , 'ugettext_lazy' , 'ugettext_noop' , 'ngettext' , 'ngettext_lazy' , 'ungettext' , 'ungettext_lazy' , 'pgettext' , 'pgettext_lazy' , 'npgettext' , 'npgettext_lazy' , 'LANGUAGE_SESSION_KEY' , ]"
334,"for every pk in value,",for pk in value :
335,"raise an CommandError exception with an argument string ""You can only use --pks option with one model"".","raise CommandError ( ""You can only use --pks option with one model"" )"
336,"for every sql in index_sql,",for sql in index_sql :
337,"if elt is an instance of six.string_types class,","if isinstance ( elt , six . string_types ) :"
338,append filename to _error_files.,_error_files . append ( filename )
339,substitute file for filename.,filename = file
340,return value.,return value
341,"call the connection.introspection.table_names with tables as argument, store the result in seen_models.",seen_models = connection . introspection . installed_models ( tables )
342,"if urlconf_name is true,",if urlconf_name :
343,"from django.conf import urls into default name space,",from django . conf import urls
344,"substitute the result for value under the NON_FIELD_ERRORS key of the form._errors dictionary. for every field in unique_check,",for field in unique_check :
345,"if base_lang is contained in settings.LANGUAGES_BIDI, return boolean True, if not, return boolean False.",return base_lang in settings . LANGUAGES_BIDI
346,"convert max_value into an floating point number, substitute it for max_value.",max_value = float ( max_value )
347,"return a list containing return values of the function to_py called with an argument val, for every val in value.",return [ to_py ( val ) for val in value ]
348,from django.utils import six and lru_cache into default name space.,"from django . utils import six , lru_cache"
349,import module warnings.,import warnings
350,"return the string 'ValidationError(%s)', replace '%s' with self.",return 'ValidationError(%s)' % self
351,lexer is an instance of JsLexer class.,lexer = JsLexer ( )
352,"for every form in self call the form.as_table method, join the results in a string, separated by an empty string.",forms = ' ' . join ( form . as_table ( ) for form in self )
353,"call the method self.parse_name with an argument fixture_label, substitute the result for fixture_name, ser_fmt, cmp_fmt, respective.","fixture_name , ser_fmt , cmp_fmt = self . parse_name ( fixture_label )"
354,call the method notifier.read_events.,notifier . read_events ( )
355,return an string '0'.,return '0'
356,"if pytz is true, substitute pytz.utc for utc, otherwise substitute result of the function UTC for utc.",utc = pytz . utc if pytz else UTC ( )
357,return data.,return data
358,"where '%s' is replaced with first element of bits. call the method parser.compile_filter with second element of bits as an argument, substitute the result for viewname.",viewname = parser . compile_filter ( bits [ 1 ] )
359,"for every k2 and v2 in v,","for k2 , v2 in v :"
360,"if domain is true and return value of the function validate_host called with 2 arguments: domain and settings.ALLOWED_HOSTS, evaluates to true,","if domain and validate_host ( domain , settings . ALLOWED_HOSTS ) :"
361,append a tuple with 2 elements: f.name and formfield to field_list.,"field_list . append ( ( f . name , formfield ) )"
362,return host.,return host
363,from io import StringIO into default name space.,from io import StringIO
364,"if not,",else :
365,return attrs.,return attrs
366,"if host ends with '.', remove the last element from host.",host = host [ : - 1 ] if host . endswith ( '.' ) else host
367,"if not,",else :
368,"call the method self._coerce with an argument value, return the result.",return self . _coerce ( value )
369,"substitute '%s' in string ""No changes detected in app '%s'"" with the result of the method app_labels.pop, write it to self.stdout.","self . stdout . write ( ""No changes detected in app '%s'"" % app_labels . pop ( ) )"
370,"if decimals is greater than digits,",if decimals > digits :
371,"if self.no_obsolete is true,",if self . no_obsolete :
372,from django.utils.text import unescape_entities into default name space.,from django . utils . text import unescape_entities
373,"define the method __init__ with 5 arguments: self, view_name, args, kwargs and asvar.","def __init__ ( self , view_name , args , kwargs , asvar ) :"
374,self._post_render_callbacks is an empty list.,self . _post_render_callbacks = [ ]
375,"call the function mark_for_escaping with an argument value, return the result.",return mark_for_escaping ( value )
376,call the method cursor.execute with an argument line.,cursor . execute ( line )
377,from django.core.servers.basehttp import run and get_internal_wsgi_application into default name space.,"from django . core . servers . basehttp import run , get_internal_wsgi_application"
378,"if not,",else :
379,"if self.instance.pk is None,",if self . instance . pk is None :
380,"convert value into an string, convert the result into an integer and substitute it for value.",value = int ( str ( value ) )
381,"call the function re.compile with arguments regex and re.UNICODE, substitute the result for compiled_regex.","compiled_regex = re . compile ( regex , re . UNICODE )"
382,logger.propagate is boolean True.,logger . propagate = True
383,define the function request with an argument request.,def request ( request ) :
384,"if callback is an callable object,",if callable ( callback ) :
385,from django.conf import settings into default name space.,from django . conf import settings
386,define the method add_arguments with self and parser as arguments.,"def add_arguments ( self , parser ) :"
387,"try,",try :
388,"separated by result of the function _ called with an argument string ', ', for every i in list_ without last element, result of the function force_text called with an argument last_word, result of the function force_text called with an argument: last element of list_. call the function allow_lazy with 2 arguments: get_text_list and six.text_type, substitute the result for get_text_list.","get_text_list = allow_lazy ( get_text_list , six . text_type )"
389,"if m is true,",if m :
390,substitute value under 'warning' key of kwargs dictionary for warning.,warning = kwargs [ 'warning' ]
391,"inverse_match set to None and flags set to None. if regex is not None,",if regex is not None :
392,pos is equal to integer 0.,pos = 0
393,raise an Resolver404 exception with an argument dictionary containing 1 entry: path for 'path'.,raise Resolver404 ( { 'path' : path } )
394,"if messages is not an instance of the ValidationError class,","if not isinstance ( messages , ValidationError ) :"
395,"call the method loader.detect_conflicts, substitute the result for conflicts.",conflicts = loader . detect_conflicts ( )
396,"if call to the function response.has_header with argument 'Vary' returns boolean True,",if response . has_header ( 'Vary' ) :
397,sup_cls is base class of the class cls.,"sup_cls = super ( cls , self )"
398,from django.utils.encoding import force_text and filepath_to_uri into default name space.,"from django . utils . encoding import force_text , filepath_to_uri"
399,"help is a string ""Prints the CREATE TABLE, custom SQL and CREATE INDEX SQL statements for the given model module name(s)."".","help = ""Prints the CREATE TABLE, custom SQL and CREATE INDEX SQL statements for the given model module name(s)."""
400,"call the method __init__ with 2 arguments: unpacked list args and unpacked dictionary kwargs, from the base class of the class ComboField.","super ( ComboField , self ) . __init__ ( * args , ** kwargs )"
401,self._post_parse_error is boolen False.,self . _post_parse_error = False
402,return value under key key of dict_ dictionary.,return dict_ [ key ]
403,"try,",try :
404,return self.object_list element at index.,return self . object_list [ index ]
405,"define initialization method __init__ with self class instance, unpacked list args, unpacked dictionary kwargs as arguments.","def __init__ ( self , * args , ** kwargs ) :"
406,position the file pointer at the beginning of self file.,self . seek ( 0 )
407,import module os.,import os
408,call the method apps.get_model with an argument model_identifier.,return apps . get_model ( model_identifier )
409,do nothing.,pass
410,INFO is integer 20.,INFO = 20
411,"use the result as an argument for the call to the function mark_safe, return the result. decorator function register.filter with 2 arguments is_safe set to boolean True and needs_autoescape set to boolean True.","@ register . filter ( is_safe = True , needs_autoescape = True )"
412,from django.db.migrations.loader import AmbiguityError into default name space.,from django . db . migrations . loader import AmbiguityError
413,contains_nontext is boolean False.,contains_nontext = False
414,"for every arg in the result, if arg is an instance of Promise class,","if isinstance ( arg , Promise ) :"
415,"for every model in app_models,",for model in app_models :
416,from django.core.management.color import no_style into default name space.,from django . core . management . color import no_style
417,"call the method message.message, substitute the result for msg.",msg = message . message ( )
418,add model to created_models set.,created_models . add ( model )
419,"call the function force_text with an argument val, if the result is not contained in pks,",if force_text ( val ) not in pks :
420,define method GET with self class instance as an argument.,def GET ( self ) :
421,define the method u with an argument self.,def u ( self ) :
422,"default set to boolean False, help as a string ""Just show what migrations would be made; don't actually write them."". call the method parser.add_argument with 5 arguments: string '--merge', action as a string 'store_true', dest as a string 'merge',","parser . add_argument ( '--merge' , action = 'store_true' , dest = 'merge' , default = False , help = ""Enable fixing of migration conflicts."" )"
423,"replace '%s' in string ""%s = %s"" with key and value under the key key of the user_setting dictionary, append it to the output.","output . append ( ""%s = %s"" % ( key , user_settings [ key ] ) )"
424,substitute the last element of parts for cmp_fmt.,cmp_fmt = parts [ - 1 ]
425,"call the function yaml.dump with 4 arguments: self.objects, self.stream, Dumper=DjangoSafeDumper and unpacked dictionary self.options.","yaml . dump ( self . objects , self . stream , Dumper = DjangoSafeDumper , ** self . options )"
426,substitute smart_text for smart_unicode.,smart_unicode = smart_text
427,call the BaseCache.__init__ method with self class instance and params as the arguments.,"BaseCache . __init__ ( self , params )"
428,self._current is None.,self . _current = None
429,"where '%s' are replaced with name and param. if not,",else :
430,guid_attrs is an empty dictionary.,guid_attrs = { }
431,"if not substitute field.initial for initial. call the method filed.clean with arguments value and initial, substitute the result for value.","value = field . clean ( value , initial )"
432,"try,",try :
433,"if domain is not None,",if domain is not None :
434,"and return value of the function f.db_type called with an argument connection set to connection. if f.null is false, append string append ""NOT NULL"" to field_output, otherwise append ""NULL"" to field_output.","field_output . append ( ""%sNULL"" % ( ""NOT "" if not f . null else """" ) )"
435,"var_obj is an instance of Variable class, created with an argument var.",var_obj = Variable ( var )
436,return the first element of the return value of the call to the self._det_image_dimensions method.,return self . _get_image_dimensions ( ) [ 0 ]
437,from django.utils import formats into default name space.,from django . utils import formats
438,"call the method widget.id_for_label with an argument id_, substitute the result for id_for_label.",id_for_label = widget . id_for_label ( id_ )
439,"call the function widget, substitute the result for widget.",widget = widget ( )
440,update defaults dictionary with kwargs.,defaults . update ( kwargs )
441,"if six.PY3 is true,",if six . PY3 :
442,append old_app_dir to app_dirs.,app_dirs . append ( old_app_dir )
443,"call the method models.signals.post_migrate.send with 5 arguments: sender set to app_config, app_config set to app_config,","models . signals . post_migrate . send ( sender = app_config , app_config = app_config , verbosity = verbosity , interactive = interactive , using = db )"
444,"call the function force_bytes with an argument password, substitute the result for password.",password = force_bytes ( password )
445,"if use_l10n is true, or use_l10n is None and settings.USE_L10N is true,",if use_l10n or ( use_l10n is None and settings . USE_L10N ) :
446,"get attribute class_name form the module object, return it.","return getattr ( module , class_name )"
447,modify value at the key 'Location' of the dictionary response by applying function request.build_absolute_uri on it.,response [ 'Location' ] = request . build_absolute_uri ( response [ 'Location' ] )
448,"if option_label is an instance of list or tuple,","if isinstance ( option_label , ( list , tuple ) ) :"
449,derive the class Loader from the BaseLoader base class.,class Loader ( BaseLoader ) :
450,break the loop execution.,break
451,"if value has an attribute '__iter__' and value is not an instance of six.text_type,","if hasattr ( value , '__iter__' ) and not isinstance ( value , six . text_type ) :"
452,plist is an empty list.,plist = [ ]
453,"call the method imatch.group with an argument integer 1, substitute the result for g.",g = imatch . group ( 1 )
454,"call the function reloader with wrapped_main_func, args and kwargs as arguments.","reloader ( wrapped_main_func , args , kwargs )"
455,"call the function initial_value, substitute the result for initial_value.",initial_value = initial_value ( )
456,"where '%s' is replaced with app_or_project and extra_files joined into a string, separated by a string ', '. append string '_name' to app_or_project, substitute it for base_name.",base_name = '%s_name' % app_or_project
457,"if data is not None,",if data is not None :
458,"if old_attr is None,",if old_attr is None :
459,"define the method __init__ with 3 arguments: self, tup and hash set to hash.","def __init__ ( self , tup , hash = hash ) :"
460,"raise an TemplateDoesNotExist exception with an argument string ""No template names provided"".","raise TemplateDoesNotExist ( ""No template names provided"" )"
461,define the function _parse_date_fmt.,def _parse_date_fmt ( ) :
462,"call the get_bytes_from_wsgi function with environ, string 'REDIRECT_URL' and empty strings as arguments, substitute the result for script_url.","script_url = get_bytes_from_wsgi ( environ , 'REDIRECT_URL' , '' )"
463,"handler is an instance of SimplerXMLGenerator class, created with 2 arguments: outfile and encoding.","handler = SimplerXMLGenerator ( outfile , encoding )"
464,call the method self.xml.addQuickElement with an argument string 'None'.,"self . xml . addQuickElement ( ""None"" )"
465,"""path of at least one fixture in the command line."" define the method add_arguments with 2 arguments: self and parser.","def add_arguments ( self , parser ) :"
466,raise an exception.,raise
467,"if not,",else :
468,return s.,return s
469,"and instance of TimeInput class, created with 2 arguments: attrs set to attrs and format set to date_format. call the method __init__ from the base class of the class SplitDateTimeWidget, with 2 arguments: widgets and attrs.","super ( SplitDateTimeWidget , self ) . __init__ ( widgets , attrs )"
470,"define the method delete_cookie with 4 arguments: self, key, path set to character '/' and domain set to None.","def delete_cookie ( self , key , path = '/' , domain = None ) :"
471,"from django.template import loader, Context and RequestContext into default name space.","from django . template import loader , Context , RequestContext"
472,substitute raw_data for data.,data = raw_data
473,"if check_path is true,",if check_path :
474,"try,",try :
475,define the function _get_timezone_name with an argument timezone.,def _get_timezone_name ( timezone ) :
476,"or with string 'models.' if it is not and field_type. if extra_params is true,",if extra_params :
477,"if not self.initial_extra is None. defaults is a dictionary with 4 entries: data for 'data', files for 'files', auto_id for 'auto_id' and prefix for 'prefix'.","defaults = { 'data' : data , 'files' : files , 'auto_id' : auto_id , 'prefix' : prefix }"
478,"define the method use_argparse with an argument self,",def use_argparse ( self ) :
479,"call the method executor.migration_plan wiht return value of te method executor.loader.graph.leaf_nodes as argument, substitute it for plan.",plan = executor . migration_plan ( executor . loader . graph . leaf_nodes ( ) )
480,define the method cfg_convert with 2 arguments: self and value.,"def cfg_convert ( self , value ) :"
481,substitute first element of parts for view.,view = parts [ 0 ]
482,"if second element of sys.version_info is smaller than or equal to integer 1,",if sys . version_info [ 1 ] <= 1 :
483,"define the method id_for_label with arguments self, name, field, value, val, choices and none_value.","def create_select ( self , name , field , value , val , choices , none_value ) :"
484,"with an argument i, for 'prefix' and self.error_class for 'error_class'. if self.is_bound is true,",if self . is_bound :
485,"if type of result is ConvertingDict, ConvertingList or ConvertingTuple,","if type ( result ) in ( ConvertingDict , ConvertingList , ConvertingTuple ) :"
486,call the method bpython.embed.,bpython . embed ( )
487,"call the method self.__text_cast, return the result.",return self . __text_cast ( )
488,call the method validate with an argument value from the base class of the class TypedMultipleChoiceField.,"super ( TypedMultipleChoiceField , self ) . validate ( value )"
489,"call the method self.translate_token with an argument token, append the result to mapped_tokens.",mapped_tokens . append ( self . translate_token ( token ) )
490,"if not,",else :
491,call the method logger.addHandler with an argument: h-th element of value under 'handlers' key of self.config dictionary.,logger . addHandler ( self . config [ 'handlers' ] [ h ] )
492,"call the function get_tag_uri with 2 arguments: values under 'link' and 'pubdate' keys of item dictionary, substitute the result for unique_id.","unique_id = get_tag_uri ( item [ 'link' ] , item [ 'pubdate' ] )"
493,append new_filenames to _cached_filenames.,_cached_filenames += new_filenames
494,self._errors is None.,self . _errors = None
495,return boolean True.,return True
496,substitute idx-th element of self.choices for choice.,choice = self . choices [ idx ]
497,not_found is an empty list.,not_found = [ ]
498,define the function dictsortreversed with 2 arguments value and arg.,"def dictsortreversed ( value , arg ) :"
499,break from the loop execution.,break
500,"yield obj, as an return value of the generator.",yield obj
501,define the function is_ignored with arguments path and ignore_patterns.,"def is_ignored ( path , ignore_patterns ) :"
502,"zip elements of result and result_args into a list of tuples, for every item and args in the result,","for item , args in zip ( result , result_args ) :"
503,"try,",try :
504,"dest as a string 'ignore', default set to boolean False and help set to string 'Ignores entries in the serialized data for fields that do not currently exist on the model.'. define the method handle with 3 arguments: self, unpacked list fixture_labels and unpacked dictionary options.","def handle ( self , * fixture_labels , ** options ) :"
505,"call the method cls.__promise__ with 3 arguments: resultclass, k and v, substitute the result for meth.","meth = cls . __promise__ ( resultclass , k , v )"
506,"if IndexError exception is caught,",except IndexError :
507,"call the method apps.get_app_configs, for app_config in the result,",for app_config in apps . get_app_configs ( ) :
508,self._errors is an empty list.,self . _errors = [ ]
509,"derive class LimitedStream from the object base class, making it a new-style class.",class LimitedStream ( object ) :
510,"if VariableDoesNotExist exception is caught,",except VariableDoesNotExist :
511,"if fext is a file,",if os . path . isfile ( fext ) :
512,"call the method self.stdout.write with an argument string 'examining files with the extensions: %s\n',","self . stdout . write ( 'examining files with the extensions: %s\n' % get_text_list ( list ( self . extensions ) , 'and' ) )"
513,define the function remove_tags with 2 arguments: html and tags.,"def remove_tags ( html , tags ) :"
514,"call the function force_str with an argument quoted_url, use the result as an argument for the call to the function unquote,",return force_text ( unquote ( force_str ( quoted_url ) ) )
515,call the method self._delete with argument k.,self . _delete ( k )
516,"if name is not None,",if name is not None :
517,from django.template.loader import BaseLoader into default name space.,from django . template . loader import BaseLoader
518,define the function valid_ident with an argument s.,def valid_ident ( s ) :
519,define the method __getattr__ with 2 arguments: self and attr set to None.,"def __getattr__ ( self , attr ) :"
520,"if ImportError exception is caught,",except ImportError :
521,value under the self.var_name key of the context dictionary is an empty list.,context [ self . var_name ] = [ ]
522,"otherwise, length of options.args is lesser than integer 1,",elif len ( options . args ) < 1 :
523,"and dictionary of arbitrary length **kwargs as arguments. call the initialization method for the base class, _html_parser.HTMLParser.__init__ with self,","_html_parser . HTMLParser . __init__ ( self , convert_charrefs = convert_charrefs , ** kwargs )"
524,"if UnicodeError exception is caught,",except UnicodeError :
525,if length of fks_to_parent equals integer 1.,if len ( fks_to_parent ) == 1 :
526,return self.,return self
527,"if nesting is false,",if not nesting :
528,import module os.,import os
529,"if not,",else :
530,define the method __bytes_cast with an argument self.,def __bytes_cast ( self ) :
531,"for every format in BUILTIN_SERIALIZERS,",for format in BUILTIN_SERIALIZERS :
532,define the function validate_ipv46_address with an argument value.,def validate_ipv46_address ( value ) :
533,"'PasswordInput', 'HiddenInput', 'MultipleHiddenInput', 'ClearableFileInput', 'FileInput', 'DateInput', 'DateTimeInput', 'TimeInput', 'Textarea', 'CheckboxInput', 'Select', 'NullBooleanSelect', 'SelectMultiple', 'RadioSelect','CheckboxSelectMultiple', 'MultiWidget', 'SplitDateTimeWidget' and 'SplitHiddenDateTimeWidget'. MEDIA_TYPES is a tuple with 2 strings: 'css' and 'js'.","MEDIA_TYPES = ( 'css' , 'js' )"
534,return cls.,return cls
535,"if empty_label is not None,",if empty_label is not None :
536,substitute lib for value under the library_name key of libraries dictionary.,libraries [ library_name ] = lib
537,"return it. if PY3 is true,",if PY3 :
538,do nothing,pass
539,yield subnode.,yield subnode
540,"call the function sql_create with 3 arguments: app_config, self.style and connection, substitute the result for statements.","statements = sql_create ( app_config , self . style , connection )"
541,define the function get_urlconf with an argument default set to None.,def get_urlconf ( default = None ) :
542,return self._queryset.,return self . _queryset
543,"call the function allow_lazy with 2 arguments: normalize_newlines and six.text_type, substitute the result for normalize_newlines.","normalize_newlines = allow_lazy ( normalize_newlines , six . text_type )"
544,"if err_log is true,",if err_log :
545,define the method content with an argument self.,def content ( self ) :
546,"call the private dict.__setitem__ method with self class instance, key and M as arguments.","dict . __setitem__ ( self , key , M )"
547,"define the method __init__ with 3 arguments: self, attrs set to None and choices set to an empty tuple.","def __init__ ( self , attrs = None , choices = ( ) ) :"
548,define the function find_filter with 2 arguments: self and filter_name.,"def find_filter ( self , filter_name ) :"
549,call the method parser.add_library with an argument lib.,parser . add_library ( lib )
550,"call the function re.compile with 2 arguments: raw string ""((?:[^\s'""]*(?:(?:""(?:[^""\\]|\\.)*"" | '(?:[^'\\]|\\.)*')[^\s'""]*)+) | \+)"",","smart_split_re = re . compile ( r"""""" ((?: [^\s'""]* (?: (?:""(?:[^""\\]|\\.)*"" | '(?:[^'\\]|\\.)*') [^\s'""]* )+ ) | \S+) """""" , re . VERBOSE )"
551,break the loop execution.,break
552,"if settings.FORCE_SCRIPT_NAME is not None,",if settings . FORCE_SCRIPT_NAME is not None :
553,call the method self.set_cdata_mode with tag as the argument.,self . set_cdata_mode ( tag )
554,result_args is a list containing an empty list.,result_args = [ [ ] ]
555,"call the method transaction.get_autocommit with an argument self.using, if it evaluates to true,",if transaction . get_autocommit ( self . using ) :
556,raise an exception.,raise
557,"call the method self.show_migration_list with connection as first argument, as second argument use value under the 'app_label' key of options dictionary,","return self . show_migration_list ( connection , [ options [ 'app_label' ] ] if options [ 'app_label' ] else None )"
558,"substitute the result for self.instance. try,",try :
559,from django.apps import apps into default name space.,from django . apps import apps
560,substitute logging.getLogger for getLogger.,getLogger = logging . getLogger
561,substitute sysid for self.sysid.,self . sysid = sysid
562,return a string '%s(%s)' formated with self.__class__.__name__ and dictreprs.,"return '%s(%s)' % ( self . __class__ . __name__ , dictreprs )"
563,"substitute '%r' in string ' gettext(%r) ' with result of the function join_tokens, called with 2 arguments: singular,","out . write ( ' gettext(%r) ' % join_tokens ( singular , trimmed ) )"
564,"try,",try :
565,define the function to_locale with 2 arguments language and to_lower set to boolean False.,"def to_locale ( language , to_lower = False ) :"
566,"if quote_double_quotes is true,",if quote_double_quotes :
567,"call the function prepare_js_for_gettext with an argument src_data, substitute it for src_data.",src_data = prepare_js_for_gettext ( src_data )
568,"get the value under the 'interactive' key of the options dictionary, substitute it for self.interactive.",self . interactive = options . get ( 'interactive' )
569,define the function deactivate_all.,def deactivate_all ( ) :
570,substitute value under the 'use_reloader' key of the options dictionary for use_reloader.,use_reloader = options . get ( 'use_reloader' )
571,derive the class ConvertingList from list base class.,class ConvertingList ( list ) :
572,"call the function is_aware with an argument date, if it evaluates to true,",if is_aware ( date ) :
573,"if self.verbosity is greater than integer 0,",if self . verbosity > 0 :
574,"msg is a string ""%s doesn't look like a module path"" formated with dotted_path.","msg = ""%s doesn't look like a module path"" % dotted_path"
575,from django.core.mail.message import sanitize_address into default name space.,from django . core . mail . message import sanitize_address
576,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
577,define the function get_git_changeset.,def get_git_changeset ( ) :
578,substitute message.error_dict for message.,message = message . error_dict
579,i is the reminder of the division of i by j.,i = i % j
580,"add ns_pattern and extra, substitute the result for ns_pattern.",ns_pattern = ns_pattern + extra
581,from django.core.management.base import AppCommand into default name space.,from django . core . management . base import AppCommand
582,substitute subject for self.subject.,self . subject = subject
583,return list_ and boolean False.,"return list_ , False"
584,define the method __init__ with 2 arguments: self and s.,"def __init__ ( self , s ) :"
585,remove first two elements from bits.,bits = bits [ 2 : ]
586,"if self.fail_silently is false,",if not self . fail_silently :
587,"define the method __init__ with arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
588,"return a dictionary with 2 elements: self._version for ""version"" and ""http://www.w3.org/2005/Atom"" for ""xmlns:atom"".","return { ""version"" : self . _version , ""xmlns:atom"" : ""http://www.w3.org/2005/Atom"" }"
589,substitute old_attr for new_attr.,new_attr = old_attr
590,"sum lead and opening, substitute the result for lead.",lead = lead + opening
591,"if self.use_ipv6 substitute string '::1' for self.addr, if not substitute '127.0.0.1' for self.addr.",self . addr = '::1' if self . use_ipv6 else '127.0.0.1'
592,"msg is a string ""Could not decode base64 data: %r"", where '%r' is replace with e.","msg = ""Could not decode base64 data: %r"" % e"
593,substitute name for self.name.,self . name = name
594,"add bits to a tuple, return it.",return tuple ( bits )
595,"call the method value.astimezone with an argument timezone, substitute the result for value.",value = value . astimezone ( timezone )
596,"if LookupError exception is caught,",except LookupError :
597,"format string ' pgettext(%r, %r) ' with message_context and g, write it to out.","out . write ( ' pgettext(%r, %r) ' % ( message_context , g ) )"
598,return iterable self.keyOrder.,return iter ( self . keyOrder )
599,"if not,",else :
600,"if self.pos is greater than or equal to self.tokens,",if self . pos >= len ( self . tokens ) :
601,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
602,comment_notes is an empty list.,comment_notes = [ ]
603,"label set to None, initial set to None, help_text set to an empty string, unpacked list args and unpacked dictionary kwargs. call the __init__ method of the base class of the class ChoiceField, called with 7 arguments: required set to required,","super ( ChoiceField , self ) . __init__ ( required = required , widget = widget , label = label , initial = initial , help_text = help_text , * args , ** kwargs )"
604,return name.,return name
605,"substitute the result for timezone. divide timezone by integer 60, substitute the quotient of the division for hour and reminder for minute.","hour , minute = divmod ( timezone , 60 )"
606,"if settings.TEMPLATE_DEBUG is true and origin is None,",if settings . TEMPLATE_DEBUG and origin is None :
607,"call the email_message.recipients method, if it evaluates to false,",if not email_message . recipients ( ) :
608,define the method _cache with self class instance as an argument.,def _cache ( self ) :
609,raise an ValidationError with an argument errors.,raise ValidationError ( errors )
610,define the method reset with an argument self.,def reset ( self ) :
611,"try,",try :
612,"if exclude is true and f.name is contained in exclude,",if exclude and f . name in exclude :
613,"if not, shutdown_message is an empty string. if sys.platform equals string win32', substitute string 'CTRL-BREAK' for quit_command, if not substitute string 'CONTROL-C' for quit_command.",quit_command = 'CTRL-BREAK' if sys . platform == 'win32' else 'CONTROL-C'
614,substitute options for self.options.,self . options = options
615,call the method connection.check_constraints with an arguments table_names set to table_names.,connection . check_constraints ( table_names = table_names )
616,"if self.sep is not contained in signed_value,",if self . sep not in signed_value :
617,"define the function dumps with 5 arguments: obj, key set to None, salt set to string 'django.core.signing',","def dumps ( obj , key = None , salt = 'django.core.signing' , serializer = JSONSerializer , compress = False ) :"
618,"_iterkeys is a string ""keys"".","_iterkeys = ""keys"""
619,"finally perform,",finally :
620,"substitute elements of middle from length of opening index to the end, for middle.",middle = middle [ len ( opening ) : ]
621,databases is a list containing 2 elements: self.using and None.,"databases = [ self . using , None ]"
622,"call the function os.path.expanduser with an argument pythonrc, substitute the result for pythonrc.",pythonrc = os . path . expanduser ( pythonrc )
623,append string '0000' to new_ip.,new_ip . append ( '0000' )
624,"and help set to string 'Nominates a database to print the SQL for. Defaults to the ""default"" database.'. define the method handle_app_config with 3 arguments: self, app_config and unpacked dictionary options.","def handle_app_config ( self , app_config , ** options ) :"
625,"if self.data.hour is greater than inreger 12,",if self . data . hour > 12 :
626,derive the class Command from the AppCommand base class.,class Command ( AppCommand ) :
627,"if not,",else :
628,requires_system_checks is boolean False.,requires_system_checks = False
629,substitute base for m.,m = base
630,"call the function getInnerText with argument field_node, on the result call the method strip, use the result as an argument for the",value = field . to_python ( getInnerText ( field_node ) . strip ( ) )
631,substitute level for self.level.,self . level = level
632,"substitute the resulting list for app_config. if not,",else :
633,"append string ""Field renamed because it wasn't a valid Python identifier."" to field_notes.","field_notes . append ( ""Field renamed because it wasn't a valid Python identifier."" )"
634,return res.,return res
635,"call the method writer.as_string, write the result to file fh.",fh . write ( writer . as_string ( ) )
636,"create lambda identity function which returns x for input parameter x, return the function.",return lambda x : x
637,"register.tag decorator,",@ register . tag
638,substitute self.field.widget for widget.,widget = self . field . widget
639,call the method self._assert_mutable.,self . _assert_mutable ( )
640,convert locale to lowercase and return it.,return locale . lower ( )
641,"if OverflowError or ValueError exceptions are caught,","except ( OverflowError , ValueError ) :"
642,"definition is an empty dictionary,",definition = { }
643,"append command.xgettext_options to list containing 15 elements: string 'xgettext', string '-d', domain, string '--language=Python',","args = [ 'xgettext' , '-d' , domain , '--language=Python' , '--keyword=gettext_noop' , '--keyword=gettext_lazy' , '--keyword=ngettext_lazy:1,2' , '--keyword=ugettext_noop' , '--keyword=ugettext_lazy' , '--keyword=ungettext_lazy:1,2' , '--keyword=pgettext:1c,2' , '--keyword=npgettext:1c,2,3' , '--keyword=pgettext_lazy:1c,2' , '--keyword=npgettext_lazy:1c,2,3' , '--output=-' ] + command . xgettext_options"
644,"if response is None,",if response is None :
645,"try,",try :
646,"default is a an empty list and help is a string '(use multiple --exclude to exclude multiple apps/models).'. call the method parser.add_argument with 6 arguments: string '-n', string '--natural', action is string 'store_true', dest is string 'use_natural_keys',","parser . add_argument ( '-n' , '--natural' , action = 'store_true' , dest = 'use_natural_keys' , default = False , help = 'Use natural keys if they are available (deprecated: use --natural-foreign instead).' )"
647,"if TemplateDoesNotExist exception is caught,",except TemplateDoesNotExist :
648,self.models is an empty set.,self . models = set ( )
649,"for every i and tuple containing dirpath and f, in enumerated list of locations,","for i , ( dirpath , f ) in enumerate ( locations ) :"
650,"empty string for 'field', empty string for 'help_text' and html_class_attr for html_class_attr. append last_row to output.",output . append ( last_row )
651,"if ValueError exception is caught,",except ValueError :
652,"if pop_context is true,",if pop_context :
653,return self.,return self
654,"define the method __init__ with 3 arguments: self, offset set to None, name set to None.","def __init__ ( self , offset = None , name = None ) :"
655,"if initial is not None, substitute initial for initial_value, otherwise initial_value is an empty string.",initial_value = initial if initial is not None else ''
656,"convert arg to an integer, substitute it for p.",p = int ( arg )
657,"define the method __init__ wiht 5 arguments: self, META, input_data, upload_handlers and encoding set to None.","def __init__ ( self , META , input_data , upload_handlers , encoding = None ) :"
658,"create dictionary out of the unpacked dictionary options, using defaults.__dict__ as a mapping function, substitute the result for defaults.","defaults = dict ( defaults . __dict__ , ** options )"
659,return result.,return result
660,"call the the method __copy__ from the base class of the class Context, substitute the result for duplicate.","duplicate = super ( Context , self ) . __copy__ ( )"
661,"call the function format_html with 2 arguments: string '' and return value of the function force_text,","output . append ( format_html ( '' , force_text ( option_value ) ) )"
662,"if the value under the 'test_flush' key of the options dictionary exists,","if options . get ( ""test_flush"" , False ) :"
663,"if basetype equals a string 'text',",if basetype == 'text' :
664,"register.tag decorator,",@ register . tag
665,"define the method write_po_file with arguments self, potfile and locale.","def write_po_file ( self , potfile , locale ) :"
666,"define the function mail_managers with subject, message, fails_silently set to boolean False, connection set to None,","def mail_managers ( subject , message , fail_silently = False , connection = None , html_message = None ) :"
667,"for every x is the range of integers from level to the integer 2, in the reversed order,","for x in range ( level , 1 , - 1 ) :"
668,raise an exception.,raise
669,"call the function pgettext with an argument 'String to return when truncating text', '%(truncated_text)s...', substitute the result for truncate.","truncate = pgettext ( 'String to return when truncating text' , '%(truncated_text)s...' )"
670,from django.conf import settings into default name space.,from django . conf import settings
671,"join elements of output into a string, separated by newline characters, return it.",return '\n' . join ( output )
672,"get the next element of the self._producer iterable, substitute it for output.",output = next ( self . _producer )
673,define the method listdir with arguments self and path.,"def listdir ( self , path ) :"
674,"return the result of the method field.widget.value_from_datadict called with 3 arguments: self.data, self.files and prefix.","return field . widget . value_from_datadict ( self . data , self . files , prefix )"
675,buffer_ is None.,buffer_ = None
676,"if t is not None,",if t is not None :
677,define the method __iter__ with argument self.,def __iter__ ( self ) :
678,substitute self._stream for stream.,stream = self . _stream
679,return _cached_filenames.,return _cached_filenames
680,update declared_fields dictionary with entry base.declared_fields.,declared_fields . update ( base . declared_fields )
681,"call the method self.extra_headers.get with arguments: string 'To' and joined string from self.to elements separated by ', ',","msg [ 'To' ] = self . extra_headers . get ( 'To' , ', ' . join ( self . to ) )"
682,define the method with reload with an argument self.,def __str__ ( self ) :
683,substitute gettext_noop for ugettext_noop.,ugettext_noop = gettext_noop
684,substitute complain for pop.,pop = complain
685,"otherwise if, type of s doesnt equal to six.text_type,",elif type ( s ) != six . text_type :
686,"for every item in self.items,",for item in self . items :
687,"if output is true,",if output :
688,from django.utils.datastructures import MultiValueDict into default name space.,from django . utils . datastructures import MultiValueDict
689,"if field.widget.needs_multipart_form is true,",if field . widget . needs_multipart_form :
690,"use fourth element of version as a key to get the value from mapping dictionary, append to it fourth element of version converted to string, substitute it for sub.",sub = mapping [ version [ 3 ] ] + str ( version [ 4 ] )
691,substitute the result for exc_value. substitute exc for exc_value.__cause__.,exc_value . __cause__ = exc
692,"call the os.path.split with argument name, assign the result to the dir_name and file_name respectively.","dir_name , file_name = os . path . split ( name )"
693,"replace all '%s' from string ""%s: %s%s%s"" with values of obj, id, self.msg and hint, respectively, return the result.","return ""%s: %s%s%s"" % ( obj , id , self . msg , hint )"
694,"if not,",else :
695,"self.file is a instance of a class TemporaryUploadedFile initialized with arguments: self.file_name, self.content_type, integer 0,","self . file = TemporaryUploadedFile ( self . file_name , self . content_type , 0 , self . charset , self . content_type_extra )"
696,where '%s' is replaced with self.__class__.__name__. define the method flush with an argument self.,def flush ( self ) :
697,substitute the return value of the method self.object_list.count for self._count.,self . _count = self . object_list . count ( )
698,"if last_row doesnt ends with row_ender,",if not last_row . endswith ( row_ender ) :
699,return printable representation of self.value.,return repr ( self . value )
700,from copy import copy into default name space.,from copy import copy
701,"try,",try :
702,"call the method self.getvalue, return the result.",return self . getvalue ( )
703,"try,",try :
704,"call the function six.text_type with length of lines as an argument,",width = six . text_type ( len ( six . text_type ( len ( lines ) ) ) )
705,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
706,"if self.max_value is not None,",if self . max_value is not None :
707,define the function _unpack_ipv4 with an argument ip_str.,def _unpack_ipv4 ( ip_str ) :
708,define the method A with an argument self.,def A ( self ) :
709,decorator register.filter.,@ register . filter
710,from django.utils import six into default name space.,from django . utils import six
711,"string 'DECIMAL_SEPARATOR', lang and use_l10n set to use_l10n, decimal_pos, result of the function get_format called with 3 arguments: string 'NUMBER_GROUPING', lang and use_l10n as use_l10n, result of the function get_format called with an argument: string 'THOUSAND_SEPARATOR', lang and use_l10n as use_l10n and force_grouping as force_grouping, return the result. define the function localize with 2 arguments value and use_l10n set to None.","def localize ( value , use_l10n = None ) :"
712,"call the method form.add_prefix with an argument self._pk_field.name,",form . data [ form . add_prefix ( self . _pk_field . name ) ] = None
713,substitute index for doublecolon_start.,doublecolon_start = index
714,"if path is not initialized,",if path is None :
715,"if six.PY2 is true,",if six . PY2 :
716,"if self.pk_field,",if self . pk_field :
717,"sum of the result of the function time.time and max_age, substitute it for 'expires' key of the previously returned dictionary. if path is not None,",if path is not None :
718,"otherwise if field.required is true,",elif field . required :
719,derive the class EmailField from the base class CharField class.,class EmailField ( CharField ) :
720,"self.file_permissions_mode is a tuple containing: file_permissions_mode if file_permissions_mode is not None,",self . file_permissions_mode = ( file_permissions_mode if file_permissions_mode is not None else settings . FILE_UPLOAD_PERMISSIONS )
721,"called with an argument text converted into a floating point number. if ValueError, InvalidOperation, TypeError or UnicodeEncodeError exceptions are caught,","except ( ValueError , InvalidOperation , TypeError , UnicodeEncodeError ) :"
722,"if second element of url_fields is false,",if not url_fields [ 1 ] :
723,"convert args into a list, substitute it for args.",args = list ( args )
724,"get the value under the 'extensions' key of the options dictionary, substitute it for extensions.",extensions = options . get ( 'extensions' )
725,"if Exception, renamed to e, exception is caught,",except Exception as e :
726,"join usage and self.help into a string, separated by 2 new line characters, return it.","return '%s\n\n%s' % ( usage , self . help )"
727,"define the method set_many with self, data, timeout set to DEFAULT_TIMEOUT and version set to None as arguments.","def set_many ( self , data , timeout = DEFAULT_TIMEOUT , version = None ) :"
728,"for every name in MEDIA_TYPES,",for name in MEDIA_TYPES :
729,"if attrs is true,",if attrs :
730,break from the endless loop.,break
731,do nothing.,pass
732,call the method self.write_migration_files with an argument changes.,self . write_migration_files ( changes )
733,return nothing.,return
734,"from django.conf import settings into default namespace,",from django . conf import settings
735,"call the function smart_urlquote with an argument middle, substitute the result for url.",url = smart_urlquote ( middle )
736,define the method utcoffset with 2 arguments self and dt.,"def utcoffset ( self , dt ) :"
737,define function dictitem with s as an argument.,def dictitem ( s ) :
738,"if not,",else :
739,"for every sql in custom_sql,",for sql in custom_sql :
740,"call the method self._prepare_data with an argument data, substitute the result for data.",data = self . _prepare_data ( data )
741,"if self.field.empty_label is not None,",if self . field . empty_label is not None :
742,"value is an instance of ConvertingList class, created with an argument value.",value = ConvertingList ( value )
743,close file file.,file . close ( )
744,return boolean False.,return False
745,substitute fields for self.fields.,self . fields = fields
746,derive the class InputStreamExhausted from the Exception base class.,class InputStreamExhausted ( Exception ) :
747,"and unpacked dictionary kwargs. call the function iri_to_uri with an argument redirect_to, substitute the result for the value under the 'Location' key of the self dictionary.",self [ 'Location' ] = iri_to_uri ( redirect_to )
748,"if size is not zero,",if size :
749,derive the class BaseModelForm from the BaseForm base class.,class BaseModelForm ( BaseForm ) :
750,"while path is true,",while path :
751,"define the method render with 4 arguments: self, name, value and attrs set to None.","def render ( self , name , value , attrs = None ) :"
752,call the function shutil.rmtree with 2 arguments: path_to_remove and onerror set to rmtree_errorhandler.,"shutil . rmtree ( path_to_remove , onerror = rmtree_errorhandler )"
753,"if last element of pieces is true,",if pieces [ - 1 ] :
754,"with an argument message for 'message', or if not message for 'message' and error.code for 'code' in error.code is true, if not, an empty string for 'code'. return errors.",return errors
755,substitute key for result.key.,result . key = key
756,"call the field.rel.to._meta.get_field method with an field.rel.field_name argument, on the result call the method to_python,",obj_pk = field . rel . to . _meta . get_field ( field . rel . field_name ) . to_python ( field_value )
757,"call the BaseConverter function with BASE36_ALPHABET as argument, store the result in base36.",base36 = BaseConverter ( BASE36_ALPHABET )
758,"otherwise if token_string starts with COMMENT_TAG_START,",elif token_string . startswith ( COMMENT_TAG_START ) :
759,define the method render with an argument self.,def render ( self ) :
760,call the method LocaleRegexProvider.__init__ with arguments self and regex.,"LocaleRegexProvider . __init__ ( self , regex )"
761,"property decorator,",@ property
762,"define the function exec with 3 arguments: _code_, _globs_ set to None and _locs_ set to None.","def exec_ ( _code_ , _globs_ = None , _locs_ = None ) :"
763,call the method parser.delete_first_token.,parser . delete_first_token ( )
764,"call the function func with 2 arguments: unpacked list args and unpacked dictionary kwargs,","return mark_safe ( func ( * args , ** kwargs ) )"
765,raise an TypeError exception with an argument string 'other_dict must be a mapping (dictionary-like) object.'.,raise TypeError ( 'other_dict must be a mapping (dictionary-like) object.' )
766,"if memo is None,",if memo is None :
767,"get the value under the value key of a dictionary with 6 entries: boolean True for '2', boolean True for boolean True,","return { '2' : True , True : True , 'True' : True , '3' : False , 'False' : False , False : False } . get ( value , None )"
768,"for every field in unique_check, if field is contained in form.cleaned_data. create a generator that for every d in row_data, if d has an '_get_pk_val' attribute,","row_data = tuple ( d . _get_pk_val ( ) if hasattr ( d , '_get_pk_val' ) else d for d in row_data )"
769,return message.,return message
770,return result.,return result
771,if return value of the function connection.introspection.table_name_converter called with an arugment: model._meta.db_table is contained in table_names,if connection . introspection . table_name_converter ( model . _meta . db_table ) in table_names :
772,define the method __iter__ with an argument self.,def __iter__ ( self ) :
773,and unpacked dictionary kwargs. define the method clean with 2 arguments: self and value.,"def clean ( self , value ) :"
774,"call the method setlistdefault from the base class of the class QueryDict, with arguments key and default_list, return the result.","return super ( QueryDict , self ) . setlistdefault ( key , default_list )"
775,"if IOError, renamed to e, exception is caught,",except IOError as e :
776,"if protocol is not equal to string 'both' and unpack_ipv4 is true,",if protocol != 'both' and unpack_ipv4 :
777,"""to %s because it doesn't define __str__()."", replace %s with string value of klass.__name__. substitute __str__ filed of klass for __unicode__ field of klass.",klass . __unicode__ = klass . __str__
778,substitute hashlib.sha256 for digest.,digest = hashlib . sha256
779,call the method self.add_fallback with an argument default_translation.,self . add_fallback ( default_translation )
780,"split first element of hextet into parts by ':', append them to new_ip.",new_ip = hextet [ 0 ] . split ( ':' )
781,"if not self._mutable,",if not self . _mutable :
782,substitute style_func for self.style_func.,self . style_func = style_func
783,"for every app_name and model_list in return value of manifest.items function,","for app_name , model_list in manifest . items ( ) :"
784,set old_method_name attribute of the base object to the result of the function wrapper called with an argument old_method.,"setattr ( base , old_method_name , wrapper ( old_method ) )"
785,"call the method field.widget.value_from_datadict with 3 arguments: self.data, self.files, prefixed_name, substitute the result for data_value.","data_value = field . widget . value_from_datadict ( self . data , self . files , prefixed_name )"
786,"decrement t by integer 1,",t -= 1
787,"return an empty string,",return ''
788,"if '.' is contained in words or '@' is contained in word or ':' is contained in word,",if '.' in word or '@' in word or ':' in word :
789,remove first element of result from self.keyOrder dictionary.,self . keyOrder . remove ( result [ 0 ] )
790,"open out_log file in append mode with buffering size of the input buffer, substitute the result for sys.stdout.","sys . stdout = open ( out_log , 'a' , buffering )"
791,"append string 'max_digits and decimal_places have been guessed, as this database handles decimal fields as float' to field_notes.","field_notes . append ( 'max_digits and decimal_places have been guessed, as this ' 'database handles decimal fields as float' )"
792,"divide since by seconds, store the floored result in count.",count = since // seconds
793,define the method H with an argument self.,def H ( self ) :
794,"if self.match is None or call to the method self.match_re.search with an argument f, evaluated to true,",if self . match is None or self . match_re . search ( f ) :
795,error is an instance of ValidationError created with an argument error.,error = ValidationError ( error )
796,"substitute the result for connection. get the value under the 'table_name_filter' key of the options dictionary, substitute it for table_name_filter.",table_name_filter = options . get ( 'table_name_filter' )
797,"if incremental is true,",if not incremental :
798,"try,",try :
799,"if 'class' is contained in attrs,",if 'class' in attrs :
800,"if cache is None,",if cache is None :
801,"call the method six.iteritems with an argument base.base_fields, convert it to a list and append fields to it, substitute the result for fields.",fields = list ( six . iteritems ( base . base_fields ) ) + fields
802,"if m is not None,",if m is not None :
803,call the method __init__ from the base class of the DTDForbidden class.,"super ( DTDForbidden , self ) . __init__ ( )"
804,"get name attribute of the self._out object, return it.","return getattr ( self . _out , name )"
805,"for every app and names in key, value tuple pairs of conflicts dictionary join names into a string separated by commas,","name_str = ""; "" . join ( ""%s in %s"" % ( "", "" . join ( names ) , app ) for app , names in conflicts . items ( ) )"
806,"define the method resolve with 3 arguments: self, context and ignore_failures set to boolean False.","def resolve ( self , context , ignore_failures = False ) :"
807,derive the class Node from object base class.,class Node ( object ) :
808,"define the method has_error with 3 arguments: self, field and code set to None.","def has_error ( self , field , code = None ) :"
809,"define the __init__ method with 5 arguments: self, urlconf_name, default_kwargs set to None, app_name set to None and namespace set to None.","def __init__ ( self , urlconf_name , default_kwargs = None , app_name = None , namespace = None ) :"
810,define the function handle_default_options with an argument options.,def handle_default_options ( options ) :
811,"from yaml import SafeLoader, SafeDumper into default name space.","from yaml import SafeLoader , SafeDumper"
812,define the method s with an argument self.,def s ( self ) :
813,return None.,return None
814,"try,",try :
815,style is an instance of the dummy class.,style = dummy ( )
816,from django.core.mail.backends.base import BaseEmailBackend into default name space.,from django . core . mail . backends . base import BaseEmailBackend
817,define the function lru_cache with 2 arguments maxsize set to integer 100 and typed set to boolean False.,"def lru_cache ( maxsize = 100 , typed = False ) :"
818,"call the method imatch.group with an argument integer 2, use the result as an argument for the call to the method context_re.match,",context_match = context_re . match ( imatch . group ( 2 ) )
819,"define the method get_many with 3 arguments: self, keys, and version set to None.","def get_many ( self , keys , version = None ) :"
820,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
821,define the method __delitem__ with 2 arguments: self and key.,"def __delitem__ ( self , key ) :"
822,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
823,len_item is integer 1.,len_item = 1
824,"replace '%s' in string ""processing locale %s\n"" with locale, write it to self.stdout.","self . stdout . write ( ""processing locale %s\n"" % locale )"
825,"under the BLOCK_CONTEXT_KEY key of render_context dictionary dictionary evaluates to be not equal to None, call the method self.render with an argument self.context, use it as an argument for the call to the mark_safe function, return the result.",return mark_safe ( self . render ( self . context ) )
826,"create a printable representation of self.urlconf_name object, substitute it for urlconf_repr.",urlconf_repr = repr ( self . urlconf_name )
827,define the function phone2numeric_filter with an argument value.,def phone2numeric_filter ( value ) :
828,child_nodelists is an tuple with 2 elements: strings 'nodelist_loop' and 'nodelist_empty'.,"child_nodelists = ( 'nodelist_loop' , 'nodelist_empty' )"
829,"return string '(NOT (%s: %s))', formated with self.connector and string created by joining c into a string, separated by ', ',","return '(NOT (%s: %s))' % ( self . connector , ', ' . join ( [ str ( c ) for c in self . children ] ) )"
830,skip this loop iteration.,continue
831,"_version is a string ""2.0"".","_version = ""2.0"""
832,"call the result.rsplit method with arguments self.sep and integer 1, substitute the result for value and timestamp, respectively.","value , timestamp = result . rsplit ( self . sep , 1 )"
833,"with the result renamed to fp, perform the following: write msgs to fp.",fp . write ( msgs )
834,define the function escapejs_filter with an argument value.,def escapejs_filter ( value ) :
835,"return the result of the method self._html_output, called with 5 arguments: normal_row to a string,","return self . _html_output ( normal_row = '%(errors)s%(label)s %(field)s%(help_text)s ' , error_row = '%s ' , row_ender = '' , help_text_html = ' %s ' , errors_on_separate_row = False )"
836,return val.,return val
837,"if KeyError exception is caught,",except KeyError :
838,define the method __nonzero__ with an argument self.,def __nonzero__ ( self ) :
839,"if the boolean return vale of the call to the function is_protected_type(s) and string_onlys are boolean True,",if strings_only and is_protected_type ( s ) :
840,"if ttl is not None,",if ttl is not None :
841,"_assertRaisesRegex is a strnig ""assertRaisesRegexp"".","_assertRaisesRegex = ""assertRaisesRegexp"""
842,"if date is not None,",if date is not None :
843,define the method load with self class instance and rawdata as arguments.,"def load ( self , rawdata ) :"
844,define the method _isdst with 2 arguments self and dt.,"def _isdst ( self , dt ) :"
845,define the method decompress with 2 arguments: self and value.,"def decompress ( self , value ) :"
846,"call the function re.compile with an argument raw string ""(? node has invalid model identifier: '%s'"",","raise base . DeserializationError ( ""<%s> node has invalid model identifier: '%s'"" % ( node . nodeName , model_identifier ) )"
953,return commands.,return commands
954,"if not,",else :
955,"call the field.to_python method with field_value, substitute the result for field.name key of the data dictionary.",data [ field . name ] = field . to_python ( field_value )
956,"try,",try :
957,derive the class Operator from the base class TokenBase.,class Operator ( TokenBase ) :
958,"define the method resolve_expression with 3 arguments: self, obj and context.","def resolve_expression ( self , obj , context ) :"
959,derive the class HttpResponseGone from the HttpResponse base class.,class HttpResponseGone ( HttpResponse ) :
960,"return an instance of SafeBytes, created with an argument t.",return SafeBytes ( t )
961,"if commit is true and form has an attribute 'save_m2m',","if commit and hasattr ( form , 'save_m2m' ) :"
962,"define the method render with 5 arguments: self, name, value, attrs set to None and choices set to an empty tuple.","def render ( self , name , value , attrs = None , choices = ( ) ) :"
963,"call the self.get_dum_object method with an argument obj, use the result as an argument for the self.objects.append method.",self . objects . append ( self . get_dump_object ( obj ) )
964,"call the function new_method_proxy with an argument operator.ne, substitute the result for __ne__.",__ne__ = new_method_proxy ( operator . ne )
965,return self.,return self
966,substitute length of values for len_values.,len_values = len ( values )
967,self._raw_ipv6 is boolean True.,self . _raw_ipv6 = True
968,if ImportError exception is caught.,except ImportError :
969,return obj.,return obj
970,from .html_parser import HTMLParser and HTMLParseError into default name space.,"from . html_parser import HTMLParser , HTMLParseError"
971,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
972,"get the value under the LANGUAGE_SESSION_KEY key of the request.session dictionary, substitute it for lang_code.",lang_code = request . session . get ( LANGUAGE_SESSION_KEY )
973,define the function linenumbers with 2 arguments value and autoescape set to None.,"def linenumbers ( value , autoescape = None ) :"
974,substitute value for self.value.,self . value = value
975,"if self doesnt have '_queryset' attribute,","if not hasattr ( self , '_queryset' ) :"
976,substitute new_filenames for filelist.,filelist = new_filenames
977,"try,",try :
978,"string ""%s already exists, overlaying a project or app into an existing directory won't replace conflicting files"", where '%s"" is replaced with new_path. open old_path file in 'rb' mode, with file descriptor renamed to template_file,","with open ( old_path , 'rb' ) as template_file :"
979,import module struc.,import struct
980,from django.utils.six import StringIO into default name space.,from django . utils . six import StringIO
981,return EventHandler.modified_code.,return EventHandler . modified_code
982,substitute takes_context for self.takes_context.,self . takes_context = takes_context
983,from __future__ import absolute_import into default name space.,from __future__ import absolute_import
984,"sort the result and substitute it for options. for every option in options,",for option in options :
985,value is None.,value = None
986,"try,",try :
987,substitute TemplateDoesNotExist for self.find_template_cache dictionary value under the key key.,self . template_cache [ key ] = TemplateDoesNotExist
988,"call the function become_daemon with 2 arguments: our_home_dir set to the value under the 'workdir' key of options dictionary and,","become_daemon ( our_home_dir = options [ ""workdir"" ] , ** daemon_kwargs )"
989,derive the class TemplateSyntaxError form the base class Exception.,class TemplateSyntaxError ( Exception ) :
990,define the method __len__ with an argument self.,def __len__ ( self ) :
991,ns_pattern is an empty string.,ns_pattern = ''
992,month_field is a string '%s_month'.,month_field = '%s_month'
993,"if self.parsed is true,",if self . parsed :
994,"call the function func with unpacked dictionary kwargs as an argument, substitute the result for translated.",translated = func ( ** kwargs )
995,"substitute return value of call to the function _set_response_etag with response as an argument, for response.",response = _set_response_etag ( response )
996,return an empty string.,return ''
997,"call the function predicate with an argument item, use it as a key to get results dictionary value, append item to it.",results [ predicate ( item ) ] . append ( item )
998,"if attr equals any of the strings ""__file__"", ""__name__"" or ""__path__"" and self.mod is not contained in sys.modules,","if ( attr in ( ""__file__"" , ""__name__"" , ""__path__"" ) and self . mod not in sys . modules ) :"
999,extend errors list with e.error_list.,errors . extend ( e . error_list )
1000,"if fields is true and f.name is not contained in fields,",if fields and f . name not in fields :
1001,"call the klass method with fail_silently set to fail_silently and dictionary arguments kwds as arguments, return the result.","return klass ( fail_silently = fail_silently , ** kwds )"
1002,"otherwise if field is contained in self.fields,",elif field in self . fields :
1003,return result.,return result
1004,"ISO_INPUT_FORMATS is a dictionary with 3 entries: tuple with an element string '%Y-%m-%d' for 'DATE_INPUT_FORMATS',","ISO_INPUT_FORMATS = { 'DATE_INPUT_FORMATS' : ( '%Y-%m-%d' , ) , 'TIME_INPUT_FORMATS' : ( '%H:%M:%S' , '%H:%M:%S.%f' , '%H:%M' ) , 'DATETIME_INPUT_FORMATS' : ( '%Y-%m-%d %H:%M:%S' , '%Y-%m-%d %H:%M:%S.%f' , '%Y-%m-%d %H:%M' , '%Y-%m-%d' ) , }"
1005,import module datetime.,import datetime
1006,"call the function getInnerText with an argument node, call the strip method on the result, substitute the result for field_value.",field_value = getInnerText ( node ) . strip ( )
1007,from the base class of the class TypedMultipleChoiceField. define the method _coerce with arguments self and value.,"def _coerce ( self , value ) :"
1008,"call the function force_text with an argument text, substitute the result for text.",text = force_text ( text )
1009,"define the method __setattr__ with 3 arguments: self, name and value.","def __setattr__ ( self , name , value ) :"
1010,"if old_style_list is true,",if old_style_list :
1011,"call the method m.group with an argument string 'mon', convert the result to lowercase, use it as an argument for the call to the,",month = MONTHS . index ( m . group ( 'mon' ) . lower ( ) ) + 1
1012,raise a NotImplementedError with an argument string 'subclasses of Serializer must provide a start_object() method'.,raise NotImplementedError ( 'subclasses of Serializer must provide a start_object() method' )
1013,"and, if f.rel.toequals parent_model or f.rel.to is contained in result of the call to the method parent_model._meta.get_parent_list. if length of fks_to_parent is integer 1,",if len ( fks_to_parent ) == 1 :
1014,return EndToken.,return EndToken
1015,"append string ', ' to field_desc.","field_desc += ', '"
1016,"define function no_style, without input arguments.",def no_style ( ) :
1017,"if not,",else :
1018,"call the method self.get_template_sources with 2 arguments template_name and template_dirs, for every filepath in the result,","for filepath in self . get_template_sources ( template_name , template_dirs ) :"
1019,"get the value under the 'CONTENT_TYPE' key of environ dictionary, if the key doesnt exist get the empty string,","_ , content_params = cgi . parse_header ( environ . get ( 'CONTENT_TYPE' , '' ) )"
1020,"if not,",else :
1021,"raise an TemplateSyntaxError exception with an argument string ""'now' statement takes one argument"".","raise TemplateSyntaxError ( ""'now' statement takes one argument"" )"
1022,"if number equals a integer 1 and self.allow_empty_first_page is true,",if number == 1 and self . allow_empty_first_page :
1023,set the file position pointer at file_pos.,file . seek ( file_pos )
1024,"if val is an instance of tuple,","if isinstance ( val , tuple ) :"
1025,"if keys is true,",if keys :
1026,call the method operations.extend with an argument smigration.operations.,operations . extend ( smigration . operations )
1027,"description is a string ""An instance of the '%s' class"" with '%s' replaced by value of receiver.__class__.__name__.","description = ""An instance of the '%s' class"" % receiver . __class__ . __name__"
1028,define the function infix with 2 arguments bp and func.,"def infix ( bp , func ) :"
1029,media is an instance of Media class.,media = Media ( )
1030,define the function get_library with an argument library_name.,def get_library ( library_name ) :
1031,"raise an TemplateSyntaxError exception with an argument string ""'%s' received too many positional arguments"",","raise TemplateSyntaxError ( ""'%s' received too many positional arguments"" % name )"
1032,define the function get_language_from_request with 2 arguments: request and check_path set to boolean False.,"def get_language_from_request ( request , check_path = False ) :"
1033,derive the class CommandError from the base class Exception.,class CommandError ( Exception ) :
1034,from django.core.serializers.base import SerializerDoesNotExist into default name space.,from django . core . serializers . base import SerializerDoesNotExist
1035,define the method from_dict with argument cls and file_dict.,"def from_dict ( cls , file_dict ) :"
1036,"and boolean False, append the result to result. return result.",return result
1037,"if ValueError exception is caught,",except ValueError :
1038,"replace '%s' in string ""System check identified some issues:\n%s"" with msg, substitute it for msg.","msg = ""System check identified some issues:\n%s"" % msg"
1039,"for every renamed_method in cls.renamed_methods,",for renamed_method in cls . renamed_methods :
1040,"smart_text function, return the result. if not,",else :
1041,"if not,",else :
1042,"call the method __new__ from the base class of the class SortedDict, with 3 arguments: cls, unpacked list args,","instance = super ( SortedDict , cls ) . __new__ ( cls , * args , ** kwargs )"
1043,"decorator total_ordering,",@ total_ordering
1044,from django.core.management.base import AppCommand into default name space.,from django . core . management . base import AppCommand
1045,"call parser.add_argument method with '--noinput', action set to string 'store_false', dest set to string 'interactive',","parser . add_argument ( '--noinput' , action = 'store_false' , dest = 'interactive' , default = True , help = 'Tells Django to NOT prompt the user for input of any kind.' )"
1046,"substitute the '%s' with table and list containing key, respectively. call the cursor.fetchone method, substitute the result for row.",row = cursor . fetchone ( )
1047,"define the method push with 3 arguments: self, name and block.","def push ( self , name , block ) :"
1048,"join template_dirs elements into a string, separated by '|', use it as an argument for the call to the function force_bytes,","return '-' . join ( [ template_name , hashlib . sha1 ( force_bytes ( '|' . join ( template_dirs ) ) ) . hexdigest ( ) ] )"
1049,return base.,return base
1050,position file self.file pointer at the pos position.,self . file . seek ( pos )
1051,from django.utils.module_loading import import_string into default name space.,from django . utils . module_loading import import_string
1052,"get the value under the 'format' key of the options dictionary, substitute the result for format.",format = options . get ( 'format' )
1053,"define the method delete with self, key and version set to None as arguments.","def delete ( self , key , version = None ) :"
1054,"call the method self._get_size_from_underlying_file, substitute the result for self._size.",self . _size = self . _get_size_from_underlying_file ( )
1055,"if timeout is greater than integer 2592000,",if timeout > 2592000 :
1056,"source and previous result. if TemplateDoesNotExist exception is caught,",except TemplateDoesNotExist :
1057,call the method self.xml.startElement with an argument string 'natural'.,"self . xml . endElement ( ""natural"" )"
1058,call the method block_context.push with 2 arguments: self.name and push.,"block_context . push ( self . name , push )"
1059,derive the class CsrfTokenNode from Node base class.,class CsrfTokenNode ( Node ) :
1060,do nothing.,pass
1061,"otherwise if total_forms is grater than self.max_num is grater or equal to integer 0,",elif total_forms > self . max_num >= 0 :
1062,define the method content with an argument self.,def content ( self ) :
1063,"if value is not contained in result,",if value is not result :
1064,"for every pattern in reversed list self.url_patterns,",for pattern in reversed ( self . url_patterns ) :
1065,where '%s' is replaced with name and taglib. call the method parser.add_library with an argument temp_lib.,parser . add_library ( temp_lib )
1066,"raise an ValueError exception with an argument string 'Cannot resolve %r: %s', formated with s and e.","v = ValueError ( 'Cannot resolve %r: %s' % ( s , e ) )"
1067,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
1068,from django.utils.functional import total_ordering into default name space.,from django . utils . functional import total_ordering
1069,define the function next_char with an argument input_iter.,def next_char ( input_iter ) :
1070,"substitute '%s' in a string ""\nCreated new merge migration %s"" with writer path, write it to self.stdout.","self . stdout . write ( ""\nCreated new merge migration %s"" % writer . path )"
1071,"define the method entity_decl with arguments self, name, is_parameter_entity, value, base, sysid, pubid and notation_name.","def entity_decl ( self , name , is_parameter_entity , value , base , sysid , pubid , notation_name ) :"
1072,return nothing.,return
1073,"try,",try :
1074,date_data is a tuple with an entry: attribute lookup from the value under the unique_for key of the form.cleaned_data dictionary.,"date_data = ( getattr ( form . cleaned_data [ unique_for ] , lookup ) , )"
1075,do nothing.,pass
1076,"if not,",else :
1077,from django.utils.functional import allow_lazy into default name space.,from django . utils . functional import allow_lazy
1078,"return an instance of IfEqualNode class, created with 5 arguments: val1, val2, nodelist_true, nodelist_false and negate.","return IfEqualNode ( val1 , val2 , nodelist_true , nodelist_false , negate )"
1079,"call the function random_module.choice with an argument value, return the result.",return random_module . choice ( value )
1080,"substitute the result for value. call the function avoid_wrapping with an argument value, return the result.",return avoid_wrapping ( value )
1081,check_for_language is lambda function that returns boolean True for every argument x.,check_for_language = lambda x : True
1082,derive the class AssignmentNode form the base class TagHelperNode.,class AssignmentNode ( TagHelperNode ) :
1083,substitute xreadlines for __iter__.,__iter__ = xreadlines
1084,remove entry at the key key of the attrs dictionary.,attrs . pop ( key )
1085,"if self has an 'requires_system_checks' attribute, has_new_option is boolean True, otherwise it is boolean False.","has_new_option = hasattr ( self , 'requires_system_checks' )"
1086,"otherwise if value is an instance of datetime.datetime,","elif isinstance ( value , datetime . datetime ) :"
1087,substitute it for localedir. use_null_fallback is boolean True.,use_null_fallback = True
1088,"call the self.style.HTTP_NOT_MODIFIED with an argument msg, substitute it for msg.",msg = self . style . HTTP_NOT_MODIFIED ( msg )
1089,"instantiate class Decimal with string '1.0' as argument, divide it by product of instance of Decimal class created with integer 10,",exp = Decimal ( '1.0' ) / ( Decimal ( 10 ) ** abs ( p ) )
1090,import module hashlib.,import hashlib
1091,"if ValueError or TypeError exceptions occurred,","except ( ValueError , TypeError ) :"
1092,"call the function find_template with 2 arguments: template_name and dirs, substitute the result for template and origin.","template , origin = find_template ( template_name , dirs )"
1093,"raise an TemplateSyntaxError exception with an argument string ""Malformed arguments to url tag"".","raise TemplateSyntaxError ( ""Malformed arguments to url tag"" )"
1094,fp is a instance of a class six.StringIO.,fp = six . StringIO ( )
1095,define the method display with an argument self.,def display ( self ) :
1096,"call the method __init__ from the base class of the class DateTimeBaseInput, with an argument attrs.","super ( DateTimeBaseInput , self ) . __init__ ( attrs )"
1097,"define the method as_textarea with 3 arguments: self, attrs set to None and unpacked dictionary kwargs.","def as_textarea ( self , attrs = None , ** kwargs ) :"
1098,"if self._dir file path does not exists,",if not os . path . exists ( self . _dir ) :
1099,define the method __str__ with an argument self.,def __str__ ( self ) :
1100,"separated with string ', ', substitute '%s' with self.sequence, substitute '%d' with length of self.nodelist_loop, substitute '%s' with reversed_text. define the method __iter__ with an argument self.",def __iter__ ( self ) :
1101,define the method split_contents with an argument self.,def split_contents ( self ) :
1102,"call the function lazy with 2 arguments: func and resultclass, call the result with an argument, unpacked dictionary kwargs,","proxy = lazy ( func , resultclass ) ( ** kwargs )"
1103,return boolean False.,return False
1104,"slice the path list from the result of the match.end method as the start index to the end, substitute it for new_path.",new_path = path [ match . end ( ) : ]
1105,"derive the class ModelForm from the base class in the return value of the method six.with_metaclass, called with 2 arguments:","class ModelForm ( six . with_metaclass ( ModelFormMetaclass , BaseModelForm ) ) :"
1106,"call the method field.rel.to._default_manager.db_manager with an argument db on the return value call the method get_by_natural_key,",return field . rel . to . _default_manager . db_manager ( db ) . get_by_natural_key ( * value ) . pk
1107,"call the os.path.getsize function with argument self.file.name, return the result.",return os . path . getsize ( self . file . name )
1108,"use the result as an argument for the call to the json.dumps function, return the result. define the method as_text with an argument self.",def as_ul ( self ) :
1109,"if not,",else :
1110,substitute operator.getitem for indexbytes.,indexbytes = operator . getitem
1111,"if not,",else :
1112,"for every s_opt in parser.option_list. for every x in slice of cwords from the second element to the element at the cword decremented by 1 index,",prev_opts = [ x . split ( '=' ) [ 0 ] for x in cwords [ 1 : cword - 1 ] ]
1113,"call the method app_config.get_models, substitute the result fr model_list.",model_list = app_config . get_models ( )
1114,"otherwise if ch is contained in string ""*?+{"",","elif ch in ""*?+{"" :"
1115,"if resource_string is not None,",if resource_string is not None :
1116,"define the method __init__ with 6 arguments: self, dict_ set to None, autoescape set to True, current_app set to None,","def __init__ ( self , dict_ = None , autoescape = True , current_app = None , use_l10n = None , use_tz = None ) :"
1117,"for every name and var in return value of the function six.iteritems called with an argument self.extra_context. if self.isolated_context is true,",if self . isolated_context :
1118,from django.conf import settings into default name space.,from django . conf import settings
1119,do nothing.,pass
1120,define the method start_index with an argument self.,def start_index ( self ) :
1121,"call the function getInnerText with argument k, on the result call the method strip, for every k in keys, append the results to field_value list.",field_value = [ getInnerText ( k ) . strip ( ) for k in keys ]
1122,substitute length for self._remaining.,self . _remaining = length
1123,"if default is true and RAISE_ERROR is false,",if default is not RAISE_ERROR :
1124,"if mem_args is contained in cache,",if mem_args in cache :
1125,"first element of bits and first element of remaining_bits. call the method parser.parse with an argument tuple, with an element string 'endwith', substitute the result for nodelist.","nodelist = parser . parse ( ( 'endwith' , ) )"
1126,"evaluate the self.has_key method with key as argument, return the result.",return self . has_key ( key )
1127,"define the method __init__ with 7 arguments: self, data set to None, files set to None, auto_id set to an string 'id_%s',","def __init__ ( self , data = None , files = None , auto_id = 'id_%s' , prefix = None , initial = None , error_class = ErrorList ) :"
1128,"categories is a list containing the results of the function force_text, called with an argument c, for every c in categories.",categories = [ force_text ( c ) for c in categories ]
1129,from django.utils.functional import curry and Promise into default name space.,"from django . utils . functional import curry , Promise"
1130,append string '' to output.,output . append ( '' )
1131,"define the method get_many with 3 arguments, self class instance, keys and version set to None.","new_keys = [ self . make_key ( x , version = version ) for x in keys ]"
1132,"if source is an instance of inst class,","if isinstance ( source , inst ) :"
1133,directory_created is an empty dictionary.,directory_created = { }
1134,substitute auto_id for value under the 'id' key of the attrs dictionary.,attrs [ 'id' ] = auto_id
1135,"call the method router.db_for_write with argument self.cache_model_class, substitute the result for db.",db = router . db_for_write ( self . cache_model_class )
1136,"if as_ is not equal to string 'as',",if as_ != 'as' :
1137,"(?P\w+)(?:%(arg_sep)s(?:(?P%(constant)s)|(?P[%(var_chars)s]+|%(num)s)))?)"", where 'constant' is replaced with constant_string, 'num' with raw string '[-+\.]?\d[\d\.e]*', 'var_chars' with string ""\w\."", 'filter_sep' with result of the function re.escape called with an argument FILTER_SEPARATOR, anbd 'arg_sep' with result of the function re.escape called with an argument FILTER_ARGUMENT_SEPARATOR. call the function re.compile with 2 arguments: filter_raw_string and result for bitwise OR on 2 operands re.UNICODE and re.VERBOSE,","filter_re = re . compile ( filter_raw_string , re . UNICODE | re . VERBOSE )"
1138,"if not,",else :
1139,label is a string 'label',label = 'label'
1140,substitute timeout for self.timeout.,self . timeout = timeout
1141,"call the method handler.addQuickElement with 3 arguments: string 'category', an empty string and a dictionary with an entry:","handler . addQuickElement ( ""category"" , """" , { ""term"" : cat } )"
1142,"if self.localize is true,",if self . localize :
1143,derive the class Truncator form the SimpleLazyObject class.,class Truncator ( SimpleLazyObject ) :
1144,"where '%s' is replaced with parse_until elements joined into a string, separated with ', '. define the method compile_filter_error with 3 arguments: self, token and e.","def compile_filter_error ( self , token , e ) :"
1145,"if ImportError, renamed to exc, exception is caught,",except ImportError as exc :
1146,"gett self.attr from the module object, return it.","return getattr ( module , self . attr )"
1147,"if not,",else :
1148,old_style_list is boolean True.,old_style_list = True
1149,"substitute the result for value under the index key of the hextets dictionary. get the value under the index key of the hextets dictionary, if it is false,",if not hextets [ index ] :
1150,"call the function urlunsplit with an argument tuple with 4 elements: scheme, netloc, path, query and fragment, substitute the result for url.","url = urlunsplit ( ( scheme , netloc , path , query , fragment ) )"
1151,return boolean False.,return False
1152,"call the method self.max_expr.resolve with an argument context, substitute the result for max_value.",max_value = self . max_expr . resolve ( context )
1153,substitute localize for self.localize.,self . localize = localize
1154,"call the method self.iteritems, return list of results.",return list ( self . iteritems ( ) )
1155,define the function safeseq with an argument value.,def safeseq ( value ) :
1156,"get the value under the key 'only' of the options dictionary, if it exists substitute the result for isolated_context,","isolated_context = options . get ( 'only' , False )"
1157,"call the method data.encode with 2 arguments: fp.encoding and errors, substitute the result for data.","data = data . encode ( fp . encoding , errors )"
1158,"define the method __wrapper__ with 3 arguments: self, unpacked list args and unpacked dictionary kw.","def __wrapper__ ( self , * args , ** kw ) :"
1159,define the function escape_quotes with an argument m.,def escape_quotes ( m ) :
1160,"finally perform,",finally :
1161,"from .. import Warning, register and Tags into default name space.","from . . import Warning , register , Tags"
1162,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
1163,do nothing.,pass
1164,raise an exception.,raise
1165,child_nodelists is a tuple with 2 initial elements: strings 'nodelist_true' and 'nodelist_false'.,"child_nodelists = ( 'nodelist_true' , 'nodelist_false' )"
1166,"if attrvalue is not an empty string,",if attrvalue :
1167,"if bcc is true,",if bcc :
1168,"get the value under the 'indent' key of self.options dictionary, if it is true,",if self . options . get ( 'indent' ) :
1169,cache is an empty dictionary.,cache = dict ( )
1170,"define the method add with 5 arguments, self, key, value, timeout defaulting to DEFAULT_TIMEOUT and version defaulting to None.","def add ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
1171,call the method parser.delete_first_token.,parser . delete_first_token ( )
1172,"call the method block_context.pop with an argument self.name, assign the result to push and block.",push = block = block_context . pop ( self . name )
1173,"call the function re.compile with 2 arguments: raw string '<%s(/?>|(\s+[^>]*>))' formated with tags_re and re.U,","starttag_re = re . compile ( r'<%s(/?>|(\s+[^>]*>))' % tags_re , re . U )"
1174,substitute second element of elt for param.,param = elt [ 1 ]
1175,"define the method emit_post_migrate with arguments verbosity, interactive and database.","def emit_post_migrate ( verbosity , interactive , database ) :"
1176,"if ImportError exception is caught,",except ImportError :
1177,append a tuple with 2 entries lang and priority to result.,"result . append ( ( lang , priority ) )"
1178,set attr attribute of the self object to value.,"setattr ( self , attr , value )"
1179,"if not,",else :
1180,"return dictionary created out of tuple elements k and printable representation of v,","return dict ( ( k , repr ( v ) ) for k , v in module . __dict__ . items ( ) if not omittable ( k ) )"
1181,format_key is a string 'DATETIME_INPUT_FORMATS'.,format_key = 'DATETIME_INPUT_FORMATS'
1182,derive the class IPAddressField from the base class CharField class.,class IPAddressField ( CharField ) :
1183,return self.__to_language.,return self . __to_language
1184,"if not,",else :
1185,"special_floats is an list with 3 elements, pos_inf, neg_inf and nan, all converted to strings.","special_floats = [ str ( pos_inf ) , str ( neg_inf ) , str ( nan ) ]"
1186,"if item_date is true,",if item_date :
1187,"open err_log file in append mode with buffering size of the input buffer, substitute the result for sys.stderr.","sys . stderr = open ( err_log , 'a' , buffering )"
1188,set opname attribute of cls object to opfunc.,"setattr ( cls , opname , opfunc )"
1189,define the method _should_delete_form with an argument self.,"def _should_delete_form ( self , form ) :"
1190,"call the method urlparse with an argument url, substitute the result for bits.",bits = urlparse ( url )
1191,import module os.,import os
1192,from django.dispatch import Signal into default name space.,from django . dispatch import Signal
1193,"if middle starts with opening,",if middle . startswith ( opening ) :
1194,"sum bottom and self.per_page, substitute the result for top.",top = bottom + self . per_page
1195,"call the method os.path.splitext with an argument base, substitute the result for base and ext, respectively.","base , ext = os . path . splitext ( base )"
1196,"from django.utils.html import format_html, format_html_join and escape into default name space.","from django . utils . html import format_html , format_html_join , escape"
1197,call the method self.configure_root with an argument root.,self . configure_root ( root )
1198,"call the method formfield_callback with 2 arguments: f and unpacked dictionary kwargs, substitute the result for formfield.","formfield = formfield_callback ( f , ** kwargs )"
1199,"if not,",else :
1200,"if not,",else :
1201,"if localized_fields is not None,",if localized_fields is not None :
1202,"substitute '%s' in string '<%s %s %s>' with self.__class__.__name__, self.name and self.regex.pattern, respectively,","return force_str ( '<%s %s %s>' % ( self . __class__ . __name__ , self . name , self . regex . pattern ) )"
1203,replace tags for check.tags.,check . tags = tags
1204,"self.connection is a instance of a class contained in connection_class, instantiated with arguments: self.host, self.port,","self . connection = connection_class ( self . host , self . port , ** connection_params )"
1205,"call the method node.render with an argument context, return the result.",return node . render ( context )
1206,call the method closable.close.,closable . close ( )
1207,derive the class MediaDefiningClass from the type base class.,class MediaDefiningClass ( type ) :
1208,substitute prefix for common_prefix.,common_prefix = prefix
1209,"if verbosity is greater or equal to integer 2,",if verbosity >= 2 :
1210,append f.name to ignored list.,ignored . append ( f . name )
1211,"value under the 'primary_key' key of the extra_params dictionary is boolean True,",extra_params [ 'primary_key' ] = True
1212,"if url_info.netloc is false or url_info.netloc equals host, and if url_info.scheme is false or url_info.scheme equals,","return ( ( not url_info . netloc or url_info . netloc == host ) and ( not url_info . scheme or url_info . scheme in [ 'http' , 'https' ] ) )"
1213,"call the self.domain_regex.match method with an argument domain_part, if it evaluates to true,",if self . domain_regex . match ( domain_part ) :
1214,"if self.is_bound is true,",if self . is_bound :
1215,import module os.,import os
1216,"call the method pulldom.parse with arguments: self.stream and return value of the method self._make_parser,","self . event_stream = pulldom . parse ( self . stream , self . _make_parser ( ) )"
1217,print opt_label to the standard output.,print ( opt_label )
1218,"if text is an instance of SafeData, safe_input is boolean True, otherwise is boolean False.","safe_input = isinstance ( text , SafeData )"
1219,from django.core.management import call_command into default name space.,from django . core . management import call_command
1220,"if KeyError exception is caught,",except KeyError :
1221,"define the function get_template_from_string with 3: source, origin set to None and name set to None.","def get_template_from_string ( source , origin = None , name = None ) :"
1222,substitute digits for self.digits.,self . digits = digits
1223,return proxy.,return proxy
1224,"if new_name is contained in used_column_names,",if new_name in used_column_names :
1225,"if _globs_ is None,",if _globs_ is None :
1226,substitute _globs_ with an argument _locs_.,_locs_ = _globs_
1227,"get frag attribute from found object, substitute it for found.","found = getattr ( found , frag )"
1228,do nothing,pass
1229,lineno_comment_map is an dictionary.,lineno_comment_map = { }
1230,"split server with ';' as delimiter, substitute the result for self._servers.",self . _servers = server . split ( ';' )
1231,"if code is None,",if code is None :
1232,"where '%d' is replaced with name, dlen subtracted from alen, and plen. return boolean True.",return True
1233,append None to bits.,bits . append ( None )
1234,return default.,return default
1235,"call the function get_token with an argument request, substitute the result for token.",token = get_token ( request )
1236,append str_hidden to output.,output . append ( str_hidden )
1237,return dec.,return dec
1238,"append the result to pieces. otherwise if piece is true,",elif piece :
1239,"for every key in self,",for key in self :
1240,"if indent is false,",if not indent :
1241,"call the method parser.parse_args with argv, without the first 2 elements, substitute the result for options.",options = parser . parse_args ( argv [ 2 : ] )
1242,do nothing.,pass
1243,"call the method initial_form_count from the base class of the class BaseModelFormSet, return the result.","return super ( BaseModelFormSet , self ) . initial_form_count ( )"
1244,raise an ContentNotRenderedError exception with an argument string 'The response content must be rendered before it can be pickled.'.,raise ContentNotRenderedError ( 'The response content must be ' 'rendered before it can be pickled.' )
1245,"help is a string ""Updates database schema. Manages both apps with migrations and those without."".","help = ""Updates database schema. Manages both apps with migrations and those without."""
1246,EventHandler.modified_code is FILE_MODIFIED.,EventHandler . modified_code = FILE_MODIFIED
1247,"decorator stringfilter,",@ stringfilter
1248,"if fname file path exists,",if os . path . exists ( fname ) :
1249,define the method add_aguments with arguments self and parser.,"def add_arguments ( self , parser ) :"
1250,"bitwise shift integer 1 to the left by 63 spaces, substitute integer 1 from the result, convert the result to a integer, substitute it for MAXSIZE.",MAXSIZE = int ( ( 1 << 63 ) - 1 )
1251,field_list is an empty list.,field_list = [ ]
1252,return response.,return response
1253,return None.,return None
1254,import module gettext as gettext_module.,import gettext as gettext_module
1255,"call the function check_for_language with an argument lang, if it evaluates to false,",if not check_for_language ( lang ) :
1256,value is None.,value = None
1257,"define the initialization method __init__ with 3 arguments: self, name and params.","def __init__ ( self , name , params ) :"
1258,"call the method self._iteritems, for every k and v in the result,","for k , v in self . _iteritems ( ) :"
1259,result is an integer 0.,result = 0
1260,"call the method content.decode with an argument string 'utf-8', substitute it for content.",content = content . decode ( 'utf-8' )
1261,"if level is not None,",if level is not None :
1262,define the function save_m2m.,def save_m2m ( ) :
1263,"if not,",else :
1264,"replace every occurrence of '\\' in tok with 'U', substitute the result for tok.","tok = tok . replace ( ""\\"" , ""U"" )"
1265,derive the class DjangoTranslation from gettext_module.GNUTranslations base class.,class DjangoTranslation ( gettext_module . GNUTranslations ) :
1266,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
1267,combined is an instance of Media class.,combined = Media ( )
1268,define the method __eq__ with arguments self and other.,"def __eq__ ( self , other ) :"
1269,"get property attribute _get_width, and substitute it for width.",width = property ( _get_width )
1270,substitute pickled for value under the key key of self._cache dictionary.,self . _cache [ key ] = pickled
1271,return input_val.,return input_val
1272,raise an NotImplementedError exception with argument string 'subclasses of Storage must provide a created_time() method'.,raise NotImplementedError ( 'subclasses of Storage must provide a created_time() method' )
1273,"if value is false,",if not value :
1274,"if i is contained in relations, is_relation is boolean True, otherwise is_relation is boolean False.",is_relation = i in relations
1275,"call the method self.var1.resolve with 2 arguments: context and boolean True, substitute the result for val2.","val1 = self . var1 . resolve ( context , True )"
1276,define the method url with arguments self and name.,"def url ( self , name ) :"
1277,substitute warning for self.warning.,self . warning = warning
1278,call the function cache.close.,cache . close ( )
1279,"call the function get_callable with an argument callback, return the result and an empty dictionary.","return get_callable ( callback ) , { }"
1280,"if m is false,",if not m :
1281,"if cleaned_line ends with ';' character,","if cleaned_line . endswith ( "";"" ) :"
1282,"where '%s' is replaced with first upto elements of token string, token string elements from upto to start index, and token string elements from start index to the end. if var_obj is None,",if var_obj is None :
1283,"if OSError, renamed to e, exception is caught,",except OSError as e :
1284,"if self is an instance of nodetype,","if isinstance ( self , nodetype ) :"
1285,"if sub_tried is not None,",if sub_tried is not None :
1286,return msg_count.,return msg_count
1287,"call the method payload.decode with 2 arguments: string 'ascii' and string 'surrogateescape', substitute the result for self._payload.","self . _payload = payload . decode ( 'ascii' , 'surrogateescape' )"
1288,return an empty string.,return ''
1289,import pickle.,import pickle
1290,decorator function wraps with an argument fdel.,@ wraps ( fdel )
1291,define the method _cache with argument self.,def _cache ( self ) :
1292,from django.core.files.utils import FileProxyMixin into default name space.,from django . core . files . utils import FileProxyMixin
1293,"if value is boolean True, string 'True' or string '1',","if value in ( True , 'True' , '1' ) :"
1294,"RemovedInDjango19Warning and integer 2 as arguments. if self does not have an '_request' attribute,","if not hasattr ( self , '_request' ) :"
1295,"define the method __init__ with 4 arguments: self, nodelist_true, nodelist_false and unpacked list varlist.","def __init__ ( self , nodelist_true , nodelist_false , * varlist ) :"
1296,"define the method __init__ with 5 arguments: self, data, encoder set to DjangoJSONEncoder, safe set to boolean True,","def __init__ ( self , data , encoder = DjangoJSONEncoder , safe = True , ** kwargs ) :"
1297,"call the method match.end, substitute the result for upto.",upto = match . end ( )
1298,"name set to self.file_name, content_type set to self.content_type, size set to file_size, charset set to self.charset, and content_type_extra set to self.content_type_extra, return it. define the function load_handler with arguments: path, unpacked list args and unpacked dictionary kwargs.","def load_handler ( path , * args , ** kwargs ) :"
1299,from django.conf import settings into default name space.,from django . conf import settings
1300,call the s.serialize method with arguments queryset and unpacked dictionary options.,"s . serialize ( queryset , ** options )"
1301,define the method read with self class instance and size set to None as arguments.,"def read ( self , size = None ) :"
1302,otherwise if name equals a string 'id'.,elif name == 'id' :
1303,from django.apps import apps into default name space.,from django . apps import apps
1304,"substitute link for value under the NEXT key of the last dictionary, for value under the PREV key of the root dictionary,",last [ NEXT ] = root [ PREV ] = cache [ key ] = link
1305,define the function gettext with an argument message.,def gettext ( message ) :
1306,TOKEN_VAR is integer 1,TOKEN_VAR = 1
1307,"otherwise if self.reason_phrase is None,",elif self . reason_phrase is None :
1308,"call the method b64encoded.decode with string 'latin1' as argument, substitute the result for b64encoded.",b64encoded = b64encoded . decode ( 'latin1' )
1309,"split ip_str into parts by ':', if '.' is contained in the last element of the result,",if '.' in ip_str . split ( ':' ) [ - 1 ] :
1310,"call the function io.open with 3 arguments: potfile, string 'a' and encoding set to string 'utf-8' as arguments,","with io . open ( potfile , 'a' , encoding = 'utf-8' ) as fp :"
1311,d is an instance of Decimal class created with an argument input_val.,d = Decimal ( input_val )
1312,"try,",try :
1313,for every cache in return value of the function caches.all.,for cache in caches . all ( ) :
1314,call the method stream.unget with list containing elements of chunk list from the header_end incremented by integer 4 as a start index to the end as argument.,stream . unget ( chunk [ header_end + 4 : ] )
1315,"if shell is true substitute list with element shell for available_shells, if not substitute self.shells for available_shells.",available_shells = [ shell ] if shell else self . shells
1316,append template_dir to app_template_dirs.,app_template_dirs . append ( template_dir )
1317,from django.core.exceptions import ImproperlyConfigured and ViewDoesNotExist into default name space.,"from django . core . exceptions import ImproperlyConfigured , ViewDoesNotExist"
1318,"password set to auth_password, fail_silently set to fail_silently as arguments, assign the result to connection. call the EmailMessage function wit subject, message, sender, recipient and connection set to connection,","messages = [ EmailMessage ( subject , message , sender , recipient , connection = connection ) for subject , message , sender , recipient in datatuple ]"
1319,"if message is an instance of dict type,","if isinstance ( message , dict ) :"
1320,return self._upload_handlers.,return self . _upload_handlers
1321,substitute value for field.name key of self._current dictionary.,self . _current [ field . name ] = value
1322,"if response.streaming is boolean False,",if not response . streaming :
1323,"call the method parser.compile_filter with an argument first element of bits, substitute the result for target.",target = parser . compile_filter ( bits [ 1 ] )
1324,return all the results in a list. decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
1325,"if not,",else :
1326,new_second_item is an empty list.,new_second_item = [ ]
1327,define the method IE_sanitize with arguments self and filename.,"def IE_sanitize ( self , filename ) :"
1328,"split into two parts string main_value_pair at character ':', substitute the parts for name and value, respectively.","name , value = main_value_pair . split ( ':' , 1 )"
1329,"try,",try :
1330,return None.,return None
1331,import module decimal.,import decimal
1332,"if i-th element of subject is '""' character or ""'"" character,","if subject [ i ] in ( '""' , ""'"" ) :"
1333,call method mail.attach_alternative as html_message and string 'text/hmtl' as arguments.,"mail . attach_alternative ( html_message , 'text/html' )"
1334,define the method __call__ with arguments self and value.,"def __call__ ( self , value ) :"
1335,"replace all the elements of the basedir list by its corresponding absolute directory path, only is that directory exists.",basedirs = [ os . path . abspath ( basedir ) for basedir in basedirs if os . path . isdir ( basedir ) ]
1336,return r.,return r
1337,current_len is equal to integer 0.,current_len = 0
1338,"help is a tuple containing a string ""Runs the command-line client for specified database, or the default database if none is provided."".","help = ( ""Runs the command-line client for specified database, or the "" ""default database if none is provided."" )"
1339,"call the method self.create_token with 2 arguments bit and in_tag, append the result to result.","result . append ( self . create_token ( bit , in_tag ) )"
1340,"try,",try :
1341,define the method __getstate__ with an argument self.,def __getstate__ ( self ) :
1342,substitute size for self.size.,self . size = size
1343,"call the method handler.addQuickElement with 2 arguments: string 'lastBuildDate' and result of the function rfc2822_date,","handler . addQuickElement ( ""lastBuildDate"" , rfc2822_date ( self . latest_post_date ( ) ) )"
1344,"where '%s' is replaced with opts.object_name and fail_message, respectively. define the function save_m2m.",def save_m2m ( ) :
1345,"call the method match.groupdict, substitute the result for kw.",kw = match . groupdict ( )
1346,"substitute the '%s' with table and list containing key, respectively. fetch one entry from the database that cursor points at, substitute it for the result.",result = cursor . fetchone ( )
1347,define the method sign with arguments self and value.,"def sign ( self , value ) :"
1348,"help is a string ""Squashes an existing set of migrations (from first until specified) into a single new one."".","help = ""Squashes an existing set of migrations (from first until specified) into a single new one."""
1349,substitute self.fk.name for name.,name = self . fk . name
1350,"if _serializers is false,",if not _serializers :
1351,do nothing.,pass
1352,call the function _load_serializers.,_load_serializers ( )
1353,"call the function middleware_method with the request and response as the arguments, assign the result to response.","response = middleware_method ( request , response )"
1354,"call the function get_format with an argument string 'DATE_INPUT_FORMATS', substitute the first element of the result for input_format.",input_format = get_format ( 'DATE_INPUT_FORMATS' ) [ 0 ]
1355,streaming is boolean True.,streaming = True
1356,self._files is an instance of class MultiValueDict. define the method close with an argument self.,def close ( self ) :
1357,import module sys.,import sys
1358,"call the method handler.addQuickElement with 3 arguments: string 'link', an empty string and a dictionary with 2 entries:","handler . addQuickElement ( ""link"" , """" , { ""rel"" : ""self"" , ""href"" : self . feed [ 'feed_url' ] } )"
1359,inplural is boolean True.,inplural = True
1360,"if self.data.hour equals integer 0,",if self . data . hour == 0 :
1361,"if filename ends with string '.mo',",if filename . endswith ( '.mo' ) :
1362,define the method handle with 3 arguments: self and unpacked dictionary options.,"def handle ( self , ** options ) :"
1363,"raise an CommandError exception with an argument string ""%r is not a valid port number."", where '%r' is repaced with self.port.","raise CommandError ( ""%r is not a valid port number."" % self . port )"
1364,"split settings.SETTINGS_MODULE by '.' character, substitute the first element of the result for project_name.",project_name = settings . SETTINGS_MODULE . split ( '.' ) [ 0 ]
1365,derive the class HttpResponseBase from the six.Iterator base class.,class HttpResponseBase ( six . Iterator ) :
1366,import module warnings.,import warnings
1367,"get the value under the key 'exclude' of the options dictionary, substitute it for exclude.",exclude = options . get ( 'exclude' )
1368,"call the method self.render_option with 3 arguments: selected_choices, option_value and option_label, append the result to output.","output . append ( self . render_option ( selected_choices , option_value , option_label ) )"
1369,"call the encode function on the Header class instance, created with arguments nm and encoding, substitute the result for nm.","nm = Header ( nm , encoding ) . encode ( )"
1370,define the function _generator.,def _generator ( ) :
1371,"if self.fail_silently is boolean False,",if not self . fail_silently :
1372,"if key is not contained in self,",if key not in self :
1373,"try,",try :
1374,"define the method __init__ with arguments self, input_formats set to None, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , input_formats = None , * args , ** kwargs ) :"
1375,derive the class MergeDict from the object base class.,class MergeDict ( object ) :
1376,from django.template.base import TemplateDoesNotExist into default name space.,from django . template . base import TemplateDoesNotExist
1377,"write string "" Installing indexes...\n"" to the standard output.","self . stdout . write ( "" Installing indexes...\n"" )"
1378,import module time.,import time
1379,"call the method self.nodelist.render with an argument context, return the result.",return self . nodelist . render ( context )
1380,"get the value under the 'exclude' key of the options dictionary, substitute the result for exclude.",excludes = options . get ( 'exclude' )
1381,"call the method handler.addQuickElement with 2 arguments: string 'published' and result of the function rfc3339_date,","handler . addQuickElement ( 'published' , rfc3339_date ( item [ 'pubdate' ] ) )"
1382,"if query_string is an instance of bytes,","if isinstance ( query_string , bytes ) :"
1383,status_code is an integer 200.,status_code = 200
1384,call the add_arguments method from the base class of the class Command with parser as an argument.,"super ( Command , self ) . add_arguments ( parser )"
1385,from django.db.migrations import Migration into default name space.,from django . db . migrations import Migration
1386,output_transaction is boolean True.,output_transaction = True
1387,self.error_class is a string 'errorlist'.,self . error_class = 'errorlist'
1388,"slice the list from the i-th to the endpos-th element, substitute it for self.__starttag_text.",self . __starttag_text = rawdata [ i : endpos ]
1389,"call the method self.as_ul, return the result.",return self . as_ul ( )
1390,substitute first size elements of self.buffer for result.,result = self . buffer [ : size ]
1391,"call the resolver.resolve_error_handler with integer 500 as the argument, assign the resulting tuple elements to the callback,","callback , param_dict = resolver . resolve_error_handler ( 500 )"
1392,"call the method m.end with an argument integer 0, substitute the result for pos.",pos = m . end ( 0 )
1393,"define the method handle_m2m_field with argument self, obj and field.","def handle_m2m_field ( self , obj , field ) :"
1394,"return an empty string,",return ''
1395,remove first 2 and last 2 elements from var.,var = var [ 2 : - 1 ]
1396,"call the method one_percent_re.sub with 2 arguments: string '%%' and t.contents, substitute the result for contents.","contents = one_percent_re . sub ( '%%' , t . contents )"
1397,settings.USE_I18N is boolean True.,settings . USE_I18N = True
1398,"and help set to string 'One or more application label.'. define the method handle with 3 arguments: self, unpacked list app_labels and unpacked dictionary options.","def handle ( self , * app_labels , ** options ) :"
1399,"if field_value is an instance of the str type,","if isinstance ( field_value , str ) :"
1400,write data bytes to outfile.,outfile . write ( data )
1401,call the method command.stdout.write with an argument errors.,command . stdout . write ( errors )
1402,"default set to boolean True and help set to string 'Tells Django to NOT prompt the user for input of any kind.'. call the parser.add_argument with string '--addrport', default set to an empty string and help as string 'Port number or ipaddr:port to run the server on.'.","parser . add_argument ( '--addrport' , default = '' , help = 'Port number or ipaddr:port to run the server on.' )"
1403,insert token at the beginning of self.tokens.,"self . tokens . insert ( 0 , token )"
1404,from django.core.management import call_command into default name space.,from django . core . management import call_command
1405,if data is an instance of bytes.,"if isinstance ( data , bytes ) :"
1406,"decorator stringfilter,",@ stringfilter
1407,"get the position of the file self.file pointer, substitute it for size.",size = self . file . tell ( )
1408,"if app_config.models_module is None,",if app_config . models_module is None :
1409,"if error has an attribute 'error_dict',","if hasattr ( error , 'error_dict' ) :"
1410,"name is a string ""_%d"" formated with num_args.","name = ""_%d"" % num_args"
1411,"get the value under the name key of the data dictionary, if it exists substitute it for value, if not, value is None.","value = data . get ( name , None )"
1412,"define the method load_template_source with 3 arguments: self, template_name and template_dirs set to None.","def load_template_source ( self , template_name , template_dirs = None ) :"
1413,"get _iterkeys attribute of the class d, call the result with an argument unpacked dictionary kw, convert the result to a iterable,","return iter ( getattr ( d , _iterkeys ) ( ** kw ) )"
1414,define the method __repr__ with argument self.,def __repr__ ( self ) :
1415,substitute _iterkeys for __iter__.,__iter__ = _iterkeys
1416,"from django.core.urlresolvers import reverse, NoReverseMatch.","from django . core . urlresolvers import reverse , NoReverseMatch"
1417,return self._errors.,return self . _errors
1418,define the method _get_name with argument self.,def _get_name ( self ) :
1419,"call the function datetime.utcnow, substitute the result for now.",now = datetime . utcnow ( )
1420,value under the self.var_name key of the context dictionary is an list with dictionary elements with 2 entries:,"context [ self . var_name ] = [ { 'grouper' : key , 'list' : list ( val ) } for key , val in groupby ( obj_list , lambda obj : self . resolve_expression ( obj , context ) ) ]"
1421,"call the function force_text with an argument message, return the result.",result = force_text ( message )
1422,"if register_to is true,",if register_to :
1423,"msgid is a string '<%s.%s.%s%s@%s>', replace '%s' with utcdate, pid, randint, idstring and idhost, respectively.","msgid = '<%s.%s.%s%s@%s>' % ( utcdate , pid , randint , idstring , idhost )"
1424,return the value under the language_code key of the self._reverse_dict dictionary.,return self . _reverse_dict [ language_code ]
1425,"if exception LookupError is caught,",except LookupError :
1426,"get format_type attribute of module object, substitute the result for val.","val = getattr ( module , format_type )"
1427,"if not,",else :
1428,"if not,",else :
1429,"if self.verbosity is greater or equal to integer 1,",if self . verbosity >= 1 :
1430,"call the method as_tuple on the result, substitute the result for sign, digits and exponent, respectively. append result of method six.text_type called with an argument digit to an list, for every digit in reversed order of digits,",digits = [ six . text_type ( digit ) for digit in reversed ( digits ) ]
1431,"call the method self.make_view_atomic with callback as the argument, substitute the result for the wrapped_callback.",wrapped_callback = self . make_view_atomic ( callback )
1432,return guessed_path.,return guessed_path
1433,truncate the last element of filename.,filename = filename [ : - 1 ]
1434,"if not,",else :
1435,define the method clean with arguments self and value.,"def clean ( self , value ) :"
1436,"call the method __init__ from the base class of the class SimpleTemplateResponse, return the result.","return super ( SimpleTemplateResponse , self ) . __iter__ ( )"
1437,"try,",try :
1438,"if value is None,",if value is None :
1439,"if self.required is true,",if self . required :
1440,do nothing.,pass
1441,"try,",try :
1442,"call the function translation with an argument settings.LANGUAGE_CODE, substitute the result for default_translation.",default_translation = translation ( settings . LANGUAGE_CODE )
1443,"call the method self.sequence.resolve with 2 arguments: context and boolean True, substitute the result for values.","values = self . sequence . resolve ( context , True )"
1444,"if first element of sys.version_info equals integer 2, PY2 is boolean True, otherwise it is boolean False.",PY2 = sys . version_info [ 0 ] == 2
1445,define the method as_json with 2 arguments self and escape_html set to boolean False.,"def as_json ( self , escape_html = False ) :"
1446,"raise an ImproperlyConfigured exception wiht an argument string 'Command %s defines both ""requires_model_validation"" '","raise ImproperlyConfigured ( 'Command %s defines both ""requires_model_validation"" ' 'and ""requires_system_checks"", which is illegal. Use only ' '""requires_system_checks"".' % self . __class__ . __name__ )"
1447,"call the method m.groupdict, substitute the result for d.",d = m . groupdict ( )
1448,"if six.PY2 is boolean True,",if six . PY2 :
1449,define the function get_script_prefix.,def get_script_prefix ( ) :
1450,"try,",try :
1451,from django.utils import six into default name space.,from django . utils import six
1452,substitute second element of bits without the first and last element for format_string.,format_string = bits [ 1 ] [ 1 : - 1 ]
1453,"replace ""%s"" from the string ' class=""%s""' with css_classes, substitute it for html_class_attr.","html_class_attr = ' class=""%s""' % css_classes"
1454,"call the method self.stdout.write with an argument string ""Installed %d object(s) (of %d) from %d fixture(s)"",","self . stdout . write ( ""Installed %d object(s) (of %d) from %d fixture(s)"" % ( self . loaded_object_count , self . fixture_object_count , self . fixture_count ) )"
1455,substitute i-th element of self.forms for form.,form = self . forms [ i ]
1456,call the function _load_serializers.,_load_serializers ( )
1457,"get value under the 'register_to' key of the kwargs dictionary, substitute it for register_to.",register_to = kwargs . get ( 'register_to' )
1458,"define the method get with 3 arguments: self, header and alternate set to None.","def get ( self , header , alternate = None ) :"
1459,from django.utils.encoding import python_2_unicode_compatible into default name space.,from django . utils . encoding import python_2_unicode_compatible
1460,define the method __repr__ with an argument self.,def __repr__ ( self ) :
1461,"do nothing,",pass
1462,"if year is lesser than integer 70,",if year < 70 :
1463,define the method _send with arguments self and email_message.,"def _send ( self , email_message ) :"
1464,"if self.field.label_suffix is not None, substitute self.field.label_suffix for label_suffix,",label_suffix = ( self . field . label_suffix if self . field . label_suffix is not None else self . form . label_suffix )
1465,"call the self._lock.writer method, with the result perform the following,",with self . _lock . writer ( ) :
1466,"flat is an empty dictionary,",flat = { }
1467,"DEFAULT_ATTACHMENT_MIME_TYPE, make_msgid, BadHeaderError and forbid_multi_line_headers into default name space. __all__ is a list of strings, 'CachedDnsName', 'DNS_NAME', 'EmailMessage', 'EmailMultiAlternatives', 'SafeMIMEText',","__all__ = [ 'CachedDnsName' , 'DNS_NAME' , 'EmailMessage' , 'EmailMultiAlternatives' , 'SafeMIMEText' , 'SafeMIMEMultipart' , 'DEFAULT_ATTACHMENT_MIME_TYPE' , 'make_msgid' , 'BadHeaderError' , 'forbid_multi_line_headers' , 'get_connection' , 'send_mail' , 'send_mass_mail' , 'mail_admins' , 'mail_managers' , ]"
1468,define the function do_if with 2 arguments: parser and token.,"def do_if ( parser , token ) :"
1469,"if headers exists substitute it for self.extra_headers, if not extra_headers is an empty dictionary.",self . extra_headers = headers or { }
1470,"for every key_value in natural,",for key_value in natural :
1471,"description is a string ""The '%s' function"" replaced by value of receiver.__name__.","description = ""The '%s' function"" % receiver . __name__"
1472,"get the value under the 'keep_pot' key of the options dictionary, substitute it for self.keep_pot.",self . keep_pot = options . get ( 'keep_pot' )
1473,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
1474,parser._namedCycleNodes is an empty dictionary.,parser . _namedCycleNodes = { }
1475,"if 'date' is not in header_names,",if 'date' not in header_names :
1476,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
1477,define the function center with 2 arguments value and arg.,"def center ( value , arg ) :"
1478,"if bad_app_labels is true,",if bad_app_labels :
1479,define the method __getitem__ with an argument self.,"def __getitem__ ( self , i ) :"
1480,import module calendar.,import calendar
1481,"otherwise if value is an instance of datetime.time,","elif isinstance ( value , datetime . time ) :"
1482,"call the function datetime_safe.new_datetime with an argument date, substitute the result for date.",date = datetime_safe . new_datetime ( date )
1483,call the method logger.removeHandler with an argument h.,logger . removeHandler ( h )
1484,import module warnings.,import warnings
1485,object_data is an empty dictionary.,object_data = { }
1486,substitute self.files for value under the 'files' key of the defaults dictionary.,defaults [ 'files' ] = self . files
1487,"decorator stringfilter,",@ stringfilter
1488,from django.core.management.base import AppCommand into default name space.,from django . core . management . base import AppCommand
1489,"for every handler in handlers,",for handler in handlers :
1490,call the method parser.add_argument with 2 arguments: string 'name' and help set to string 'Name of the application or project.'.,"parser . add_argument ( 'name' , help = 'Name of the application or project.' )"
1491,return attachment.,return attachment
1492,"filter all the subcommands element through the lambda function with an argument x, that evaluates the method x.startswith,","print ( ' ' . join ( sorted ( filter ( lambda x : x . startswith ( curr ) , subcommands ) ) ) )"
1493,derive the class WSGIRequestHandler from simple_server.WSGIRequestHandler and object base classes.,"class WSGIRequestHandler ( simple_server . WSGIRequestHandler , object ) :"
1494,call the function os.unlink with an argument work_file.,os . unlink ( work_file )
1495,if ending is None substitute self.ending for ending.,ending = self . ending if ending is None else ending
1496,"define the method __init__ with 10 arguments: self, subject set to an empty string, body set to an empty string,","def __init__ ( self , subject = '' , body = '' , from_email = None , to = None , bcc = None , connection = None , attachments = None , headers = None , cc = None ) :"
1497,do nothing.,pass
1498,"if not,",else :
1499,from django.core.exceptions import ValidationError into default name space.,from django . core . exceptions import ValidationError
1500,return self._fqdn.,return self . _fqdn
1501,return the length of self.children.,return len ( self . children )
1502,"from django.utils.text import Truncator, wrap and phone2numeric into default name space.","from django . utils . text import Truncator , wrap , phone2numeric"
1503,from django.db import models into default name space.,from django . db import models
1504,"if ImportError exception is caught,",except ImportError :
1505,params is a dictionary with 2 initial entries: self.limit_value for 'limit_value' and cleaned for 'show_value'.,"params = { 'limit_value' : self . limit_value , 'show_value' : cleaned }"
1506,"try,",try :
1507,help is a string 'Runs a development server with data from the given fixture(s).'.,help = 'Runs a development server with data from the given fixture(s).'
1508,"if SystemExit exception is caught,",except SystemExit :
1509,"call the function lazy with 2 arguments: lambda function with unpacked dictionary kwargs as an argument and return value an instance of NumberAwareString class and NumberAwareString, call the result with an argument unpacked dictionary kwargs, substitute the result for proxy.","proxy = lazy ( lambda ** kwargs : NumberAwareString ( ) , NumberAwareString ) ( ** kwargs )"
1510,"if not,",else :
1511,"return lambda function with text as argument and return value being result of the function colorize, called with 3 arguments: text,","return lambda text : colorize ( text , opts , ** kwargs )"
1512,"define the function modelform_factory with 10 arguments: model, form set to ModelForm, fields set to None, exclude set to None,","def modelform_factory ( model , form = ModelForm , fields = None , exclude = None , formfield_callback = None , widgets = None , localized_fields = None , labels = None , help_texts = None , error_messages = None ) :"
1513,yield string 'day' as an return value of the generator.,yield 'day'
1514,"'alternate' for 'rel' and value under the 'link' key of self.feed dictionary for 'href'. if value under the 'feed_url' key of the self.feed dictionary is not None,",if self . feed [ 'feed_url' ] is not None :
1515,"if middleware has an attribute 'process_response',","if hasattr ( middleware , 'process_template_response' ) :"
1516,"if i is greater than, or equal to subject,",if i >= len ( subject ) :
1517,supported is boolean True.,supported = True
1518,"raise a TypeError exception,",raise TypeError
1519,"decorator is an instance of class Node, created with 2 arguments: instance of Leaf class created with 2 arguments: token.AT and ""@',","decorator = Node ( syms . decorator , [ Leaf ( token . AT , ""@"" ) , Name ( 'python_2_unicode_compatible' ) ] )"
1520,plural is an empty list.,plural = [ ]
1521,break from the smallest enclosing loop execution.,break
1522,define the method close with an argument self.,def close ( self ) :
1523,can_import_settings is boolean False.,can_import_settings = False
1524,"if id_ is true,",if id_ :
1525,"bring integer 36 to the power of factor, substitute the result for j.",j = 36 ** factor
1526,return raw_data.,return raw_data
1527,return get_git_changeset.cache.,return get_git_changeset . cache
1528,"convert new_name to a string and append string 'field' to it, substitute the result for new_name.",new_name = '%sfield' % new_name
1529,"get the value under the state key of the regexes dictionary, call the method finditer on the result with 2 arguments: text and start,","for match in regexes [ state ] . finditer ( text , start ) :"
1530,"if not,",else :
1531,"try,",try :
1532,bits is an empty list.,bits = [ ]
1533,import module io.,import io
1534,"calculate length of chunk modulo integer 4, substitute the result for over_bytes.",over_bytes = len ( chunk ) % 4
1535,"define the method getlist with 3 arguments: self, key and default set to None.","def getlist ( self , key , default = None ) :"
1536,"for every d in reversed list self.dicts,",for d in reversed ( self . dicts ) :
1537,"get self.to_field attribute of self.parent_instance, substitute it for orig.","orig = getattr ( self . parent_instance , self . to_field )"
1538,"define the method receive_data_chunk with arguments: self, raw_data and start.","def receive_data_chunk ( self , raw_data , start ) :"
1539,cal the method self.startElement with 2 arguments: name and attrs.,"self . startElement ( name , attrs )"
1540,do nothing.,pass
1541,"raise an ValueError with an argument string ""The %s could not be %s because the data didn't validate."",","raise ValueError ( ""The %s could not be %s because the data didn't"" "" validate."" % ( opts . object_name , fail_message ) )"
1542,"if record.exc_info is true,",if record . exc_info :
1543,substitute complain for remove.,remove = complain
1544,"for every key and value in data.items function return value,","for key , value in data . items ( ) :"
1545,"call the method formats.sanitize_separators with an argument value, substitute the result for value.",value = formats . sanitize_separators ( value )
1546,"if _time.daylight is true,",if _time . daylight :
1547,if encoding equals to string 'utf-8'.,if encoding == 'utf-8' :
1548,args is an empty tuple.,args = ( )
1549,"call the method time.localtime with an argument stamp, substitute the result for tt.",tt = time . localtime ( stamp )
1550,"call the function dropwhile with 2 arguments: function len and msgs spit into parts at newlines, join the result into a string,","msgs = '\n' . join ( dropwhile ( len , msgs . split ( '\n' ) ) )"
1551,"if year is lesser than integer 100,",if year < 100 :
1552,_format_cache is an empty dictionary.,_format_cache = { }
1553,"for every i and row in enumerated result of the method connection.introspection.get_table_description called with arguments: cursor and table_name,","for i , row in enumerate ( connection . introspection . get_table_description ( cursor , table_name ) ) :"
1554,"call the method arg.resolve with an argument context, append the result to arg_vals.",arg_vals . append ( arg . resolve ( context ) )
1555,"convert number to string, if first element equals to sign,",if str ( number ) [ 0 ] == sign :
1556,from django.utils.text import normalize_newlines into default name space.,from django . utils . text import normalize_newlines
1557,do nothing.,pass
1558,"if not,",else :
1559,cache_key is a tuple with 2 argumetns: format_type and lang.,"cache_key = ( format_type , lang )"
1560,substitute value for self.value.,self . value = value
1561,"if header list is not None,",if headerlist is not None :
1562,biggest_number is integer 1.,biggest_number = 1
1563,define the method __bool__ with argument self.,def __bool__ ( self ) :
1564,"substitute the value under the 'HTTP_HOST' key of the self.META dictionary, substitute it for host.",host = self . META [ 'HTTP_HOST' ]
1565,"with all occurrences of '%s' replaced with app_name and model._meta.object_name and e, respectively. if self.show_traceback is true,",if self . show_traceback :
1566,"if jan1_weekday is greater than integer 4,",if jan1_weekday > 4 :
1567,if self._cull_frequency equals to integer 0.,if self . _cull_frequency == 0 :
1568,derive the class RegroupNode from Node base class.,class RegroupNode ( Node ) :
1569,nodelist_false is an instance of NodeList class.,nodelist_false = NodeList ( )
1570,DEBUG is integer 10.,DEBUG = 10
1571,call the method deactivate.,deactivate ( )
1572,"candidate_pat formated with candidate_subs and re.UNICODE. candidate_subs is dictionary created from elements in return value of the function urlquote called with argument v,","candidate_subs = dict ( ( k , urlquote ( v ) ) for ( k , v ) in candidate_subs . items ( ) )"
1573,"with name of the class type of the middleware_method instance, use it as the argument for call to the ValueError exception raise. call the response.render() method and assign the return to the response.",response = response . render ( )
1574,substitute sup_cls.media for base.,base = sup_cls . media
1575,do nothing.,pass
1576,skip this loop iteration.,continue
1577,"call the method pretty_name with an argument name, substitute the result for self.label.",self . label = pretty_name ( name )
1578,return base and ext.,"return base , ext"
1579,"if email_messages is false,",if not email_messages :
1580,"if not,",else :
1581,import module sys.,import sys
1582,"and _allow_fallback set to boolean True, extend the output with the result. return output.",return output
1583,return nothing.,return
1584,"convert items of attrs dictionary to list of tuples, for every attr and value in it,","for attr , value in list ( attrs . items ( ) ) :"
1585,"try,",try :
1586,self.charset is None.,self . charset = None
1587,"substitute the value under the ns key of the resolver.namespace_dict dictionary for extra and resolver, respectively.","extra , resolver = resolver . namespace_dict [ ns ]"
1588,"call the method widget_attrs with an argument widget, from the base class of the class IntegerField, substitute it for attrs.","attrs = super ( IntegerField , self ) . widget_attrs ( widget )"
1589,"call the method time.mktime with an argument tt, substitute the result for stamp.",stamp = time . mktime ( tt )
1590,define the emethod parse with 2 arguments: self and parse_until set to None.,"def parse ( self , parse_until = None ) :"
1591,element of data at the index last equals to carriage return bytes character.,if data [ last : last + 1 ] == b'\r' :
1592,"where '%s' is replaced with filter_name. call the method parser.parse with an argument tuple with an element string 'endfilter', substitute the result for nodelist.","nodelist = parser . parse ( ( 'endfilter' , ) )"
1593,"substitute DEFAULT_MAX_NUM for max_num,",max_num = DEFAULT_MAX_NUM
1594,"call the method m.groups, substitute the first element of the result for idx.",idx = m . groups ( ) [ 0 ]
1595,"replace every occurrence of ""'"" in s with ""\\'"".","s = s . replace ( ""'"" , ""\\'"" )"
1596,"replace all the occurrences of character '_' in name with a whitespace, capitalize the first letter and return the result.","return name . replace ( '_' , ' ' ) . capitalize ( )"
1597,import module warnings.,import warnings
1598,import module os.,import os
1599,substitute cls.__text_cast for cls.__text_cast.,cls . __unicode__ = cls . __text_cast
1600,define the method __len__ with argument self.,def __len__ ( self ) :
1601,"call the method self.nodelist.render with an argument context, substitute the result for output.",output = self . nodelist . render ( context )
1602,"if not,",else :
1603,"call the method self.split_leading_dir with an argument path, assign the result to prefix and rest, respectively.","prefix , rest = self . split_leading_dir ( path )"
1604,"compile a regex from raw string '^\s*(\w+)\s*', substitute it for WORD_PATTERN.",WORD_PATTERN = re . compile ( r'^\s*(\w+)\s*' )
1605,define the function csrf with an argument request.,def csrf ( request ) :
1606,"define the method add_arguments, with 2 arguments self and parser.","def add_arguments ( self , parser ) :"
1607,substitute self.field.label for self.label.,self . label = self . field . label
1608,"call the method token.contents.split, substitute the result for bits.",bits = token . contents . split ( )
1609,"call the method self.make_key with key and version set to version as arguments, substitute it for key.","key = self . make_key ( key , version = version )"
1610,meta is a string ''.,meta = ''
1611,write msg to self.stderr stream.,self . stderr . write ( msg )
1612,"call the function color_style, substitute the result for self.style.",self . style = color_style ( )
1613,"replace every occurrence of raw string '\\' in s with a raw string '\\\\', use the result and string ""unicode_escape"",","return unicode ( s . replace ( r'\\' , r'\\\\' ) , ""unicode_escape"" )"
1614,iterator is None.,iterator = None
1615,"if initial is not equal to data, return boolean True, if it is return boolean False.",return initial != data
1616,substitute first element of level for common_ancestor.,common_ancestor = level [ 0 ]
1617,return data.,return data
1618,return boolean False.,return False
1619,return attrs.,return attrs
1620,remove dirname from the dirnames.,dirnames . remove ( dirname )
1621,"if not,",else :
1622,"if not,",else :
1623,substitute i-th element of self.forms for form.,form = self . forms [ i ]
1624,define the method write with 2 arguments: self and value.,"def write ( self , content ) :"
1625,return boolean False.,return False
1626,default_attrs is an dictionary with 2 initial entries: string '40' for 'cols' and string '10' for 'rows'.,"default_attrs = { 'cols' : '40' , 'rows' : '10' }"
1627,"if LookupError exception is caught,",except LookupError :
1628,"for every format in settings.SERIALIZATION_MODULES,",for format in settings . SERIALIZATION_MODULES :
1629,"if self.is_bound is true and self.errors is false, return boolean True, otherwise return boolean False.",return self . is_bound and not self . errors
1630,substitute self.registered_checks for checks.,checks = self . registered_checks
1631,substitute out for self._out.,self . _out = out
1632,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
1633,"remove the value under 'max_length' key from the kwargs dictionary and if the key exists substitute it for self.max_length,","self . max_length = kwargs . pop ( 'max_length' , None )"
1634,"if not,",else :
1635,"define the method create_table with arguments self, database and tablename.","def create_table ( self , database , tablename ) :"
1636,"call method executor.collect_sql with plan as the argument, substitute the result for sql_statements.",sql_statements = executor . collect_sql ( plan )
1637,"return instance of _HashedSeq class, created with an argument key.",return _HashedSeq ( key )
1638,"call the function field.value_to_string with an argument obj, substitute the result for value under the field.name key of self._current dictionary.",self . _current [ field . name ] = field . value_to_string ( obj )
1639,"for every model in model_list,",for model in model_list :
1640,"if ip_str starts with ':, but it doesnt starts with '::', or if ip_str ends with ':, but it doesnt ends with '::',",if ( ( ip_str . startswith ( ':' ) and not ip_str . startswith ( '::' ) ) or ( ip_str . endswith ( ':' ) and not ip_str . endswith ( '::' ) ) ) :
1641,"if not,",else :
1642,"call the method bytes_to_text with 2 arguments: key and self.encoding, substitute the result for value.","value = bytes_to_text ( value , self . encoding )"
1643,"call the method __init__ from the base class of the class Textarea, with an argument default_attrs.","super ( Textarea , self ) . __init__ ( default_attrs )"
1644,define the method __eq__ with self and other arguments:,"def __eq__ ( self , other ) :"
1645,return exclude.,return exclude
1646,"try,",try :
1647,"if filter_name is contained in self.filters,",if filter_name in self . filters :
1648,"if not,",else :
1649,substitute the second element of result for current_expires.,current_expires = result [ 1 ]
1650,"if autoescape is true and value is not an instance of SafeData, autoescape is boolean True, otherwise it is boolean False.","autoescape = autoescape and not isinstance ( value , SafeData )"
1651,request is None.,request = None
1652,set old_method_name attribute of the base object to the result of the function wrapper called with an argument new_method.,"setattr ( base , old_method_name , wrapper ( new_method ) )"
1653,"if lang_code is not contained in _supported and replacement is contained in _supported,",if lang_code not in _supported and replacement in _supported :
1654,"for i in self._deleted_form_indexes append i-th element of self.forms into a list, return the resulting list.",return [ self . forms [ i ] for i in self . _deleted_form_indexes ]
1655,from django.db import connection into default name space.,from django . db import connection
1656,"if ValidationError, substituted for e, exception is caught,",except ValidationError as e :
1657,code set to an string 'invalid_choice' and dictionary params with an entry: value for 'value'. return value.,return value
1658,"if tried is true,",if tried :
1659,if val equals an empty list.,if val == [ ] :
1660,call the method cursor.execute with an argument sql.,cursor . execute ( sql )
1661,"for second and third element of args, respectively. if length of args equals integer 2,",if len ( args ) == 2 :
1662,define the function linebreaks_filter with 2 arguments value and autoescape set to None.,"def linebreaks_filter ( value , autoescape = None ) :"
1663,"call the function wrapped_callback with request, list or arguments callback_args and dictionary arguments callback_kwargs,","response = wrapped_callback ( request , * callback_args , ** callback_kwargs )"
1664,self.pointer is integer 0.,self . pointer = 0
1665,match is boolean True.,match = True
1666,"if has_old_option is true,",if has_old_option :
1667,"html set to boolean True and truncate set to string ' ...', return the result. decorator function register.filter with an argument is_safe set to boolean False.",@ register . filter ( is_safe = False )
1668,"try,",try :
1669,"call the method cache.set with cache_key, an empty list and cache_timeout as arguments.","cache . set ( cache_key , [ ] , cache_timeout )"
1670,"if lang_code is not None,",if lang_code is not None :
1671,"get is a tuple containing elements generated by the call to the function pformat with an argument POST_override,",post = ( pformat ( POST_override ) if POST_override is not None else pformat ( request . POST ) )
1672,skip this loop iteration.,continue
1673,from django.db.utils import DatabaseError into default name space.,from django . db . utils import DatabaseError
1674,self.cc is an empty list.,self . cc = [ ]
1675,"sort value with key set to filed resolve of instance of a class Variable, created with an argument arg, reverse the sort and return the result.","return sorted ( value , key = Variable ( arg ) . resolve , reverse = True )"
1676,define the function Deserializer with arguments object_list and unpacked dictionary options.,"def Deserializer ( object_list , ** options ) :"
1677,define the method clear with argument self.,def clear ( self ) :
1678,"if IndexError exception is caught,",except IndexError :
1679,app_dirs is an empty list.,app_dirs = [ ]
1680,"substitute the result for proxy. if not,",else :
1681,"if css_classes is true,",if css_classes :
1682,existing_headers is a set containing lowercase strings header for every header in vary_headers.,existing_headers = set ( header . lower ( ) for header in vary_headers )
1683,call the method os.dup2 with 2 arguments: result of the method so.fileno and result of the method sys.stdout.fileno.,"os . dup2 ( so . fileno ( ) , sys . stdout . fileno ( ) )"
1684,"call the os.umask function with argument integer 0, substitute the result for old_umask.",old_umask = os . umask ( 0 )
1685,"call the function re.compile with an argument string ""([\u0080-\uffff])"", substitute the result for ustring_re.","ustring_re = re . compile ( ""([\u0080-\uffff])"" )"
1686,substitute value under the f.name key of the labels dictionary for value under the 'label' key of kwargs dictionary.,kwargs [ 'label' ] = labels [ f . name ]
1687,"while factor is greater or equal to integer 0,",while factor >= 0 :
1688,return text.,return text
1689,"call the method self.__class__ with an argument self, return the result.",return self . __class__ ( self )
1690,define the method copy with an argument self.,def copy ( self ) :
1691,define the method reset with an argument self.,def reset ( self ) :
1692,call the django.setup method.,django . setup ( )
1693,"if not,",else :
1694,call the method self.connection.ehlo.,self . connection . ehlo ( )
1695,return value.,return value
1696,append data to self.children.,self . children . append ( data )
1697,"substitute the result for sequence. call the method parser.parse with an argument tuple with 2 elements strings 'empty' and 'endfor', substitute the result for nodelist_loop.","nodelist_loop = parser . parse ( ( 'empty' , 'endfor' , ) )"
1698,"if only_initial is false,",if not only_initial :
1699,"call the method field.rel.to._meta.pk.to_python with an argument value, use the result as an argument for the call to the,",return smart_text ( field . rel . to . _meta . pk . to_python ( value ) )
1700,call the method settings.configure with an argument USE_I18N set to boolean True.,settings . configure ( USE_I18N = True )
1701,"call the self.stderr.write method with string "" Installing index for %s.%s model\n"" as argument,","self . stdout . write ( "" Installing index for %s.%s model\n"" % ( app_name , model . _meta . object_name ) )"
1702,"call the method parser.add_option with 3 arguments: string '--traceback', action set to a string 'store_true',","parser . add_argument ( '--traceback' , action = 'store_true' , help = 'Raise on exception' )"
1703,"call the method setlistdefault from the base class of the class QueryDict, with arguments key and default_list, return the result.","return super ( QueryDict , self ) . setdefault ( key , default )"
1704,"join app_config.path and string 'templates' into file path, substitute it for template_dir.","template_dir = os . path . join ( app_config . path , 'templates' )"
1705,write it to self.stdout. substitute Command for BaseRunserverCommand.,BaseRunserverCommand = Command
1706,raise a ValidationError exception with arguments self.message and code set to self.code.,"raise ValidationError ( self . message , code = self . code )"
1707,substitute settings.STATIC_URL for prefix.,prefix = settings . STATIC_URL
1708,"if active has an attribute 'value',","if hasattr ( _active , ""value"" ) :"
1709,"call the method template.render with an argument context, return the result.",return template . render ( context )
1710,substitute resolver_match for request.resolver_match.,request . resolver_match = resolver_match
1711,"ba_serializer is a instance of BadSerializer class, created with an argument exc.",bad_serializer = BadSerializer ( exc )
1712,value under the comment_lineno_cache key of the lineno_comment_map dictionary is an empty string.,lineno_comment_map [ comment_lineno_cache ] = [ ]
1713,"if cls._delegate_bytes and cls._delegate_text are both false, raise an error, with an argument string ""Cannot call lazy() with both bytes and text return types."".","assert not ( cls . _delegate_bytes and cls . _delegate_text ) , ""Cannot call lazy() with both bytes and text return types."""
1714,"call the method date.weekday, use the result as an key to obtain the value from the days dictionary, substitute it for dow.",dow = days [ date . weekday ( ) ]
1715,"if mail doesnt have an 'outbox' attribute,","if not hasattr ( mail , 'outbox' ) :"
1716,"if settings.configured,",if settings . configured :
1717,"call the method self.make_key with key and version set to version as arguments, substitute it for key.","key = self . make_key ( key , version = version )"
1718,import module warnings.,import warnings
1719,"if is_relation,",if is_relation :
1720,return self.data.month.,return self . data . month
1721,define the method update with 2 arguments: self and other_dict.,"def update ( self , other_dict ) :"
1722,"substitute '%s' in the string '%%prog %s [options] %s' with subcommand and self.args, respectively, substitute it for usage.","usage = '%%prog %s [options] %s' % ( subcommand , self . args )"
1723,from django.apps import apps into default name space.,from django . apps import apps
1724,"BUILTIN_SERIALIZERS is a dictionary containing 4 inital entries: ""django.core.serializers.xml_serializer"" for ""xml"",","BUILTIN_SERIALIZERS = { ""xml"" : ""django.core.serializers.xml_serializer"" , ""python"" : ""django.core.serializers.python"" , ""json"" : ""django.core.serializers.json"" , ""yaml"" : ""django.core.serializers.pyyaml"" , }"
1725,"decorator stringfilter,",@ stringfilter
1726,from django.forms.extras.widgets import SelectDateWidget into default name space.,from django . forms . extras . widgets import SelectDateWidget
1727,"return value, if it is None return arg.",return value or arg
1728,yield emitting as result of the generator.,yield emitting
1729,from threading import RLock.,from threading import RLock
1730,_get_request is getter function for REQUEST attribute of this class.,REQUEST = property ( _get_request )
1731,self.saved_forms is an empty list.,self . saved_forms = [ ]
1732,"define the method load_template_source with 3 arguments: self, template_name, template_dirs set to None.","def load_template_source ( self , template_name , template_dirs = None ) :"
1733,import time module.,import time
1734,po_path is a string containing joined directory path from dirpath and f.,"po_path = os . path . join ( dirpath , f )"
1735,append name to self._changed_data list.,self . _changed_data . append ( name )
1736,define the function to_locale with an argument language.,def to_locale ( language ) :
1737,"call the function __current_timezone with an argument value, return the result.",return from_current_timezone ( value )
1738,"get the value under the 'database' key of the options dictionary, substitute it for self.database.",self . using = options . get ( 'database' )
1739,"convert '\n' to a string, if it is contained in value or '\r' converted to an string is contained in value,",if str ( '\n' ) in value or str ( '\r' ) in value :
1740,"if not,",else :
1741,default_error_messages is an dictionary containing entry: return value of the function _ called with an string 'This field is required.' for 'required'.,"default_error_messages = { 'required' : _ ( 'This field is required.' ) , }"
1742,raise an exception.,raise
1743,derive the class DateFormat from the base class TimeFormat.,class DateFormat ( TimeFormat ) :
1744,return fixture_files.,return fixture_files
1745,"try,",try :
1746,"self.object._meta.object_name and self.object.pk, respectively. define the method save, with 3 arguments: self, save_m2m set to boolean True and using set to boolean True.","def save ( self , save_m2m = True , using = None ) :"
1747,"only if member.name is not equal to string 'pax_global_header'. call the method self.has_leading_dir with an argument list, with elements x.name for every x in members, substitute the result for leading.",leading = self . has_leading_dir ( x . name for x in members )
1748,and unpacked dictionary kwargs. define the method render with 2 arguments self and context.,"def render ( self , context ) :"
1749,"write it to self.stdout. for every migration in migrations_to_squash,",for migration in migrations_to_squash :
1750,all_unique_checks is union of all_unique_checks set and unique_checks set.,all_unique_checks = all_unique_checks . union ( set ( unique_checks ) )
1751,self.verbatim is boolean False.,self . verbatim = False
1752,"if not,",else :
1753,define the function check_1_7_compatibility with argument kwargs dictionary.,def check_1_7_compatibility ( ** kwargs ) :
1754,"if loader is an instance of tuple or list,","if isinstance ( loader , ( tuple , list ) ) :"
1755,"if template_tuple is contained in TemplateDoesNotExist,",if template_tuple is TemplateDoesNotExist :
1756,substitute SafeBytes for SafeString.,SafeString = SafeBytes
1757,"define lambda function that returns self.file.truncate field, use it as an argument for property function, put the result in truncate.",truncate = property ( lambda self : self . file . truncate )
1758,define the method extra_forms with an argument self.,def extra_forms ( self ) :
1759,and pattern.default_args. substitute lookups for the value under language_code key of the self._reverse_dict dictionary.,self . _reverse_dict [ language_code ] = lookups
1760,"if show_traceback is true,",if show_traceback :
1761,"if self.verbosity is greater or equal to integer 2,",if self . verbosity >= 2 :
1762,"define the method strptime with arguments self, value and format.","def strptime ( self , value , format ) :"
1763,"if push is not None,",if push is not None :
1764,call the method self.xml.addQuickElement with an argument string 'None'.,"self . xml . addQuickElement ( ""None"" )"
1765,"action set to string 'append', default as an empty list and help set to a string: 'The file name(s) to render. Separate multiple extensions with commas, or use -n multiple times.'. define the method handle with 5 arguments: self, app_or_project, name, target set to None and unpacked dictionary options.","def handle ( self , app_or_project , name , target = None , ** options ) :"
1766,"define the function render_to_string with 4 arguments: template_name, dictionary set to None, context_instance set to None and dirs set to None.","def render_to_string ( template_name , dictionary = None , context_instance = None , dirs = None ) :"
1767,"call the method parser.next_token, substitute the result for token.",token = parser . next_token ( )
1768,import module re.,import re
1769,from django.utils import six into default name space.,from django . utils import six
1770,substitute origin for self.origin.,self . origin = origin
1771,"if fake is true,",if fake :
1772,substitute i for p.,p = i
1773,from django.utils import six into default name space.,from django . utils import six
1774,skip this loop iteration.,continue
1775,substitute arg converted into a integer for length.,length = int ( arg )
1776,"call the function _explode_shorthand_ip_string with an argument ip_str, substitute the result for ip_str.",ip_str = _explode_shorthand_ip_string ( ip_str )
1777,file is an instance of BytesIO class created with an argument: return value of the method data.read.,file = BytesIO ( data . read ( ) )
1778,"create the Singer class with 2 arguments: key appended to string 'django.http.cookies' and salt set to salt, return it.","return Signer ( b'django.http.cookies' + key , salt = salt )"
1779,"if self.verbosity is greater than integer 1,",if self . verbosity > 0 :
1780,"raise an base.SerializationError exception with argument string ""Non-model object (%s) encountered during serialization"",","raise base . SerializationError ( ""Non-model object (%s) encountered during serialization"" % type ( obj ) )"
1781,singular is an empty list.,singular = [ ]
1782,substitute _iterkeys for keys.,keys = _iterkeys
1783,from django.db import connections and DEFAULT_DB_ALIAS into default namespace.,"from django . db import connections , DEFAULT_DB_ALIAS"
1784,"define the method __init__ with 3 arguments: self, args and kw.","def __init__ ( self , args , kw ) :"
1785,"self._files is an instance of class MultiValueDict. if not,",else :
1786,"add decimal_sep and dec_part, substitute the result for dec_part.",dec_part = decimal_sep + dec_part
1787,"call the method parser.add_argument with 3 arguments: string '--database', default set to DEFAULT_DB_ALIAS,","parser . add_argument ( '--database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to print the SQL for. Defaults to the ' '""default"" database.' )"
1788,"open out_log flie in append mode with buffering size of input buffer, substitute the result for so.","so = open ( out_log , 'a+' , buffering )"
1789,call the function tempfile.mkdtemp with arguments: prefix set to prefix and suffix set to string '_download'.,"tempdir = tempfile . mkdtemp ( prefix = prefix , suffix = '_download' )"
1790,define the method _setup with an argument self.,def _setup ( self ) :
1791,"substitute the '%s' in the string ""The view %s.%s didn't return an HttpResponse object. It returned None instead."",","raise ValueError ( ""The view %s.%s didn't return an HttpResponse object. It returned None instead."" % ( callback . __module__ , view_name ) )"
1792,define the method __repr__ with an argument self.,def __repr__ ( self ) :
1793,substitute title for sublist_item.,sublist_item = title
1794,return replacement.,return replacement
1795,extend the self.error_list list with message.error_list.,self . error_list . extend ( message . error_list )
1796,filemsg is an empty string.,filemsg = ''
1797,call the function re.compile with 2 arguments:,"html_gunk_re = re . compile ( r'(?: |<\/i>|<\/b>|<\/em>|<\/strong>|<\/?smallcaps>|<\/?uppercase>)' , re . IGNORECASE )"
1798,"call the method __deepcopy__ from the base class of the class ChoiceField, with an argument memo, substitute the result for result.","result = super ( ChoiceField , self ) . __deepcopy__ ( memo )"
1799,substitute callback for self._callback_str.,self . _callback_str = callback
1800,"assign the result to the value under the string "".moves.urllib_parse"" appended to __name__ key of the sys.modules dictionary, and to the value under the string "".moves.urllib.parse"" appended to __name__ key of the sys.modules dictionary. derive class Module_six_moves_urllib_error from the _LazyModule base class.",class Module_six_moves_urllib_error ( _LazyModule ) :
1801,define the method _load_post_and_files with an argument self.,def _load_post_and_files ( self ) :
1802,"call the function itertools_cycle with an argument self.cyclevars, substitute the result for value under the self dictionary context.render_context.",context . render_context [ self ] = itertools_cycle ( self . cyclevars )
1803,define the method root_attributes with an argument self.,def root_attributes ( self ) :
1804,"try,",try :
1805,"if filter_func has an attribute ""_decorated_function"",","if hasattr ( filter_func , ""_decorated_function"" ) :"
1806,call the method parts.reverse.,parts . reverse ( )
1807,substitute limit for self.remaining.,self . remaining = limit
1808,"if tt.tm_isdst is greater than integer 0, return the result.",return tt . tm_isdst > 0
1809,"call the method connection.introspection.get_field_type with 2 arguments: second element of row and row, substitute the result for field_type.","field_type = connection . introspection . get_field_type ( row [ 1 ] , row )"
1810,"call the method types.MethodType with 3 arguments: func, obj and obj.__class__, return the result.","return types . MethodType ( func , obj , obj . __class__ )"
1811,return self.file.size.,return self . file . size
1812,"calculate negative length of s, by modulus integer 4, use the result as the number of '=' characters to be stored in pad.",pad = b'=' * ( - len ( s ) % 4 )
1813,"if commit is true,",if commit :
1814,"if not, self.merge is boolean False. get the value under the 'empty' key of the options dictionary, if the key exists substitute it for self.empty,","self . empty = options . get ( 'empty' , False )"
1815,"try,",try :
1816,raise an ValueError exception with an argument string 'must define at least one ordering operation: < > <= >='.,raise ValueError ( 'must define at least one ordering operation: < > <= >=' )
1817,"if not,",else :
1818,"tags is a list containing results of the function re.escape with an argument tag, for every tag in tags split into words.",tags = [ re . escape ( tag ) for tag in tags . split ( ) ]
1819,"dest set to string 'interactive', default set to boolean True, help as a string 'Tells Django to NOT prompt the user for input of any kind.'. call the method parser.add_argument with 5 arguments: string '--database', action set to string 'store', dest as a string 'database',","parser . add_argument ( '--database' , action = 'store' , dest = 'database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to flush. Defaults to the ""default"" database.' )"
1820,raise an StopIteration exception.,raise StopIteration ( )
1821,"define the method get_template_source with 3 arguments: self, template_name, template_dirs set to None.","def get_template_sources ( self , template_name , template_dirs = None ) :"
1822,"if six.PY2 is true,",if six . PY2 :
1823,define the method __init__ with 2 arguments self and file.,"def __init__ ( self , file ) :"
1824,if self.__dispatch is None.,if self . __dispatch is None :
1825,define the function _is_shorthand_ip with an argument ip_str.,def _is_shorthand_ip ( ip_str ) :
1826,substitute EscapeText for EscapeUnicode.,EscapeUnicode = EscapeText
1827,derive the class Command from the AppCommand base class.,class Command ( AppCommand ) :
1828,"if ImportError or AttributeError exception occurred,","except ( ImportError , AttributeError ) :"
1829,delete entry under the oldkey key of the cache dictionary.,del cache [ oldkey ]
1830,"if self.field.label is None,",if self . field . label is None :
1831,"for ext in pathext,",for ext in pathext :
1832,"get frag attribute from found object, substitute it for found.","found = getattr ( found , frag )"
1833,define the function firstof with 2 arguments: parser and token.,"def firstof ( parser , token ) :"
1834,return lookup_view,return lookup_view
1835,delete element under 'warning' key of kwargs dictionary.,del kwargs [ 'warning' ]
1836,define the function templatize with 2 arguments: src and origin set to None.,"def templatize ( src , origin = None ) :"
1837,define the method __repr__ with an argument self.,def __repr__ ( self ) :
1838,substitute include_html for self.include_html.,self . include_html = include_html
1839,"if 'require_all_fields' key of the kwargs dictionary exists remove it and substitute its value for self.require_all_fields,","self . require_all_fields = kwargs . pop ( 'require_all_fields' , True )"
1840,define the method __repr__ with an argument self.,def __repr__ ( self ) :
1841,return self._changed_data.,return self . _changed_data
1842,self._is_rendered is boolean False.,self . _is_rendered = False
1843,define the method new with 2 arguments: self and values set to None.,"def new ( self , values = None ) :"
1844,"call the method self.get_date_error_message with an argument date_check, append the result to errors.",errors . append ( self . get_date_error_message ( date_check ) )
1845,raise an TypeError with an argument s.,raise TypeError ( s )
1846,table_names is an empty list.,table_names = [ ]
1847,delete the value under the 'liveserver' key of the options dictionary.,del options [ 'liveserver' ]
1848,"join root and f in path, substitute the result for f.","f = os . path . join ( root , f )"
1849,"if not,",else :
1850,from django.views.debug import ExceptionReporter and get_exception_reporter_filter into default name space.,"from django . views . debug import ExceptionReporter , get_exception_reporter_filter"
1851,"replace '%s' in string ', HTTP response headers must be in %s format' for charset, append it to e.reason.","e . reason += ', HTTP response headers must be in %s format' % charset"
1852,define the method get_fqdn with argument self.,def get_fqdn ( self ) :
1853,"if c doesnt have an attribute '__call__', and types has an attribute 'ClassType', and type of c is not equal to types.ClassType,","if not hasattr ( c , '__call__' ) and hasattr ( types , 'ClassType' ) and type ( c ) != types . ClassType :"
1854,define the method add_arguments with 2 arguments self and parser.,"def add_arguments ( self , parser ) :"
1855,"if not,",else :
1856,"call the function force_bytes with argument content, substitute it for content.",content = force_bytes ( content )
1857,derive class _MovedItems from the _LazyModule base class.,class _MovedItems ( _LazyModule ) :
1858,call the method HttpResponse.content.fset with 2 arguments: self and value.,"HttpResponse . content . fset ( self , value )"
1859,"convert initial and data into boolean, if they are not equal return boolean True, if they are return boolean False.",return bool ( initial ) != bool ( data )
1860,import module re.,import re
1861,substitute ngettext for ungettext.,ungettext = ngettext
1862,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
1863,call the method self._assert_mutable.,self . _assert_mutable ( )
1864,"if key is not contained in self,",if key not in self :
1865,decorator function register.filter with an argument is_safe set to boolean False.,@ register . filter ( is_safe = False )
1866,define the method end_object with arguments self and obj.,"def end_object ( self , obj ) :"
1867,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
1868,define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
1869,"if sys.platform starts with string 'java',","if sys . platform . startswith ( ""java"" ) :"
1870,"if settings.DEBUG is true,",if settings . DEBUG :
1871,"return a list with 5 elements: strings 'parse', 'error', 'request', 'response' and 'robotparser'.","return [ 'parse' , 'error' , 'request' , 'response' , 'robotparser' ]"
1872,yield d.,yield d
1873,return boolean False.,return False
1874,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
1875,pk_value is None.,pk_value = None
1876,line is an empty string.,line = ''
1877,derive the class RendererMixin from the object base class.,class RendererMixin ( object ) :
1878,"if inverse_match is not None,",if inverse_match is not None :
1879,"if subcommand is contained in no_settings_commands,",if subcommand in no_settings_commands :
1880,"with arguments cookie_value and max_age set to max_age. if signing.BadSignature exception is caught,",except signing . BadSignature :
1881,"return the absolute path of file path filepath, substitute it for filepath.",filepath = os . path . abspath ( filepath )
1882,res is an empty string.,res = ''
1883,"for every app_config and model_list in app_list,","for app_config , model_list in app_list :"
1884,define the method _post_clean with an argument self.,def _post_clean ( self ) :
1885,"if _active has an attribute ""value"",","if hasattr ( _active , ""value"" ) :"
1886,"if VariableDoesNotExist exception is not caught,",except VariableDoesNotExist :
1887,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
1888,define the method app_dict with an argument self.,def app_dict ( self ) :
1889,"if widgets is not None,",if widgets is not None :
1890,"call the function warnings.warn with 3 argument: string ""AppCommand.handle_app() is superseded by AppCommand.handle_app_config()."",","warnings . warn ( ""AppCommand.handle_app() is superseded by "" ""AppCommand.handle_app_config()."" , RemovedInDjango19Warning , stacklevel = 2 )"
1891,"raise an TypeError with an argument string ""relative imports require the 'package' argument"".","raise TypeError ( ""relative imports require the 'package' argument"" )"
1892,self.keyOrder is an empty list.,self . keyOrder = [ ]
1893,"try,",try :
1894,return number.,return number
1895,define the function get_major_version with an argument version defaulting to None.,def get_major_version ( version = None ) :
1896,"if OSError, renamed to e, is caught,",except OSError as e :
1897,"if not,",else :
1898,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
1899,"get _iteritems attribute of the class d, call the result with an argument unpacked dictionary kw, convert the result to a iterable,","return iter ( getattr ( d , _iteritems ) ( ** kw ) )"
1900,"get attribute 'pk' of the pk_value object, if it doesnt exists use pk_value, set to it self.fk.get_attname return value attribute,","setattr ( obj , self . fk . get_attname ( ) , getattr ( pk_value , 'pk' , pk_value ) )"
1901,if self.variable_name is true.,if self . variable_name :
1902,return nothing.,return
1903,if self has an '_files' attribute.,"if hasattr ( self , '_files' ) :"
1904,TOKEN_BLOCK is integer 2,TOKEN_BLOCK = 2
1905,"if match is true,",if match :
1906,substitute used_name for guessed_filename.,guessed_filename = used_name
1907,"define the method create_token with 4 arguments: self, token_string, source and in_tag.","def create_token ( self , token_string , source , in_tag ) :"
1908,substitute boolean False for cache_choices.,cache_choices = False
1909,"if name equals string ""_wrapped"",","if name == ""_wrapped"" :"
1910,"call the function all_locale_paths, for every path is the result,",for path in all_locale_paths ( ) :
1911,"define the method load_template_source with 3 arguments: self, template_name, template_dirs set to None.","def load_template_source ( self , template_name , template_dirs = None ) :"
1912,skip this loop iteration.,continue
1913,"convert settings.FIXTURE_DIRS to a list, extend dirs by it.",dirs . extend ( list ( settings . FIXTURE_DIRS ) )
1914,"if ch equal a string '(',",if ch == '(' :
1915,"rais an AppRegistryNotReady exception with an argument string ""The translation infrastructure cannot be initialized before the ""","raise AppRegistryNotReady ( ""The translation infrastructure cannot be initialized before the "" ""apps registry is ready. Check that you don't make non-lazy "" ""gettext calls at import time."" )"
1916,"decorator deconstructible,",@ deconstructible
1917,"if TypeError or VariableDoesNotExist exceptions are caught,","except ( TypeError , VariableDoesNotExist ) :"
1918,"and help set to string 'Raise on exception'. call the method parser.add_option with 5 arguments: string '--no-color', action is string 'store_true', dest is string 'no_color',","parser . add_argument ( '--no-color' , action = 'store_true' , dest = 'no_color' , default = False , help = ""Don't colorize the command output."" )"
1919,"call the method node.hasAttribute with string 'pk' as an argument, if it evaluates to true,",if node . hasAttribute ( 'pk' ) :
1920,return neg and res.,"return neg , res"
1921,raise an exception NotImplementedError with string 'subclasses of BaseCache must provide a clear() method' as argument.,raise NotImplementedError ( 'subclasses of BaseCache must provide a clear() method' )
1922,"define lambda function that returns self.file.fileno field, use it as an argument for property function, put the result in fileno.",fileno = property ( lambda self : self . file . fileno )
1923,"try,",try :
1924,silent is boolean False.,silent = False
1925,class_types is a tuple with 2 elements: type and types.ClassType.,"class_types = ( type , types . ClassType )"
1926,return an empty string.,return ''
1927,"call the method self._text_chars with 4 arguments: length, truncate, text and truncate_len, return the result.","return self . _text_chars ( length , truncate , text , truncate_len )"
1928,"call the function _urlize with 4 arguments: value, trim_url_limit as limit converted into an integer, nofollow as boolean True,","return mark_safe ( _urlize ( value , trim_url_limit = int ( limit ) , nofollow = True , autoescape = autoescape ) )"
1929,"call the method make_key with arguments key and version from the base class of the class BaseMemcachedCache, use it as an argument for the call to the function force_str, return the result.","return force_str ( super ( BaseMemcachedCache , self ) . make_key ( key , version ) )"
1930,"call the method parser.add_argument with 3 arguments: string 'args', metavar set to self.label and nargs set to '+'.","parser . add_argument ( 'args' , metavar = self . label , nargs = '+' )"
1931,"define the method __setitem__ with 3 arguments: self, key and value.","def __setitem__ ( self , key , value ) :"
1932,return result.,return result
1933,"call the method match.groups, assign the result to name and value, respectively.","name , value = match . groups ( )"
1934,"if _cached_modules equals to module_values,",if _cached_modules == module_values :
1935,"help is a string ""Runs this project as a FastCGI application. Requires flup."".","help = ""Runs this project as a FastCGI application. Requires flup."""
1936,"filename is a tuple containing 3 initial elements: string 'utf-8', and empty string and filename.","filename = ( 'utf-8' , '' , filename )"
1937,return the value under the filter_name key of the self.filters dictionary.,return self . filters [ filter_name ]
1938,"if TemplateDoesNotExist exception is caught,",except TemplateDoesNotExist :
1939,define the function convert_old_style_list with an argument list_.,def convert_old_style_list ( list_ ) :
1940,docs_version is a string 'dev'.,docs_version = 'dev'
1941,define the method _dec with 2 arguments: unpacked list args and unpacked dictionary kwargs.,"def _dec ( * args , ** kwargs ) :"
1942,output is an empty string.,output = [ ]
1943,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
1944,"get field.name attribute of obj, convert it to a string, substitute it for the value under the filed.name key of self._current dictionary.","self . _current [ field . name ] = str ( getattr ( obj , field . name ) )"
1945,"if i is equal to len_values decremented by 1, value under the 'last' key of the loop_dict dictionary is boolean True, otherwise it is False.",loop_dict [ 'last' ] = ( i == len_values - 1 )
1946,define the method __repr__ with an argument self.,def __repr__ ( self ) :
1947,"convert string header to uppercase and replace all occurrences of '-' with '_', substitute it for header.","header = header . upper ( ) . replace ( '-' , '_' )"
1948,"if not,",else :
1949,"call the method router.get_migratable_models with arguments app_config, database and include_auto_created set to boolean True,","all_models . extend ( router . get_migratable_models ( app_config , database , include_auto_created = True ) )"
1950,substitute name for filter_func._filter_name.,filter_func . _filter_name = name
1951,"call the method self.__class__ with an argument list, with 2 elements: key and result of the function copy.deepcopy,","return self . __class__ ( [ ( key , copy . deepcopy ( value , memo ) ) for key , value in self . items ( ) ] )"
1952,substitute sign for self.sign.,self . sign = sign
1953,return value converted into a list.,return list ( value )
1954,define the function create_bound_function with 2 arguments: func and obj.,"def create_bound_method ( func , obj ) :"
1955,"if format_module_path is true,",if format_module_path :
1956,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
1957,"if not self.isolated_context is boolean False. call the method __init__ from the base class of the class IncludeNode, called with 2 arguments: unpacked dictionary args,","super ( IncludeNode , self ) . __init__ ( * args , ** kwargs )"
1958,"get 'render' attribute of template object, if it is callable,","if not callable ( getattr ( template , 'render' , None ) ) :"
1959,"for every name in formatters,",for name in formatters :
1960,return name.,return name
1961,define the method size with arguments self and name.,"def size ( self , name ) :"
1962,"m2m_value is an lambda function with value as an argument, return value is the result of the method value.natural_key.",m2m_value = lambda value : value . natural_key ( )
1963,"if value under the 'indent' key of the self.options dictionary is true,","if self . options . get ( ""indent"" ) :"
1964,exit the program with the code integer 1.,os . _exit ( 1 )
1965,define the function b64_encode with an argument s.,def b64_encode ( s ) :
1966,"for every form in self.forms append form to a list, if function form.is_valid evaluates to true,",valid_forms = [ form for form in self . forms if form . is_valid ( ) and form not in forms_to_delete ]
1967,return new_key.,return new_key
1968,"yield field and ValidationError object converted to an list, created with an argument errors.","yield field , list ( ValidationError ( errors ) )"
1969,name is an empty list.,name = [ ]
1970,substitute subject elements from p-th to i-th index for res.,res = subject [ p : i ]
1971,"if six.PY3 is true,",if six . PY3 :
1972,decrement end by one.,end -= 1
1973,yield choice.,yield choice
1974,"substitute the result for tag. if tag is false or current_len is greater or equal to truncate_len,",if not tag or current_len >= truncate_len :
1975,"compile regex from the raw string '(\d{4})-(\d\d?)-(\d\d?)$', substitute it for RE_DATE.",RE_DATE = re . compile ( r'(\d{4})-(\d\d?)-(\d\d?)$' )
1976,"if not,",else :
1977,"call the function mark_safe with an argument contents, return the result.",return mark_safe ( contents )
1978,"if self.ignore is true and field_name is not contained in model_fields,",if self . ignore and field_name not in model_fields :
1979,"if nofollow is true nofollow_attr is a string ' rel=""nofollow""', otherwise nofollow_attr is an empty string.","nofollow_attr = ' rel=""nofollow""' if nofollow else ''"
1980,"if self.field.choice_cache is None,",if self . field . choice_cache is None :
1981,"call the method sql_flush with 5 arguments: self.style, connection, only_django set to boolean True,","sql_list = sql_flush ( self . style , connection , only_django = True , reset_sequences = reset_sequences , allow_cascade = allow_cascade )"
1982,"if OverflowError or ValueError exceptions are caught,","except ( ValueError , KeyError ) :"
1983,substitute file_or_path for file.,file = file_or_path
1984,"substitute boolean False for ignore. for every d in object_list,",for d in object_list :
1985,"if LookupError exception is caught,",except LookupError :
1986,call the method shutil.copyfileobj with 2 arguments: extracted and outfile.,"shutil . copyfileobj ( extracted , outfile )"
1987,"call the method MIMEMultipart.__init__ with 5 arguments: self, _subtype, boundary, _subparts and unpacked dictionary _params.","MIMEMultipart . __init__ ( self , _subtype , boundary , _subparts , ** _params )"
1988,"call the function check_programs with 3 arguments: strings 'msguniq', 'msgmerge' and 'msgattrib'.","check_programs ( 'msguniq' , 'msgmerge' , 'msgattrib' )"
1989,substitute NumberInput for widget.,widget = NumberInput
1990,return klass.,return klass
1991,"call the function re.compile with 2 arguments: raw string '^www\.|^(?!http)\w[^@]+\.(com|edu|gov|int|mil|net|org)($|/.*)$',","simple_url_2_re = re . compile ( r'^www\.|^(?!http)\w[^@]+\.(com|edu|gov|int|mil|net|org)($|/.*)$' , re . IGNORECASE )"
1992,"if reversed is True substitute difference of d and now for delta, if not substitute the difference of now and d for delta.",delta = ( d - now ) if reversed else ( now - d )
1993,"model._meta.app_label, model._meta.object_name, fk_name, respectively. if not,",else :
1994,substitute the settings.MEDIA_ROOT for location.,location = settings . MEDIA_ROOT
1995,"convert first 2 elements of django.VERSION into a strings, join them together, separated by a '.', substitute the result for docs_version.",docs_version = '%d.%d' % django . VERSION [ : 2 ]
1996,"from django.template.loader import BaseLoader, get_template_from_string, find_template_loader and make_origin into default name space.","from django . template . loader import BaseLoader , get_template_from_string , find_template_loader , make_origin"
1997,"if not,",else :
1998,"where '%s' is replaced with library_name and elements of tried_modules joined into a string, separated by ','. return lib.",return lib
1999,import module logging.,import logging
2000,import module copy.,import copy
2001,set the file pointer at the beginning of the self.file file.,self . file . seek ( 0 )
2002,"return string 'https' if value under the ""HTTPS"" key of the os.environ dictionary equals string 'on', if not return 'http'.","return 'https' if os . environ . get ( ""HTTPS"" ) == ""on"" else 'http'"
2003,"split path in two parts by '\\' string, return the result.","return path . split ( '\\' , 1 )"
2004,"subtract decimals from digits, substitute the result for whole_digits.",whole_digits = digits - decimals
2005,"call the function mark_safe with an argument string ' selected=""selected""', substitute the result for selected_html.","selected_html = mark_safe ( ' selected=""selected""' )"
2006,"if self.path equals other.path, return boolean True, if not return boolean False.",return self . path == other . path
2007,"otherwise if value is not an instance of list ot tuple type,","elif not isinstance ( value , ( list , tuple ) ) :"
2008,"define the method __init__ with self class instance, file, and name defaulting to None as arguments.","def __init__ ( self , file , name = None ) :"
2009,from django.utils import six into default name space.,from django . utils import six
2010,"try,",try :
2011,"as long k is smaller than endpos,",while k < endpos :
2012,call the method start_ipython with an argument argv as an empty list.,start_ipython ( argv = [ ] )
2013,"return an instance of Media class, created with definition as an argument.",return Media ( definition )
2014,"sum absolute p with units an integer 1, substitute the result for prec.",prec = abs ( p ) + units + 1
2015,"if iterations is lesser than integer 0, raise an error.",assert iterations > 0
2016,"call the method MIMEText.__init__ with 4 arguments: self, text, subtype and None.","MIMEText . __init__ ( self , text , subtype , None )"
2017,"use it as an argument for the call to the self.style.MIGRATE_LABEL method, use the result of the previous method as an argument for the call to the self.stdout.write method. if target_app_labels_only is true,",if target_app_labels_only :
2018,"if p is greater or equal to integer 0,",if p >= 0 :
2019,"call the function force_str with an argument value, substitute the result for value.",value = force_str ( value )
2020,"evaluate the boolean expression: locale is None and exclude is false and process_all is false,",if ( locale is None and not exclude and not process_all ) or self . domain is None :
2021,"define the method build_attrs with 3 arguments: self, extra_attrs set to None and unpacked dictionary kwargs.","def build_attrs ( self , extra_attrs = None , ** kwargs ) :"
2022,"write the string "" Creating tables...\n"" to the standard output.","self . stdout . write ( "" Creating tables...\n"" )"
2023,call the self._cull method.,self . _cull ( )
2024,substitute first element of fks_to_parent for fk.,fk = fks_to_parent [ 0 ]
2025,"if TYPE equals to RAW,",if TYPE == RAW :
2026,from django.core import validators into default name space.,from django . core import validators
2027,define the method __str__ with argument self.,def __str__ ( self ) :
2028,skip this loop iteration.,continue
2029,"call the function escape with an argument word, substitute the result for i-th element of words.",words [ i ] = escape ( word )
2030,return out.,return out
2031,self.error_dict is an empty dictionary.,self . error_dict = { }
2032,from django.utils import six into default name space.,from django . utils import six
2033,return value.,return value
2034,"if e.is_serious method evaluates to true, call the function color_style, on the result call the method ERROR with result of the force_str called with an argument e, if not call the function color_style on the result call the method ERROR with result of the force_str called with an argument e, for every e in issues, formatted is a tuple containing the previous result.",formatted = ( color_style ( ) . ERROR ( force_str ( e ) ) if e . is_serious ( ) else color_style ( ) . WARNING ( force_str ( e ) ) for e in issues )
2035,"put every header in newheaders in a list, only if newheader converted to lowercase does not exist in existing_headers,",additional_headers = [ newheader for newheader in newheaders if newheader . lower ( ) not in existing_headers ]
2036,for every frag in name.,for frag in name :
2037,"in the string ""<%s: level=%r, msg=%r, hint=%r, obj=%r, id=%r>"", replace '%s' with the name of the type of this class instance,","return ""<%s: level=%r, msg=%r, hint=%r, obj=%r, id=%r>"" % ( self . __class__ . __name__ , self . level , self . msg , self . hint , self . obj , self . id )"
2038,"and substitute the return value for value under the key 'Expires' of dictionary response. call the function patch_cache_control, with response and max_age set to cache_timeout as arguments.","patch_cache_control ( response , max_age = cache_timeout )"
2039,define the method __deepcopy__ with arguments self and memo.,"def __deepcopy__ ( self , memo ) :"
2040,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
2041,import module warnings.,import warnings
2042,"raise an exception parser.error_class with an argument string ""Unexpected end of expression in if tag."".","raise parser . error_class ( ""Unexpected end of expression in if tag."" )"
2043,call the method self.exit_command.,self . exit_command ( )
2044,"get the value 'inhibit_post_migrate' key of the options dictionary, if it exists substitute it for inhibit_post_migrate, otherwise inhibit_post_migrate is boolean False.","inhibit_post_migrate = options . get ( 'inhibit_post_migrate' , False )"
2045,"raise an TemplateSyntaxError exception with an argument string ""'%s' is not a valid tag library: %s"",","raise TemplateSyntaxError ( ""'%s' is not a valid tag library: %s"" % ( taglib , e ) )"
2046,"call the function phone2numeric with an argument value, return the result.",return phone2numeric ( value )
2047,"if with_base_fields is true,",if with_base_fields :
2048,"try,",try :
2049,self.month_none_value is a tuple containing 2 elements: integer 0 and second element of empty_label.,"self . month_none_value = ( 0 , empty_label [ 1 ] )"
2050,create directories from the elements in filename.,os . makedirs ( dirname )
2051,substitute _make_key for make_key.,make_key = _make_key
2052,substitute second element of plan_node for title.,title = plan_node [ 1 ]
2053,"call the method self.nodelist_true.render with an argument context, return the result.",return self . nodelist_true . render ( context )
2054,define the function reset_cache with an argument unpacked dictionary kwargs.,def reset_cache ( ** kwargs ) :
2055,"evaluate the function smart_text with an argument value, return the result.",return smart_text ( value )
2056,"format string normal_row with an dictionary containing 5 entries: an empty string for 'errors', empty string for 'label',","last_row = ( normal_row % { 'errors' : '' , 'label' : '' , 'field' : '' , 'help_text' : '' , 'html_class_attr' : html_class_attr } )"
2057,assign value and params to the value under the name key of the outdict dictionary.,"outdict [ name ] = value , params"
2058,substitute labels for value under the 'labels' key of attrs dictionary.,attrs [ 'labels' ] = labels
2059,"append '.' to frag, append the result to used.",used += '.' + frag
2060,"add string '%s.templatetags' to a list, where '%s' is replaced with app_config.name,",templatetags_modules_candidates += [ '%s.templatetags' % app_config . name for app_config in apps . get_app_configs ( ) ]
2061,return a list with an element tuple with 2 elements: an empty string and an empty list.,"return [ ( '' , [ ] ) ]"
2062,"append self.data.day to the value under the self.data.month key of the self.year_days dictionary, substitute the result for doy.",doy = self . year_days [ self . data . month ] + self . data . day
2063,"format self.year_field string with name, use it as the key for the data dictionary, substitute the result for y.",y = data . get ( self . year_field % name )
2064,program_options is list containing string '--check-format'.,program_options = [ '--check-format' ]
2065,"if not settings.DEBUG is true and settings.ALLOWED_HOSTS is false,",if not settings . DEBUG and not settings . ALLOWED_HOSTS :
2066,"call the function re.compile with an argument raw string ""^\s+.*context\s+((?:""[^""]*?"")|(?:'[^']*?'))\s*"", substitute the result for context_re.","context_re = re . compile ( r""""""^\s+.*context\s+((?:""[^""]*?"")|(?:'[^']*?'))\s*"""""" )"
2067,import module sys.,import sys
2068,"write string ""Flush cancelled.\n"" to self.stdout stream.","self . stdout . write ( ""Flush cancelled.\n"" )"
2069,substitute self.deleted_forms for forms_to_delete.,forms_to_delete = self . deleted_forms
2070,"sort elements formatted, join them in the list separated with newline character, substitute the result for formatted.","formatted = ""\n"" . join ( sorted ( formatted ) )"
2071,"substitute FIELD for TYPE,",TYPE = FIELD
2072,"from django.db import connections, router, transaction, DEFAULT_DB_ALIAS, IntegrityError and DatabaseError into default name space.","from django . db import ( connections , router , transaction , DEFAULT_DB_ALIAS , IntegrityError , DatabaseError )"
2073,"call the os.stat function with argument src, substitute the result for st.",st = os . stat ( src )
2074,"if ImportError exception is caught,",except ImportError :
2075,skip this loop iteration.,continue
2076,"for every tok in rules,",for tok in rules :
2077,return translated.,return translated
2078,return None.,return None
2079,call the method self.enter_command with 2 arguments command and token.,"self . enter_command ( command , token )"
2080,"if Exception exception is caught,",except Exception :
2081,"if length of list_ equals integer 1,",if len ( list_ ) == 1 :
2082,"substitute '%s' in a string ""Full migrations file '%s':"" with writer.filename, append newline to it,","self . stdout . write ( self . style . MIGRATE_HEADING ( ""Full migrations file '%s':"" % writer . filename ) + ""\n"" )"
2083,call the method handler.addQuickElement with 2 arguments: string 'id' and unique_id.,"handler . addQuickElement ( ""id"" , unique_id )"
2084,"call the function lazy with 2 arguments: func and unpacked list resultclasses, call the result with 2 arguments: unpacked list args,","return lazy ( func , * resultclasses ) ( * args , ** kwargs )"
2085,"finally, perform,",finally :
2086,"try,",try :
2087,"define the method __init__ with 4 arguments: self, out, style, func set to None and endings set to newline character.","def __init__ ( self , out , style_func = None , ending = '\n' ) :"
2088,"if path starts with string 'http://' or string 'https://' or with string '/',","if path . startswith ( ( 'http://' , 'https://' , '/' ) ) :"
2089,"raise an ValueError with an argument string ""Non-reversible reg-exp portion: '(?%s'"" formated with ch.","raise ValueError ( ""Non-reversible reg-exp portion: '(?%s'"" % ch )"
2090,"if use_grouping is true,",if use_grouping :
2091,self.request is None.,self . request = request
2092,"call the method self.normalize_col_name with 3 arguments column_name, used_column_names, is_relation, assign the result to att_name, params and notes, respectively.","att_name , params , notes = self . normalize_col_name ( column_name , used_column_names , is_relation )"
2093,"call the method MIMEText.__setitem__ with arguments self, name and val.","MIMEText . __setitem__ ( self , name , val )"
2094,from django.core.mail.backends.console import EmailBackend as ConsoleEmailBackend into default name space.,from django . core . mail . backends . console import EmailBackend as ConsoleEmailBackend
2095,return value.,return value
2096,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
2097,from django.utils.six.moves import _dummy_thread as thread into default name space.,from django . utils . six . moves import _dummy_thread as thread
2098,"take subject elements from p-th to i-th index, substitute it for s.",s = subject [ p : i ]
2099,"if config_string is false,",if not config_string :
2100,"if smtplib.SMTPException exception is caught,",except smtplib . SMTPException :
2101,self._done is boolean True.,self . _done = True
2102,import module re.,import re
2103,"raise an CommandError exception with an argument string ""Multiple fixtures named '%s' in %s. Aborting."", where '%s' is replaced with:","raise CommandError ( ""Multiple fixtures named '%s' in %s. Aborting."" % ( fixture_name , humanize ( fixture_dir ) ) )"
2104,from django.apps import apps into default name space.,from django . apps import apps
2105,"convert value and arg to integers, if value is divisible by arg, return True, otherwise return boolean False.",return int ( value ) % int ( arg ) == 0
2106,"code set to string 'invalid_choice' and params as a dictionary with an entry, val for 'value'. call the method self.run_validators with an argument value.",self . run_validators ( value )
2107,define the function media with an argument request.,def media ( request ) :
2108,from django.utils.six.moves import xrange into default name space.,from django . utils . six . moves import xrange
2109,"for x in a list containing 3 elements: self.id, self.first and self.second, if x is not None,","out = [ str ( x ) for x in [ self . id , self . first , self . second ] if x is not None ]"
2110,"_func_defaults is a string ""__defaults__"".","_func_defaults = ""__defaults__"""
2111,"then the first element of the result of the function formats.get_format called with an argument self.format_key, return the result. derive the class DateInput from the DateTimeBaseInput base class.",class DateInput ( DateTimeBaseInput ) :
2112,"call the function copy with an argument self, substitute the result for new_context.",new_context = copy ( self )
2113,decorator lru_cache.lru_cache with an argument maxsize set to None.,@ lru_cache . lru_cache ( maxsize = None )
2114,"if dirname starts with character '.' or dirname equals a string '__pycache__',",if dirname . startswith ( '.' ) or dirname == '__pycache__' :
2115,substitute new_second_item with second_item.,second_item = new_second_item
2116,"try,",try :
2117,"if threading is true,",if threading :
2118,"convert self.changed_data into boolean, return it.",return bool ( self . changed_data )
2119,for integer representation of z converted into a string. define the function escapejs with an argument value.,def escapejs ( value ) :
2120,"return an instance of SafeText, created with an argument s converted into a string.",return SafeString ( str ( s ) )
2121,"call the __init__ method from the base class of the HttpResponseNotAllowed class, called with arguments: unpacked list args,","super ( HttpResponseNotAllowed , self ) . __init__ ( * args , ** kwargs )"
2122,"if not,",else :
2123,and unpacked dictionary kwargs. substitute streaming_content for self.streaming_content.,self . streaming_content = streaming_content
2124,from django.http.cookie import SimpleCookie and parse_cookie into default name space.,"from django . http . cookie import SimpleCookie , parse_cookie"
2125,"define the method delete_many with arguments self, keys and version defaulting to None.","def delete_many ( self , keys , version = None ) :"
2126,"if the value of the kwargs dictionary under the key k is not equal to v,","if kwargs . get ( k , v ) != v :"
2127,"if value is contained in self.empty_values,",if value in self . empty_values :
2128,server_address is a tuple containing 2 initial elements: addr and port.,"server_address = ( addr , port )"
2129,"append string ""System check identified %s (%s silenced)."" to msg, replace first '%s' for: string ""no issues"",","msg += ""System check identified %s (%s silenced)."" % ( ""no issues"" if visible_issue_count == 0 else ""1 issue"" if visible_issue_count == 1 else ""%s issues"" % visible_issue_count , len ( all_issues ) - visible_issue_count , )"
2130,"url_markup_template is a string '{1} '.","url_markup_template = '{1} '"
2131,define the method __str__ with an argument self.,def __str__ ( self ) :
2132,"use it as an argument for the call to the method self.style.MIGRATE_HEADING, write the result to self.stdout. for every migration in app_migrations,",for migration in app_migrations :
2133,"if not,",else :
2134,"if values is None,",if values is None :
2135,"if value is None,",if value is None :
2136,"call the method self.error_class with an argument error_class as an string 'nonfield',",self . _errors [ field ] = self . error_class ( error_class = 'nonfield' )
2137,"for every d in self.dicts,",for d in self . dicts :
2138,"if SkipFile exception is caught,",except SkipFile :
2139,call the method self._archive.printdir with 2 arguments: unpacked list args and unpacked dictionary kwargs.,"self . _archive . printdir ( * args , ** kwargs )"
2140,"substitute the result for offset. if first element of tzinfo equals '-',",if tzinfo [ 0 ] == '-' :
2141,"if 'fields' attribute of meta is None, or if it doesnt exists if fields is None and if 'exclude' attribute of meta is None,","if ( getattr ( meta , 'fields' , fields ) is None and getattr ( meta , 'exclude' , exclude ) is None ) :"
2142,call the method handler.addQuickElement with 2 arguments: string 'ttl' and value under the 'ttl' key of the self.feed dictionary.,"handler . addQuickElement ( ""ttl"" , self . feed [ 'ttl' ] )"
2143,comment is an empty list.,comment = [ ]
2144,extend final_output with alter_sql.,final_output . extend ( alter_sql )
2145,substitute serialize for __bytes__.,__bytes__ = serialize
2146,new_value is a sum of value and delta.,new_value = value + delta
2147,"if not,",else :
2148,substitute connection for self.connection.,self . connection = connection
2149,derive the class BaseMemcachedCache from base class BaseMemcachedCacheMethods and BaseCache.,"class BaseMemcachedCache ( six . with_metaclass ( BaseMemcachedCacheMethods , BaseCache ) ) :"
2150,"and token. otherwise if token.token_type equals integer 1,",elif token . token_type == 1 :
2151,label is an empty string.,help_text = ''
2152,"if settings.SETTINGS_MODULE is true,",if settings . SETTINGS_MODULE :
2153,decorator function register.filter with an argument is_safe set to boolean False.,@ register . filter ( is_safe = False )
2154,substitute filepath for self.filepath.,self . filepath = filepath
2155,return self.,return self
2156,raise an NotImplementedError exception with an argument string 'subclasses of BaseArchive must provide a list() method'.,raise NotImplementedError ( 'subclasses of BaseArchive must provide a list() method' )
2157,"for every path in self.locale_paths,",for path in self . locale_paths :
2158,"if not,",else :
2159,"define the method external_entity_ref_handler with arguments self, context, base, sysid and pubid.","def external_entity_ref_handler ( self , context , base , sysid , pubid ) :"
2160,return unbound.,return unbound
2161,"data is an empty dictionary,",data = { }
2162,"if self._content_length equals integer 0,",if self . _content_length == 0 :
2163,"call the method __init__ with an argument lexer, from the base class of the class DebugParser.","super ( DebugParser , self ) . __init__ ( lexer )"
2164,return result.,return result
2165,"evaluate debug.technical_500_response with request and list of arguments exec_info, return the result.","return debug . technical_500_response ( request , * exc_info )"
2166,"if KeyError exception is caught,",except KeyError :
2167,"call the function mark_for_escaping with an argument new_obj, substitute the result for obj.",obj = mark_for_escaping ( new_obj )
2168,"if field is not contained in self.errors,",if field not in self . errors :
2169,define the method _set_name with arguments self and name.,"def _set_name ( self , name ) :"
2170,"call the method base64.urlsafe_b64encode with an argument s, strip the result of the bytes string '\n=' from the right, return it.",return base64 . urlsafe_b64encode ( s ) . rstrip ( b'\n=' )
2171,derive the class ComboField from the base class Field class.,class ComboField ( Field ) :
2172,define the function with arguments self and filename.,"def extract ( self , filename ) :"
2173,"'ModelChoiceField', 'ModelMultipleChoiceField', 'ALL_FIELDS', 'BaseModelFormSet', 'modelformset_factory', 'BaseInlineFormSet', and 'inlineformset_factory'. ALL_FIELDS is a string '__all__'.",ALL_FIELDS = '__all__'
2174,"apply operator.eq function to elements of level iterable, until level is reduced to a single value, if the result is true,","if reduce ( operator . eq , level ) :"
2175,"call the function force_text with an argument url, return the result.",return force_text ( url )
2176,define the method end_index with an argument self.,def end_index ( self ) :
2177,"if condition is not None,",if condition is not None :
2178,"where '%(field)s' is replaced with return value of the get_text_list function called with 2 arguments: unique_check and return value of the function six.text_type called with return value of the function _ with an argument string 'and', return the result. define the method get_date_error_message with 2 arguments: self and date_check.","def get_date_error_message ( self , date_check ) :"
2179,from IPython.Shell import IPShell into default namespace.,from IPython . Shell import IPShell
2180,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
2181,"call the OVERLAPPED function, substitute the result for overlapped.",overlapped = OVERLAPPED ( )
2182,"subtract timestamp from the return value of the function time.time, substitute the result for age.",age = time . time ( ) - timestamp
2183,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
2184,define the method read with an argument self.,def read ( self ) :
2185,"replace all '%s' in string '<%s %s (%s:%s) %s>' with self.__class__.__name__, urlconf_repr, self.app_name,","return str ( '<%s %s (%s:%s) %s>' ) % ( self . __class__ . __name__ , urlconf_repr , self . app_name , self . namespace , self . regex . pattern )"
2186,"for every regex in tuple with 3 elements: RFC1123_DATE, RFC850_DATE and ASCTIME_DATE,","for regex in RFC1123_DATE , RFC850_DATE , ASCTIME_DATE :"
2187,parsed is boolean False.,parsed = False
2188,from django.utils import six into default name space.,from django . utils import six
2189,"call the method base.build_instance with arguments Model, data and self.db, substitute the result for obj.","obj = base . build_instance ( Model , data , self . db )"
2190,"method lru_cache.lru_cache with an argument maxsize set to None, as a decorator,",@ lru_cache . lru_cache ( maxsize = None )
2191,allow_multiple_selected is boolean True.,allow_multiple_selected = True
2192,"define the method __init__ with arguments self, stream and boundary.","def __init__ ( self , stream , boundary ) :"
2193,"call the method parser.parse, substitute the result for nodelist.",nodelist = parser . parse ( )
2194,"'Enter a list of values.' for 'invalid' and return value of the function _ called with an argument string, 'Enter a complete value.' for 'incomplete'. define the method __init__ with arguments self, fields set to an empty ilst, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , fields = ( ) , * args , ** kwargs ) :"
2195,"if ImportError exception is caught,",except ImportError :
2196,"from django.template.base import TemplateSyntaxError, Library, Node, TextNode, token_kwargs and Variable into default namespace.","from django . template . base import TemplateSyntaxError , Library , Node , TextNode , token_kwargs , Variable"
2197,crate a file named init_path.,"open ( init_path , ""w"" ) . close ( )"
2198,call the method gettext_module.GNUTranslations.__init__ with an argument self.,gettext_module . GNUTranslations . __init__ ( self )
2199,"define the method handle with 3 arguments: self, unpacked list args and unpacked dictionary options.","def handle ( self , * args , ** options ) :"
2200,define the method configure_custom with 2 arguments: self and config.,"def configure_custom ( self , config ) :"
2201,"if exclude is true and f.name is contained in exclude,",if exclude and f . name in exclude :
2202,"call the function module_has_submodule with 2 arguments: package and module, return inverted boolean result.","return not module_has_submodule ( package , module )"
2203,substitute app_name for self.app_name.,self . app_name = app_name
2204,BASE62_ALPHABET is string '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.,BASE62_ALPHABET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
2205,"substitute '%s' in the string "" (%s squashed migrations)"" with length of replaces filed of graph.nodes element at the plan_node index, append the string to the title.","title += "" (%s squashed migrations)"" % len ( graph . nodes [ plan_node ] . replaces )"
2206,"try,",try :
2207,"append orig_file to string '#: ', substitute it for new.",new = '#: ' + orig_file [ 2 : ]
2208,"if not,",else :
2209,"if TypeError or ValueError exceptions are caught,","except ( ValueError , TypeError ) :"
2210,"get property attribute _get_height, and substitute it for width.",height = property ( _get_height )
2211,import module copy.,import copy
2212,"and help set to a string 'Tells Django to use specified test runner class instead of the one specified by the TEST_RUNNER setting.'. call the method parser.add_argument with 5 arguments: string '--liveserver', action set to string 'store', dest set to 'liveserver',","parser . add_argument ( '--liveserver' , action = 'store' , dest = 'liveserver' , default = None , help = 'Overrides the default address where the live server (used ' 'with LiveServerTestCase) is expected to run from. The ' 'default value is localhost:8081.' ) ,"
2213,call the method self._update_errors with an argument e.,self . _update_errors ( e )
2214,return boolean False.,return False
2215,increment num by one.,num += 1
2216,from django.utils.html import escape into default name space.,from django . utils . html import escape
2217,define the method __next__ with an argument self.,def __next__ ( self ) :
2218,"define the method write with 3 arguments: self, outfile and encoding.","def write ( self , outfile , encoding ) :"
2219,"get the next element of the iterable pattern_iter, assign the result for ch.",ch = next ( input_iter )
2220,derive the class BaseEmailBackend from the object base class.,class BaseEmailBackend ( object ) :
2221,define the function ssi with 2 arguments: parser and token.,"def ssi ( parser , token ) :"
2222,"streaming_content.setter decorator,",@ streaming_content . setter
2223,"if first element of message_context equals to character '""',","if message_context [ 0 ] == '""' :"
2224,"call the encode function on the Header class instance, created with arguments addr and encoding, substitute the result for addr.","addr = Header ( addr , encoding ) . encode ( )"
2225,"format with it a string '# %s', write it to out. comment_lineno_cache is None,",comment_lineno_cache = None
2226,return nothing.,return
2227,return it. define the function iterlists with 2 arguments: d and unpacked dictionary kw.,"def iterlists ( d , ** kw ) :"
2228,call the self.start_object with an argument obj.,self . start_object ( obj )
2229,"if Exception, renamed to e, exception is caught,",except Exception as e :
2230,define the function slice_filter with 2 arguments value and arg.,"def slice_filter ( value , arg ) :"
2231,DNS_NAME is a instance of CachedDnsName class.,DNS_NAME = CachedDnsName ( )
2232,"assign the result for year_val, month_val and day_val, respectively. html is an empty dictionary.",html = { }
2233,"if settings.SECURE_PROXY_SSL_HEADER is true,",if settings . SECURE_PROXY_SSL_HEADER :
2234,substitute self.rawdata for rawdata.,rawdata = self . rawdata
2235,"call the function remove_tags with 2 arguments value and tags, return the result.","return remove_tags ( value , tags )"
2236,"if 'needs_autoescape' attribute of func object exists and is true,","if getattr ( func , 'needs_autoescape' , False ) :"
2237,"if language is contained in _DJANGO_DEPRECATED_LOCALES,",if language in _DJANGO_DEPRECATED_LOCALES :
2238,"try,",try :
2239,"if length of bits equals integer 4,",if len ( bits ) == 4 :
2240,"if not,",else :
2241,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
2242,_localtime is an instance of LocalTimezone class.,_localtime = LocalTimezone ( )
2243,do nothing.,pass
2244,pieces is an empty list.,pieces = [ ]
2245,"call the method self.render_node with 2 arguments: node and context, substitute the result for bit.","bit = self . render_node ( node , context )"
2246,"raise an ValueError with an argument string ""MultiValueDict.update() takes either a MultiValueDict or dictionary"".","raise ValueError ( ""MultiValueDict.update() takes either a MultiValueDict or dictionary"" )"
2247,"get the value under the old_method_name key of the base.__dict__ dictionary, substitute it for old_method.",old_method = base . __dict__ . get ( old_method_name )
2248,"join m and n into a string, separated by '.', substitute the result for lookup_view_s.","lookup_view_s = ""%s.%s"" % ( m , n )"
2249,"evaluate binary expression with 4 operands: os.O_WRONLY, binary or os.O_CREAT, binary or os.O_EXCL,","flags = ( os . O_WRONLY | os . O_CREAT | os . O_EXCL | getattr ( os , 'O_BINARY' , 0 ) )"
2250,"if sys.platform starts with string 'java',",if sys . platform . startswith ( 'java' ) :
2251,"if mimetype is None, raise an error.",assert mimetype is not None
2252,"append string "" %s"", where '%s' is replaced by name to the usage.","usage . append ( "" %s"" % name )"
2253,"endless while loop,",while 1 :
2254,"call the function copy.deepcopy with 2 arguments: self.children and memodict, substitute the result for obj.children.","obj . children = copy . deepcopy ( self . children , memodict )"
2255,"call the function force_str with argument self.obj, substitute the result for obj.",obj = force_str ( self . obj )
2256,"call the method attrs.copy, substitute the result for self.attrs.",self . attrs = attrs . copy ( )
2257,import module time.,import time
2258,"call the method self._convert_to_charset with arguments: header, string 'latin-1' and mime_encode set to boolean True,","value = self . _convert_to_charset ( value , 'latin-1' , mime_encode = True )"
2259,activate is a lambda function which returns None for any argument x.,activate = lambda x : None
2260,"call the getvalue method of the base class of the PythonSerializer class, return the result.","return super ( PythonSerializer , self ) . getvalue ( )"
2261,"yield string ""# * Make sure each model has one field with primary_key=True"" as the result.","yield ""# * Make sure each model has one field with primary_key=True"""
2262,"return an string ""[Included template had syntax error: %s]"", where '%s' is replaced with e.","return ""[Included template had syntax error: %s]"" % e"
2263,seen_data is an empty set.,seen_data = set ( )
2264,call the method attachment.set_payload with an argument content.,attachment . set_payload ( content )
2265,substitute self.count for top.,top = self . count
2266,call the method os.chdir with an argument our_home_dir.,os . chdir ( our_home_dir )
2267,return j.,return j
2268,while i is lesser than length of subject and i-th element of subject is an empty space or tab character.,"while i < len ( subject ) and subject [ i ] in ( ' ' , '\t' ) :"
2269,define the method __delattr__ with self and name as arguments.,"def __delattr__ ( self , name ) :"
2270,"call the method gettext_module.translation with 5 arguments: domain set to string 'django', localedir set to localedir,","translation = gettext_module . translation ( domain = 'django' , localedir = localedir , languages = [ self . __locale ] , codeset = 'utf-8' , fallback = use_null_fallback )"
2271,raise an FieldError exception with an argument message.,raise FieldError ( message )
2272,call the method handler.endElement with an argument string 'channel'.,"handler . endElement ( ""channel"" )"
2273,"call the method formats.get_format_lazy with an argument string 'DATE_INPUT_FORMATS', substitute the result for input_formats.",input_formats = formats . get_format_lazy ( 'DATE_INPUT_FORMATS' )
2274,"replace '%s' in string ""Cache table '%s' already exists."" with tablename, write it to the self.stdout stream.","self . stdout . write ( ""Cache table '%s' already exists."" % tablename )"
2275,"append string "".moves.urllib_response"" to __name__, use it as an key to get the value from the sys.modules dictionary, substitute it for response.","response = sys . modules [ __name__ + "".moves.urllib_response"" ]"
2276,"join full_statement into a string, separated by newlines, use it as an argument for the call to the method curs.execute.","curs . execute ( ""\n"" . join ( full_statement ) )"
2277,"raise an CommandError exception with an argument string ""You can only use --pks option with one model"".","raise CommandError ( ""You can only use --pks option with one model"" )"
2278,"use the result as an argument for the call to the self.stdout.write method. if run_syncdb and executor.loader.unmigrated_apps exist,",if run_syncdb and executor . loader . unmigrated_apps :
2279,import module sys.,import sys
2280,"if KeyError exception is caught,",except KeyError :
2281,return self._post.,return self . _post
2282,"raise an VariableDoesNotExist exception with an argument string ""Failed lookup for key [%s] in %r"",","raise VariableDoesNotExist ( ""Failed lookup for key "" ""[%s] in %r"" , ( bit , current ) )"
2283,"for every field in model._meta.many_to_many,",for field in model . _meta . many_to_many :
2284,"created with an argument widget set to HiddenInput. value under the INITIAL_FORM_COUNT of the self.base_fields dictionary is an instance of IntegerField class,",self . base_fields [ INITIAL_FORM_COUNT ] = IntegerField ( widget = HiddenInput )
2285,"if not,",else :
2286,if whitelist is not None,if whitelist is not None :
2287,"call the timezone.now function, substitute the result for now.",now = timezone . now ( )
2288,return html.,return html
2289,append string '.' to result.,"result . append ( ""."" )"
2290,substitute callback for self.callback.,self . callback = callback
2291,"define the method has_changed with arguments self, initial and data.","def _has_changed ( self , initial , data ) :"
2292,"define the __init__ method with arguments: self, text, subtype and charset.","def __init__ ( self , text , subtype , charset ) :"
2293,found is boolean False.,found = False
2294,"call the middleware_method with request and e as the arguments, substitute the result for response.","response = middleware_method ( request , e )"
2295,"if _win is true,",if _win :
2296,"raise an CommandError exception with an argument string ""currently makemessages only supports domains 'django' and 'djangojs'"".","raise CommandError ( ""currently makemessages only supports domains "" ""'django' and 'djangojs'"" )"
2297,"if min_num is None,",if min_num is None :
2298,"if deps is true,",if deps :
2299,"call the function format_html with 3 arguments: self.inner_html, choice_value set to choice_value,","output . append ( format_html ( self . inner_html , choice_value = choice_value , sub_widgets = sub_ul_renderer . render ( ) ) )"
2300,define the method add_arguments with arguments self and parser.,"def add_arguments ( self , parser ) :"
2301,"if self.initial is true, substitute the length of self.initial for initial_forms, if not, initial_forms is integer 0.",initial_forms = len ( self . initial ) if self . initial else 0
2302,data is an empty dictionary.,data = { }
2303,call the function patch_response with response and cache_timeout decremented by integer 1 as arguments.,"patch_response_headers ( response , cache_timeout = - 1 )"
2304,substitute self.waiting_readers for t.,t = self . waiting_readers
2305,call the function os.remove with argument fname.,os . remove ( fname )
2306,"return boolean True if tag is contained in self.tags_available method return value, return False otherwise.",return tag in self . tags_available ( )
2307,"get value under the config_string key of the PALETTES dictionary, call the copy method on the result and substitute it for palette.",palette = PALETTES [ NOCOLOR_PALETTE ] . copy ( )
2308,"call the method regex.match with an argument date, substitute the result for m.",m = regex . match ( date )
2309,"if data is None,",if data is None :
2310,"sum m and class Media created with definition, return the result.",return m + Media ( definition )
2311,"otherwise if child.nodeType equals to child.ELEMENT_NODE,",elif child . nodeType == child . ELEMENT_NODE :
2312,derive the class TokenParser form the base class object.,class TokenParser ( object ) :
2313,substitute value under the the 'forloop' key of the context dictionary for parentloop.,parentloop = context [ 'forloop' ]
2314,"for every d in reversed list self.dicts,",for d in reversed ( self . dicts ) :
2315,substitute tempfile.NamedTemporaryFile for NamedTemporaryFile.,NamedTemporaryFile = tempfile . NamedTemporaryFile
2316,"otherwise if ch equals a string '(',",elif ch == '(' :
2317,"if template_dirs is false,",if not template_dirs :
2318,call the method self.registered_checks.append with argument check.,self . registered_checks . append ( check )
2319,"call the method stream_or_string.decode with an argument string 'utf-8', substitute the result for stream_or_string.",stream_or_string = stream_or_string . decode ( 'utf-8' )
2320,"for every f in fields,",for f in fields :
2321,"while rbp is smaller than self.current_token.lbp,",while rbp < self . current_token . lbp :
2322,from django.conf import settings into default name space.,from django . conf import settings
2323,define the method reset with an argument self.,def reset ( self ) :
2324,return last element of value.,return value [ - 1 ]
2325,"define the function build_instance with 3 arguments: Model, data and db.","def build_instance ( Model , data , db ) :"
2326,"if converter is true,",if converter :
2327,from django.core.files.move import file_move_safe into default name space.,from django . core . files . move import file_move_safe
2328,"if self._errors is None,",if self . _errors is None :
2329,"from django.template import Lexer, TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK, TOKEN_COMMENT and TRANSLATOR_COMMENT_MARK.","from django . template import ( Lexer , TOKEN_TEXT , TOKEN_VAR , TOKEN_BLOCK , TOKEN_COMMENT , TRANSLATOR_COMMENT_MARK )"
2330,"if field is not contained in self.fields,",if field not in self . fields :
2331,from django.core.serializers.base import DeserializationError into default name space.,from django . core . serializers . base import DeserializationError
2332,found is boolean False.,found = False
2333,return boolean False.,return False
2334,substitute _iterlists for iterlists.,iterlists = _iterlists
2335,"default_error_messages is an dictionary with an entry: return value of the function _ called with an argument string,","default_error_messages = { 'invalid_choice' : _ ( 'Select a valid choice. %(value)s is not one of the available choices.' ) , 'invalid_list' : _ ( 'Enter a list of values.' ) , }"
2336,define the method create_nodelist with an argument self.,def create_nodelist ( self ) :
2337,field_type is a string 'TextField'.,field_type = 'TextField'
2338,"convert the value under the 'daemonize' key of options dictionary to lowercase, if it equals to string 'false', 'no' or 'f',","elif options [ ""daemonize"" ] . lower ( ) in ( 'false' , 'no' , 'f' ) :"
2339,from importlib.util import find_spec as importlib_find.,from importlib . util import find_spec as importlib_find
2340,"call the method loader.select_template with an argument template, return the result.",return loader . select_template ( template )
2341,import module shutil.,import shutil
2342,"for every model in model_list,",for model in model_list :
2343,define the function get_current_timezone_name.,def get_current_timezone_name ( ) :
2344,call the method handler.addQuickElement with 2 arguments: string 'link' and value under the 'link' key of the self.feed dictionary.,"handler . addQuickElement ( ""link"" , self . feed [ 'link' ] )"
2345,status_code is an integer 410.,status_code = 410
2346,call the method handler.startElement with 2 arguments: string 'feed' and result of the method self.root_attributes.,"handler . startElement ( 'feed' , self . root_attributes ( ) )"
2347,"call the method handler.startElement with 2 arguments: string ""rss"" and result of the method self.rss_attributes.","handler . startElement ( ""rss"" , self . rss_attributes ( ) )"
2348,shells is a list containing 2 elements: string 'ipython' and string 'bpython'.,"shells = [ 'ipython' , 'bpython' ]"
2349,"try,",try :
2350,define get_script_name function with environ as an argument.,def get_script_name ( environ ) :
2351,"if count of occurrence of '::' in ip_str is greater than integer 1,",if ip_str . count ( '::' ) > 1 :
2352,"reverse the order of colors elements,",colors . reverse ( )
2353,"otherwise call the function sys.getdefaultencoding and substitute its result for fs_encoding. if six.PY3 is true or os.name equals a string 'nt',",if six . PY3 or os . name == 'nt' :
2354,parent is a tuple with 2 arguments: form.Meta and object.,"parent = ( form . Meta , object )"
2355,substitute nodelist_loop for self.nodelist_loop.,self . nodelist_loop = nodelist_loop
2356,substitute elements of s from the end index to end for s.,s = s [ end : ]
2357,"call the method self.handle_label with 2 arguments: label and unpacked dictionary options, substitute the result for label_output.","label_output = self . handle_label ( label , ** options )"
2358,define the method validate with arguments self and value.,"def validate ( self , value ) :"
2359,"get 'getvalue' attribute of the self.stream object, if it exists and is callable,","if callable ( getattr ( self . stream , 'getvalue' , None ) ) :"
2360,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
2361,"skip this loop iteration,",continue
2362,"endless loop,",while True :
2363,"if self.can_import_settings is false,",if not self . can_import_settings :
2364,"for every app_config in return value of the method apps.get_app_configs,",for app_config in apps . get_app_configs ( ) :
2365,"call the method imp.find_module with 2 arguments: module_name and list containing element entry, assign the result to file_, _,","file_ , _ , _ = imp . find_module ( module_name , [ entry ] )"
2366,"call the add_argument method on the parser object, with string 'app_label', and help set to string 'App label of the application containing the migration.' as arguments.","parser . add_argument ( 'app_label' , help = 'App label of the application containing the migration.' )"
2367,define the method save_new_objects with 2 arguments: self and commit set to boolean True.,"def save_new_objects ( self , commit = True ) :"
2368,substitute regex for self.regex.,self . regex = regex
2369,"if parse_until is true,",if parse_until :
2370,"if status is not equal to STATUS_OK,",if status != STATUS_OK :
2371,append digit to int_part_gd.,int_part_gd += digit
2372,"if ZeroDivisionError exception is caught,",except ZeroDivisionError :
2373,from django.utils.deprecation import RemovedInNextVersionWarning into default name space.,from django . utils . deprecation import RemovedInNextVersionWarning
2374,"call the function format_html with 2 arguments: string "" "",","return format_html ( "" "" , csrf_token )"
2375,"if cls is false,",if not cls :
2376,"dest set to string 'use_reloader', default set to boolean True and help is a string 'Tells Django to NOT use the auto-reloader.'. def get_handler with 3 arguments: self, unpacked list args and unpacked dictionary options.","def get_handler ( self , * args , ** options ) :"
2377,do nothing.,pass
2378,substitute 'n' for answer.,"answer = ""n"""
2379,append filename to filenames.,filenames . append ( filename )
2380,"if self.timeout is not None,",if self . timeout is not None :
2381,"for every field, error_list in self.error_dict.items method return value,","for field , error_list in self . error_dict . items ( ) :"
2382,return data.,return data
2383,"replace '%s' in string ""### %s = %s"" with key and value under the key key of the user_setting dictionary, append it to the output.","output . append ( ""### %s = %s"" % ( key , user_settings [ key ] ) )"
2384,"and trimmed and result of the function join_tokens called with 2 arguments: plural and trimmed, write the result to out. for every part in singular,",for part in singular :
2385,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
2386,"call the method self.style.MIGRATE_HEADING with an argument string ""Will squash the following migrations:"",","self . stdout . write ( self . style . MIGRATE_HEADING ( ""Will squash the following migrations:"" ) )"
2387,"define the method inclusion_tag with 5 arguments: self, file_name, context_class set to Context, takes_context set to boolean False,","def inclusion_tag ( self , file_name , context_class = Context , takes_context = False , name = None ) :"
2388,from django.utils._os import upath into default name space.,from django . utils . _os import upath
2389,substitute code_changed for fn.,fn = code_changed
2390,import module re.,import re
2391,substitute string 'checked' for value under the 'checked' key of final_attrs dictionary.,final_attrs [ 'checked' ] = 'checked'
2392,"self.__class__.__module__ and self.__class__.__name__, respectively, substitute the result for self.salt. define the method signature with arguments self and value.","def signature ( self , value ) :"
2393,"call the function re.compile with an argument raw string '\S', substitute it for dot_re.",dot_re = re . compile ( r'\S' )
2394,return _dec.,return _dec
2395,define the method __iter__ with an argument self.,def __iter__ ( self ) :
2396,"define the method __exit__ with 4 arguments self, exc_type, exc_value and traceback.","def __exit__ ( self , exc_type , exc_value , traceback ) :"
2397,"call the method re.search with 2 arguments: raw string '^[_a-zA-Z]' and name, if it evaluates to false,","if not re . search ( r'^[_a-zA-Z]' , name ) :"
2398,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
2399,"if num is greater than self._max_entries,",if num > self . _max_entries :
2400,"instantiate class Module_six_moves_urllib with an argument, string "".moves.urllib"" appended to __name__,","sys . modules [ __name__ + "".moves.urllib"" ] = Module_six_moves_urllib ( __name__ + "".moves.urllib"" )"
2401,"s and max_age set to max_age, use it as an argument for the force_bytes function, substitute the result for base64d. decompress is boolean False.",decompress = False
2402,define the function format with 2 arguments: value and format_string.,"def format ( value , format_string ) :"
2403,"call the method ops.process_clob with second element of row as argument, on the object under the db key of connections dictionary, substitute the result for value.",value = connections [ db ] . ops . process_clob ( row [ 1 ] )
2404,from django.core.management.sql import sql_flush and emit_post_migrate_signal into default name space.,"from django . core . management . sql import sql_flush , emit_post_migrate_signal"
2405,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
2406,define the method extract with 2 arguments self and to_path.,"def extract ( self , to_path ) :"
2407,"call the function _checkLevel with an argument level, use the result as an argument for the call to the method logger.setLevel.",logger . setLevel ( _checkLevel ( level ) )
2408,"if not,",else :
2409,"define the function format_html with 3 arguments: format_string, unpacked list args and unpacked dictionary kwargs.","def format_html ( format_string , * args , ** kwargs ) :"
2410,define the method list with 3 arguments: self and unpacked list args and unpacked dictionary kwargs.,"self . _archive . list ( * args , ** kwargs )"
2411,"call the method self.create_nodelist, substitute the result for nodelist.",nodelist = self . create_nodelist ( )
2412,define the method __newobj__ with 2 arguments cls and unpacked list args.,"def __newobj__ ( cls , * args ) :"
2413,called with an argument BlockNode. define the method __repr__ with an argument self.,def __repr__ ( self ) :
2414,"'Select a valid choice. %(value)s is not one of the available choices.' for 'invalid_choice', and return value of the function _ called with an argument string 'Enter a list of values.' for 'invalid_list'. define the method to_python with arguments self and value.","def to_python ( self , value ) :"
2415,"call the method (hidden_widget.value_from_datadict with 3 arguments: self.data, self.files and initial_prefixed_name,","initial_value = field . to_python ( hidden_widget . value_from_datadict ( self . data , self . files , initial_prefixed_name ) )"
2416,call the method self.add_filters with 2 arguments: result and filters.,"self . add_filters ( result , filters )"
2417,raise an ContentNotRenderedError exception with an sring 'The response content must be rendered before it can be accessed.'.,raise ContentNotRenderedError ( 'The response content must be ' 'rendered before it can be accessed.' )
2418,"for every potfile in potfiles,",for potfile in potfiles :
2419,"call the method connection.introspection.sequence_list if reset_sequences is true, substitute the result for seqs, if not, seqs is an empty tuple.",seqs = connection . introspection . sequence_list ( ) if reset_sequences else ( )
2420,substitute the result for key. pdict is an empty dictionary.,pdict = { }
2421,"if cc contains item 'public' and kwargs contains item 'private',",elif 'public' in cc and 'private' in kwargs :
2422,return self.limit_choices_to.,return self . limit_choices_to
2423,derive the class BaseInlineFormSet from the BaseModelFormSet base class.,class BaseInlineFormSet ( BaseModelFormSet ) :
2424,return value.,return value
2425,"separated by newline, use it as an argument for the call to the function mark_safe, return the result. define the method as_ul with an argument self.",def as_ul ( self ) :
2426,"if not,",else :
2427,"call the method handler.addQuickElement with 3 arguments: string 'link', an empty string and a dictionary with an entry:","handler . addQuickElement ( ""category"" , """" , { ""term"" : cat } )"
2428,define the method get_version with an arguments self.,def get_version ( self ) :
2429,from django.utils.encoding import force_str and force_text into default name space.,"from django . utils . encoding import force_str , force_text"
2430,call the method self.__deepcopy__ with an empty dictionary as an argument.,return self . __deepcopy__ ( { } )
2431,"call the params.get method with string 'TIMEOUT' and integer 300 as arguments, use the string 'timeout' and previous result as the arguments for the call to the params.get method, substitute the result for timeout.","timeout = params . get ( 'timeout' , params . get ( 'TIMEOUT' , 300 ) )"
2432,if s is an instance of an object Promise.,"if isinstance ( s , Promise ) :"
2433,"strings ""Please submit %d or more forms."", ""Please submit %d or more forms."" and self.min_num, where '%d' is replaced with self.min_num, and code as a string 'too_few_forms'. call the method self.clean.",self . clean ( )
2434,"finally perform,",finally :
2435,if truncate_len equals integer 0.,if truncate_len == 0 :
2436,define the method reload with an argument self.,def reload ( self ) :
2437,return boolean True.,return True
2438,"define lambda function that returns self.file.softspace field, use it as an argument for property function, put the result in softspace.",softspace = property ( lambda self : self . file . softspace )
2439,define the method __contains__ with 2 arguments: self and other.,"def __contains__ ( self , other ) :"
2440,"CONTEXT_SEPARATOR is a string ""\x04"".","CONTEXT_SEPARATOR = ""\x04"""
2441,"define the method __init__ with 4 arguments: self, children set to None, connector set to None and negated set to boolean False.","def __init__ ( self , children = None , connector = None , negated = False ) :"
2442,where '%s' is replaced with filename. return cls.,return cls
2443,"try,",try :
2444,cls is None.,cls = None
2445,substitute TemporaryFile for NamedTemporaryFile.,NamedTemporaryFile = TemporaryFile
2446,"if neg is true,",if neg :
2447,"if id_ is true id_attr set to return value of the function format_html, if not id_attr set to an empty string, content set to result of the function mark_safe with an argument: string created by joining elements of outputs, with '\n' separator, return the result. derive the class RadioFieldRenderer from the ChoiceFieldRenderer base class.",class RadioFieldRenderer ( ChoiceFieldRenderer ) :
2448,substitute _itervalues for values.,values = _itervalues
2449,return attrs.,return attrs
2450,"get the 'silent_variable_failure' attribute of e object, if it exists and is true,","if getattr ( e , 'silent_variable_failure' , False ) :"
2451,int_part_gd is an empty string.,int_part_gd = ''
2452,return property object with _media as getter function.,return property ( _media )
2453,"call the function allow_lazy with an argument phone2numeric, substitute the result for phone2numeric.",phone2numeric = allow_lazy ( phone2numeric )
2454,"otherwise if self.verbosity equals integer 3,",elif self . verbosity == 3 :
2455,"if not, self.hide_empty is boolean False. get the value under the 'verbosity' key of the options dictionary, substitute it for self.verbosity.",self . verbosity = options . get ( 'verbosity' )
2456,"property decorator,",@ property
2457,substitute '%r' with name and compile_function. define the method tag_function with 2 argument: self and func.,"def tag_function ( self , func ) :"
2458,"strip message_context of ""'"" characters from both ends, substitute the result for message_context.","message_context = message_context . strip ( ""'"" )"
2459,define the method merge with 2 arguments self and other.,"def merge ( self , other ) :"
2460,"if f.db_index is true,",if f . db_index :
2461,define the method __delitem__ with 2 arguments: self and header.,"def __delitem__ ( self , header ) :"
2462,"if return value of function response.has_header with string 'Vary' as argument is boolean False,",if not response . has_header ( 'Vary' ) :
2463,if size equals to integer zero.,if size == 0 :
2464,"define the method __init__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
2465,"value under the MISSES key of the stats dictionary, maxsize and length of cache. define the function cache_clear.",def cache_clear ( ) :
2466,return boolean True.,return True
2467,call the method val.encode with argument string 'ascii'.,val . encode ( 'ascii' )
2468,"if not,",else :
2469,DEFAULT_LOCALE_ENCODING and strings_only set to boolean True and p.returncode. define the function handle_extensions with 2 arguments: extensions set to tuple containing string 'html' and ignored set to tuple containing string 'py'.,"def handle_extensions ( extensions = ( 'html' , ) , ignored = ( 'py' , ) ) :"
2470,"remove config dictionary element under 'filter' key, if it exists substitute it for filters, if not, filters is None.","filters = config . pop ( 'filters' , None )"
2471,substitute i-th element of value for widget_value.,widget_value = value [ i ]
2472,define the method pk_is_not_editable with an argument pk.,def pk_is_not_editable ( pk ) :
2473,"put the results in a list, join the list elements in a string separated by whitespace separator, return the string as the bytes string. evaluate the method six.text_type(s), on the result call the method encode with the arguments encoding and errors, return the result.","return six . text_type ( s ) . encode ( encoding , errors )"
2474,define the method send_messages with arguments self and messages.,"def send_messages ( self , messages ) :"
2475,return boolean False.,return False
2476,"call the method self._new_gnu_trans with an argument localedir, substitute the result for translation.",translation = self . _new_gnu_trans ( localedir )
2477,_encoding is None.,_encoding = None
2478,"append resolved_args to a list containing context element, substitute it for resolved_args.",resolved_args = [ context ] + resolved_args
2479,"register.tag decorator,",@ register . tag
2480,return value under the key key of d dictionary.,return d [ key ]
2481,"call the method style.NOTICE with an argument string ""Note that only Django core commands are listed as settings are not properly configured (error: %s)."", where '%s' is replaced by self.settings_exception, append the result to usage.","usage . append ( style . NOTICE ( ""Note that only Django core commands are listed "" ""as settings are not properly configured (error: %s)."" % self . settings_exception ) )"
2482,"if _cookie_encodes_correctly is boolean False,",if not _cookie_encodes_correctly :
2483,"format string '\x1b[%sm' with RESET, return the result.",return '\x1b[%sm' % RESET
2484,"if self.pointer is smaller than length of self.subject, return boolean True, otherwise return False.",return self . pointer < len ( self . subject )
2485,"_js_escapes is a dictionary with 11 initial entries: '\\u005C' for integer representation of string '\\',","_js_escapes = { ord ( '\\' ) : '\\u005C' , ord ( '\'' ) : '\\u0027' , ord ( '""' ) : '\\u0022' , ord ( '>' ) : '\\u003E' , ord ( '<' ) : '\\u003C' , ord ( '&' ) : '\\u0026' , ord ( '=' ) : '\\u003D' , ord ( '-' ) : '\\u002D' , ord ( ';' ) : '\\u003B' , ord ( '\u2028' ) : '\\u2028' , ord ( '\u2029' ) : '\\u2029' }"
2486,"if response is None,",if response is None :
2487,substitute asvar for self.asvar.,self . asvar = asvar
2488,self.backout is an empty list.,self . backout = [ ]
2489,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
2490,return self._client.,return self . _client
2491,self.lineno is None.,self . lineno = None
2492,"call the method self.check with 2 arguments app_configs set to app_configs, display_num_errors set to display_num_errors, return the result.","return self . check ( app_configs = app_configs , display_num_errors = display_num_errors )"
2493,"with all occurrences of '%s' replaced with app_name and model._meta.object_name, respectively. if self.verbosity is greater or equal to integer 1,",if self . verbosity >= 1 :
2494,"split token.contents into separate words, substitute the first element of the result for command.",command = token . contents . split ( ) [ 0 ]
2495,"call the method field.rel.to._default_manager.db_manager with an argument self.db, on the result call the method get_by_natural_key,",obj = field . rel . to . _default_manager . db_manager ( self . db ) . get_by_natural_key ( * field_value )
2496,"substitute the result for queryset. if primary_keys is true,",if primary_keys :
2497,operations is an empty list.,operations = [ ]
2498,"call the function urlquote with an argument _prefix, use the result as an argument for the call to the normalize function,","prefix_norm , prefix_args = normalize ( urlquote ( _prefix ) ) [ 0 ]"
2499,"if self.alternatives is true,",if self . alternatives :
2500,"try,",try :
2501,"join elements of tags into a string, separated with '|', format string '(%s)' with it, substitute the result for tags_re.",tags_re = '(%s)' % '|' . join ( tags )
2502,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
2503,"call the M.set method with the key, real_value, coded_value as the arguments.","M . set ( key , real_value , coded_value )"
2504,"property decorator,",@ property
2505,"call the function pickle.dumps with value and pickle.HIGHEST_PROTOCOL as the arguments, substitute the result for pickled.","pickled = pickle . dumps ( value , pickle . HIGHEST_PROTOCOL )"
2506,"append string "" You may need to add %r to ALLOWED_HOSTS."" to msg, where '%s' is replaced with domain.","msg += "" You may need to add %r to ALLOWED_HOSTS."" % domain"
2507,return the string. define the function make_style with 2 arguments: opts set to an empty tuple and unpacked dictionary kwargs.,"def make_style ( opts = ( ) , ** kwargs ) :"
2508,"call the function func with request and response as arguments, assign the result to response.","response = func ( request , response )"
2509,"if StandardError, renamed to e, exception is caught,",except StandardError as e :
2510,"decrement date.month by integer 1, use the result as an key to obtain the value from the months dictionary, substitute it for month.",month = months [ date . month - 1 ]
2511,"if not,",else :
2512,allow_multiple_selected is boolean False.,allow_multiple_selected = False
2513,"if value is an instance of six.string_types and value is not equal to ALL_FIELDS,","if isinstance ( value , six . string_types ) and value != ALL_FIELDS :"
2514,"if index is not None,",if index is not None :
2515,raise an exception.,raise
2516,convert value into boolean and substitute it for value.,value = bool ( value )
2517,substitute length for self._length.,self . length = length
2518,define the method is_secure with an argument self.,def is_secure ( self ) :
2519,BASE36_ALPHABET is a string '0123456789abcdefghijklmnopqrstuvwxyz'.,BASE36_ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz'
2520,content_subtype is a string 'plain'.,content_subtype = 'plain'
2521,old_field_name is None.,old_field_name = None
2522,return None.,return None
2523,field_notes is an empty list.,field_notes = [ ]
2524,close fd file.,os . close ( fd )
2525,substitute self.literal for value.,value = self . literal
2526,self.resolver_match is None.,self . resolver_match = None
2527,substitute key for result.key.,result . key = key
2528,"call the function get_connection with argument fail_silently set to fail_silently, substitute it for self.connection.",self . connection = get_connection ( fail_silently = fail_silently )
2529,"call the method payload.decode with 2 arguments: text and utf8_charset, substitute the result for self._payload.","self . set_payload ( text , utf8_charset )"
2530,"call the method parser.add_option with 2 arguments: string '--pythonpath' and help set to a string 'A directory to add to the Python path, e.g. ""/home/djangoprojects/myproject"".'","parser . add_argument ( '--pythonpath' , help = 'A directory to add to the Python path, e.g. ""/home/djangoprojects/myproject"".' )"
2531,return self.__offset.,return self . __offset
2532,FILTER_ARGUMENT_SEPARATOR is a string ':'.,FILTER_ARGUMENT_SEPARATOR = ':'
2533,return nothing.,return
2534,"call the method self.set with key, value, timeout and version as arguments.","self . set ( key , value , timeout , version )"
2535,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
2536,"substitute the result for trimmed. middle is a string '%s ' formated with url, nofollow_attr and trimmed.","middle = '%s ' % ( url , nofollow_attr , trimmed )"
2537,return boolean True.,return True
2538,append bytes to chunks.,chunks . append ( bytes )
2539,"call the method field.rel.to._default_manager.db_manager with an argument self.db, on the result call the method get_by_natural_key,",obj_pk = field . rel . to . _default_manager . db_manager ( self . db ) . get_by_natural_key ( * field_value ) . pk
2540,"call the function to_language with an argument language, substitute it for self.__to_language.",self . __to_language = to_language ( language )
2541,"get the value under the 'database' key of the options dictionary, use it as the key to get the value from the connections dictionary, substitute the result for connection.",connection = connections [ options [ 'database' ] ]
2542,"get the value under the self.name key of the self.form.errors dictionary, if the key exists, return it,","return self . form . errors . get ( self . name , self . form . error_class ( ) )"
2543,increment line by buffer_.,line = buffer_ + line
2544,"if filename is not contained in _error_files,",if filename not in _error_files :
2545,return chunk.,return chunk
2546,"replace all the occurrences of previous string in msgs for an empty string, substitute the result for msgs. call the function io.open with 3 arguments: pofile, string 'w' and encoding set to string 'utf-8' as arguments,","with io . open ( pofile , 'w' , encoding = 'utf-8' ) as fp :"
2547,"evaluate method self.literal_regex.match with an argument domain_part, substitute the result for literal_match.",literal_match = self . literal_regex . match ( domain_part )
2548,"call the function convert_old_style_list with an argument sublist, substitute the result for item and old_style_list.","item , old_style_list = convert_old_style_list ( sublist )"
2549,import module os.,import os
2550,"replace '%s' in string ""copying plural forms: %s\n"" with plural_form_line, write it to self.stdout.","self . stdout . write ( ""copying plural forms: %s\n"" % plural_form_line )"
2551,"raise an TemplateSyntaxError exception with an argument string '""with"" in %r tag needs at least one keyword argument.',","raise TemplateSyntaxError ( '""with"" in %r tag needs at least ' 'one keyword argument.' % bits [ 0 ] )"
2552,substitute block for value under the 'block' key of context dictionary.,context [ 'block' ] = block
2553,call the method parser.delete_first_token.,parser . delete_first_token ( )
2554,return boolean False.,return False
2555,"try,",try :
2556,return boolean False.,return False
2557,"append pattern into a list patterns, for every possibility, pattern and defaults in possibilities.","patterns = [ pattern for ( possibility , pattern , defaults ) in possibilities ]"
2558,"try,",try :
2559,"if locales is true,",if locales :
2560,convert value to lowercase and return the result.,return value . lower ( )
2561,"define the function npgettext with 4 arguments: context, singular, plural and number.","def npgettext ( context , singular , plural , number ) :"
2562,raise an exception.,raise
2563,"try,",try :
2564,"compile a regex from raw string '^\d+$', substitute it for DIGIT_PATTERN.",DIGIT_PATTERN = re . compile ( r'^\d+$' )
2565,"split label by '.', assign the result to app_label and model_label, respectively.","app_label , model_label = label . split ( '.' )"
2566,self.vals is an empty list.,self . vals = [ ]
2567,"def initialization method __init__ with self class instance, stream, limit and buf_size set to integer value of the product 64*1024*1024.","def __init__ ( self , stream , limit , buf_size = 64 * 1024 * 1024 ) :"
2568,"substitute the result for formatters dictionary value under name key. if StandardError, renamed to e, exception is caught,",except StandardError as e :
2569,"if self.choice_value is contained in self.value return boolean True, otherwise return boolean False.",return self . choice_value in self . value
2570,"define the function dec with an argument func,",def dec ( func ) :
2571,"try,",try :
2572,"sort loader.migrated_apps, substitute it for app_names.",app_names = sorted ( loader . migrated_apps )
2573,"if six.PY3 is true,",if six . PY3 :
2574,return the result. define the method unclosed_block_tag with 2 arguments: self and parse_until.,"def unclosed_block_tag ( self , parse_until ) :"
2575,domain_whitelist is a list containing string 'localhost'.,domain_whitelist = [ 'localhost' ]
2576,"if value is an instance of bytes class,","if isinstance ( value , bytes ) :"
2577,from django.template.base import TemplateDoesNotExist into default name space.,from django . template . base import TemplateDoesNotExist
2578,"call the function os.path.basename with an arguments path, substitute the result for filename.",filename = os . path . basename ( path )
2579,"call the import_string with app_path as an argument, return the result.",return import_string ( app_path )
2580,"call the method parser.next_token, substitute the result for token.",token = parser . next_token ( )
2581,define the function code_changed.,def code_changed ( ) :
2582,"if opname is not contained in roots,",if opname not in roots :
2583,"if self.help is true,",if self . help :
2584,import module zlib.,import zlib
2585,args is an empty tuple.,args = ( )
2586,derive the class Critical from base class CheckMessage.,class Critical ( CheckMessage ) :
2587,import module sys.,import sys
2588,"call the function datetime.datetime with 3 arguments, d.year, d.month and d.day, substitute the result for d.","d = datetime . datetime ( d . year , d . month , d . day )"
2589,"call the function warnings.warn with 3 arguments: string ""SortedDict is deprecated and will be removed in Django 1.9."",","warnings . warn ( ""SortedDict is deprecated and will be removed in Django 1.9."" , RemovedInDjango19Warning , stacklevel = 2 )"
2590,substitute var_name for self.var_name.,self . var_name = var_name
2591,if check is not contained in self.registered_checks.,if check not in self . registered_checks :
2592,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
2593,"otherwise if disable_existing is true,",elif disable_existing :
2594,"call the method self.options.copy, substitute the result for self.json_kwargs.",self . json_kwargs = self . options . copy ( )
2595,"if LookupError exception is caught,",except LookupError :
2596,from threading import local into default name space.,from threading import local
2597,"if self._options exists,",if self . _options :
2598,derive the class Rss201rev2Feed from the RssFeed base class.,class Rss201rev2Feed ( RssFeed ) :
2599,define the method is_valid with an argument self.,def is_valid ( self ) :
2600,return attrs.,return attrs
2601,call the method self.instance.full_clean with 2 arguments: exclude set to exclude and validate_unique set to boolean False.,"self . instance . full_clean ( exclude = exclude , validate_unique = False )"
2602,from django.utils.translation import ugettext_lazy as _ into default name space.,from django . utils . translation import ugettext_lazy as _
2603,"if AttributeError exception is caught,",except AttributeError :
2604,"key, encoding and errors set to string 'replace', and return value of the function force_text with 3 arguments: value, encoding and errors set to string 'replace'. call the method mutable substitute for self._mutable.",self . _mutable = mutable
2605,define the method id_for_label with arguments self and id.,"def id_for_label ( self , id_ ) :"
2606,"both_before is a list containing 14 elements, all of them are instances of Tok class, created with 2 arguments, a string and a raw string.","both_before = [ Tok ( ""comment"" , r""/\*(.|\n)*?\*/"" ) , Tok ( ""linecomment"" , r""//.*?$"" ) , Tok ( ""ws"" , r""\s+"" ) , Tok ( ""keyword"" , literals ( """""" break case catch class const continue debugger default delete do else enum export extends finally for function if import in instanceof new return super switch this throw try typeof var void while with """""" , suffix = r""\b"" ) , next = 'reg' ) , Tok ( ""reserved"" , literals ( ""null true false"" , suffix = r""\b"" ) , next = 'div' ) , Tok ( ""id"" , r"""""" ([a-zA-Z_$ ]|\\u[0-9a-fA-Z]{4}) # first char ([a-zA-Z_$0-9]|\\u[0-9a-fA-F]{4})* # rest chars """""" , next = 'div' ) , Tok ( ""hnum"" , r""0[xX][0-9a-fA-F]+"" , next = 'div' ) , Tok ( ""onum"" , r""0[0-7]+"" ) , Tok ( ""dnum"" , r"""""" ( (0|[1-9][0-9]*) # DecimalIntegerLiteral \. # dot [0-9]* # DecimalDigits-opt ([eE][-+]?[0-9]+)? # ExponentPart-opt | \. # dot [0-9]+ # DecimalDigits ([eE][-+]?[0-9]+)? # ExponentPart-opt | (0|[1-9][0-9]*) # DecimalIntegerLiteral ([eE][-+]?[0-9]+)? # ExponentPart-opt ) """""" , next = 'div' ) , Tok ( ""punct"" , literals ( """""" >>>= === !== >>> <<= >>= <= >= == != << >> && || += -= *= %= &= |= ^= """""" ) , next = ""reg"" ) , Tok ( ""punct"" , literals ( ""++ -- ) ]"" ) , next = 'div' ) , Tok ( ""punct"" , literals ( ""{ } ( [ . ; , < > + - * % & | ^ ! ~ ? : ="" ) , next = 'reg' ) , Tok ( ""string"" , r'""([^""\\]|(\\(.|\n)))*?""' , next = 'div' ) , Tok ( ""string"" , r""'([^'\\]|(\\(.|\n)))*?'"" , next = 'div' ) , ]"
2607,"iterator is an instance of ChunkIter class, created with arguments: stream_or_iterable and integer 16384.","iterator = ChunkIter ( stream_or_iterable , 16384 )"
2608,"try,",try :
2609,if count is equal to integer 0.,if count == 0 :
2610,"otherwise if rhs is an instance of SafeBytes,","elif isinstance ( rhs , SafeBytes ) :"
2611,"pop the value under the 'stream' key of the kwargs dictionary, if it exists replace it for self.stream, if not replace sys.stdout for self.stream.","self . stream = kwargs . pop ( 'stream' , sys . stdout )"
2612,if self.stream is None:,if self . stream is None :
2613,"get 'EMAIL_FILE_PATH' from the settings, if it exists, substitute it for self.file_path, if not substitute None for self.file_path.","self . file_path = getattr ( settings , 'EMAIL_FILE_PATH' , None )"
2614,"if set is empty return string '(none)' instead, append the previous to the string "" Apply all migrations: "", use the previous string as the argument for the call to the method self.style.MIGRATE_LABEL, use the result as an argument for the call to the method self.stdout.write. if not,",else :
2615,"if hextet converted to hexadecimal number is smaller than hexadecimal 0, or hextet converted to hexadecimal number is smaller than hexadecimal FFFF,","if int ( hextet , 16 ) < 0x0 or int ( hextet , 16 ) > 0xFFFF :"
2616,"concatenate __name__, string '.moves' and attr.name together, use it as an key to get the value from the sys.modules dictionary,","sys . modules [ __name__ + "".moves."" + attr . name ] = attr"
2617,"call the method get_unique_error_message from the base class of the class BaseInlineFormSet, with an argument unique_check, return the result.","return super ( BaseInlineFormSet , self ) . get_unique_error_message ( unique_check )"
2618,"call the method connection.ops.sequence_reset_sql with 2 arguments self.style and models, substitute the result for statements.","statements = connection . ops . sequence_reset_sql ( self . style , models )"
2619,"self.instance and unpacked dictionary kwargs. if form._meta.fields is true,",if form . _meta . fields :
2620,"string 'Select a valid choice. That choice is not one of the available choices.' for 'invalid_choice'. define the method __init__ with 13 arguments: self, queryset, empty_label set to a string ""---------"", cache_choices set to None,","def __init__ ( self , queryset , empty_label = ""---------"" , cache_choices = None , required = True , widget = None , label = None , initial = None , help_text = '' , to_field_name = None , limit_choices_to = None , * args , ** kwargs ) :"
2621,"append to options a tuple containing 2 entries: result of the method s_opt.get_opt_string and s_opt.nargs,","options += [ ( s_opt . get_opt_string ( ) , s_opt . nargs ) for s_opt in parser . option_list ]"
2622,if mw_instance has an attribute named 'process_template_response'.,"if hasattr ( mw_instance , 'process_template_response' ) :"
2623,"if status is not equal to STATUS_OK,",if status != STATUS_OK :
2624,do nothing.,pass
2625,define the method _get_to_python with 2 arguments: self and field.,"def _get_to_python ( self , field ) :"
2626,"call the function get_template with 2 arguments: template_name and dirs, substitute the result for t.","t = get_template ( template_name , dirs )"
2627,define the method __repr__ with an argument self.,def __repr__ ( self ) :
2628,VARIABLE_ATTRIBUTE_SEPARATOR is a string '.'.,VARIABLE_ATTRIBUTE_SEPARATOR = '.'
2629,"to_locale called with an argument lang_code, if the result is not None, return boolean True.",return True
2630,from django.utils import datetime_safe into default name space.,from django . utils import datetime_safe
2631,"call the method MIMEMessage.__setitem__ with arguments self, name and val.","MIMEMessage . __setitem__ ( self , name , val )"
2632,"call the method field.hidden_widget, substitute the result for field.hidden_widget.",hidden_widget = field . hidden_widget ( )
2633,define the method __getstate__ with an argument self.,def __getstate__ ( self ) :
2634,append string '_0' to id_.,id_ += '_0'
2635,return string 'StopUpload: Halt current upload.'.,return 'StopUpload: Halt current upload.'
2636,"subtract _cached_modules from module_values, assign the result to new_modules.",new_modules = module_values - _cached_modules
2637,"if timezone is None,",if timezone is None :
2638,if content is not None raise an error.,assert content is not None
2639,substitute template_string for self.template_string.,self . template_string = template_string
2640,"extra for 'extra', can_delete for 'can_delete', can_order for 'can_order', fields for 'fields', exclude for 'exclude', min_num for 'min_num', max_num for 'max_num', widgets for 'widgets', validate_min for 'validate_min', validate_max for 'validate_max', localized_fields for 'localized_fields', labels for 'labels', help_texts for 'help_texts', and error_messages for 'error_messages'. call the function modelformset_factory with 2 arguments: model and unpacked dictionary kwargs, substitute the result for FormSet.","FormSet = modelformset_factory ( model , ** kwargs )"
2641,import module sys.,import sys
2642,"action set to 'append', default is a list containing string 'py' and help set to string: 'The file extension(s) to render (default: ""py""). Separate multiple extensions with commas, or use -e multiple times.'. call the method parser.add_argument with 6 arguments: string '--name', string '-n', dest set to string 'files',","parser . add_argument ( '--name' , '-n' , dest = 'files' , action = 'append' , default = [ ] , help = 'The file name(s) to render. ' 'Separate multiple extensions with commas, or use ' '-n multiple times.' )"
2643,"if self.data is an instance of datetime.datetime and result of the function is_aware called with an argument self.data evaluates to true,","if isinstance ( self . data , datetime . datetime ) and is_aware ( self . data ) :"
2644,"extend errors list with m for every m in e.error_list, only if m is not in errors.",errors . extend ( m for m in e . error_list if m not in errors )
2645,remove symlink_path file.,os . remove ( symlink_path )
2646,substitute string 'ascii' for encoding.,encoding = 'ascii'
2647,statement is an empty list.,statement = [ ]
2648,"dest set to string 'no_location', default as boolean False and help as a string ""Don't write '#: filename:line' lines."". call the method parser.add_argument with 5 arguments: string '--no-obsolete', action as a string 'store_true',","parser . add_argument ( '--no-obsolete' , action = 'store_true' , dest = 'no_obsolete' , default = False , help = ""Remove obsolete message strings."" )"
2649,"compile a regex from raw string '^(?P[a-z]+)://(?P.*)$', substitute it for CONVERT_PATTERN.",CONVERT_PATTERN = re . compile ( r'^(?P[a-z]+)://(?P.*)$' )
2650,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
2651,"if BLOCK_CONTEXT_KEY is not contained in context.render_context,",if BLOCK_CONTEXT_KEY not in context . render_context :
2652,derive the class LocMemCache from the base class BaseCache.,class LocMemCache ( BaseCache ) :
2653,"name appended to string '_', as the name of the attribute to get from self object, or if the previous doesnt exist, None. append name to 'add_' use it as the name of the attribute to get from combined object , call the result with an argument:","getattr ( combined , 'add_' + name ) ( getattr ( other , '_' + name , None ) )"
2654,"call the method self._base_set with string 'add', key, value and timeout as arguments, return the result.","return self . _base_set ( 'add' , key , value , timeout )"
2655,skip this loop execution.,continue
2656,from django.core.management.color import color_style into default name space.,from django . core . management . color import color_style
2657,"get the value under the 'verbosity' key of the options dictionary, substitute it for self.verbosity.",self . verbosity = options . get ( 'verbosity' )
2658,define the method to_python with 2 arguments: self and value.,"def to_python ( self , value ) :"
2659,"raise an exception,",raise
2660,"try,",try :
2661,"if length of bits is smaller than integer 1,",if len ( bits ) < 1 :
2662,"decorator stringfilter,",@ stringfilter
2663,"where '%r' is replaced with name and filter_func, respectively. define the method filter_function with 3 arguments: self, func and unpacked dictionary flags.","def filter_function ( self , func , ** flags ) :"
2664,define the method send_messages with arguments self and email_messages.,"def send_messages ( self , email_messages ) :"
2665,"call the function urlretrieve with arguments url and tempdir and filename joined into a file path, assign the result to the_path, and info, respectively.","the_path , info = urlretrieve ( url , path . join ( tempdir , filename ) )"
2666,"if accept_lang equals '*',",if accept_lang == '*' :
2667,"call the os.path.normpath with argument path, return the result.",return os . path . normpath ( path )
2668,derive the class FilePathField from the base class ChoiceField class.,class FilePathField ( ChoiceField ) :
2669,from django.conf import settings into default name space.,from django . conf import settings
2670,return value.,return value
2671,"fk_name, parent_model._meta.app_label and parent_model._meta.object_name, respectively. otherwise if length of fks_to_parent is zero,",elif len ( fks_to_parent ) == 0 :
2672,"if not,",else :
2673,call the method field_params.update with an argument new_params.1,field_params . update ( new_params )
2674,"call the method parser.add_argument with 4 arguments: string 'args', metavar set to string 'test_label', nargs set to string '*',","parser . add_argument ( 'args' , metavar = 'test_label' , nargs = '*' , help = 'Module paths to test; can be modulename, modulename.TestCase or modulename.TestCase.test_method' )"
2675,"call the method self.stdout.write with an argument string ""Loading '%s' fixtures..."", where '%s' is replaced with fixture_name.","self . stdout . write ( ""Loading '%s' fixtures..."" % fixture_name )"
2676,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
2677,delete attr.,del attr
2678,"if app_label is not contained in executor.loader.migrated_apps,",if app_label not in executor . loader . migrated_apps :
2679,"if PY3 is true,",if PY3 :
2680,"define function learn_cache_key with request, response, cache_timeout set to None, key_prefix set to None, cache set to None as arguments.","def learn_cache_key ( request , response , cache_timeout = None , key_prefix = None , cache = None ) :"
2681,"call the method filter.get_request_repr with an argument request, format string '\n{0}' with the result, substitute the result for request_repr.",request_repr = '\n{0}' . format ( filter . get_request_repr ( request ) )
2682,"if errors is true,",if errors :
2683,substitute formfield.limit_choices_to for limit_choices_to.,limit_choices_to = formfield . limit_choices_to
2684,"call the function render_value_in_context with 2 arguments: value and context, return the result.","return render_value_in_context ( value , context )"
2685,define the function url with 2 arguments: parser and token.,"def url ( parser , token ) :"
2686,"if not,",else :
2687,"if content is None, raise an error.",assert content is not None
2688,return wrapped.,return wrapped
2689,"call the method resource.decode with an argument settings.FILE_CHARSET, substitute the result for resource.",resource = resource . decode ( settings . FILE_CHARSET )
2690,define the method a with an argument self.,def a ( self ) :
2691,"try,",try :
2692,"try,",try :
2693,"if months is true,",if months :
2694,"raise an BadSignature exception with an argument string 'No ""%s"" found in value', where '%s' is replaced by self.sep.","raise BadSignature ( 'No ""%s"" found in value' % self . sep )"
2695,"raise an TemplateSyntaxError exception with an argument string ""Searching for value. Unexpected end of string in column %d: %s"",","raise TemplateSyntaxError ( ""Searching for value. Unexpected "" ""end of string in column %d: %s"" % ( i , subject ) )"
2696,"Meta is an instance of class with name 'Meta', parent base class and fields attrs.","Meta = type ( str ( 'Meta' ) , parent , attrs )"
2697,"call the addr.split method with character '@' and integer 1 as arguments, substitute the result for localpart and domain, respectively.","localpart , domain = addr . split ( '@' , 1 )"
2698,"if extra_classes has an attribute 'split',","if hasattr ( extra_classes , 'split' ) :"
2699,_format_modules_cache is an empty dictionary.,_format_modules_cache = { }
2700,"for every match in the result, substitute match.lastgroup for name.",name = match . lastgroup
2701,"if length of hextet is greater than integer 1,",if len ( hextet ) > 1 :
2702,"re.U and re.S, substitute the result for re_chars. call the function re.compile with an argument raw string '\r\n|\r', substitute the result for re_newlines.",re_newlines = re . compile ( r'\r\n|\r' )
2703,"if length of s is greater than integer 13,",if len ( s ) > 13 :
2704,return an empty string.,return ''
2705,"call the method self.attach with arguments filename, content and mimetype.","self . attach ( filename , content , mimetype )"
2706,"define the function serializer with 3 arguments: format, queryset and unpacked dictionary options.","def serialize ( format , queryset , ** options ) :"
2707,self.day_none_value is a tuple containing 2 elements: integer 0 and third element of empty_label.,"self . day_none_value = ( 0 , empty_label [ 2 ] )"
2708,from django.core import signals into default name space.,from django . core import signals
2709,"if is_templatized is true,",if is_templatized :
2710,"and re.VERBOSE, substitute the result for accept_language_re. call the function re.compile with 2 arguments: raw string '^[a-z]{1,8}(?:-[a-z0-9]{1,8})*$' and re.IGNORECASE,","language_code_re = re . compile ( r'^[a-z]{1,8}(?:-[a-z0-9]{1,8})*$' , re . IGNORECASE )"
2711,call the function import_module with an argument project_name.,import_module ( project_name )
2712,define the function compile_filter with 2 arguments: self and token.,"def compile_filter ( self , token ) :"
2713,"define the method __new__ with 4 arguments: mcs, name, bases and attrs.","def __new__ ( mcs , name , bases , attrs ) :"
2714,"if primary_keys is true,",if primary_keys :
2715,"if incremental is true,",if incremental :
2716,"options dictionary, if the key doesnt exists use settings.DEFAULT_CHARSET instead. call the self.xml.startDocument method.",self . xml . startDocument ( )
2717,"join callback.__module__, character ""."" and callback.__class__.__name__ together, substitute the result for lookup_str.","lookup_str = callback . __module__ + ""."" + callback . __class__ . __name__"
2718,"if self._validate_unique is true,",if self . _validate_unique :
2719,"define the method normalize_col_name with 4 arguments: self, col_name, used_column_names and is_relation.","def normalize_col_name ( self , col_name , used_column_names , is_relation ) :"
2720,substitute self._pk_field.name for name.,name = self . _pk_field . name
2721,VARIABLE_TAG_START is a string '{{'.,VARIABLE_TAG_START = '{{'
2722,return ZERO.,return ZERO
2723,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
2724,call the method self.connection.starttls.,self . connection . starttls ( )
2725,skip this loop iteration.,continue
2726,substitute opts for value under the 'opts' key of definition dictionary.,definition [ 'opts' ] = opts
2727,define the function get_language_info with an argument lang_code.,def get_language_info ( lang_code ) :
2728,"for every cache_alias in settings.CACHES,",for cache_alias in settings . CACHES :
2729,define the method __bool__ with argument self.,def __bool__ ( self ) :
2730,"call the function render_value_in_context with 2 arguments output and context, return the result.","return render_value_in_context ( output , context )"
2731,derive the class SlugField from the base class CharField class.,class SlugField ( CharField ) :
2732,from importlib import import_module into default name space.,from importlib import import_module
2733,skipped is an empty list.,skipped = [ ]
2734,"join elements of output into a string, separated with newlines, return the result.",return '\n' . join ( output )
2735,"call the method connection.ops.sql_flush with arguments: style, tables, seqs and allow_cascade, substitute the result for statements.","statements = connection . ops . sql_flush ( style , tables , seqs , allow_cascade )"
2736,"help set to a string 'The file extension(s) to examine (default: ""html,txt"", or ""js"" ' 'if the domain is ""djangojs""). Separate multiple extensions with commas, or use -e multiple times.' and action as a string 'append'. call the method parser.add_argument with 6 arguments: string '--symlinks', string '-s', action as a string 'store_true',","parser . add_argument ( '--symlinks' , '-s' , action = 'store_true' , dest = 'symlinks' , default = False , help = 'Follows symlinks to directories when examining ' 'source code and templates for translation strings.' )"
2737,from django.utils.functional import allow_lazy and SimpleLazyObject into default name space.,"from django . utils . functional import allow_lazy , SimpleLazyObject"
2738,define the method list with an argument self.,def list ( self ) :
2739,raise an LookupError with an argument lang_code.,raise LookupError ( lang_code )
2740,"if k is contained in seen,",if k in seen :
2741,"define the method __init__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
2742,define the method end_object with argument self and obj.,"def end_object ( self , obj ) :"
2743,"call the function timezone.make_aware with arguments value and current_timezone, return the result.","return timezone . make_aware ( value , current_timezone )"
2744,"if not,",else :
2745,call the method o.isoformat substitute the result for r.,r = o . isoformat ( )
2746,"join self.path and f in path, substitute the result for full_file.","full_file = os . path . join ( self . path , f )"
2747,remove the entry under the 'fields' key of the self.json_kwargs dictionary.,"self . json_kwargs . pop ( 'fields' , None )"
2748,substitute the result of the function data.temporary_file_path for file.,file = data . temporary_file_path ( )
2749,call the method clean with an argument value from the base class of the EmailField class.,"return super ( EmailField , self ) . clean ( value )"
2750,"call the function data with 3 arguments: self.year, self.month and self.day, return the result.","return date ( self . year , self . month , self . day )"
2751,"call the method self.find_files with an argument string '.', substitute the result for file_list.","file_list = self . find_files ( ""."" )"
2752,define the function get_fixed_timezone with an argument offset.,def get_fixed_timezone ( offset ) :
2753,while RUN_RELOADER is true.,while RUN_RELOADER :
2754,"if filename ends with '/' or with '\\',","if filename . endswith ( ( '/' , '\\' ) ) :"
2755,"join app_config.path and string 'management' into a file path, substitute it for path.","path = os . path . join ( app_config . path , 'management' )"
2756,"call the method new_file from the base class of the TemporaryFileUploadHandler class with arguments: file_name, unpacked list args and unpacked dictionary kwargs.","super ( TemporaryFileUploadHandler , self ) . new_file ( file_name , * args , ** kwargs )"
2757,"for every f in file_field_list,",for f in file_field_list :
2758,define the method rendered_content with an argument self.,def rendered_content ( self ) :
2759,"if settings.USE_TZ is true substitute result of the function timezone.get_current_timezone for tzinfo, if not tzinfo is None.",tzinfo = timezone . get_current_timezone ( ) if settings . USE_TZ else None
2760,"if sys.platform starts with a string 'java',",if sys . platform . startswith ( 'java' ) :
2761,widget_value is None.,widget_value = None
2762,"call the method Module_six_moves_urllib_request with an argument: string "".moves.urllib.error"" appended to __name__,","sys . modules [ __name__ + "".moves.urllib_error"" ] = sys . modules [ __name__ + "".moves.urllib.error"" ] = Module_six_moves_urllib_error ( __name__ + "".moves.urllib.error"" )"
2763,"if value is an instance of str type,","if isinstance ( value , str ) :"
2764,"return an string ""<%s: %r>"", where '%s' is replaced with self.__class__.__name__ and self.var, respectively.","return ""<%s: %r>"" % ( self . __class__ . __name__ , self . var )"
2765,substitute length of item for len_item.,len_item = len ( item )
2766,self._post is an instance of QueryDict class created with an empty string as argument.,self . _post = QueryDict ( '' )
2767,break from the loop execution.,break
2768,"finally perform,",finally :
2769,shown is an empty set.,shown = set ( )
2770,substitute value under the f.name key of the widgets dictionary for value under the 'widget' key of kwargs dictionary.,kwargs [ 'widget' ] = widgets [ f . name ]
2771,return an instance of CommentNode class.,return CommentNode ( )
2772,"dest set to string 'no_color' default set to boolean False and help set to a string ""Don't colorize the command output."". for every opt in self.option_list,",for opt in self . option_list :
2773,call the function func with an argument path.,func ( path )
2774,return errors.,return errors
2775,define the method __repr__ with an argument self.,def __repr__ ( self ) :
2776,silent is boolean True.,silent = True
2777,"define protected method _BaseCookie__set with self class instance, key, real_value and coded_value as arguments.","def _BaseCookie__set ( self , key , real_value , coded_value ) :"
2778,"if m is None,",if m is None :
2779,"ext_list is an empty list,",ext_list = [ ]
2780,"message is a string 'use only numbers, letters and underscores'.","message = 'use only numbers, letters and underscores'"
2781,"call the function get_ns_resolver with arguments ns_pattern and resolver, substitute the result for resolver.","resolver = get_ns_resolver ( ns_pattern , resolver )"
2782,define the method items with an argument self.,def items ( self ) :
2783,append tuple containing element attr to boolean_attrs.,"boolean_attrs . append ( ( attr , ) )"
2784,"for every obj in return value of the PythonDeserializer created with 2 arguments: return value of the function yaml.load,","for obj in PythonDeserializer ( yaml . load ( stream , Loader = SafeLoader ) , ** options ) :"
2785,streaming is boolean False.,streaming = False
2786,"if ascii value of char is smaller than integer 33 or is equal to integer 127,",if ord ( char ) < 33 or ord ( char ) == 127 :
2787,"call the self.path function with argument name, use the result as the argument for the call to the os.path.exists function, return the result.",return os . path . exists ( self . path ( name ) )
2788,"call the method parser.add_argument with 3 arguments: string '--database', default set to DEFAULT_DB_ALIAS,","parser . add_argument ( '--database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to print the SQL for. Defaults to the ' '""default"" database.' )"
2789,"get 'fields' attribute from the options object, if it exists substitute it for self.fields, if not self.fields is None.","self . fields = getattr ( options , 'fields' , None )"
2790,"call the function block_re.match with an argument t.contents, substitute the result for bmatch.",bmatch = block_re . match ( t . contents )
2791,"get the value under the key 'DJANGO_COLORS' of os.environ dictionary, if key doesnt exists return empty string, assign the result to DJANGO_COLORS.","DJANGO_COLORS = os . environ . get ( 'DJANGO_COLORS' , '' )"
2792,define the function csrf_token with 2 arguments: parser and token.,"def csrf_token ( parser , token ) :"
2793,"with field_value as an argument, substitute the result for obj_pk. return obj_pk.",return obj_pk
2794,and errors set to the result of self.default_error_messages.copy.,errors = self . default_error_messages . copy ( )
2795,"if not,",else :
2796,call the method __init__ from the base class of the EntitiesForbidden class.,"super ( EntitiesForbidden , self ) . __init__ ( )"
2797,"if takes_context is true,",if takes_context :
2798,return an empty string.,return ''
2799,substitute self._meta for opts.,opts = self . _meta
2800,substitute format_string for self.format_string.,self . format_string = format_string
2801,"call the function conditional_escape with an argument checkbox_name,",substitutions [ 'clear_checkbox_name' ] = conditional_escape ( checkbox_name )
2802,"call the method __init__ from the base class of the class BaseInlineFormSet, with 5 arguments: data, files, prefix set to prefix,","super ( BaseInlineFormSet , self ) . __init__ ( data , files , prefix = prefix , queryset = qs , ** kwargs )"
2803,"if max_value is not None,",if max_value is not None :
2804,"if data_set is not equal to initial_set, return boolean True, otherwise return boolean False.",return data_set != initial_set
2805,"called with an argument w, and sub_widgets as an empty string, append the result to output. call the function format_html with 3 arguments: self.outer_html,","return format_html ( self . outer_html , id_attr = format_html ( ' id=""{0}""' , id_ ) if id_ else '' , content = mark_safe ( '\n' . join ( output ) ) )"
2806,"where string '%s' is replaced by lookup_view and mod_name, respectively. if not,",else :
2807,import module random.,import random
2808,"get the position of the self.file file pointer, substitute it for pos.",pos = self . file . tell ( )
2809,"if settings.USE_TZ is true and value is not None and call to the function timezone.is_aware with an argument value, evaluates to true,",if settings . USE_TZ and value is not None and timezone . is_aware ( value ) :
2810,"define the method __init__ with 3 arguments: self,unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
2811,define the function modelform_defines_fields with an argument form_class.,def modelform_defines_fields ( form_class ) :
2812,remove item from self dictionary.,self . remove ( item )
2813,substitute link for values under the NEXT key of the last dictionary and PREV key of the root dictionary.,last [ NEXT ] = root [ PREV ] = link
2814,"for field in self if field.is_hidden is true, append field to a list, return the resulting list.",return [ field for field in self if field . is_hidden ]
2815,"call the function re.compile with 2 arguments: raw string '^https?://\[?\w' and re.IGNORECASE, substitute the result for simple_url_re.","simple_url_re = re . compile ( r'^https?://\[?\w' , re . IGNORECASE )"
2816,"raise an ViewDoesNotExist exception with an argument string ""Could not import '%s.%s'. View is not callable."",","raise ViewDoesNotExist ( ""Could not import '%s.%s'. View is not callable."" % ( mod_name , func_name ) )"
2817,"register.tag decorator,",@ register . tag
2818,"call the function _ with an argument string 'PM', return the result.",return _ ( 'PM' )
2819,from django.utils.six.moves import cPickle as pickle into default name space.,from django . utils . six . moves import cPickle as pickle
2820,from django.template.defaultfilters import date into default name space.,from django . template . defaultfilters import date
2821,"in string '%s=%s' replace '%s' with k and return value of the function strip_prefix with an argument printable representation of v,","field_desc += ', ' . join ( [ '%s=%s' % ( k , strip_prefix ( repr ( v ) ) ) for k , v in extra_params . items ( ) ] )"
2822,import module copy.,import copy
2823,"self.config is an instance of ConvertingDict, called with an argument config.",self . config = ConvertingDict ( config )
2824,call the method parser.add_argument with 2 arguments: string 'args' and nargs set to '*'.,"parser . add_argument ( 'args' , nargs = '*' )"
2825,define the method symlinks_supported.,def symlinks_supported ( ) :
2826,insert none_value at the beginning of the choices list.,"choices . insert ( 0 , none_value )"
2827,"call the __init__ method from the base class of the HttpResponse class, with the arguments: unpacked list args and unpacked dictionary kwargs.","super ( HttpResponse , self ) . __init__ ( * args , ** kwargs )"
2828,delete the value under the header converted to lowercase key of the self._headers dictionary.,del self . _headers [ header . lower ( ) ]
2829,"if settings.TEMPLATE_DEBUG is true,",if settings . TEMPLATE_DEBUG :
2830,"call parser.add_argument method with 'args', metavar set to string 'fixture', nargs set to string '*' and help set to string 'Path(s) to fixtures to load before running the server.'.","parser . add_argument ( 'args' , metavar = 'fixture' , nargs = '*' , help = 'Path(s) to fixtures to load before running the server.' )"
2831,"if unpack is true,",if unpack :
2832,skip this loop iteration.,continue
2833,"if not,",else :
2834,substitute charset for self.charset.,self . charset = charset
2835,decrement mtime by stat.st_ctime.,mtime -= stat . st_ctime
2836,substitute conn_type for self.connector.,self . connector = conn_type
2837,"RemovedInDjango19Warning and stacklevel set to integer 2. define the function _resolve_name with 3 arguments: name, package and level.","def _resolve_name ( name , package , level ) :"
2838,from django.utils._os import safe_join into default name space.,from django . utils . _os import safe_join
2839,define the function get_key_func with argument key_func.,def get_key_func ( key_func ) :
2840,"if self has an attribute '_choices',","if hasattr ( self , '_choices' ) :"
2841,substitute _BROWSERS_DEPRECATED_LOCALES for _DJANGO_DEPRECATED_LOCALES.,_DJANGO_DEPRECATED_LOCALES = _BROWSERS_DEPRECATED_LOCALES
2842,get maximal element from roots and substitute it for root.,root = max ( roots )
2843,"call the function warnings.warn with 2 arguments: string ""``use_natural_keys`` is deprecated; use ``use_natural_foreign_keys`` instead."" and RemovedInDjango19Warning.","warnings . warn ( ""``use_natural_keys`` is deprecated; use ``use_natural_foreign_keys`` instead."" , RemovedInDjango19Warning )"
2844,substitute notation_name for self.notation_name.,self . notation_name = notation_name
2845,call the function validate_ipv46_address with an argument ip_address.,validate_ipv46_address ( ip_address )
2846,"call the function os.path.dirname with an argument django.__file__, join the result into a path,",django_dir = os . path . normpath ( os . path . join ( os . path . dirname ( django . __file__ ) ) )
2847,self._view_middleware is an empty list.,self . _view_middleware = [ ]
2848,"call the self.handle_app_config method with app_config and options as arguments, substitute the result for app_output.","app_output = self . handle_app_config ( app_config , ** options )"
2849,otherwise if message is an instance of the list type.,"elif isinstance ( message , list ) :"
2850,"get the value under the name key of the data dictionary, return it, if the previous doesnt exists, return None.","return data . get ( name , None )"
2851,"if not, substitute func.__name__ for name. call the method self.filter with 3 arguments: name, func and unpacked dictionary flags.","return self . filter ( name , func , ** flags )"
2852,escaped is boolean False.,escaped = False
2853,"call the encode method on the result with string 'latin-1' as an argument, return the result. define the method loads with arguments self and data.","def loads ( self , data ) :"
2854,"call the method render from the base class of the class ClearableFileInput, called with 3 arguments: name, value and attrs,","substitutions [ 'input' ] = super ( ClearableFileInput , self ) . render ( name , value , attrs )"
2855,"for every model in app_models,",for model in app_models :
2856,"if content is an instance of a EmailMessage class,","if isinstance ( content , EmailMessage ) :"
2857,"try,",try :
2858,"call the function restart_with_reloader, substitute the return value for exit_code.",exit_code = restart_with_reloader ( )
2859,"call the method d.as_tuple, substitute the result for tupl.",tupl = d . as_tuple ( )
2860,return __wrapper__.,return __wrapper__
2861,"try,",try :
2862,"and unpacked dictionary kwargs, substitute the result for form. if self.save_as_new is true,",if self . save_as_new :
2863,"if settings.TIME_ZONE is an instance of six.string_types and pytz is not None,","if isinstance ( settings . TIME_ZONE , six . string_types ) and pytz is not None :"
2864,from django.conf import settings into default name space.,from django . conf import settings
2865,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
2866,call the method f.save_form_data with 2 arguments: instance and value under the f.name key of cleaned_data dictionary.,"f . save_form_data ( instance , cleaned_data [ f . name ] )"
2867,"if not,",else :
2868,call the function sys.exit with an argument integer 1.,sys . exit ( 1 )
2869,remove first element of unhandled_params.,unhandled_params . pop ( 0 )
2870,"if KeyError exception is caught,",except KeyError :
2871,substitute self._regex for regex.,regex = self . _regex
2872,"if the 'fake' key doesnt exists set fake to boolean False, as arguments. call the method emit_post_migrate_signal with created_models, self.verbosity, self.interactive and connection.alias as arguments.","emit_post_migrate_signal ( created_models , self . verbosity , self . interactive , connection . alias )"
2873,"if name is None and compile_function is None,",if name is None and compile_function is None :
2874,define the method copy with an argument self.,def copy ( self ) :
2875,choice_input_class is None.,choice_input_class = None
2876,"use the result as an argument for the call to the function mark_safe, return the result. if p equals integer 0,",if p == 0 :
2877,"return a dictionary with 2 entries: value under the 'language' key of the self.feed dictionary for ""xml:lang"",","return { ""xmlns"" : self . ns , ""xml:lang"" : self . feed [ 'language' ] }"
2878,"if value equals self.empty_value or value is contained in self.empty_values,",if value == self . empty_value or value in self . empty_values :
2879,"for 'maxSpare', value under the key 'minspare' of options dictionary converted to an integer for 'minSpare', value under the key 'maxchildren' of options dictionary converted to an integer, for 'maxChildren', and value under the key 'maxrequests' of options dictionary converted to an integer, for 'maxRequests'. append string '_fork' to flup_module.",flup_module += '_fork'
2880,substitute base.__name__ for class_name.,class_name = base . __name__
2881,"return an instance of TemplateLiteral with 2 arguments: result of the function self.template_parser.compile_filter,","return TemplateLiteral ( self . template_parser . compile_filter ( value ) , value )"
2882,"return the result of the method self._html_output, called with 5 arguments: normal_row to a string,","return self . _html_output ( normal_row = '%(label)s %(errors)s%(field)s%(help_text)s ' , error_row = '%s ' , row_ender = '' , help_text_html = '%s ' , errors_on_separate_row = False )"
2883,"if settings.USE_ETAGS is True and function call response.has_header with string 'ETag' as argument returns boolean False,",if settings . USE_ETAGS and not response . has_header ( 'ETag' ) :
2884,"try,",try :
2885,"substitute the result for origin. try,",try :
2886,"return an raw string '\""'.","return r'\""'"
2887,"call the force_bytes function with an argument settings.SECRET_KEY, substitute the result for key.",key = force_bytes ( settings . SECRET_KEY )
2888,define the method tell with an argument self.,def tell ( self ) :
2889,substitute cls for obj.__class__.,obj . __class__ = cls
2890,"call the function call_command with string 'flush', verbosity set to greater element, self.verbosity decremented by 1 or integer 0,","call_command ( 'flush' , verbosity = max ( self . verbosity - 1 , 0 ) , interactive = False , database = db , reset_sequences = False , inhibit_post_migrate = True , )"
2891,"define the method compile_filter_error with 3 arguments: self, token and e.","def compile_filter_error ( self , token , e ) :"
2892,from django.utils import six into default name space.,from django . utils import six
2893,"if self.loaded_object_count is greater than zero,",if self . loaded_object_count > 0 :
2894,self._regex_dict is an empty dictionary.,self . _regex_dict = { }
2895,"boundarystream is an instance of InterBoundaryIter class, created with self._stream and self._separator as arguments.","boundarystream = InterBoundaryIter ( self . _stream , self . _separator )"
2896,"join elements of self.cc into a string separated by ', ', substitute the result for value under the 'Cc' key of msg dictionary.","msg [ 'Cc' ] = ', ' . join ( self . cc )"
2897,return Operator.,return Operator
2898,"call the method self.data.utctimetuple, use the result as an argument for the call to the function calendar.timegm,",return int ( calendar . timegm ( self . data . utctimetuple ( ) ) )
2899,"call the function six.reraise with 3 arguments: DeserializationError, return value of the DeserializationError called with an argument e,","six . reraise ( DeserializationError , DeserializationError ( e ) , sys . exc_info ( ) [ 2 ] )"
2900,"if field is contained in self.errors return boolean True, if not, return boolean False.",return field in self . errors
2901,"if 'incomplete' key of the f.error_messages doesnt exists, assign it the value under the 'incomplete' key of the self.error_messages dictionary.","f . error_messages . setdefault ( 'incomplete' , self . error_messages [ 'incomplete' ] )"
2902,"call the method imatch.group with an argument integer 1, if it evaluates to true,",if imatch . group ( 2 ) :
2903,self.choices is an empty list.,self . choices = [ ]
2904,"if old_handler is not None,",if old_handler is not None :
2905,for every field_node in return value of the method node.getElementsByTagName with an argument string 'field'.,"for field_node in node . getElementsByTagName ( ""field"" ) :"
2906,return value.,return value
2907,"if base.DeserializationError exception is caught,",except base . DeserializationError :
2908,"if not,",else :
2909,substitute base for self.base.,self . base = base
2910,"call logging.getLogger method with string 'django.request' as argument, store the result in logger.",logger = logging . getLogger ( 'django.request' )
2911,increment stats dictionary value under the MISSES key by integer 1.,stats [ MISSES ] += 1
2912,substitute args for self.args.,self . args = args
2913,derive the class MaxValueValidator form the BaseValidator base class.,class MaxValueValidator ( BaseValidator ) :
2914,"call the function urlquote with argument var for every var in vary_on, join the results into a string separated by ':', substitute it for key.",key = ':' . join ( urlquote ( var ) for var in vary_on )
2915,"integer 212, integer 243, integer 273, integer 304 and integer 334. define the method b with an argument self.",def b ( self ) :
2916,"raise an BadHeaderError exception with argument string ""Header values can't contain newlines (got %r for header %r)"",","raise BadHeaderError ( ""Header values can't contain newlines (got %r for header %r)"" % ( val , name ) )"
2917,define the method __repr__ with an argument self.,def __repr__ ( self ) :
2918,docsring,""""""" Set a value in the cache if the key does not already exist. If timeout is given, that timeout will be used for the key; otherwise the default cache timeout will be used. Returns True if the value was stored, False otherwise. """""""
2919,"with different 3 string arguments, the others are results of the call to the function MovedModule called with 3 string arguments. for every attr in _moved_attributes,",for attr in _moved_attributes :
2920,define the method handle_charref with 2 arguments self and name.,"def handle_charref ( self , name ) :"
2921,"try,",try :
2922,"call the function new_method_proxy with an argument bool, substitute the result for __nonzero__.",__nonzero__ = new_method_proxy ( bool )
2923,"if AttributeError exception is caught,",except AttributeError :
2924,"if other equals list containing elements of self, return boolean True, otherwise return boolean False.",return list ( self ) == other
2925,define class dummy.,class dummy :
2926,"call the function smart_urlquote with an argument string 'http://%s' formated with an argument middle, substitute the result for url.",url = smart_urlquote ( 'http://%s' % middle )
2927,"call the function ugettext with an argument string ""Please correct the duplicate data for %(field_name)s which must be unique for,","return ugettext ( ""Please correct the duplicate data for %(field_name)s "" ""which must be unique for the %(lookup)s in %(date_field)s."" ) % { 'field_name' : date_check [ 2 ] , 'date_field' : date_check [ 3 ] , 'lookup' : six . text_type ( date_check [ 1 ] ) , }"
2928,from collections import namedtuple.,from collections import namedtuple
2929,"call the method self.filter_function with arguments name and unpacked dictionary flags, return the result.","return self . filter_function ( name , ** flags )"
2930,do nothing.,pass
2931,"'""Upload a valid image. The file you uploaded was either not an image or a corrupted image.""' for 'invalid_image'. define the method to_python with arguments self and data.","def to_python ( self , data ) :"
2932,"if not,",else :
2933,derive the class Parser from the base class object.,class Parser ( object ) :
2934,"while newline character is not contained in self.buffer and, size is None or length of self.buffer is less than size,",while b'\n' not in self . buffer and ( size is None or len ( self . buffer ) < size ) :
2935,substitute new_result for result.,result = new_result
2936,define the function has_bom with fn as argument.,def has_bom ( fn ) :
2937,"if t is not None,",if t is not None :
2938,"try,",try :
2939,derive the class HttpRequest from the object base class.,class HttpRequest ( object ) :
2940,"call the method timezone.is_aware with an argument expires, if it evaluates to true,",if timezone . is_aware ( expires ) :
2941,"shell is an instance of IPShell class, created with an argument argv as an empty list.",shell = IPShell ( argv = [ ] )
2942,"call the function do_ifequal with 3 arguments: parser, token and boolean False, return the result.","return do_ifequal ( parser , token , False )"
2943,"subject is an string '%s (%s IP): %s', formated with record.levelname, string 'internal' if value under the 'REMOTE_ADDR' key,","subject = '%s (%s IP): %s' % ( record . levelname , ( 'internal' if request . META . get ( 'REMOTE_ADDR' ) in settings . INTERNAL_IPS else 'EXTERNAL' ) , record . getMessage ( ) )"
2944,"get the value filed from the return value of the call to the c.key with the argument key, add the value to the cookiedict under the key key.",cookiedict [ key ] = c . get ( key ) . value
2945,"raise an ValueError with string ""This file is not accessible via a URL."" as argument.","raise ValueError ( ""This file is not accessible via a URL."" )"
2946,"if initial is None,",if initial is None :
2947,"if not,",else :
2948,"fname is a string ""%s-%s.log"", with '%s' replaced by timestamp and absolute value of the return value of the function id with argument self, respectively.","fname = ""%s-%s.log"" % ( timestamp , abs ( id ( self ) ) )"
2949,"call the method __init__ with an argument UNKNOWN_SOURCE, from the base class of the class StringOrigin.","super ( StringOrigin , self ) . __init__ ( UNKNOWN_SOURCE )"
2950,"attachment is an instance of a class SafeMIMEMessage, created with the arguments content and subtype.","attachment = SafeMIMEMessage ( content , subtype )"
2951,"for every attr in self.child_nodelists,",for attr in self . child_nodelists :
2952,"encode is an lambda function with arguments k and v, return value is string '%s=%s', where '%s' is replaced with:","encode = lambda k , v : '%s=%s' % ( ( quote ( k , safe ) , quote ( v , safe ) ) )"
2953,"call the function warnings.warn with string ""'get_cache' is deprecated in favor of 'caches'."", RemovedInDjango19Warning,","warnings . warn ( ""'get_cache' is deprecated in favor of 'caches'."" , RemovedInDjango19Warning , stacklevel = 2 )"
2954,"if not,",else :
2955,re raise an exception.,raise
2956,call the method block_context.add_blocks with an argument self.block.,block_context . add_blocks ( self . blocks )
2957,"get value under the 'filters' key of the config dictioanry, if it exists substitute it for filters, if not filters is None.","filters = config . get ( 'filters' , None )"
2958,"substitute the result for url_fields. call the function urlunsplit with an argument url_fields, substitute the result for value.",value = urlunsplit ( url_fields )
2959,"raise an exception,",raise
2960,define the method message_dict with an argument self.,def message_dict ( self ) :
2961,"try,",try :
2962,define the function set_urlconf with an argument urlconf_name.,def set_urlconf ( urlconf_name ) :
2963,from django.core.serializers.python import Serializer as PythonSerializer into default name space.,from django . core . serializers . python import Serializer as PythonSerializer
2964,do nothing.,pass
2965,"remove file path_to_remove,",os . remove ( path_to_remove )
2966,"if not,",else :
2967,"return self.field.widget.is_hidden,",return self . field . widget . is_hidden
2968,"try,",try :
2969,"call the self.style.MIGRATE_HEADING method with string ""Running migrations:"" as an argument, use the result as an argument for the call to the self.stdout.write method.","self . stdout . write ( self . style . MIGRATE_HEADING ( ""Running migrations:"" ) )"
2970,"if color_setting is True,",if color_settings :
2971,"self.add_prefix called with an argument name, substitute the result for value. try,",try :
2972,"try,",try :
2973,"if not,",else :
2974,doctring,""""""" Adds (or updates) the ""Vary"" header in the given HttpResponse object. newheaders is a list of header names that should be in ""Vary"". Existing headers in ""Vary"" aren't removed. """""""
2975,define the method fixture_dirs with an argument self.,def fixture_dirs ( self ) :
2976,"if third element from the end of the args equals string 'as',","if args [ - 3 ] == ""as"" :"
2977,"remove entry under 'render' key of the kwargs dictionary and substitute it for renderer, if the key doesnt exists, renderer is None.","renderer = kwargs . pop ( 'renderer' , None )"
2978,"call the method dict_.getlist with an argument key, return the result.",return dict_ . getlist ( key )
2979,"define the method _has_changed with 3 arguments: self, initial and data.","def _has_changed ( self , initial , data ) :"
2980,substitute os.unlink for unlink.,unlink = os . unlink
2981,"for every index in range of integers from 0 to length of hextets, not included,",for index in range ( len ( hextets ) ) :
2982,"if terminal_char is not equal to string ')',",if terminal_char != ')' :
2983,"define the method __init__ with 4 arguments: self, data set to None, files set to None, auto_id is an string 'id_%s', prefix is None,","def __init__ ( self , data = None , files = None , auto_id = 'id_%s' , prefix = None , initial = None , error_class = ErrorList , label_suffix = None , empty_permitted = False ) :"
2984,"raise an base.DeserializationError exception with string "" node is missing the 'name' attribute"" as argument.","raise base . DeserializationError ( "" node is missing the 'name' attribute"" )"
2985,define the method unget with arguments self and bytes.,"def unget ( self , bytes ) :"
2986,"if self.data.minute equals integer 0 and self.data.hour equals integer 12,",if self . data . minute == 0 and self . data . hour == 12 :
2987,return the result. sign is an empty string.,sign = ''
2988,"if string 'id' is contained in self.attrs,",if 'id' in self . attrs :
2989,"if PY3 is true,",if PY3 :
2990,"define the method __init__ with 10 arguments: self, data set to None, files set to None, auto_id set to string 'id_%s',","def __init__ ( self , data = None , files = None , auto_id = 'id_%s' , prefix = None , initial = None , error_class = ErrorList , label_suffix = None , empty_permitted = False , instance = None ) :"
2991,define the method clear_checkbox_name with 2 arguments: self and name.,"def clear_checkbox_name ( self , name ) :"
2992,substitute i-th element of self.forms for form.,form = self . forms [ i ]
2993,define the method content with self and value.,"def content ( self , value ) :"
2994,return boolean False.,return False
2995,"call the function pformat with an argument value, return the result.",return pformat ( value )
2996,"otherwise if autoescape is true,",elif autoescape :
2997,"try,",try :
2998,"if not,",else :
2999,return boolean False.,return False
3000,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
3001,"if not,",else :
3002,substitute WindowsError for WindowsError.,WindowsError = WindowsError
3003,define the function lock with arguments f and flags.,"def lock ( f , flags ) :"
3004,"if timeout equals to DEFAULT_TIMEOUT,",if timeout == DEFAULT_TIMEOUT :
3005,import module sys.,import sys
3006,"convert if into a string append to it a string '_month', return the result.",return '%s_month' % id_
3007,"and number set to number, return the result. define the function ungettext_lazy with 3 arguments: singular, plural and number set to None.","def ungettext_lazy ( singular , plural , number = None ) :"
3008,"call the function dec with an argument func, return the result.",return dec ( func )
3009,"called with an argument value, substitute the result for value under the 'initial' key of the substitutions dictionary. if self.is_required is false,",if not self . is_required :
3010,substitute prefix for self.prefix.,self . prefix = prefix
3011,"call the method field_node.getElementsByTagName with an argument string 'None', if it evaluates to true,",if field_node . getElementsByTagName ( 'None' ) :
3012,"return list with an element first_item, and boolean True.","return [ first_item ] , True"
3013,derive the class Archive from the object base class.,class Archive ( object ) :
3014,"where '%s' is replaced with self.__class__.__name__. for form in self.forms append form.cleaned_data to a list, return the resulting list.",return [ form . cleaned_data for form in self . forms ]
3015,"get the 'do_not_call_in_templates' attribute of current object, if it exists and is true,","if getattr ( current , 'do_not_call_in_templates' , False ) :"
3016,"otherwise if tzinfo is not None,",elif tzinfo is not None :
3017,"call the method unescape with attrvalue as the argument on the self class instance, substitute the result for attrvalue.",attrvalue = self . unescape ( attrvalue )
3018,"call the function that is the return value of get_storage_class method, substitute the result for self._wrapped.",self . _wrapped = get_storage_class ( ) ( )
3019,"call the method _illegal_formatting.search with an argument fmt, substitute the result for illegal_formatting.",illegal_formatting = _illegal_formatting . search ( fmt )
3020,return msgid.,return msgid
3021,define the method update with 2 arguments: self and dict_.,"def update ( self , dict_ ) :"
3022,references_to_delete is an empty dictionary.,references_to_delete = { }
3023,yield node as an return value of a generator.,yield node
3024,return rv.,return rv
3025,"for every node in self.nodelist,",for node in self . nodelist :
3026,define the function inotify_code_changed.,def inotify_code_changed ( ) :
3027,"if length of unique_check equals integer 1,",if len ( unique_check ) == 1 :
3028,"return an instance of ModelChoiceIterator class, created with an argument self.",return ModelChoiceIterator ( self )
3029,"try,",try :
3030,"if not,",else :
3031,model_list is an empty list.,model_list = [ ]
3032,"if ch is contained in string ""iLmsu#"",","if ch in ""iLmsu#"" :"
3033,"use it as an argument for the call to the function os.path.normpath, substitute the result for django_dir. if self.domain equals a string 'djangojs',",if self . domain == 'djangojs' :
3034,from __future__ import absolute_import into default name space.,from __future__ import absolute_import
3035,"if sys.version_info is greater than or equal to a tuple with 3 elements: integers 2, 7 and 2, respectively,","if sys . version_info >= ( 2 , 7 , 2 ) :"
3036,"if '/' is contained in path, and only if '\\' is contained in path and index of the first occurrence of '/' in path is lesser than,",if '/' in path and ( ( '\\' in path and path . find ( '/' ) < path . find ( '\\' ) ) or '\\' not in path ) :
3037,"unpack dictionary final_attrs, map the values through force_text function with an argument v and convert it to a dictionary, again,","input_attrs = dict ( value = force_text ( v ) , ** final_attrs )"
3038,"call the function forbid_multi_line_headers with 3 arguments: name, val and self.encoding, substitute the result for name and val, respectively.","name , val = forbid_multi_line_headers ( name , val , self . encoding )"
3039,"if related is true,",if related :
3040,"if not,",else :
3041,"call the method apps.get_app_config with an argument app_label, substitute the result for app_config.",app_config = apps . get_app_config ( app_label )
3042,call the method self._add_fallback.,self . _add_fallback ( )
3043,define the method __repr__ with an argument self.,def __repr__ ( self ) :
3044,"substitute '%r' in string ' npgettext(%r, %r, %r,count) ' with message_context, result of the function join_tokens,","out . write ( ' npgettext(%r, %r, %r,count) ' % ( message_context , join_tokens ( singular , trimmed ) , join_tokens ( plural , trimmed ) ) )"
3045,stats is an list with 2 elements: 2 integers 0.,"stats = [ 0 , 0 ]"
3046,define the method __next__ with an argument self.,def __next__ ( self ) :
3047,from django.core.exceptions import ImproperlyConfigured into default name space.,from django . core . exceptions import ImproperlyConfigured
3048,"and result of the function escape called with an argument line, substitute the result for i-th element of lines. call the method mark_safe with lines joined into a string, separated by newlines as argument, return the result.",return mark_safe ( '\n' . join ( lines ) )
3049,"if package is false,",if not package :
3050,"LOCK_EX, LOCK_SH and LOCK_NB are all equal to integer 0.",LOCK_EX = LOCK_SH = LOCK_NB = 0
3051,define the method __repr__ with an argument self.,def __repr__ ( self ) :
3052,define the function get_standard_processors.,def get_standard_processors ( ) :
3053,"if not,",else :
3054,"raise an CommandError exception with an argument string ""couldn't download URL %s to %s: %s"", where '%s' is replaced with url,","raise CommandError ( ""couldn't download URL %s to %s: %s"" % ( url , filename , e ) )"
3055,"if not,",else :
3056,"if o is contained in opt_dict,",if o in opt_dict :
3057,call the method _trans.gettext_noop with an argument message.,return _trans . ugettext ( message )
3058,from django.utils.encoding import force_text and iri_to_uri into default name space.,"from django . utils . encoding import force_text , iri_to_uri"
3059,from django.template.loader import get_template into default name space.,from django . template . loader import get_template
3060,do nothing.,pass
3061,return retval.,return retval
3062,call the method self._setup.,self . _setup ( )
3063,"if widget is an instance of the NumberInput,","if isinstance ( widget , NumberInput ) :"
3064,"join elements of quant into a string, split it by string ',', substitute the result for values.","values = '' . join ( quant ) . split ( ',' )"
3065,inner_text is an empty list.,inner_text = [ ]
3066,skip this loop iteration.,continue
3067,"if every input_val in special_floats,",if input_val in special_floats :
3068,import module datetime.,import datetime
3069,"convert to integer value of dictionary cc under the key 'max-age',","kwargs [ 'max_age' ] = min ( int ( cc [ 'max-age' ] ) , kwargs [ 'max_age' ] )"
3070,request_queue_size is integer 10.,request_queue_size = 10
3071,extend new_second_item with item.,new_second_item . extend ( item )
3072,"err_msg is a string ""Tried %s"", where '%s' is replaced with tried.","error_msg = ""Tried %s"" % tried"
3073,"if options.pythonpath is true,",if options . pythonpath :
3074,import module random.,import random
3075,"as the arguments, substitute the result for response. try,",try :
3076,define the function add_to_builtins with an argument module.,def add_to_builtins ( module ) :
3077,return None.,return None
3078,"if value is true and character ':' is contained in value,",if value and ':' in value :
3079,"define the function save_instance with 7 arguments: form, instance, fields set to None, fail_message as string 'saved',","def save_instance ( form , instance , fields = None , fail_message = 'saved' , commit = True , exclude = None , construct = True ) :"
3080,"context.autoescape for 'autoescape', context.autoescape for 'current_app', context.use_l10n for 'use_l10n', and context.use_tz for 'use_tz', substitute the result for new_context. call the function context.get with 2 argument 'csrf_token' and None, substitute the result for csrf_token.","csrf_token = context . get ( 'csrf_token' , None )"
3081,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
3082,target_app_labels_only is boolean True.,target_app_labels_only = True
3083,replace '%s' with type of the obj object. call the method self.indent with argument integer 1.,self . indent ( 1 )
3084,self._errors is None.,self . _errors = None
3085,"OPERATORS is an dictionary with 12 initial entries: result of the function inflix called with 2 arguments, integer 6,","OPERATORS = { 'or' : infix ( 6 , lambda context , x , y : x . eval ( context ) or y . eval ( context ) ) , 'and' : infix ( 7 , lambda context , x , y : x . eval ( context ) and y . eval ( context ) ) , 'not' : prefix ( 8 , lambda context , x : not x . eval ( context ) ) , 'in' : infix ( 9 , lambda context , x , y : x . eval ( context ) in y . eval ( context ) ) , 'not in' : infix ( 9 , lambda context , x , y : x . eval ( context ) not in y . eval ( context ) ) , '=' : infix ( 10 , lambda context , x , y : x . eval ( context ) == y . eval ( context ) ) , '==' : infix ( 10 , lambda context , x , y : x . eval ( context ) == y . eval ( context ) ) , '!=' : infix ( 10 , lambda context , x , y : x . eval ( context ) != y . eval ( context ) ) , '>' : infix ( 10 , lambda context , x , y : x . eval ( context ) > y . eval ( context ) ) , '>=' : infix ( 10 , lambda context , x , y : x . eval ( context ) >= y . eval ( context ) ) , '<' : infix ( 10 , lambda context , x , y : x . eval ( context ) < y . eval ( context ) ) , '<=' : infix ( 10 , lambda context , x , y : x . eval ( context ) <= y . eval ( context ) ) , }"
3086,"define private method __call__ with self class instance, environ and start_response as the arguments.","def __call__ ( self , environ , start_response ) :"
3087,"if sign is true,",if sign :
3088,"otherwise if query has an attribute 'items',","elif hasattr ( query , 'items' ) :"
3089,define the method extract with 2 arguments self and to_path.,"def extract ( self , to_path ) :"
3090,"define the function delete_many with self, keys and version set to None as arguments.","def delete_many ( self , keys , version = None ) :"
3091,derive the class RawPostDataException from the base class Exception.,class RawPostDataException ( Exception ) :
3092,substitute element at self.pos index of self.tokens for retval.,retval = self . tokens [ self . pos ]
3093,from unittest2 import everything.,from unittest2 import *
3094,from django.core import serializers into default name space.,from django . core import serializers
3095,"if version is None,",if version is None :
3096,"if p.image is not empty,",if p . image :
3097,"if not, self.coerce is an identity lambda function with an argument val. if 'empty_value' key of the kwargs dictionary exists remove it and substitute its value for self.empty_value,","self . empty_value = kwargs . pop ( 'empty_value' , '' )"
3098,"if not,",else :
3099,call the method _trans.gettext_noop with an argument message.,return _trans . gettext_noop ( message )
3100,"subclass is a instance of a class named Migration, derived from the base class Migration, with 1 field:","subclass = type ( ""Migration"" , ( Migration , ) , { ""dependencies"" : [ ( app_label , migration . name ) for migration in merge_migrations ] , } )"
3101,define the function clear_url_caches.,def clear_url_caches ( ) :
3102,"call the function os.path.basename with argument name, substitute the result for name.",name = os . path . basename ( name )
3103,"if value is contained in self.empty_values,",if value in self . empty_values :
3104,"get translation_function attribute of the t object, call the result with 3 arguments: singular, plural and number, return the result.","return getattr ( t , translation_function ) ( singular , plural , number )"
3105,yield widget.,yield widget
3106,"for every i and arg in enumerated iterable args,","for i , arg in enumerate ( args ) :"
3107,"call the method FASTCGI_OPTIONS.copy, substitute the result for options.",options = FASTCGI_OPTIONS . copy ( )
3108,from django.forms.utils import ErrorList into default name space.,from django . forms . utils import ErrorList
3109,"define the method reverse with arguments self, lookup_view, unpacked list args and unpacked dictionary kwargs.","def reverse ( self , lookup_view , * args , ** kwargs ) :"
3110,"if six.PY2 is true,",if six . PY2 :
3111,"get 'value' attribute of the _prefixes, if it exists, return it, otherwise return '/'.","return getattr ( _prefixes , ""value"" , '/' )"
3112,"else if timeout equals to integer 0,",elif timeout == 0 :
3113,"return default,",return default
3114,define the function restart_with_reloader.,def restart_with_reloader ( ) :
3115,code set to a string 'invalid_choice'. return value.,return value
3116,"call the method zipfile.ZipFile with an argument self, substitute the result for self._archive.",self . _archive = zipfile . ZipFile ( file )
3117,"and ignorenonexistent set to self.ignore, substitute the result for objects. for every obj in objects,",for obj in objects :
3118,convert cull_frequency into an integer and substitute it for self._cull_frequency.,self . _cull_frequency = int ( cull_frequency )
3119,substitute result for value under the RESULT key of the oldroot dictionary.,oldroot [ RESULT ] = result
3120,return dec.,return dec
3121,increment weight by integer 2.,weight += 2
3122,"if hidden_fields is true,",if hidden_fields :
3123,"define the method render with 5 arguments: self, name, value, attrs set to None and choices set to an empty tuple.","def render ( self , name , value , attrs = None , choices = ( ) ) :"
3124,"join 'conf' and 'locale' into a file path, use it as an argument for the call the method os.path.abspath,","self . locale_paths = [ os . path . abspath ( os . path . join ( 'conf' , 'locale' ) ) ]"
3125,derive the class RegexURLPattern with LocaleRegexProvider as base class.,class RegexURLPattern ( LocaleRegexProvider ) :
3126,"call the function ugettext with 3 arguments, string ""%(size)d byte"", string ""%(size)d bytes"" and bytes,","value = ungettext ( ""%(size)d byte"" , ""%(size)d bytes"" , bytes ) % { 'size' : bytes }"
3127,"call the function email_message.message, substitute the result for message.",message = email_message . message ( )
3128,self.tags is an empty dictionary.,self . tags = { }
3129,"if error.code equals code,",if error . code == code :
3130,"if self.file has an attribute 'size',","if hasattr ( self . file , 'size' ) :"
3131,"define the method attach_file with arguments self, path and mimetype set to None.","def attach_file ( self , path , mimetype = None ) :"
3132,"get the next element of the iterable pattern_iter, assign the result for ch and escaped, respectively.","ch , escaped = next ( pattern_iter )"
3133,num_args is an integer 0.,num_args = 0
3134,substitute var for value under the name key of the self.extra_context dictionary.,self . extra_context [ name ] = var
3135,"decorator cached_property,",@ cached_property
3136,"otherwise if self._meta.fields is true and field is not contained in self._meta.fields,",elif self . _meta . fields and field not in self . _meta . fields :
3137,"for every sub_stream in boundarystream,",for sub_stream in boundarystream :
3138,"if TypeError exception is caught,",except TypeError :
3139,use global variable _translations.,global _translations
3140,define the method check_migrations with an argument self.,def check_migrations ( self ) :
3141,"call the method handler.addQuickElement with 3 arguments: string 'title', an empty string and a dictionary with 3 entries:","handler . addQuickElement ( ""enclosure"" , '' , { ""url"" : item [ 'enclosure' ] . url , ""length"" : item [ 'enclosure' ] . length , ""type"" : item [ 'enclosure' ] . mime_type } )"
3142,"if KeyError, IndexError and AttributeError exception is caught,","except ( KeyError , IndexError , AttributeError ) :"
3143,"if value is true,",if value :
3144,call the method self.write_message with argument message.,self . write_message ( message )
3145,"call the function re.compile with raw string '&(?!(\w+|#\d+);)', substitute the result for unencoded_ampersands_re.",unencoded_ampersands_re = re . compile ( r'&(?!(\w+|#\d+);)' )
3146,call the method selected_choices.remove with an argument option_value.,selected_choices . remove ( option_value )
3147,"if timezone is an instance of tzinfo,","if isinstance ( timezone , tzinfo ) :"
3148,return value under the DEFAULT_PALETTE key of the PALETTES dictionary.,return PALETTES [ DEFAULT_PALETTE ]
3149,do nothig.,pass
3150,"decrement self.active_readers by integer 1,",self . active_readers -= 1
3151,"filesize_number_format with result of division of bytes by PB as an argument, substitute the result for value. call the function avoid_wrapping with an argument value, return the result.",return avoid_wrapping ( value )
3152,define the method __setstate__ with 2 arguments: self and state.,"def __setstate__ ( self , state ) :"
3153,"get the value under the self.using key of the connections dictionary, call the method close on it.",connections [ self . using ] . close ( )
3154,"try,",try :
3155,message is a string 'make sure the name begins with a letter or underscore'.,message = 'make sure the name begins with a letter or underscore'
3156,"call the function force_text with second element of choice as an argument, substitute the result for self.choice_label.",self . choice_label = force_text ( choice [ 1 ] )
3157,"slice list unhandled_params from the beginning to the length of defaults last element,",unhandled_params = unhandled_params [ : - len ( defaults ) ]
3158,"call the function iri_to_uri with an argument value, use the result as an argument for the call to the force_text function,",return force_text ( iri_to_uri ( value ) )
3159,from django.utils.deconstruct import deconstructible into default name space.,from django . utils . deconstruct import deconstructible
3160,"define the method setdefault with 3 arguments: self, key and default.","def setdefault ( self , key , default ) :"
3161,"join return value of the function six.text_type called with an argument self.management_form and forms into a string,","return mark_safe ( '\n' . join ( [ six . text_type ( self . management_form ) , forms ] ) )"
3162,"call the function os.walk with 3 arguments: root, topdown set to boolean True, followlinks set to self.symlinks,","for dirpath , dirnames , filenames in os . walk ( root , topdown = True , followlinks = self . symlinks ) :"
3163,return template and None.,"return template , None"
3164,"call the method path.encode with an argument fs_encoding, return the result.",return path . encode ( fs_encoding )
3165,"raise an DTDForbidden exception with arguments name, sysid and pubid.","raise DTDForbidden ( name , sysid , pubid )"
3166,"call the method m.groups, use the first element of the result as key for obtaining value from d dictionary,",d = d [ m . groups ( ) [ 0 ] ]
3167,"type set to int and help is a string 'Specifies the indent level to use when pretty-printing output.'. call the method parser.add_argument with 5 arguments: string '--database', default set to string 'store', dest set to 'database',","parser . add_argument ( '--database' , action = 'store' , dest = 'database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a specific database to dump fixtures from. ' 'Defaults to the ""default"" database.' )"
3168,"if TypeError exception is caught,",except TypeError :
3169,import module os.,import os
3170,"if html_message is True,",if html_message :
3171,"convert elements of choices into a list, substitute it for self.choices.",self . choices = list ( choices )
3172,"for every reference and receivers in return value of the call of obj.unresolved_references.items method,","for reference , receivers in obj . unresolved_references . items ( ) :"
3173,"if _serializers is false,",if not _serializers :
3174,encoding set to None and unpacked dictionary _params. substitute encoding for self.encoding.,self . encoding = encoding
3175,"otherwise if value under the key 'all' of the options dictionary is true,",elif options [ 'all' ] :
3176,"self.upload_handlers is an instance of ImmutableList, created with 2 arguments: self.upload_handlers,","self . upload_handlers = ImmutableList ( self . upload_handlers , warning = ""You cannot alter upload handlers after the upload has been processed."" )"
3177,append list containing string '--no-location' to self.msgmerge_options.,self . msgmerge_options = self . msgmerge_options [ : ] + [ '--no-location' ]
3178,"call the function digest with an argument password, call the method digest on the result, substitute the result or password.",password = digest ( password ) . digest ( )
3179,return a string '%02d' formated with the result of the function self.G.,return '%02d' % self . G ( )
3180,"call the function _check_middleware_classes with dictionary kwargs as argument, use the result as an argument for the call to the function errors.extend.",errors . extend ( _check_middleware_classes ( ** kwargs ) )
3181,import module ssl.,import ssl
3182,append an empty string to usage.,"usage . append ( """" )"
3183,raise an NotImplementedError exception with an argument string 'subclasses of BaseArchive must provide an extract() method'.,raise NotImplementedError ( 'subclasses of BaseArchive must provide an extract() method' )
3184,"define the function sql_flush with 4 arguments: style, connection, only_django set to boolean False,","def sql_flush ( style , connection , only_django = False , reset_sequences = True , allow_cascade = False ) :"
3185,"if level is not an integer raise an error with message string ""The first argument should be level."".","assert isinstance ( level , int ) , ""The first argument should be level."""
3186,"with unpacked list field_value as an argument, substitute the result for obj. get the field.rel.field_name from the obj, substitute it for obj_pk.","obj_pk = getattr ( obj , field . rel . field_name )"
3187,"substitute func for _dec._decorated_function. call the function wraps with an argument func, call the result with an argument _dec, return the result.",return wraps ( func ) ( _dec )
3188,"call the self.stdout.write method with string "" (no migrations)"" and self.style.MIGRATE_FAILURE as arguments.","self . stdout . write ( "" (no migrations)"" , self . style . MIGRATE_FAILURE )"
3189,"call the get_bytes_from_wsgi function with environ, string 'PATH_INFO' and empty strings as arguments, substitute the result for path_info.","path_info = get_bytes_from_wsgi ( environ , 'PATH_INFO' , '' )"
3190,"get the value under the '__slots__' key of the orig_vars dictionary, substitute it for slots.",slots = orig_vars . get ( '__slots__' )
3191,"join elements of list source from index last to the end into a string, substitute it for piece.",piece = '' . join ( source [ last : ] )
3192,define the method close with an argument self.,def close ( self ) :
3193,"if self.active_readers equals integer 0 and self.waiting_writers is not equal to integer 0,",if self . active_readers == 0 and self . waiting_writers != 0 :
3194,derive the class BaseValidator form the object base class.,class BaseValidator ( object ) :
3195,"call the function getargspec with an argument func, substitute the result for params, varargs, varkw and defaults, respectively.","params , varargs , varkw , defaults = getargspec ( func )"
3196,"call the method re.compile with an argument raw string ""&(#?[xX]?(?:[0-9a-fA-F]+|\w{1,8}));"", substitute the result for _entity_re.","_entity_re = re . compile ( r""&(#?[xX]?(?:[0-9a-fA-F]+|\w{1,8}));"" )"
3197,call the function context_class with 2 arguments: _dict and unpacked dictionary containing 4 entries:,"new_context = context_class ( _dict , ** { 'autoescape' : context . autoescape , 'current_app' : context . current_app , 'use_l10n' : context . use_l10n , 'use_tz' : context . use_tz , } )"
3198,"if NameError exception is caught,",except NameError :
3199,call the os.rename function with arguments old_file_name and new_file_name.,"os . rename ( old_file_name , new_file_name )"
3200,"filter out the results for which function os.path.isdir returns false, substitute the result for locale_dirs. map the locale_dirs elements with mapping function os.path.basename, substitute the result for all_locales.","all_locales = map ( os . path . basename , locale_dirs )"
3201,"""(%s) and 'can_import_settings' (%s) command options."", replace '%s' with self.leave_locale_alone and self.can_import_settings. from django.utils import translation into default namespace.",from django . utils import translation
3202,return response.,return response
3203,call the function import_string with argument backend.,import_string ( backend )
3204,append self.pointer to self.backout.,self . backout . append ( self . pointer )
3205,return cache.,return cache
3206,"for every name in sorted value under the app key of the commands_dict dictionary,",for name in sorted ( commands_dict [ app ] ) :
3207,"reverse settings.LOCALE_PATHS element order, for every localedir in the result,",for localedir in reversed ( settings . LOCALE_PATHS ) :
3208,add model to excluded_models set.,excluded_models . add ( model )
3209,define the method handle_noargs with 2 arguments: self and unpacked dictionary options.,"def handle_noargs ( self , ** options ) :"
3210,fill_to is an integer 7.,fill_to = 7
3211,"if exception GeneratorExit is caught,",except GeneratorExit :
3212,define the method _is_expired with self and f as arguments.,"def _is_expired ( self , f ) :"
3213,"if charset equals to string 'utf-8',",if charset == 'utf-8' :
3214,from binascii import Error as BinasciiError into default name space.,from binascii import Error as BinasciiError
3215,"get the value under the field key of the self.cleaned_data dictionary, if it exists substitute it for field_value,","field_value = self . cleaned_data . get ( field , None )"
3216,return nothing.,return
3217,"get value under the 'handlers' key of the config dictioanry, if it exists substitute it for handlers, if not handlers is None.","handlers = config . get ( 'handlers' , None )"
3218,"if not,",else :
3219,"if not,",else :
3220,"get fist max_width incremented by 1 elements from line, find index of the first occurrenece of whitespace from the right side,",space = line [ : max_width + 1 ] . rfind ( ' ' ) + 1
3221,"call the method self._send with argument message, substitute the result for sent.",sent = self . _send ( message )
3222,"substitute filter_expr and nodelist for self.filter_expr and self.nodelist, respectively.","self . filter_expr , self . nodelist = filter_expr , nodelist"
3223,"if self.empty_permitted is true and call to the method self.has_changed evaluates to false,",if self . empty_permitted and not self . has_changed ( ) :
3224,"define the function sql_create with 3 arguments: app_config, style and connection.","def sql_create ( app_config , style , connection ) :"
3225,call the method handler.endElement with 2 arguments: string 'author' and an empty dictionary.,"handler . startElement ( ""author"" , { } )"
3226,"if response is True,",if response :
3227,"try,",try :
3228,"if c doesnt have an attribute '__call__' and types has an 'ClassType' attribute and type of c is not equal to types.ClassType,","if not hasattr ( c , '__call__' ) and hasattr ( types , 'ClassType' ) and type ( c ) != types . ClassType :"
3229,define the method _update_errors with 2 arguments: self and errors.,"def _update_errors ( self , errors ) :"
3230,return boolean False.,return False
3231,"define initialization method __init__, with self class instance as the argument.",def __init__ ( self ) :
3232,"remove first and last elements of s, replace every occurrence of string '\%s' formated with quote with quote,","return s [ 1 : - 1 ] . replace ( r'\%s' % quote , quote ) . replace ( r'\\' , '\\' )"
3233,define the method __init__ with 2 arguments: self and language.,"def __init__ ( self , language ) :"
3234,"skip this loop iteration,",continue
3235,"call the function sql_destroy_indexes with 3 arguments: app_config, self.style and connection, substitute the result for statements.","statements = sql_destroy_indexes ( app_config , self . style , connection )"
3236,from django.template.loader import BaseLoader into default name space.,from django . template . loader import BaseLoader
3237,"for every key and value in return value of the parse_qsl with 3 arguments: query_string is it exists or an empty string if not,","for key , value in parse_qsl ( query_string or '' , keep_blank_values = True , encoding = encoding ) :"
3238,delete attr.,del attr
3239,extend collect list with settings.TEMPLATE_CONTEXT_PROCESSORS.,collect . extend ( settings . TEMPLATE_CONTEXT_PROCESSORS )
3240,do nothing.,pass
3241,"write ',' to the self.stream file stream.","self . stream . write ( "","" )"
3242,"value under the 'declared_fields' key of the attrs dictionary is an instance of OrderedDict class, created with an argument current_fields.",attrs [ 'declared_fields' ] = OrderedDict ( current_fields )
3243,self.stream is None.,self . stream = None
3244,"call the method parser.parse_args with an arguments args set to an empty list, assign the result for defaults and _, respectively.","defaults , _ = parser . parse_args ( args = [ ] )"
3245,substitute email_backend for self.email_backend.,self . email_backend = email_backend
3246,"if ',' is not contained in arg,","if ',' not in arg :"
3247,"if not, self.require_all_fields is boolean True. call the method __init__ with 2 arguments: unpacked list args and unpacked dictionary kwargs, from the base class of the class MultiValueField.","super ( MultiValueField , self ) . __init__ ( * args , ** kwargs )"
3248,"if the key doesnt exists substitute None for self.selected_fields. remove the 'use_natural_keys' key from the options dictionary and substitute it for self.use_natural_keys,","self . use_natural_keys = options . pop ( ""use_natural_keys"" , False )"
3249,substitute i-th element of self.forms for form.,form = self . forms [ i ]
3250,"finally perform,",finally :
3251,"call the method bmatch.group with an argument integer 1, if it evaluates to true,",if bmatch . group ( 1 ) :
3252,return nothing.,return
3253,"if e.connection_reset is false,",if not e . connection_reset :
3254,"if not,",else :
3255,"get is a tuple containing elements generated by the call to the function pformat with an argument COOKIES_override,",cookies = ( pformat ( COOKIES_override ) if COOKIES_override is not None else pformat ( request . COOKIES ) )
3256,"call the function force_str with an argument format_type, substitute the result for format_type.",format_type = force_str ( format_type )
3257,derive the class Variable form the base class object.,class Variable ( object ) :
3258,if 'widget' key of the kwargs dictionary doesnt exists assign it widget field of the base class of the IntegerField class value.,"kwargs . setdefault ( 'widget' , super ( IntegerField , self ) . widget )"
3259,idstring is an empty string.,idstring = ''
3260,return boolean False.,return False
3261,"'status_code' with value 403, and 'request with value request, respectively use the previous as the arguments for the call to the logger.warning function. call the method self.get_exception_response with request, resolver and integer 403 as the arguments, assign the result to response.","response = self . get_exception_response ( request , resolver , 403 )"
3262,"if module os field name equals to string 'nt',",if os . name == 'nt' :
3263,"dictionary containing element v for k. for every k and list_ in return value of the method self.lists,","for k , list_ in self . lists ( ) :"
3264,week_number is None.,week_number = None
3265,"if ValueError exception is caught,",except ValueError :
3266,"call the method field.clean with an argument value, substitute the result for value.",value = field . clean ( value )
3267,"get the value under the name key of the data dictionary, if it exists return it, if not return None.","return data . get ( name , None )"
3268,"otherwise if action equals to string ""unapply_success"".","elif action == ""unapply_success"" :"
3269,from django.db import models into default name space.,from django . db import models
3270,"remove first element from name, substitute the result for used.",used = name . pop ( 0 )
3271,skip this loop iteration.,break
3272,"if rel_model has an attribute 'natural_key' and rel_model is not equal to model,","if hasattr ( rel_model , 'natural_key' ) and rel_model != model :"
3273,"raise an exception parser.error_class with an argument string ""Not expecting '%s' as infix operator in if tag."",","raise parser . error_class ( ""Not expecting '%s' as infix operator in if tag."" % self . id )"
3274,"raise an TemplateSyntaxError exception with an argument string ""next-to-last argument to 'regroup' tag must be 'as'"".","raise TemplateSyntaxError ( ""next-to-last argument to 'regroup' tag must"" "" be 'as'"" )"
3275,"call the function six.text_type with an argument number, substitute the result for str_number.",str_number = six . text_type ( number )
3276,"call the re.compile function with self.regex and self.flags as arguments, substitute the result for self.regex.","self . regex = re . compile ( self . regex , self . flags )"
3277,"add ext to f, substitute the result for fext.",fext = f + ext
3278,from lib2to3 import fixer_base into default name space.,from lib2to3 import fixer_base
3279,"convert data to string, substitute it for data.",data = str ( data )
3280,define the method handle_entityref with 2 arguments self and name.,"def handle_entityref ( self , name ) :"
3281,"if self._request_middleware is None,",if self . _request_middleware is None :
3282,"replace '%s' in string ""Running pre-migrate handlers for application %s"" with app_config.label, print it to the standard output.","print ( ""Running pre-migrate handlers for application %s"" % app_config . label )"
3283,"define the method handle_field with arguments self, obj and field.","def handle_field ( self , obj , field ) :"
3284,"call the method self._should_delete_form with an argument form, if it evaluates to true,",if self . _should_delete_form ( form ) :
3285,"if self.attachments is true,",if self . attachments :
3286,define the method read with an argument self.,def read ( self ) :
3287,"call the __init__ method from the base class of the class ValidationError with arguments message, code and params.","super ( ValidationError , self ) . __init__ ( message , code , params )"
3288,"if bytes is smaller than KB,",if bytes < KB :
3289,self.none_value is a tuple containing 2 elements: integer 0 and empty_label.,"self . none_value = ( 0 , empty_label )"
3290,"if value is contained in self.empty_values,",if value in self . empty_values :
3291,from django.core.exceptions import SuspiciousMultipartF into default name space.,from django . core . exceptions import SuspiciousMultipartForm
3292,"taglib_module is an string '%s.%s', where '%s' is replaced to module and library_name.","taglib_module = '%s.%s' % ( module , library_name )"
3293,derive the class warn_about_renamed_method from object base class.,class warn_about_renamed_method ( object ) :
3294,"if value has an attribute '__iter__' and value is not an instance of six.text_type and value doesnt have an attribute '_meta',","if ( hasattr ( value , '__iter__' ) and not isinstance ( value , six . text_type ) and not hasattr ( value , '_meta' ) ) :"
3295,"otherwise return boolean False. if not,",else :
3296,use the result and file_obj as arguments for the call to the method self._files.appendlist. break the loop execution.,break
3297,"if token.contents equals string 'else',",if token . contents == 'else' :
3298,"if smtplib.SMTPException exception is caught,",except smtplib . SMTPException :
3299,child_loggers is an empty list.,child_loggers = [ ]
3300,"return an instance of a BlockNode class, created with 2 arguments: block_name and nodelist.","return BlockNode ( block_name , nodelist )"
3301,"convert key_prefix, version and key into strings, concatenate them respectively, with character ':' as delimiter, return the result.","return '%s:%s:%s' % ( key_prefix , version , key )"
3302,"multiply offset.days, integer 24 and integer 60, sum the result with floored result of dividing offset.seconds by integer 60,",timezone = ( offset . days * 24 * 60 ) + ( offset . seconds // 60 )
3303,from django.db.migrations.autodetector import MigrationAutodetector into default name space.,from django . db . migrations . autodetector import MigrationAutodetector
3304,from django.core.management.base import BaseCommand into default name space.,from django . core . management . base import BaseCommand
3305,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3306,update self.tags dictionary with lib.tags.,self . tags . update ( lib . tags )
3307,from django.utils.translation import ugettext_lazy as _ and pgettext_lazy into default name space.,"from django . utils . translation import ugettext_lazy as _ , pgettext_lazy"
3308,substitute i-th element of value for field_value.,field_value = value [ i ]
3309,"make target_dir directory,",os . mkdir ( target_dir )
3310,"define the method with 3 arguments: self, app_config set to None and display_num_errors set to boolean False.","def validate ( self , app_config = None , display_num_errors = False ) :"
3311,"model._meta.app_label, model._meta.object_name, parent_model._meta.app_label, parent_model._meta.object_name, respectively. if not,",else :
3312,call the method self.run_validators with an argument out.,self . run_validators ( out )
3313,from django.utils.translation import ugettext_lazy as _ and ugettext into default name space.,"from django . utils . translation import ugettext_lazy as _ , ugettext"
3314,substitute old_method_name for self.old_method_name.,self . old_method_name = old_method_name
3315,"if character '-' is not contained in lang_code,",if '-' not in lang_code :
3316,requires_system_checks is boolean False.,requires_system_checks = False
3317,"otherwise if ns is not contained in app_list,",elif ns not in app_list :
3318,"reverse order of elements of self.keyOrder, return the result.",return reversed ( self . keyOrder )
3319,"append it to a list, perform the previous for every dir_ in fixture_dirs, substitute the resulting list for fixture_dirs. call the method os.path.basename with an argument fixture_name, substitute the result for fixture_name.",fixture_name = os . path . basename ( fixture_name )
3320,"if not,",else :
3321,define the method __getattr__ with 2 arguments: self and real_name.,"def __getattr__ ( self , real_name ) :"
3322,"join results of format_html called with 2 arguments: format_string and tuple with an element args, into a string,","return mark_safe ( conditional_escape ( sep ) . join ( format_html ( format_string , * tuple ( args ) ) for args in args_generator ) )"
3323,derive the class BaseLoader from the object base class.,class BaseLoader ( object ) :
3324,"call the function unescape_string_literal with an argument var, use it as an argument for the call to the function mark_safe,",self . literal = mark_safe ( unescape_string_literal ( var ) )
3325,"if v is boolean False or v is None or v is an empty string, return boolean False, otherwise return boolean True.",return not ( v is False or v is None or v == '' )
3326,"return a list containing 2 elements: return value of the value.date method and return value of the replace method,","return [ value . date ( ) , value . time ( ) . replace ( microsecond = 0 ) ]"
3327,"default as an empty list and help as an string 'Locale(s) to process (e.g. de_AT). Default is to process all. Can be used multiple times.'. call the method parser.add_argument with string '--exclude', string '-x', dest set to string 'exclude', action set to string 'append',","parser . add_argument ( '--exclude' , '-x' , dest = 'exclude' , action = 'append' , default = [ ] , help = 'Locales to exclude. Default is none. Can be used multiple times.' )"
3328,yield nothing.,yield
3329,call the method logging._releaseLock.,logging . _releaseLock ( )
3330,"new_class.declared_fields.keys. if missing_fields is true,",if missing_fields :
3331,from django.core.cache import caches into default name space.,from django . core . cache import caches
3332,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
3333,"if endblock.contents is not contained in acceptable_endblocks,",if endblock . contents not in acceptable_endblocks :
3334,substitute allow_files and allow_folders for self.allow_files and self.allow_folders.,"self . allow_files , self . allow_folders = allow_files , allow_folders"
3335,"subtract third element of tupl from length of second element of tupl, substitute the result for units.",units = len ( tupl [ 1 ] ) - tupl [ 2 ]
3336,"otherwise if self._meta.exclude is true and field is not contained in self._meta.exclude,",elif self . _meta . exclude and field in self . _meta . exclude :
3337,"join statements into a string, separated by newlines, return it.",return '\n' . join ( statements )
3338,"define the method render with 4 arguments: self, name, value and attrs set to None.","def render ( self , name , value , attrs = None ) :"
3339,"if six.PY2 is true,",if six . PY2 :
3340,self.error_list is an empty list.,self . error_list = [ ]
3341,from importlib import import_module into default name space.,from importlib import import_module
3342,"call the function render_value_in_context with 2 arguments: value and context, return the result.","return render_value_in_context ( value , context )"
3343,"name appended to string '_', as the name of the attribute to get from other object, or if the previous doesnt exist, None. return combined.",return combined
3344,"raise an CommandError with an argument string ""%r is not a valid %s name. Please %s."", were '%r' is replaced with name,","raise CommandError ( ""%r is not a valid %s name. Please %s."" % ( name , app_or_project , message ) )"
3345,"in ""%s in %s"" substitute '%s' with names string and app, respective, join all the previous pairs into a string separated by ';', substitute it for name_str. raise CommandError exception, with ""Conflicting migrations detected (%s).\nTo fix them run 'python manage.py makemigrations --merge'"",","raise CommandError ( ""Conflicting migrations detected (%s).\nTo fix them run 'python manage.py makemigrations --merge'"" % name_str )"
3346,"otherwise if func is callable object,",elif callable ( func ) :
3347,"use the result as the argument for the call to the sql.extend method. call the connection.creation.sql_for_pending_references method with refto, no_style() and pending_references as arguments,","sql . extend ( connection . creation . sql_for_pending_references ( model , no_style ( ) , pending_references ) )"
3348,week_number is integer 52.,week_number = 52
3349,increment stats dictionary value under the MISSES key by integer 1.,stats [ MISSES ] += 1
3350,"call the method related.natural_key, substitute the result for value.",value = related . natural_key ( )
3351,"strings ""URLError"", ""urllib2"", ""urllib.error"", result of the call to the function MovedAttribute with 3 arguments: strings ""HTTPError"", ""urllib2"", ""urllib.error"" and result of the call to the function MovedAttribute with 3 arguments: strings ""ContentTooShortError"", ""urllib"", ""urllib.error"". for every attr in _urllib_error_moved_attributes,",for attr in _urllib_error_moved_attributes :
3352,"raise an CommandError exception with an argument string ""Destination directory '%s' does not exist, please create it first."",","raise CommandError ( ""Destination directory '%s' does not "" ""exist, please create it first."" % top_dir )"
3353,call method request.META.get with arguments header and None.,"value = request . META . get ( header , None )"
3354,"get the value under the 'error_messages' key of the kwargs dictionary, if it exists substitute it for error_messages, if not,",error_messages = kwargs . get ( 'error_messages' ) or { }
3355,return lookup_view.,return lookup_view
3356,return boolean False.,return False
3357,derive class SimpleCookie from the base class http_cookies.SimpleCookie.,class SimpleCookie ( http_cookies . SimpleCookie ) :
3358,"call the method self._initialize_handlers,",self . _initialize_handlers ( )
3359,"for every node in nodelist,",for node in nodelist :
3360,return boolean False.,return False
3361,"if not,",else :
3362,increment stats dictionary value under the HITS key by integer 1.,stats [ HITS ] += 1
3363,substitute int for integer_types.,"integer_types = int ,"
3364,substitute empty bytes string for self.buffer.,self . buffer = b''
3365,substitute self.source for e.django_template_source.,e . django_template_source = self . source
3366,"if e.errno is not equal to errno.EEXIST,",if e . errno != errno . EEXIST :
3367,"call the method tuple.__getitem__ with 2 arguments: self and key, substitute the result for value.","value = tuple . __getitem__ ( self , key )"
3368,define the function deactivate.,def deactivate ( ) :
3369,"if visible_issue_count equals to integer 0, or for string ""1 issue"" if visible_issue_count equals integer 1, or for string ""%s issues"", with '%s' replaced by visible_issue_count, subtract visible_issue_count from length of all_issues, and substitute it for second '%s' in the stirting string. if any element in the return value of the e.is_serious method is true, and if return value of the method e.is_silenced is false,",if any ( e . is_serious ( ) and not e . is_silenced ( ) for e in all_issues ) :
3370,"if value is false,",if not value :
3371,"if index_sql is not empty,",if index_sql :
3372,"stderr set to subprocess.PIPE, shell set to boolean True, cwd set to repo_dir and universal_newlines set to boolean True, as arguments, substitute the result for git_log. evaluate the method git_log.communicate, substitute first element of the result for timestamp.",timestamp = git_log . communicate ( ) [ 0 ]
3373,"if leading is true,",if leading :
3374,"help is a string ""Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available."".","help = ""Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available."""
3375,substitute app_name for klass.,klass = app_name
3376,"raise an CommandError exception with an argument string ""Unknown command: %r"", with '%r' replaced by name.","raise CommandError ( ""Unknown command: %r"" % name )"
3377,"raise an TemplateSyntaxError exception with an argument string ""Searching for value. Unexpected end of string in column %d: %s"",","raise TemplateSyntaxError ( ""Searching for value. "" ""Unexpected end of string in column %d: %s"" % ( i , subject ) )"
3378,define the method clean with arguments self and value.,"def clean ( self , value ) :"
3379,do nothing.,pass
3380,"call the method find_indentation with an argument node, append the result to newline, substitute the result for klass.prefix.",klass . prefix = '\n' + find_indentation ( node )
3381,"and memo, and result of the function copy.deepcopy called with 2 arguments: value and memo. return result.",return result
3382,"if not,",else :
3383,"if tok.next is true,",if tok . next :
3384,"try,",try :
3385,"for every c in self.children. return string '(%s: %s)', formated with self.connector and string created by joining c into a string, separated by ', ',","return '(%s: %s)' % ( self . connector , ', ' . join ( [ str ( c ) for c in self . children ] ) )"
3386,return boolean False.,return False
3387,derive class BaseDatabaseCache from BaseCache base class.,class BaseDatabaseCache ( BaseCache ) :
3388,"if default_args exists substitute it for self.default_args, if not, self.default_args is an empty dictionary.",self . default_args = default_args or { }
3389,"define the method __init__ with 3 arguments: self, func and name set to None.","def __init__ ( self , func , name = None ) :"
3390,"if ValueError exception is caught,",except ValueError :
3391,"if 'args' is contained in options,",if 'args' in options :
3392,"substitute it for basedir. if basedir is not a directory,",if not os . path . isdir ( basedir ) :
3393,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
3394,"if extra_attrs is true,",if extra_attrs :
3395,"call the function _urlize with 3 arguments: value, nofollow set to boolean True, autoescape set to autoescape,","return mark_safe ( _urlize ( value , nofollow = True , autoescape = autoescape ) )"
3396,"call the method _entity_re.sub with 2 arguments: _replace_entity and text, return the result.","return _entity_re . sub ( _replace_entity , text )"
3397,"property decorator,",@ property
3398,from importlib import import_module into default name space.,from importlib import import_module
3399,define the method decompress with 2 arguments: self and value.,"def decompress ( self , value ) :"
3400,"if opts is true,",if opts :
3401,"otherwise if self.use_ipv6 is true and _fqdn is false,",elif self . use_ipv6 and not _fqdn :
3402,"if KeyError exception is caught,",except KeyError :
3403,"value is an instance of ConvertingTuple class, created with an argument value.",value = ConvertingTuple ( value )
3404,"call the method handler.addQuickElement with an argument string ""author"", ""%s (%s)"",","handler . addQuickElement ( ""author"" , ""%s (%s)"" % ( item [ 'author_email' ] , item [ 'author_name' ] ) )"
3405,domains is a tuple with 2 elements: strings 'djangojs' and 'django'.,"domains = ( 'djangojs' , 'django' )"
3406,"if default is None,",if default is None :
3407,"if i is not an instance of six.integer_types class,","if not isinstance ( i , six . integer_types ) :"
3408,"if VariableDoesNotExist exception is caught,",except VariableDoesNotExist :
3409,"if host exists substitute it for self.host, if not substitute settings.EMAIL_HOST for self.host.",self . host = host or settings . EMAIL_HOST
3410,"call the method handler.addQuickElement with 2 arguments: string 'updated' and result of the function rfc3339_date,","handler . addQuickElement ( 'updated' , rfc3339_date ( item [ 'updateddate' ] ) )"
3411,"call the method self._setupfunc, substitute the result for self._wrapped.",self . _wrapped = self . _setupfunc ( )
3412,"'Use SplitDateTimeField instead.', RemovedInDjango19Warning and stacklevel set to integer 2. if length of value is not equal to integer 2,",if len ( value ) != 2 :
3413,derive the class override from the object base class.,class override ( object ) :
3414,"strip of the whitespaces first element of transfer_encoding, substitute the result for transfer_encoding.",transfer_encoding = transfer_encoding [ 0 ] . strip ( )
3415,raise an CommandError exception with an argument string 'Your Python does not support IPv6.'.,raise CommandError ( 'Your Python does not support IPv6.' )
3416,"call the method threading.RLock, substitute the result for self._lock.",self . _lock = threading . RLock ( )
3417,define the method add_arguments with arguments self and parser.,"def add_arguments ( self , parser ) :"
3418,return source and display_name.,"return source , display_name"
3419,call the method self._update_unget_history with length of bytes as an argument.,self . _update_unget_history ( len ( bytes ) )
3420,"raise an TemplateSyntaxError exception with an argument string ""Invalid syntax in widthratio tag. Expecting 'as' keyword"".","raise TemplateSyntaxError ( ""Invalid syntax in widthratio tag. Expecting 'as' keyword"" )"
3421,"if six.PY2 is true and path is not an instance of byes type,","if six . PY2 and not isinstance ( path , bytes ) :"
3422,"call the method self._create_attachments with argument msg, return the result.",return self . _create_attachments ( msg )
3423,define the method _isdst with 2 arguments: self and dt.,"def _isdst ( self , dt ) :"
3424,"call the method kwarg_re.match with an argument bit, substitute it for match.",match = kwarg_re . match ( bit )
3425,call the method tempfile.NamedTemporaryFile with arguments: suffix set to string '.upload' and dir set to settings.FILE_UPLOAD_TEMP_DIR.,"file = tempfile . NamedTemporaryFile ( suffix = '.upload' , dir = settings . FILE_UPLOAD_TEMP_DIR )"
3426,define the method popitem with an argument self.,def popitem ( self ) :
3427,from django.conf import settings into default name space.,from django . conf import settings
3428,"if self.directory_permissions_mode is not None,",if self . directory_permissions_mode is not None :
3429,return self.token.,return self . token
3430,define the method __repr__ with an argument self.,def __repr__ ( self ) :
3431,"call the mw_class function, store the result in the mw_instance.",mw_instance = mw_class ( )
3432,"call the method self.download with an argument template, substitute the result for absolute_path.",absolute_path = self . download ( template )
3433,return an empty string.,return ''
3434,define the function _string_concat with an argument unpacked list strings.,def _string_concat ( * strings ) :
3435,"called with string as an argument 'Error executing %s: %s', where '%s' is replaced by: first element of args and strerror, respective, and third element of the result of the function sys.exc_info. call the method p.communicate, assign the result to output and errors, respectively.","output , errors = p . communicate ( )"
3436,raise an NotImplementedError exception with an argument string 'may be implemented in a future release'.,raise NotImplementedError ( 'may be implemented in a future release' )
3437,"for every d in deps, if d is not contained in models and d is contained in model_list add boolean True to a tuple,",for candidate in ( ( d not in models or d in model_list ) for d in deps ) :
3438,define the method __init__ with 2 arguments self and var.,"def __init__ ( self , var ) :"
3439,"call the self.stdout.write method with string "" Creating table %s\n"" as argument, with all occurrences of '%s' replaced with model._meta.db_table.","self . stdout . write ( "" Creating table %s\n"" % model . _meta . db_table )"
3440,append a tuple with 2 arguments: filter_func and args to filters.,"filters . append ( ( filter_func , args ) )"
3441,"for every field in model._meta.fields,",for field in model . _meta . fields :
3442,"if format_module_path is an instance of six.string_types,","if isinstance ( format_module_path , six . string_types ) :"
3443,"if not,",else :
3444,"convert slice of language string from (p+1)-th index to the end to uppercase, append it to the previous result, return the resulting string. if not,",else :
3445,"if e.errno is not equal to errno.EEXIST,",if e . errno != errno . EEXIST :
3446,"if not,",else :
3447,LOCK_SH is a integer 0.,LOCK_SH = 0
3448,"define the method _get_page with self class instance, unpacked list args and unpacked dictionary kwargs as arguments.","def _get_page ( self , * args , ** kwargs ) :"
3449,"get value under the self.blocks dictionary under the name key, return the last element.",return self . blocks [ name ] [ - 1 ]
3450,"define the function fields_for_model with 9 arguments: model, fields set to None, exclude set to None, widgets set to None,","def fields_for_model ( model , fields = None , exclude = None , widgets = None , formfield_callback = None , localized_fields = None , labels = None , help_texts = None , error_messages = None ) :"
3451,substitute DictConfigurator for dictConfigClass.,dictConfigClass = DictConfigurator
3452,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
3453,"call the method six.text_type with 3 arguments: s, encoding and string 'replace'.","return six . text_type ( s , encoding , 'replace' )"
3454,"filesize_number_format with result of division of bytes by GB as an argument, substitute the result for value. otherwise if bytes is smaller than PB,",elif bytes < PB :
3455,"call the method add_arguments from the base class of the class Command, with an argument parser.","super ( Command , self ) . add_arguments ( parser )"
3456,"author_name set to None, author_link set to None, subtitle set to None, categories set to None, feed_url set to None, feed_copyright set to None, feed_guid set to None, ttl set to None and unpacked dictionary kwargs. to_unicode is an lambda function with an argument s, result is the result of the function force_text,","to_unicode = lambda s : force_text ( s , strings_only = True )"
3457,"_iterkeys is a string ""iterkeys"".","_iterkeys = ""iterkeys"""
3458,"if cached is not None,",if cached is not None :
3459,from django.http.cookie import SimpleCookie into default name space.,from django . http . cookie import SimpleCookie
3460,"raise an ValueError exception with an argument string ""Unsupported version: %s"" formated with value under 'version' key of config dictionary.","raise ValueError ( ""Unsupported version: %s"" % config [ 'version' ] )"
3461,"default set to False, help containing string 'Mark migrations as run without actually running them' as arguments. call the method parser.add_argument with string '--list', string '-l', action contains string 'store_true', dest set to string 'list',","parser . add_argument ( '--list' , '-l' , action = 'store_true' , dest = 'list' , default = False , help = 'Show a list of all known migrations and which are applied' )"
3462,"perform the previous for every combo in result of the function product called with 3 arguments: databases, ser_fmts and cmp_fmts, substitute the result for suffixes. join fixture_name and suffix into a string, separated by '.' for every suffix in suffixes, put the results in set, substitute it for targets.","targets = set ( '.' . join ( ( fixture_name , suffix ) ) for suffix in suffixes )"
3463,define the method __repr__ with argument self.,def __repr__ ( self ) :
3464,derive the class SimplerXMLGenerator form the XMLGenerator base class.,class SimplerXMLGenerator ( XMLGenerator ) :
3465,as_form is boolean True.,as_form = True
3466,call the method self.run_validators with an argument value.,self . run_validators ( value )
3467,"call the _lock.setdefault method with name and RWLock() as arguments, substitute the result for self_lock.","self . _lock = _locks . setdefault ( name , RWLock ( ) )"
3468,"substitute '%d' with self.loaded_object_count, self.fixture_object_count and self.fixture_count. define the method load_label with self and fixture_label as arguments.","def load_label ( self , fixture_label ) :"
3469,"if self.current_token is not EndToken,",if self . current_token is not EndToken :
3470,increment self.fixture_count by one.,self . fixture_count += 1
3471,raise an CommandError exception with an argument message.,raise CommandError ( message )
3472,"call the method data.items, for every k and v in the result,","for k , v in data . items ( ) :"
3473,where '%d' is replaced with i and '%s' is replaced with subject. increment i by one.,i += 1
3474,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3475,append '=' to opt_label.,opt_label += '='
3476,"if not,",else :
3477,write the result to the self.stdout stream. write output to self.stdout stream.,self . stdout . write ( output )
3478,derive the class __proxy__ from the Promise base class.,class __proxy__ ( Promise ) :
3479,"call the method self.stdout.write, with an argument string ""Rendering %s template files with extensions: %s\n"",","self . stdout . write ( ""Rendering %s template files with "" ""extensions: %s\n"" % ( app_or_project , ', ' . join ( extensions ) ) )"
3480,derive the class ConvertingDict from dict base class.,class ConvertingDict ( dict ) :
3481,"substitute the result for domain. if UnicodeError exception is caught,",except UnicodeError :
3482,"convert self.file to string and append string '.py' to it, substitute the result for thefile.",thefile = '%s.py' % self . file
3483,"call the self.stdout.write method with string 'processing file %s in %s\n' as argument, replacing all the occurrences of '%s' with f and dirpath, respectively.","self . stdout . write ( 'processing file %s in %s\n' % ( f , dirpath ) )"
3484,"in the string ""ResolverMatch(func=%s, args=%s, kwargs=%s, url_name=%s, app_name=%s, namespaces=%s)"", replace all the occurrences of:","return ""ResolverMatch(func=%s, args=%s, kwargs=%s, url_name=%s, app_name=%s, namespaces=%s)"" % ( self . _func_path , self . args , self . kwargs , self . url_name , self . app_name , self . namespaces )"
3485,"substitute nodelist_true and nodelist_false for self.nodelist_true and self.nodelist_false, respectively.","self . nodelist_true , self . nodelist_false = nodelist_true , nodelist_false"
3486,nodelist_true_output is None.,nodelist_true_output = None
3487,from django.utils.encoding import force_str into default name space.,from django . utils . encoding import force_str
3488,"split arg by ',', substitute the result for bits.s","bits = arg . split ( ',' )"
3489,self._non_form_errors is None.,self . _non_form_errors = None
3490,"if ImportError exception is caught,",except ImportError :
3491,substitute old_setting for context.autoescape.,context . autoescape = old_setting
3492,from django.utils import six into default name space.,from django . utils import six
3493,"if not,",else :
3494,status_code is an integer 304.,status_code = 304
3495,"substitute the result for token. assign self.origin, source to token.source.","token . source = self . origin , source"
3496,return nothing.,return
3497,from django.forms.fields import everything into default name space.,from django . forms . fields import *
3498,"if model is contained in created_models,",if model in created_models :
3499,"if digest is None,",if digest is None :
3500,define the method add_arguments with self class instance and parser as the arguments.,"def add_arguments ( self , parser ) :"
3501,return obj.,return obj
3502,"return value of the function quote called with arguments k and safe, and with return value of the function quote called with arguments v and safe. if not,",else :
3503,"put cc into a list, assign it to self.cc.",self . cc = list ( cc )
3504,"for every member in members,",for member in members :
3505,"call the function to_current_timezone with an argument, substitute the result for value.",value = to_current_timezone ( value )
3506,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
3507,substitute as_string for as_bytes.,as_bytes = as_string
3508,from django.core import signals into default name space.,from django . core import signals
3509,"if KeyError exception is caught,",except KeyError :
3510,return nodes.,return nodes
3511,cookiedict is an empty dictionary.,cookiedict = { }
3512,"raise an TemplateSyntaxError exception with an argument string ""'for' statements should have at least four words: %s"",","raise TemplateSyntaxError ( ""'for' statements should have at least four"" "" words: %s"" % token . contents )"
3513,decimal_digits is a string '0123456789'.,decimal_digits = '0123456789'
3514,raise an ValueError exception with an argument string 'Unable to add filter %r: %s' formated with f and e.,"raise ValueError ( 'Unable to add filter %r: %s' % ( f , e ) )"
3515,"define the method __init__ with 4 arguments: self, permitted_methods, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , permitted_methods , * args , ** kwargs ) :"
3516,"property decorator,",@ property
3517,"if self.data.hour is greater than integer 11,",if self . data . hour > 11 :
3518,yield node.,yield node
3519,double the chunk size.,chunk_size *= 2
3520,increment i by integer 1.,i += 1
3521,derive the class DictWrapper from the dict base class.,class DictWrapper ( dict ) :
3522,return nothing.,return
3523,"if an exception occurred,",except :
3524,"if not,",else :
3525,define the method id_for_label with 2 arguments: self and id.,"def id_for_label ( self , id_ ) :"
3526,derive the class Group from list base class.,class Group ( list ) :
3527,"join usage elements in a string separated by newline characters, return it.",return '\n' . join ( usage )
3528,"return a class instance FilterNode, called with an arguments filter_expr and nodelist.","return FilterNode ( filter_expr , nodelist )"
3529,"call the get_bytes_from_wsgi function with environ, string 'SCRIPT_URL' and empty strings as arguments, substitute the result for script_url.","script_url = get_bytes_from_wsgi ( environ , 'SCRIPT_URL' , '' )"
3530,substitute the result for migration.ancestry. append migration to merge_migrations.,merge_migrations . append ( migration )
3531,append key to self.keyOrder.,self . keyOrder . append ( key )
3532,"_func_globals is a string ""func_globals"".","_func_globals = ""func_globals"""
3533,substitute value for value under the field.name key of the self._current dictionary.,self . _current [ field . name ] = value
3534,"put elements of ignore_patterns into a set, substitute the length of it for self.ignore_patterns.",self . ignore_patterns = list ( set ( ignore_patterns ) )
3535,"append string "".moves.urllib_request"" to __name__, use it as an key to get the value from the sys.modules dictionary, substitute it for request.","request = sys . modules [ __name__ + "".moves.urllib_request"" ]"
3536,errors is an empty list.,errors = [ ]
3537,substitute cache for value under the alias key of self._caches.caches dictionary.,self . _caches . caches [ alias ] = cache
3538,"call the method serializers.serialize with 6 arguments: format, result of the function get_objects, indent set to indent,","serializers . serialize ( format , get_objects ( ) , indent = indent , use_natural_foreign_keys = use_natural_foreign_keys , use_natural_primary_keys = use_natural_primary_keys , stream = stream or self . stdout )"
3539,write 79 '-' characters into self.stream file stream.,self . stream . write ( '-' * 79 )
3540,define the method __call__ with arguments self and value.,"def __call__ ( self , value ) :"
3541,substitute sixth element of bits for var_name.,var_name = bits [ 5 ]
3542,"for every check in checks,",for check in checks :
3543,"replace '%s' in string ""Creating %s\n"" with new_path, write it to the self.stdout stream.","self . stdout . write ( ""Creating %s\n"" % new_path )"
3544,"get the value under the BLOCK_CONTEXT_KEY key of the context.render_context dictionary, substitute it for block_context.",block_context = context . render_context [ BLOCK_CONTEXT_KEY ]
3545,derive the class HTMLParser from the base class HTMLParser located in the module _html_parser.,class HTMLParser ( _html_parser . HTMLParser ) :
3546,"if not,",else :
3547,"convert num to an integer, substitute the result for length.",length = int ( num )
3548,substitute length of text for end.,end = len ( text )
3549,"call the method self.build_attrs with an argument id set to field modulus id_, substitute the result for local_attrs.",local_attrs = self . build_attrs ( id = field % id_ )
3550,"convert header to lowercase, use it to as a key to get the value of the self._headers dictionary,","return self . _headers . get ( header . lower ( ) , ( None , alternate ) ) [ 1 ]"
3551,"call the method keyword.iskeyword with an argument new_name, if it evaluates to true,",if keyword . iskeyword ( new_name ) :
3552,decorator function wraps with an argument func.,@ wraps ( func )
3553,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
3554,"call the method self.fields.items, for every name and field in result,","for name , field in self . fields . items ( ) :"
3555,"floor the division of delta by integer 100 and delta by integer 400, sum the two results, multiply integer 6 by it, substitute the result for off.",off = 6 * ( delta // 100 + delta // 400 )
3556,"and self.absolute_max, return the result. if not,",else :
3557,"concatenate string '%0', width and string ""d. %s"", format the previous string with i incremented by 1,","lines [ i ] = ( ""%0"" + width + ""d. %s"" ) % ( i + 1 , escape ( line ) )"
3558,from django.core.management.base import AppCommand into default name space.,from django . core . management . base import AppCommand
3559,define the function make_middleware_decorator with an argument middleware_class.,def make_middleware_decorator ( middleware_class ) :
3560,"default set to boolean False and help as a string ""Create an empty migration."". call the method parser.add_argument with 5 arguments: string '--noinput', action as a string 'store_false',","parser . add_argument ( '--noinput' , action = 'store_false' , dest = 'interactive' , default = True , help = 'Tells Django to NOT prompt the user for input of any kind.' )"
3561,return decorator.,return decorator
3562,"call the method form.is_valid, perform bitwise and with the result and forms_valid as operands, substitute the result for forms_valid.",forms_valid &= form . is_valid ( )
3563,update attrs dictionary with extra_attrs entry.,attrs . update ( extra_attrs )
3564,self.children is an list with 2 elements: obj and data.,"self . children = [ obj , data ]"
3565,return the first element of bits and an empty string.,"return bits [ 0 ] , ''"
3566,"if valu is an instance of list type,","if isinstance ( value , list ) :"
3567,input_type is a string 'file'.,input_type = 'file'
3568,increment self.pos by integer 1.,self . pos += 1
3569,substitute initial_forms for total_forms.,total_forms = initial_forms
3570,"call the function get_language, substitute the result for language_code.",language_code = get_language ( )
3571,define the function bound_func with 2 arguments: unpacked list args2 and unpacked dictionary kwargs2.,"def bound_func ( * args2 , ** kwargs2 ) :"
3572,"if VariableDoesNotExist exception is caught,",except VariableDoesNotExist :
3573,and return value of the function copy.deepcopy called with 2 arguments: value and memo. return result.,return result
3574,define the method end_object with arguments self and obj.,"def end_object ( self , obj ) :"
3575,define the function fix with an argument match.,def fix ( match ) :
3576,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
3577,"if not,",else :
3578,"if self.selected_fields is None or field.attname is contained in self.selected_fields,",if self . selected_fields is None or field . attname in self . selected_fields :
3579,return None.,return None
3580,substitute self._parser for parser.,parser = self . _parser
3581,define the function get_current_timezone.,def get_current_timezone ( ) :
3582,substitute model._base_manager for objects.,objects = model . _base_manager
3583,define the method open with argument self.,def open ( self ) :
3584,"if value under the 'indend' key of the options dictionary exists and is not None,","if self . options . get ( 'indent' , None ) is not None :"
3585,"if line ends with a new line character substitute width incremented by integer 1 for max_width, if not substitute width for max_width.","max_width = min ( ( line . endswith ( '\n' ) and width + 1 or width ) , width )"
3586,define the function urlencode with 2 arguments query and doseq set to integer 0.,"def urlencode ( query , doseq = 0 ) :"
3587,"and a list containing a string '-h', call the method self.main_help_text, append new line to it, write it to sys.stdout.",sys . stdout . write ( self . main_help_text ( ) + '\n' )
3588,substitute i-th element of self.initial for value under the 'initial' key of the defaults dictionary.,defaults [ 'initial' ] = self . initial [ i ]
3589,return an empty dictionary.,return { }
3590,"define the function get_declared_fields with 3 arguments: bases, attrs and with_base_fields set to boolean True.","def get_declared_fields ( bases , attrs , with_base_fields = True ) :"
3591,"strip whitespaces from both ends of unicode_value, substitute the result for value.",value = unicode_value . strip ( )
3592,define the method __iter__ with an argument self.,def __iter__ ( self ) :
3593,"call the method self.has_leading_dir with an argument namelist, substitute the result for leading.",leading = self . has_leading_dir ( namelist )
3594,"define the function ngettext with 3 arguments: singular, plural and number.","def ngettext ( singular , plural , number ) :"
3595,call the method self.reader_enters.,self . reader_enters ( )
3596,define the method autocomplete with an argument self.,def autocomplete ( self ) :
3597,"define the method __init__ with argument self, server and params.","def __init__ ( self , server , params ) :"
3598,"if data is true, substitute it for self.data, otherwise self.data is an empty dictionary.",self . data = data or { }
3599,"otherwise, value under the 'decimal_places' key of the field_params is integer 5. if not",else :
3600,kwargs is an empty dictionary.,kwargs = { }
3601,"_func_closure is a string ""func_closure"".","_func_closure = ""func_closure"""
3602,define the function unescape_string_literal with an argument s.,def unescape_string_literal ( s ) :
3603,"get attribute 'caches' from the self._caches if exists, otherwise get an empty dictionary, call the values method on the return value, return it.","return getattr ( self . _caches , 'caches' , { } ) . values ( )"
3604,define the function mark_safe with an argument s.,def mark_safe ( s ) :
3605,"if self.verbosity is greater or equal to 3,",if self . verbosity >= 3 :
3606,substitute value under the self.token_type key of the TOKEN_MAPPING dictionary for token_name.,token_name = TOKEN_MAPPING [ self . token_type ]
3607,apps is an empty dictionary.,apps = { }
3608,"for every iso_input in the result, if iso_input is not contained in val,",if iso_input not in val :
3609,"try,",try :
3610,"if value is true,",if value :
3611,"define the method __init__ with 4 arguments: self, target, expression and var_name.","def __init__ ( self , target , expression , var_name ) :"
3612,do nothing.,pass
3613,"if o.microsecond is true,",if o . microsecond :
3614,from django.test.utils import get_runner into default namespace.,from django . test . utils import get_runner
3615,define the method __init__ with an argument self.,def __init__ ( self ) :
3616,from lib2to3.pytree import Leaf and Node into default name space.,"from lib2to3 . pytree import Leaf , Node"
3617,derive the class date from the real_date base class.,class date ( real_date ) :
3618,"define the method load_template_source with 3 arguments: self, template_name, template_dirs set to None.","def load_template_source ( self , template_name , template_dirs = None ) :"
3619,"call the method self.setlistdefault with an argument key, extend the result with value_list.",self . setlistdefault ( key ) . extend ( value_list )
3620,define the method write_migration_files with arguments self and changes.,"def write_migration_files ( self , changes ) :"
3621,"if value.tzinfo is not None and call to the method value.tzinfo.utcoffset called with an argument value evaluates to not None,",return value . tzinfo is not None and value . tzinfo . utcoffset ( value ) is not None
3622,call the function write_pot_file with 2 arguments: potfile and msgs.,"write_pot_file ( potfile , msgs )"
3623,"if limit is None or length of x is lesser than or equal to limit,",if limit is None or len ( x ) <= limit :
3624,call the method self.xml.endElement with an argument string 'field',"self . xml . endElement ( ""field"" )"
3625,define the method flush with an argument self.,def flush ( self ) :
3626,"try,",try :
3627,call the self.seek method with argument integer 0.,self . seek ( 0 )
3628,"return an instance of SafeText, created with an argument data.",return SafeText ( data )
3629,"if '.' is not contained in var and 'e' is not contained in var converted into lowercase,",if '.' not in var and 'e' not in var . lower ( ) :
3630,"and lambda function returning x for x, substitute the firs element of resulting list for style_func. call the function style_func with an argument msg, use the result as an argument for the call to the function force_str,",self . _out . write ( force_str ( style_func ( msg ) ) )
3631,"for every form in self call the form.as_p method, join the results in a string, separated by an empty string.",forms = ' ' . join ( form . as_p ( ) for form in self )
3632,"if not,",else :
3633,"call the function new_method_proxy with an argument hash, substitute the result for __hash__.",__hash__ = new_method_proxy ( hash )
3634,"if location is None,",if location is None :
3635,"join elements of output in a string, separated by newlines, return it.",return '\n' . join ( output )
3636,"call the function smart_text with argument key_value, use the result as an argument for the call to the self.xml.characters method.",self . xml . characters ( smart_text ( key_value ) )
3637,substitute serialize_headers for __str__.,__str__ = serialize_headers
3638,"call the method self.__class__ with 3 arguments: an empty string, mutable is boolean True, encoding is self.encoding, substitute the result for result.","result = self . __class__ ( '' , mutable = True , encoding = self . encoding )"
3639,return a list containing first element of source and a list containing params.,"return [ source [ 0 ] ] , [ params ]"
3640,"try,",try :
3641,"try,",try :
3642,define method add_arguments with self class instance and parser as arguments.,"def add_arguments ( self , parser ) :"
3643,"otherwise if value under the 'CONTENT_TYPE' key of hte self.META dictionary starts with 'application/x-www-form-urlencoded',","elif self . META . get ( 'CONTENT_TYPE' , '' ) . startswith ( 'application/x-www-form-urlencoded' ) :"
3644,"default set to False, help containing string 'Show a list of all known migrations and which are applied' as arguments. define the method handle with self instance of a class, list args, dictionary options as arguments.","def handle ( self , * args , ** options ) :"
3645,call the method self._mark_post_parse_error.,self . _mark_post_parse_error ( )
3646,"call the function warnings.warn with 3 arguments: string ""`%s.%s` method should be renamed `%s`."",","warnings . warn ( ""`%s.%s` method should be renamed `%s`."" % ( class_name , old_method_name , new_method_name ) , deprecation_warning , 2 )"
3647,define the method send with arguments self and fail_silently set to boolean False.,"def send ( self , fail_silently = False ) :"
3648,from __future__ import absolute_ into default name space.,from __future__ import absolute_import
3649,derive the class Debug from base class CheckMessage.,class Debug ( CheckMessage ) :
3650,"call the function formatdate with an argument epoch_seconds, substitute the result for rfcdate.",rfcdate = formatdate ( epoch_seconds )
3651,"call the function escape with an argument lead, substitute the result for lead, call the function escape with an argument trail,","lead , trail = escape ( lead ) , escape ( trail )"
3652,"call the method mimetype.split with arguments: character '/' and integer 1, substitute the result for basetype and subtype, respectively.","basetype , subtype = mimetype . split ( '/' , 1 )"
3653,return an integer 0.,return 0
3654,return an empty string.,return ''
3655,"substitute it for data. if data is contained in seen_data,",if data in seen_data :
3656,"if loader is an instance of six.string_types,","if isinstance ( loader , six . string_types ) :"
3657,"call the method self.error_class with an argument list with a element: result of the method self.get_form_error,",form . _errors [ NON_FIELD_ERRORS ] = self . error_class ( [ self . get_form_error ( ) ] )
3658,"if initial_forms is grater than self.max_num is grater or equal to integer 0,",if initial_forms > self . max_num >= 0 :
3659,decorator function register.filter with 2 arguments is_safe set to boolean True and needs_autoescape set to boolean True.,"@ register . filter ( is_safe = True , needs_autoescape = True )"
3660,raise an ValueError with an argument string 'empty_label list/tuple must have 3 elements.'.,raise ValueError ( 'empty_label list/tuple must have 3 elements.' )
3661,"call the function force_str with 3 arguments: string """", with '%s' replaced with first 25 elements of self.s string,","return force_str ( """" % self . s [ : 25 ] , 'ascii' , errors = 'replace' )"
3662,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3663,"if not,",else :
3664,do nothing.,pass
3665,"call the function escape with an argument value, return the result.",return escape ( value )
3666,"evaluate the function getdefaultlocale from the module locale, if second element of return value exists assign it to encoding,",encoding = locale . getdefaultlocale ( ) [ 1 ] or 'ascii'
3667,call the method self.write_items with an argument handler.,self . write_items ( handler )
3668,"call the __init__ method from the base class of the HttpResponseNotModified class, called with arguments: unpacked list args,","super ( HttpResponseNotModified , self ) . __init__ ( * args , ** kwargs )"
3669,derive class _LazyModule from the types.ModuleType base class.,class _LazyModule ( types . ModuleType ) :
3670,from django.conf import settings into default name space.,from django . conf import settings
3671,derive the class SyndicationFeed from the object base class.,class SyndicationFeed ( object ) :
3672,"otherwise if self.object is an instance of the models.base.ModelBase class,","elif isinstance ( self . obj , models . base . ModelBase ) :"
3673,"open the file self.name in mode or self.mode mode, whichever exists, assign the file handler to self.file.","self . file = open ( self . name , mode or self . mode )"
3674,"sum day_of_year, result of the subtraction of weekday from integer 7 and subtraction of integer 1 from jan1_weekday.",j = day_of_year + ( 7 - weekday ) + ( jan1_weekday - 1 )
3675,substitute decimals for digits.,digits = decimals
3676,"convert value into an floating point number, substitute it for value.",value = float ( value )
3677,import dummy_threading as threading.,import dummy_threading as threading
3678,"if settings.TEMPLATE_DEBUG is true,",if settings . TEMPLATE_DEBUG :
3679,from django.core.management.sql import sql_flush into default name space.,from django . core . management . sql import sql_flush
3680,define the method __iter__ with an argument self.,def __iter__ ( self ) :
3681,"call the function template_dir.decode with an argument fs_encoding, substitute the result for template_dir.",template_dir = template_dir . decode ( fs_encoding )
3682,"_CacheInfo is an instance of namedtuple class created with 2 arguments: string ""CacheInfo"" and a list with 4 elements: string 'hits',","_CacheInfo = namedtuple ( ""CacheInfo"" , [ ""hits"" , ""misses"" , ""maxsize"" , ""currsize"" ] )"
3683,from django.utils.six.moves import _thread as thread into default name space.,from django . utils . six . moves import _thread as thread
3684,"if StopIteration exception,",except StopIteration :
3685,"decorator stringfilter,",@ stringfilter
3686,"if StandardError, renamed to e, exception is caught,",except StandardError as e :
3687,"if old_field_name is true,",if old_field_name :
3688,derive CacheEntry class from the object base class.,class CacheEntry ( object ) :
3689,output is an empty list.,output = [ ]
3690,define the method nud with 2 arguments self and parser.,"def nud ( self , parser ) :"
3691,"return an instance of ForNode class, created with 5 arguments: loopvars, sequence, is_reversed, nodelist_loop and nodelist_empty.","return ForNode ( loopvars , sequence , is_reversed , nodelist_loop , nodelist_empty )"
3692,"if unhandled_params is true,",if unhandled_params :
3693,call the method clean with an argument value from the base class of the class ComboField.,"super ( ComboField , self ) . clean ( value )"
3694,"define the function default_key_func with 3 arguments, key, key_prefix and version.","def default_key_func ( key , key_prefix , version ) :"
3695,"and replace %r with self.obj, return the result. define function python_2_unicode_compatible, with klass as an argument.",def python_2_unicode_compatible ( klass ) :
3696,if features.needs_datetime_string_cast field of object under the db key of connections dictionary is true and current_expires is not an instance of datetime object.,"if ( connections [ db ] . features . needs_datetime_string_cast and not isinstance ( current_expires , datetime ) ) :"
3697,return integer 0.,return 0
3698,from django.utils import six into default name space.,from django . utils import six
3699,"substitute string ""Enter at least one %s."", with '%s' replaced by label, for missing_args_message.","missing_args_message = ""Enter at least one %s."" % label"
3700,"no_settings_commands is a list containing entries: 'help', 'version', '--help', '--version', '-h', 'compilemessages', 'makemessages',","no_settings_commands = [ 'help' , 'version' , '--help' , '--version' , '-h' , 'compilemessages' , 'makemessages' , 'startapp' , 'startproject' , ]"
3701,skip this iteration of he smallest enclosing loop.,continue
3702,evaluate self.clear method and return the result.,return self . clear ( )
3703,"call the method self.error with 2 arguments: token and string ""Empty block tag"", return the result.","raise self . error ( token , ""Empty block tag"" )"
3704,define the function find_template_loader with an argument loader.,def find_template_loader ( loader ) :
3705,"otherwise if token.token_type equals integer 2,",elif token . token_type == 2 :
3706,"if initial equals a string 'False',",if initial == 'False' :
3707,"break the loop execution,",break
3708,"call the method clean with an argument value from the base class of the class TypedMultipleChoiceField, substitute the result for value.","value = super ( TypedMultipleChoiceField , self ) . clean ( value )"
3709,"call the function method with 3 arguments: self, unpacked list args and unpacked dictionary kwargs, substitute the result for data.","data = method ( self , * args , ** kwargs )"
3710,substitute func.__doc__ for compile_func.__doc__.,compile_func . __doc__ = func . __doc__
3711,"with unpacked list value as an argument, return the pk field of the result. if not,",else :
3712,append potfile to potfiles.,potfiles . append ( potfile )
3713,"if self._wrapped is empty,",if self . _wrapped is empty :
3714,substitute text for self.text.,self . text = text
3715,append options to output.,output . append ( options )
3716,"attrs is an dictionary with 9 initial entries: form for 'form', extra for 'extra', can_order for 'can_order',","attrs = { 'form' : form , 'extra' : extra , 'can_order' : can_order , 'can_delete' : can_delete , 'min_num' : min_num , 'max_num' : max_num , 'absolute_max' : absolute_max , 'validate_min' : validate_min , 'validate_max' : validate_max }"
3717,"call the method urlresolvers.RegexURLResolver with raw literal string '^/' and urlconf as the arguments, substitute the result for resolver.","resolver = urlresolvers . RegexURLResolver ( r'^/' , urlconf )"
3718,"form the tuple from the attrname converted to lowercase and attrvalue, append it to the end of attrs.","attrs . append ( ( attrname . lower ( ) , attrvalue ) )"
3719,derive class Command from CheckCommand base class.,class Command ( CheckCommand ) :
3720,"for root, dirs and files in sorted list of the directory tree starting from the directory self.path,","for root , dirs , files in sorted ( os . walk ( self . path ) ) :"
3721,"if renderer is true,",if renderer :
3722,"value under the self._pk_field.name key of form.fields dictionary is an instance of ModelChoiceField class,","form . fields [ self . _pk_field . name ] = ModelChoiceField ( qs , initial = pk_value , required = False , widget = widget )"
3723,define the method is_hidden with an argument self.,def is_hidden ( self ) :
3724,"if fname file path exists,",if os . path . exists ( fname ) :
3725,"call the method filename.encode with an argument string 'utf-8', substitute the result for filename.",filename = filename . encode ( 'utf-8' )
3726,derive the class SerializerDoesNotExist from the KeyError base class.,class SerializerDoesNotExist ( KeyError ) :
3727,"for every value in data call the function force_text with an argument value, add the results into a set, substitute the resulting set for data_set.",data_set = set ( force_text ( value ) for value in data )
3728,utf8_charset.body_encoding is None.,utf8_charset . body_encoding = None
3729,self._css is an empty dictionary.,self . _css = { }
3730,"dest as a string 'all' default as boolean False and help as a string 'Updates the message files for all existing locales.'. call the method parser.add_argument with 5 arguments: string '--extension', string '-e', dest set to string 'extensions',","parser . add_argument ( '--extension' , '-e' , dest = 'extensions' , help = 'The file extension(s) to examine (default: ""html,txt"", or ""js"" ' 'if the domain is ""djangojs""). Separate multiple extensions with ' 'commas, or use -e multiple times.' , action = 'append' )"
3731,"if not field_value is None. if f.blank is false and form_field.required is false and field_value is contained in form_field.empty_values,",if not f . blank and not form_field . required and field_value in form_field . empty_values :
3732,self._container is a list containing element value.,self . _container = [ value ]
3733,"replace '%s' in string ""'%s' already exists"" with top_dir, substitute it for message.","message = ""'%s' already exists"" % top_dir"
3734,insert mw_instance.process_template_response at the beginning of self._template_response_middleware.,"self . _template_response_middleware . insert ( 0 , mw_instance . process_template_response )"
3735,delete the value under the 'Content-Transfer-Encoding' key of self dictionary.,del self [ 'Content-Transfer-Encoding' ]
3736,"call method __init__ from the base class of the class PyLibMCCache with arguments: server, params,","super ( PyLibMCCache , self ) . __init__ ( server , params , library = pylibmc , value_not_found_exception = pylibmc . NotFound )"
3737,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
3738,define the method getvalue with an argument self.,def getvalue ( self ) :
3739,"if first two elements of sys.version_info equal to integers 2 ant 7, respectively,","if sys . version_info [ : 2 ] == ( 2 , 7 ) :"
3740,"if e.errno equals errno.EEXIST,",if e . errno == errno . EEXIST :
3741,"substitute '%s' in a string "" - %s\n"" with return value of the operation.describe method, write the result to self.stdout.","self . stdout . write ( "" - %s\n"" % operation . describe ( ) )"
3742,position the file self.file pointer at the end.,"self . file . seek ( 0 , os . SEEK_END )"
3743,"if OSError exception is caught,",except OSError :
3744,"if sys.platform starts with string 'java',",if sys . platform . startswith ( 'java' ) :
3745,"if format is not contained in _serializers,",if format not in _serializers :
3746,"call the import_string function with an argument settings.SIGNING_BACKEND, substitute the result for Signer.",Signer = import_string ( settings . SIGNING_BACKEND )
3747,import readline.,import readline
3748,"default_error_messages is an dictionary with 2 entries: return value of the function _ called with an string 'Enter a valid date.',","default_error_messages = { 'invalid_date' : _ ( 'Enter a valid date.' ) , 'invalid_time' : _ ( 'Enter a valid time.' ) , }"
3749,"if remaining is not greater than 0, assert an error with the message string 'remaining bytes to read should never go negative'.","assert remaining > 0 , 'remaining bytes to read should never go negative'"
3750,"call the function import_string with an argument path, substitute the result for func.",func = import_string ( path )
3751,headerlist is an empty list.,headerlist = [ ]
3752,call the method resolved_path.append with an argument ns.,resolved_path . append ( ns )
3753,derive the class EmailInput from the TextInput base class.,class EmailInput ( TextInput ) :
3754,"call the function warnings.warn with an argument string ""A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext."".","warnings . warn ( ""A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext."" )"
3755,"call the method serializers.get_public_serializer_formats, substitute the result for self.serialization_formats.",self . serialization_formats = serializers . get_public_serializer_formats ( )
3756,call the method self.load_label with an argument fixture_label.,self . load_label ( fixture_label )
3757,"if not,",else :
3758,break from the loop execution.,break
3759,define the method reader with an argument self.,def reader ( self ) :
3760,"if self does not have 'bad_cookies' attribute,","if not hasattr ( self , 'bad_cookies' ) :"
3761,"otherwis if char is contained in string 'Yy',",elif char in 'Yy' :
3762,derive the class SafeText from six.text_type and SafeData base classes.,"class SafeText ( six . text_type , SafeData ) :"
3763,decorator register with argument Tags.compatibility.,@ register ( Tags . compatibility )
3764,derive the class SplitDateTimeWidget from the MultiWidget base class.,class SplitDateTimeWidget ( MultiWidget ) :
3765,substitute str for string_types.,"string_types = str ,"
3766,"get value under the 'level' key of the config dictioanry, if it exists substitute it for level, if not level is None.","level = config . get ( 'level' , None )"
3767,"define the method _construct_form with 3 arguments: self, i and unpacked dictionary kwargs.","def _construct_form ( self , i , ** kwargs ) :"
3768,substitute connection.introspection.table_name_converter for converter.,converter = connection . introspection . table_name_converter
3769,"if content_disposition is true,",if content_disposition :
3770,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
3771,"call the method template.render with an argument context, substitute it for content.",content = template . render ( context )
3772,"once split at the '.' value under the 'ENGINE' key of the connection.settings_dict dictionary, substitute last element of the result for backend_name.",backend_name = connection . settings_dict [ 'ENGINE' ] . split ( '.' ) [ - 1 ]
3773,"join app_dir and string 'sql' into a file path, use the result as an argument for the call to the function os.path.normpath,","app_dirs . append ( os . path . normpath ( os . path . join ( app_dir , 'sql' ) ) )"
3774,increment nesting by one.,nesting += 1
3775,"if prefix doesnt end with character '/',",if not prefix . endswith ( '/' ) :
3776,"property decorator,",@ property
3777,"if ImportError exception is caught,",except ImportError :
3778,define the function constant_time_compare with 2 arguments: val1 and val2.,"def constant_time_compare ( val1 , val2 ) :"
3779,return x.,return x
3780,intrans is boolean False.,intrans = False
3781,return boolean True.,return True
3782,"call the method self.resolve with an argument c, substitute the result for c.",c = self . resolve ( c )
3783,"call the method self._format_value with an argument value, use the result as an argument for the call to the function force_text,",final_attrs [ 'value' ] = force_text ( self . _format_value ( value ) )
3784,substitute settings.TEMPLATE_STRING_IF_INVALID for current.,current = settings . TEMPLATE_STRING_IF_INVALID
3785,derive the class URLNode from Node base class.,class URLNode ( Node ) :
3786,"if any exception is caught,",except :
3787,substitute integer 0 for cache_timeout.,cache_timeout = 0
3788,call the method self._archive.close.,self . _archive . close ( )
3789,call the function walk_to_end with 2 arguments: ch and pattern_iter.,"walk_to_end ( ch , pattern_iter )"
3790,yield a tuple with 2 elements: tok.name and toktext.,"yield ( tok . name , toktext )"
3791,"return an instance of FirstOfNode class, created with an argument, result of the method parser.compile_filter called with bit,",return FirstOfNode ( [ parser . compile_filter ( bit ) for bit in bits ] )
3792,"if value is true,",if not value :
3793,"call the method formats.get_format_lazy with an argument string 'TIME_INPUT_FORMATS', substitute the result for input_formats.",input_formats = formats . get_format_lazy ( 'TIME_INPUT_FORMATS' )
3794,"if settings.USE_L10N is true,",if settings . USE_L10N :
3795,return an dictionary containing 1 entry: return value of the function _get_val for 'csrf_token'.,return { 'csrf_token' : _get_val ( ) }
3796,exit program with code integer 0.,sys . exit ( 0 )
3797,"if other is an instance of Promise,","if isinstance ( other , Promise ) :"
3798,define the method _initialize_handlers with an argument self.,def _initialize_handlers ( self ) :
3799,"call the self._lock.writer method, with the result perform the following,",with self . _lock . writer ( ) :
3800,"call the method time.mktime with an argument tt, substitute the result for stamp.",stamp = time . mktime ( tt )
3801,define the function strip_tags with an argument value.,def strip_tags ( value ) :
3802,define the method total_error_count with an argument self.,def total_error_count ( self ) :
3803,"if os.path has an attribute 'samefile',","if hasattr ( os . path , 'samefile' ) :"
3804,append tempdir to self.self.paths_to_remove.,self . paths_to_remove . append ( tempdir )
3805,from django.forms.utils import ErrorList into default name space.,from django . forms . utils import ErrorList
3806,"define the initialization function with self class instance, digits and sign defaulting to '-' as arguments.","def __init__ ( self , digits , sign = '-' ) :"
3807,call the method tempfile.NamedTemporaryFile with argument suffix set to string '.upload'.,file = tempfile . NamedTemporaryFile ( suffix = '.upload' )
3808,define the method namespace_dict with an argument self.,def namespace_dict ( self ) :
3809,derive the class HttpResponseServerError from the HttpResponse base class.,class HttpResponseServerError ( HttpResponse ) :
3810,"if length of bits is smaller than integer 2 or second last element of bits is not equal to 'as',",if len ( bits ) < 2 or bits [ - 2 ] != 'as' :
3811,"use the result as an argument for the call to the function datetime.fromtimestamp, return the result. define the function get_storage_class with argument import_path=None defaulting to None.",def get_storage_class ( import_path = None ) :
3812,"if ValueError exception is caught,",except ValueError :
3813,substitute CacheEntry for self.cache_model_class.,self . cache_model_class = CacheEntry
3814,substitute url for value under the self.asvar key of context dictionary.,context [ self . asvar ] = url
3815,"if TemplateSyntaxError, renamed to e, exception is caught,",except TemplateSyntaxError as e :
3816,define the method is_multipart with an argument self.,def is_multipart ( self ) :
3817,call the method self._assert_mutable.,self . _assert_mutable ( )
3818,"call the method to_python with an argument data from the base class of the class URLField, substitute the result for value.","value = super ( URLField , self ) . to_python ( value )"
3819,"_assertRaisesRegex is a strnig ""assertRaisesRegex"".","_assertRaisesRegex = ""assertRaisesRegex"""
3820,"if '.' is contained in exclude,",if '.' in exclude :
3821,where '%s' is replaced with taglib_module. templatetags_modules is an empty list.,templatetags_modules = [ ]
3822,"call the smart_text function with 3 arguments: field_value, value under the 'encoding' key of the options dictionary or,","field_value = smart_text ( field_value , options . get ( ""encoding"" , settings . DEFAULT_CHARSET ) , strings_only = True )"
3823,"try,",try :
3824,increment length of template_dir by one and substitute it for prefix_length.,prefix_length = len ( template_dir ) + 1
3825,"if app_labels is true,",if app_labels :
3826,"separated by newline, use it as an argument for the call to the function mark_safe, return the result. define the method as_p with an argument self.",def as_p ( self ) :
3827,"if answer equals a string 'y',","if answer != ""y"" :"
3828,"call the method rlcompleter.Completer with an argument imported_objects, use the complete field of the result as an argument for the call to the method readline.set_completer.",readline . set_completer ( rlcompleter . Completer ( imported_objects ) . complete )
3829,call the method mail.outbox.extend with messages.,mail . outbox . extend ( messages )
3830,"substitute third and first element of bits for key and value, respectively.","key , value = bits [ 2 ] , bits [ 0 ]"
3831,"call the method django.get_version append new line to it, write it to sys.stdout.",sys . stdout . write ( django . get_version ( ) + '\n' )
3832,"subtract integer 12 from self.data.hour, return the result.",return self . data . hour - 12
3833,"called with an argument result of the method self.latest_post_date. if value under the 'author_name' key of the self.feed dictionary is not None,",if self . feed [ 'author_name' ] is not None :
3834,"call the function _get_model with an argument value under the 'model' key of the d dictionary, substitute the result for Model.","Model = _get_model ( d [ ""model"" ] )"
3835,return boolean True.,return True
3836,from io import BytesIO into default name space.,from io import BytesIO
3837,define the function decorator_from_middleware_with_args with an argument middleware_class.,def decorator_from_middleware_with_args ( middleware_class ) :
3838,"define the method add with 5 arguments, self class instance, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def add ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
3839,"call the function io.open with 3 arguments: potfile, string 'w' and encoding set to string 'utf-8' as arguments,","with io . open ( potfile , 'w' , encoding = 'utf-8' ) as fp :"
3840,"call the method self.make_key with key and version set to version as arguments, substitute it for key.","key = self . make_key ( key , version = version )"
3841,do nothing.,pass
3842,"while '<' is contained in value and '>' is contained in value,",while '<' in value and '>' in value :
3843,append func to processors.,processors . append ( func )
3844,"truncate last 9 elements of filename and append it string "".py"".","filename = filename [ : - 9 ] + "".py"""
3845,do nothing.,pass
3846,"get value under the 'database' key of the options dictionary, use it as a key to get the value from the connections dictionary,",connection = connections [ options [ 'database' ] ]
3847,substitute max_width for self.max_width.,self . max_width = max_width
3848,call the method _trans.pgettext with 2 arguments context and message.,"return _trans . pgettext ( context , message )"
3849,"call the method form._get_validation_exclusions, substitute the result for exclude.",exclude = form . _get_validation_exclusions ( )
3850,derive the class DateField from the base class BaseTemporalField class.,class DateField ( BaseTemporalField ) :
3851,return default.,return default
3852,from django.core.servers.fastcgi import runfastcgi into default namespace.,from django . core . servers . fastcgi import runfastcgi
3853,"raise an TemplateSyntaxError exception with an argument string ""%r takes two arguments"",","raise TemplateSyntaxError ( ""%r takes two arguments"" % bits [ 0 ] )"
3854,non_capturing_groups is an empty list.,non_capturing_groups = [ ]
3855,import StringIO.,import StringIO
3856,"get the value under the 'verbosity' key of the options dictionary, substitute it for self.verbosity.",self . verbosity = options . get ( 'verbosity' )
3857,"call the method self.configure_custom with an argument config, substitute the result for result.",result = self . configure_custom ( config )
3858,define the function strftime with 2 arguments dt and fmt.,"def strftime ( dt , fmt ) :"
3859,"if commit is true,",if not commit :
3860,if http_cookies.CookieError exception is raised.,except http_cookies . CookieError :
3861,"call the method self.importer with an argument used, substitute the result for found.",found = self . importer ( used )
3862,"call the self.incr method with key, negative delta and version set to version as arguments.","return self . incr ( key , - delta , version = version )"
3863,"for every field in concrete_model._meta.many_to_many,",for field in concrete_model . _meta . many_to_many :
3864,define the method __init__ with 2 arguments: self and key_to_list_mapping set to an empty tuple.,"def __init__ ( self , key_to_list_mapping = ( ) ) :"
3865,replace every occurrence of '\\' in url with '/'.,"url = url . replace ( '\\' , '/' )"
3866,__all__ is an tuple containing string 'SelectDateWidget'.,"__all__ = ( 'SelectDateWidget' , )"
3867,"defaults set to defaults, name set to function_name, takes_context set to takes_context and node_class set to InclusionNode, substitute the result for compile_func. substitute func.__doc__ for compile_func.__doc__.",compile_func . __doc__ = func . __doc__
3868,define the method resolve_context with 2 arguments: self and context.,"def resolve_context ( self , context ) :"
3869,"get the value under the 'charset' key of content_params dictionary, substitute it for self.encoding.",self . encoding = content_params [ 'charset' ]
3870,"call the function time_format with 3 arguments: value, string 'TIME_FORMAT' and use_l10n as use_l10n, return the result.","return time_format ( value , 'TIME_FORMAT' , use_l10n = use_l10n )"
3871,define the function ifnotequal with 2 arguments: parser and token.,"def ifnotequal ( parser , token ) :"
3872,"call the method self.data.isocalendar, return the first element of the result.",return self . data . isocalendar ( ) [ 0 ]
3873,define the method check_programs with an argument unpacked list programs.,def check_programs ( * programs ) :
3874,derive the class DefusedExpatParser from the _ExpatParser base class.,class DefusedExpatParser ( _ExpatParser ) :
3875,"if not,",else :
3876,"if self has an '_regex_validator' attribute and self._regex_validator is contained in self.validators,","if hasattr ( self , '_regex_validator' ) and self . _regex_validator in self . validators :"
3877,"PALETTES is a dictionary containing 3 elements, a dictionary with 18 pairs of dictionary value and string keys for NOCOLOR_PALETTE,","PALETTES = { NOCOLOR_PALETTE : { 'ERROR' : { } , 'WARNING' : { } , 'NOTICE' : { } , 'SQL_FIELD' : { } , 'SQL_COLTYPE' : { } , 'SQL_KEYWORD' : { } , 'SQL_TABLE' : { } , 'HTTP_INFO' : { } , 'HTTP_SUCCESS' : { } , 'HTTP_REDIRECT' : { } , 'HTTP_NOT_MODIFIED' : { } , 'HTTP_BAD_REQUEST' : { } , 'HTTP_NOT_FOUND' : { } , 'HTTP_SERVER_ERROR' : { } , 'MIGRATE_HEADING' : { } , 'MIGRATE_LABEL' : { } , 'MIGRATE_SUCCESS' : { } , 'MIGRATE_FAILURE' : { } , } , DARK_PALETTE : { 'ERROR' : { 'fg' : 'red' , 'opts' : ( 'bold' , ) } , 'WARNING' : { 'fg' : 'yellow' , 'opts' : ( 'bold' , ) } , 'NOTICE' : { 'fg' : 'red' } , 'SQL_FIELD' : { 'fg' : 'green' , 'opts' : ( 'bold' , ) } , 'SQL_COLTYPE' : { 'fg' : 'green' } , 'SQL_KEYWORD' : { 'fg' : 'yellow' } , 'SQL_TABLE' : { 'opts' : ( 'bold' , ) } , 'HTTP_INFO' : { 'opts' : ( 'bold' , ) } , 'HTTP_SUCCESS' : { } , 'HTTP_REDIRECT' : { 'fg' : 'green' } , 'HTTP_NOT_MODIFIED' : { 'fg' : 'cyan' } , 'HTTP_BAD_REQUEST' : { 'fg' : 'red' , 'opts' : ( 'bold' , ) } , 'HTTP_NOT_FOUND' : { 'fg' : 'yellow' } , 'HTTP_SERVER_ERROR' : { 'fg' : 'magenta' , 'opts' : ( 'bold' , ) } , 'MIGRATE_HEADING' : { 'fg' : 'cyan' , 'opts' : ( 'bold' , ) } , 'MIGRATE_LABEL' : { 'opts' : ( 'bold' , ) } , 'MIGRATE_SUCCESS' : { 'fg' : 'green' , 'opts' : ( 'bold' , ) } , 'MIGRATE_FAILURE' : { 'fg' : 'red' , 'opts' : ( 'bold' , ) } , } , LIGHT_PALETTE : { 'ERROR' : { 'fg' : 'red' , 'opts' : ( 'bold' , ) } , 'WARNING' : { 'fg' : 'yellow' , 'opts' : ( 'bold' , ) } , 'NOTICE' : { 'fg' : 'red' } , 'SQL_FIELD' : { 'fg' : 'green' , 'opts' : ( 'bold' , ) } , 'SQL_COLTYPE' : { 'fg' : 'green' } , 'SQL_KEYWORD' : { 'fg' : 'blue' } , 'SQL_TABLE' : { 'opts' : ( 'bold' , ) } , 'HTTP_INFO' : { 'opts' : ( 'bold' , ) } , 'HTTP_SUCCESS' : { } , 'HTTP_REDIRECT' : { 'fg' : 'green' , 'opts' : ( 'bold' , ) } , 'HTTP_NOT_MODIFIED' : { 'fg' : 'green' } , 'HTTP_BAD_REQUEST' : { 'fg' : 'red' , 'opts' : ( 'bold' , ) } , 'HTTP_NOT_FOUND' : { 'fg' : 'red' } , 'HTTP_SERVER_ERROR' : { 'fg' : 'magenta' , 'opts' : ( 'bold' , ) } , 'MIGRATE_HEADING' : { 'fg' : 'cyan' , 'opts' : ( 'bold' , ) } , 'MIGRATE_LABEL' : { 'opts' : ( 'bold' , ) } , 'MIGRATE_SUCCESS' : { 'fg' : 'green' , 'opts' : ( 'bold' , ) } , 'MIGRATE_FAILURE' : { 'fg' : 'red' , 'opts' : ( 'bold' , ) } , } }"
3878,return boolean True.,return True
3879,"call the force_text with an argument message, yield the result.",yield force_text ( message )
3880,return path.,return path
3881,"binary or os.O_EXCL if allow_overwrite is boolean False, use the previous as the mode to open new_file_name file, assign the file descriptor to fd. try,",try :
3882,write new line to the self.stream file stream.,"self . stream . write ( ""\n"" )"
3883,"call the function trim_url with an argument middle, substitute the result for trimmed.",trimmed = trim_url ( middle )
3884,"try,",try :
3885,extend collect list with _builtin_context_processors.,collect . extend ( _builtin_context_processors )
3886,"with it replace %r in the string ""junk characters in start tag: %r"", call the method self.error with the resulting string as an argument. if string end ends with string '/>',",if end . endswith ( '/>' ) :
3887,"default_error_messages is an dictionary with 5 initial entries: return value of the function _ called with an argument string,","default_error_messages = { 'invalid' : _ ( ""No file was submitted. Check the encoding type on the form."" ) , 'missing' : _ ( ""No file was submitted."" ) , 'empty' : _ ( ""The submitted file is empty."" ) , 'max_length' : ungettext_lazy ( 'Ensure this filename has at most %(max)d character (it has %(length)d).' , 'Ensure this filename has at most %(max)d characters (it has %(length)d).' , 'max' ) , 'contradiction' : _ ( 'Please either submit a file or check the clear checkbox, not both.' ) }"
3888,warning is a string 'ImmutableList object is immutable.'.,warning = 'ImmutableList object is immutable.'
3889,field_params is an instance of a class OrderedDict.,field_params = OrderedDict ( )
3890,"if query is an instance of MultiValueDict class,","if isinstance ( query , MultiValueDict ) :"
3891,from django.utils.encoding import python_2_unicode_compatible into default name space.,from django . utils . encoding import python_2_unicode_compatible
3892,if length of parts is greater than integer 1.,if len ( parts ) > 1 :
3893,"if size is None substitute self._remaining for remaining, if not, substitute size for remaining.",remaining = self . _remaining if size is None else size
3894,"if self.is_bound is true,",if self . is_bound :
3895,"schemes is a list containing 4 initial elements: 'http', 'https', 'ftp' and 'ftps'.","schemes = [ 'http' , 'https' , 'ftp' , 'ftps' ]"
3896,append self to context.dicts.,context . dicts . append ( self )
3897,substitute name for self.name.,self . name = name
3898,substitute all_locales for locales.,locales = all_locales
3899,substitute False for self.close_called.,self . close_called = False
3900,define the function reloader_thread.,def reloader_thread ( ) :
3901,"for every d in reversed list self.dicts,",for d in reversed ( self . dicts ) :
3902,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3903,"call the re.compile function with an argument raw string '^[-a-zA-Z0-9_]+$', substitute the result for slug_re.",slug_re = re . compile ( r'^[-a-zA-Z0-9_]+$' )
3904,"if IOError or OSError exceptions occurred,","except ( IOError , OSError ) :"
3905,"if filename ends with extensions or filename is contained in extra_files,",if filename . endswith ( extensions ) or filename in extra_files :
3906,"call the method __init__ from the base class of the class DecimalField, with 4 arguments: max_value, min_value,","super ( DecimalField , self ) . __init__ ( max_value , min_value , * args , ** kwargs )"
3907,"clean is a lambda function with arguments self and x, return value is x.","clean = lambda self , x : x"
3908,increment loaded_objects_in_fixture by one.,loaded_objects_in_fixture += 1
3909,"if lookup_view is a callable object,",if callable ( lookup_view ) :
3910,return cached.,return cached
3911,"call the method package.rindex with 3 arguments: string '.', integer 0 and dot, substitute the result for dot.","dot = package . rindex ( '.' , 0 , dot )"
3912,form_class_attrs is a dictionary with 2 entries: Meta for 'Meta' and formfield_callback for 'formfield_callback'.,"form_class_attrs = { 'Meta' : Meta , 'formfield_callback' : formfield_callback }"
3913,"get the value under the 'use_natural_keys' key of the options dictionary, substitute the result for use_natural_keys.",use_natural_keys = options . get ( 'use_natural_keys' )
3914,substitute widget for self.widget.,self . widget = widget
3915,"call the method middleware.process_response with 2 arguments: request and response, return the result.","return middleware . process_response ( request , response )"
3916,return form.,return form
3917,"try,",try :
3918,"and call to the method form.has_changed evaluates to false, skip this loop iteration,",continue
3919,return an instance of TemplateSyntaxError class with an argument msg.,return TemplateSyntaxError ( msg )
3920,"raise CommandError exception with ""More than one migration matches '%s' in app '%s'. Please be more specific."",","raise CommandError ( ""More than one migration matches '%s' in app '%s'. Please be more specific."" % ( migration_name , app_label ) )"
3921,"'and ""requires_system_checks"", which is illegal. Use only ""requires_system_checks"".', replace '%s' for self.__class__.__name__. call the method self.requires_system_checks with an argument: self.requires_system_checks if has_new_option is true,",self . requires_system_checks = ( self . requires_system_checks if has_new_option else self . requires_model_validation if has_old_option else True )
3922,"call the function constant_re.findall with an argument t.contents, substitute the result for cmatches.",cmatches = constant_re . findall ( t . contents )
3923,"otherwise, if pattern has an '_callback' attribute.","elif hasattr ( pattern , '_callback' ) :"
3924,"if not,",else :
3925,derive the class DisallowedHost from the SuspiciousOperation base class.,class DisallowedHost ( SuspiciousOperation ) :
3926,"if url ends with '/' character,",if url . endswith ( '/' ) :
3927,"try,",try :
3928,return token.,return token
3929,call the method handler.endElement with an argument string 'author'.,"handler . endElement ( ""author"" )"
3930,"raise CommandError with an argument string 'Unknown serialization format: %s', where '%s' is replaced with format.","raise CommandError ( ""Unknown serialization format: %s"" % format )"
3931,"call the method custom_sql_for_model with model, no_style() and connection as arguments, substitute the result for custom_sql.","custom_sql = custom_sql_for_model ( model , no_style ( ) , connection )"
3932,"is replaced with '\\""'. define the function same_origin with 2 arguments url1 and url2.","def same_origin ( url1 , url2 ) :"
3933,"if end is an instance of unicode,","if isinstance ( end , unicode ) :"
3934,"call the function ugettext with an argument string ""%s GB"", substitute '%s' with the result of the call to the function,","value = ugettext ( ""%s GB"" ) % filesize_number_format ( bytes / GB )"
3935,from django.core.management.base import BaseCommand into default name space.,from django . core . management . base import BaseCommand
3936,define the function _add_doc with 2 arguments: func and doc.,"def _add_doc ( func , doc ) :"
3937,append truncate_text to out.,out += truncate_text
3938,opts and unpacked dictionary kwargs. NOCOLOR_PALETTE is a string 'nocolor'.,NOCOLOR_PALETTE = 'nocolor'
3939,"sum media and w.media, substitute the result for media.",media = media + w . media
3940,db_module is a string 'django.db'.,db_module = 'django.db'
3941,"if form._meta.fields is an instance of tuple type,","if isinstance ( form . _meta . fields , tuple ) :"
3942,"try,",try :
3943,self.filters is an empty dictionary.,self . filters = { }
3944,"call to the field.to_python method, substitute the result for value. substitute value for value under the field.name key of the data dictionary.",data [ field . name ] = value
3945,"and stacklevel set to 2 as arguments. call the _create_cache with backend and dictionary kwargs as arguments, substitute the result for cache.","cache = _create_cache ( backend , ** kwargs )"
3946,substitute parent_widget for self.parent_widget.,self . parent_widget = parent_widget
3947,return boolean True.,return True
3948,"call the os.fdopen function with fd, mode and bufsize as the arguments, assign the file handle object to self.file.","self . file = os . fdopen ( fd , mode , bufsize )"
3949,"remove config dictionary entry under 'format' key, substitute it for value under 'fmt' key of config dictionary.",config [ 'fmt' ] = config . pop ( 'format' )
3950,"for every attr in _urllib_parse_moved_attributes,",for attr in _urllib_parse_moved_attributes :
3951,"call the method os.environ.copy, substitute the result for new_environ.",new_environ = os . environ . copy ( )
3952,bits is an empty list.,bits = [ ]
3953,"raise an KeyError with an argument string ""Unknown language code %s and %s."", where '%s' is replaced with lang_code,","raise KeyError ( ""Unknown language code %s and %s."" % ( lang_code , generic_lang_code ) )"
3954,return an empty dictionary.,return { }
3955,define the method _render with 2 arguments self and context.,"def _render ( self , context ) :"
3956,from django.utils import six into default name space.,from django . utils import six
3957,return d.,return d
3958,"doesn't support that type of template loading. Consider removing that line from TEMPLATE_LOADERS."", where '%r' is replaced with loader. return None.",return None
3959,"call the method parser.add_argument with 6 arguments: string '--ipv6', string '-6', action set to string 'store_true',","parser . add_argument ( '--ipv6' , '-6' , action = 'store_true' , dest = 'use_ipv6' , default = False , help = 'Tells Django to use an IPv6 address.' )"
3960,derive the class ContentFile from File base class.,class ContentFile ( File ) :
3961,return first element of the list containing elements of error.,return list ( error ) [ 0 ]
3962,sys.stdout is an instance of NullDevice class.,sys . stdout = NullDevice ( )
3963,append 2 consecutive newlines to output.,output . append ( '\n\n' )
3964,"call the smart_text function with an argument token, return the result.",return smart_text ( token )
3965,"call the function sql_indexes with app_config, self.style and connection as arguments, store the result in statements.","statements = sql_indexes ( app_config , self . style , connection )"
3966,RUN_RELOADER is boolean True.,RUN_RELOADER = True
3967,"from django.utils.html import conditional_escape, escapejs, escape, urlize as _urlize, linebreaks, strip_tags, avoid_wrapping,","from django . utils . html import ( conditional_escape , escapejs , escape , urlize as _urlize , linebreaks , strip_tags , avoid_wrapping , remove_tags )"
3968,"register.tag decorator,",@ register . tag
3969,"call the function t.render with an argument context, return the result.",return t . render ( context )
3970,declare that we use global variables cached_modules and _cached_filenames in this function.,"global _cached_modules , _cached_filenames"
3971,"call the function ugettext with an argument string ""%s TB"", substitute '%s' with the result of the call to the function,","value = ugettext ( ""%s TB"" ) % filesize_number_format ( bytes / TB )"
3972,"and app_config.label is contained in app_labels, create a tuple containing app_config.label and return value of the method router.get_migratable_models called with app_config, connection.alias and include_auto_created set to True, append the tuple to the list all_models. define the method model_installed with model as an argument.",def model_installed ( model ) :
3973,substitute options.args for args.,args = options . args
3974,"with the result, evaluate method connection.cursor, with return value as curs,",with connection . cursor ( ) as curs :
3975,"if six.PY3 is true and val1 and val2 are an instances of bytes,","if six . PY3 and isinstance ( val1 , bytes ) and isinstance ( val2 , bytes ) :"
3976,return self._urlconf_module.,return self . _urlconf_module
3977,"if exception http.Http404 as e is caught,",except http . Http404 as e :
3978,return boolean True.,return True
3979,"if self._dir file path does not exists,",if not os . path . exists ( self . _dir ) :
3980,"if call to the method os.access with arguments: filename and os.W_OK, evaluates to false,","if not os . access ( filename , os . W_OK ) :"
3981,define the method __str__ with an argument self.,def __str__ ( self ) :
3982,"evaluate the fd.isatty method, if the result is true,",if fd . isatty ( ) :
3983,substitute rhs for number_value.,number_value = rhs
3984,define the method process_default with self class instance and event as arguments.,"def process_default ( self , event ) :"
3985,"decorator stringfilter,",@ stringfilter
3986,"try,",try :
3987,"get the value under the 'verbosity' key of the options dictionary, substitute it for self.verbosity.",self . verbosity = options . get ( 'verbosity' )
3988,output is an empty list.,output = [ ]
3989,"inner is an instance of NonCapture, created with elements of result from start index to the end.",inner = NonCapture ( result [ start : ] )
3990,define the function check_for_language with an argument lang_code.,def check_for_language ( lang_code ) :
3991,from django.utils import six into default name space.,from django . utils import six
3992,raise a NotImplementedError with an argument string 'subclasses of Serializer must provide a start_serialization() method'.,raise NotImplementedError ( 'subclasses of Serializer must provide a start_serialization() method' )
3993,changed is boolean True.,changed = True
3994,"__all__ is a tuple containing strings: 'ModelForm', 'BaseModelForm', 'model_to_dict', 'fields_for_model', 'save_instance',","__all__ = ( 'ModelForm' , 'BaseModelForm' , 'model_to_dict' , 'fields_for_model' , 'save_instance' , 'ModelChoiceField' , 'ModelMultipleChoiceField' , 'ALL_FIELDS' , 'BaseModelFormSet' , 'modelformset_factory' , 'BaseInlineFormSet' , 'inlineformset_factory' , )"
3995,from django.utils.encoding import force_bytes and python_2_unicode_compatible into default name space.,"from django . utils . encoding import force_bytes , python_2_unicode_compatible"
3996,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3997,return yes.,return yes
3998,"for every a and n in targets, put a into a set, join all the set elements into a string separated by string ', ',","self . stdout . write ( self . style . MIGRATE_LABEL ( "" Apply all migrations: "" ) + ( "", "" . join ( set ( a for a , n in targets ) ) or ""(none)"" ) )"
3999,"define send_mail funtion with subject, message, from_email, recipient_list, fail_silently set to boolean False,","def send_mail ( subject , message , from_email , recipient_list , fail_silently = False , auth_user = None , auth_password = None , connection = None , html_message = None ) :"
4000,define the function import_module with 3 arguments: name and package set to None.,"def import_module ( name , package = None ) :"
4001,"call the method pytz.timezone with an argument timezone, substitute the result for _active.value.",_active . value = pytz . timezone ( timezone )
4002,"__all__ is a list containing a string ""runfastcgi"".","__all__ = [ ""runfastcgi"" ]"
4003,"call the function ugettext with an argument string ""%s MB"", substitute '%s' with the result of the call to the function,","value = ugettext ( ""%s MB"" ) % filesize_number_format ( bytes / MB )"
4004,define the method __nonzero__ with argument self.,def __nonzero__ ( self ) :
4005,"if response.status_code is lesser than integer 200 and grater or equal than 100, or response.status_code equals to integer 204 or 304,","if 100 <= response . status_code < 200 or response . status_code in ( 204 , 304 ) :"
4006,from django.utils.jslex import prepare_js_for_gettext into default name space.,from django . utils . jslex import prepare_js_for_gettext
4007,"define the method __init__ with 3 arguments: self, producer and length set to None.","def __init__ ( self , producer , length = None ) :"
4008,"if self._num_pages is None,",if self . _num_pages is None :
4009,"return a string '""%s""' formated with etag, in which every occurrence of '\\' is replaced with '\\\\' and every occurrence of '""',","return '""%s""' % etag . replace ( '\\' , '\\\\' ) . replace ( '""' , '\\""' )"
4010,"_fields_ is a list containing 4 tuples: first tuple contains: string 'Internal' and ULONG_PTR,","_fields_ = [ ( 'Internal' , ULONG_PTR ) , ( 'InternalHigh' , ULONG_PTR ) , ( '_offset_union' , _OFFSET_UNION ) , ( 'hEvent' , HANDLE ) ]"
4011,if call to the settings.is_overridden with string 'TEST_RUNNER' evaluates to boolean False.,if not settings . is_overridden ( 'TEST_RUNNER' ) :
4012,print message to the standard output.,print ( message )
4013,derive the class DefaultCacheProxy from the base class object.,class DefaultCacheProxy ( object ) :
4014,define the method _get_context_stack_frame with 2 arguments: self and context.,"def _get_context_stack_frame ( self , context ) :"
4015,"if fields is not None and f.name is not contained in fields,",if fields is not None and f . name not in fields :
4016,define the function get_commands.,def get_commands ( ) :
4017,"if value is not equal to an empty string,",if value != '' :
4018,"with an argument value evaluates to false, and if 'convert_to_local_time' attribute of value object doesnt exists, or is it does is boolean True, should_convert is boolean True, otherwise is boolean False. if should_convert is true, call the function localtime with an argument value and return the result, otherwise return value.",return localtime ( value ) if should_convert else value
4019,"if url_info.netloc is false and url_info.scheme is true,",if not url_info . netloc and url_info . scheme :
4020,from django.utils.html import escape into default name space.,from django . utils . html import escape
4021,value under 'localize' key of kwargs dictionary is boolean True.,kwargs [ 'localize' ] = True
4022,"if cc is not an six.string_types instance raise an error with message string '""cc"" argument must be a list or tuple'.","assert not isinstance ( cc , six . string_types ) , '""cc"" argument must be a list or tuple'"
4023,"define the function make_origin with 4 arguments: display_name, loader, name and dirs.","def make_origin ( display_name , loader , name , dirs ) :"
4024,"raise an TemplateSyntaxError exception ""'%s' is decorated with takes_context=True so it must have a first argument of 'context'"",","raise TemplateSyntaxError ( ""'%s' is decorated with takes_context=True so it must "" ""have a first argument of 'context'"" % name )"
4025,define the method __nonzero__ with argument self.,def __nonzero__ ( self ) :
4026,from django.utils import six into default name space.,from django . utils import six
4027,"get the value under f key of dictionary under 'filters' key of self.config dictionary,",filterer . addFilter ( self . config [ 'filters' ] [ f ] )
4028,define the function _curried with 2 arguments: unpacked list moreargs and unpacked dictionary morekwargs.,"def _curried ( * moreargs , ** morekwargs ) :"
4029,return settings.DEBUG.,return settings . DEBUG
4030,"for every line in return value of the method self.handle_inspection called with an argument options,",for line in self . handle_inspection ( options ) :
4031,"try,",try :
4032,define the function escape with an argument text.,def escape ( text ) :
4033,call the method self.__prepare_class__.,self . __prepare_class__ ( )
4034,substitute obj for value under the self.var_name key of the context dictionary.,context [ self . var_name ] = obj
4035,define the method __next__ with an argument self.,def __next__ ( self ) :
4036,derive class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
4037,"if not,",else :
4038,"define the method words with 4 arguments: self, num, truncate set to None, html set to boolean False.","def words ( self , num , truncate = None , html = False ) :"
4039,"return an instance of a SpacelessNode class, created with an argument nodelist.",return SpacelessNode ( nodelist )
4040,"try,",try :
4041,"if not,",else :
4042,"self.stderr is an instance of an OutputWrapper object, created with 2 arguments: value under the 'stderr' key of the options dictionary, if it doesnt exists use the sys.stderr instead, and self.style.ERROR.","self . stderr = OutputWrapper ( options . get ( 'stderr' , sys . stderr ) , self . style . ERROR )"
4043,"define the method __init__ with, self, server, params, library, value_not_found_exception as arguments.","def __init__ ( self , server , params , library , value_not_found_exception ) :"
4044,"if the key doesnt exists use sys.stderr as an argument. if not,",else :
4045,"try,",try :
4046,"if field is an instance of FileField,","if isinstance ( field , FileField ) :"
4047,"call the function pickle.dumps with value and pickle.HIGHEST_PROTOCOL as the arguments, substitute the result for pickled.","pickled = pickle . dumps ( new_value , pickle . HIGHEST_PROTOCOL )"
4048,"if value is true,",if value :
4049,"for every i and choice in enumerated iterable self.choices,","for i , choice in enumerate ( self . choices ) :"
4050,"raise an KeyError with an argument ""Unknown language code %s."", where '%s' is replaced with lang_code.","raise KeyError ( ""Unknown language code %s."" % lang_code )"
4051,"try,",try :
4052,"or if it is false, but has_old_option is true use self.requires_model_validation, if they are both false use boolean True as an argument. property decorator,",@ property
4053,define the method more with an argument self.,def more ( self ) :
4054,call the method self._assert_mutable.,self . _assert_mutable ( )
4055,"if self.require_all_fields is true,",if self . require_all_fields :
4056,"raise an ValueError exception with string ""Key '%s' not found"" as argument, substitute '%s' for key.","raise ValueError ( ""Key '%s' not found"" % key )"
4057,"raise an exception,",raise
4058,from django.utils.encoding import force_bytes into default name space.,from django . utils . encoding import force_bytes
4059,label_for is an empty string.,label_for = ''
4060,define the method resolve with 2 arguments: self and context.,"def resolve ( self , context ) :"
4061,"replace every occurrence of string 'charset=CHARSET' for string 'charset=UTF-8' in msgs, substitute the result for msgs.","msgs = msgs . replace ( 'charset=CHARSET' , 'charset=UTF-8' )"
4062,"decorator stringfilter,",@ stringfilter
4063,derive the class MLStripper from the HTMLParser base class.,class MLStripper ( HTMLParser ) :
4064,"call the function type with 3 arguments: string 'WSGIServer', tuple containing 2 elements: socketserver.ThreadingMixIn and WSGIServer,","httpd_cls = type ( str ( 'WSGIServer' ) , ( socketserver . ThreadingMixIn , WSGIServer ) , { } )"
4065,"if url is false,",if not url :
4066,"define method __exit__ with self, exc, value and tb as the arguments.","def __exit__ ( self , exc , value , tb ) :"
4067,"get the value under the 'indent' key of the options dictionary, multiply it with level, create a string containing number of whitespaces equal to the previous result, append it to the string containing newline character, use the result as the argument for the call to the self.xml.ignorableWhitespace method.","self . xml . ignorableWhitespace ( '\n' + ' ' * self . options . get ( 'indent' , None ) * level )"
4068,"if latest_date is true, return it, if not, call the method datetime.datetime.now and return the result.",return latest_date or datetime . datetime . now ( )
4069,"call the method parser.add_argument with 3 arguments: string 'addrport', nargs='?' and help as a string 'Optional port number, or ipaddr:port'.","parser . add_argument ( 'addrport' , nargs = '?' , help = 'Optional port number, or ipaddr:port' )"
4070,"call the function six.reraise with 3 arguments: UnreadablePostError, UnreadablePostError instantiated with unpacked list e.args,","six . reraise ( UnreadablePostError , UnreadablePostError ( * e . args ) , sys . exc_info ( ) [ 2 ] )"
4071,define the method tzname with 2 arguments: self and dt.,"def tzname ( self , dt ) :"
4072,"call the function _helper with 2 arguments: sublist_item and tabs incremented by 1, substitute the result for sublist.","sublist = _helper ( sublist_item , tabs + 1 )"
4073,"for every base in new_class.__mro__ in reversed order,",for base in reversed ( new_class . __mro__ ) :
4074,if self does not has an '_post' attribute.,"if not hasattr ( self , '_post' ) :"
4075,"if KeyError exception is caught,",except KeyError :
4076,"define the method __init__ with 13 arguments: self, path, match set to None, recursive set to boolean False,","def __init__ ( self , path , match = None , recursive = False , allow_files = True , allow_folders = False , required = True , widget = None , label = None , initial = None , help_text = '' , * args , ** kwargs ) :"
4077,"call the os.path.splitext with argument file_name, assign the result to the file_root and file_ext respectively.","file_root , file_ext = os . path . splitext ( file_name )"
4078,"call the function self._truncate_html with 5 arguments: length, truncate, text, truncate_len and boolean False, return the result.","return self . _truncate_html ( length , truncate , text , truncate_len , False )"
4079,"if not,",else :
4080,"call the function urlsplit with an argument value, assign the result to scheme, netloc, path, query and fragment, respectively.","scheme , netloc , path , query , fragment = urlsplit ( value )"
4081,"call the method logging.Filter with an argument name, substitute the result for result.",result = logging . Filter ( name )
4082,"if e.errno equals to errno.EEXIST,",if e . errno != errno . ENOENT :
4083,"call the method new_name.find, with an argument string '__', if it evaluates to greater or equal than integer 0,",if new_name . find ( '__' ) >= 0 :
4084,"call the method apps.setdefault with 2 arguments: app_name and an empty list, extend the resulting list with namespaces_list.","apps . setdefault ( app_name , [ ] ) . extend ( namespace_list )"
4085,"substitute the result for url. if NoReverseMatch exception is caught,",except NoReverseMatch :
4086,"call the function quote_plus with 2 arguments: result of the function force_str called with an argument url,","return force_text ( quote_plus ( force_str ( url ) , force_str ( safe ) ) )"
4087,"try,",try :
4088,do nothing.,pass
4089,"if email_messages is false,",if not email_messages :
4090,"if value is boolean False or boolean True or value is None or value is an empty string, do not perform the following,",if not ( value is True or value is False or value is None or value == '' ) :
4091,"call the operator.add on the values of the self object converted into a dictionary, until it is reduced to a single value, return it.","return reduce ( operator . add , dict ( self ) . values ( ) )"
4092,"if DatabaseError, renamed to e, exception is caught,",except DatabaseError as e :
4093,breaks from the smallest enclosing loop execution.,break
4094,return boolean True.,return True
4095,d is an empty string.,d = ''
4096,import module os.,import os
4097,"if LookupError or TypeError exceptions are caught,","except ( LookupError , TypeError ) :"
4098,"call the method self.args_check with 3 arguments: filter_name, filter_func and args.","self . args_check ( filter_name , filter_func , args )"
4099,"call the method self._set with key, pickled and timeout as arguments.","self . _set ( key , pickled , timeout )"
4100,"subtype and charset, respectively. if not,",else :
4101,"otherwise if self.waiting_readers is not equal to integer 0,",elif self . waiting_readers != 0 :
4102,"if prefix is false,",if not prefix :
4103,"if lang_code is true,",if lang_code :
4104,"if value is contained in self.empty_values,",if value in self . empty_values :
4105,substitute value for the value under the name key of the self.cleaned_data dictionary.,self . cleaned_data [ name ] = value
4106,"raise an CommandError exception with an argument string '""%s"" is not a valid IPv6 address.' where '%s' is replaced with self.addr.","raise CommandError ( '""%s"" is not a valid IPv6 address.' % self . addr )"
4107,define the method __add__ with 2 arguments self and rhs.,"def __add__ ( self , rhs ) :"
4108,derive the class FloatField from the base class IntegerField class.,class FloatField ( IntegerField ) :
4109,"evaluate the self.get_fqdn method, return the result.",return self . get_fqdn ( )
4110,define the method translate_token with 2 arguments: self and token.,"def translate_token ( self , token ) :"
4111,"if not,",else :
4112,return palette.,return palette
4113,"for every c in lineno_comment_map dictionary value under the comment_lineno_cache key,",for c in lineno_comment_map [ comment_lineno_cache ] :
4114,"for ever app_config in return value of the method apps.get_app_configs,",for app_config in apps . get_app_configs ( ) :
4115,"try,",try :
4116,"and string '~/.pythonrc.py' as tuples second element. if pythonrc is true,",if not pythonrc :
4117,from django.forms.widgets import Widget and Select into default name space.,"from django . forms . widgets import Widget , Select"
4118,raise an StopIteration exception.,raise StopIteration ( )
4119,"if six.PY3 is true,",if six . PY3 :
4120,append callback to self._post_render_callbacks list.,self . _post_render_callbacks . append ( callback )
4121,"define the method appendlist with 3 arguments: self, key and value.","def appendlist ( self , key , value ) :"
4122,"blocks is a dictionary with elements: n for n.name, for every n in return value of the method,","blocks = dict ( ( n . name , n ) for n in compiled_parent . nodelist . get_nodes_by_type ( BlockNode ) )"
4123,"try,",try :
4124,"concatenate name and string '-clear', return it.",return name + '-clear'
4125,"if not,",else :
4126,call the method clear from the base class of the class SortedDict.,"super ( SortedDict , self ) . clear ( )"
4127,"try,",try :
4128,"if match is true,",if not match :
4129,return boolean False.,return False
4130,"if not,",else :
4131,define the function ljust with 2 arguments value and arg.,"def ljust ( value , arg ) :"
4132,"for every node in self.nodelist_loop,",for node in self . nodelist_loop :
4133,"call the method warnings.warn with 2 arguments: string ""The syncdb command will be removed in Django 1.9"" and RemovedInDjango19Warning.","warnings . warn ( ""The syncdb command will be removed in Django 1.9"" , RemovedInDjango19Warning )"
4134,"categories is a list containing the results of the function to_unicode, called with an argument c, for every c in categories.",categories = [ ( c ) for c in categories ]
4135,derive the class StopFutureHandlers from the UploadFileException base class.,class StopFutureHandlers ( UploadFileException ) :
4136,"call the method form.save, with an argument commit set to boolean False, substitute the result for obj.",obj = form . save ( commit = False )
4137,"call the method m.end, slice list rest from previous result as starting index to the end, substitute the result for rest.",rest = rest [ m . end ( ) : ]
4138,"endless loop,",while True :
4139,"call the method pyinotify.Notifier with wm and EventHandler() as arguments, assign the result to notifier.","notifier = pyinotify . Notifier ( wm , EventHandler ( ) )"
4140,substitute name for self.name.,self . name = name
4141,"raise a ValueError exception with an argument ""You can only use `unpack_ipv4` if `protocol` is set to 'both'"".","raise ValueError ( ""You can only use `unpack_ipv4` if `protocol` is set to 'both'"" )"
4142,"try,",try :
4143,"open writer.path file in write mode, with file descriptor as fh, perform the following,","with open ( writer . path , ""wb"" ) as fh :"
4144,substitute str for text_type.,text_type = str
4145,"default set to None, help is a string 'Only look for fixtures in the specified app.'. call the method parser.add_argument with 6 arguments: string '--ignorenonexistent', string '-i', action as a string 'store_true',","parser . add_argument ( '--ignorenonexistent' , '-i' , action = 'store_true' , dest = 'ignore' , default = False , help = 'Ignores entries in the serialized data for fields that do not ' 'currently exist on the model.' )"
4146,"define the method __init__ with arguments self, content and name defaulting to None.","def __init__ ( self , content , name = None ) :"
4147,return _decorator.,return _decorator
4148,define the method dst with 2 arguments self and dt.,"def dst ( self , dt ) :"
4149,define the method send_messages with arguments self and email_messages.,"def send_messages ( self , email_messages ) :"
4150,"try,",try :
4151,call the method self.validate_key with argument key.,self . validate_key ( key )
4152,"otherwise if value is an instance of datetime.date,","elif isinstance ( value , datetime . date ) :"
4153,"define the function loads with 5 arguments: s, key set to None, salt set to string 'django.core.signing',","def loads ( s , key = None , salt = 'django.core.signing' , serializer = JSONSerializer , max_age = None ) :"
4154,"otherwise if action equals to string 'apply_success',","elif action == ""apply_success"" :"
4155,"if not,",else :
4156,"if template is None,",if template is None :
4157,"if length of self.dicts is equal to an integer 1,",if len ( self . dicts ) == 1 :
4158,"try,",try :
4159,call the new_file method form the base class from the MemoryFileUploadHandler class with arguments: unpacked list args and unpacked list kwargs.,"super ( MemoryFileUploadHandler , self ) . new_file ( * args , ** kwargs )"
4160,define the method next_token with an argument self.,def next_token ( self ) :
4161,remove the entry under the 'stream' key of the self.json_kwargs dictionary.,"self . json_kwargs . pop ( 'stream' , None )"
4162,define the method get_nodes_by_type with 2 arguments: self and nodetype.,"def get_nodes_by_type ( self , nodetype ) :"
4163,"define the method __exit__ with 4 arguments: self, exc_type, exc_value and traceback.","def __exit__ ( self , exc_type , exc_value , traceback ) :"
4164,"convert header to lowercase, use it as the key to get the value from the self._headers dictionary, return the second element of the result.",return self . _headers [ header . lower ( ) ] [ 1 ]
4165,"for every k and v in return value of the function defaults.items,","for k , v in defaults . items ( ) :"
4166,"for m in merge_migrations append m.ancestry to a list, zip the resulting list into tuples of pairs, for every level in result,",for level in zip ( * [ m . ancestry for m in merge_migrations ] ) :
4167,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
4168,"call the method self.make_key Whit key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
4169,"call the function six.text_type with return value of the function bytes(s), encoding and errors as the arguments,","s = six . text_type ( bytes ( s ) , encoding , errors )"
4170,_dec.__name__ is a string 'method_decorator(%s)' formated with decorator.__class__.__name__.,_dec . __name__ = 'method_decorator(%s)' % decorator . __class__ . __name__
4171,substitute _itervalues for itervalues.,itervalues = _itervalues
4172,return first element of key.,return key [ 0 ]
4173,derive the class MultipleChoiceField from the base class ChoiceField class.,class MultipleChoiceField ( ChoiceField ) :
4174,define the method add_arguments with 2 arguments self and parser.,"def add_arguments ( self , parser ) :"
4175,call the method o.isoformat substitute the result for r.,r = o . isoformat ( )
4176,"and help set to a string 'Optional table names. Otherwise, settings.CACHES is used to find cache tables.' . call the method parser.add_argument with 5 arguments: string '--database', action set to string 'store', dest as a string 'database',","parser . add_argument ( '--database' , action = 'store' , dest = 'database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database onto which the cache tables will be ' 'installed. Defaults to the ""default"" database.' )"
4177,remove 3 elements from r starting at the index 23.,r = r [ : 23 ] + r [ 26 : ]
4178,substitute index for self.index.,self . index = index
4179,raise an AttributeError with an argument attr.,raise AttributeError ( attr )
4180,define the method clean with arguments self and value.,"def clean ( self , value ) :"
4181,define the method widget_attrs with arguments self and widget.,"def widget_attrs ( self , widget ) :"
4182,from django.utils import formats and six into default name space.,"from django . utils import formats , six"
4183,define the function ifchanged with 2 arguments: parser and token.,"def ifchanged ( parser , token ) :"
4184,"string 'unicode_escape', substitute the list of results for etags. return etags.",return etags
4185,import module fnmatch.,import fnmatch
4186,"split arg by ':', for every x in result,",for x in arg . split ( ':' ) :
4187,"if settings.TEMPLATE_DEBUG is true,",if settings . TEMPLATE_DEBUG :
4188,define the method copy with an argument self.,def copy ( self ) :
4189,"call the function _helper with an argument value, use it as an argument for the call to the function mark_safe, return the result.",return mark_safe ( _helper ( value ) )
4190,"if data is not None or FILE_INPUT_CONTRADICTION,","if data in ( None , FILE_INPUT_CONTRADICTION ) :"
4191,"if not,",else :
4192,"try,",try :
4193,self.default_locale_path is None.,self . default_locale_path = None
4194,define the function get_digit with 2 arguments value and arg.,"def get_digit ( value , arg ) :"
4195,"call the method self.get_backend_timeout with argument timeout, substitute the result for timeout.",timeout = self . get_backend_timeout ( timeout )
4196,define the method validate with arguments self and value.,"def validate ( self , value ) :"
4197,"evaluate the method six.text_type(s), on the result call the method encode with encoding as an argument, return the result.",return six . text_type ( s ) . encode ( encoding )
4198,"define the method as_hidden with 3 arguments: self, attrs set to None and unpacked dictionary kwargs.","def as_hidden ( self , attrs = None , ** kwargs ) :"
4199,"if not,",else :
4200,from django.core.management.base import CommandError and BaseCommand into default name space.,"from django . core . management . base import CommandError , BaseCommand"
4201,"if illegal_formatting is true,",if illegal_formatting :
4202,"if self._upload_handlers is false,",if not self . _upload_handlers :
4203,"msg is a tuple containing one initial entry: a string ""WSGI application '%(app_path)s' could not be loaded; Error importing module: '%(exception)s'"", where '%(app_path)s' is replaced by app_path and '%(exception)s' is replaced by e.","msg = ( ""WSGI application '%(app_path)s' could not be loaded; "" ""Error importing module: '%(exception)s'"" % ( { 'app_path' : app_path , 'exception' : e , } ) )"
4204,raise an TypeError with an string 'formfield_callback must be a function or callable'.,raise TypeError ( 'formfield_callback must be a function or callable' )
4205,"try,",try :
4206,substitute item for value under the first element of self.loopvars key of the context dictionary.,context [ self . loopvars [ 0 ] ] = item
4207,substitute package.__path__ for package_path.,package_path = package . __path__
4208,"an unpacked list natural_key as argument, substitute the pk filed of the resulting object for obj.pk. if Model.DoesNotExist exception is caught,",except Model . DoesNotExist :
4209,"call the method value.center with an argument, arg converted into a integer, return the result.",return value . center ( int ( arg ) )
4210,substitute propagate for logger.propagate.,logger . propagate = propagate
4211,"if func doesnt have a attribute '__name__',","if not hasattr ( func , '__name__' ) :"
4212,"call the value.split method with '://' as argument, convert first element of the result to lower case, substitute the result for scheme.",scheme = value . split ( '://' ) [ 0 ] . lower ( )
4213,return supported_code.,return supported_code
4214,"if filepath starts with root,",if filepath . startswith ( root ) :
4215,define the method __mod__ with 2 arguments: self and rhs.,"def __mod__ ( self , rhs ) :"
4216,"if text has an '__html__' attribute,","if hasattr ( text , '__html__' ) :"
4217,from django.core.mail.backends.base import BaseEmailBackend into default name space.,from django . core . mail . backends . base import BaseEmailBackend
4218,"if bits is true and kwarg_format is false,",if bits and not kwarg_format :
4219,"raise an TemplateSyntaxError exception with an argument string, ""'%s' tag takes at least 2 arguments and the second last argument","raise TemplateSyntaxError ( ""'%s' tag takes at least 2 arguments and the "" ""second last argument must be 'as'"" % function_name )"
4220,"if six.PY3 is true,",if six . PY3 :
4221,"and form is not contained in forms_to_delete, substitute the resulting list for valid_forms. for every form in valid_forms,",for form in valid_forms :
4222,substitute node for bit.,bit = node
4223,"if NotImplementedError exception,",except NotImplementedError :
4224,substitute nodelist for self.nodelist.,self . nodelist = nodelist
4225,substitute the last element of args for name.,name = args [ - 1 ]
4226,"call the self.stderr.write, with string ""The po files under %s are in a seemingly not writable location. mo files will not be updated/created."" as argument, with '%s' replaced by dirpath.","self . stderr . write ( ""The po files under %s are in a seemingly not writable location. "" ""mo files will not be updated/created."" % dirpath )"
4227,return value.,return value
4228,"substitute the fitst element of the result for prefix_norm and prefix_args, respectively. for every possibility, pattern and defaults in possibilities,","for possibility , pattern , defaults in possibilities :"
4229,"obj is an instance of Node class, created with 3 arguments: children, connector and negated.","obj = Node ( children , connector , negated )"
4230,derive the class VariableNode form the base class Node.,class VariableNode ( Node ) :
4231,"call the method re_camel_case.sub with 2 arguments: raw string ' \1' and value, strip the result of whitespaces from both ends,","return re_camel_case . sub ( r' \1' , value ) . strip ( ) . lower ( )"
4232,"call the object Decimal with string '1' as an argument, divide it by 10, bring the result to the power of self.decimal_places,",step = str ( Decimal ( '1' ) / 10 ** self . decimal_places ) . lower ( )
4233,substitute self.fk.rel.field_name for value under the 'to_field' key of the kwargs dictionary.,kwargs [ 'to_field' ] = self . fk . rel . field_name
4234,return nothing.,return
4235,"remove first element from self.tokens, return removed element.",return self . tokens . pop ( 0 )
4236,"if exception OSError, renamed to e, occurred,",except OSError as e :
4237,"for every i and widget in enumerated iterable self.widgets,","for i , widget in enumerate ( self . widgets ) :"
4238,"otherwise if value is boolean False, string 'False' or string '0'","elif value in ( False , 'False' , '0' ) :"
4239,"if middleware has an attribute 'process_view',","if hasattr ( middleware , 'process_view' ) :"
4240,"where '%s' is replaced with token.contents. call the method parser.compile_filter with an argument, in_index incremented by one, and used to index parser.compile_filter,",sequence = parser . compile_filter ( bits [ in_index + 1 ] )
4241,"if plen is lesser than difference of alen and dlen, or if plen is greater than alen,",if plen < ( alen - dlen ) or plen > alen :
4242,"call the function func with 2 arguments: unpacked list resolved_args and unpacked dictionary resolved_kwargs,","context [ self . target_var ] = func ( * resolved_args , ** resolved_kwargs )"
4243,"remove first and last character from the attrvalue, substitute it for attrvalue.",attrvalue = attrvalue [ 1 : - 1 ]
4244,from xml.sax.expatreader import ExpatParser as _ExpatParser into default name space.,from xml . sax . expatreader import ExpatParser as _ExpatParser
4245,"_iteritems is a string ""items"".","_iteritems = ""items"""
4246,"total_ordering decorator,",@ total_ordering
4247,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
4248,"define the method handle_field with argument self, obj and field.","def handle_field ( self , obj , field ) :"
4249,"if values under the 'socket', 'host' and 'port' keys of the options dictionary are false,","elif not options [ ""socket"" ] and not options [ ""host"" ] and not options [ ""port"" ] :"
4250,"if filename is true and filename path doesnt exist,",if filename and not os . path . exists ( filename ) :
4251,"return first element of t converted to lowercase and second element of t, as a tuple.","return ( t [ 0 ] . lower ( ) , t [ 1 ] )"
4252,define the method __init__ with 2 arguments: self and attrs set to None.,"def __init__ ( self , attrs = None ) :"
4253,"call the method value.ljust with an argument, arg converted into a integer, return the result.",return value . ljust ( int ( arg ) )
4254,call the method new_context._reset_dicts values.,new_context . _reset_dicts ( values )
4255,"ip_address_validator_map is a dictionary containing 3 initial entries: tuple containing 2 elements: list with an element, validate_ipv46_address and return value of the function _ with an argument string 'Enter a valid IPv4 or IPv6 address.' for 'both',","ip_address_validator_map = { 'both' : ( [ validate_ipv46_address ] , _ ( 'Enter a valid IPv4 or IPv6 address.' ) ) , 'ipv4' : ( [ validate_ipv4_address ] , _ ( 'Enter a valid IPv4 address.' ) ) , 'ipv6' : ( [ validate_ipv6_address ] , _ ( 'Enter a valid IPv6 address.' ) ) , }"
4256,do nothing.,pass
4257,return nothing.,return
4258,derive the class SortedDict from the dict base class.,class SortedDict ( dict ) :
4259,define the function now.,def now ( ) :
4260,if file is an instance of six.string_types.,"if isinstance ( file , six . string_types ) :"
4261,"if message is an instance of SafeData,","if isinstance ( message , SafeData ) :"
4262,"formated with values under the 'author_email' and 'author_name' keys of item dictionary. otherwise if value under the ""author_email"" key of the item dictionary is true,","elif item [ ""author_email"" ] :"
4263,"if error_class is None,",if error_class is None :
4264,"is exception is caught,",except :
4265,"for every path in self.locale_paths,",for path in self . locale_paths :
4266,"if construct is true,",if construct :
4267,define the method __prepare_class__ with an argument self.,def __prepare_class__ ( cls ) :
4268,"call the function method with 3 arguments: self, unpacked list args and unpacked dictionary kwargs, substitute the result for data.","data = method ( self , * args , ** kwargs )"
4269,"call the method context.push, with the result perform,",with context . push ( ) :
4270,return nothing.,return
4271,call the method activate with an argument self.timezone.,activate ( self . timezone )
4272,from django.db import DEFAULT_DB_ALIAS into default name space.,from django . db import DEFAULT_DB_ALIAS
4273,derive the class UnreadablePostError from the base class IOError.,class UnreadablePostError ( IOError ) :
4274,"call the encode function on the Header class instance, created with arguments nm and string 'utf-8', substitute the result for nm.","nm = Header ( nm , 'utf-8' ) . encode ( )"
4275,import module copy.,import copy
4276,delete name attribute of the _MovedItems object.,"delattr ( _MovedItems , name )"
4277,return a tuple with 2 elements: integer 0 and second element of k.,"return ( 0 , k [ 1 ] )"
4278,define the method resolve_error_handler with arguments self and view_type.,"def resolve_error_handler ( self , view_type ) :"
4279,"get the identity of the self object, use it as a key to get the value of the memo dictionary, substitute result for it.",memo [ id ( self ) ] = result
4280,"call the method self.empty_form.is_multipart, return the result",return self . empty_form . is_multipart ( )
4281,"call the function get_template with an argument parent, return the result.",return get_template ( parent )
4282,define the method visible_fields with an argument self.,def visible_fields ( self ) :
4283,"if max_age is not None,",if max_age is not None :
4284,"call the function get_default_timezone, substitute the result for self.timezone.",self . timezone = get_default_timezone ( )
4285,return compile_function.,return compile_function
4286,from functools import total_ordering.,from functools import total_ordering
4287,"if ValueError or TypeError are caught,","except ( ValueError , TypeError ) :"
4288,default_error_messages is an dictionary with an entry: return value of the function _ called with an argument string 'Enter a valid time.' for 'invalid'.,default_error_messages = { 'invalid' : _ ( 'Enter a valid time.' ) }
4289,from django.utils.safestring import mark_safe and SafeData into default name space.,"from django . utils . safestring import mark_safe , SafeData"
4290,raise an exception e.,raise e
4291,"if field.serialize is true,",if field . serialize :
4292,do nothing.,pass
4293,"for every ext in pathext,",for ext in pathext :
4294,substitute RadioChoiceInput for choice_input_class.,choice_input_class = RadioChoiceInput
4295,define the method content with an argument self.,def content ( self ) :
4296,"if bit is true,",if bit :
4297,"if app_config.models_module is None,",if app_config . models_module is None :
4298,define the method chunks with arguments self and chunk_size defaulting to None.,"def chunks ( self , chunk_size = None ) :"
4299,doublecolon_len is integer 0.,doublecolon_len = 0
4300,define the method f with an argument self.,def f ( self ) :
4301,skip this loop iteration.,continue
4302,derive the class DTDForbidden from the DefusedXmlException base class.,class DTDForbidden ( DefusedXmlException ) :
4303,"call the emit_pre_migrate_signal with create_models, self.verbosity, self.interactive. connection.alias as arguments.","emit_pre_migrate_signal ( create_models , self . verbosity , self . interactive , connection . alias )"
4304,append f to file_field_list.,file_field_list . append ( f )
4305,"if BLOCK_CONTEXT_KEY is contained in render_context and call to the method get_block with an argument self.name from the object,",if ( BLOCK_CONTEXT_KEY in render_context and render_context [ BLOCK_CONTEXT_KEY ] . get_block ( self . name ) is not None ) :
4306,append name to self._changed_data.,self . _changed_data . append ( name )
4307,"call the function re.compile with an argument raw string ""_\(((?:"".*?"")|(?:'.*?'))\)"", substitute the result for constant_re.","constant_re = re . compile ( r""""""_\(((?:"".*?"")|(?:'.*?'))\)"""""" )"
4308,"for every elt in source,",for elt in source :
4309,call the server_bind method from the base class of the WSGIServer class.,"super ( WSGIServer , self ) . server_bind ( )"
4310,increment i-th element of result by piece.,result [ i ] += piece
4311,mime_type is a string 'application/rss+xml; charset=utf-8'.,mime_type = 'application/rss+xml; charset=utf-8'
4312,call the method tzinfo.__init__ with an argument self.,tzinfo . __init__ ( self )
4313,from django.conf import settings into default name space.,from django . conf import settings
4314,"if value under the name key of the sys.modules dictionary is not None, return boolean True, otherwise return boolean False.",return sys . modules [ name ] is not None
4315,define the method __init__ with an argument self.,def __init__ ( self ) :
4316,if StopFutureHandlers exception is caught.,except StopFutureHandlers :
4317,"for every func and args in self.filters,","for func , args in self . filters :"
4318,"if the key doesnt exists call the six.String function and substitute the result for self.stream. remove the 'fields' key from the options dictionary and substitute it for self.selected_fields,","self . selected_fields = options . pop ( ""fields"" , None )"
4319,"for every table_name in return value of the method connection.introspection.table_names called with an argument cursor,",for table_name in connection . introspection . table_names ( cursor ) :
4320,"call the method lineno_comment_map.setdefault with 2 arguments: t.lineno and an empty list, append t.contents to the result.","lineno_comment_map . setdefault ( t . lineno , [ ] ) . append ( t . contents )"
4321,"initial set to None, error_class set to ErrorList, label_suffix set to None, empty_permitted set to boolean False. if data is not None or files is not None, self.is_bound is boolean True, otherwise it is boolean False.",self . is_bound = data is not None or files is not None
4322,"if colors is true and last element of colors is contained in color_names,",if colors and colors [ - 1 ] in color_names :
4323,"and self.choice_label, return the result. define the method is_checked with an argument self.",def is_checked ( self ) :
4324,"except if AttributeError is caught,",except AttributeError :
4325,"call the method transaction.atomic with 2 arguments: using set to database, savepoint set to connection.features.can_rollback_ddl,","with transaction . atomic ( using = database , savepoint = connection . features . can_rollback_ddl ) :"
4326,"join fixture_dir, fixture_name with appended character '*' into a valid file path,","for candidate in glob . iglob ( os . path . join ( fixture_dir , fixture_name + '*' ) ) :"
4327,"call the function date_format with 2 arguments: value and use_l10n as use_l10n, return the result.","return date_format ( value , use_l10n = use_l10n )"
4328,"dest set to string 'tags' and help set to string 'Run only checks labeled with given tag.'. call the method parser.add_argument with 4 arguments: string '--list-tags', action set to string 'store_true',","parser . add_argument ( '--list-tags' , action = 'store_true' , dest = 'list_tags' , help = 'List available tags.' )"
4329,"if not,",else :
4330,"where '%r' is replaced with first element of bits. if remaining_bits is true,",if remaining_bits :
4331,do nothing.,pass
4332,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
4333,call the function locks.lock with fd and locks.LOCK_EX as arguments.,"locks . lock ( fd , locks . LOCK_EX )"
4334,"call the method self.find_template with 2 argumetns: template_name and template_dirs, assign the result to template, origin, respectively.","template , origin = self . find_template ( template_name , template_dirs )"
4335,"if data is an instance of MultiValueDict or MergeDict class,","if isinstance ( data , ( MultiValueDict , MergeDict ) ) :"
4336,substitute new_class.declared_fields for fields.,fields = new_class . declared_fields
4337,"filesize_number_format with result of division of bytes by TB as an argument, substitute the result for value. if not,",else :
4338,"called with 2 arguments: singular and trimmed and result of the function join_tokens called with 2 arguments: plural and trimmed, write the result to out. if not,",else :
4339,"for every part in parts,",for part in parts :
4340,call the method self.configure_logger with 2 arguments: name and value under loggers dictionary key name.,"self . configure_logger ( name , loggers [ name ] )"
4341,"call the function CheckRegistry, substitute the result for registry.",registry = CheckRegistry ( )
4342,"if InvalidOperation exception is caught,",except InvalidOperation :
4343,"if '_' is contained in locale,",if '_' in locale :
4344,"call the function ugettext_lazy with an argument value, return the result.",return ugettext_lazy ( value )
4345,"call the function calendar.isleap with an argument self.data.year, if it evaluates to true,",if calendar . isleap ( self . data . year ) :
4346,"append boundary to bytes string '--', substitute the result for self._separator.",self . _separator = b'--' + boundary
4347,substitute self.version for version.,version = self . version
4348,define the method __init__ with 2 arguments: self and field.,"def __init__ ( self , field ) :"
4349,"compile regex from raw string '(?P\d{4})-(?P\d{1,2})-(?P\d{1,2})$', substitute it for date_re.","date_re = re . compile ( r'(?P\d{4})-(?P\d{1,2})-(?P\d{1,2})$' )"
4350,import module socket.,import socket
4351,"if not,",else :
4352,"call the method self.load_template with 2 arguments: template_name and template_dirs, return the result.","return self . load_template ( template_name , template_dirs )"
4353,"substitute '%s' is ""%s.process_response didn't return an HttpResponse object. It returned None instead."",","raise ValueError ( ""%s.process_response didn't return an "" ""HttpResponse object. It returned None instead."" % ( middleware_method . __self__ . __class__ . __name__ ) )"
4354,define the method __init__ with arguments: self class instance and argv set to None.,"def __init__ ( self , argv = None ) :"
4355,"attachment is an instance of a class SafeMIMEText, created with arguments: content, subtype and encoding.","attachment = SafeMIMEText ( content , subtype , encoding )"
4356,derive the class BadHeaderError from the ValueError base class.,class BadHeaderError ( ValueError ) :
4357,substitute value for self.value.,self . value = value
4358,define the function divisibleby with 2 arguments value and arg.,"def divisibleby ( value , arg ) :"
4359,"call the method self.as_table, return the result.",return self . as_table ( )
4360,import module glob.,import glob
4361,"raise an CommandError with an argument string ""Cannot find a migration matching '%s' from app '%s'."",","raise CommandError ( ""Cannot find a migration matching '%s' from app '%s'."" % ( migration_name , app_label ) )"
4362,import module time.,import time
4363,substitute last element of bits for asvar.,asvar = bits [ - 1 ]
4364,get attribute 'error_dict' from the self object.,"getattr ( self , 'error_dict' )"
4365,"if not,",else :
4366,self.file_name is None.,self . file_name = None
4367,"call the method self._coerce with an argument value, return the result.",return self . _coerce ( value )
4368,"instantiate class X, get its length.",len ( X ( ) )
4369,EventHandler.modified_code is I18N_MODIFIED.,EventHandler . modified_code = I18N_MODIFIED
4370,from django.conf import settings into default name space.,from django . conf import settings
4371,"call the function next_space_index with 2 arguments subject and i, substitute the result for i.","i = next_space_index ( subject , i )"
4372,self.object_name is a string 'CacheEntry'.,self . object_name = 'CacheEntry'
4373,"if tzinfo equals a string 'Z',",if tzinfo == 'Z' :
4374,"if not,",else :
4375,"call the function lazy_number with 6 arguments: npgettext, six.text_type, context set to context, singular set to singular,","return lazy_number ( npgettext , six . text_type , context = context , singular = singular , plural = plural , number = number )"
4376,"call the method registry.tags_available, sort the result and join it into a string, separate by newlines, write it to self.stdout.",self . stdout . write ( '\n' . join ( sorted ( registry . tags_available ( ) ) ) )
4377,"if self.verbosity is grater than, or equal to integer 2,",if self . verbosity >= 2 :
4378,"otherwise substitute settings.USE_L10N for use_grouping. if use_grouping is true substitute it for use_grouping, otherwise substitute force_grouping for use_grouping.",use_grouping = use_grouping or force_grouping
4379,define the method close with self class instance as the argument.,def close ( self ) :
4380,"define lambda function that returns self.file.xreadlines field, use it as an argument for property function, put the result in xreadlines.",xreadlines = property ( lambda self : self . file . xreadlines )
4381,return self._files.,return self . _files
4382,timeout is a integer -1.,timeout = - 1
4383,from functools import partial into default name space.,from functools import partial
4384,"if not,",else :
4385,derive class Command from the TemplateCommand base class.,class Command ( TemplateCommand ) :
4386,"call the method self.xml.endElement with an argument string ""django-objects"".","self . xml . endElement ( ""django-objects"" )"
4387,define the method content with 2 arguments: self and value.,"def content ( self , value ) :"
4388,"substitute the '%s' with table and list containing key, respectively. define the method has_key with self class instance, key and version defaulting to None as arguments.","def has_key ( self , key , version = None ) :"
4389,import module os.,import os
4390,"if template doesnt have a 'render' attribute,","if not hasattr ( template , 'render' ) :"
4391,import module hashlib.,import hashlib
4392,return an empty dictionary.,return { }
4393,"substitute the result for block_content. if self.verbatim is true and block_content equals self.verbatim,",if self . verbatim and block_content == self . verbatim :
4394,"for every f in return value of the os.listdir function called with an argument command_dir, append f without 3 last elements to a list, only if f doesnt start with character '_' and doesnt ends with string '.py', return the resulting list.",return [ f [ : - 3 ] for f in os . listdir ( command_dir ) if not f . startswith ( '_' ) and f . endswith ( '.py' ) ]
4395,"for every k and v in self.choices,","for k , v in self . choices :"
4396,raise an exception PageNotAnInteger with string 'That page number is not an integer' as an argument.,raise PageNotAnInteger ( 'That page number is not an integer' )
4397,"and unpacked dictionary kwargs, return the result. call the function MovedModule with 2 arguments: strings ""_dummy_thread"" and ""dummy_thread"",","add_move ( MovedModule ( ""_dummy_thread"" , ""dummy_thread"" ) )"
4398,"for every __ in iterator,",for __ in iterator :
4399,"for every name and value in items of props dictionary,","for name , value in props . items ( ) :"
4400,"call the method self.handle with 2 arguments unpacked list args and unpacked dictionary options, substitute the result for output.","output = self . handle ( * args , ** options )"
4401,"and code set to an string 'required'. for every val in value,",for val in value :
4402,return first and second element of result.,"return result [ 0 ] , result [ 1 ]"
4403,"call the function warnings.warn with 3 arguments: string '`MergeDict` is deprecated, use `dict.update()` instead.',","warnings . warn ( '`MergeDict` is deprecated, use `dict.update()` ' 'instead.' , RemovedInDjango19Warning , 2 )"
4404,"define the method setlist with 3 arguments: self, key and list_.","def setlist ( self , key , list_ ) :"
4405,substitute new for self.mod.,self . mod = new
4406,substitute url_name for self.url_name.,self . url_name = url_name
4407,"if flags is not None,",if flags is not None :
4408,"'SafeMIMEMultipart', 'DEFAULT_ATTACHMENT_MIME_TYPE', 'make_msgid', 'BadHeaderError', 'forbid_multi_line_headers', 'get_connection', 'send_mail', 'send_mass_mail', 'mail_admins' and 'mail_managers'. define function get_connection with backend set to None, fail_silently set to boolean False and dictionary kwds as arguments.","def get_connection ( backend = None , fail_silently = False , ** kwds ) :"
4409,"format string ""%s%s%s"" with 3 elements: result of the function random.getstate, result of the call the the function time.time,","random . seed ( hashlib . sha256 ( ( ""%s%s%s"" % ( random . getstate ( ) , time . time ( ) , settings . SECRET_KEY ) ) . encode ( 'utf-8' ) ) . digest ( ) )"
4410,"try,",try :
4411,append list containing string '--no-location' to self.xgettext_options.,self . xgettext_options = self . xgettext_options [ : ] + [ '--no-location' ]
4412,"choices is an property property object of this class, with _get_choices getter and ChoiceField._set_choices setter functions.","choices = property ( _get_choices , ChoiceField . _set_choices )"
4413,"call the method self.get_template_sources with 2 arguments template_name and template_dirs, for every filepath in the result,","for filepath in self . get_template_sources ( template_name , template_dirs ) :"
4414,"compile a regex from raw string '^\.\s*(\w+)\s*', substitute it for DOT_PATTERN.",DOT_PATTERN = re . compile ( r'^\.\s*(\w+)\s*' )
4415,existing_headers is a set of lowercase headers for every header in vary_headers.,existing_headers = set ( header . lower ( ) for header in vary_headers )
4416,"define the method __setitem__ with arguments self, name and val.","def __setitem__ ( self , name , val ) :"
4417,"if OverflowError exception is caught,",except OverflowError :
4418,substitute the value under the fieldname key of the self.fields dictionary for field.,field = self . fields [ fieldname ]
4419,define the method __str__ with an argument self.,def __str__ ( self ) :
4420,substitute connection.features.test_db_allows_multiple_connections for use_threading.,use_threading = connection . features . test_db_allows_multiple_connections
4421,"if pofile path exists,",if os . path . exists ( pofile ) :
4422,substitute loaders for self._loaders.,self . _loaders = loaders
4423,append first element of e.args to not_found list.,not_found . append ( e . args [ 0 ] )
4424,yield ch and boolean False.,"yield ch , False"
4425,"default set to boolean False and help set to a string 'Display all settings, regardless of their value. Default values are prefixed by ""###"".' define the method handle with arguments self and unpacked dictionary options.","def handle ( self , ** options ) :"
4426,increment weight by integer 2.,weight += 2
4427,return func.,return func
4428,"if min_value is not None,",if min_value is not None :
4429,"if length of x is equal to integer 0,",if len ( x ) == 0 :
4430,"if ImportError exception is caught,",except ImportError :
4431,"increment doublecolon_len by integer 1,",doublecolon_len += 1
4432,"join app_config.path and 'locale' into a valid directory path, separated by '/', append it to basedirs.","basedirs . append ( os . path . join ( app_config . path , 'locale' ) )"
4433,from django.utils.encoding import force_text and smart_text into default name space.,"from django . utils . encoding import force_text , smart_text"
4434,"if six.PY3 is true,",if six . PY3 :
4435,"replace '%s' in string ""%s = %s ###"" with key and value under the key key of the user_setting dictionary, append it to the output.","output . append ( ""%s = %s ###"" % ( key , user_settings [ key ] ) )"
4436,processors is an empty tuple.,processors = ( )
4437,"if not,",else :
4438,from django.conf import settings into default name space.,from django . conf import settings
4439,from django.conf import settings into default name space.,from django . conf import settings
4440,"if expanded_template is a directory,",if path . isdir ( expanded_template ) :
4441,"if ValueError exception is caught,",except ValueError :
4442,"for every i and v in enumerated iterable value,","for i , v in enumerate ( value ) :"
4443,"compile the regex ""^https?://"" with an argument re.I, substitute it for absolute_http_url_re.","absolute_http_url_re = re . compile ( r""^https?://"" , re . I )"
4444,import warnings.,import warnings
4445,call the method os.dup2 with 2 arguments: result of the method se.fileno and result of the method sys.stderr.fileno.,"os . dup2 ( se . fileno ( ) , sys . stderr . fileno ( ) )"
4446,"if target_dir path doesnt exists,",if not path . exists ( target_dir ) :
4447,and unpacked dictionary kwargs. instance.keyOrder is an empty list.,instance . keyOrder = [ ]
4448,"if IndexError exception is caugh,",except IndexError :
4449,"default_error_messages is an dictionary with an initial entry: result of the function _ called with an argument string,","default_error_messages = { 'invalid' : _ ( 'Enter a whole number.' ) , }"
4450,return a tuple with an element self.__offset.,"return self . __offset ,"
4451,"'Enter a number.' for 'invalid', return value of the function ungettext_lazy called with 3 string arguments: 'Ensure that there are no more than %(max)s digit in total.', 'Ensure that there are no more than %(max)s digits in total.', and 'max' for 'max_digits', return value of the function ungettext_lazy called with 3 string arguments: 'Ensure that there are no more than %(max)s decimal place.', 'Ensure that there are no more than %(max)s decimal places.' and 'max', for 'max_decimal_places' and return value of the function ungettext_lazy called with 3 string arguments: 'Ensure that there are no more than %(max)s digit before the decimal point.', 'Ensure that there are no more than %(max)s digits before the decimal point.' and 'max' for 'max_whole_digits'. define the method __init__ with 7 arguments: self, max_value set to None, min_value set to None, max_digits set to None,","def __init__ ( self , max_value = None , min_value = None , max_digits = None , decimal_places = None , * args , ** kwargs ) :"
4452,"for model in return value of the method router.get_migratable_models with arguments app_config, connection.alias,","for model in router . get_migratable_models ( app_config , connection . alias , include_auto_created = True ) :"
4453,import module zipfile.,import zipfile
4454,self.method is None.,self . method = None
4455,"join rendered_widgets into a string, return it.",return '' . join ( rendered_widgets )
4456,"original_lookup, RemovedInDjango20Warning and stacklevel set to integer 3. call the method self.reverse_dict.getlist with an argument lookup_view, substitute the result for possibilities.",possibilities = self . reverse_dict . getlist ( lookup_view )
4457,define the function int2byte with an argument i.,def int2byte ( i ) :
4458,define the method errors with an argument self.,def errors ( self ) :
4459,"match rest string with self.INDEX_PATTERN regex, substitute the result for m.",m = self . INDEX_PATTERN . match ( rest )
4460,substitute self.obj for model.,model = self . obj
4461,derive the class JsLexer from the Lexer base class.,class JsLexer ( Lexer ) :
4462,"cat for 'term'. if value under the 'item_copyright' key of the item dictionary is not None,",if item [ 'item_copyright' ] is not None :
4463,derive the class TokenBase from the object base class.,class TokenBase ( object ) :
4464,skip this loop iteration.,continue
4465,"if IOErro, renamed to e, exception is caught,",except IOError as e :
4466,"call the add_argument method on the parser object with string '--backwards', asction set to 'store_true', dest set to 'backwards',","parser . add_argument ( '--backwards' , action = 'store_true' , dest = 'backwards' , default = False , help = 'Creates SQL to unapply the migration, rather than to apply it' )"
4467,"if tablename is contained in return value of the method connection.introspection.table_names,",if tablename in connection . introspection . table_names ( ) :
4468,read the whole self file and yield it as a generator return value.,yield self . read ( )
4469,"if InputStreamExhausted exception is caught,",except InputStreamExhausted :
4470,from django.utils.encoding import smart_text into default name space.,from django . utils . encoding import smart_text
4471,"if StandardError, renamed to e, exception is caught,",except StandardError as e :
4472,"call the function make_origin with 4 arguments: display_name, loader, name and dirs, return a tuple containing 2 elements:","return ( source , make_origin ( display_name , loader , name , dirs ) )"
4473,"if self.verbosity is greater than integer 1,",if self . verbosity > 1 :
4474,"""Django 1.7 changed the global defaults for the MIDDLEWARE_CLASSES. django.contrib.sessions.middleware.SessionMiddleware, django.contrib.auth.middleware.AuthenticationMiddleware, and django.contrib.messages.middleware.MessageMiddleware were removed from the defaults. If your project needs these middleware then you should configure this setting."", obj set to None, and id set to a string '1_7.W001', put the result into a list and return it. if not,",else :
4475,substitute self for result.parent.,result . parent = self
4476,define the method configure_formatter with 2 arguments: self and config.,"def configure_formatter ( self , config ) :"
4477,"call the function force_text with an argument error, return the result.",return force_text ( error )
4478,is_usable is boolean False.,is_usable = False
4479,append value under the key v of foreground dictionary to code_list.,code_list . append ( foreground [ v ] )
4480,append f.name to exclude.,exclude . append ( f . name )
4481,"substitute DEFAULT_MIN_NUM for min_num,",min_num = DEFAULT_MIN_NUM
4482,"define the method update with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def update ( self , * args , ** kwargs ) :"
4483,substitute the limit_value for self.limit_value.,self . limit_value = limit_value
4484,"call the function fields_for_model with 9 arguments: opts.model, opts.fields, opts.exclude, opts.widgets, formfield_callback,","fields = fields_for_model ( opts . model , opts . fields , opts . exclude , opts . widgets , formfield_callback , opts . localized_fields , opts . labels , opts . help_texts , opts . error_messages )"
4485,"define the method render with 4 arguments: self, name, value and attrs set to None.","def render ( self , name , value , attrs = None ) :"
4486,"value under '_data' key of obj_dict is a dictionary created with tuples containing 2 elements: k and result of the function,","obj_dict [ '_data' ] = dict ( ( k , self . getlist ( k ) ) for k in self )"
4487,call the method self._stream.read with 2 arguments: unpacked list args and unpacked dictionary kwargs.,"return self . _stream . read ( * args , ** kwargs )"
4488,"raise an TemplateSyntaxError exception with an argument string '""filter %s"" is not permitted. Use the ""autoescape"" tag instead.',","raise TemplateSyntaxError ( '""filter %s"" is not permitted. Use the ""autoescape"" tag instead.' % filter_name )"
4489,"convert to strings and concatenate context, CONTEXT_SEPARATOR and message, substitute the result for msg_with_ctxt.","msg_with_ctxt = ""%s%s%s"" % ( context , CONTEXT_SEPARATOR , message )"
4490,"tpl is an string ""ExternalReferenceForbidden(system_id='{}', public_id={})"".","tpl = ""ExternalReferenceForbidden(system_id='{}', public_id={})"""
4491,"if six.PY3 is boolean True,",if six . PY3 :
4492,"if settings.MANAGERS does not exist,",if not settings . MANAGERS :
4493,"if not,",else :
4494,"if not,",else :
4495,"convert ip_str to lowercase, if it doesnt start with a string '0000:0000:0000:0000:0000:ffff:',",if not ip_str . lower ( ) . startswith ( '0000:0000:0000:0000:0000:ffff:' ) :
4496,from django.utils.safestring import mark_safe into default name space.,from django . utils . safestring import mark_safe
4497,"call the method token.split_contents, substitute the result for bits.",bits = token . contents . split ( )
4498,call the add_arguments method with parser as argument form the base class of the class Command.,"super ( Command , self ) . add_arguments ( parser )"
4499,define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
4500,delete self.name attribute from the obj.__class__ object.,"delattr ( obj . __class__ , self . name )"
4501,return val.,return val
4502,supported is boolean False.,supported = False
4503,"call the __init__ method with 3 arguments: CRITICAL, unpacked list args and unpacked dictionary kwargs from the base class of Critical.","return super ( Critical , self ) . __init__ ( CRITICAL , * args , ** kwargs )"
4504,remove the first element from result.,result . pop ( )
4505,"get dictionary self items, convert the result into a dictionary, convert the result into a string and return it.",return str ( dict ( self . items ( ) ) )
4506,call the method obj.save with an argument using set to self.using.,obj . save ( using = self . using )
4507,"call the method pop from the base class of the class SortedDict, with 2 arguments k and unpacked list args,","result = super ( SortedDict , self ) . pop ( k , * args )"
4508,substitute locale_dir for self.locale_dir.,self . locale_dir = locale_dir
4509,sort all_files and return it.,return sorted ( all_files )
4510,"call the function getargspec with an argument func, substitute the result for args, varargs, varkw and defaults, respectively.","args , varargs , varkw , defaults = getargspec ( func )"
4511,from django.conf import settings into default name space.,from django . conf import settings
4512,"if consume_next is true,",if consume_next :
4513,define the method ordered_forms with an argument self.,def ordered_forms ( self ) :
4514,"if return value of the code_changed function is true,",if code_changed ( ) :
4515,"call the function force_text with an argument field.help_text, format help_text_html with it, substitute the result for help_text.",help_text = help_text_html % force_text ( field . help_text )
4516,"call the method handler.file_complete with i-th element of counters as an argument, substitute the result for file_obj.",file_obj = handler . file_complete ( counters [ i ] )
4517,"get the value under the 'no_startup' key of the options dictionary, if it evaluates to false,",if not options [ 'no_startup' ] :
4518,return self._body.,return self . _body
4519,"if refto is contained in known_models,",if refto in known_models :
4520,"for every i in range of integers from 0 to length of result, not included,",for i in range ( len ( result ) ) :
4521,"yield the result. if ImportError exception is caught,",except ImportError :
4522,"call the executor.migration_plan method with targets as the argument, substitute the result for plan.",plan = executor . migration_plan ( targets )
4523,"if value is false or character '@' is not contained in value,",if not value or '@' not in value :
4524,return default.,return default
4525,import module sys.,import sys
4526,"property decorator,",@ property
4527,substitute pubid for self.pubid.,self . pubid = pubid
4528,"__all__ is a tuple containing strings: 'LOCK_EX', 'LOCK_SH', 'LOCK_NB', 'lock' and 'unlock'.","__all__ = ( 'LOCK_EX' , 'LOCK_SH' , 'LOCK_NB' , 'lock' , 'unlock' )"
4529,call the function __import__ with an argument name.,__import__ ( name )
4530,value under f.name key of the dta dictionary is an empty list.,data [ f . name ] = [ ]
4531,define the function pgettext with 2 arguments: context and message.,"def pgettext ( context , message ) :"
4532,"try,",try :
4533,define the function get_unbound_function with an argument unbound.,def get_unbound_function ( unbound ) :
4534,append self.fk.name to form._meta.fields.,form . _meta . fields . append ( self . fk . name )
4535,"define the method __setitem__ with 3 arguments: self, key and value.","def __setitem__ ( self , key , value ) :"
4536,"builtins is an dictionary with 3 initial entries: boolean True for 'True', boolean False for 'False' and None for 'None'.","builtins = { 'True' : True , 'False' : False , 'None' : None }"
4537,"if name is not None,",if name is not None :
4538,delete the entry of self.cleaned_data dictionary under the key field.,del self . cleaned_data [ field ]
4539,from importlib import import_module into default name space.,from importlib import import_module
4540,"if OSError exception is caught,",except OSError :
4541,code is a string 'invalid'.,code = 'invalid'
4542,"form is an instance of ManagementForm class, created with 3 arguments: self.data, auto_id as self.auto_id and prefix as self.prefix.","form = ManagementForm ( self . data , auto_id = self . auto_id , prefix = self . prefix )"
4543,"join self.namespaces into a string separated with character ':', substitute it for self.namespace.",self . namespace = ':' . join ( self . namespaces )
4544,define the method validate_key with self class instance and key as arguments.,"def validate_key ( self , key ) :"
4545,substitute result for value under key key of self dictionary.,self [ key ] = result
4546,"join elements of output into a string, return the result.",return '' . join ( output )
4547,define the method close with argument self.,def close ( self ) :
4548,substitute self.unparsed_entity_decl for parser.UnparsedEntityDeclHandler.,parser . UnparsedEntityDeclHandler = self . unparsed_entity_decl
4549,"yield string ""#"" as the result.","yield ""#"""
4550,return wrapper.,return wrapper
4551,return FormSet.,return FormSet
4552,code is a string 'invalid',code = 'invalid'
4553,"get the value under the 'database' key of the options dictionary, use it as the key to get the value from the connections dictionary, substitute the result for connection.",connection = connections [ options [ 'database' ] ]
4554,"call the method widget_attrs from the base class of the class CharField, with an argument widget, substitute the result for attrs.","attrs = super ( CharField , self ) . widget_attrs ( widget )"
4555,substitute value under the PREV key of the root dictionary for last.,last = root [ PREV ]
4556,define the function default with 2 arguments value and arg.,"def default ( value , arg ) :"
4557,"while remaining is not equal to integer 0,",while remaining != 0 :
4558,substitute error_class for self.error_class.,self . error_class = error_class
4559,"_assertCountEqual is a strnig ""assertCountEqual"".","_assertCountEqual = ""assertCountEqual"""
4560,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
4561,call self.errors.,self . errors
4562,derive class BaseCOnverter from object base class.,class BaseConverter ( object ) :
4563,"try,",try :
4564,exception_middleware is an empty list.,self . _exception_middleware = [ ]
4565,"if field.rel has an 'to' attribute,","if hasattr ( field . rel , 'to' ) :"
4566,return self._size.,return self . _size
4567,define the function check_for_language with an argument lang_code.,def check_for_language ( lang_code ) :
4568,return boolean True.,return True
4569,substitute last element of bits for taglib.,taglib = bits [ - 1 ]
4570,"if value is not an instance of list type,","if not isinstance ( value , list ) :"
4571,from django.utils.translation import ugettext_lazy as _ and ungettext_lazy into default name space.,"from django . utils . translation import ugettext_lazy as _ , ungettext_lazy"
4572,substitute conditions_nodelists for self.conditions_nodelists.,self . conditions_nodelists = conditions_nodelists
4573,define the method __deepcopy__ with 2 arguments: self and memo.,"def __deepcopy__ ( self , memo ) :"
4574,substitute complain for __delslice__.,__delslice__ = complain
4575,"define the method check with 4 arguments: self, app_configs set to None, tags set to None, display_num_errors set to boolean False.","def check ( self , app_configs = None , tags = None , display_num_errors = False ) :"
4576,"with one entry 'status_code' is integer 400, as arguments. call the http.HttpResponseBadRequest function, assign the result to the response.",response = http . HttpResponseBadRequest ( )
4577,define the method prepare_value with arguments self and value.,"def prepare_value ( self , value ) :"
4578,"call the method nodelist.render with an argument context, return the result.",return nodelist . render ( context )
4579,from pprint import pformat into default name space.,from pprint import pformat
4580,"get the value under the app_label key of the directory_created dictionary, if exists and it is false,","if not directory_created . get ( app_label , False ) :"
4581,"if app_config.path is true,",if not app_config . path :
4582,return _localtime.,return _localtime
4583,"link is a list with 4 elements: last, root, key and result.","link = [ last , root , key , result ]"
4584,return value under the key key of dictionary in last element of self.dicts.,return self . dicts [ - 1 ] [ key ]
4585,delete entry under item key of self.dict dictionary.,del self . dict [ item ]
4586,define the method __init__ with 2 arguments: self and timezone.,"def __init__ ( self , timezone ) :"
4587,substitute self for result.parent.,result . parent = self
4588,"if length of bits is not equalt to integer 2,",if len ( bits ) != 2 :
4589,"substitute '%s' in string 'Cache key will cause errors if used with memcached: %s (longer than %s)' with key,","warnings . warn ( 'Cache key will cause errors if used with memcached: ' '%s (longer than %s)' % ( key , MEMCACHE_MAX_KEY_LENGTH ) , CacheKeyWarning )"
4590,"if value is true,",if value :
4591,from django.utils.encoding import force_st into default name space.,from django . utils . encoding import force_str
4592,return self.parent_instance.,return self . parent_instance
4593,return id_.,return id_
4594,substitute self.html_initial_name for name.,name = self . html_initial_name
4595,return value.,return value
4596,return duplicate,return duplicate
4597,define the method __dir__ with an argument self.,def __dir__ ( self ) :
4598,close the process with an argument 1.,sys . exit ( 1 )
4599,return plural_suffix.,return plural_suffix
4600,define the method top with an argument self.,def top ( self ) :
4601,"__all__ is a tuple, containing strings 'NamedTemporaryFile' and 'gettempdir'.","__all__ = ( 'NamedTemporaryFile' , 'gettempdir' , )"
4602,"update a dictionary with an entry v converted to an integer for k, for every k and v in result of the function six.iteritems,","kw = dict ( ( k , int ( v ) ) for k , v in six . iteritems ( kw ) if v is not None )"
4603,define the method as_text with an argument self.,def as_data ( self ) :
4604,"define the method get with 5 arguments, self class instance, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def set ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
4605,return lookup_view,return lookup_view
4606,"if i is greater than or equal to the result of the method self.initial_form_count,",if i >= self . initial_form_count ( ) and not form . has_changed ( ) :
4607,"called with string '__prefix__' as an argument and empty_permitted as boolean True, substitute the result for form. call the method self.add_fields with arguments form and None.","self . add_fields ( form , None )"
4608,"if not,",else :
4609,"call the function check_errors with argument main_func, substitute the result for wrapped_main_func.",wrapped_main_func = check_errors ( main_func )
4610,"call the method os.path.splitext with an argument self.file, assign the result to _ and file_ext.","_ , file_ext = os . path . splitext ( self . file )"
4611,substitute value for url.,url = value
4612,"try,",try :
4613,"FILTER_ARGUMENT_SEPARATOR, FILTER_SEPARATOR, SINGLE_BRACE_END, SINGLE_BRACE_START, TOKEN_BLOCK, TOKEN_COMMENT, TOKEN_TEXT, TOKEN_VAR, TRANSLATOR_COMMENT_MARK, UNKNOWN_SOURCE, VARIABLE_ATTRIBUTE_SEPARATOR, VARIABLE_TAG_END, VARIABLE_TAG_START, filter_re and tag_re. from django.template.base import ContextPopException, InvalidTemplateLibrary, TemplateDoesNotExist, TemplateEncodingError,","from django . template . base import ( ContextPopException , InvalidTemplateLibrary , TemplateDoesNotExist , TemplateEncodingError , TemplateSyntaxError , VariableDoesNotExist )"
4614,"if var is false or whitespaces are contained in var,",if not var or ' ' in var :
4615,add key to the self.bad_cookies set.,self . bad_cookies . add ( key )
4616,"call the method MIMEMultipart.__setitem__ with arguments self, name and val.","MIMEMultipart . __setitem__ ( self , name , val )"
4617,substitute object_list for self.object_list.,self . object_list = object_list
4618,"if _default is None,",if _default is None :
4619,convert per_page into an integer and substitute it for self.per_page.,self . per_page = int ( per_page )
4620,return parent.,return parent
4621,"if not,",else :
4622,"if priority is true,",if priority :
4623,"if self.can_delete is true and call to the function self._should_delete_form with an argument form evaluates to true,",if self . can_delete and self . _should_delete_form ( form ) :
4624,"call the function supports_color, if evaluates to False,",if not supports_color ( ) :
4625,"try,",try :
4626,"if context.autoescape is true and output is not an instance of SafeData class or output is an instance of EscapeData class,","if ( context . autoescape and not isinstance ( output , SafeData ) ) or isinstance ( output , EscapeData ) :"
4627,"if self._changed_data is None,",if self . _changed_data is None :
4628,"call the function safe_join with 2 arguments template_dir and template_name, yield the result.","yield safe_join ( template_dir , template_name )"
4629,f.required is boolean False.,f . required = False
4630,"for every x in upload_handlers if x.chunk_size is true, append x.chunk_size to a list, substitute the result for possible_sizes.",possible_sizes = [ x . chunk_size for x in upload_handlers if x . chunk_size ]
4631,self.addr is an empty string.,self . addr = ''
4632,"property decorator,",@ property
4633,"in string '-W%s' replace '%s' with o for every o in sys.warnoptions, put the result into a list, append the list to a list containing sys.executable, append sys.argv to the end of the resulting list, substitute the result for args.",args = [ sys . executable ] + [ '-W%s' % o for o in sys . warnoptions ] + sys . argv
4634,"directories, files are empty lists.","directories , files = [ ] , [ ]"
4635,replace every occurrence of '' in s with '<\\/'.,"s = s . replace ( '' , '<\\/' )"
4636,"if ImportError exception is caught,",except ImportError :
4637,"if app_config.models_module is None,",if app_config . models_module is None :
4638,"decorator stringfilter,",@ stringfilter
4639,"call the method self.queryset.none, return the result.",return self . queryset . none ( )
4640,do nothing.,pass
4641,"if list_ is not an instance of tuple or list types and length of list_ is not equal to integer 2,","if not isinstance ( list_ , ( tuple , list ) ) or len ( list_ ) != 2 :"
4642,"if not,",else :
4643,"call the method __init__ with an argument data, from the base class of the class DictWrapper.","super ( DictWrapper , self ) . __init__ ( data )"
4644,"if cookie is an empty string,",if cookie == '' :
4645,substitute cache.get for cache_get.,cache_get = cache . get
4646,"call the method path.decode with an argument fs_encoding, return the result.",return path . decode ( fs_encoding )
4647,"if exctype is not WindowsError or string 'Access is denied' is not contained in value converted into a string,",if exctype is not WindowsError or 'Access is denied' not in str ( value ) :
4648,substitute value under the 'interactive' key of the options dictionary for interactive.,interactive = options . get ( 'interactive' )
4649,"call the method self._should_delete_form with an argument, if it evaluates to true,",if self . _should_delete_form ( form ) :
4650,"call the method self._convert_to_charset with arguments: header and string 'ascii', substitute the result for header.","header = self . _convert_to_charset ( header , 'ascii' )"
4651,"define the method strptime with arguments self, value and format.","def strptime ( self , value , format ) :"
4652,"call the method constant_re.findall with an argument t.contents, for every fmatch in the result,",for fmatch in constant_re . findall ( t . contents ) :
4653,"and trimmed, write the result to out. for every part in singular,",for part in singular :
4654,"sort value with key set to filed resolve of instance of a class Variable, created with an argument arg, return the result.","return sorted ( value , key = Variable ( arg ) . resolve )"
4655,nonlocal_root is an list with an element root.,nonlocal_root = [ root ]
4656,"call the method to_python with an argument data from the base class of the class ImageField, substitute the result for f.","f = super ( ImageField , self ) . to_python ( data )"
4657,"call the method Module_six_moves_urllib_request with an argument: string "".moves.urllib.request"" appended to __name__,","sys . modules [ __name__ + "".moves.urllib_request"" ] = sys . modules [ __name__ + "".moves.urllib.request"" ] = Module_six_moves_urllib_request ( __name__ + "".moves.urllib.request"" )"
4658,"if not,",else :
4659,define the function unlock with argument f.,def unlock ( f ) :
4660,return kwargs.,return kwargs
4661,"get is a tuple containing elements generated by the call to the function pformat with an argument META_override,",meta = ( pformat ( META_override ) if META_override is not None else pformat ( request . META ) )
4662,"year_days is a list with 13 elements: None, integer 0, integer 31, integer 59, integer 90, integer 120, integer 151, integer 181,","year_days = [ None , 0 , 31 , 59 , 90 , 120 , 151 , 181 , 212 , 243 , 273 , 304 , 334 ]"
4663,"call the method compile_func with 2 arguments self and token, substitute the result for compiled_result.","compiled_result = compile_func ( self , token )"
4664,"otherwise if field.rel is true and field.rel is an instance of the models.ManyToOneRel object,","elif field . rel and isinstance ( field . rel , models . ManyToOneRel ) :"
4665,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
4666,write a newline into a self.stream file stream.,self . stream . write ( '\n' )
4667,"if localized_fields equals ALL_FIELDS, or if localized_fields is true and f.name is contained in localized_fields,",if localized_fields == ALL_FIELDS or ( localized_fields and f . name in localized_fields ) :
4668,"take subject elements from p-th to i-th index, substitute it for s.",s = subject [ p : i ]
4669,from math import ceil into default name space.,from math import ceil
4670,"define the method __init__ with arguments self, flo and chunk_size set to integer 64 multiplied by integer 1024.","def __init__ ( self , flo , chunk_size = 64 * 1024 ) :"
4671,substitute input_data for self._input_data.,self . _input_data = input_data
4672,"get name attribute from the instance object, call it and return the result.","return getattr ( instance , name ) ( )"
4673,"try,",try :
4674,"if form._meta.widgets is true,",if form . _meta . widgets :
4675,substitute val_expr for self.val_expr.,self . val_expr = val_expr
4676,"if log is contained in child_loggers,",if log in child_loggers :
4677,"use the result as an key to get the value of the form.data dictionary, assign it value None. use return value of the self.fk.get_attname as the name of the attribute of form.instance object to set, set it to self.instance.pk.","setattr ( form . instance , self . fk . get_attname ( ) , self . instance . pk )"
4678,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
4679,define the function debug with 2 arguments: parser and token.,"def debug ( parser , token ) :"
4680,"if call to the method self._css.get with an argument medium evaluates to false,",if not self . _css . get ( medium ) or path not in self . _css [ medium ] :
4681,"sorted_issues is a list of tuples with 5 entries: criticals and 'CRITICALS', errors and 'ERRORS', warnings and 'WARNINGS',","sorted_issues = [ ( criticals , 'CRITICALS' ) , ( errors , 'ERRORS' ) , ( warnings , 'WARNINGS' ) , ( infos , 'INFOS' ) , ( debugs , 'DEBUGS' ) , ]"
4682,substitute self.html_initial_id for value under the 'id' key of the attrs dictionary.,attrs [ 'id' ] = self . html_initial_id
4683,from django.utils import six into default name space.,from django . utils import six
4684,"if pks is true,",if pks :
4685,define the method __init__ with 2 arguments: self and callback.,"def __init__ ( self , callback ) :"
4686,substitute name for self.name.,self . name = name
4687,"try,",try :
4688,"help is a tuple containing a string ""Output the contents of the database as a fixture of the given ""","help = ( ""Output the contents of the database as a fixture of the given "" ""format (using each model's default manager unless --all is "" ""specified)."" )"
4689,"if viewname is not an instance of the six.string_types object,","if not isinstance ( viewname , six . string_types ) :"
4690,"if six.PY2 is true, _BASE64_DECODE_ERROR is TypeError, if not, _BASE64_DECODE_ERROR is binascii.Error.",_BASE64_DECODE_ERROR = TypeError if six . PY2 else binascii . Error
4691,get_language_bidi is lambda function returning boolean True if settings.LANGUAGE_CODE is contained in settings.LANGUAGES_BIDI.,get_language_bidi = lambda : settings . LANGUAGE_CODE in settings . LANGUAGES_BIDI
4692,evaluate the self.getpos() and assign the result to the lineno and offset respectfully.,"lineno , offset = self . getpos ( )"
4693,"call the self._open method with name and mode arguments, return the result.","return self . _open ( name , mode )"
4694,"derive class BaseHandler, derive from the base class object, making this a new style class.",class BaseHandler ( object ) :
4695,import stat.,import stat
4696,"call the getvalue method from the base class of the class PythonSerializer, return the result.","return super ( PythonSerializer , self ) . getvalue ( )"
4697,"if app_config.models_module is None,",if app_config . models_module is None :
4698,"kwargs is an empty dictionary,",kwargs = { }
4699,define the method is_url with arguments self and template.,"def is_url ( self , template ) :"
4700,"try,",try :
4701,convert whitespace character to unicode and substitute the result for space.,"space = unicode ( "" "" )"
4702,"try,",try :
4703,"if self.load_initial_data is not empty,",if self . load_initial_data :
4704,call the function validate_ipv6_address with an argument value.,validate_ipv6_address ( value )
4705,"call the method loader.get_migration with arguments node_app and node_name, extend the migration.merged_operations with the operations field of the result.","migration . merged_operations . extend ( loader . get_migration ( node_app , node_name ) . operations )"
4706,"if file_ext is contained in command.extensions, is_templatized is boolean True, otherwise it is boolean False.",is_templatized = file_ext in command . extensions
4707,return saved_instances.,return saved_instances
4708,"divide absolute offset by module 60, use the result to format string '%02d%02d', substitute it for hhmm.","hhmm = '%02d%02d' % divmod ( abs ( offset ) , 60 )"
4709,"unpack a dictionary with an entry id_for_label for 'for', map it through attrs mapping if attrs is true,","attrs = dict ( attrs or { } , ** { 'for' : id_for_label } )"
4710,from django.forms.widgets import HiddenInput into default name space.,from django . forms . widgets import HiddenInput
4711,increment i by integer 1.,i += 1
4712,raise an TypeError exception with an argument string 'In order to allow non-dict objects to be serialized set the safe parameter to False'.,raise TypeError ( 'In order to allow non-dict objects to be ' 'serialized set the safe parameter to False' )
4713,return an empty string.,return ''
4714,define the method end_serialization with an argument self.,def end_serialization ( self ) :
4715,return WSGIHandler object.,return WSGIHandler ( )
4716,"call the method parser.add_argument with 5 arguments: string '--all', action set to string 'store_true', dest set to string 'all',","parser . add_argument ( '--all' , action = 'store_true' , dest = 'all' , default = False , help = 'Display all settings, regardless of their value. ' 'Default values are prefixed by ""###"".' )"
4717,import module warnings.,import warnings
4718,define the method __dir__ with an argument self.,def __dir__ ( self ) :
4719,"'may be ambiguous or it may not exist.', substitute the result for message. params is an dictionary containing 2 initial entries: value for 'datetime' and current_timezone for 'current_timezone'.","params = { 'datetime' : value , 'current_timezone' : current_timezone }"
4720,"return nothing,",return
4721,"if field_name is false,",if not field_name :
4722,"evaluate self.stream.getvalue method, return the result.",return self . stream . getvalue ( )
4723,"try,",try :
4724,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
4725,return boolean True.,return True
4726,"define initialization method __init__ with 4 arguments: self, host, list of arguments args and dictionary of arguments kwargs.","def __init__ ( self , host , * args , ** kwargs ) :"
4727,if mw_instance has an attribute named 'process_exception'.,"if hasattr ( mw_instance , 'process_exception' ) :"
4728,date_keys is a tuple with 2 arguments: strings 'updateddate' and 'pubdate'.,"date_keys = ( 'updateddate' , 'pubdate' )"
4729,"if self.scheme equals to string 'https', return boolean True, otherwise return boolean False.",return self . scheme == 'https'
4730,"call the method parser.add_argument with 3 arguments: string '--database', default set to DEFAULT_DB_ALIAS,","parser . add_argument ( '--database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to print the SQL for. Defaults to the ' '""default"" database.' )"
4731,"MONTHS is an dictionary with 12 entries: result of the call to the function _ with an argument string 'January' for 1,","MONTHS = { 1 : _ ( 'January' ) , 2 : _ ( 'February' ) , 3 : _ ( 'March' ) , 4 : _ ( 'April' ) , 5 : _ ( 'May' ) , 6 : _ ( 'June' ) , 7 : _ ( 'July' ) , 8 : _ ( 'August' ) , 9 : _ ( 'September' ) , 10 : _ ( 'October' ) , 11 : _ ( 'November' ) , 12 : _ ( 'December' ) }"
4732,import module re.,import re
4733,if match evaluates to False throw an exception with the string message 'unexpected call to parse_starttag()'.,"assert match , 'unexpected call to parse_starttag()'"
4734,"call the function smart_split with an argument self.contents, substitute the result converted to an iterable for bits.",bits = iter ( smart_split ( self . contents ) )
4735,"otherwise if length of app_labels is greater than integer 1,",elif len ( app_labels ) > 1 :
4736,delete logging._handlerList list.,del logging . _handlerList [ : ]
4737,derive the class Command from the BaseCommand class.,class Command ( BaseCommand ) :
4738,input_type is a string 'number'.,input_type = 'number'
4739,raise an NotImplementedError exception with argument string 'subclasses of BaseEmailBackend must override send_messages() method'.,raise NotImplementedError ( 'subclasses of BaseEmailBackend must override send_messages() method' )
4740,"in string '%s_%d', replace '%s' with new_name and '%d' with num, while the result is contained in used_column_names,","while '%s_%d' % ( new_name , num ) in used_column_names :"
4741,"substitute '%s' in string ' # %s' with line, write it to out file.",out . write ( ' # %s' % line )
4742,"try,",try :
4743,"substitute the result for filters dictionary value under name key. if StandardError, renamed to e, exception is caught,",except StandardError as e :
4744,return string 'https'.,return 'https'
4745,derive the class LoaderOrigin from the Origin base class.,class LoaderOrigin ( Origin ) :
4746,"cached_property decorator,",@ cached_property
4747,return line.,return line
4748,"call the method __init__ from the base class of the class BaseModelForm, with 8 arguments: data, files, auto_id, prefix, object_data,","super ( BaseModelForm , self ) . __init__ ( data , files , auto_id , prefix , object_data , error_class , label_suffix , empty_permitted )"
4749,"convert col_name to lowercase, substitute the result for new_name.",new_name = col_name . lower ( )
4750,"if IndexError, ValueError, KeyError or TypeError exceptions are caught,","except ( IndexError , ValueError , KeyError , TypeError ) :"
4751,substitute library for self._lib.,self . _lib = library
4752,"if name equals a string 'content-disposition',",if name == 'content-disposition' :
4753,"return the result. if type of s equals bytes,",if type ( s ) == bytes :
4754,"if self.first is false,",if not self . first :
4755,"call the function get_commands, call the method keys on the result, substitute sorted result for usage.",usage = sorted ( get_commands ( ) . keys ( ) )
4756,increment stats dictionary value under the HITS key by integer 1.,stats [ HITS ] += 1
4757,"call the function allow_lazy with 2 arguments: linebreaks, six.text_type, substitute the result for linebreaks.","linebreaks = allow_lazy ( linebreaks , six . text_type )"
4758,"otherwise if result of the call to the function _len with an argument cache is greater than or equal to maxsize,",elif _len ( cache ) >= maxsize :
4759,"if fp is None,",if fp is None :
4760,return boolean False.,return False
4761,define the function urlize with 2 arguments value and autoescape set to None.,"def urlize ( value , autoescape = None ) :"
4762,"call the method cursor.execute with string ""INSERT INTO %s (cache_key, value, expires) VALUES (%%s, %%s, %%s)"",","cursor . execute ( ""INSERT INTO %s (cache_key, value, expires) "" ""VALUES (%%s, %%s, %%s)"" % table , [ key , b64encoded , exp ] )"
4763,"called with arguments v and self.encoding, extend the output with the result. join elements of the output into a string, separated with '&', return the result.",return '&' . join ( output )
4764,define the function get_quantifier with 2 arguments ch and input_iter.,"def get_quantifier ( ch , input_iter ) :"
4765,is_required is boolean False.,is_required = False
4766,define the method open with arguments self and mode set to None.,"def open ( self , mode = None ) :"
4767,"call the Warning function with 4 arguments: string ""MIDDLEWARE_CLASSES is not set."", hint tuple containing one string,","return [ Warning ( ""MIDDLEWARE_CLASSES is not set."" , hint = ( ""Django 1.7 changed the global defaults for the MIDDLEWARE_CLASSES. "" ""django.contrib.sessions.middleware.SessionMiddleware, "" ""django.contrib.auth.middleware.AuthenticationMiddleware, and "" ""django.contrib.messages.middleware.MessageMiddleware were removed from the defaults. "" ""If your project needs these middleware then you should configure this setting."" ) , obj = None , id = '1_7.W001' , ) ]"
4768,return filename and display_url.,"return filename , display_url"
4769,assign the return value of the function fn to change.,change = fn ( )
4770,raise an ValueError exception.,raise ValueError
4771,"if self.use_argparse is false,",if not self . use_argparse :
4772,increment self.fixture_object_count by objects_in_fixture.,self . fixture_object_count += objects_in_fixture
4773,"open file named file_or_path for reading, store the file object handle in file.","file = open ( file_or_path , 'rb' )"
4774,"return an instance of SafeBytes, created with an argument data.",return SafeBytes ( data )
4775,"raise an TemplateSyntaxError exception with an argument string ""%s requires %d arguments, %d provided"",","raise TemplateSyntaxError ( ""%s requires %d arguments, %d provided"" % ( name , alen - dlen , plen ) )"
4776,"define the method handle_merge with arguments self, loader and conflicts.","def handle_merge ( self , loader , conflicts ) :"
4777,break from the loop execution.,break
4778,"call the method numberformat.format with 6 arguments: value, result of the function get_format called with 3 arguments:","return numberformat . format ( value , get_format ( 'DECIMAL_SEPARATOR' , lang , use_l10n = use_l10n ) , decimal_pos , get_format ( 'NUMBER_GROUPING' , lang , use_l10n = use_l10n ) , get_format ( 'THOUSAND_SEPARATOR' , lang , use_l10n = use_l10n ) , force_grouping = force_grouping )"
4779,print FASTCGI_HELP to the standard output.,print ( FASTCGI_HELP )
4780,"if self._wrapped is empty,",if self . _wrapped is empty :
4781,output is an empty list.,output = [ ]
4782,"get the value under the 'verbosity' key of the options dictionary, convet it to an integer and substitute for self.verbosity.",self . verbosity = int ( options . get ( 'verbosity' ) )
4783,"if output is true,",if output :
4784,"convert object self to a dictionary, return it.",return dict ( self )
4785,data is an empty list.,data = [ ]
4786,define the function decorator_from_middleware with an argument middleware_class.,def decorator_from_middleware ( middleware_class ) :
4787,"and third element of the result of the function sys.exc_info. for every i and handler in enumerated iterable handlers,","for i , handler in enumerate ( handlers ) :"
4788,from django.http.multipartparser import MultiPartParser and MultiPartParserError into default name space.,"from django . http . multipartparser import MultiPartParser , MultiPartParserError"
4789,"opt_dict is an dictionary with 5 elements: '1' for 'bold', '4' for 'underscore', '5' for 'blink', '7' for 'reverse',","opt_dict = { 'bold' : '1' , 'underscore' : '4' , 'blink' : '5' , 'reverse' : '7' , 'conceal' : '8' }"
4790,"raw string '(?: |<\/i>|<\/b>|<\/em>|<\/strong>|<\/?smallcaps>|<\/?uppercase>)' and re.IGNORECASE, substitute the result for html_gunk_re. call the function re.compile with 2 arguments: raw string '((?:(?:%s).*?[a-zA-Z].*?
\s*)+)',","hard_coded_bullets_re = re . compile ( r'((?:(?:%s).*?[a-zA-Z].*?
\s*)+)' % '|' . join ( re . escape ( x ) for x in DOTS ) , re . DOTALL )"
4791,do nothing.,pass
4792,"convert path to a string, substitute the result for path.",path = str ( path )
4793,loop_dict and value under the 'forloop' key of the context dictionary are dictionaries with an entry: parentloop for 'parentloop'.,loop_dict = context [ 'forloop' ] = { 'parentloop' : parentloop }
4794,"call the method self._headers.values, return the result,",return self . _headers . values ( )
4795,"call the method handler.addQuickElement with 2 arguments: string ""category"" and cat.","handler . addQuickElement ( ""category"" , cat )"
4796,"call the function touch_import with 3 arguments: string 'django.utils.encoding', string 'python_2_unicode_compatible' and decorated.","touch_import ( 'django.utils.encoding' , 'python_2_unicode_compatible' , decorated )"
4797,"separated with result of the function conditional_escape with an argument sep, for every args in args_generator, use the result as an argument for the call to the function mark_safe, return the result. define the function linebreaks with 2 arguments: value and autoescape set to boolean False.","def linebreaks ( value , autoescape = False ) :"
4798,"if not,",else :
4799,"if opts.managed is true,",if opts . managed :
4800,seen is an empty set.,seen = set ( )
4801,"where '%s' is replaced with self.__class__.__name__. property decorator,",@ property
4802,"if key_prefix is None,",if key_prefix is None :
4803,"if self._is_rendered is false,",if not self . _is_rendered :
4804,return cookiedict.,return cookiedict
4805,substitute the return value of the function abspathu with self.base_location as argument for self.location.,self . location = abspathu ( self . base_location )
4806,derive the UploadedFile class from the File base class.,class UploadedFile ( File ) :
4807,remove entry at the attr key of the declared_fields dictionary.,declared_fields . pop ( attr )
4808,"call the method sys._getframe with an argument 1, substitute the result for frame.",frame = sys . _getframe ( 1 )
4809,param is None.,param = None
4810,"convert second item to an iterable,",iter ( second_item )
4811,"call the threading.local method, assign the result to trans_real._active.",trans_real . _active = threading . local ( )
4812,"get the value under the 'ignore_patterns' key of the options dictionary, substitute it for ignore_patterns.",ignore_patterns = options . get ( 'ignore_patterns' )
4813,"if ValueError exception is caught,",except ValueError :
4814,call the cursor.close method.,cursor . close ( )
4815,"try,",try :
4816,substitute first end elements of s for f.,f = s [ : end ]
4817,"if match is true,",if match :
4818,"call the method self.create_select with 6 arguments: name, self.year_field, value, year_val, choices and self.year_none_value,","html [ 'year' ] = self . create_select ( name , self . year_field , value , year_val , choices , self . year_none_value )"
4819,"call the method to_python with an argument data from the base class of the class BooleanField, return the result.","return super ( BooleanField , self ) . to_python ( value )"
4820,"append work_file to string '#: ', substitute it for old.",old = '#: ' + work_file [ 2 : ]
4821,"evaluate pickle.loads with argument pickled, return the result.",return pickle . loads ( pickled )
4822,return self.,return self
4823,"convert field into a string and concatenate it to a string '* ', append the result to output.",output . append ( '* %s' % field )
4824,define the function module_has_submodule with 2 arguments: package and module_name.,"def module_has_submodule ( package , module_name ) :"
4825,"if not accept is an empty string. call the function parse_accept_lang_header with an argument accept, for every accept_lang and unused in the result,","for accept_lang , unused in parse_accept_lang_header ( accept ) :"
4826,"if errors is true,",if errors :
4827,"if initial_value is not equal to data_value, return boolean True, otherwise return boolean False.",return initial_value != data_value
4828,"for every line in sequence_sql,",for line in sequence_sql :
4829,"call the method self.prepare_value with an argument initial_value, use it as the argument for the call to the function force_text,",return force_text ( self . prepare_value ( initial_value ) ) != force_text ( data_value )
4830,output is an empty list.,output = [ ]
4831,"if 'warning' is contained in kwargs,",if 'warning' in kwargs :
4832,derive the class EscapeBytes from bytes and EscapeData base classes.,"class EscapeBytes ( bytes , EscapeData ) :"
4833,substitute max_value and min_value for self.max_value and self.min_value.,"self . max_value , self . min_value = max_value , min_value"
4834,"if value is not None,",if value is not None :
4835,"if not,",else :
4836,"calculate reminder of division of x by length to_digits, substitute it for digit.",digit = x % len ( to_digits )
4837,close the process with an argument 0.,os . _exit ( 0 )
4838,do nothing.,pass
4839,"otherwise if value is boolean False,",elif value is False :
4840,derive the class HttpResponseNotModified from the HttpResponse base class.,class HttpResponseNotModified ( HttpResponse ) :
4841,"if field_value is not None,",if field_value is not None :
4842,and remove_tags. from django.utils.http import urlquote into default name space.,from django . utils . http import urlquote
4843,"for every app_label in app_labels,",for app_label in app_labels :
4844,"register.tag decorator,",@ register . tag
4845,call the method signals.got_request_exception.send with sender set to type of the self class instance and request set to request.,"signals . got_request_exception . send ( sender = self . __class__ , request = request )"
4846,"convert fist p elements of language to lowercase, append '_' to it,",return language [ : p ] . lower ( ) + '_' + language [ p + 1 ] . upper ( ) + language [ p + 2 : ] . lower ( )
4847,MEMCACHE_MAX_KEY_LENGTH is integer 250.,MEMCACHE_MAX_KEY_LENGTH = 250
4848,INITIAL_FORM_COUNT is a string 'INITIAL_FORMS'.,INITIAL_FORM_COUNT = 'INITIAL_FORMS'
4849,while i is lesser than length of subject and i-th element of subject is an empty space or tab character.,"while i < len ( subject ) and subject [ i ] in ( ' ' , '\t' ) :"
4850,"if length of t equals to integer 2,",if len ( t ) == 2 :
4851,define the method file_complete with arguments: self and file_size.,"def file_complete ( self , file_size ) :"
4852,"try,",try :
4853,"call the function errors.error_dict.items, for every field and messages in the result,","for field , messages in errors . error_dict . items ( ) :"
4854,"call the method parser.next_token, substitute the result for token.",token = parser . next_token ( )
4855,"new_method_proxy, __class__ is an property object created with previous result as an argument. call the function new_method_proxy with an argument operator.eq, substitute the result for __eq__.",__eq__ = new_method_proxy ( operator . eq )
4856,from itertools import product into default name space.,from itertools import product
4857,from django.db.migrations.writer import MigrationWriter into default name space.,from django . db . migrations . writer import MigrationWriter
4858,"_moved_attributes is a list with 55 initial elements, 13 of them are the results of the call to the function MovedAttribute,","_moved_attributes = [ MovedAttribute ( ""cStringIO"" , ""cStringIO"" , ""io"" , ""StringIO"" ) , MovedAttribute ( ""filter"" , ""itertools"" , ""builtins"" , ""ifilter"" , ""filter"" ) , MovedAttribute ( ""filterfalse"" , ""itertools"" , ""itertools"" , ""ifilterfalse"" , ""filterfalse"" ) , MovedAttribute ( ""input"" , ""__builtin__"" , ""builtins"" , ""raw_input"" , ""input"" ) , MovedAttribute ( ""map"" , ""itertools"" , ""builtins"" , ""imap"" , ""map"" ) , MovedAttribute ( ""range"" , ""__builtin__"" , ""builtins"" , ""xrange"" , ""range"" ) , MovedAttribute ( ""reload_module"" , ""__builtin__"" , ""imp"" , ""reload"" ) , MovedAttribute ( ""reduce"" , ""__builtin__"" , ""functools"" ) , MovedAttribute ( ""StringIO"" , ""StringIO"" , ""io"" ) , MovedAttribute ( ""UserString"" , ""UserString"" , ""collections"" ) , MovedAttribute ( ""xrange"" , ""__builtin__"" , ""builtins"" , ""xrange"" , ""range"" ) , MovedAttribute ( ""zip"" , ""itertools"" , ""builtins"" , ""izip"" , ""zip"" ) , MovedAttribute ( ""zip_longest"" , ""itertools"" , ""itertools"" , ""izip_longest"" , ""zip_longest"" ) , MovedModule ( ""builtins"" , ""__builtin__"" ) , MovedModule ( ""configparser"" , ""ConfigParser"" ) , MovedModule ( ""copyreg"" , ""copy_reg"" ) , MovedModule ( ""dbm_gnu"" , ""gdbm"" , ""dbm.gnu"" ) , MovedModule ( ""http_cookiejar"" , ""cookielib"" , ""http.cookiejar"" ) , MovedModule ( ""http_cookies"" , ""Cookie"" , ""http.cookies"" ) , MovedModule ( ""html_entities"" , ""htmlentitydefs"" , ""html.entities"" ) , MovedModule ( ""html_parser"" , ""HTMLParser"" , ""html.parser"" ) , MovedModule ( ""http_client"" , ""httplib"" , ""http.client"" ) , MovedModule ( ""email_mime_multipart"" , ""email.MIMEMultipart"" , ""email.mime.multipart"" ) , MovedModule ( ""email_mime_text"" , ""email.MIMEText"" , ""email.mime.text"" ) , MovedModule ( ""email_mime_base"" , ""email.MIMEBase"" , ""email.mime.base"" ) , MovedModule ( ""BaseHTTPServer"" , ""BaseHTTPServer"" , ""http.server"" ) , MovedModule ( ""CGIHTTPServer"" , ""CGIHTTPServer"" , ""http.server"" ) , MovedModule ( ""SimpleHTTPServer"" , ""SimpleHTTPServer"" , ""http.server"" ) , MovedModule ( ""cPickle"" , ""cPickle"" , ""pickle"" ) , MovedModule ( ""queue"" , ""Queue"" ) , MovedModule ( ""reprlib"" , ""repr"" ) , MovedModule ( ""socketserver"" , ""SocketServer"" ) , MovedModule ( ""_thread"" , ""thread"" , ""_thread"" ) , MovedModule ( ""tkinter"" , ""Tkinter"" ) , MovedModule ( ""tkinter_dialog"" , ""Dialog"" , ""tkinter.dialog"" ) , MovedModule ( ""tkinter_filedialog"" , ""FileDialog"" , ""tkinter.filedialog"" ) , MovedModule ( ""tkinter_scrolledtext"" , ""ScrolledText"" , ""tkinter.scrolledtext"" ) , MovedModule ( ""tkinter_simpledialog"" , ""SimpleDialog"" , ""tkinter.simpledialog"" ) , MovedModule ( ""tkinter_tix"" , ""Tix"" , ""tkinter.tix"" ) , MovedModule ( ""tkinter_ttk"" , ""ttk"" , ""tkinter.ttk"" ) , MovedModule ( ""tkinter_constants"" , ""Tkconstants"" , ""tkinter.constants"" ) , MovedModule ( ""tkinter_dnd"" , ""Tkdnd"" , ""tkinter.dnd"" ) , MovedModule ( ""tkinter_colorchooser"" , ""tkColorChooser"" , ""tkinter.colorchooser"" ) , MovedModule ( ""tkinter_commondialog"" , ""tkCommonDialog"" , ""tkinter.commondialog"" ) , MovedModule ( ""tkinter_tkfiledialog"" , ""tkFileDialog"" , ""tkinter.filedialog"" ) , MovedModule ( ""tkinter_font"" , ""tkFont"" , ""tkinter.font"" ) , MovedModule ( ""tkinter_messagebox"" , ""tkMessageBox"" , ""tkinter.messagebox"" ) , MovedModule ( ""tkinter_tksimpledialog"" , ""tkSimpleDialog"" , ""tkinter.simpledialog"" ) , MovedModule ( ""urllib_parse"" , __name__ + "".moves.urllib_parse"" , ""urllib.parse"" ) , MovedModule ( ""urllib_error"" , __name__ + "".moves.urllib_error"" , ""urllib.error"" ) , MovedModule ( ""urllib"" , __name__ + "".moves.urllib"" , __name__ + "".moves.urllib"" ) , MovedModule ( ""urllib_robotparser"" , ""robotparser"" , ""urllib.robotparser"" ) , MovedModule ( ""xmlrpc_client"" , ""xmlrpclib"" , ""xmlrpc.client"" ) , MovedModule ( ""xmlrpc_server"" , ""xmlrpclib"" , ""xmlrpc.server"" ) , MovedModule ( ""winreg"" , ""_winreg"" ) , ]"
4859,"call the method os.path.dirname with an argument potfile, join the result, locale and string 'LC_MESSAGES' into a file path,","basedir = os . path . join ( os . path . dirname ( potfile ) , locale , 'LC_MESSAGES' )"
4860,"substitute the result for value. if not,",else :
4861,"if not,",else :
4862,substitute regex for self._regex.,self . _regex = regex
4863,sort elements of list existing.,existing . sort ( )
4864,from django.utils.daemonize import become_daemon into default name space.,from django . utils . daemonize import become_daemon
4865,"decorator python_2_unicode_compatible,",@ python_2_unicode_compatible
4866,"call the method base64.b64encode with argument pickled, substitute the result for b64encoded.",b64encoded = base64 . b64encode ( pickled )
4867,"try,",try :
4868,args_check is a static method.,args_check = staticmethod ( args_check )
4869,define the method __str__ with an argument self.,def __str__ ( self ) :
4870,"row_data is an generator object that returns value under the field key of form.cleaned_data dictionary,",row_data = ( form . cleaned_data [ field ] for field in unique_check if field in form . cleaned_data )
4871,define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
4872,"try,",try :
4873,"raise AttributeError exception,",raise AttributeError
4874,"split ip_str into parts by ':', substitute the result for hextets.",hextets = ip_str . split ( ':' )
4875,substitute super for _super.,_super = super
4876,return output.,return output
4877,do nothing.,pass
4878,"if not,",else :
4879,"raise an exception CommandError, with argument string ""%r conflicts with the name of an existing Python module and cannot be used as a project name. Please try another name."", where '%r' is replaced with project_name.","raise CommandError ( ""%r conflicts with the name of an existing "" ""Python module and cannot be used as a "" ""project name. Please try another name."" % project_name )"
4880,from django.conf import settings into default name space.,from django . conf import settings
4881,"if NotImplementedError exception is caught,",except NotImplementedError :
4882,call the function check_for_migrations with arguments app_config and connection.,"check_for_migrations ( app_config , connection )"
4883,"otherwise if call to the method finder.find_module with an argument name evaluates to true,",elif finder . find_module ( name ) :
4884,"called with an argument value, return the result. call the function allow_lazy with 2 arguments: strip_spaces_between_tags, six.text_type, substitute the result for strip_spaces_between_tags.","strip_spaces_between_tags = allow_lazy ( strip_spaces_between_tags , six . text_type )"
4885,return length of self.items.,return len ( self . items )
4886,"if middleware has an attribute 'process_exception',","if hasattr ( middleware , 'process_exception' ) :"
4887,"if not,",else :
4888,call the method dig1.update with an argument u.,dig1 . update ( u )
4889,return is boolean False.,return False
4890,raise an NotImplementedError exception with an argument string 'subclasses of BaseCommand must provide a handle() method'.,raise NotImplementedError ( 'subclasses of BaseCommand must provide a handle() method' )
4891,"substitute name, nodelist and parent for self.name, self.nodelist and self.parent.","self . name , self . nodelist , self . parent = name , nodelist , parent"
4892,"raise an EnvironmentError exception with string ""Cache directory '%s' does not exist and could not be created"" as argument,","raise EnvironmentError ( ""Cache directory '%s' does not exist "" ""and could not be created'"" % self . _dir )"
4893,"for dirpath, dirnames and filenames, respectively, in directory tree tuple starting from the ldir,","for dirpath , dirnames , filenames in os . walk ( ldir ) :"
4894,"raise an TemplateSyntaxError with an argument string 'Unknown argument for %r tag: %r.', where '%r' is replaced with first element of bits and options.","raise TemplateSyntaxError ( 'Unknown argument for %r tag: %r.' % ( bits [ 0 ] , option ) )"
4895,append '(' to field_type.,field_type += '('
4896,append app_name to the invalid_apps.,invalid_apps . append ( app_name )
4897,from threading import local into default name space.,from threading import local
4898,decorator decorator.,@ decorator
4899,change access mode of path to stat.S_IWRITE mode.,"os . chmod ( path , stat . S_IWRITE )"
4900,"if locale_dir is false,",if not locale_dir :
4901,"try,",try :
4902,"skip this loop iteration,",continue
4903,"define the method decr with self, key, delta defaulting to integer 1 and version defaulting to None as arguments.","def decr ( self , key , delta = 1 , version = None ) :"
4904,yield string 'month' as an return value of the generator.,yield 'month'
4905,self.m2m_data is None.,self . m2m_data = None
4906,"VARIABLE_TAG_START for 'openvariable', VARIABLE_TAG_END for 'closevariable', SINGLE_BRACE_START for 'openbrace', SINGLE_BRACE_END 'closebrace', COMMENT_TAG_START 'opencomment' and COMMENT_TAG_END for 'closecomment'. define the method __init__ with 2 arguments: self and tagtype.","def __init__ ( self , tagtype ) :"
4907,if rhs is an instance of SafeData.,"if isinstance ( rhs , SafeData ) :"
4908,"if value is contained in self.empty_values,",if value in self . empty_values :
4909,"call the function getargspec with an argument func, substitute the result for params, varargs, varkw and defaults.","params , varargs , varkw , defaults = getargspec ( func )"
4910,"if self.timezone is false,",if not self . timezone :
4911,define the function deactivate.,def deactivate ( ) :
4912,called with 2 arguments: request and response. call the method response.add_post_render_callback with an argument callback.,response . add_post_render_callback ( callback )
4913,"call the method six.reraise with 3 arguments: MultiPartParserError, MultiPartParserError created with msg,","six . reraise ( MultiPartParserError , MultiPartParserError ( msg ) , sys . exc_info ( ) [ 2 ] )"
4914,"call the import_string with argument backend, substitute it for backend_cls.",backend_cls = import_string ( backend )
4915,"call the function do_ntranslate with 3 arguments: singular, plural, number and string 'ngettext', return the result.","return do_ntranslate ( singular , plural , number , 'ngettext' )"
4916,"otherwise if ch equals a string ':',",elif ch == ':' :
4917,"if leading is true,",if leading :
4918,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
4919,"if dklen is false,",if not dklen :
4920,substitute kwargs for params.,params = kwargs
4921,settings.SITE_ID.,settings . SITE_ID
4922,"if command is contained in parse_until,",if command in parse_until :
4923,"if attr is contained in flags,",if attr in flags :
4924,"yield string ""# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [app_label]'"" as the result.","yield ""# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [app_label]'"""
4925,do nothing.,pass
4926,call the method self._mark_post_parse_error.,self . _mark_post_parse_error ( )
4927,"default set to boolean False and help set to string 'Tells Django to use an IPv6 address.'. define the method handle with self class instance, list of arguments fixture_labels and dictionary options as arguments.","def handle ( self , * fixture_labels , ** options ) :"
4928,"convert deader to lowercase, if it is contained in self._headers return boolean True, if not, return boolean False.",return header . lower ( ) in self . _headers
4929,"to the negative length of the dir_suffix as the end index and append it to a list, if p doesnt end with dir_suffix, append p to a list, substitute resulting list for norm_patterns. all_files is an empty list.",all_files = [ ]
4930,"read size number of bytes from self.stream stream, store the result in the result.",result = self . stream . read ( size )
4931,call the method settings._setup.,settings . _setup ( )
4932,"try,",try :
4933,"call the method self.prepend_token with an argument token,",self . prepend_token ( token )
4934,substitute the result for formatted_subject. return first 989 elements of formatted_subject.,return formatted_subject [ : 989 ]
4935,"ADDRESS_HEADERS is a set containing strings: 'from', 'sender', 'reply-to', 'to', 'cc', 'bcc', 'resent-from', 'resent-sender',","ADDRESS_HEADERS = set ( [ 'from' , 'sender' , 'reply-to' , 'to' , 'cc' , 'bcc' , 'resent-from' , 'resent-sender' , 'resent-to' , 'resent-cc' , 'resent-bcc' , ] )"
4936,"FIELD is a field"".","FIELD = ""field"""
4937,"if self._is_rendered is false,",if not self . _is_rendered :
4938,"try,",try :
4939,from django.utils import six into default name space.,from django . utils import six
4940,substitute namespaces for the value under language_code key of the self._namespace_dict dictionary.,self . _namespace_dict [ language_code ] = namespaces
4941,"call the function six.StringIO with an argument stream_or_string, substitute the result for self.stream.",self . stream = six . StringIO ( stream_or_string )
4942,path is an list containing path.,path = [ path ]
4943,"value under the DELETION_FIELD_NAME key of the form.fields is an instance of BooleanField class, created with 2 arguments:","form . fields [ DELETION_FIELD_NAME ] = BooleanField ( label = _ ( 'Delete' ) , required = False )"
4944,define the method __bool__ with an argument self.,def __bool__ ( self ) :
4945,"if app_config.label is contained in loader.migrated_apps,",if app_config . label in loader . migrated_apps :
4946,append value to parts.,parts . append ( value )
4947,"get config dictionary element under 'datefmt' key, if it exists substitute it for dfmt, if not, dfmt is None.","dfmt = config . get ( 'datefmt' , None )"
4948,return an empty list.,return [ ]
4949,"if self.verbosity is greater or equal to integer 1,",if self . verbosity >= 1 :
4950,"call the function six.text_type with an argument number, use the result as an argument for the call to the function mark_safe,",return mark_safe ( six . text_type ( number ) )
4951,"if end is lesser than integer 0,",if end < 0 :
4952,"call the function self.create_var with an argument token, return the result.",return self . create_var ( token )
4953,"call the method checks.run_checks with 2 arguments: app_configs set to app_configs, tags set t tags, substitute the result for all_issues.","all_issues = checks . run_checks ( app_configs = app_configs , tags = tags )"
4954,"compile regex from raw string '(?P\d{1,2}):(?P\d{1,2})(?::(?P\d{1,2})(?:\.(?P\d{1,6})\d{0,6})?)?',","time_re = re . compile ( r'(?P\d{1,2}):(?P\d{1,2})' r'(?::(?P\d{1,2})(?:\.(?P\d{1,6})\d{0,6})?)?' )"
4955,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
4956,append string 'Field name made lowercase.' to field_notes.,field_notes . append ( 'Field name made lowercase.' )
4957,from django.utils.functional import lazy into default name space.,from django . utils . functional import lazy
4958,call the function sys.exc_info with an argument exc_info.,exc_info = sys . exc_info ( )
4959,substitute len for _len.,_len = len
4960,"call the method self._base_set with string 'set', key, value and timeout as arguments.","self . _base_set ( 'set' , key , value , timeout )"
4961,"try,",try :
4962,"call the function force_text with an argument value, substitute the result for value under the 'value' key of the final_attrs.",final_attrs [ 'value' ] = force_text ( value )
4963,create directories from the elements in filename.,os . makedirs ( filename )
4964,"convert result of the method self.__iter__ into a list, return element at the idx index.",return list ( self . __iter__ ( ) ) [ idx ]
4965,return an empty string.,return ''
4966,_supported is None.,_supported = None
4967,"if token.contents equals string 'else',",if token . contents == 'else' :
4968,do nothing.,pass
4969,"try,",try :
4970,"if m is None,",if m is None :
4971,"call the method self.fields.items, for every name and field in the result,","for name , field in self . fields . items ( ) :"
4972,cursor is None.,cursor = None
4973,call the method self.stream.flush.,self . stream . flush ( )
4974,"call the function template_localtime with 2 arguments: obj and context.use_tz, substitute the result for obj.","obj = template_localtime ( obj , context . use_tz )"
4975,"joint prefix, character '.' and self._callback_str together, substitute the result for self._callback_str.",self . _callback_str = prefix + '.' + self . _callback_str
4976,return an empty string.,"return """""
4977,"define the method __init__ with 5 arguments: self, display_name, loader, name and dirs.","def __init__ ( self , display_name , loader , name , dirs ) :"
4978,"if self.connection is false,",if not self . connection :
4979,"return boolean True if self.level is greater than or equals to ERROR, otherwise return boolean False.",return self . level >= ERROR
4980,substitute boundary for self._boundary.,self . _boundary = boundary
4981,"call the method match.span, substitute the result for start an end, respectively.","start , end = match . span ( )"
4982,call the method self.write_items with an argument handler.,self . write_items ( handler )
4983,return nothing.,return
4984,derive the class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
4985,"If you see valid patterns in the file then the issue is probably caused by a circular import."" raise an ImproperlyConfigured exception with an argument: return value of the method msg.format, called with an argument name set to self.urlconf_name.",raise ImproperlyConfigured ( msg . format ( name = self . urlconf_name ) )
4986,"call the method self.nodelist.render with an argument context, substitute the result output.",output = self . nodelist . render ( context )
4987,"endless loop,",while True :
4988,define the method _itervalues with an argument self.,def _itervalues ( self ) :
4989,logger.disabled is boolean True.,logger . disabled = True
4990,"e.args is a tuple containing string ""Problem installing fixture '%s': %s"", where '%s' is replaced with fixture_file, e.","e . args = ( ""Problem installing fixture '%s': %s"" % ( fixture_file , e ) , )"
4991,return self.var.,return self . var
4992,define the method modified_time with arguments self and name.,"def modified_time ( self , name ) :"
4993,"and unpacked dictionary connection_params. if self.use_ssl and self.use_tls are false,",if not self . use_ssl and self . use_tls :
4994,"define the initialization method __init__, with self instance of this class, convert_charrefs set to boolean False,","def __init__ ( self , convert_charrefs = False , ** kwargs ) :"
4995,"string 'The inline foreign key did not match the parent instance primary key.' for 'invalid_choice'. define the method __init__ with 4 arguments: self, parent_instance, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , parent_instance , * args , ** kwargs ) :"
4996,return boolean True.,return True
4997,define the method close with argument self.,def close ( self ) :
4998,define the method __deepcopy__ with arguments self and memo.,"def __deepcopy__ ( self , memo ) :"
4999,"if cache_choices is not None,",if cache_choices is not None :
5000,"if app_config.models_module is None,",if app_config . models_module is None :
5001,"call the method lexer.tokenize, use it as an argument for the call to the parser_class function, substitute the result for parser.",parser = parser_class ( lexer . tokenize ( ) )
5002,from django.utils.functional import LazyObject into default name space.,from django . utils . functional import LazyObject
5003,"call the method self.tzname with an argument dt, substitute the result for self._tzname.",self . _tzname = self . tzname ( dt )
5004,"if all_issues is true,",if all_issues :
5005,derive the class ZipArchive from the BaseArchive base class.,class ZipArchive ( BaseArchive ) :
5006,"if locales in not empty,",if locales :
5007,"for every bytes in stream,",for bytes in stream :
5008,"call the method formats.sanitize_separators with an argument value, substitute the result for value.",value = formats . sanitize_separators ( value )
5009,define the function method_decorator with an argument decorator.,def method_decorator ( decorator ) :
5010,import module socket.,import socket
5011,from the base class of the class TypedChoiceField. define the method _coerce with arguments self and value.,"def _coerce ( self , value ) :"
5012,"call the method __getitem__ from the base class of the class MultiValueDict, with an argument key, return the result..","return super ( MultiValueDict , self ) . __getitem__ ( key )"
5013,"call the function quote with 2 arguments: result of the function force_str called with an argument url,","return force_text ( quote ( force_str ( url ) , force_str ( safe ) ) )"
5014,"define the method pop with 3 arguments: self, key and default set to None.","def pop ( self , key , default = None ) :"
5015,"if IndexError exception is caught,",except IndexError :
5016,timeout is integer 300.,timeout = 300
5017,"call the method self.get_resolved_arguments with an argument context, substitute the result for resolved_args and resolved_kwargs.","resolved_args , resolved_kwargs = self . get_resolved_arguments ( context )"
5018,define the method create_var with 2 arguments: self and value.,"def create_var ( self , value ) :"
5019,substitute fcntl.LOCK_NB for LOCK_NB.,LOCK_NB = fcntl . LOCK_NB
5020,"and time.tzinfo, return the result. define the method date with an argument self.",def date ( self ) :
5021,call the function check_for_migrations with an arguments app_config and connection.,"check_for_migrations ( app_config , connection )"
5022,"call the function re.compile with 2 arguments regex, re.UNICODE and substitute the result for regex.","regex = re . compile ( regex , re . UNICODE )"
5023,"if _localtime is None,",if _localtime is None :
5024,"instantiate class Truncator, with an argument value, call the method words on the result with 2 arguments length,","return Truncator ( value ) . words ( length , truncate = ' ...' )"
5025,return integer 0 and ch2.,"return 0 , ch2"
5026,return self.html_name.,return self . html_name
5027,define the method encoding with an argument self.,def encoding ( self ) :
5028,"call the function force_text with an argument text, substitute the result for input_val.",input_val = force_text ( text )
5029,"if vary_on is None,",if vary_on is None :
5030,extend comment_notes list with notes.,comment_notes . extend ( notes )
5031,from django.utils.timezone import template_localtime into default name space.,from django . utils . timezone import template_localtime
5032,none_value is a tuple containing 2 elements: integer 0 and string '---'.,"none_value = ( 0 , '---' )"
5033,"join elements of words into a string, return it.",return '' . join ( words )
5034,"if self.decimal_places is not None,",if self . decimal_places is not None :
5035,"if exception OSError, renamed to e, is caught,",except OSError as e :
5036,"if self.can_delete is true and call to the method self._should_delete_form with an argument form, evaluates to true,",if self . can_delete and self . _should_delete_form ( form ) :
5037,derive the class FileUploadHandler from the object base class.,class FileUploadHandler ( object ) :
5038,"all the method field.rel.to._meta.get_field with field.rel.field_name as argument, call the to_python method on the result with,",data [ field . attname ] = field . rel . to . _meta . get_field ( field . rel . field_name ) . to_python ( field_value )
5039,substitute the last element of parts for parts.,parts = parts [ : - 1 ]
5040,"where '%s' is replaced with first element of bits. otherwise if options equals 'only',",elif option == 'only' :
5041,"for every path in data,",for path in data :
5042,use the result as an argument for the call to the method final_output.extend. add model to known_models set.,known_models . add ( model )
5043,BLOCK_CONTEXT_KEY is a strign 'block_context'.,BLOCK_CONTEXT_KEY = 'block_context'
5044,"if not,",else :
5045,"if not,",else :
5046,substitute the first 255 elements of ext for ext.,ext = ext [ : 255 ]
5047,append form to self.saved_forms.,self . saved_forms . append ( form )
5048,"define the method _has_changed with arguments self, initial and data.","def _has_changed ( self , initial , data ) :"
5049,"get _itervalues attribute of the class d, call the result with an argument unpacked dictionary kw, convert the result to a iterable,","return iter ( getattr ( d , _itervalues ) ( ** kw ) )"
5050,"call the function lazy with 4 arguments: get_format, six.text_type, list and tuple, substitute the result for get_format_lazy.","get_format_lazy = lazy ( get_format , six . text_type , list , tuple )"
5051,set name attribute of self._wrapped object to value.,"setattr ( self . _wrapped , name , value )"
5052,"where '%d' is replaced with self.loaded_object_count and self.fixture_count, respectively. if not,",else :
5053,"call the function is_library_missing with an argument taglib_module, if it evaluates to true,",if is_library_missing ( taglib_module ) :
5054,raise an NotImplementedError with an argument string 'subclasses of BaseLoader must provide a load_template_source() method'.,raise NotImplementedError ( 'subclasses of BaseLoader must provide a load_template_source() method' )
5055,substitute self for result.parent.,result . parent = self
5056,"if self.use_natural_foreign_keys is true and field.rel.to has an attribute 'natural_key',","if self . use_natural_foreign_keys and hasattr ( field . rel . to , 'natural_key' ) :"
5057,define the function upath with an argument path.,def upath ( path ) :
5058,"call the method s.encode with an argument string 'utf-8', substitute the result for s.",s = s . encode ( 'utf-8' )
5059,"join together callback.__module__, character ""."" and callback.__name__, substitute the result for lookup_str.","lookup_str = callback . __module__ + ""."" + callback . __name__"
5060,"self.id_for_label is true,",if self . id_for_label :
5061,"dest set to string 'list_tags' and help set to string 'List available tags.'. define method handle with arguments self, unapcked list app_labels and unpacked dictionary options.","def handle ( self , * app_labels , ** options ) :"
5062,"where '%r' are replaced by val and name, respectively. try,",try :
5063,close the file object.,self . file . close ( )
5064,"if value has an attribute 'close',","if hasattr ( value , 'close' ) :"
5065,url is a string 'mailto:%s@%s' formated with local and domain.,"url = 'mailto:%s@%s' % ( local , domain )"
5066,derive the class RadioChoiceInput from the ChoiceInput base class.,class RadioChoiceInput ( ChoiceInput ) :
5067,self.content_length is None.,self . content_length = None
5068,substitute DebugLexer and DebugParser for lexer_class and parser_class.,"lexer_class , parser_class = DebugLexer , DebugParser"
5069,"substitute list_ for first_item and second_item, respectively.","first_item , second_item = list_"
5070,define the method emit with 2 arguments: self and record.,"def emit ( self , record ) :"
5071,django.utils import translation into default namespace.,from django . utils import translation
5072,"return the result. define the method value_from_datadict with 4 arguments: self, data, files and name.","def value_from_datadict ( self , data , files , name ) :"
5073,"call the function date_format with 2 arguments: value, string 'DATETIME_FORMAT' and use_l10n as use_l10n, return the result.","return date_format ( value , 'DATETIME_FORMAT' , use_l10n = use_l10n )"
5074,"for every format in self.input_formats,",for format in self . input_formats :
5075,return the result. derive the class HiddenInput from the Input base class.,class HiddenInput ( Input ) :
5076,return value,return value
5077,return boolean False.,return False
5078,"call the method self.Z, substitute the result for seconds.",seconds = self . Z ( )
5079,define the method listdir with arguments self and path.,"def listdir ( self , path ) :"
5080,"put loaders elements in a tuple, substitute it for template_source_loaders.",template_source_loaders = tuple ( loaders )
5081,"if domain_part is not contained in self.domain_whitelist and method self.validate_domain_part with an argument domain_part evaluates to false,",if ( domain_part not in self . domain_whitelist and not self . validate_domain_part ( domain_part ) ) :
5082,self.model_name is a string 'cacheentry'.,self . model_name = 'cacheentry'
5083,message is an string 'Unknown field(s) (%s) specified for %s'.,message = 'Unknown field(s) (%s) specified for %s'
5084,decorator function register.filter with an argument is_safe set to boolean False.,@ register . filter ( is_safe = False )
5085,define the method E with an argument self.,def E ( self ) :
5086,define the method parse with an argument self.,def parse ( self ) :
5087,"default is boolean False and help is a string 'Use natural keys if they are available (deprecated: use --natural-foreign instead).'. call the method parser.add_argument with 5 arguments: string '--natural-foreign', action set to string 'store_true',","parser . add_argument ( '--natural-foreign' , action = 'store_true' , dest = 'use_natural_foreign_keys' , default = False , help = 'Use natural foreign keys if they are available.' )"
5088,"if not,",else :
5089,"if issues is true,",if issues :
5090,and 3 additional pairs of dictionaries for string. define the function configure_logging with 2 arguments: logging_config and logging_settings.,"def configure_logging ( logging_config , logging_settings ) :"
5091,substitute _itervalues for itervalues.,itervalues = _itervalues
5092,"call the method template.render with an argument context, substitute the result for content.",content = template . render ( context )
5093,"define the method setlistdefault with 3 arguments: self, key and default_list set to None.","def setlistdefault ( self , key , default_list = None ) :"
5094,"if ValueError exception is caught,",except ValueError :
5095,"otherwise if self.file_path file path doesnt exists,",elif not os . path . exists ( self . file_path ) :
5096,"if only_initial is false,",if not only_initial :
5097,"if not,",else :
5098,import imp.,import imp
5099,return an empty string.,return ''
5100,"if self.cdata_tag is not None,",if self . cdata_tag is not None :
5101,"join elements of pieces into a string, return it.",return '' . join ( pieces )
5102,"call the method datetime_safe.new_date with an argument value, substitute the result for value.",value = datetime_safe . new_date ( value )
5103,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
5104,"for app_config in return value of the method apps.get_app_configs,",for app_config in apps . get_app_configs ( ) :
5105,call the method logging.captureWarnings with an argument boolean True.,logging . captureWarnings ( True )
5106,from django.apps import apps into default name space.,from django . apps import apps
5107,append ch to result.,result . append ( ch )
5108,"if value has an 'close' attribute,","if hasattr ( value , 'close' ) :"
5109,return patterns.,return patterns
5110,self._done is boolean True.,self . _done = True
5111,from shutil import copystat into default name space.,from shutil import copystat
5112,define the function join_tokens with 2 arguments: tokens and trim set to boolean False.,"def join_tokens ( tokens , trim = False ) :"
5113,yield key.,yield key
5114,"open pythonrc, with the file handle renamed to handle perform the following,",with open ( pythonrc ) as handle :
5115,"if TypeError exception is caught,",except TypeError :
5116,"call the method self.as_widget with 3 arguments: return value of the method self.field.hidden_widget, attrs,","return self . as_widget ( self . field . hidden_widget ( ) , attrs , ** kwargs )"
5117,"for every fixture_dir in fixture_dirs,",for fixture_dir in fixture_dirs :
5118,from django.utils import six into default name space.,from django . utils import six
5119,"call the function get_supported_language_variant with an argument lang_code, return the result.",return get_supported_language_variant ( lang_code )
5120,substitute link_next for value under the NEXT key of the link_prev dictionary.,link_prev [ NEXT ] = link_next
5121,"if the UnicodeEncodeError exception is caught,",except UnicodeEncodeError :
5122,"_urllib_parse_moved_attributes is a list with 16 elemetns, all of them are the results of the call to the function MovedAttribute with different 3 string arguments.","_urllib_parse_moved_attributes = [ MovedAttribute ( ""ParseResult"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""SplitResult"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""parse_qs"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""parse_qsl"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""urldefrag"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""urljoin"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""urlparse"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""urlsplit"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""urlunparse"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""urlunsplit"" , ""urlparse"" , ""urllib.parse"" ) , MovedAttribute ( ""quote"" , ""urllib"" , ""urllib.parse"" ) , MovedAttribute ( ""quote_plus"" , ""urllib"" , ""urllib.parse"" ) , MovedAttribute ( ""unquote"" , ""urllib"" , ""urllib.parse"" ) , MovedAttribute ( ""unquote_plus"" , ""urllib"" , ""urllib.parse"" ) , MovedAttribute ( ""urlencode"" , ""urllib"" , ""urllib.parse"" ) , MovedAttribute ( ""splitquery"" , ""urllib"" , ""urllib.parse"" ) , ]"
5123,import module sys.,import sys
5124,"call the function timedelta with an argument seconds as negative time.timezone, subtract the result from the result of the call,",return timedelta ( seconds = - time . altzone ) - timedelta ( seconds = - time . timezone )
5125,"if not, isolated_context is boolean False. get the value under the 'width' key of the options dictionary, if it exists, substitute it for namemap, if not namemap is an empty dictionary.","namemap = options . get ( 'with' , { } )"
5126,"if string ':::' is contained in ip_str,",if ':::' in ip_str :
5127,"call the self._lock.reader method, with the result perform the following,",with self . _lock . reader ( ) :
5128,"call the method parser.add_argument with 4 arguments: string 'args', metavar set to string 'app_label[.ModelName]',","parser . add_argument ( 'args' , metavar = 'app_label[.ModelName]' , nargs = '*' , help = 'Restricts dumped data to the specified app_label or app_label.ModelName.' )"
5129,"define the method __init__ with 7 arguments: self, request, dict_ set to None, processors set to None, current_app set to None,","def __init__ ( self , request , dict_ = None , processors = None , current_app = None , use_l10n = None , use_tz = None ) :"
5130,"for every punctuation in TRAILING_PUNCTUATION,",for punctuation in TRAILING_PUNCTUATION :
5131,"convert values into a list, substitute it for value.",values = list ( values )
5132,"if value object the 'unique_id_is_permalink' key of the item dictionary is an instance of bool type,","if isinstance ( item . get ( 'unique_id_is_permalink' ) , bool ) :"
5133,define the function _findall with 2 arguments text and substr.,"def _findall ( text , substr ) :"
5134,define the method run_from_argv with arguments self and argv.,"def run_from_argv ( self , argv ) :"
5135,"sum index and length of self._boundary, substitute the result for next.",next = index + len ( self . _boundary )
5136,"for every date_key in date_keys,",for date_key in date_keys :
5137,return boolean True.,return True
5138,return a string '%02d' formated with self.data.minute.,return '%02d' % self . data . minute
5139,from django.core.management.templates import TemplateCommand into default name space.,from django . core . management . templates import TemplateCommand
5140,substitute return value of function no_style for style.,style = no_style ( )
5141,"call the self._cache.get method with argument key, substitute the result for val.",val = self . _cache . get ( key )
5142,daemonize is boolean False.,daemonize = False
5143,"call the function get_format_modules with an argument lang, for every module in the result,",for module in get_format_modules ( lang ) :
5144,"return a string ""%s.%s"" formated with first dot package elements and name.","return ""%s.%s"" % ( package [ : dot ] , name )"
5145,"call the method node.get_nodes_by_type with an argument nodetype, extend nodes with it.",nodes . extend ( node . get_nodes_by_type ( nodetype ) )
5146,from django.utils import six into default name space.,from django . utils import six
5147,"call the method self.decompress with an argument value, substitute the result for value.",value = self . decompress ( value )
5148,"define the function register_serializer with 3 arguments: format, serializer_module and serializers set to None.","def register_serializer ( format , serializer_module , serializers = None ) :"
5149,"try,",try :
5150,define the function write with an argument data.,def write ( data ) :
5151,call the method self.indent with argument integer 1.,self . indent ( 1 )
5152,"get type of self, call it and substitute the result for result.",result = type ( self ) ( )
5153,"call the self.style.HTTP_REDIRECT with an argument msg, substitute it for msg.",msg = self . style . HTTP_REDIRECT ( msg )
5154,value under the 'blank' key of the extra_params dictionary is boolean True.,extra_params [ 'blank' ] = True
5155,"try,",try :
5156,"if fh has an attribute a, for every a in WRAPPER_ASSIGNMENTS, put a into a tuple, return the resulting tuple.","return tuple ( a for a in WRAPPER_ASSIGNMENTS if hasattr ( fn , a ) )"
5157,define the method __deepcopy__ with 2 arguments: self and memodict.,"def __deepcopy__ ( self , memodict ) :"
5158,define the method add_arguments with 2 arguments self and parser.,"def add_arguments ( self , parser ) :"
5159,"define the function _get_foreign_key with 4 arguments: parent_model, model, fk_name set to None and can_fail set to boolean False.","def _get_foreign_key ( parent_model , model , fk_name = None , can_fail = False ) :"
5160,"append value to the '-', substitute it for value.",value = '-' + value
5161,define method _get_height with self class instance as the argument.,def _get_height ( self ) :
5162,"define the method sync_apps with self class instance, connection and app_labels as arguments.","def sync_apps ( self , connection , app_labels ) :"
5163,"second 2 elements of seventh element of hextets converted into hexadecimal number, first 2 elements of eight element of hextets converted into hexadecimal number, second 2 elements of eight element of hextets converted into hexadecimal number. join first 5 elements of hextets into a string, separated by ':', substitute the result for result.",result = ':' . join ( hextets [ 0 : 6 ] )
5164,substitute last element of colors for value under the 'bg' key of definition dictionary.,definition [ 'bg' ] = colors [ - 1 ]
5165,"with call to the function transaction.atomic with using set to connection.alias as argument,",with transaction . atomic ( using = connection . alias ) :
5166,do nothing.,pass
5167,"string joined from invalided_apps list and separated with string ', '. if not,",else :
5168,return attrs.,return attrs
5169,"get the value under the 'no_location' key of the options dictionary, if it is true,",if options . get ( 'no_location' ) :
5170,"read the whole file f, substitute the result for content.",content = f . read ( )
5171,call the pickle.dumps function with value and pickle.HIGHEST_PROTOCOL as arguments.,"pickled = pickle . dumps ( value , pickle . HIGHEST_PROTOCOL )"
5172,yield node.,yield node
5173,"for every v in value, return the list of results. call the method prepare_value the base class of the class ModelMultipleChoiceField, with an argument value, return the result.","return super ( ModelMultipleChoiceField , self ) . prepare_value ( value )"
5174,"separated by newline, substitute it for msgs. if not,",else :
5175,"call the method to_python with an argument value from the base class of the TimeField class, return the result.","return super ( TimeField , self ) . to_python ( value )"
5176,return None.,return None
5177,"perform bitwise exclusive OR on 2 operands x and y, perform bitwise OR with 2 operands: previous result and result, substitute the result for result.",result |= x ^ y
5178,import module types.,import types
5179,define the function make_naive with 2 arguments: value and timezone.,"def make_naive ( value , timezone ) :"
5180,substitute stat.st_mtime for mtime.,mtime = stat . st_mtime
5181,"join the resulting sequence in a string with comma as separator, assign the string to cc. substitute response dictionary value under the key 'Cache-Control' for cc.",response [ 'Cache-Control' ] = cc
5182,from django.db.migrations.autodetector import MigrationAutodetector into default name space.,from django . db . migrations . autodetector import MigrationAutodetector
5183,"if changed is false,",if not changed :
5184,processors is an empty list.,processors = [ ]
5185,"""django.core.serializers.python"" for ""python"", ""django.core.serializers.json"" for ""json"", and ""django.core.serializers.pyyaml"" for ""yaml"". _serializers is an empty dictionary.",_serializers = { }
5186,from django.apps import apps into default name space.,from django . apps import apps
5187,"for every c in choices split into words, concatenate prefix, result of the function re.escape with an argument c and suffix,","return ""|"" . join ( prefix + re . escape ( c ) + suffix for c in choices . split ( ) )"
5188,"from lib2to3.fixer_util import find_indentation, Name, syms and touch_import into default name space.","from lib2to3 . fixer_util import find_indentation , Name , syms , touch_import"
5189,"create the list of paths from which filename module was included for every filename in new_modules, only is filename has '__file__' attribute, substitute the resulting list for new_filenames.","new_filenames = [ filename . __file__ for filename in new_modules if hasattr ( filename , '__file__' ) ]"
5190,"append arg to ',', substitute the result for arg.","arg = ',' + arg"
5191,raise an TemplateDoesNotExist exception with an argument name.,raise TemplateDoesNotExist ( name )
5192,"endless loop,",while True :
5193,"call the function gettext with an argument message, use the result as an argument for the call to the force_text function, return the result.",return force_text ( gettext ( message ) )
5194,"call the method tuple.__new__ with 3 arguments: cls, unpacked list args and unpacked dictionary kwargs, substitute the result for self.","self = tuple . __new__ ( cls , * args , ** kwargs )"
5195,append att_name to used_column_names list.,used_column_names . append ( att_name )
5196,renamed is boolean False.,renamed = False
5197,return value of the function smart_text with return value of the method value._get_pk_val as an argument for 'pk'. for every relobj in iterator generated from the field.name attribute of the obj object.,"for relobj in getattr ( obj , field . name ) . iterator ( ) :"
5198,"if not,",else :
5199,context_extras is an empty dictionary.,context_extras = { }
5200,"otherwise if intrans is true,",elif intrans :
5201,derive the class BaseForm from the base class object.,class BaseForm ( object ) :
5202,derive the class HttpResponseRedirect from the HttpResponseRedirectBase base class.,class HttpResponseRedirect ( HttpResponseRedirectBase ) :
5203,"if not,",else :
5204,"call the method sys.stderr.write with an argument string "" http://www.saddi.com/software/flup/ If you've already\n"".","sys . stderr . write ( "" http://www.saddi.com/software/flup/ If you've already\n"" )"
5205,"append new line to line, write it to self.stdout stream.","self . stdout . write ( ""%s\n"" % line )"
5206,"call the method self.nodelist_false.render with an argument context, return the result.",return self . nodelist_false . render ( context )
5207,from django.utils.module_loading import import_string into default name space.,from django . utils . module_loading import import_string
5208,"if ignore_failures is true,",if ignore_failures :
5209,return self.,return self
5210,"from django.utils.encoding import force_str, force_text and DEFAULT_LOCALE_ENCODING into default name space.","from django . utils . encoding import force_str , force_text , DEFAULT_LOCALE_ENCODING"
5211,"help is a tuple containing a string ""Creates a Django app directory structure for the given app name in the current directory or optionally in the given directory."".","help = ( ""Creates a Django app directory structure for the given app "" ""name in the current directory or optionally in the given "" ""directory."" )"
5212,write a white space to the self.stream file stream.,"self . stream . write ( "" "" )"
5213,"decorator stringfilter,",@ stringfilter
5214,_empty_value is None.,_empty_value = None
5215,"call the method connection.creation.sql_destroy_model with arguments: model, references_to_delete and style, extend with the result the list output.","output . extend ( connection . creation . sql_destroy_model ( model , references_to_delete , style ) )"
5216,"define the method render with 4 arguments: self, name, value and attrs set to None.","def render ( self , name , value , attrs = None ) :"
5217,"call the method self.data.weekday, use the result as an key for obtaining WEEKDAYS dictionary value, return it.",return WEEKDAYS [ self . data . weekday ( ) ]
5218,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
5219,self._cached_loaders is an empty list.,self . _cached_loaders = [ ]
5220,"if file self is not closed,",if not self . closed :
5221,"_urllib_response_moved_attributes is a list with 4 elements: result of the function MovedAttribute, called with 3 arguments:","_urllib_response_moved_attributes = [ MovedAttribute ( ""addbase"" , ""urllib"" , ""urllib.response"" ) , MovedAttribute ( ""addclosehook"" , ""urllib"" , ""urllib.response"" ) , MovedAttribute ( ""addinfo"" , ""urllib"" , ""urllib.response"" ) , MovedAttribute ( ""addinfourl"" , ""urllib"" , ""urllib.response"" ) , ]"
5222,from django.utils import six into default name space.,from django . utils import six
5223,convert data into boolean and substitute it for data.,data = bool ( data )
5224,"use the result as an argument for the call to the function mark_safe, return the result. define the function format_html_join with 3 arguments: sep, format_string and args_generator.","def format_html_join ( sep , format_string , args_generator ) :"
5225,"call the function vars with an argument options, substitute the result for cmd_options.",cmd_options = vars ( options )
5226,"try,",try :
5227,"hex_format_string is a string ""%%0%ix"" formated with hlen multiplied with integer 2.","hex_format_string = ""%%0%ix"" % ( hlen * 2 )"
5228,"try,",try :
5229,value under the BLOCK_CONTEXT_KEY key of context.render_context dictionary is BlockContext class instance.,context . render_context [ BLOCK_CONTEXT_KEY ] = BlockContext ( )
5230,"if AttributeError exception is raised,",except AttributeError :
5231,from django.utils import six into default name space.,from django . utils import six
5232,"call the method datetime.datetime.strptime with 2 arguments: result of the function force_str called with an argument value,","return datetime . datetime . strptime ( force_str ( value ) , format ) . date ( )"
5233,content_length is integer 0.,content_length = 0
5234,import module json.,import json
5235,derive the class EmailBackend from the BaseEmailBackend base class.,class EmailBackend ( BaseEmailBackend ) :
5236,"substitute link for link_prev, link_next, key and result, respectively.","link_prev , link_next , key , result = link"
5237,remove the first element from str_number.,str_number = str_number [ 1 : ]
5238,"if slots is not None,",if slots is not None :
5239,"call the DefaultStorage method, substitute the result for default_storage.",default_storage = DefaultStorage ( )
5240,self.path is an empty string.,self . path = ''
5241,define the method get_unique_error_message with 2 arguments: self and unique_check.,"def get_unique_error_message ( self , unique_check ) :"
5242,"data is an dictionary with 2 initial entries: return value of the smart_text function with the argument obj._meta for 'model',","data = { ""model"" : smart_text ( obj . _meta ) , ""fields"" : self . _current , }"
5243,"get ""_decorated_function"" attribute from func object, if it exists substitute __name__ field of the result for name,","name = getattr ( func , ""_decorated_function"" , func ) . __name__"
5244,import module keyword.,import keyword
5245,self.abstract is boolean False.,self . abstract = False
5246,derive the CommandParser class from the ArgumentParser base class.,class CommandParser ( ArgumentParser ) :
5247,"call the subprocess.Popen function with, 'git log --pretty=format:%ct --quiet -1 HEAD', stdout set to subprocess.PIPE,","git_log = subprocess . Popen ( 'git log --pretty=format:%ct --quiet -1 HEAD' , stdout = subprocess . PIPE , stderr = subprocess . PIPE , shell = True , cwd = repo_dir , universal_newlines = True )"
5248,year_field is a string '%s_year'.,year_field = '%s_year'
5249,"digits is a string ""0123456789abcdefghijklmnopqrstuvwxyz"".","digits = ""0123456789abcdefghijklmnopqrstuvwxyz"""
5250,"cut the last 6 elemetns from r, append character 'Z' to it, substitute the result for r.",r = r [ : - 6 ] + 'Z'
5251,"try,",try :
5252,substitute third element of url_fields for second element of url_fields.,url_fields [ 1 ] = url_fields [ 2 ]
5253,from django.core.mail import get_connection into default name space.,from django . core . mail import get_connection
5254,"if bytes is false,",if not bytes :
5255,"divide j by integer 7, substitute the floored result for week_number.",week_number = j // 7
5256,self._leftover is an empty string.,self . _leftover = b''
5257,"for v in return value of the function match.groups, convert v into an integer and append i to a list,","year_val , month_val , day_val = [ int ( v ) for v in match . groups ( ) ]"
5258,derive the class RenderContext from the BaseContext base class.,class RenderContext ( BaseContext ) :
5259,return string 'th'.,return 'th'
5260,"if DEFAULT_CACHE_ALIAS is not contained in settings.CACHES,",if DEFAULT_CACHE_ALIAS not in settings . CACHES :
5261,"convert tag to lowercase if it is not equal to self.cdata_tag,",if tag . lower ( ) != self . cdata_tag :
5262,_builtin_context_processors is a tuple containing a string 'django.core.context_processors.csrf'.,"_builtin_context_processors = ( 'django.core.context_processors.csrf' , )"
5263,"call the function datetime.now, on the result call the method strftime with an argument string '%B %d, %Y - %X', substitute the result for now.","now = datetime . now ( ) . strftime ( '%B %d, %Y - %X' )"
5264,"""Use BaseCommand instead, which takes no arguments by default."" and RemovedInDjango20Warning. call the __init__ method from the base class of the NoArgsCommand class.","super ( NoArgsCommand , self ) . __init__ ( )"
5265,"if self.file_path is not an instance of six.string_types,","if not isinstance ( self . file_path , six . string_types ) :"
5266,"call the function bytes with an argument value, return the result.",return bytes ( value )
5267,"if template_name_list is false,",if not template_name_list :
5268,"if not,",else :
5269,call the method cache.clear.,cache . clear ( )
5270,call the method apps.get_app_config with an argument app_label.,apps . get_app_config ( app_label )
5271,"call the function force_str with an argument: default if it is true, or if not, first element of the result of the function,",format = force_str ( default or get_format ( 'DATETIME_INPUT_FORMATS' ) [ 0 ] )
5272,"substitute them for app_label and migration_name, respectively. executor is an instance of MigrationExecutor, created with value under the DEFAULT_DB_ALIAS key of the connections dictionary.",executor = MigrationExecutor ( connections [ DEFAULT_DB_ALIAS ] )
5273,define the function _checkLevel with an argument level.,def _checkLevel ( level ) :
5274,"self.stdout is an instance of OutputWrapper class created with an argument: value under the 'stdout' key of the options dictionary,","self . stdout = OutputWrapper ( options . get ( 'stdout' , sys . stdout ) )"
5275,"call the method __delitem__ from the base class of the class SortedDict, with an argument key.","super ( SortedDict , self ) . __delitem__ ( key )"
5276,response.content is bytes empty string.,response . content = b''
5277,where '%s' is replaced with name. args is an empty list.,args = [ ]
5278,if language_code is not contained in self._reverse_dict,if language_code not in self . _reverse_dict :
5279,"with 2 arguments: self.prog_name and first element of options.args. otherwise if subcommand equals a string 'version' or self.argv, without the first element equals a list containing a string '--version'",elif subcommand == 'version' or self . argv [ 1 : ] == [ '--version' ] :
5280,"if extensions is false, substitute it for exts, otherwise exts is a list containing 2 elements: string 'html' and string 'txt'.","exts = extensions if extensions else [ 'html' , 'txt' ]"
5281,from django.utils import six into default name space.,from django . utils import six
5282,messages is an instance of the ValidationError class created with an argument messages.,messages = ValidationError ( messages )
5283,yield a tuple with 2 elements: an empty string and self.field.empty_label.,"yield ( """" , self . field . empty_label )"
5284,"replace '%s' in the string '\s*%s\s*>' with the result of the function call tag.lower(),","self . interesting = re . compile ( r'\s*%s\s*>' % tag . lower ( ) , re . I )"
5285,"append ')' to third element of bit, substitute it for sentinal.",sentinal = bit [ 2 ] + ')'
5286,"split file by ',' character, apply on its every element a lambda function which takes an argument x,","extra_files . extend ( map ( lambda x : x . strip ( ) , file . split ( ',' ) ) )"
5287,"call the function _unpack_ipv4 with an argument ip_str, substitute the result for ipv4_unpacked.",ipv4_unpacked = _unpack_ipv4 ( ip_str )
5288,"where '%s' is replaced with value under the 'addrport' key of the options dictionary. call the method m.groups, assign the result to self.addr, _ipv4, _ipv6, _fqdn and self.port, respectively.","self . addr , _ipv4 , _ipv6 , _fqdn , self . port = m . groups ( )"
5289,"call the method self.build_attrs with arguments attrs, name as name, substitute the result for final_attrs.","final_attrs = self . build_attrs ( attrs , name = name )"
5290,return scrip_name.decode method result called with UTF_8 as argument.,return script_name . decode ( UTF_8 )
5291,raise a NotImplementedError with an argument string 'subclasses of Serializer must provide an handle_m2m_field() method'.,raise NotImplementedError ( 'subclasses of Serializer must provide an handle_m2m_field() method' )
5292,return the value under the self.data.month key of the MONTHS_3 dictionary.,return MONTHS_3 [ self . data . month ]
5293,"return a tuple with 2 elements: resource and string 'egg:%s:%s', where '%s' is replaced with app_config.name and pkg_name, respective.","return ( resource , 'egg:%s:%s' % ( app_config . name , pkg_name ) )"
5294,define the function available_attrs with an argument fn.,def available_attrs ( fn ) :
5295,"if to_lower is true,",if to_lower :
5296,return an empty dictionary.,return { }
5297,define the method open with arguments self and mode set to None.,"def open ( self , mode = None ) :"
5298,"if self.localize is true,",if self . localize :
5299,substitute _urllib_response_moved_attributes for Module_six_moves_urllib_response._moved_attributes.,Module_six_moves_urllib_response . _moved_attributes = _urllib_response_moved_attributes
5300,"if vale is not an instance of ConvertingDict and value is an instance of dict type,","if not isinstance ( value , ConvertingDict ) and isinstance ( value , dict ) :"
5301,from django.core.cache.backends.base import BaseCache and DEFAULT_TIMEOUT into default name space.,"from django . core . cache . backends . base import BaseCache , DEFAULT_TIMEOUT"
5302,return string 'rd'.,return 'rd'
5303,define the function blankout with 2 arguments: src and char.,"def blankout ( src , char ) :"
5304,"if ImportError exception is caught,",except ImportError :
5305,"try,",try :
5306,"call the method self._get_context_stack_frame with an argument context, substitute the result for state_frame.",state_frame = self . _get_context_stack_frame ( context )
5307,"define the method render_node with 3 arguments: self, node and context.","def render_node ( self , node , context ) :"
5308,from logging import NullHandler.,from logging import NullHandler
5309,do nothing.,pass
5310,define the method lex with 2 arguments self and text.,"def lex ( self , text ) :"
5311,assign the handle to stream. old_field_name is None.,old_field_name = None
5312,define the method __init__ with 2 arguments self and file.,"def __init__ ( self , file ) :"
5313,otherwise substitute return value of the function _ called with an argument ':' for self.label_suffix. substitute empty_permitted for self.empty_permitted.,self . empty_permitted = empty_permitted
5314,define the method as_data with an argument self.,def as_data ( self ) :
5315,"with new_path and self.style.NOTICE, respectively, write it to self.stderr stream. if self.paths_to_remove is true,",if self . paths_to_remove :
5316,"while first element of s is equal to bytes string ';',",while s [ : 1 ] == b';' :
5317,"for every i and k in enumerated values of self._cache, if i is divisible by self._cull_frequency, append k to doomed list.","doomed = [ k for ( i , k ) in enumerate ( self . _cache ) if i % self . _cull_frequency == 0 ]"
5318,define the function urlsafe_base64_decode with an argument s.,def urlsafe_base64_decode ( s ) :
5319,substitute old_attr for self.attr.,self . attr = old_attr
5320,"sum return value of the function call time.time() and cache_timeout, use it as an argument for function call of http_date,",response [ 'Expires' ] = http_date ( time . time ( ) + cache_timeout )
5321,define the method _iterlists with an argument self.,def _iterlists ( self ) :
5322,"try,",try :
5323,append form to self.saved_forms.,self . saved_forms . append ( form )
5324,"for every entry in os.listdir function return value called with the argument path,",for entry in os . listdir ( path ) :
5325,from django.db import models into default name space.,from django . db import models
5326,"for every condition and nodelist in self.conditions_nodelists,","for condition , nodelist in self . conditions_nodelists :"
5327,call the method instance.save.,instance . save ( )
5328,"if ImportError exception is caught,",except ImportError :
5329,"if settings.STATIC_URL is None,",if settings . STATIC_URL is None :
5330,"if parse_until is true,",if parse_until :
5331,"decorator function register.filter with 2 arguments string ""timesince"" and is_safe set to boolean False.","@ register . filter ( ""timesince"" , is_safe = False )"
5332,BM_compatible is boolean True.,BM_compatible = True
5333,define the method filter with 2 arguments: self and record.,"def filter ( self , record ) :"
5334,"if META_override is not None, or otherwise generated with the call to the function pformat with an argument request.META. if Exception exception is caught,",except Exception :
5335,"define the method __init__, with 3 arguments: self, m2m and data set None.","def __init__ ( self , obj , m2m_data = None ) :"
5336,"define the method __get__ with 3 arguments: self, instance and owner.","def __get__ ( self , instance , owner ) :"
5337,call the function warnings.warn with 3 arguments:,"warnings . warn ( ""resolve_variable() is deprecated. Use django.template."" ""Variable(path).resolve(context) instead"" , RemovedInDjango20Warning , stacklevel = 2 )"
5338,call the self.validate_key method with argument key.,self . validate_key ( key )
5339,renamed is boolean True.,renamed = True
5340,from django.utils.functional import cached_property into default name space.,from django . utils . functional import cached_property
5341,"get the value under the 'filename' key of the disposition dictionary, substitute it for file_name.",file_name = disposition . get ( 'filename' )
5342,from django.utils.datastructures import MultiValueDict and ImmutableList into default name space.,"from django . utils . datastructures import MultiValueDict , ImmutableList"
5343,"if not,",else :
5344,define the method hidden_fields with an argument self.,def hidden_fields ( self ) :
5345,"if other is an instance of Promise class,","if isinstance ( other , Promise ) :"
5346,"join top_dir and relative_dir into a file path, substitute it for target_dir.","target_dir = path . join ( top_dir , relative_dir )"
5347,"if directory is not an directory,",if not os . path . isdir ( directory ) :
5348,"try,",try :
5349,"substitute the result for RFC1123_DATE. call the function re.compile with an argument raw string '^\w{6,9}, %s-%s-%s %s GMT$' formated with __D, __M, __Y2 and __T,","RFC850_DATE = re . compile ( r'^\w{6,9}, %s-%s-%s %s GMT$' % ( __D , __M , __Y2 , __T ) )"
5350,"write the result to self.stdout. for every operation in migration.operations,",for operation in migration . operations :
5351,"call the function do_ntranslate with 3 arguments: singular, plural, number and string 'ngettext', return the result.","return do_ntranslate ( singular , plural , number , 'ungettext' )"
5352,return potfiles.,return potfiles
5353,call the method self._callback_strs.add with an argument lookup_str.,self . _callback_strs . add ( lookup_str )
5354,"try,",try :
5355,"for every sql in sql_list,",for sql in sql_list :
5356,return current.,return current
5357,"if model has an 'natural_key' attribute,","if hasattr ( model , 'natural_key' ) :"
5358,"for every date_check in all_date_checks,",for date_check in all_date_checks :
5359,inputs is an empty list.,inputs = [ ]
5360,return value.,return value
5361,"call the get_serializer function with an argument format, call the return value object and substitute it for s.",s = get_serializer ( format ) ( )
5362,"if use_grouping is true and grouping is greater than integer 0, use_grouping is boolean True, otherwise it is boolean False.",use_grouping = use_grouping and grouping > 0
5363,define the method _iteritems with an argument self.,def _iteritems ( self ) :
5364,substitute code for self.code.,self . code = code
5365,"if child.nodeType equals to child.TEXT_NODE or child.nodeType equals to child.CDATA_SECTION_NODE,",if child . nodeType == child . TEXT_NODE or child . nodeType == child . CDATA_SECTION_NODE :
5366,from django.utils import six into default name space.,from django . utils import six
5367,"if settings.DEBUG is true,",if settings . DEBUG :
5368,"if iterable is true, otherwise use an empty list as an argument. define the method add with 2 arguments: self and item.","def add ( self , item ) :"
5369,"if request has an attribute 'session',","if hasattr ( request , 'session' ) :"
5370,"if ValueError or TypeError exceptions occurred,","except ( ValueError , TypeError ) :"
5371,"try,",try :
5372,return boolean True.,return True
5373,return s.,return s
5374,"if self._varlist is true,",if self . _varlist :
5375,from django.conf import settings into default name space.,from django . conf import settings
5376,"if csrf_token equals string 'NOTPROVIDED',",if csrf_token == 'NOTPROVIDED' :
5377,"execute code statement """"""exec _code_ in _globs_, _locs_"""""".","exec ( """"""exec _code_ in _globs_, _locs_"""""" )"
5378,"extend replaces list with migration.replaces,",replaces . extend ( migration . replaces )
5379,"yield string ""# * Rearrange models' order"" as the result.","yield ""# * Rearrange models' order"""
5380,return the result. define the function pgettext with 2 arguments: context and message.,"def pgettext ( context , message ) :"
5381,"call function update with path as the argument, for every path in settings.LOCALE_PATHS, extend basedirs list with previous items.",basedirs . extend ( [ upath ( path ) for path in settings . LOCALE_PATHS ] )
5382,replace all the occurrences of '__' with '_' in new_name.,"new_name = new_name . replace ( '__' , '_' )"
5383,"call the method lookups.appendlist with 2 arguments: pattern.callback and a tuple containing 3 elements: bits, p_pattern,","lookups . appendlist ( pattern . callback , ( bits , p_pattern , pattern . default_args ) )"
5384,"move integer 1 left for 20 bits, substitute the result for MB.",MB = 1 << 20
5385,"if not,",else :
5386,call the method self.can_read.acquire.,self . can_read . acquire ( )
5387,breaks from the smallest enclosing loop.,break
5388,"if '_meta' is not an attribute of obj,","if not hasattr ( obj , ""_meta"" ) :"
5389,substitute input_formats for self.input_formats.,self . input_formats = input_formats
5390,"call the self.style.HTTP_INFO with an argument msg, substitute it for msg.",msg = self . style . HTTP_INFO ( msg )
5391,"print a string ""In the tar file %s the member %s is invalid: %s"", where '%s' is substituted with: name, member.name and exc, respectively.","print ( ""In the tar file %s the member %s is invalid: %s"" % ( name , member . name , exc ) )"
5392,"define the method __init__ with 3 arguments self, states and first.","def __init__ ( self , states , first ) :"
5393,"for the call to the function upath, get the directory name of the resulting system path, join the result and string 'locale', into a valid file path, substitute it for globalpath. append settings.LOCALE_PATHS converted into a list to a list containing an element globalpath, return it.",return [ globalpath ] + list ( settings . LOCALE_PATHS )
5394,self.changed_objects is an empty list.,self . changed_objects = [ ]
5395,update default_attrs dictionary with attrs entry.,default_attrs . update ( attrs )
5396,break the loop execution.,break
5397,"call the method self.__cast, if the result doesnt equal to other, return boolean True, otherwise return boolean False.",return self . __cast ( ) != other
5398,"if pot_path file path exists,",if os . path . exists ( pot_path ) :
5399,"and self.code equals to other.code, return boolean True, otherwise return boolean False. decorator deconstructible,",@ deconstructible
5400,call self._delete method with argument fname.,self . _delete ( fname )
5401,self._container is an list.,self . _container = [ ]
5402,"get the value under the key key of the self.cookies dictionary, domain expires for 'domain' key of the returned dictionary.",self . cookies [ key ] [ 'domain' ] = domain
5403,"if self.old_timezone is None,",if self . old_timezone is None :
5404,BASE56_ALPHABET is a string '23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz'.,BASE56_ALPHABET = '23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz'
5405,"if IndexError exception is caught,",except IndexError :
5406,"with value result of the conditional_escape function called with an argument v for key k. call the method format_string.format with 2 arguments: unpacked list args_safe and unpacked dictionary kwargs_safe,","return mark_safe ( format_string . format ( * args_safe , ** kwargs_safe ) )"
5407,"call the method writer.as_string, substitute the result for migration_string.",migration_string = writer . as_string ( )
5408,"convert value under the 'CONTENT_LENGTH' key of the environ dictionary to an integer, substitute it for content_length.",content_length = int ( environ . get ( 'CONTENT_LENGTH' ) )
5409,if app_config.models_module is None or app_config is contained in excluded_apps,if app_config . models_module is None or app_config in excluded_apps :
5410,"call the function get_language, substitute the result for language_code.",language_code = get_language ( )
5411,"otherwise if _locs_ is None,",elif _locs_ is None :
5412,"raise the exception ValueError, with string as argument, ""@python_2_unicode_compatible cannot be applied"",","raise ValueError ( ""@python_2_unicode_compatible cannot be applied "" ""to %s because it doesn't define __str__()."" % klass . __name__ )"
5413,"if parser doesnt have an '_namedCycleNodes' attribute,","if not hasattr ( parser , '_namedCycleNodes' ) :"
5414,"property getter decorator,",@ property
5415,widget is an instance of HiddenInput class,widget = HiddenInput
5416,"if serializers is None and _serializers is false,",if serializers is None and not _serializers :
5417,"if data is true,",if data :
5418,"if error_message is not None,",if error_message is not None :
5419,substitute subject for self.subject.,self . subject = subject
5420,"call the method parser.add_argument with string 'app_label', nargs set to charcter '?', help containing string,","parser . add_argument ( 'app_label' , nargs = '?' , help = 'App label of an application to synchronize the state.' )"
5421,call the __init__ method with self and params arguments from the base class BaseCache.,"BaseCache . __init__ ( self , params )"
5422,"and elements of parse_until joined into a string, separated by string ', '. raise an self.source_error exception with 2 arguments: source and msg.","raise self . source_error ( source , msg )"
5423,call the function update_wrapper with 2 arguments: _wrapper and func.,"update_wrapper ( _wrapper , func )"
5424,"return an empty string,",return ''
5425,"if StandardError, renamed to e, exception is caught,",except StandardError as e :
5426,"for i in self._ordering append to a list value under the first element of i key of the self.forms dictionary, return resulting list.",return [ self . forms [ i [ 0 ] ] for i in self . _ordering ]
5427,"call the method parser.add_argument with arguments: string '--database', action set to string 'store', dest set to string 'database',","parser . add_argument ( '--database' , action = 'store' , dest = 'database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database onto which to ' 'open a shell. Defaults to the ""default"" database.' )"
5428,derive class MovedAttribute from the _LazyDescr base class.,class MovedAttribute ( _LazyDescr ) :
5429,substitute first element of nonlocal_root for root.,root = nonlocal_root [ 0 ]
5430,call the method errors.extend with argument new_errors.,errors . extend ( new_errors )
5431,"use the result as an argument for the call to the self.stdout.write. call the self.sync_apps method with connection and executor.loader.unmigrated_apps as arguments, substitute it for created_models.","created_models = self . sync_apps ( connection , executor . loader . unmigrated_apps )"
5432,"call the function warnings.warn with 3 arguments: string ""django.utils.unittest will be removed in Django 1.9."",","warnings . warn ( ""django.utils.unittest will be removed in Django 1.9."" , RemovedInDjango19Warning , stacklevel = 2 )"
5433,substitute .error_class for self.error_class.,self . error_class = error_class
5434,"if filename ends with '.pyo', '.pyc' or '.py.class',","if filename . endswith ( ( '.pyo' , '.pyc' , '.py.class' ) ) :"
5435,"if callback is of instance types.FunctionType,","if isinstance ( callback , types . FunctionType ) :"
5436,"attachment is an instance of a class MIMEBase, created with the arguments basetype and subtype.","attachment = MIMEBase ( basetype , subtype )"
5437,"call the method qs.order_by with argument self.model._meta.pk.name, substitute the result for qs.",qs = qs . order_by ( self . model . _meta . pk . name )
5438,"if id_ is true,",if id_ :
5439,__expire_info is an empty dictionary.,_expire_info = { }
5440,"self.plural is an lambda function with an argument n, which returns result of boolean expression n not equal to integer 1,",self . plural = lambda n : int ( n != 1 )
5441,call the function super_set with 2 arguments: key and value.,"super_set ( key , value )"
5442,extend the value under the field key of the self._errors dictionary with error_list.,self . _errors [ field ] . extend ( error_list )
5443,"if IndexError exception is caught,",except IndexError :
5444,from email.header import Header into default name space.,from email . header import Header
5445,"call the function re.compile with an argument raw string '(?:W/)?""((?:\\.|[^""])*)""', substitute the result for ETAG_MATCH.","ETAG_MATCH = re . compile ( r'(?:W/)?""((?:\\.|[^""])*)""' )"
5446,"raise an ImproperlyConfigured exception with argument string 'Could not write to directory: %s', replace '%s' with self.file_path.",raise ImproperlyConfigured ( 'Could not write to directory: %s' % self . file_path )
5447,"try,",try :
5448,define the method __init__ with arguments self and attrs set to None.,"def __init__ ( self , attrs = None ) :"
5449,self._empty is boolean False.,self . _empty = False
5450,"call the function user_function with 2 arguments unpacked list args and unpacked dictionary kwds, substitute the result for result.","result = user_function ( * args , ** kwds )"
5451,substitute settings.TIME_FORMAT for arg.,arg = settings . TIME_FORMAT
5452,"if middleware has an attribute 'process_request',","if hasattr ( middleware , 'process_request' ) :"
5453,internal_use_only is a boolean False.,internal_use_only = False
5454,substitute model._meta for opts.,opts = model . _meta
5455,"call the method bf.css_classes, substitute the result for css_classes.",css_classes = bf . css_classes ( )
5456,define the method _format_value with 2 arguments: self and value.,"def _format_value ( self , value ) :"
5457,"convert var into an floating point number, substitute it for self.literal.",self . literal = float ( var )
5458,"raise an CommandError with an argument string ""%s. Are you sure your INSTALLED_APPS setting is correct?"", with '%s' replaced by e.","raise CommandError ( ""%s. Are you sure your INSTALLED_APPS setting is correct?"" % e )"
5459,if six.PY2 is true and rawdata is an instance of the type six.text_type.,"if six . PY2 and isinstance ( rawdata , six . text_type ) :"
5460,"remove first element from non_capturing_groups, substitute it for start.",start = non_capturing_groups . pop ( )
5461,"get the value under the 'id' key of the widget.attrs dictionary, if the key exists substitute it for id_,",id_ = widget . attrs . get ( 'id' ) or self . auto_id
5462,from django.db.migrations.questioner import MigrationQuestioner and InteractiveMigrationQuestioner into default name space.,"from django . db . migrations . questioner import MigrationQuestioner , InteractiveMigrationQuestioner"
5463,return result.,return result
5464,"add self.default_validators and validators, substitute the result for self.validators.",self . validators = self . default_validators + validators
5465,"with return value of the function io.open with fname and string 'rb' as arguments, named as f,","with io . open ( fname , 'rb' ) as f :"
5466,derive the class Command from the base class BaseCommand.,class Command ( BaseCommand ) :
5467,define the method convert with 2 arguments: self and value.,"def convert ( self , value ) :"
5468,import module datetime.,import datetime
5469,"call the function six.itervalues with an argument kwargs, convert the result to a list and append it to a list containing args,",for arg in list ( args ) + list ( six . itervalues ( kwargs ) ) :
5470,"if value under the name key of self.cleaned_data dictionary is not None,",if self . cleaned_data . get ( name ) is not None and self . cleaned_data [ name ] . _state . adding :
5471,"for every obj in result of the call to the method self.queryset.all,",for obj in self . queryset . all ( ) :
5472,"for every h in handlers,",for h in handlers :
5473,"convert to integer the value of dictionary cc under the key 'max-age', and return it",return int ( cc [ 'max-age' ] )
5474,define the method render with 2 arguments self and context.,"def render ( self , context ) :"
5475,define the method _get_validation_exclusions with an argument self.,def _get_validation_exclusions ( self ) :
5476,self._unget_history is an empty list.,self . _unget_history = [ ]
5477,value is None.,value = None
5478,return value under the key key of self dictionary.,return self [ key ]
5479,"for every form in self.extra_forms,",for form in self . extra_forms :
5480,"sublist is an string '\n%s\n%s', where every '%s' is replaced with indent, sublist, indent and indent, respectively.","sublist = '\n%s\n%s' % ( indent , sublist , indent , indent )"
5481,"call the method _time.localtime with an argument stamp, substitute the result for tt.",tt = _time . localtime ( stamp )
5482,"endless loop,",while 1 :
5483,temp_lib is an instance of Library class.,temp_lib = Library ( )
5484,"define the __init__ method with 7 arguments: self, func, args, kwargs, url_name set to None, app_name set to None and namespaces set to None.","def __init__ ( self , func , args , kwargs , url_name = None , app_name = None , namespaces = None ) :"
5485,substitute module for the value under the format key of the _serializers dictionary.,_serializers [ format ] = module
5486,"call the get method with an argument string 'tried' on the first element of the e.args, substitute the result for sub_tried.",sub_tried = e . args [ 0 ] . get ( 'tried' )
5487,return initial.,return initial
5488,define the method _get_regex an argument self.,def _get_regex ( self ) :
5489,"if fixture_name is an absolute file path,",if os . path . isabs ( fixture_name ) :
5490,"for every w in self.widgets,",for w in self . widgets :
5491,return filenames.,return filenames
5492,call the method __init__ with an argument initlist from the base class of the class ErrorList.,"super ( ErrorList , self ) . __init__ ( initlist )"
5493,"if processors is None,",if processors is None :
5494,def _get_post method with self class instance as the argument.,def _get_post ( self ) :
5495,"where '%s' is replaced with elemnts of token from upto index till the end, and token. substitute filters for self.filters.",self . filters = filters
5496,"if evaluation of the function find_command with self.program as argument equals to None,",if find_command ( self . program ) is None :
5497,"if self.active_writers and self.waiting_writers both equal to integer 0,",if self . active_writers == 0 and self . waiting_writers == 0 :
5498,"if self.translate is true,",if self . translate :
5499,"if value is contained in self.empty_values,",if value in self . empty_values :
5500,"if self has an 'error_dict' attribute,","if hasattr ( self , 'error_dict' ) :"
5501,raise an exception.,raise
5502,"if self has an '_get' attribute,","if hasattr ( self , '_get' ) :"
5503,"decimal_places set to None, unpacked list args and unpacked dictionary kwargs. substitute max_digits and decimal_places for self.max_digits and self.decimal_places.","self . max_digits , self . decimal_places = max_digits , decimal_places"
5504,"if call to the function module_has_submodule with app_config.module and ""management"" evaluates to True.","if module_has_submodule ( app_config . module , ""management"" ) :"
5505,"call the method self.splitext with an argument guessed_filename, substitute the second element of the result for ext.",ext = self . splitext ( guessed_filename ) [ 1 ]
5506,lines is an empty list.,lines = [ ]
5507,"and re.IGNORECASE, substitute the result for simple_url_re. call the function re.compile with raw string '&(?!(\w+|#\d+);)', substitute the result for simple_email_re.",simple_email_re = re . compile ( r'^\S+@\S+\.\S+$' )
5508,"if UnicodeDecodeError exception is caught,",except UnicodeDecodeError :
5509,for every app_name in app_names.,for app_name in app_names :
5510,return nothing.,return
5511,"for every middleware_method in self._response_middleware,",for middleware_method in self . _response_middleware :
5512,"call the method router.allow_migrate with 2 arguments: self.using and obj.object.__class__, if it evaluates to true,","if router . allow_migrate ( self . using , obj . object . __class__ ) :"
5513,"define the private method __init__, with self instance of this class, obj and list of arbitrary length *args as arguments.","def __init__ ( self , obj , * args ) :"
5514,"if KeyError exception is caught,",except KeyError :
5515,"if self is false,",if not self :
5516,return self._callback.,return self . _callback
5517,"call the ops.quote_name method with argument self._table on the value under the db key of connections dictionary, substitute the result for table.",table = connections [ db ] . ops . quote_name ( self . _table )
5518,"if Exception, renamed to e, exception is caught,",except Exception as e :
5519,"get the name of the type of the callback, append the string '.__call__' to it, substitute it for view_name.",view_name = callback . __class__ . __name__ + '.__call__'
5520,"call the method datetime.datetime.strptime with 2 arguments: return value of the function force_str called with an argument value,","v = datetime . datetime . strptime ( force_str ( value ) , input_format )"
5521,"call the method parser.add_argument with 5 arguments: string '--tag', string '-t', action set to string 'append',","parser . add_argument ( '--tag' , '-t' , action = 'append' , dest = 'tags' , help = 'Run only checks labeled with given tag.' )"
5522,break from the smallest enclosing loop execution.,break
5523,"use the result as an argument for the call to the function datetime.fromtimestamp, return the result. define the method modified_time with arguments self and name.","def modified_time ( self , name ) :"
5524,"if not,",else :
5525,self.verbose_name is a string 'cache entry'.,self . verbose_name = 'cache entry'
5526,"get the value under the key 'exclude' of the options dictionary, convert it to an integer, substitute it for exclude.",self . verbosity = int ( options . get ( 'verbosity' ) )
5527,"call the function hook with an argument entry, substitute the result for finder.",finder = hook ( entry )
5528,"if node is not an instance of ExtendsNode,","if not isinstance ( node , ExtendsNode ) :"
5529,"if index is not None and index is smaller than return value of the method self.initial_form_count,",if index is not None and index < self . initial_form_count ( ) :
5530,call the function six.reraise with unpacked list exc_info as an argument.,six . reraise ( * exc_info )
5531,"if type of result is ConvertingDict, ConvertingList or ConvertingTuple,","if type ( result ) in ( ConvertingDict , ConvertingList , ConvertingTuple ) :"
5532,"try,",try :
5533,"finally perform,",finally :
5534,"assign the result to the value under the string "".moves.urllib_error"" appended to __name__ key of the sys.modules dictionary, and to the value under the string "".moves.urllib.error"" appended to __name__ key of the sys.modules dictionary. derive class Module_six_moves_urllib_request from the _LazyModule base class.",class Module_six_moves_urllib_request ( _LazyModule ) :
5535,"call the function datetime.date.today, substitute the year field of the result for this_year.",this_year = datetime . date . today ( ) . year
5536,return boolean True.,return True
5537,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
5538,"if self.file_permissions_mode is not None,",if self . file_permissions_mode is not None :
5539,close the _file file.,_file . close ( )
5540,register is an instance of Library class.,register = Library ( )
5541,"strip url of surrounding '/' characters, substitute it for tmp.",tmp = url . rstrip ( '/' )
5542,"move integer 1 left for 40 bits, substitute the result for TB.",TB = 1 << 40
5543,"skip this loop iteration,s",continue
5544,"call the method timezone.localize with 2 arguments: value and is_dst as None, return the result.","return timezone . localize ( value , is_dst = None )"
5545,"set the value under the 'bindAddress' key of the wsgi_opts dictionary to a tuple containing 2 elements: value under the 'host' key,","wsgi_opts [ 'bindAddress' ] = ( options [ ""host"" ] , int ( options [ ""port"" ] ) )"
5546,"convert return value of the function time.time to an integer, increment timeout by it.",timeout += int ( time . time ( ) )
5547,return boolean False.,return False
5548,define the method __iter__ with an argument self.,def __iter__ ( self ) :
5549,"if p is greater or equal to integer 0,",if p >= 0 :
5550,"if key is not contained in default_settings,",if key not in default_settings :
5551,"if ValueError or TypeError exceptions occurred,","except ( ValueError , TypeError ) :"
5552,"if best_doublecolon_len is greater than integer 1,",if best_doublecolon_len > 1 :
5553,"if domain is true,",if domain :
5554,define the method represent_decimal with arguments self and data.,"def represent_decimal ( self , data ) :"
5555,"get the value under the name key of the self.initial dictionary, if it exists substitute it for initial_value,","initial_value = self . initial . get ( name , field . initial )"
5556,return an empty dictionary.,return { }
5557,from django.conf import settings into default name space.,from django . conf import settings
5558,close the file stream.,stream . close ( )
5559,"replace '%s' in the string """" with length of self.digits and self.digits, respectively, return the string.","return """" % ( len ( self . digits ) , self . digits )"
5560,"if not, self.dry_run is boolean False. get the value under the 'merge' key of the options dictionary, if the key exists substitute it for self.merge,","self . merge = options . get ( 'merge' , False )"
5561,"model._meta.app_label, model._meta.object_name, parent_model._meta.app_label, parent_model._meta.object_name, respectively. return fk.",return fk
5562,"where '%s' is replaced with parsed.scheme. call the __init__ method from the base class of the HttpResponseRedirectBase class, called with arguments: unpacked list args,","super ( HttpResponseRedirectBase , self ) . __init__ ( * args , ** kwargs )"
5563,define the method dst with 2 arguments self and dt.,"def dst ( self , dt ) :"
5564,"if not,",else :
5565,"define the method __init__ with 4 arguments: self, key set to None, sep set to ':' and salt set to None.","def __init__ ( self , key = None , sep = ':' , salt = None ) :"
5566,return value under key key of self dictionary,return self [ key ]
5567,"if lengths of new_operations and operations are the same,",if len ( new_operations ) == len ( operations ) :
5568,"if line is true,",if line :
5569,"call the function six.text_type with an argument self.data.year, return the result without the first 2 elements.",return six . text_type ( self . data . year ) [ 2 : ]
5570,from django.core import urlresolvers into default name space.,from django . core import urlresolvers
5571,result is an empty list.,result = [ ]
5572,define the method __call__ with arguments self and value.,"def __call__ ( self , value ) :"
5573,"call the method self.iteritems, return the list of results.",return list ( self . iteritems ( ) )
5574,"with lock,",with lock :
5575,_moved_attributes is an empty list.,_moved_attributes = [ ]
5576,"raise an TemplateSyntaxError exception with an argument string ""'%s' takes one argument"", where '%s' is replaced with first element of bits.","raise TemplateSyntaxError ( ""'%s' takes one argument"" % bits [ 0 ] )"
5577,from django.core.exceptions import ImproperlyConfigured into default name space.,from django . core . exceptions import ImproperlyConfigured
5578,"if self.__language equals settings.LANGUAGE_CODE,",if self . __language == settings . LANGUAGE_CODE :
5579,"call the function conf.copy, substitute it for params.",params = conf . copy ( )
5580,return nothing.,return
5581,return an empty list.,return [ ]
5582,increment mes_count by one.,msg_count += 1
5583,"convert processors elements into a tuple, substitute it for _standard_context_processors.",_standard_context_processors = tuple ( processors )
5584,"open the file named filepath in read mode, with file descriptor renamed to fp perform,","with open ( filepath , 'rb' ) as fp :"
5585,raise an exception.,raise
5586,call the method LocaleRegexProvider.__init__ with arguments self and regex.,"LocaleRegexProvider . __init__ ( self , regex )"
5587,"call the method func.__get__ with 2 arguments: self and type of self object, call the result with 2 arguments:","return func . __get__ ( self , type ( self ) ) ( * args2 , ** kwargs2 )"
5588,call the function force_text with 2 arguments: src and settings.FILE_CHARSET.,"src = force_text ( src , settings . FILE_CHARSET )"
5589,pop_context is boolean True.,pop_context = True
5590,self.FILES is an instance of MultiValueDict class.,self . FILES = MultiValueDict ( )
5591,"call the method value.encode with an argument charset, substitute the result for value.",value = value . encode ( charset )
5592,"if not,",else :
5593,"substitute value under the key key of the self.COOKIES dictionary, substitute it for cookie_value.",cookie_value = self . COOKIES [ key ]
5594,"call the function self._key_to_file with key and version as arguments, substitute it for fname.","fname = self . _key_to_file ( key , version )"
5595,"if self._count is None,",if self . _count is None :
5596,substitute context for self.context.,self . context = context
5597,do nothing.,pass
5598,"try,",try :
5599,"call the function get_callable with an argument self._callback_str, substitute the result for self._callback.",self . _callback = get_callable ( self . _callback_str )
5600,remove the first element from context.render_context.,context . render_context . pop ( )
5601,"extend locations with tuple containing dirpath and f, for every f in filenames, only if it ends with string '.po'.","locations . extend ( ( dirpath , f ) for f in filenames if f . endswith ( '.po' ) )"
5602,"remove element from kwargs dictionary under the key 'pk_field', substitute it for self.pk_field if it exists,","self . pk_field = kwargs . pop ( ""pk_field"" , False )"
5603,call the method self._add_installed_apps_translations.,self . _add_installed_apps_translations ( )
5604,"if renamed is boolean False,",if not renamed :
5605,"for every path in collect,",for path in collect :
5606,substitute new_obj for obj.,obj = new_obj
5607,call the method handler.startDocument.,handler . startDocument ( )
5608,seen_data is an empty set.,seen_data = set ( )
5609,namespaces is an empty dictionary.,namespaces = { }
5610,return result.,return result
5611,"convert the value under the 'SERVER_NAME' key of the self.META dictionary to a string, substitute result for server_port.",server_port = str ( self . META [ 'SERVER_PORT' ] )
5612,derive the class Command from the AppCommand base class.,class Command ( AppCommand ) :
5613,"call the method __init__ from the base class of the class BaseModelFormSet, with an argument unpacked dictionary defaults.","super ( BaseModelFormSet , self ) . __init__ ( ** defaults )"
5614,"from django.db import connections, router, transaction, models and DEFAULT_DB_ALIAS into default name space.","from django . db import connections , router , transaction , models , DEFAULT_DB_ALIAS"
5615,"remover the entry under the 'type' key of the attrs dictionary, substitute it for self.input_type, if the key doesnt exists,","self . input_type = attrs . pop ( 'type' , self . input_type )"
5616,"if not,",else :
5617,"convert the value under the 'umask' key of options dictionary into an integer of base 8, substitute it for value under the 'umask' key of daemon_kwargs dictionary.","daemon_kwargs [ 'umask' ] = int ( options [ 'umask' ] , 8 )"
5618,num is an integer 0.,num = 0
5619,call the function shutil.move with arguments the_path and guessed_path.,"shutil . move ( the_path , guessed_path )"
5620,call the method handler.addQuickElement with 2 arguments: string 'title' and value under the 'title' key of the self.feed dictionary.,"handler . addQuickElement ( ""title"" , self . feed [ 'title' ] )"
5621,m is an instance of Media class.,m = Media ( )
5622,call the function thread.start_new_thread with main_func and args as arguments.,"thread . start_new_thread ( main_func , args )"
5623,"if val is None,",if val is None :
5624,derive the class PageNotAnInteger from the InvalidPage base class.,class PageNotAnInteger ( InvalidPage ) :
5625,return it. define the function itervalues with 2 arguments: d and unpacked dictionary kw.,"def itervalues ( d , ** kw ) :"
5626,insert mw_instance.process_exception at the beginning of self._exception_middleware.,"self . _exception_middleware . insert ( 0 , mw_instance . process_exception )"
5627,"if i is greater than or equal to the result of the method self.initial_form_count,",if i >= self . initial_form_count ( ) and not form . has_changed ( ) :
5628,"decorator method register.tag with an argument 'extends',",@ register . tag ( 'extends' )
5629,"tuple with 2 elements: upto and start and boolean False, append the result to result. substitute start for upto.",upto = start
5630,"if value is contained in self.empty_values,",if value in self . empty_values :
5631,tried_modules is an empty list.,tried_modules = [ ]
5632,"if not,",else :
5633,"instantiate class Module_six_moves_urllib_response with an argument, string "".moves.urllib.response"" appended to __name__,","sys . modules [ __name__ + "".moves.urllib_response"" ] = sys . modules [ __name__ + "".moves.urllib.response"" ] = Module_six_moves_urllib_response ( __name__ + "".moves.urllib.response"" )"
5634,substitute declared_fields for new_class.base_fields.,new_class . base_fields = declared_fields
5635,"define the method __init__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
5636,from django.utils import timezone into default name space.,from django . utils import timezone
5637,"call the function os.path.realpath with an argument d, use the result as an argument for the call to the function os.path.abspath,",dirs = [ upath ( os . path . abspath ( os . path . realpath ( d ) ) ) for d in dirs ]
5638,"substitute loopvars and sequence for self.loopvars and self.sequence, respectively.","self . loopvars , self . sequence = loopvars , sequence"
5639,"for every dict_ in self.dicts,",for dict_ in self . dicts :
5640,"iter_format_modules called with 2 arguments: lang and settings.FORMAT_MODULE_PATH, substitute the result for modules. if reverse is true,",if reverse :
5641,return an empty string.,return ''
5642,"and code set to string 'required. otherwise if self.required is false and value is false,",elif not self . required and not value :
5643,"call the method self.set with arguments key, value, timeout set to timeout, version set to version.","self . set ( key , value , timeout = timeout , version = version )"
5644,field_params is an empty dictionary.,field_params = { }
5645,call the method tpl.format with an arguments self.sysid and self.pubid.,"return tpl . format ( self . sysid , self . pubid )"
5646,nodelist is an empty list.,nodelist = [ ]
5647,"try,",try :
5648,"for every i in sequence of integers, from 0 to the result of the method self.total_form_count,","for i in range ( 0 , self . total_form_count ( ) ) :"
5649,call the method self.handle_m2m_field with arguments obj and filed.,"self . handle_m2m_field ( obj , field )"
5650,derive the class EndToken from the TokenBase base class.,class EndToken ( TokenBase ) :
5651,"define the method execute with 3 arguments: self, unpacked list args and unpacked dictionary options.","def execute ( self , * args , ** options ) :"
5652,self.managed is boolean True.,self . managed = True
5653,"return an empty string,",return ''
5654,define the method to_language with an argument self.,def to_language ( self ) :
5655,kwargs is an empty dictionary.,kwargs = { }
5656,derive the class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
5657,"call the method __getitem__ from the base class of the class MultiValueDict, with an argument key, substitute the result for list_.","list_ = super ( MultiValueDict , self ) . __getitem__ ( key )"
5658,"if is_templatized is true,",if is_templatized :
5659,call the method archive.extract with an argument to_path.,archive . extract ( to_path )
5660,msgattrib_options is an list with elements: string '--no-obsolete'.,msgattrib_options = [ '--no-obsolete' ]
5661,substitute model._meta for opts.,opts = model . _meta
5662,status_code is an integer 500.,status_code = 500
5663,"call the function warnings.warn with an argument,",warnings . warn ( 'A secure pseudo-random number generator is not available ' 'on your system. Falling back to Mersenne Twister.' )
5664,"call the method self.add_truncation_text with 2 arguments: elements of words joined in a string, separated with whitespaces,","return self . add_truncation_text ( ' ' . join ( words ) , truncate )"
5665,"if prefix is None,",if prefix is None :
5666,"substitute '%s' in string ""No changes detected in apps '%s'"" with the app_labels joined into a string, separated by string ""', '"",","self . stdout . write ( ""No changes detected in apps '%s'"" % ( ""', '"" . join ( app_labels ) ) )"
5667,"otherwise if o is an instance of datetime.date object,","elif isinstance ( o , datetime . date ) :"
5668,"try,",try :
5669,substitute ngettext for ngettext_lazy.,ngettext_lazy = ngettext
5670,"call the method call_command with string 'loaddata', string 'initial_data', verbosity set to self.verbosity,","call_command ( 'loaddata' , 'initial_data' , verbosity = self . verbosity , database = connection . alias , skip_validation = True , app_label = app_label , hide_empty = True )"
5671,return nothing.,return
5672,"call the function http_date with no arguments, and substitute its return value",response [ 'Last-Modified' ] = http_date ( )
5673,"raise an ImproperlyConfigured exception with argument string 'Could not create directory for saving email messages: %s (%s)',","raise ImproperlyConfigured ( 'Could not create directory for saving email messages: %s (%s)' % ( self . file_path , err ) )"
5674,define the function format with 2 arguments self and formatstr.,"def format ( self , formatstr ) :"
5675,substitute element at the bit index of current for current.,current = current [ bit ]
5676,"if not,",else :
5677,"raise an exception parser.error_class with an argument string ""Not expecting '%s' in this position in if tag."",","raise parser . error_class ( ""Not expecting '%s' in this position in if tag."" % self . id )"
5678,"get models.signals name attribute, store it in obj.","obj = getattr ( models . signals , name )"
5679,from django.utils.encoding import force_str into default name space.,from django . utils . encoding import force_str
5680,"try,",try :
5681,"multiply x by length of from_digits add the return value of method from_digits.index with digit argument, substitute the result for x.",x = x * len ( from_digits ) + from_digits . index ( digit )
5682,"try,",try :
5683,"if six.PY3 is boolean True,",if six . PY3 :
5684,"join elements of extra_classes into a string separated by whitespaces, return it.",return ' ' . join ( extra_classes )
5685,"return the result of the method self._html_output, called with 5 arguments: normal_row to a string,","return self . _html_output ( normal_row = '%(label)s %(field)s%(help_text)s
' , error_row = '%s' , row_ender = '
' , help_text_html = ' %s ' , errors_on_separate_row = True )"
5686,"if first element of bits is not equal to string 'and',",if bits [ 0 ] != 'and' :
5687,"if new_name is not equal to col_name,",if new_name != col_name :
5688,define the method __iter__ with an argument self.,def __iter__ ( self ) :
5689,"substitute the result for plural_form_line. if self.verbosity is greater than integer 1,",if self . verbosity > 1 :
5690,return self._is_rendered.,return self . _is_rendered
5691,"call the function import_module with argument self.urlconf_name, substitute the result for self._urlconf_module.",self . _urlconf_module = import_module ( self . urlconf_name )
5692,from django.utils import six into default name space.,from django . utils import six
5693,call the method httpd.serve_forever.,httpd . serve_forever ( )
5694,append tuple with 2 elements: i and value under the ORDERING_FIELD_NAME key of form.cleaned_data dictionary to self._ordering.,"self . _ordering . append ( ( i , form . cleaned_data [ ORDERING_FIELD_NAME ] ) )"
5695,define the method _set_queryset with 2 arguments: self and queryset.,"def _set_queryset ( self , queryset ) :"
5696,"replace every occurrence of '\n' in subject with '\\n' and replace every occurrence of '\r' in subject with '\\r',","formatted_subject = subject . replace ( '\n' , '\\n' ) . replace ( '\r' , '\\r' )"
5697,"call the method self.limit_choices_to, return the result,",return self . limit_choices_to ( )
5698,"RAW is a string ""raw"".","RAW = ""raw"""
5699,"get the index of first occurrence of name in existing, substitute it for i.",i = existing . index ( name )
5700,"for every item in self.items,",for item in self . items :
5701,"yield string ""# You'll have to do the following manually to clean this up:"" as the result.","yield ""# You'll have to do the following manually to clean this up:"""
5702,"get return value of the field.get_attname function attribute of the obj object, substitute it for value.","value = getattr ( obj , field . get_attname ( ) )"
5703,substitute the result for the value under the 'day' key of the html dictionary. output is an empty list.,output = [ ]
5704,call the method msg.attach with an argument body_msg.,msg . attach ( body_msg )
5705,"if escaped is true,",if escaped :
5706,"if self.verbosity is greater or equal to integer 2,",if self . verbosity >= 2 :
5707,return num_sent.,return num_sent
5708,"append the result to sql_files. join into a file path: app_dir and string %s.%s.sql, where '%s' is replaced by opts.model_name, append the result to sql_files.","sql_files . append ( os . path . join ( app_dir , ""%s.sql"" % opts . model_name ) )"
5709,return context_extras.,return context_extras
5710,"try,",try :
5711,"for every name in self.fields,",for name in self . fields :
5712,"append check to checks list, for every check in self.register_checks, if check has an attribute 'tags' and check.tags and tags set intersection is a non empty set.","checks = [ check for check in self . registered_checks if hasattr ( check , 'tags' ) and set ( check . tags ) & set ( tags ) ]"
5713,imported_objects is an empty dictionary.,imported_objects = { }
5714,"define the method _construct_form with 3 arguments: self, i and unpacked dictionary kwargs.","def _construct_form ( self , i , ** kwargs ) :"
5715,"and an empty dictionary, substitute the result for httpd_cls. if not,",else :
5716,define the function clear_script_prefix.,def clear_script_prefix ( ) :
5717,substitute obj for the value of the memo dictionary at the identity of the self object key.,memo [ id ( self ) ] = obj
5718,"if app_label is not contained in executor.loader.migrated_apps,",if app_label not in executor . loader . migrated_apps :
5719,write shutdown_message to self.stdout file stream.,self . stdout . write ( shutdown_message )
5720,"both_after is an list with an element instance of Tok class, created with 2 arguments: string 'other' and raw string '.'.","both_after = [ Tok ( ""other"" , r""."" ) , ]"
5721,"if context is an instance of Context,","if isinstance ( context , Context ) :"
5722,from django.core.management.base import AppCommand into default name space.,from django . core . management . base import AppCommand
5723,"if self.input_type equals string 'hidden' and self has an attribute 'input_type', return boolean True, otherwise return boolean False.","return self . input_type == 'hidden' if hasattr ( self , 'input_type' ) else False"
5724,derive the class Deserializer from the six.Iterator base class.,class Deserializer ( six . Iterator ) :
5725,derive the class Command from the TemplateCommand base class.,class Command ( TemplateCommand ) :
5726,"if not self.pk_field is boolean False. remove element from kwargs dictionary under the key 'to_field', substitute it for self.to_field if it exists,","self . to_field = kwargs . pop ( ""to_field"" , None )"
5727,"define the method _reverse_with_prefix with arguments self, lookup_view, _prefix, unpacked list args and unpacked dictionary kwargs.","def _reverse_with_prefix ( self , lookup_view , _prefix , * args , ** kwargs ) :"
5728,derive the OutputWrapper class from the object base class.,class OutputWrapper ( object ) :
5729,"if event equals a string ""START_ELEMENT"" and node.nodeName equals a string 'object',","if event == ""START_ELEMENT"" and node . nodeName == ""object"" :"
5730,return boolean False.,return False
5731,return result.,return result
5732,"for every filename in gen_filenames(),",for filename in gen_filenames ( ) :
5733,terminal_char is an string ')'.,terminal_char = ')'
5734,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
5735,define the method __enter__ with argument self.,def __enter__ ( self ) :
5736,"if label_output is true,",if label_output :
5737,"otherwise if value under the 'app_label' key of options dictionary is true,",elif options [ 'app_label' ] :
5738,"WEEKDAYS is an dictionary with 7 entries: result of the call to the function _ with an argument string 'Monday' for 0,","WEEKDAYS = { 0 : _ ( 'Monday' ) , 1 : _ ( 'Tuesday' ) , 2 : _ ( 'Wednesday' ) , 3 : _ ( 'Thursday' ) , 4 : _ ( 'Friday' ) , 5 : _ ( 'Saturday' ) , 6 : _ ( 'Sunday' ) }"
5739,"if ImproperlyConfigured renamed to exc, exception is caught,",except ImproperlyConfigured as exc :
5740,"define the method configure_logger with 4 arguments: self, name, config, incremental set to boolean False.","def configure_logger ( self , name , config , incremental = False ) :"
5741,"where string '%s' is replaced by lookup_view and mod_name, respectively. if not,",else :
5742,define the method handle with 2 arguments: self and unpacked dictionary options.,"def handle ( self , ** options ) :"
5743,"if not,",else :
5744,"subtract year from integer 2000, divide the result by integer 28, floor the result, multiply it with 28 and increment by year,",year = year + ( ( 2000 - year ) // 28 ) * 28
5745,"if form.errors is true,",if form . errors :
5746,"groupid is a string ""t%d"" formated with tok.id.","groupid = ""t%d"" % tok . id"
5747,content is an empty string.,content = ''
5748,substitute the result for new_class. if bases equals a tuple with an element: class BaseModelForm.,"if bases == ( BaseModelForm , ) :"
5749,"substitute StringIO for stream_class if content is an instance of six.text_type, otherwise substitute BytesIO for stream_class.","stream_class = StringIO if isinstance ( content , six . text_type ) else BytesIO"
5750,raise an Resolver404 exception with an argument dictionary containing 2 entries: new_path for 'path' and tried for 'tried'.,"raise Resolver404 ( { 'tried' : tried , 'path' : new_path } )"
5751,"with self.mutex perform,",with self . mutex :
5752,import module argparse.,import argparse
5753,import module warnings.,import warnings
5754,call the method __init__ from the base class of the ExternalReferenceForbidden class.,"super ( ExternalReferenceForbidden , self ) . __init__ ( )"
5755,from django.utils.datastructures import MultiValueDict and MergeDict into default name space.,"from django . utils . datastructures import MultiValueDict , MergeDict"
5756,"if ValueError or TypeError exceptions are caught,","except ( ValueError , TypeError ) :"
5757,"if not,",else :
5758,"call the method token_string.find with an argument TRANSLATOR_COMMENT_MARK, if it evaluates to true,",if token_string . find ( TRANSLATOR_COMMENT_MARK ) :
5759,"call the method query.items, substitute the result for query.",query = query . items ( )
5760,"if length of bits equals integer 3,",if len ( bits ) == 3 :
5761,call the method handler.addQuickElement with 2 arguments: string 'title' and value under the 'title' key of the item dictionary.,"handler . addQuickElement ( ""title"" , item [ 'title' ] )"
5762,"for every c in candidate without the last element and in reversed order, convert c into an integer,",odds = sum ( LUHN_ODD_LOOKUP [ int ( c ) ] for c in candidate [ - 2 : : - 2 ] )
5763,empty is an instance of object class.,empty = object ( )
5764,"call the function no_style, substitute it for self.style.",self . style = no_style ( )
5765,substitute record.request for request.,request = record . request
5766,return string 'st'.,return 'st'
5767,"call the method __delitem__ from the base class of the QueryDict class, with an argument key.","super ( QueryDict , self ) . __delitem__ ( key )"
5768,"call the method next with an argument bits, substitute the result for bit.",bit = next ( bits )
5769,derive the class EmptyPage from the InvalidPage base class.,class EmptyPage ( InvalidPage ) :
5770,"call the method context.push with unpacked dictionary values as an argument, with the result perform,",with context . push ( ** values ) :
5771,"if help_texts is true and f.name is contained in help_texts,",if help_texts and f . name in help_texts :
5772,skip this loop iteration.,continue
5773,call the method parser.delete_first_token.,parser . delete_first_token ( )
5774,"for every char in fmt,",for char in fmt :
5775,"with the result renamed to fp, perform the following: call the method fp.read, substitute the result for src_data.",src_data = fp . read ( )
5776,"raise an CommandError exception with an argument ""Can't find %s. Make sure you have GNU gettext tools 0.15 or newer installed."", where '%s' is replaced with program.","raise CommandError ( ""Can't find %s. Make sure you have GNU "" ""gettext tools 0.15 or newer installed."" % program )"
5777,"if logging_config is true,",if logging_config :
5778,"try,",try :
5779,"if KeyError exception is caught,",except KeyError :
5780,"call the function settings.is_overridden with argument string 'TEMPLATE_LOADERS', if it evaluates to boolean True,",if settings . is_overridden ( 'TEMPLATE_LOADERS' ) :
5781,"of the obj object, append the results in a list, substitute it for value under the field.name key of the self._current dictionary. define the method getvalue with an argument self.",def getvalue ( self ) :
5782,"if not,",else :
5783,substitute new_attr for self.attr.,self . attr = new_attr
5784,"call the method field._has_changed with 2 arguments: initial_value and data_value, if it evaluates to true,","if field . _has_changed ( initial_value , data_value ) :"
5785,response.content is bytes empty string.,response . content = b''
5786,"raise an exception,",raise
5787,break the loop execution.,break
5788,"split value into words, return the length of the result.",return len ( value . split ( ) )
5789,substitute CheckboxChoiceInput for choice_input_class.,choice_input_class = CheckboxChoiceInput
5790,"if jan1_weekday equals integer 5, or if jan1_weekday equals integer 6 and call to the function calendar.isleap,",if jan1_weekday == 5 or ( jan1_weekday == 6 and calendar . isleap ( self . data . year - 1 ) ) :
5791,"if value is None,",if value is None :
5792,"for every field in concrete_model._meta.local_fields,",for field in concrete_model . _meta . local_fields :
5793,"exp is an instance of Decimal, created with an argument integer 1.",exp = Decimal ( 1 )
5794,derive the class Command from the BaseCommand class.,class Command ( BaseCommand ) :
5795,"call the function re.compile with 2 arguments: string '^([a-z])[:|]' and re.I, substitute the result for _url_drive_re.","_url_drive_re = re . compile ( '^([a-z])[:|]' , re . I )"
5796,"if not,",else :
5797,"try,",try :
5798,define the method keys with an argument self.,def keys ( self ) :
5799,"instantiate class Truncator, with an argument value, call the method chars on the result with 2 arguments length,","return Truncator ( value ) . chars ( length , html = True )"
5800,from django.core.management.base import CommandError into default name space.,from django . core . management . base import CommandError
5801,define the function gettext_noop with an argument message.,def gettext ( message ) :
5802,"if sub_match is true,",if sub_match :
5803,return nothing.,return
5804,derive the class Command from the BaseCommand class.,class Command ( BaseCommand ) :
5805,return the value under the self.data.month key of the MONTHS_ALT dictionary.,return MONTHS_ALT [ self . data . month ]
5806,"call the method handler.upload_complete, substitute the result for retval.",retval = handler . upload_complete ( )
5807,"try,",try :
5808,"'(?::(?P\d{1,2})(?:\.(?P\d{1,6})\d{0,6})?)?(?PZ|[+-]\d{2}(?::?\d{2})?)?$', substitute it for datetime_re. define the function parse_date with an argument value.",def parse_date ( value ) :
5809,"try,",try :
5810,"if not,",else :
5811,"call the method cache.set, with cache_key, headerlist, cache_timeout as arguments.","cache . set ( cache_key , headerlist , cache_timeout )"
5812,nesting is integer 0.,nesting = 0
5813,"strip g of '""' from both ends,","g = g . strip ( '""' )"
5814,UNKNOWN_SOURCE is a string ''.,UNKNOWN_SOURCE = ''
5815,"call the method self._handle_m2m_field_node with an argument field_node and field, substitute the result for value under the field.name key of m2m_data dictionary.","m2m_data [ field . name ] = self . _handle_m2m_field_node ( field_node , field )"
5816,substitute attrs for self.attrs.,self . attrs = attrs
5817,"for every x in self.fields call the method x.__deepcopy__ with an argument memo, put the result into a tuple, substitute it for result.fields.",result . fields = tuple ( [ x . __deepcopy__ ( memo ) for x in self . fields ] )
5818,"call the method writer.as_string, write the result to fh file.",fh . write ( writer . as_string ( ) )
5819,for every k and v in return value of the method self.kwargs.items. return resolved_args and resolved_kwargs.,"return resolved_args , resolved_kwargs"
5820,"call the function force_text with an argument redirect_to, use the result as an argument for the call to the function urlparse,",parsed = urlparse ( force_text ( redirect_to ) )
5821,"if self.encoding exists substitute it for encoding, if not substitute settings.DEFAULT_CHARSET for encoding.",encoding = self . encoding or settings . DEFAULT_CHARSET
5822,return the content field of the base class of the class SimpleTemplateResponse.,"return super ( SimpleTemplateResponse , self ) . content"
5823,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
5824,"return an instance of a class ResolverMatch created with 6 arguments: sub_match.func, sub_match.args, sub_match_dict,","return ResolverMatch ( sub_match . func , sub_match . args , sub_match_dict , sub_match . url_name , self . app_name or sub_match . app_name , [ self . namespace ] + sub_match . namespaces )"
5825,from django.conf import settings into default name space.,from django . conf import settings
5826,define the method defalt with arguments self and o.,"def default ( self , o ) :"
5827,RemovedInDjango19Warning and stacklevel set to integer 2. import module logging.handlers.,import logging . handlers
5828,derive the class Serializer from the base.Serializer base class.,class Serializer ( base . Serializer ) :
5829,leave_locale_alone is boolean True,leave_locale_alone = True
5830,"call the method unicodedata.normalize with 2 arguments: string 'NFKD' and value, encode the result with 2 arguments: string 'ascii',","value = unicodedata . normalize ( 'NFKD' , value ) . encode ( 'ascii' , 'ignore' ) . decode ( 'ascii' )"
5831,call the method self._cache.delete with argument key.,self . _cache . delete ( key )
5832,define the method __init__ with 2 arguments: self and iterable set to None.,"def __init__ ( self , iterable = None ) :"
5833,return self.size.,return self . size
5834,"call the function warnings.warn with 3 arguments: string ""django.utils.dictconfig will be removed in Django 1.9."",","warnings . warn ( ""django.utils.dictconfig will be removed in Django 1.9."" , RemovedInDjango19Warning , stacklevel = 2 )"
5835,model_dependencies is an empty list.,model_dependencies = [ ]
5836,"call the function quote with return value of the evaluated function force_bytes(iri),","return quote ( force_bytes ( iri ) , safe = b""/#%[]=:;$&()+,!?*@'~"" )"
5837,sub_match_dict is a dictionary created from self.default_kwargs dictionary using mapping function match.groupdict.,"sub_match_dict = dict ( match . groupdict ( ) , ** self . default_kwargs )"
5838,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
5839,"if not,",else :
5840,call the method self._assert_mutable.,self . _assert_mutable ( )
5841,"define the method __get__ with 3 arguments: self, instance and name type to None.","def __get__ ( self , instance , type = None ) :"
5842,return a string '%02d' formated with self.data.day.,return '%02d' % self . data . day
5843,define the method __delattr__ with 2 arguments self and name.,"def __delattr__ ( self , name ) :"
5844,"while self.tokens is true,",while self . tokens :
5845,increment weight by integer 2.,weight += 1
5846,return result.,return result
5847,return a string '%06d' formated with self.data.microsecond.,return '%06d' % self . data . microsecond
5848,widget.is_localized is boolean True.,widget . is_localized = True
5849,"if DecimalException exception is caught,",except DecimalException :
5850,week_number is integer 1.,week_number = 1
5851,from django.db.models.fields import Field as ModelField.,from django . db . models . fields import Field as ModelField
5852,substitute self.required for widget.is_required.,widget . is_required = self . required
5853,define the method created_time with arguments self and name.,"def created_time ( self , name ) :"
5854,"default set to DEFAULT_DB_ALIAS and help set to a string: 'Nominates a database onto which the cache tables will be installed. Defaults to the ""default"" database.' define the method handle with arguments self, unpacked list tablenames and unpacked dictionary options.","def handle ( self , * tablenames , ** options ) :"
5855,define the method __deepcopy__ with 2 arguments: self and memo.,"def __deepcopy__ ( self , memo ) :"
5856,"if not,",else :
5857,define the method _isdst with 2 arguments: self and dt.,"def _isdst ( self , dt ) :"
5858,"if args is true,",if args :
5859,"resolved_args is an list with elements, return value of the method var.resolve with an argument context, for every var in self.args.",resolved_args = [ var . resolve ( context ) for var in self . args ]
5860,"register.tag decorator,",@ register . tag
5861,substitute content_type for self.content_type.,self . content_type = content_type
5862,define the method __repr__ with an argument self.,def __repr__ ( self ) :
5863,"strip g of ""'"" from both ends,","g = g . strip ( ""'"" )"
5864,from django.utils import six into default name space.,from django . utils import six
5865,"call the function get_library with an argument taglib, substitute the result for lib.",lib = get_library ( taglib )
5866,raise an TemplateDoesNotExist exception with an argument template_name.,raise TemplateDoesNotExist ( template_name )
5867,"call the method subcommand_cls.create_parser with 2 argument an empty string an first element of cwords, substitute it for parser.","parser = subcommand_cls . create_parser ( '' , cwords [ 0 ] )"
5868,append value to the self._closable_objects list.,self . _closable_objects . append ( value )
5869,"call the color_style method, substitute the result for self.style.",self . style = color_style ( )
5870,define the method __init__ with 2 arguments: self and source.,"def __init__ ( self , source ) :"
5871,"call the method self.setlistdefault with an argument key, append value to the result.",self . setlistdefault ( key ) . append ( value )
5872,from django.utils.translation import ugettext_lazy as _ and ungettext_lazy into default name space.,"from django . utils . translation import ugettext_lazy as _ , ungettext_lazy"
5873,"call the self.stdout.write method, with string "" Unapplying %s..."" with '%s' replaced with migration and ending set to '', as arguments.","self . stdout . write ( "" Unapplying %s..."" % migration , ending = """" )"
5874,inverse_match is boolean False.,inverse_match = False
5875,from django.utils.timezone import is_aware into default name space.,from django . utils . timezone import is_aware
5876,substitute iter for iterbytes.,iterbytes = iter
5877,reverse the order of elements of styles.,styles . reverse ( )
5878,"join root and filename into a file path, substitute it for old_path.","old_path = path . join ( root , filename )"
5879,"method lru_cache.lru_cache with an argument maxsize set to None, as a decorator,",@ lru_cache . lru_cache ( maxsize = None )
5880,define the method to_python with arguments self and data.,"def to_python ( self , data ) :"
5881,call the method self.add_root_elements with an argument handler.,self . add_root_elements ( handler )
5882,define the function parse_color_setting with an argument config_string.,def parse_color_setting ( config_string ) :
5883,"if KeyError exception is caught,",except KeyError :
5884,close fd file descriptor.,os . close ( fd )
5885,"t is an instance of Template class, created with 2 arguments output and name set to filepath.","t = Template ( output , name = filepath )"
5886,"if not,",else :
5887,prefix the base64d with a '.' character.,base64d = b'.' + base64d
5888,"if not,",else :
5889,"call the method dict.__setitem__ with 3 arguments: result, result of the function copy.deepcopy, called with 2 arguments: key,","dict . __setitem__ ( result , copy . deepcopy ( key , memo ) , copy . deepcopy ( value , memo ) )"
5890,from django.conf import settings into default name space.,from django . conf import settings
5891,if self.urlconf_name is an instance of a list type and its length is not zero.,"if isinstance ( self . urlconf_name , list ) and len ( self . urlconf_name ) :"
5892,"if item is contained in self.dict, return boolean True, otherwise return boolean False.",return item in self . dict
5893,"if self.domain equals to string 'djangojs',",if self . domain == 'djangojs' :
5894,content_length is integer 0.,content_length = 0
5895,page_range is a property object with _get_page_range as a getter method.,page_range = property ( _get_page_range )
5896,self._done is boolean True.,self . _done = True
5897,plural is an empty list.,plural = [ ]
5898,"msg is a string ""The use of the language code '%s' is deprecated. Please use the '%s' translation instead."".","msg = ( ""The use of the language code '%s' is deprecated. "" ""Please use the '%s' translation instead."" )"
5899,"contextlib.contextmanager decorator,",@ contextlib . contextmanager
5900,"call the warnings.warn method with string '`request.REQUEST` is deprecated, use `request.GET` or `request.POST` instead.',","warnings . warn ( '`request.REQUEST` is deprecated, use `request.GET` or ' '`request.POST` instead.' , RemovedInDjango19Warning , 2 )"
5901,"call the method self.expression, substitute the result for retval.",retval = self . expression ( )
5902,"_supported is an instance of OrderedDict class, created with an argument settings.LANGUAGES.",_supported = OrderedDict ( settings . LANGUAGES )
5903,"substitute empty string, word an empty string for lead, middle and trail, respectively.","lead , middle , trail = '' , word , ''"
5904,"if field_value has an attribute '__iter__' and is not an instance of six.text_type object,","if hasattr ( field_value , '__iter__' ) and not isinstance ( field_value , six . text_type ) :"
5905,remove dirname key from dirs.,dirs . remove ( dirname )
5906,"remove self.value_converters dictionary element under prefix key, if it exists substitute it for converter, if not, converter is None.","converter = self . value_converters . get ( prefix , None )"
5907,"filemsg is a string 'file %s, ', where '%s' is replaced with origin.","filemsg = 'file %s, ' % origin"
5908,"call the method get_language, substitute the result for language_code.",language_code = get_language ( )
5909,import module tempfile.,import tempfile
5910,"call the method prepare_value from the base class of the class ModelMultipleChoiceField, with an argument v,","return [ super ( ModelMultipleChoiceField , self ) . prepare_value ( v ) for v in value ]"
5911,"if not,",else :
5912,derive the class URLInput from the TextInput base class.,class URLInput ( TextInput ) :
5913,"called with 3 arguments: data, files and name, substitute the result for upload. if self.is_required is boolean false and call to the method value_from_datadict from the instance of CheckboxInput class,","if not self . is_required and CheckboxInput ( ) . value_from_datadict ( data , files , self . clear_checkbox_name ( name ) ) :"
5914,"get the attribute '__name__' from the getattr, if it exists substitute it for m, if not, m is None.","n = getattr ( lookup_view , '__name__' , None )"
5915,"if not,",else :
5916,ret_ip is an empty list.,ret_ip = [ ]
5917,"if not,",else :
5918,"substitute the resulting list for none_model_fields. missing_fields is difference between set containing none_model_fields and set containing result of the method,",missing_fields = ( set ( none_model_fields ) - set ( new_class . declared_fields . keys ( ) ) )
5919,"if value under the 'description' key of the item dictionary is not None,",if item [ 'description' ] is not None :
5920,"call the method parser.parse with an argument tuple with 3 elements: strings 'elif', 'else' and 'endif', substitute the result for nodelist.","nodelist = parser . parse ( ( 'elif' , 'else' , 'endif' ) )"
5921,"HttpResponseNotModified, HttpResponseBadRequest, HttpResponseForbidden, HttpResponseNotFound, HttpResponseNotAllowed, HttpResponseGone, HttpResponseServerError, Http404, BadHeaderError, JsonResponse into default name space. from django.http.utils import fix_location_header and conditional_content_removal into default name space.","from django . http . utils import fix_location_header , conditional_content_removal"
5922,"LUHN_ODD_LOOKUP is a tuple with 10 elements: integers 0, 2, 4, 6, 8, 1, 3, 5, 7 and 9.","LUHN_ODD_LOOKUP = ( 0 , 2 , 4 , 6 , 8 , 1 , 3 , 5 , 7 , 9 )"
5923,"if string '()' is contained in config,",if '()' in config :
5924,yield key and value under key key of self dictionary.,"yield key , self [ key ]"
5925,return url.,return url
5926,delete self._get.,del self . _get
5927,call the method handler.addQuickElement with 2 arguments: string 'description' and value under the 'description' key of the self.feed dictionary.,"handler . addQuickElement ( ""description"" , self . feed [ 'description' ] )"
5928,remove first element from self.command_stack.,self . command_stack . pop ( )
5929,"try,",try :
5930,"if content has an 'chunks' attribute,","if not hasattr ( content , 'chunks' ) :"
5931,"call the method filename.rfind with an argument string ""\\"", increment the result by one,","return filename and filename [ filename . rfind ( ""\\"" ) + 1 : ] . strip ( )"
5932,from django.utils.regex_helper import normalize into default name space.,from django . utils . regex_helper import normalize
5933,"function-based loader."", where '%s' is replaced with loader. substitute TemplateLoader for func.",func = TemplateLoader
5934,"call the connection.introspection.table_names with cursor as argument, store the result in tables.",tables = connection . introspection . table_names ( cursor )
5935,define the method self and name.,"def pop ( self , name ) :"
5936,"if not,",else :
5937,define the function import_string with an argument dotted_path.,def import_string ( dotted_path ) :
5938,"use the result as an key to get the value from the LUHN_ODD_LOOKUP dictionary, sum all the results and substitute the result for odds. sum evens and odds, if the result is divisible by integer 10, return boolean True, if not return boolean False.",return ( ( evens + odds ) % 10 == 0 )
5939,"if not,",else :
5940,register is an instance of Library class.,register = Library ( )
5941,"format string '&%s;' with name, append it to self.fed.",self . fed . append ( '&%s;' % name )
5942,"call the method self.nodelist.render with an argument context, strip the result of the surrounding whitespaces,",return strip_spaces_between_tags ( self . nodelist . render ( context ) . strip ( ) )
5943,return result and result_args.,"return result , result_args"
5944,substitute field_name for self.field_name.,self . field_name = field_name
5945,"if block_context is None,",if block_context is None :
5946,"while token.contents starts with a string 'elif',",while token . contents . startswith ( 'elif' ) :
5947,"call the method default with an argument o from the base class of the class DjangoJSONEncoder, return the result.","return super ( DjangoJSONEncoder , self ) . default ( o )"
5948,"if TypeError, AttributeError, KeyError or ValueError exceptions are caught,","except ( TypeError , AttributeError , KeyError , ValueError ) :"
5949,return self._cached_loaders.,return self . _cached_loaders
5950,"obj is an instance of Node class, created with 2 arguments: connector set to self.connector and negated set to self.negated.","obj = Node ( connector = self . connector , negated = self . negated )"
5951,"define the method get with 3 arguments: self, key and default set to None.","def get ( self , key , default = None ) :"
5952,"if ImportError exception is caught,",except ImportError :
5953,derive the class IfNode from Node base class.,class IfNode ( Node ) :
5954,do nothing.,pass
5955,"call the method line.lstrip, if the result starts with TRANSLATOR_COMMENT_MARK,",if line . lstrip ( ) . startswith ( TRANSLATOR_COMMENT_MARK ) :
5956,"define the method __init__ with 4 arguments: self, content_type set to None, status set to None, reason set to None.","def __init__ ( self , content_type = None , status = None , reason = None ) :"
5957,from django.db import connections and transaction into default name space.,"from django . db import connections , transaction"
5958,"if request has an attribute named 'urlconf',","if hasattr ( request , 'urlconf' ) :"
5959,"if length of bits is not equal to integer 2,",if len ( bits ) != 2 :
5960,"if KeyError exception is caught,",except KeyError :
5961,"get the id of the self object, use it as a key to obtain the value from the memo dictionary, substitute self with it.",memo [ id ( self ) ] = result
5962,"if not,",else :
5963,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
5964,import module re.,import re
5965,"call the method self.as_table, return the result.",return self . as_table ( )
5966,break the loop execution.,break
5967,"call the encode function on the Header class instance, created with arguments val and encoding, substitute the result for val.","val = Header ( val , encoding ) . encode ( )"
5968,"join self._container elements into a string, return it.",return b'' . join ( self . _container )
5969,"and sub_widgets set to return value of the function sub_ul_renderer.render, append the result to output. if not,",else :
5970,lbp is integer 0.,lbp = 0
5971,substitute settings.DEFAULT_CHARSET for encoding.,encoding = settings . DEFAULT_CHARSET
5972,"call the function ugettext with an argument string ""Please correct the duplicate values below."", return the result.","return ugettext ( ""Please correct the duplicate values below."" )"
5973,return self._choices.,return self . _choices
5974,"if invalid_apps in not empty,",if invalid_apps :
5975,from django.utils.http import cookie_date into default name space.,from django . utils . http import cookie_date
5976,substitute token_type and contents for self.token_type and self.contents.,"self . token_type , self . contents = token_type , contents"
5977,substitute first element of to_digits for res.,res = to_digits [ 0 ]
5978,"if fget is not None,",if fget is not None :
5979,return value.,return value
5980,return obj.,return obj
5981,do nothing.,pass
5982,"split t.contents by '|' symbol, substitute the result for parts,",parts = t . contents . split ( '|' )
5983,substitute urlconf_name for _urlconfs.value.,_urlconfs . value = urlconf_name
5984,define method parse_starttag with self class instance and i as the arguments.,"def parse_starttag ( self , i ) :"
5985,define the function make_list with an argument value.,def make_list ( value ) :
5986,__caches is an empty dictionary.,_caches = { }
5987,"to the function timedelta called with an argument seconds as negative time.altzone, return the result. if not,",else :
5988,"try,",try :
5989,"reminder of the division of floored result of division of seconds by 60, by integer 60. define the method P with an argument self.",def P ( self ) :
5990,break from the loop execution.,break
5991,"if the Exception exception is caught,",except Exception :
5992,append string '_field' to new_name.,new_name += '_field'
5993,"call the method context_instance.push with an argument dictionary, with the result perform,",with context_instance . push ( dictionary ) :
5994,do nothing.,pass
5995,import module yaml.,import yaml
5996,if comment_lineno_cache equals cur_lineno.,if comment_lineno_cache == cur_lineno :
5997,from django.db import models into default namespace.,from django . db import models
5998,"get attribute 'print' from the moves.builtins object, if it exists substitute it for print_, if not print_ is None.","print_ = getattr ( moves . builtins , ""print"" , None )"
5999,if self.use_natural_foreign_keys is true and field.rel.to has an 'natural_key' attribute.,"if self . use_natural_foreign_keys and hasattr ( field . rel . to , 'natural_key' ) :"
6000,call the method self.run_shell with an argument shell set to value under the 'interface' key of the options dictionary.,self . run_shell ( shell = options [ 'interface' ] )
6001,self._current is None.,self . _current = None
6002,substitute file_name for self.file_name.,self . file = file_name
6003,define the method _reset_dicts with 2 arguments: self and value set to None.,"def _reset_dicts ( self , value = None ) :"
6004,"out is an instance of StringIO class, created with an empty string as an argument.",out = StringIO ( '' )
6005,return None.,return None
6006,"if val is an instance of bytes, return val, otherwise return result of the method val.encode called with an argument encoding.","return val if isinstance ( val , bytes ) else val . encode ( encoding )"
6007,"define initialization method __init__ with self class instance, unpacked list args, unpacked dictionary kwargs as arguments.","def __init__ ( self , * args , ** kwargs ) :"
6008,"if not,",else :
6009,"call the method pickle.dumps with value and pickle.HIGHEST_PROTOCOL as arguments, substitute it for pickled.","pickled = pickle . dumps ( value , pickle . HIGHEST_PROTOCOL )"
6010,define the function get_image_dimension with file_or_path and close set to boolean False as the arguments.,"def get_image_dimensions ( file_or_path , close = False ) :"
6011,domains is a tuple with element string 'django'.,"domains = ( 'django' , )"
6012,append param to i-th element of result_args.,result_args [ i ] . append ( param )
6013,"call the function warnings.warn with 3 arguments: string 'import_by_path() has been deprecated. Use import_string() instead.',","warnings . warn ( 'import_by_path() has been deprecated. Use import_string() instead.' , RemovedInDjango19Warning , stacklevel = 2 )"
6014,append key to self.keyOrder.,self . keyOrder . append ( key )
6015,import module sys.,import sys
6016,substitute serialize for __str__.,__str__ = serialize
6017,"try,",try :
6018,"if base_url is None,",if base_url is None :
6019,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
6020,"while field.rel is not None,",while field . rel is not None :
6021,"format the string '%s
' with the result, for every p in paras, substitute list of results for paras. join elements of paras into a string separated with '\n\n', return the result.",return '\n\n' . join ( paras )
6022,"get the value under the 'app_label' key of the options dictionary, substitute it for self.app_label.",self . app_label = options . get ( 'app_label' )
6023,"where '%s' is replaced with first element of bits. call the method parser.compile_filter with second element of bits as an argument, substitute the result for filepath.",filepath = parser . compile_filter ( bits [ 1 ] )
6024,"append string '%%(%s)s' to singular, where '%s' is replaced with t.contents.",singular . append ( '%%(%s)s' % t . contents )
6025,substitute first element of args for arg.,arg = args [ 1 ]
6026,"if buf is false,",if not buf :
6027,"define the method add_item_elements with 3 arguments: self, handler and item.","def add_item_elements ( self , handler , item ) :"
6028,"if first element of params equals a string 'context',",if params [ 0 ] == 'context' :
6029,from django.utils.formats import get_format into default name space.,from django . utils . formats import get_format
6030,"if call to the function contains with 2 arguments: last element of result and Group, evaluates to true,","if contains ( result [ - 1 ] , Group ) :"
6031,"define the method __init__ with 8 arguments: self, file, field_name, name, content_type, size, charset and content_type_extra set to None.","def __init__ ( self , file , field_name , name , content_type , size , charset , content_type_extra = None ) :"
6032,self._files is an instance of MultiValueDict class.,self . _files = MultiValueDict ( )
6033,"if not,",else :
6034,"if filename is not contained in _mtimes,",if filename not in _mtimes :
6035,define the method __str__ with an argument self.,def __str__ ( self ) :
6036,import module time.,import time
6037,"call the method field.rel.to._default_manager.db_manager with db as argument, call the get_by_natural_key method on the result with,",obj = field . rel . to . _default_manager . db_manager ( db ) . get_by_natural_key ( * field_value )
6038,"if Exception, renamed to e, exception is caught,",except Exception as e :
6039,"define lambda function that returns self.file.readline field, use it as an argument for property function, put the result in readline.",readline = property ( lambda self : self . file . readline )
6040,"raise and exception InvalidCacheBackendError with string ""Could not find config for '%s' in settings.CACHES"" as argument, replace '%s' with alias.","raise InvalidCacheBackendError ( ""Could not find config for '%s' in settings.CACHES"" % alias )"
6041,"format string '%02d' with the second element of the result, return it. define the method U with an argument self.",def U ( self ) :
6042,call the function dateformat.format with 2 arguments: value and result of the function get_format called with 2 arguments:,"return dateformat . format ( value , get_format ( format or 'DATE_FORMAT' , use_l10n = use_l10n ) )"
6043,"force_bytes function, use the result as the argument for the call to the hashlib.mdb function, store the result in url. substitute the '%s' in string 'views.decorators.cache.cache_page.%s.%s.%s.%s' with key_prefix, method,","cache_key = 'views.decorators.cache.cache_page.%s.%s.%s.%s' % ( key_prefix , method , url . hexdigest ( ) , ctx . hexdigest ( ) )"
6044,"call the function timezone.get_current_timezone, substitute the result for current_timezone.",current_timezone = timezone . get_current_timezone ( )
6045,return boolean True.,return True
6046,define the method non_form_errors with an argument self.,def non_form_errors ( self ) :
6047,define the function get_language_bidi.,def get_language_bidi ( ) :
6048,"if offset is an instance of timedelta class,","if isinstance ( offset , timedelta ) :"
6049,convert value to an integer.,value = int ( value )
6050,substitute queryset for self._queryset.,self . _queryset = queryset
6051,"remove entry under 'initial' key of the kwargs dictionary, substitute it for self.initial_extra if it exists,","self . initial_extra = kwargs . pop ( 'initial' , None )"
6052,_templatetags_modules is an empty list.,_templatetags_modules = [ ]
6053,pending_references is a empty dictionary.,pending_references = { }
6054,import module sys.,import sys
6055,call the function exhaust with an argument self._input_data.,exhaust ( self . _input_data )
6056,"if e has an attribute 'code' and e.code is contained in self.error_messages,","if hasattr ( e , 'code' ) and e . code in self . error_messages :"
6057,"for every model in return value of the function router.get_migratable_models, called with arguments:","for model in router . get_migratable_models ( app_config , connection . alias , include_auto_created = True ) :"
6058,"if label_suffix is not None substitute label_suffix for self.label_suffix,",self . label_suffix = label_suffix if label_suffix is not None else _ ( ':' )
6059,return an instance of a dummy class.,return dummy ( )
6060,return val.,return val
6061,"get 'default_error_messages' from the c object, if it doesnt exists return an empty dictionary,","messages . update ( getattr ( c , 'default_error_messages' , { } ) )"
6062,define the function get_serializer with an argument format.,def get_serializer ( format ) :
6063,return _standard_context_processors.,return _standard_context_processors
6064,break the loop execution.,break
6065,write ']' to the self.stream file stream.,"self . stream . write ( ""]"" )"
6066,"if ImportError, renamed to e, exception is caught,",except ImportError as e :
6067,"if locale_dir is false,",if not locale_dir :
6068,"for every taglib in bits without the first element,",for taglib in bits [ 1 : ] :
6069,"if value is not contained in result,",if value is not result :
6070,define the function Deserializer with 2 arguments: stream_or_string and unpacked dictionary options.,"def Deserializer ( stream_or_string , ** options ) :"
6071,"if self.number equals to self.paginator.num_pages,",if self . number == self . paginator . num_pages :
6072,"use the result as an argument for the call to the method final_output.extend. call the method connection.creation.sql_for_pending_references with 3 arguments: refo, style and pending_references,","final_output . extend ( connection . creation . sql_for_pending_references ( model , style , pending_references ) )"
6073,"if not,",else :
6074,substitute func for self.func.,self . func = func
6075,"if not,",else :
6076,"if etags is false,",if not etags :
6077,"if k equals a string 'fg',",if k == 'fg' :
6078,"if not,",else :
6079,"call the function split_url with an argument value, substitute the result for url_fields.",url_fields = split_url ( value )
6080,from importlib import import_module into default name space.,from importlib import import_module
6081,substitute result for self.find_template_cache dictionary value under the key key.,self . find_template_cache [ key ] = result
6082,do nothing,pass
6083,"call the method self.error_class, substitute the result for value under the field key of the self._errors dictionary.",self . _errors [ field ] = self . error_class ( )
6084,skip this loop iteration.,continue
6085,"decorator stringfilter,",@ stringfilter
6086,"if self.requires_system_checks is true and values under the 'skip_validation' and 'skip_checks' keys of the options dictionary are false,",if ( self . requires_system_checks and not options . get ( 'skip_validation' ) and not options . get ( 'skip_checks' ) ) :
6087,define the method latest_post_date with an argument self.,def latest_post_date ( self ) :
6088,do nothing.,pass
6089,"define the method strptime with arguments self, value and format.","def strptime ( self , value , format ) :"
6090,"if length of bits is not equal to integer 6,",if len ( bits ) != 6 :
6091,"call the method self.resolve_template with an argument self.template_name, substitute the result for template.",template = self . resolve_template ( self . template_name )
6092,substitute settings.CACHE_MIDDLEWARE_KEY_PREFIX for key_prefix.,key_prefix = settings . CACHE_MIDDLEWARE_KEY_PREFIX
6093,"call the function ugettext with an argument string ""%s KB"", substitute '%s' with the result of the call to the function,","value = ugettext ( ""%s KB"" ) % filesize_number_format ( bytes / KB )"
6094,"return an instance of IncludeNode class, created with 3 arguments: return value of the method parser.compile_filter,","return IncludeNode ( parser . compile_filter ( bits [ 1 ] ) , extra_context = namemap , isolated_context = isolated_context )"
6095,substitute obj for self.data.,self . data = obj
6096,from django.utils.six.moves import map into default name space.,from django . utils . six . moves import map
6097,option_value is an empty string.,option_value = ''
6098,return an empty string.,return ''
6099,return context_extras.,return context_extras
6100,call the method self.connection.ehlo.,self . connection . ehlo ( )
6101,"define the method handle with 3 arguments: self, unpacked list labels and unpacked dictionary options.","def handle ( self , * labels , ** options ) :"
6102,substitute deprecation_warning for self.deprecation_warning.,self . deprecation_warning = deprecation_warning
6103,substitute force_bytes for force_str.,force_str = force_bytes
6104,"if conflicts is true,",if conflicts :
6105,"if end_index is None and s_len is greater than truncate_len,",if end_index is None and s_len > truncate_len :
6106,"use the result as the argument for the call to the sql.extend method. if self.verbosity is greater or equal than integer 1 and sql is true,",if self . verbosity >= 1 and sql :
6107,"call the function load_command_class with arguments: app_name and name, substitute the result for command.","command = load_command_class ( app_name , name )"
6108,"parser is an instance of CommandParser class, created with 3 arguments, None, usage as a string ""%(prog)s subcommand [options] [args]"" and add_help set to boolean False.","parser = CommandParser ( None , usage = ""%(prog)s subcommand [options] [args]"" , add_help = False )"
6109,call the function handle_default_options with an argument options.,handle_default_options ( options )
6110,"call the function ugettext with an argument string ""%s PB"", substitute '%s' with the result of the call to the function,","value = ugettext ( ""%s PB"" ) % filesize_number_format ( bytes / PB )"
6111,"input_attrs, append the result to inputs list. join inputs elements into a string, separated with newline character, use it as an argument for the call to the function mark_safe,",return mark_safe ( '\n' . join ( inputs ) )
6112,self._deleted_form_indexes is an empty list.,self . _deleted_form_indexes = [ ]
6113,define the function i18n with an argument request.,def i18n ( request ) :
6114,"if not,",else :
6115,errors is an empty list.,errors = [ ]
6116,"call the function _ with an argument string 'a.m.', return the result.",return _ ( 'a.m.' )
6117,derive the class RWLock from the object base class.,class RWLock ( object ) :
6118,define the method close with an argument self.,def close ( self ) :
6119,"define the function mail_admins with subject, message, fails_silently set to boolean False, connection set to None,","def mail_admins ( subject , message , fail_silently = False , connection = None , html_message = None ) :"
6120,substitute length of chunk for chunk_length.,chunk_length = len ( chunk )
6121,substitute memoryview for memoryview.,memoryview = memoryview
6122,from django.utils.functional import cached_property into default name space.,from django . utils . functional import cached_property
6123,return result.,return result
6124,define the function filesizeformat with an argument bytes.,def filesizeformat ( bytes ) :
6125,substitute view_name for self.view_name.,self . view_name = view_name
6126,call the method translation.activate with an argument settings.LANGUAGE_CODE.,translation . activate ( settings . LANGUAGE_CODE )
6127,define the function _explode_shorthand_ip_string with an argument ip_str.,def _explode_shorthand_ip_string ( ip_str ) :
6128,from django.utils.encoding import smart_text into default name space.,from django . utils . encoding import smart_text
6129,"get the value under log key of root.manager.loggerDict dictionary, substitute it for logger.",logger = root . manager . loggerDict [ log ]
6130,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
6131,substitute the value under the 'app_label' key of options dictionary for app_label.,app_label = options [ 'app_label' ]
6132,"for every form in valid_forms,",for form in valid_forms :
6133,"try,",try :
6134,"call the method get_language, substitute the result for language_code.",language_code = get_language ( )
6135,"respectively replace '%s' with key and elements of the resolved_path joined into a string, separated by ':'. if not,",else :
6136,substitute fields for self.fields.,self . fields = fields
6137,"otherwise name is None. if name is None,",if name is None :
6138,substitute first element of item for k.,k = item [ 0 ]
6139,"call the method self.is_url with an argument template, if it evaluates to true,",if self . is_url ( template ) :
6140,"if model is not contained in app_models for every model in return value of the connection.introspection.installed_models function return value,",known_models = set ( model for model in connection . introspection . installed_models ( tables ) if model not in app_models )
6141,"call the function time.gmtime with argument timeval, use string '%Y%m%d%H%M%S' and the previous result as an argument for the call to the time.strftime function, substitute the result for utcdate.","utcdate = time . strftime ( '%Y%m%d%H%M%S' , time . gmtime ( timeval ) )"
6142,substitute length of prefixed for pflen.,pflen = len ( prefixed )
6143,"call the method self.get_exception_response with request, resolver and integer 404 as the arguments, assign the result to response.","response = self . get_exception_response ( request , resolver , 404 )"
6144,import module sys.,import sys
6145,substitute value for self._encoding.,self . _encoding = value
6146,"if TypeError exception is caught,",except TypeError :
6147,"if exception PermissionDenied is caught,",except PermissionDenied :
6148,"raise CommandError exception, with sring ""Can't find %s. Make sure you have GNU gettext tools 0.15 or newer installed."" as argument, substitute '%s' with self.program.","raise CommandError ( ""Can't find %s. Make sure you have GNU gettext "" ""tools 0.15 or newer installed."" % self . program )"
6149,"if now is false,",if not now :
6150,"for every obj in value call the function mark_safe with an argument result of the function force_text called with an argument obj,",return [ mark_safe ( force_text ( obj ) ) for obj in value ]
6151,"if not an empty string, and truncate, return the result. return text.",return text
6152,"decorator deconstructible,",@ deconstructible
6153,increment objects_in_fixture by one.,objects_in_fixture += 1
6154,define the function do_include with 2 arguments parser and token.,"def do_include ( parser , token ) :"
6155,"call the function flatten_result with an argument result, unpack the resulting list and zip it in the list of tuples, return the result.",return list ( zip ( * flatten_result ( result ) ) )
6156,"if transfer_encoding equals a string 'base64',",if transfer_encoding == 'base64' :
6157,"and return value of the call to the method ProjectState.from_apps with apps as an argument, assign it to the autodetector. call the method autodetector.changes with the graph set to executor.loader.graph as an argument, substitute it for the changes.",changes = autodetector . changes ( graph = executor . loader . graph )
6158,"if autoescape is true,",if autoescape :
6159,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
6160,"raise an ValueError with an argument string ""Invalid timezone: %r"", substitute '%r' with timezone.","raise ValueError ( ""Invalid timezone: %r"" % timezone )"
6161,use global variable _supported.,global _supported
6162,return self.empty_value.,return self . empty_value
6163,"replace '%s' in string '%s.management.commands.%s' with app_name and name, respectively, use it as an result for the call to the","module = import_module ( '%s.management.commands.%s' % ( app_name , name ) )"
6164,DEFAULT_TIMEOUT is a instance of the class object.,DEFAULT_TIMEOUT = object ( )
6165,from django.utils import timezone and six into default name space.,"from django . utils import timezone , six"
6166,"define the function __init__ with 11 arguments: self, required set to boolean True, widget set to None, label set to None,","def __init__ ( self , required = True , widget = None , label = None , initial = None , help_text = '' , error_messages = None , show_hidden_initial = False , validators = [ ] , localize = False , label_suffix = None ) :"
6167,substitute self for value under the 'block' key of context dictionary.,context [ 'block' ] = self
6168,"assign the settings.SECURE_PROXY_SSL_HEADER to header and value, respectively.","header , value = settings . SECURE_PROXY_SSL_HEADER"
6169,"call the params.get function with string 'OPTIONS' and None as arguments, substitute the result for self._options.","self . _options = params . get ( 'OPTIONS' , None )"
6170,"call the function hmac.compare_digest with 2 arguments: result of the function force_bytes called with an argument val1,","return hmac . compare_digest ( force_bytes ( val1 ) , force_bytes ( val2 ) )"
6171,"use tag as an argument to call the iterator method next, substitute the result for invalid_tag. raise an CommandError exception with an argument string 'There is no system check with the ""%s"" tag.', where '%s' is replaced with invalid_tag.","raise CommandError ( 'There is no system check with the ""%s"" tag.' % invalid_tag )"
6172,"call the __init__ method with 3 arguments: WARNING, unpacked list args and unpacked dictionary kwargs from the base class of Warning.","return super ( Warning , self ) . __init__ ( WARNING , * args , ** kwargs )"
6173,from django.conf import settings into default name space.,from django . conf import settings
6174,return an empty list.,return [ ]
6175,"if IndexError exception is caught,",except IndexError :
6176,"resolved_kwargs is dictionary with elements: return value of the method v.resolve called with an argument context, for k,","resolved_kwargs = dict ( ( k , v . resolve ( context ) ) for k , v in self . kwargs . items ( ) )"
6177,"define the method _convert_to_charset with 4 arguments: self, value, charset and mime_encode set to boolean False.","def _convert_to_charset ( self , value , charset , mime_encode = False ) :"
6178,"if sep is an instance of unicode,","if isinstance ( sep , unicode ) :"
6179,"to the function url.hexdigest(), respectively, substitute it for cache_key. call the function _i18n_cache_key_suffix with request and cache_key as arguments, return the result.","return _i18n_cache_key_suffix ( request , cache_key )"
6180,"return a dictionary generated with an expression, return value of the method e.as_data for f,","return { f : e . as_data ( ) for f , e in self . items ( ) }"
6181,define the function python_reloader with main_func and kwargs as arguments.,"def python_reloader ( main_func , args , kwargs ) :"
6182,"if string 'version' is not contained in config,",if 'version' not in config :
6183,"if AttributeError exception is caught,",except AttributeError :
6184,"for every path in paths,",for path in paths :
6185,"if value under the 'load_initial_data' key of the options dictionary is true,",if options . get ( 'load_initial_data' ) :
6186,substitute connection.queries for value under the 'debug' key of the context_extras dictionary.,context_extras [ 'sql_queries' ] = connection . queries
6187,"call the parse_args method with arguments args and namespace, from the base class of the CommandParser class.","return super ( CommandParser , self ) . parse_args ( args , namespace )"
6188,"call the function normpath with an argument path, return the result.",return normpath ( path )
6189,"if self._non_form_errors is None,",if self . _non_form_errors is None :
6190,"try,",try :
6191,docstirng,"""""""Close the cache connection"""""""
6192,append string '' to output.,output . append ( '' )
6193,"raise an TemplateSyntaxError exception with an argument string ""Could not parse the remainder: '%s' from '%s'"",","raise TemplateSyntaxError ( ""Could not parse the remainder: '%s' "" ""from '%s'"" % ( token [ upto : ] , token ) )"
6194,substitute months for self.months.,self . months = months
6195,"return an instance of EscapeText, created with an argument s.",return EscapeText ( s )
6196,"msg is a string ""%(model)s.Meta.%(opt)s cannot be a string. Did you mean to type: ('%(value)s',)?"", where '%(model)s' is replaced,","msg = ( ""%(model)s.Meta.%(opt)s cannot be a string. "" ""Did you mean to type: ('%(value)s',)?"" % { 'model' : new_class . __name__ , 'opt' : opt , 'value' : value , } )"
6197,"get the value under the 'id' key of the widget.attrs dictionary, if the key exists substitute it for id_,",id_ = widget . attrs . get ( 'id' ) or self . auto_id
6198,"if self.verbosity is greater than integer 1,",if self . verbosity > 1 :
6199,"if value is an instance of six.string_types class,","if isinstance ( value , six . string_types ) :"
6200,define the method has_next with an argument self.,def has_next ( self ) :
6201,"join self.file_path and fname into a valid file path, substitute it for self._fname.","self . _fname = os . path . join ( self . file_path , fname )"
6202,remove the first element of context.,context . pop ( )
6203,"if not, substitute self.auto_id for id_. if id_ is true,",if id_ :
6204,return a string '%02d' formated with self.data.second.,return '%02d' % self . data . second
6205,"return value,",return value
6206,define the method configure_filter with 2 arguments: self and config.,"def configure_filter ( self , config ) :"
6207,"call te method operator.itemgetter with an argument integer 0, substitute the result for byte2int.",byte2int = operator . itemgetter ( 0 )
6208,num_pages is a property object with _get_num_pages as a getter method.,num_pages = property ( _get_num_pages )
6209,return self._fname.,return self . _fname
6210,"call the function six.iteritems with an argument dict_, for every item in the result,",for item in six . iteritems ( dict_ ) :
6211,"if lib is true,",if lib :
6212,return path an an empty string.,"return path , ''"
6213,delete entry under the attr key of obj_dict dictionary.,del obj_dict [ attr ]
6214,errors is an empty list.,errors = [ ]
6215,define the method _get_filename with argument self.,def _get_filename ( self ) :
6216,substitute i for self.pointer.,self . pointer = i
6217,from django.core.management.base import AppCommand into default name space.,from django . core . management . base import AppCommand
6218,"if not,",else :
6219,substitute settings.DATE_FORMAT for arg.,arg = settings . DATE_FORMAT
6220,connection_params is a dictionary with 1 initial entry: return value of the function DNS_NAME.get_fqdn for 'local_hostname'.,connection_params = { 'local_hostname' : DNS_NAME . get_fqdn ( ) }
6221,"call the BaseConverter function with BASE2_ALPHABET as argument, store the result in base2.",base2 = BaseConverter ( BASE2_ALPHABET )
6222,"otherwise if self.name exists and self.name file path exists,",elif self . name and os . path . exists ( self . name ) :
6223,define the method __getattr__ with self and name as arguments.,"def __getattr__ ( self , name ) :"
6224,"if value is None,",if value is None :
6225,"call the method copy.copy, substitute the result for obj.",obj = copy . copy ( self )
6226,"for every f in files,",for f in dirs :
6227,call the method os.dup2 with 2 arguments: result of the method si.fileno and result of the method sys.stdin.fileno.,"os . dup2 ( si . fileno ( ) , sys . stdin . fileno ( ) )"
6228,return self.,return self
6229,"property decorator,",@ property
6230,append a tuple with elements key and value to current_fields.,"current_fields . append ( ( key , value ) )"
6231,"write string "" you can delete them."" to self.stdout.","self . stdout . write ( "" you can delete them."" )"
6232,delete the form.cleaned_data dictionary entry under the field key.,del form . cleaned_data [ field ]
6233,"if value is None and attr is contained in declared_fields,",if value is None and attr in declared_fields :
6234,"define the method add_item_elements with 3 arguments: self, handler and item.","def add_item_elements ( self , handler , item ) :"
6235,"for every name in MEDIA_TYPES,",for name in MEDIA_TYPES :
6236,"otherwise if first element of second row of args equals a string '3',",elif args [ 1 ] [ 0 ] == '3' :
6237,return a list with an element tuple with 2 elements: an empty string and an empty list.,"return [ ( '' , [ ] ) ]"
6238,"from django.utils.encoding import force_bytes, force_text, force_str and iri_to_uri into default name space.","from django . utils . encoding import force_bytes , force_text , force_str , iri_to_uri"
6239,"if self.size is greater than chunk_size, return boolean True, otherwise return boolean False.",return self . size > chunk_size
6240,"if self is not contained in state_frame,",if self not in state_frame :
6241,"call the function warnings.warn with previous string and CacheKeyWarning as arguments. define the method incr_version with 4 arguments, self, key, delta defaulting to integer 1 and version defaulting to None.","def incr_version ( self , key , delta = 1 , version = None ) :"
6242,define the function parse_etags with an argument etag_str.,def parse_etags ( etag_str ) :
6243,"create a instance of a class BadSerializerModule from the object base class, with elements Deserializer set to bad_serializer and Serializer set to bad_serializer.","module = type ( 'BadSerializerModule' , ( object , ) , { 'Deserializer' : bad_serializer , 'Serializer' : bad_serializer , } )"
6244,self._js is an empty list.,self . _js = [ ]
6245,substitute self.queryset for qs.,qs = self . queryset
6246,from django.utils.module_loading import import_string into default name space.,from django . utils . module_loading import import_string
6247,"match string s with regex IDENTIFIER, substitute the result for m.",m = IDENTIFIER . match ( s )
6248,"call function force_bytes with value as argument, use the result to as the result for the call to the methgod ctx.update.",ctx . update ( force_bytes ( value ) )
6249,"call the function parse_header with an argument line, substitute the result for main_value_pair and params, respectively.","main_value_pair , params = parse_header ( line )"
6250,"call the os.path.basename with path as argument, substitute the result for filename.",filename = os . path . basename ( path )
6251,append app_output to output.,output . append ( app_output )
6252,"call the method queryset.filter with an argument pk__in set to primary_keys, substitute the result for queryset.",queryset = queryset . filter ( pk__in = primary_keys )
6253,"while i is lesser than length of subject and i-th element of subject is not an empty space or tab character,","while i < len ( subject ) and subject [ i ] not in ( ' ' , '\t' ) :"
6254,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
6255,"get the value under the 'content-disposition' key of the info dictionary, substitute it for content_disposition.",content_disposition = info . get ( 'content-disposition' )
6256,"define the function __init__ with 3 arguments: self, token and parser.","def __init__ ( self , token , parser ) :"
6257,"if value is contained in self.empty_values,",if value in self . empty_values :
6258,convert processors into a tuple and substitute it for processors.,processors = tuple ( processors )
6259,"new_msg is a tuple containing a string: ""Database %s couldn't be flushed. Possible reasons:\n""","new_msg = ( ""Database %s couldn't be flushed. Possible reasons:\n"" "" * The database isn't running or isn't configured correctly.\n"" "" * At least one of the expected database tables doesn't exist.\n"" "" * The SQL was invalid.\n"" ""Hint: Look at the output of 'django-admin.py sqlflush'. That's the SQL this command wasn't able to run.\n"" ""The full error: %s"" ) % ( connection . settings_dict [ 'NAME' ] , e )"
6260,derive DatabaseCache from the BaseDatabaseCache base class.,class DatabaseCache ( BaseDatabaseCache ) :
6261,"call the __add__ method with an arguments rhs from the base class of the class SafeText, substitute the result for t.","t = super ( SafeText , self ) . __add__ ( rhs )"
6262,derive Serializer from the base.Serializer base class.,class Serializer ( base . Serializer ) :
6263,return a string 'Raw content'.,return 'Raw content'
6264,"try,",try :
6265,"call the method __init__ from the base class of the class CheckboxInput, with an argument attrs.","super ( CheckboxInput , self ) . __init__ ( attrs )"
6266,"call the function importlib.import_module with an argument serializer_module, substitute it for module.",module = importlib . import_module ( serializer_module )
6267,substitute _itervalues for values.,values = _itervalues
6268,"call the method router.db_for_write with argument self.cache_model_class, substitute the result for db.",db = router . db_for_write ( self . cache_model_class )
6269,"python_2_unicode_compatible decorator,",@ python_2_unicode_compatible
6270,return nothing.,return
6271,"call the method middleware.process_exception with 2 arguments: request and e, substitute the result for result.","result = middleware . process_exception ( request , e )"
6272,return first end elements of list chunk.,return chunk [ : end ]
6273,raise an exception.,raise
6274,define the method resolve_context with 2 arguments: self and context.,"def resolve_context ( self , context ) :"
6275,"otherwise if vale is not an instance of ConvertingList and value is an instance of list type,","elif not isinstance ( value , ConvertingList ) and isinstance ( value , list ) :"
6276,"writer is an instance of MigrationWriter class, created with an argument migration.",writer = MigrationWriter ( migration )
6277,"call the method baseconv.base62.encode with result of the time.time function converted to an integer, as an argument, return the result.",return baseconv . base62 . encode ( int ( time . time ( ) ) )
6278,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
6279,"if ImportError, rename it to e, exception is caught,",except ImportError as e :
6280,define the method add_root_elements with 2 arguments: self and handler.,"def add_root_elements ( self , handler ) :"
6281,return the value under the language_code key of the self._app_dict dictionary.,return self . _app_dict [ language_code ]
6282,"try,",try :
6283,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
6284,"get the value under the 'localize' key of the kwargs dictionary, substitute it for localize, if the key doesnt exists, substitute the result for localize.","localize = kwargs . get ( 'localize' , False )"
6285,"take the first i elements of string p, strip the whitespaces from the both sides, convert it to lowercase and apply on it the method,",name = p [ : i ] . strip ( ) . lower ( ) . decode ( 'ascii' )
6286,return self.__name.,return self . __name
6287,"define the function ungettext with 3 arguments: singular, plural and number.","def ungettext ( singular , plural , number ) :"
6288,from email.mime.multipart import MIMEMultipart into default name space.,from email . mime . multipart import MIMEMultipart
6289,from django.core.handlers import base into default name space.,from django . core . handlers import base
6290,"if vale is None or an empty string,","if value in ( None , '' ) :"
6291,"substitute '%s' in string '%s-%s' with self.prefix and field_name and return it, if self.prefix is true, if not return field_name.","return '%s-%s' % ( self . prefix , field_name ) if self . prefix else field_name"
6292,"'ManagementForm data is missing or has been tampered with' and code as a string 'missing_management_form'. if not,",else :
6293,import module sys.,import sys
6294,call the function write with an argument sep.,write ( sep )
6295,"call the function urlparse with an argument url, substitute the result for url_info.",url_info = urlparse ( url )
6296,substituet node for value under the name key of the parser._namedCycleNodes dictionary.,parser . _namedCycleNodes [ name ] = node
6297,"return an instance of a SsiNode class, created with 2 arguments: filepath and parsed.","return SsiNode ( filepath , parsed )"
6298,"otherwise if value under the key key of the user_settings dictionary is not equal to the value under the key key of the default_settings dictionary,",elif user_settings [ key ] != default_settings [ key ] :
6299,call the method self.add_handlers with 2 arguments: logger and handlers.,"self . add_handlers ( logger , handlers )"
6300,"from django.template.loader import get_template, select_template.","from django . template . loader import get_template , select_template"
6301,import module copy.,import copy
6302,"raise an exception of class NotImplementedError, with string 'subclasses of BaseCache must provide a set() method' as argument.",raise NotImplementedError ( 'subclasses of BaseCache must provide a set() method' )
6303,import module datetime.,import datetime
6304,"get the value under the 'locale' key of the options dictionary, substitute it for locale.",locale = options . get ( 'locale' )
6305,return style.,return style
6306,"call the method token.split_contents, substitute the result for bits.",bits = token . split_contents ( )
6307,initial is boolean False.,initial = False
6308,"evaluate the function http.parse_cookie with raw_cookie as an argument, return the result.",return http . parse_cookie ( raw_cookie )
6309,"decorator stringfilter,",@ stringfilter
6310,"if args is None,",if args is None :
6311,"call the method router.get_migratable_models with argument: app_config, connection.alias and include_auto_created set to True, substitute the result for app_models.","app_models = router . get_migratable_models ( app_config , connection . alias , include_auto_created = True )"
6312,"for every chunk in content.chunks function return value,",for chunk in content . chunks ( ) :
6313,define the method as_table with an argument self.,def as_table ( self ) :
6314,"raise CommandError exception with string ""The %s file has a BOM (Byte Order Mark). Django only supports .po files encoded in UTF-8 and without any BOM."", with '%s' replaced with po_path, as argument.","raise CommandError ( ""The %s file has a BOM (Byte Order Mark). "" ""Django only supports .po files encoded in "" ""UTF-8 and without any BOM."" % po_path )"
6315,"substitute '%s' in 'django.security.%s' with the name of the type of the class object e, use it as the argument for the call to the,",security_logger = logging . getLogger ( 'django.security.%s' % e . __class__ . __name__ )
6316,"call the method self._create_alternatives with an argument msg, use it as an argument for the call to the self._create_attachments method, return the result.",return self . _create_attachments ( self . _create_alternatives ( msg ) )
6317,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
6318,"call the method warnings.warn with 2 arguments: string ""No fixture data found for '%s'. (File format may be invalid.)"",","warnings . warn ( ""No fixture data found for '%s'. (File format may be "" ""invalid.)"" % fixture_name , RuntimeWarning )"
6319,"try,",try :
6320,"from django.db import connections, router, transaction and DEFAULT_DB_ALIAS into default name space.","from django . db import connections , router , transaction , DEFAULT_DB_ALIAS"
6321,"call the function self.func with an argument instance, substitute the result for res and value under the self.name key of the instance.__dict__ dictionary.",res = instance . __dict__ [ self . name ] = self . func ( instance )
6322,"try,",try :
6323,derive the class TranslatableFile from the object class.,class TranslatableFile ( object ) :
6324,decorator function register.filter with 2 arguments is_safe set to boolean True and needs_autoescape set to boolean True.,"@ register . filter ( is_safe = True , needs_autoescape = True )"
6325,"if fixture_name is not equal to string 'initial_data' and fixture_files is false,",if fixture_name != 'initial_data' and not fixture_files :
6326,f.required is boolean False.,f . required = False
6327,substitute kw for self.__kw.,self . __kw = kw
6328,return an empty string.,return ''
6329,raise an exception.,raise
6330,from django.db.migrations.state import ProjectState into default name space.,from django . db . migrations . state import ProjectState
6331,import module warnings.,import warnings
6332,"if ValidationError exception is caught,",except ValidationError :
6333,"if timeouts is None return None, otherwise return the sum of function time.time return value and timeout.",return None if timeout is None else time . time ( ) + timeout
6334,"call the function self._new_gnu_trans with 2 arguments: localedir and use_null_fallback, substitute the result for translation.","translation = self . _new_gnu_trans ( localedir , use_null_fallback )"
6335,return context.,return context
6336,"match rest string with self.WORD_PATTERN regex, substitute the result for m.",m = self . WORD_PATTERN . match ( rest )
6337,"if self.localize is true,",if self . localize :
6338,"if priority is false,",if not priority :
6339,"if view_function is not a callable function,",if not callable ( view_func ) :
6340,call the method self.add_error with 2 arguments: None and errors.,"self . add_error ( None , errors )"
6341,convert arg to an integer.,arg = int ( arg )
6342,"try,",try :
6343,from django.utils.translation import ugettext as _ into default name space.,from django . utils . translation import ugettext as _
6344,return an instance of DebugNode class.,return DebugNode ( )
6345,raise a ValidationError exception with arguments self.message and code set to self.code.,"raise ValidationError ( self . message , code = self . code )"
6346,define the method nud with 2 arguments: self and parser.,"def nud ( self , parser ) :"
6347,"call the method form.instance._get_unique_checks with an argument exclude as exclude, substitute the result for unique_checks, and date_checks, respectively.","unique_checks , date_checks = form . instance . _get_unique_checks ( exclude = exclude )"
6348,define the function check_for_migrations with 2 arguments: app_config and connection.,"def check_for_migrations ( app_config , connection ) :"
6349,"called with 2 arguments: singular and trimmed, write the result to out. if not,",else :
6350,do nothing.,pass
6351,"call the method self.check_test with an argument value, if it evaluates to true,",if self . check_test ( value ) :
6352,"raise an TemplateSyntaxError exception with an argument string ""'for' statements should use the format 'for x in y': %s"",","raise TemplateSyntaxError ( ""'for' statements should use the format"" "" 'for x in y': %s"" % token . contents )"
6353,"return field_type, field_params and field_notes.","return field_type , field_params , field_notes"
6354,"for every k in keys,",for k in keys :
6355,"call the function urlsplit with an argument location, substitute the result for bits.",bits = urlsplit ( location )
6356,step is an string 'any'.,step = 'any'
6357,"if connection exists dont change it, if not call the get_connection function with username set to auth_user,","connection = connection or get_connection ( username = auth_user , password = auth_password , fail_silently = fail_silently )"
6358,"get the value under the 'database' key of the options dictionary, if it doesnt exists use the DEFAULT_DB_ALIAS to address an element","connection = connections [ options . get ( 'database' , DEFAULT_DB_ALIAS ) ]"
6359,"if elt is an instance of Group class,","if isinstance ( elt , Group ) :"
6360,"try,",try :
6361,"call the method type.__new__ with 4 arguments: cls, name, empty tuple and d, return the result.","return type . __new__ ( cls , name , ( ) , d )"
6362,raise an ValueError exception with an argument string ''Unable to configure root logger: %s' formated with e.,raise ValueError ( 'Unable to configure root ' 'logger: %s' % e )
6363,"if self.required is boolean true,",if self . required :
6364,"covert to string value under the 'unique_id_is_permalink' key of the item dictionary, convert it to lowercase,",guid_attrs [ 'isPermaLink' ] = str ( item [ 'unique_id_is_permalink' ] ) . lower ( )
6365,"if children is true, copy children list to self.children, otherwise self.children is an empty list.",self . children = children [ : ] if children else [ ]
6366,append list containing string '--no-location' to self.msguniq_options.,self . msguniq_options = self . msguniq_options [ : ] + [ '--no-location' ]
6367,"call the method cls with 3 arguments: value under the 'filename' key of file_dict, value under the 'content' key of file_dict,","return cls ( file_dict [ 'filename' ] , file_dict [ 'content' ] , file_dict . get ( 'content-type' , 'text/plain' ) )"
6368,"subtract result of the method self.initial_form_count from i, use the result as an index to get the element from self.initial_extra,",kwargs [ 'initial' ] = self . initial_extra [ i - self . initial_form_count ( ) ]
6369,self.cleaned_data is an empty dictionary.,self . cleaned_data = { }
6370,substitute sys.stdin for fd.,fd = sys . stdin
6371,"from django.utils.six.moves import cPickle as pickle, into default namespace.",from django . utils . six . moves import cPickle as pickle
6372,"call the function format_html with 4 arguments: string '{1} {2} ', label_for, result of the method self.tag,","return format_html ( '{1} {2} ' , label_for , self . tag ( ) , self . choice_label )"
6373,define the method __nonzero__ with an argument self.,def __nonzero__ ( self ) :
6374,"and lambda function with 3 arguments context, x and y, returns boolean True if x.eval(context) or y.eval(context) is True, for 'or', result of the function inflix called with 2 arguments, integer 7, and lambda function with 3 arguments context, x and y, returns boolean True if x.eval(context) and y.eval(context) is True for 'and', result of the function prefix called with 2 arguments, integer 8, and lambda function with 2 arguments context and x, returns boolean True if x.eval(context) is True for 'not', result of the function inflix called with 2 arguments, integer 9, and lambda function with 2 arguments context and x, returns boolean True if x.eval(context) is contained in y.eval(context) for 'in', result of the function inflix called with 2 arguments, integer 9, and lambda function with 2 arguments context and x, returns boolean True if x.eval(context) is not contained in y.eval(context), for 'not in', result of the function inflix called with 2 arguments, integer 10, and lambda function with 3 arguments context, x and y, returns boolean True if x.eval(context) equals y.eval(context) for '=', result of the function inflix called with 2 arguments, integer 10, and lambda function with 3 arguments context, x and y, returns boolean True if x.eval(context) equals y.eval(context) for '==', result of the function inflix called with 2 arguments, integer 10, and lambda function with 3 arguments context, x and y, returns boolean True if x.eval(context) doesnt equals y.eval(context) for '!=', result of the function inflix called with 2 arguments, integer 10 and, lambda function with 3 arguments context, x and y, returns boolean True if x.eval(context) is greater than y.eval(context) for '>', result of the function inflix called with 2 arguments, integer 10 and and lambda function with 3 arguments context, x and y, returns boolean True if x.eval(context) is greater than or equal to y.eval(context) for '>=', result of the function inflix called with 2 arguments, integer 10 and and lambda function with 3 arguments context, x and y, returns boolean True if x.eval(context) is smaller than y.eval(context) for '<', result of the function inflix called with 2 arguments, integer 10 and and lambda function with 3 arguments context, x and y, returns boolean True if x.eval(context) is smaller than or equal to y.eval(context) for '<=', call the function OPERATORS.items, for every key and op in result,","for key , op in OPERATORS . items ( ) :"
6375,"if endbmatch is true,",if endbmatch :
6376,"format_html_join, called with 3 arguments: empty string, string '{0} ', tuple containing results of the function, force_text with an argument e, for every e in self, return the result. define the method as_text with an argument self.",def as_text ( self ) :
6377,call the function time.sleep with argument integer 1.,time . sleep ( 1 )
6378,"RemovedInDjango19Warning and stacklevel set to integer 2. if not,",else :
6379,if length of args is greater than 4.,if len ( args ) > 4 :
6380,"remove the first element from self.command_stack, assign the result to command and source, respectively.","command , source = self . command_stack . pop ( )"
6381,"__all__ is a tuple of strings: 'Media', 'MediaDefiningClass', 'Widget', 'TextInput', 'EmailInput', 'URLInput', 'NumberInput',","__all__ = ( 'Media' , 'MediaDefiningClass' , 'Widget' , 'TextInput' , 'EmailInput' , 'URLInput' , 'NumberInput' , 'PasswordInput' , 'HiddenInput' , 'MultipleHiddenInput' , 'ClearableFileInput' , 'FileInput' , 'DateInput' , 'DateTimeInput' , 'TimeInput' , 'Textarea' , 'CheckboxInput' , 'Select' , 'NullBooleanSelect' , 'SelectMultiple' , 'RadioSelect' , 'CheckboxSelectMultiple' , 'MultiWidget' , 'SplitDateTimeWidget' , 'SplitHiddenDateTimeWidget' , )"
6382,raise an exception.,raise
6383,raise an ImportError exception.,raise ImportError
6384,"call the flatten method of the self and other objects, if they are equal, return boolean True, if not return boolean False.",return self . flatten ( ) == other . flatten ( )
6385,"call the function base64.b64decode with an argument raw_data, substitute the result for data.",data = base64 . b64decode ( raw_data )
6386,from django.utils.translation import get_language into default name space.,from django . utils . translation import get_language
6387,"if use_base_manager is true,",if use_base_manager :
6388,"substitute the result for sequence_sql. if sequence_sql is true,",if sequence_sql :
6389,"if plan is true,",if plan :
6390,"return the result of the method self.errors.get called with 2 arguments: NON_FIELD_ERRORS and return value of the method,","return self . errors . get ( NON_FIELD_ERRORS , self . error_class ( error_class = 'nonfield' ) )"
6391,if _default is None,if _default is None :
6392,convert number into an integer and substitute it for number,number = int ( number )
6393,"m2m_convert is an lambda function with an argument n, return value is the return value of the method field.rel.to._meta.pk.to_python,",m2m_convert = lambda n : field . rel . to . _meta . pk . to_python ( n . getAttribute ( 'pk' ) )
6394,derive the class InterBoundaryIter from the six.Iterator base class.,class InterBoundaryIter ( six . Iterator ) :
6395,"if old_style_list is false,",if not old_style_list :
6396,define the method __init__ with an argument self.,def __init__ ( self ) :
6397,"if striped x by '.' character is not contained in ignored, for every x in ext_list put x into a set, return the resulting set.",return set ( x for x in ext_list if x . strip ( '.' ) not in ignored )
6398,"define the function _lazy_proxy_unpickle with 4 arguments: func, args, kwargs and unpacked list resultclasses.","def _lazy_proxy_unpickle ( func , args , kwargs , * resultclasses ) :"
6399,"use it as an argument for the call to the function force_text, return the result. define the method as_text with 3 arguments: self, attrs set to None and unpacked dictionary kwargs.","def as_text ( self , attrs = None , ** kwargs ) :"
6400,"call the method dictConfigClass with an argument config, call the method configure on the result.",dictConfigClass ( config ) . configure ( )
6401,define the function make_template_fragment_key with fragment_name and vary_on defaulting to None as arguments.,"def make_template_fragment_key ( fragment_name , vary_on = None ) :"
6402,"if UnicodeEncodeError exception is caught,",except UnicodeEncodeError :
6403,"replace '%s' in a string ""Error: %s"" with error_text, write it to self.stderr.","self . stderr . write ( ""Error: %s"" % error_text )"
6404,"and join the results into a string, separated with '|' character, return the result. derive the class Lexer from the object base class.",class Lexer ( object ) :
6405,substitute abspath for abspathu.,abspathu = abspath
6406,"call the method m.groups, use the first element of the result as key for obtaining value from self.config dictionary,",d = self . config [ m . groups ( ) [ 0 ] ]
6407,"call the method field.clean with an argument field_value, append the result to clean_data.",clean_data . append ( field . clean ( field_value ) )
6408,"call the method connection.introspection.table_names, substitute the result for tables.",tables = connection . introspection . table_names ( )
6409,"call the function number_format with 2 arguments: value and use_l10 as use_l10n, return the result.","return number_format ( value , use_l10n = use_l10n )"
6410,call the method check_for_language.cache_clear.,check_for_language . cache_clear ( )
6411,substitute settings.MEDIA_URL for base_url.,base_url = settings . MEDIA_URL
6412,"substitute __name__ field of the result for function_name, in not, substitute func.__name__ for function_name. call the function partial with 8 arguments: generic_tag_compiler, params set to params, varargs set to varargs, varkw set to varkw,","compile_func = partial ( generic_tag_compiler , params = params , varargs = varargs , varkw = varkw , defaults = defaults , name = function_name , takes_context = takes_context , node_class = InclusionNode )"
6413,do nothing.,pass
6414,decorator function register.filter with an argument is_safe set to boolean False.,@ register . filter ( is_safe = False )
6415,"if GET_override is not None, or otherwise generated with the call to the function pformat with an argument request.GET. if Exception exception is caught,",except Exception :
6416,"if not,",else :
6417,"re.U and re.S, substitute the result for re_chars. call the function re.compile with 2 arguments: raw string '<(/)?([^ ]+?)(?:(\s*/)| .*?)?>' and bitwise OR performed with 2 operands,","re_tag = re . compile ( r'<(/)?([^ ]+?)(?:(\s*/)| .*?)?>' , re . S )"
6418,"join the result in a string separated by whitespaces, substitute it for s. return s.",return s
6419,"return string first element of t, '=', second element of t.","return '%s=%s' % ( t [ 0 ] , t [ 1 ] )"
6420,call the method self.handle_startendtag with tag and attrs as the arguments.,"self . handle_startendtag ( tag , attrs )"
6421,return value of the call to the function _ with an argument string 'Enter a valid IPv4 address.' and string 'invalid'. define the function validate_ipv6_address with an argument value.,def validate_ipv6_address ( value ) :
6422,from django.utils.translation import ungettext and ugettext as _ into default name space.,"from django . utils . translation import ungettext , ugettext as _"
6423,"and param_dict, respectively. evaluate the function callback with request and dictionary of parameters param_dict as the arguments, return the result.","return callback ( request , ** param_dict )"
6424,"call the function _trans.get_language, return the result.",return _trans . get_language ( )
6425,do nothing.,pass
6426,"for every template_name in template_name_list,",for template_name in template_name_list :
6427,define the method _get_image_dimensions with self class instance as the argument.,def _get_image_dimensions ( self ) :
6428,define the method _ipython with an argument self.,def _ipython ( self ) :
6429,define the method has_changed with an argument self.,def has_changed ( self ) :
6430,define the function _dec with an argument func.,def _dec ( func ) :
6431,"if not,",else :
6432,"call the method self._cull with db, cursor and now as arguments.","self . _cull ( db , cursor , now )"
6433,"otherwise if ch equals a string '.',",elif ch == '.' :
6434,"where '%s' are replaced by sel.file and errors, respectively. if command.verbosity is greater than integer 0,",elif command . verbosity > 0 :
6435,"define the method __init__ with 3 arguments: self, stream_or_string and unpacked dictionary options.","def __init__ ( self , stream_or_string , ** options ) :"
6436,"return a instance of the class Page, created with 2 arguments: unpacked list args and unpacked dictionary kwargs.","return Page ( * args , ** kwargs )"
6437,call the functoin callback with an argument self.,callback ( self )
6438,derive the class ImageField from the base class FileField class.,class ImageField ( FileField ) :
6439,"define the method __init__ with arguments self, stream and boundary.","def __init__ ( self , stream , boundary ) :"
6440,call the function check_for_migrations with arguments app_config and connection.,"check_for_migrations ( app_config , connection )"
6441,substitute basestring for string_types.,"string_types = basestring ,"
6442,"define the method __init__ with 6 arguments: self, regex set to None, message set to None, code set to None,","def __init__ ( self , regex = None , message = None , code = None , inverse_match = None , flags = None ) :"
6443,"verbosity set to verbosity, interactive set to interactive and using set to db. call the method models.signals.pre_syncdb.send with 6 arguments: sender set to app_config.models_module,","models . signals . pre_syncdb . send ( sender = app_config . models_module , app = app_config . models_module , create_models = create_models , verbosity = verbosity , interactive = interactive , db = db )"
6444,call the self.load_middleware method.,self . load_middleware ( )
6445,"append the result to app_dirs. join app_dir and string 'models/sql' into a file path, use the result as an argument for the call to the function os.path.normpath,","old_app_dir = os . path . normpath ( os . path . join ( app_dir , 'models/sql' ) )"
6446,"add together self.to, self.cc and self.bcc, return the result.",return self . to + self . cc + self . bcc
6447,ORDERING_FIELD_NAME is a string 'ORDER'.,ORDERING_FIELD_NAME = 'ORDER'
6448,"call the strftime function with argument string ""%Y%m%d-%H%M%S"" on the return value of the function datetime.datetime.now, substitute the result for timestamp.","timestamp = datetime . datetime . now ( ) . strftime ( ""%Y%m%d-%H%M%S"" )"
6449,"raise an ValueError exception with string ""The file cannot be reopened."" as an argument.","raise ValueError ( ""The file cannot be reopened."" )"
6450,substitute bp for lbp.,lbp = bp
6451,"call the function msvcrt.get_osfhandle with return value of the _fd(f) function as argument, substitute the result for hfile.",hfile = msvcrt . get_osfhandle ( _fd ( f ) )
6452,"get the value under the 'database' key of the options dictionary, use it as a key to access the element under the connections dictionary, substitute it for connection.",connection = connections [ options . get ( 'database' ) ]
6453,"if AttributeError exception is caught,",except AttributeError :
6454,define the function rjust with 2 arguments value and arg.,"def rjust ( value , arg ) :"
6455,"call the function EmailMultiAlternatives with settings.EMAIL_SUBJECT_PREFIX and subject converted to strings and concatenated,","mail = EmailMultiAlternatives ( '%s%s' % ( settings . EMAIL_SUBJECT_PREFIX , subject ) , message , settings . SERVER_EMAIL , [ a [ 1 ] for a in settings . MANAGERS ] , connection = connection )"
6456,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
6457,"evaluate the function force_bytes, with the arguments s, encoding, strings_only and errors, return the result.","return force_bytes ( s , encoding , strings_only , errors )"
6458,"raise an TypeError with an argument string ""The argument `field` must be `None` when the `error`argument contains errors for multiple fields."".","raise TypeError ( ""The argument `field` must be `None` when the `error` "" ""argument contains errors for multiple fields."" )"
6459,"if self.can_import_settings is true,",if self . can_import_settings :
6460,"""Starting development server at http://%(addr)s:%(port)s/\n Quit the server with %(quit_command)s.\n"", where '""%(started_at)s' is replaced with now, '%(version)s' is replaced with return value of the method self.get_version, '%(settings)r' is replaced with settings.SETTINGS_MODULE, '%(addr)s' is replaced with self.addr if self._raw_ipv6 is true, or with self.addr if it is false, '%(port)s' is replaced with self.port and '%(quit_command)s' is replaced with quit_command. call the method translation.activate with an argument settings.LANGUAGE_CODE.",translation . activate ( settings . LANGUAGE_CODE )
6461,"define the get_many method with self class instance, keys and version set to None as arguments.","def get_many ( self , keys , version = None ) :"
6462,value is None.,value = None
6463,"substitute a tuple with 2 elements: template and origin, for self.find_template_cache dictionary value under the key key.","self . template_cache [ key ] = ( template , origin )"
6464,"call the method self.configurator.convert with an argument value, substitute the result for result.",result = self . configurator . convert ( value )
6465,"call the method __new__ with 4 arguments: cls, name, bases and attrs, from the base class of the class RenameMethodsBase.","new_class = super ( RenameMethodsBase , cls ) . __new__ ( cls , name , bases , attrs )"
6466,"if m is false and p is lesser than integer 0,",if not m and p < 0 :
6467,derive the class ManagementForm from the Form base class.,class ManagementForm ( Form ) :
6468,"define the method __init__ with 5 arguments: self, regex, callback, default_args set to None and name set to None.","def __init__ ( self , regex , callback , default_args = None , name = None ) :"
6469,if exit_code is not equal to integer 3.,if exit_code != 3 :
6470,"if var is not an instance of six.string_types,","if not isinstance ( var , six . string_types ) :"
6471,"if 'HTTP_HOST' is contained in self.META,",elif 'HTTP_HOST' in self . META :
6472,from django.forms.utils import from_current_timezone and to_current_timezone into default name space.,"from django . forms . utils import from_current_timezone , to_current_timezone"
6473,"for every pattern in self.url_patterns,",for pattern in self . url_patterns :
6474,"if value is an instance of six.string_types and value converted to lowercase is not equal to strings 'false' or '0',","if isinstance ( value , six . string_types ) and value . lower ( ) in ( 'false' , '0' ) :"
6475,from django.forms.formsets import everything into default name space.,from django . forms . formsets import *
6476,substitute attrs and choices for self.attrs and self.choices,"self . attrs , self . choices = attrs , choices"
6477,from django.db.migrations.loader import AmbiguityError into default name space.,from django . db . migrations . loader import AmbiguityError
6478,"replace '%(size)d with bytes, substitute the result for value. otherwise if bytes is smaller than MB,",elif bytes < MB :
6479,"if fields is true and f.name is not contained in fields,",if fields and f . name not in fields :
6480,"call the function do_ifequal with 3 arguments: parser, token and boolean False, return the result.","return do_ifequal ( parser , token , True )"
6481,"yield string ""# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table"" as the result.","yield ""# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table"""
6482,"self.__name is a string ""%s%02d%02d"", replace '%s' with sign, '%02d' is replaced with absolute value of offset divided by 60,","self . __name = ""%s%02d%02d"" % ( sign , abs ( offset ) / 60. , abs ( offset ) % 60 )"
6483,replace every occurrence of '\r' in s with '\\r'.,"s = s . replace ( '\r' , '\\r' )"
6484,derive class CacheKeyWarning from the DjangoRuntimeWarning base class.,class CacheKeyWarning ( DjangoRuntimeWarning ) :
6485,define the method ext_convert with 2 arguments: self and value.,"def ext_convert ( self , value ) :"
6486,"raise an TemplateSyntaxError exception with an argument string ""%r expected at least one variable assignment"",","raise TemplateSyntaxError ( ""%r expected at least one variable "" ""assignment"" % bits [ 0 ] )"
6487,derive the class StreamingHttpResponse from the HttpResponseBase base class.,class StreamingHttpResponse ( HttpResponseBase ) :
6488,from django.core.exceptions import ImproperlyConfigured into default name space.,from django . core . exceptions import ImproperlyConfigured
6489,"default set to None and help set to string 'Overrides the default address where the live server (used ' 'with LiveServerTestCase) is expected to run from. The default value is localhost:8081.' call the function get_runner with arguments settings and self.test_runner, substitute the result for test_runner_class.","test_runner_class = get_runner ( settings , self . test_runner )"
6490,"if six.PY3 is true,",if six . PY3 :
6491,"if doublecolon_len is greater than best_doublecolon_len,",if doublecolon_len > best_doublecolon_len :
6492,skip this loop iteration.,continue
6493,substitute encoding for self.encoding.,self . encoding = encoding
6494,"if not,",else :
6495,"divide x by length of to_digits, convert floor value of the result to an integer, substitute it for x.",x = int ( x // len ( to_digits ) )
6496,define the function _parse_header_params with an argument s.,def _parse_header_params ( s ) :
6497,creation_counter is an integer 0.,creation_counter = 0
6498,"call the method msg.as_bytes, substitute the result for msg_data.",msg_data = msg . as_bytes ( )
6499,"if Exception exception is caught,",except Exception :
6500,"break from the loop execution,",break
6501,value is an empty string.,value = ''
6502,"if not,",else :
6503,"call the method self.error_class with an argument e.error_list, substitute the result for self._non_form_errors.",self . _non_form_errors = self . error_class ( e . error_list )
6504,substitute SafeText for SafeUnicode.,SafeUnicode = SafeText
6505,remove key element from self.keyOrder dictionary.,self . keyOrder . remove ( key )
6506,"raise an EntitiesForbidden exception with arguments name, value, base, sysid, pubid and notation_name.","raise EntitiesForbidden ( name , value , base , sysid , pubid , notation_name )"
6507,"otherwise if ch equals a string ')',",elif ch == ')' :
6508,"use_tls set to None, fail_silently set to False, use_ssl set to None, timeout set to None and unpacked dictionary kwargs. call the __init__ method from the base class of the EmailBackend class with argument fail_silently set to fail_silently.","super ( EmailBackend , self ) . __init__ ( fail_silently = fail_silently )"
6509,define the function is_valid_path with arguments path and urlconf set to None.,"def is_valid_path ( path , urlconf = None ) :"
6510,from django.utils.encoding import smart_text and is_protected_type into default name space.,"from django . utils . encoding import smart_text , is_protected_type"
6511,call the function urlresolvers.set_urlconf with urlconf as the argument.,urlresolvers . set_urlconf ( urlconf )
6512,"otherwise if value under the 'method' key of optins dictionary equals to string 'thread' or 'threaded',","elif options [ 'method' ] in ( 'thread' , 'threaded' ) :"
6513,define the function parse_time with an argument value.,def parse_time ( value ) :
6514,"from .messages import CheckMessage, Debug, Info, Warning, Error, Critical, DEBUG, INFO, WARNING, ERROR and CRITICAL into default name space.","from . messages import ( CheckMessage , Debug , Info , Warning , Error , Critical , DEBUG , INFO , WARNING , ERROR , CRITICAL )"
6515,"throw an exception with string ""unexpected call to parse_endtag"" as the message. search anywhere in the rawdata string starting from the (i+1)-th element for the _html_parser.endendeag, replace the result for match.","match = _html_parser . endendtag . search ( rawdata , i + 1 )"
6516,"if ImportError exception is caught,",except ImportError :
6517,raise an AttributeError with an argument attr.,raise AttributeError ( attr )
6518,for every pattern in allowed_hosts:,for pattern in allowed_hosts :
6519,"skip this loop iteration,",continue
6520,"call the method self._stream.readline with 2 arguments: unpacked list args, unpacked dictionary kwargs.","return self . _stream . readline ( * args , ** kwargs )"
6521,"if code is contained in _supported and call to the function check_for_language with an argument code evaluates to true,",if code in _supported and check_for_language ( code ) :
6522,call the function write with an argument arg.,write ( arg )
6523,first and second are None.,first = second = None
6524,define the method resolve with an argument self.,"def resolve ( self , path ) :"
6525,"if ignore is true,",if ignore :
6526,"call the method autodetector.changes with 3 arguments: graph set to loader.graph, trim_to_apps set to app_labels,","changes = autodetector . changes ( graph = loader . graph , trim_to_apps = app_labels or None , convert_apps = app_labels or None , )"
6527,define the function sanitize_separators with an argument value.,def sanitize_separators ( value ) :
6528,self.active_readers is an integer 0.,self . active_readers = 0
6529,"and ignored as an empty tuple, convert the result into a tuple and substitute it for extensions. extra_files is an empty list.",extra_files = [ ]
6530,self.translate is boolean True.,self . translate = True
6531,"if fname doesnt start with self._dir and fname file path doesnt exists,",if not fname . startswith ( self . _dir ) or not os . path . exists ( fname ) :
6532,"content_type, length of content, None and None. decorator classmethod.",@ classmethod
6533,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
6534,"if formatter is true,",if formatter :
6535,"for every __ in range of integers from 0 up to sep subtracted from fill_to,",for __ in xrange ( fill_to - sep ) :
6536,"if parent is false,",if not parent :
6537,"if AttributeError exception is caught,",except AttributeError :
6538,derive the class EmailMessage from the object base class.,class EmailMessage ( object ) :
6539,"if not,",else :
6540,and prefix as node.prefix. call the method node.replace with an argument decorated.,node . replace ( decorated )
6541,"substitute self.urlconf_module for self.urlconf_module. try,",try :
6542,define the function last with an argument value.,def last ( value ) :
6543,append data to self.children.,self . children . append ( data )
6544,url is an empty string.,url = ''
6545,"instantiate class Truncator, with an argument value, call the method words on the result with 3 arguments length,","return Truncator ( value ) . words ( length , html = True , truncate = ' ...' )"
6546,derive the class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
6547,do nothing.,pass
6548,"call the method self.render, return the result.",return self . render ( )
6549,increment bytes_read by length of bytes.,bytes_read += len ( bytes )
6550,"call the function import_module with an argument string '%s.%s', where '%s' is replaced with app_config.name and module_to_search.","import_module ( '%s.%s' % ( app_config . name , module_to_search ) )"
6551,"define the method __exit__ with arguments: self, exc_type, exc_value and traceback.","def __exit__ ( self , exc_type , exc_value , traceback ) :"
6552,from django.utils.safestring import mark_safe into default name space.,from django . utils . safestring import mark_safe
6553,"get the value under the settings.__module__ key of the sys.modules dictionary, use its __file__ field as an argument,","globalpath = os . path . join ( os . path . dirname ( upath ( sys . modules [ settings . __module__ ] . __file__ ) ) , 'locale' )"
6554,define the function callable with an argument obj.,def callable ( obj ) :
6555,input_type is a string 'email'.,input_type = 'email'
6556,"if not,",else :
6557,"if path_to_remove is file,",if path . isfile ( path_to_remove ) :
6558,return an empty string.,"return """""
6559,define the method open with argument self.,def open ( self ) :
6560,buffer_ is None.,buffer_ = None
6561,"default set to boolean False and help set to string 'Tells Django to stop running the test suite after first failed test.'. call the method parser.add_argument with 4 arguments: string '--testrunner', action set to string 'store', dest set to 'testrunner',","parser . add_argument ( '--testrunner' , action = 'store' , dest = 'testrunner' , help = 'Tells Django to use specified test runner class instead of ' 'the one specified by the TEST_RUNNER setting.' ) ,"
6562,define the method _existing_object with 2 arguments: self and pk.,"def _existing_object ( self , pk ) :"
6563,define the method __repr__ with an argument self.,def __repr__ ( self ) :
6564,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
6565,"define the method handle_file_complete with 3 arguments: self, old_field_name and counters.","def handle_file_complete ( self , old_field_name , counters ) :"
6566,from django.utils.six.moves import http_cookies into default name space.,from django . utils . six . moves import http_cookies
6567,"if response is True,",if response :
6568,substitute value under the cache_key key of the _format_cache dictionary for cached.,cached = _format_cache [ cache_key ]
6569,call the function ensure_echo_on.,ensure_echo_on ( )
6570,substitute level for rv.,rv = level
6571,import memcache.,import memcache
6572,derive the class DateTimeInput from the DateTimeBaseInput base class.,class DateTimeInput ( DateTimeBaseInput ) :
6573,substitute callback for self._callback.,self . _callback = callback
6574,substitute first header_end elements of chunk list for header.,header = chunk [ : header_end ]
6575,derive class SingleZipReader for zipfile.ZipFile base class.,class SingleZipReader ( zipfile . ZipFile ) :
6576,"split first element of args by ',', convert separated elements to strings, substitute the first 2 elements of the result,","args [ 1 : 2 ] = [ '""%s""' % arg for arg in args [ 1 ] . split ( "","" ) ]"
6577,"slice language from (p+1)-th index to the end, calculate the length of the obtained segment, if it is greater than integer 2,",if len ( language [ p + 1 : ] ) > 2 :
6578,"evaluate the function get_system_encoding(), substitute the return vale for DEFAULT_LOCALE_ENCODING.",DEFAULT_LOCALE_ENCODING = get_system_encoding ( )
6579,"if ch is true,",if ch :
6580,from django.core.management.utils import find_command and popen_wrapper into default name space.,"from django . core . management . utils import find_command , popen_wrapper"
6581,from email.mime.base import MIMEBase into default name space.,from email . mime . base import MIMEBase
6582,"kwargs_safe is a dictionary created for every k and v in result of the function six.iteritems called with an argument kwargs,","kwargs_safe = dict ( ( k , conditional_escape ( v ) ) for ( k , v ) in six . iteritems ( kwargs ) )"
6583,"if kwarg is true,",if kwarg :
6584,derive the class SsiNode from Node base class.,class SsiNode ( Node ) :
6585,delete the value under key key of self._cache dictionary.,del self . _cache [ key ]
6586,"call the method datetime.datetime with an argument unpacked dictionary kw, return the result.",return datetime . datetime ( ** kw )
6587,define the method __iter__ with an argument self.,def __iter__ ( self ) :
6588,define the method __init__ with 2 arguments self and file.,"def __init__ ( self , file ) :"
6589,return message.,return message
6590,return an dictionary containing 1 entry: settings.MEDIA_URL for 'MEDIA_URL'.,return { 'MEDIA_URL' : settings . MEDIA_URL }
6591,"call the sys.exc_info function, assign the result to et, ev and tb, respectively.","et , ev , tb = sys . exc_info ( )"
6592,"if self.field.required is true and self.form has an attribute 'required_css_class' ,","if self . field . required and hasattr ( self . form , 'required_css_class' ) :"
6593,call the method self.add_filters with 2 arguments: logger and filters.,"self . add_filters ( logger , filters )"
6594,from io import BytesIO into default name space.,from io import BytesIO
6595,"if NameError exception is caught,",except NameError :
6596,substitute nonlocal_root for tuple root.,"root , = nonlocal_root"
6597,"call the function get_format with an argument string 'THOUSAND_SEPARATOR', substitute the result for thousand_sep.",thousand_sep = get_format ( 'THOUSAND_SEPARATOR' )
6598,"get the value under the 'dry_run' key of the options dictionary, if the key exists substitute it for self.dry_run,","self . dry_run = options . get ( 'dry_run' , False )"
6599,"call the function pformat with an argument sys.modules, append the result for output.",output . append ( pformat ( sys . modules ) )
6600,"value under the 'unique' key of the extra_params dictionary is boolean True,",extra_params [ 'unique' ] = True
6601,"call the method app.rpartition with an argument '.', substitute last element of the result for app.",app = app . rpartition ( '.' ) [ - 1 ]
6602,"if value is an instance of datetime.datetime class,","if isinstance ( value , datetime . datetime ) :"
6603,return an instance of CsrfTokenNode class.,return CsrfTokenNode ( )
6604,"if KeyboardInterrupt exception is caught,",except KeyboardInterrupt :
6605,"if nodelist is true,",if nodelist :
6606,"try,",try :
6607,if s is an instance of SafeData.,"if isinstance ( s , SafeData ) :"
6608,"define the function sql_destroy_indexes with 3 arguments: app_config, style and connection.","def sql_destroy_indexes ( app_config , style , connection ) :"
6609,define the method _get_request with self class instance as argument.,def _get_request ( self ) :
6610,from django.db import models and DEFAULT_DB_ALIAS into default name space.,"from django . db import models , DEFAULT_DB_ALIAS"
6611,"raise an TemplateSyntaxError exception with an argument string ""Invalid templatetag argument: '%s'. Must be one of: %s"",","raise TemplateSyntaxError ( ""Invalid templatetag argument: '%s'."" "" Must be one of: %s"" % ( tag , list ( TemplateTagNode . mapping ) ) )"
6612,substitute self._meta for opts.,opts = self . _meta
6613,"substitute the result for file_name. call the function unescape_entities with an argument file_name, use the result as an argument for the call to the self.IE_sanitize,",file_name = self . IE_sanitize ( unescape_entities ( file_name ) )
6614,delete entry under the name key of the moves.__dict__ dictionary.,del moves . __dict__ [ name ]
6615,"return the directory name two directories up from the __file__ path, join it with 'conf' and 'locale' into valid path, separated by '/', basedirs is a list containing 2 elements: previous result and string 'locale'.","basedirs = [ os . path . join ( os . path . dirname ( os . path . dirname ( __file__ ) ) , 'conf' , 'locale' ) , 'locale' ]"
6616,define the method validate_number with self class instance and number as arguments.,"def validate_number ( self , number ) :"
6617,return nothing.,return
6618,return response.,return response
6619,substitute connection_reset for self.connection_reset.,self . connection_reset = connection_reset
6620,"for every migration in merge_migrations. try,",try :
6621,"increment length of boundary by integer 6, substitute the result for self._rollback.",self . _rollback = len ( boundary ) + 6
6622,"otherwise if value is an instance of decimal.Decimal, float or six.integer_types,","if isinstance ( value , ( decimal . Decimal , float ) + six . integer_types ) :"
6623,define the method __nonzero__ with an argument self.,def __nonzero__ ( self ) :
6624,"replace all occurrences of '\\' with '\\\\' in value, replace all occurrences of '""' with '\\""' in the previous result,","return value . replace ( '\\' , '\\\\' ) . replace ( '""' , '\\""' ) . replace ( ""'"" , ""\\'"" )"
6625,"if os has an attribute 'utime',","if hasattr ( os , 'utime' ) :"
6626,append filepath to tried.,tried . append ( filepath )
6627,yield and empty string as the result.,yield ''
6628,"call the method pytz.timezone with an argument settings.TIME_ZONE, substitute the result for _localtime.",_localtime = pytz . timezone ( settings . TIME_ZONE )
6629,import module re.,import re
6630,for every cat in value under the 'categories' key of the self.feed dictionary.,for cat in self . feed [ 'categories' ] :
6631,"if six.PY2 is true,",if six . PY2 :
6632,return list_ and boolean False.,"return list_ , False"
6633,"for every key and val in return value of the function six.iteritems called with an arguments self.extra_context. call the method context.push with an argument unpacked dictionary values, with the result as an argument,",with context . push ( ** values ) :
6634,has_bz2 is boolean True.,has_bz2 = True
6635,"replace '%s' in string ""%s, from %s"" with second and first element of the first targets row, respectively,","self . stdout . write ( self . style . MIGRATE_LABEL ( "" Target specific migration: "" ) + ""%s, from %s"" % ( targets [ 0 ] [ 1 ] , targets [ 0 ] [ 0 ] ) )"
6636,return form.,return form
6637,derive the class BaseContext from the object base class.,class BaseContext ( object ) :
6638,"value under the 'author_name' key of the item dictionary and dictionary with an entry: ""http://purl.org/dc/elements/1.1/"" for ""xmlns:dc"". if value under the 'pubdate' key of the item dictionary is not None,",if item [ 'pubdate' ] is not None :
6639,"multiply delta.days with an integer 86400 add to the result delta.seconds, if the result is greater than integer 0,","max_age = max ( 0 , delta . days * 86400 + delta . seconds )"
6640,"call the method os.path.basename with an argument fixture_name, substitute the result for fixture_name.",fixture_name = os . path . basename ( fixture_name )
6641,for every f in return value of the return value of the method chain.from_iterable called with argument:,for f in chain . from_iterable ( l [ 1 ] for l in self . _files . lists ( ) ) :
6642,"define initialization method __init__ with self class instance, unpacked list args, unpacked dictionary kwargs as arguments.","def __init__ ( self , * args , ** kwargs ) :"
6643,"try,",try :
6644,"raise an CommandError with an argument string ""couldn't extract file %s to %s: %s"", where '%s' is replaced with filename, tempdir and e.","raise CommandError ( ""couldn't extract file %s to %s: %s"" % ( filename , tempdir , e ) )"
6645,"call the method handler.addQuickElement with 3 arguments: string 'summary', value under the 'description' key of item dictionary,","handler . addQuickElement ( ""summary"" , item [ 'description' ] , { ""type"" : ""html"" } )"
6646,"call the self.style.MIGRATE_HEADING method, with string ""Operations to perform:"" as an argument,","self . stdout . write ( self . style . MIGRATE_HEADING ( ""Operations to perform:"" ) )"
6647,import module re.,import re
6648,"call the function no_style, substitute the result for self.style.",self . style = no_style ( )
6649,"created with 2 arguments: required as boolean False and widget set to HiddenInput. value under the MAX_NUM_FORM_COUNT of the self.base_fields dictionary is an instance of IntegerField class,","self . base_fields [ MAX_NUM_FORM_COUNT ] = IntegerField ( required = False , widget = HiddenInput )"
6650,"substitute elements of tuple boundary to end and next, respectively.","end , next = boundary"
6651,"missing_args_message is an string ""Enter at least one application label."".","missing_args_message = ""Enter at least one application label."""
6652,"from django.template.base import Lexer, Parser, tag_re, NodeList, VariableNode and TemplateSyntaxError into default name space.","from django . template . base import Lexer , Parser , tag_re , NodeList , VariableNode , TemplateSyntaxError"
6653,pid is integer 1.,pid = 1
6654,define the method encoding with arguments self and value.,"def encoding ( self , value ) :"
6655,"if KeyError and TypeError exceptions are caught,","except ( KeyError , TypeError ) :"
6656,DELETION_FIELD_NAME is a string 'DELETE'.,DELETION_FIELD_NAME = 'DELETE'
6657,append self.choices to args.,args . append ( self . choices )
6658,from django.utils.text import get_text_list and capfirst into default name space.,"from django . utils . text import get_text_list , capfirst"
6659,append an empty string to list hextets.,hextets += [ '' ]
6660,"for every f in post_sql_fields,",for f in post_sql_fields :
6661,substitute the self.DEFAULT_CHUNK_SIZE for chunk_size.,chunk_size = self . DEFAULT_CHUNK_SIZE
6662,renamed_methods is an tuple.,renamed_methods = ( )
6663,import module operator.,import operator
6664,"call the method copy.deepcopy with arguments self._choices and memo, substitute the result for result._choices.","result . _choices = copy . deepcopy ( self . _choices , memo )"
6665,"call the method value.rjust with an argument, arg converted into a integer, return the result.",return value . rjust ( int ( arg ) )
6666,define the function import_library with an argument taglib_module.,def import_library ( taglib_module ) :
6667,substitute mapped_tokens for self.tokens.,self . tokens = mapped_tokens
6668,"if second element of the i-th row of relations equals table_name, rel_to is string 'self',","rel_to = ""self"" if relations [ i ] [ 1 ] == table_name else table2model ( relations [ i ] [ 1 ] )"
6669,substitute self.remaining for size.,size = self . remaining
6670,"call the method fixture_name.rsplit with 2 arguments: character '.' and integer 2, substitute the result for parts.","parts = fixture_name . rsplit ( '.' , 2 )"
6671,"call the method dig1.digest, use the result as an argument for the call to the function dig2.update.",dig2 . update ( dig1 . digest ( ) )
6672,"e.args is a tuple containing string ""Could not load %(app_label)s.%(object_name)s(pk=%(pk)s): %(error_msg)s,","e . args = ( ""Could not load %(app_label)s.%(object_name)s(pk=%(pk)s): %(error_msg)s"" % { 'app_label' : obj . object . _meta . app_label , 'object_name' : obj . object . _meta . object_name , 'pk' : obj . object . pk , 'error_msg' : force_text ( e ) } , )"
6673,call the method posixpath.splitext with an argument the_path.,"base , ext = posixpath . splitext ( the_path )"
6674,derive the class RssFeed from the SyndicationFeed base class.,class RssFeed ( SyndicationFeed ) :
6675,"call the method self.as_data, for every error in the result.",for error in self . as_data ( ) :
6676,"for name in attributes of models_signals object,",for name in dir ( models . signals ) :
6677,"define the function force_text, with s, encoding set to 'utf-8', strings_only set to False, errors set to string 'strict' as arguments.","def force_text ( s , encoding = 'utf-8' , strings_only = False , errors = 'strict' ) :"
6678,from django.utils.encoding import force_text and python_2_unicode_compatible into default name space.,"from django . utils . encoding import force_text , python_2_unicode_compatible"
6679,"define the method _truncate_html with 6 arguments: self, length, truncate, text, truncate_len and words.","def _truncate_html ( self , length , truncate , text , truncate_len , words ) :"
6680,"call the function meta with 3 arguments: name, base and d.","return meta ( name , bases , d )"
6681,"if MultiPartParserError exception is caught,",except MultiPartParserError :
6682,derive the class BaseConfigurator from object base class.,class BaseConfigurator ( object ) :
6683,self._post_parse_error is boolean True.,self . _post_parse_error = True
6684,return result.,return result
6685,"call the object d with arguments stream_or_string and unpacked dictionary options, return the result.","return d ( stream_or_string , ** options )"
6686,self.regexes is an empty dictionary.,self . regexes = { }
6687,"if not,",else :
6688,"open the output file in writing mode if output is true, assign the file descriptor to stream, otherwise stream is None.","stream = open ( output , 'w' ) if output else None"
6689,substitute utc for tzinfo.,tzinfo = utc
6690,return None.,return None
6691,"call the method cursor.execute with string ""SELECT cache_key, expires FROM %s WHERE cache_key = %%s"" as argument,","cursor . execute ( ""SELECT cache_key, expires FROM %s "" ""WHERE cache_key = %%s"" % table , [ key ] )"
6692,"if it is not equal to stat.S_IREAD, raise an exception.",raise
6693,define __enter__ method with self as the argument.,def __enter__ ( self ) :
6694,"raise an ValueError exception with an argument string ""Base36 input too large"".","raise ValueError ( ""Base36 input too large"" )"
6695,_cached_filenames is an empty list.,_cached_filenames = [ ]
6696,"raise an TemplateSyntaxError exception with an argument string ""'for' tag received an invalid argument: %s"",","raise TemplateSyntaxError ( ""'for' tag received an invalid argument:"" "" %s"" % token . contents )"
6697,"append field.widget.media to media, substitute the result for media.",media = media + field . widget . media
6698,"substitute '%s' with title in the string "" [ ] %s"", write it to the standard output.","self . stdout . write ( "" [ ] %s"" % title )"
6699,field_notes is an empty list.,field_notes = [ ]
6700,"for every key and value in list created out of the elements of the result of the call to the method attrs.items,","for key , value in list ( attrs . items ( ) ) :"
6701,"if is_templatized is true,",if is_templatized :
6702,del self._post,del self . _post
6703,define the method __init__ with 2 arguments: self and obj.,"def __init__ ( self , obj ) :"
6704,"help is a string, containing ""Returns a list of the SQL statements required to return all tables in the database to the state they were in just after they were installed."".","help = ""Returns a list of the SQL statements required to return all tables in the database to the state they were in just after they were installed."""
6705,call the method self.connection.quit.,self . connection . quit ( )
6706,"if not,",else :
6707,"if other is an instance of BaseContext class,","if isinstance ( other , BaseContext ) :"
6708,"if length of words is greater than length,",if len ( words ) > length :
6709,"msg is an string ""django.utils.text.javascript_quote() is deprecated. Use django.utils.html.escapejs() instead."".","msg = ( ""django.utils.text.javascript_quote() is deprecated. "" ""Use django.utils.html.escapejs() instead."" )"
6710,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
6711,define the method add_arguments with 2 arguments self and parser.,"def add_arguments ( self , parser ) :"
6712,define the method write_message with arguments self and message.,"def write_message ( self , message ) :"
6713,"call the function unicodedata.normalize with 2 arguments: string 'NFC' and self._wrapped, substitute the result for text.","text = unicodedata . normalize ( 'NFC' , self . _wrapped )"
6714,"call the method operator.attrgetter with an argument _func_code, substitute the result for get_method_code.",get_function_code = operator . attrgetter ( _func_code )
6715,"if not,",else :
6716,from django.utils import datastructures into default name space.,from django . utils import datastructures
6717,return result.,return result
6718,derive the class SafeMIMEText from the MIMEMixin and MIMEText base class.,"class SafeMIMEText ( MIMEMixin , MIMEText ) :"
6719,"and self.ns for ""xmlns"". if not,",else :
6720,increment factor by one.,factor += 1
6721,substitute hashlib.sha256 for digest.,digest = hashlib . sha256
6722,"call the function middleware_method with request and response as the arguments, substitute the result for response.","response = middleware_method ( request , response )"
6723,return boolean False.,return False
6724,"return an instance of SafeText, created with an argument data.",return SafeText ( data )
6725,"covert to lowercase language element at (p+1)-th index, append it to the previous result, covert to lowercase language elements from (p+2)-th index to the end, append it to the previous result, return it. convert fist p elements of language to lowercase, append '_' to it,",return language [ : p ] . lower ( ) + '_' + language [ p + 1 : ] . upper ( )
6726,return boolean False.,return False
6727,"call the key.lower method for every key in self.extra_headers, join the results into a header_names.",header_names = [ key . lower ( ) for key in self . extra_headers ]
6728,ser_fmt is None.,ser_fmt = None
6729,return self._count.,return self . _count
6730,"call the method self.field.widget.value_from_datadict with 3 arguments: self.form.data, self.form.files, self.html_name, return the result.","return self . field . widget . value_from_datadict ( self . form . data , self . form . files , self . html_name )"
6731,import module errno.,import errno
6732,"call the method self.compile_filter_error with 2 arguments: token and e, if it evaluates to false,","if not self . compile_filter_error ( token , e ) :"
6733,substitute complain for __iadd__.,__iadd__ = complain
6734,"raise an TemplateSyntaxError exception with an argument ""Searching for value. Expected another value but found end of string: %s"",","raise TemplateSyntaxError ( ""Searching for value. Expected another "" ""value but found end of string: %s"" % subject )"
6735,intrans is boolean True.,intrans = True
6736,from django.apps import apps into default name space.,from django . apps import apps
6737,"call the method other.__cast, substitute the result for other.",other = other . __cast ( )
6738,"result of multiplication of integers: 60,60,24,365, and return value of ungettext_lazy with 2 arguments: '%d year', '%d years', result of multiplication of integers: 60,60,24,30, and return value of ungettext_lazy with 2 arguments: '%d month', '%d month', result of multiplication of integers: 60,60,24,7, and return value of ungettext_lazy with 2 arguments: '%d weeks', '%d weeks', result of multiplication of integers: 60,60,24, and return value of ungettext_lazy with 2 arguments: '%d days', '%d days', result of multiplication of integers: 60,60, and return value of ungettext_lazy with 2 arguments: '%d hours', '%d hours', result of multiplication of integers: 60, and return value of ungettext_lazy with 2 arguments: '%d minutes', '%d minutes', if d is not an instance of datetime.datetime,","if not isinstance ( d , datetime . datetime ) :"
6739,"define the function lazy_number with 4 arguments: func, resultclass, number set to None and unpacked dictionary kwargs.","def lazy_number ( func , resultclass , number = None , ** kwargs ) :"
6740,"call the parseaddr function with return value of the force_text with argument addr, as argument, substitute the result for addr.",addr = parseaddr ( force_text ( addr ) )
6741,"if OSError exception is caught,",except OSError :
6742,"if second element of t is boolean True,",if t [ 1 ] is True :
6743,"if ""__call__"" is contained in klass.__dict__ for any klass in __mro__ field of the obj class, return boolean True, otherwise return False.","return any ( ""__call__"" in klass . __dict__ for klass in type ( obj ) . __mro__ )"
6744,"register.tag decorator,",@ register . tag
6745,define the function set_script_prefix with an argument prefix.,def set_script_prefix ( prefix ) :
6746,NON_FIELD_ERRORS is an string '__all__'.,NON_FIELD_ERRORS = '__all__'
6747,"call the function force_bytes with arguments k and self.encoding, substitute the result for k.","k = force_bytes ( k , self . encoding )"
6748,"call the function self.regex.search with an argument path, substitute the result for match.",match = self . regex . search ( path )
6749,return boolean upload.,return upload
6750,"if first element of args is an instance of SafeData, and 'is_safe' attribute of dec._decorated_function object is true,","if ( isinstance ( args [ 0 ] , SafeData ) and getattr ( _dec . _decorated_function , 'is_safe' , False ) ) :"
6751,"call the function warnings.simplefilter with 2 arguments: string ""default"" and RemovedInNextVersionWarning.","warnings . simplefilter ( ""default"" , RemovedInNextVersionWarning )"
6752,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
6753,output is an empty list.,output = [ ]
6754,"if self.verbosity is greater or equal to integer 2,",if self . verbosity >= 2 :
6755,__locks is an empty dictionary.,_locks = { }
6756,"if IndexError exception is caught,",except IndexError :
6757,"substitute choice for choice_value and choice_label, respectively.","choice_value , choice_label = choice"
6758,"append k into a list for every k and v in return value of the six.iteritems function with an argument _serializers,","return [ k for k , v in six . iteritems ( _serializers ) if not v . Serializer . internal_use_only ]"
6759,"with lock,",with lock :
6760,"if value under the ""RUN_MAIN"" key of the os.environ dictionary equals to string ""true"",","if os . environ . get ( ""RUN_MAIN"" ) == ""true"" :"
6761,"define the function npgettext with 4 arguments: context, singular, plural and number.","def npgettext ( context , singular , plural , number ) :"
6762,define the function trim_whitespace with an argument s.,def trim_whitespace ( s ) :
6763,return errors.,return errors
6764,"call the method self._resolve, substitute the result for _module.",_module = self . _resolve ( )
6765,return value.,return value
6766,define the method render with 2 arguments self and context.,"def render ( self , context ) :"
6767,substitute sysid for self.sysid.,self . sysid = sysid
6768,substitute content_length for self._content_length.,self . _content_length = content_length
6769,call the method handler.addQuickElement with 2 arguments: string 'author' and value under the 'author_email' key of the item dictionary.,"handler . addQuickElement ( ""author"" , item [ ""author_email"" ] )"
6770,call the method obj.save.,obj . save ( )
6771,"value under the TOTAL_FORM_COUNT of the self.base_fields dictionary is an instance of IntegerField class,",self . base_fields [ TOTAL_FORM_COUNT ] = IntegerField ( widget = HiddenInput )
6772,"if origin is true,",if origin :
6773,define the method dst with 2 arguments: self and dt.,"def dst ( self , dt ) :"
6774,extend comment_notes list with field_notes.,comment_notes . extend ( field_notes )
6775,"if ns_pattern is true,",if ns_pattern :
6776,"if level is not None,",if level is not None :
6777,call the method self._assert_mutable.,self . _assert_mutable ( )
6778,"format string ' gettext(%r) ' with g, write it to out.",out . write ( ' gettext(%r) ' % g )
6779,raise an exception.,raise
6780,break the execution of the smallest enclosing loop.,break
6781,"if message is an instance of ValidationError class and message.code is contained in error_messages,","if ( isinstance ( message , ValidationError ) and message . code in error_messages ) :"
6782,substitute Select for widget.,widget = Select
6783,return hard copy of self.keyOrder elements.,return self . keyOrder [ : ]
6784,"find position of '-' in the index of the language, substitute the result for p.",p = language . find ( '-' )
6785,"if use_ssl is None substitute settings.EMAIL_USE_SSL for self.username, if not substitute use_ssl for self.use_ssl.",self . use_ssl = settings . EMAIL_USE_SSL if use_ssl is None else use_ssl
6786,"with the result, call the method connection.cursor, with the result as cursor,",with connection . cursor ( ) as cursor :
6787,"instantiate class Truncator, with an argument value, call the method chars on the result with an argument length, return the result.",return Truncator ( value ) . chars ( length )
6788,"if f.unique is true, substitute ""UNIQUE "" for unique, otherwise unique is an empty string.","unique = ""UNIQUE "" if f . unique else """""
6789,return path.,return path
6790,"raise CommandError with an argument string 'Unknown app in excludes: %s', where '%s' is replaced with exclude.","raise CommandError ( ""Unknown application: %s"" % app_label )"
6791,derive the class Error from base class CheckMessage.,class Error ( CheckMessage ) :
6792,"try,",try :
6793,"define the method setlist with 3 arguments: self, key and list_.","def setlist ( self , key , list_ ) :"
6794,count is a property object with _get_count as a getter method.,count = property ( _get_count )
6795,"append string "".moves.urllib_error"" to __name__, use it as an key to get the value from the sys.modules dictionary, substitute it for error.","error = sys . modules [ __name__ + "".moves.urllib_error"" ]"
6796,"join elements of self.fed into a string, return the result.",return '' . join ( self . fed )
6797,fixture_files is an empty list.,fixture_files = [ ]
6798,substitute file for self.file.,self . file = file
6799,"call the method content.message, substitute the result for content.",content = content . message ( )
6800,substitute _upload_handlers for self.__upload_handlers.,self . _upload_handlers = upload_handlers
6801,"try,",try :
6802,return msg_count.,return msg_count
6803,define the method nud with 2 arguments: self and parser.,"def nud ( self , parser ) :"
6804,"if not,",else :
6805,do nothing.,pass
6806,substitute value under n key of dictionary d for d.,d = d [ n ]
6807,define the function humanize with an argument dirname.,def humanize ( dirname ) :
6808,raise an exception.,raise
6809,call the method logger.removeHandler with an argument handler.,logger . removeHandler ( handler )
6810,msg_count is an integer 0.,msg_count = 0
6811,"convert 'Set-Cookie' to a string and convert the return value of method c.output(header='') call to a string,","response_headers . append ( ( str ( 'Set-Cookie' ) , str ( c . output ( header = '' ) ) ) )"
6812,"raise an TemplateSyntaxError exception with an argument string ""second argument to 'regroup' tag must be 'by'"".","raise TemplateSyntaxError ( ""second argument to 'regroup' tag must be 'by'"" )"
6813,return value.,return value
6814,if fd is greater or equal to integer 0.,if fd >= 0 :
6815,"if lib is false,",if not lib :
6816,substitute form.cleaned_data for cleaned_data.,cleaned_data = form . cleaned_data
6817,"_itervalues is a string ""values"".","_itervalues = ""values"""
6818,call the method self.create_parser with arguments prog_name and subcommand.,"parser = self . create_parser ( prog_name , subcommand )"
6819,substitute current_app for ns.,ns = current_app
6820,substitute BytesIO for stream_class.,stream_class = BytesIO
6821,"define the method run_checks with self class instance, app_configs defaulting to None, tags defaulting to None as argument.","def run_checks ( self , app_configs = None , tags = None ) :"
6822,"convert language to lowercase, return it.",return language . lower ( )
6823,call the method executor.loader.graph.leaf_nodes and substitute its result for targets.,targets = executor . loader . graph . leaf_nodes ( )
6824,"if settings.DEBUG_PROPAGATE_EXCEPTIONS is True,",if settings . DEBUG_PROPAGATE_EXCEPTIONS :
6825,"if middleware has an attribute 'process_response',","if hasattr ( middleware , 'process_response' ) :"
6826,"from os.path import join, normcase, normpath, abspath, isabs, sep and dirname into default name space.","from os . path import join , normcase , normpath , abspath , isabs , sep , dirname"
6827,"get the value under the key 'verbosity' of options dictionary, substitute it for verbosity.",verbosity = options . get ( 'verbosity' )
6828,"if self.regex is not an instance of a six.string_types type,","if isinstance ( self . regex , six . string_types ) :"
6829,"substitutions dictionary. call the function mark_safe with an argument template, formated with substitutions, return the result.",return mark_safe ( template % substitutions )
6830,"obj is None,",obj = None
6831,"if m is true,",if m :
6832,call the method self.open.,self . open ( )
6833,"define the method __init__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
6834,"call the method self.max_width.resolve with an argument context, convert the result to an integer and substitute it for max_width.",max_width = int ( self . max_width . resolve ( context ) )
6835,define the method e with an argument self.,def e ( self ) :
6836,import module unicodedata.,import unicodedata
6837,return an empty string.,return ''
6838,"try,",try :
6839,opts.fields is None.,opts . fields = None
6840,"if common_ancestor is None,",if common_ancestor is None :
6841,define the function split_url with an argument url.,def split_url ( url ) :
6842,"if migrations_directory is not a directory,",if not os . path . isdir ( migrations_directory ) :
6843,from django.utils.text import get_text_list into default name space.,from django . utils . text import get_text_list
6844,"if args is true,",if args :
6845,"if settings.DEBUG is true,",if settings . DEBUG :
6846,return nothing.,return
6847,call the function force_str with raw data as an argument and substitute it for rawdata.,rawdata = force_str ( rawdata )
6848,assign obj to the obj field of self instance of this class.,self . obj = obj
6849,"try,",try :
6850,"for every var in self._varlist. if not,",else :
6851,"if ImportError, renamed to e, exception is caught,",except ImportError as e :
6852,from django.core.handlers.wsgi import WSGIHandler into default name space.,from django . core . handlers . wsgi import WSGIHandler
6853,"if timeout equals to DEFAULT_TIMEOUT,",if timeout == DEFAULT_TIMEOUT :
6854,"if end is not a '>' or '/>' character,","if end not in ( "">"" , ""/>"" ) :"
6855,"tpl is an string ""DTDForbidden(name='{}', system_id={!r}, public_id={!r})"".","tpl = ""DTDForbidden(name='{}', system_id={!r}, public_id={!r})"""
6856,"id is a string ""literal"".","id = ""literal"""
6857,"call the method self.errors.as_data, for every error for value under the filed key of the returned dictionary,",for error in self . errors . as_data ( ) [ field ] :
6858,define the method path with arguments self and name.,"def path ( self , name ) :"
6859,return nothing.,return
6860,substitute MultipleHiddenInput for hidden_widget.,hidden_widget = MultipleHiddenInput
6861,"call the function handle_extensions exts, substitute self.extensions.",self . extensions = handle_extensions ( exts )
6862,"if f.primary_key is true,",if f . primary_key :
6863,substitute None for self.style_func.,self . style_func = None
6864,"call the function getcallargs with an argument current,",getcallargs ( current )
6865,"if pattern equals '*' or pattern starts with '.' or pattern equals host, and only if:",match = ( pattern == '*' or pattern . startswith ( '.' ) and ( host . endswith ( pattern ) or host == pattern [ 1 : ] ) or pattern == host )
6866,"if comment_notes is true,",if comment_notes :
6867,"cat for 'term'. if value under the 'feed_copyright' key of the self.feed dictionary is not None,",if self . feed [ 'feed_copyright' ] is not None :
6868,return self.value.,return self . value
6869,"define the method add with 5 arguments: self, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def add ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
6870,"substitute the result for data. if AttributeError exception is caught,",except AttributeError :
6871,from django.utils.encoding import force_bytes into default name space.,from django . utils . encoding import force_bytes
6872,call the function shutil.copymode with arguments old_path and new_path.,"shutil . copymode ( old_path , new_path )"
6873,"get the value under the 'HTTP_X_REQUESTED_WITH' key of the self.META dictionary, if it equals string 'XMLHttpRequest',",return self . META . get ( 'HTTP_X_REQUESTED_WITH' ) == 'XMLHttpRequest'
6874,"if filename is true,",if filename :
6875,"help is a string, ""Prints the custom table modifying SQL statements for the given app name(s)."".","help = ""Prints the custom table modifying SQL statements for the given app name(s)."""
6876,"call the function ugettext_lazy with an argument string 'Change', substitute the result for input_text.",input_text = ugettext_lazy ( 'Change' )
6877,substitute io.BytesIO for BytesIO.,BytesIO = io . BytesIO
6878,return self.empty_form.media.,return self . empty_form . media
6879,"try,",try :
6880,"where '%s' is replaced with request.__class__.__name__, path, return value of the function six.text_type called with an argument get, return value of the function six.text_type called with an argument post, return value of the function six.text_type, called with an argument cookies and return value of the function six.text_type called with an argument meta. define the function bytes_to_text with 2 arguments s and encoding.","def bytes_to_text ( s , encoding ) :"
6881,substitute value under the name key of the lib.filters dictionary for value under the name key of the temp_lib.filters dictionary.,temp_lib . filters [ name ] = lib . filters [ name ]
6882,import module warnings.,import warnings
6883,"finally perform,",finally :
6884,"append the result to the result of the method, self.as_widget, return the resulting string. call the method self.as_widget, return the result.",return self . as_widget ( )
6885,"call the method apps.get_model with exclude as an argument, substitute it for model.",model = apps . get_model ( exclude )
6886,define the method add_arguments with self class instance and parse as the arguments.,"def add_arguments ( self , parser ) :"
6887,"call the method self.field.widget.subwidgets with 3 arguments: self.html_name, return value of the method self.value and attrs,","for subwidget in self . field . widget . subwidgets ( self . html_name , self . value ( ) , attrs ) :"
6888,"call the method regex_match.group with an argument integer 1, substitute the result for lang_code.",lang_code = regex_match . group ( 1 )
6889,"if not,",else :
6890,"instantiate class ContextDict with 3 arguments: self, unpacked list args and unpacked dictionary kwargs, return it.","return ContextDict ( self , * args , ** kwargs )"
6891,"if self.timezone is false,",if not self . timezone :
6892,"from django.core.management.utils import handle_extensions, find_command and popen_wrapper into default name space.","from django . core . management . utils import ( handle_extensions , find_command , popen_wrapper )"
6893,"call the function get_language, split the result by '-', substitute the first element of the result for base_lang.",base_lang = get_language ( ) . split ( '-' ) [ 0 ]
6894,"if e.errno is not equal to errno.ENOENT,",if e . errno != errno . ENOENT :
6895,"and with safe set to bytes string ""/#%[]=:;$&()+,!?*@'~"", return the result. define function filepath_to_uri with path as the argument.",def filepath_to_uri ( path ) :
6896,"if test_runner_class has an 'option_list' attribute,","if hasattr ( test_runner_class , 'option_list' ) :"
6897,"call the handle method of the base class of the Command class, with 4 arguments: string 'project', project_name, target,","super ( Command , self ) . handle ( 'project' , project_name , target , ** options )"
6898,derive the class OVERLAPPED from the Structure base class.,class OVERLAPPED ( Structure ) :
6899,"define the method execute with 3 arguments self, unpacked list args and unpacked dictionary options.","def execute ( self , * args , ** options ) :"
6900,"if not,",else :
6901,"if encoded contains string ""\\"" and if encoded doesnt start with the double quote symbol,","if ""\\"" in encoded and not encoded . startswith ( '""' ) :"
6902,"call the value.natural_key method, substitute the result for natural.",natural = value . natural_key ( )
6903,define the function iri_to_uri with iri as an argument.,def iri_to_uri ( iri ) :
6904,"if not,",else :
6905,extra_params is an instance of the class OrderedDict.,extra_params = OrderedDict ( )
6906,derive the class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
6907,"if sep is None,",if sep is None :
6908,return total_forms.,return total_forms
6909,derive the class TemplateDoesNotExist form the base class Exception.,class TemplateDoesNotExist ( Exception ) :
6910,"if app_label is not contained in executor.loader.migrated_apps,",if app_label not in executor . loader . migrated_apps :
6911,"strip t.contents from the left side of whitespaces, if the result starts with TRANSLATOR_COMMENT_MARK,",if t . contents . lstrip ( ) . startswith ( TRANSLATOR_COMMENT_MARK ) :
6912,derive class Command from the base class BaseCommand.,class Command ( BaseCommand ) :
6913,"if m is false,",if not m :
6914,"join root and f into a file, substitute it for f.","f = os . path . join ( root , f )"
6915,derive the class TypedChoiceField from the base class ChoiceField class.,class TypedChoiceField ( ChoiceField ) :
6916,"define the method __promise__ with 4 arguments: cls, klass, funcname and method.","def __promise__ ( cls , klass , funcname , method ) :"
6917,"if cword equlals a integer 1,",if cword == 1 :
6918,"subtract self.STDOFFSET with self.DSTOFFSET, substitute the result for self.DSTDIFF.",self . DSTDIFF = self . DSTOFFSET - self . STDOFFSET
6919,"from ctypes.wintypes import BOOL, DWORD and HANDLE into default name space.","from ctypes . wintypes import BOOL , DWORD , HANDLE"
6920,import module sys.,import sys
6921,"for every app_config in return value of the call to the function apps.get_app_configs,",for app_config in apps . get_app_configs ( ) :
6922,add k to seen.,seen . add ( k )
6923,return ipv4_unpacked.,return ipv4_unpacked
6924,resolved_path is an empty list.,resolved_path = [ ]
6925,from django.core.mail.utils import DNS_NAME into default name space.,from django . core . mail . utils import DNS_NAME
6926,"default_error_messages is an dictionary with an initial entry: result of the function _ called with an argument string,","default_error_messages = { 'invalid' : _ ( 'Enter a number.' ) , }"
6927,define the function unlock with argument f.,def unlock ( f ) :
6928,"if message is not None,",if message is not None :
6929,"call the method datetime_safe.new_datetime with an argument date, substitute the result for date.",date = datetime_safe . new_datetime ( date )
6930,"if settings.ADMINS is false,",if not settings . ADMINS :
6931,"if not,",else :
6932,"from django.utils.safestring import mark_safe, SafeData and mark_for_escaping into default name space.","from django . utils . safestring import mark_safe , SafeData , mark_for_escaping"
6933,call the method app.start.,app . start ( )
6934,return result.,return result
6935,"join elements of output into a string, separated by newline characters, use it as the argument for the call the function mark_safe,",return mark_safe ( '\n' . join ( output ) )
6936,import module warnings.,import warnings
6937,"if pk is an instance of OneToOneField or ForeignKey classes,","if isinstance ( pk , OneToOneField ) or isinstance ( pk , ForeignKey ) :"
6938,"if first element of text equals '#',",if text [ 0 ] == '#' :
6939,"if want_unicode is false,",if not want_unicode :
6940,from django.forms.widgets import everything into default name space.,from django . forms . widgets import *
6941,from django.core.cache.backends.base import BaseCache and DEFAULT_TIMEOUT into default name space.,"from django . core . cache . backends . base import BaseCache , DEFAULT_TIMEOUT"
6942,"call the function sanitize_address with arguments addr and email_message.encoding, for every addr in return value of the function email_message.recipients, store the results in a recipients list.","recipients = [ sanitize_address ( addr , email_message . encoding ) for addr in email_message . recipients ( ) ]"
6943,raise an exception.,raise
6944,define the method __init__ with 3 arguments self and unpacked list args and unpacked dictionary kwargs.,"def list ( self , * args , ** kwargs ) :"
6945,"if AttributeError exception is caught,",except AttributeError :
6946,errors is an empty list.,errors = [ ]
6947,substitute c_ulong for ULONG_PTR.,ULONG_PTR = c_ulong
6948,do nothing.,pass
6949,"if use_workaround is boolean False,",if not use_workaround :
6950,substitute so and se for sys.stdout and sys.stderr.,"sys . stdout , sys . stderr = so , se"
6951,"default set to boolean True, help set to string 'Tells Django to NOT prompt the user for input of any kind.'. call the method parser.add_argument with 5 arguments: string '--failfast', action set to string 'store_true', dest set to 'failfast',","parser . add_argument ( '--failfast' , action = 'store_true' , dest = 'failfast' , default = False , help = 'Tells Django to stop running the test suite after first ' 'failed test.' ) ,"
6952,"if KeyError exception is caught,",except KeyError :
6953,"define the method get_response, with self class instance and request as the arguments.","def get_response ( self , request ) :"
6954,append block to the value under the name key of self.blocks dictionary.,self . blocks [ name ] . append ( block )
6955,if other_dict is an instance of MultiValueDict.,"if isinstance ( other_dict , MultiValueDict ) :"
6956,"message, code as a string 'ambiguous_timezone' and params as params, and third element of the return value of the function sys.exc_info. return value.",return value
6957,"define the function get_bytes_from_wsgi with environ, key and default as arguments.","def get_bytes_from_wsgi ( environ , key , default ) :"
6958,if value under the 'DJANGO_SETTINGS_MODULE' key of os.environ dictionary exists.,if os . environ . get ( 'DJANGO_SETTINGS_MODULE' ) :
6959,"get 'value' attribute of the _active object, if it exists substitute it for t, if not t is None.","t = getattr ( _active , ""value"" , None )"
6960,return an dictionary containing 1 entry: settings.STATIC_URL for 'STATIC_URL'.,return { 'STATIC_URL' : settings . STATIC_URL }
6961,import module glob.,import glob
6962,append mw_instance.process_view at the end of self._view_middleware.,self . _view_middleware . append ( mw_instance . process_view )
6963,"call the function func with 2 arguments: unpacked list self.__args and unpacked dictionary self.__kw, return the result.","return func ( * self . __args , ** self . __kw )"
6964,define the function dec with an argument func.,def dec ( func ) :
6965,"call the method n.getAttribute with string 'pk' as argument, use the result as an argument for the call to the field.rel.to._meta.pk.to_python method, substitute the result for obj_pk.",obj_pk = field . rel . to . _meta . pk . to_python ( n . getAttribute ( 'pk' ) )
6966,from django.utils.encoding import force_str into default name space.,from django . utils . encoding import force_str
6967,args is an empty string.,args = ''
6968,options is a list containing a tuple with 2 entries: string '--help' and None.,"options = [ ( '--help' , None ) ]"
6969,derive the class Parser form the base class object.,class Parser ( object ) :
6970,"substitute '%s' with first element of bits and block_name, respectively. append block_name to parser.__loaded_blocks.",parser . __loaded_blocks . append ( block_name )
6971,substitute style.ERROR for style.ERROR_OUTPUT.,style . ERROR_OUTPUT = style . ERROR
6972,"divide value by max_value, multiply the result with max_width, substitute it for ratio.",ratio = ( value / max_value ) * max_width
6973,"if connection exists dont modify it, if not call get_connection function with username set to auth_user, password set to auth_password, fail_silently set to fail_silently as arguments, assign it to connection.","connection = connection or get_connection ( username = auth_user , password = auth_password , fail_silently = fail_silently )"
6974,"define the method fetch_command, with arguments self and subcommand.","def fetch_command ( self , subcommand ) :"
6975,"missing_args_message is a string ""You must provide an application name."".","missing_args_message = ""You must provide an application name."""
6976,"if words is true, substitute re_words for regex, if not substitute re_chars for regex.",regex = re_words if words else re_chars
6977,"otherwise if ch equals a string '$',",elif ch == '$' :
6978,"bring integer 2 to the power of 10, multiply it by 64, substitute the result for DEFAULT_CHUNK_SIZE.",DEFAULT_CHUNK_SIZE = 64 * 2 ** 10
6979,return boolean False.,return False
6980,add self.form.error_css_class to extra_classes set.,extra_classes . add ( self . form . error_css_class )
6981,"from django.core.management.sql import custom_sql_for_model, emit_post_migrate_signal and emit_pre_migrate_signal into default name space.","from django . core . management . sql import custom_sql_for_model , emit_post_migrate_signal , emit_pre_migrate_signal"
6982,"raise an TemplateSyntaxError exception with an argument string ""%r received an invalid token: %r"", where '%r' is replaced with,","raise TemplateSyntaxError ( ""%r received an invalid token: %r"" % ( bits [ 0 ] , remaining_bits [ 0 ] ) )"
6983,"is self.data has an attribute 'tzinfo' and self.data.tzinfo is true,","if hasattr ( self . data , 'tzinfo' ) and self . data . tzinfo :"
6984,translators_comment_start is None.,translators_comment_start = None
6985,"floor the division of i by j, use it an an index to get the element of the digits list, append the result for base36.",base36 . append ( digits [ i // j ] )
6986,"if exp is None or exp is greater than the return value of the call to the function time.time,",if exp is None or exp > time . time ( ) :
6987,"from django.utils.encoding import smart_text, force_str and force_text into default name space.","from django . utils . encoding import smart_text , force_str , force_text"
6988,"ns_resolver is class instance of a class RegexURLResolver, created with 2 arguments: ns_pattern and resolver.url_patterns.","ns_resolver = RegexURLResolver ( ns_pattern , resolver . url_patterns )"
6989,return boolean True.,return True
6990,if Exception exception is caught.,except Exception :
6991,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
6992,add data to seen_data set.,seen_data . add ( data )
6993,do nothing.,pass
6994,derive the class BoundField from the base class object.,class BoundField ( object ) :
6995,"return value of the function os.path.basename called with first element of sys.argv as an argument, and second element of sys.argv. from django.conf import settings into default namespace.",from django . conf import settings
6996,"call the method netloc.encode with an argument string 'idna', call the method decode on the result with an argument 'ascii',",netloc = netloc . encode ( 'idna' ) . decode ( 'ascii' )
6997,"otherwise is settings.USE_TI is true,",elif settings . USE_TZ :
6998,"if autoescape is true,",if autoescape :
6999,"call the method token.split_contents, substitute the result for args.",args = token . split_contents ( )
7000,"value under the 'invalid_image' key of the self.error_messages dictionary and code set to a string 'invalid_image', and third element of the return value of the function sys.exc_info. if f has an attribute 'seek' and if f.seek is an callable object,","if hasattr ( f , 'seek' ) and callable ( f . seek ) :"
7001,"call the method bit.group with an argument integer 0, yield the result.",yield bit . group ( 0 )
7002,import module sys.,import sys
7003,append contents to plural.,plural . append ( contents )
7004,"formated with 3 elements: self.class_name, self.old_method_name and self.new_method_name, self.deprecation_warning and integer 2. call the function f with a arguments: unpacked list args and unpacked dictionary kwargs, return the result.","return f ( * args , ** kwargs )"
7005,define the function render_value_in_context with 2 arguments: value and context.,"def render_value_in_context ( value , context ) :"
7006,"call the method smart_split_re.finditer with an argument text, for every bit in result,",for bit in smart_split_re . finditer ( text ) :
7007,"if using_sysrandom is false,",if not using_sysrandom :
7008,"zip self.loopvars and item is a list to tuples, convert the result to an dictionary, substitute it for unpacked_vars.","unpacked_vars = dict ( zip ( self . loopvars , item ) )"
7009,"define the __init__ method with 6 arguments: self, name, content_type, size, charset and content_type_extra set to None.","def __init__ ( self , name , content_type , size , charset , content_type_extra = None ) :"
7010,stats is a list with 2 elements: 2 integers 0.,"stats [ : ] = [ 0 , 0 ]"
7011,"return value under the name key of the data dictionary, if it doesnt exists, return None.","return data . get ( name , None )"
7012,"if args is true,",if not args :
7013,"call the function func with 2 arguments: unpacked list resolved_args and unpacked dictionary resolved_kwargs, substitute the result for _dict.","_dict = func ( * resolved_args , ** resolved_kwargs )"
7014,define the method has_key with 2 arguments: self and key.,"def has_key ( self , key ) :"
7015,remove first 7 elements form template.,template = template [ 7 : ]
7016,"register.tag decorator,",@ register . tag
7017,"for every exclude in excludes,",for exclude in excludes :
7018,"call the function six.text_type with s as an argument, substitute result for s.",s = six . text_type ( s )
7019,substitute tokens for self.tokens.,self . tokens = tokens
7020,"call the method executor.loader.get_migration_by_prefix with arguments app_label, migration_name, substitute the result for migration.","migration = executor . loader . get_migration_by_prefix ( app_label , migration_name )"
7021,derive the class ImproperlyConfigured from the Exception base class.,class ImproperlyConfigured ( Exception ) :
7022,define the function parse_http_date with an argument date.,def parse_http_date ( date ) :
7023,"substitute '%s' in string '%s-%s-%s' with y, m and d, return the result.","return '%s-%s-%s' % ( y , m , d )"
7024,"get the next element of the iterable pattern_iter, assign the result for ch and escaped, respectively.","ch , escaped = next ( pattern_iter )"
7025,"call the method __init__ from the base class of the TemporaryUploadedFile class with arguments: file, name, content_type, size, charset and content_type_extra.","super ( TemporaryUploadedFile , self ) . __init__ ( file , name , content_type , size , charset , content_type_extra )"
7026,return value.,return value
7027,call method __init__ with argument params from the base class of the FileBaseCache.,"super ( FileBasedCache , self ) . __init__ ( params )"
7028,"call the method token.split_contents, substitute the result for bits.",bits = token . split_contents ( )
7029,from django.utils import timezone into default name space.,from django . utils import timezone
7030,"convert bytes to floating point number, substitute it for bytes.",bytes = float ( bytes )
7031,"otherwise if value is an instance of datetime.time,","elif isinstance ( value , datetime . time ) :"
7032,_encoding is None.,_encoding = None
7033,"call the function conditional_escape with an argument contents, substitute the result for contents.",contents = conditional_escape ( contents )
7034,"call the method node.render with an argument context, append the result to the nodelist.",nodelist . append ( node . render ( context ) )
7035,break loop execution.,break
7036,"try,",try :
7037,"if upto is not equal to length of token,",if upto != len ( token ) :
7038,"table2model is a lambda function with an argument table_name, return value is the return value of the re.sub method,","table2model = lambda table_name : re . sub ( r'[^a-zA-Z0-9]' , '' , table_name . title ( ) )"
7039,"call the method self.fetch_command with first element of cwords as an argument, substitute it for subcommand_cls.",subcommand_cls = self . fetch_command ( cwords [ 0 ] )
7040,if code is not None,if code is not None :
7041,"sum m and value under the medium key of the base dictionary, substitute it for m.",m = m + base [ medium ]
7042,timeout is a integer -1.,timeout = - 1
7043,"if AttributeError exception is caught,",except AttributeError :
7044,"if proto is greater than or equal to integer 2,",if proto >= 2 :
7045,"and args, respectively. call the method handle_default_options with an argument options.",handle_default_options ( options )
7046,where '%s' is replaced with self.id. define the method display with an argument self.,def display ( self ) :
7047,raise an ValueError exception with an argument string 'Unable to configure logger %r: %s' formated with name and e.,"raise ValueError ( 'Unable to configure logger ' '%r: %s' % ( name , e ) )"
7048,"if not,",else :
7049,return the value under the self.data.month key of the MONTHS_AP dictionary.,return MONTHS_AP [ self . data . month ]
7050,do nothing.,pass
7051,"call the encode function on the Header class instance, created with argument val, substitute the result for val.",val = Header ( val ) . encode ( )
7052,"if not,",else :
7053,call the method self.validate_key with argument key.,self . validate_key ( key )
7054,plural is an empty list.,plural = [ ]
7055,"from django.utils.dates import MONTHS, MONTHS_3, MONTHS_ALT, MONTHS_AP, WEEKDAYS and WEEKDAYS_ABBR into default name space.","from django . utils . dates import MONTHS , MONTHS_3 , MONTHS_ALT , MONTHS_AP , WEEKDAYS , WEEKDAYS_ABBR"
7056,register is an instance of Library class.,register = Library ( )
7057,"convery value into a tuple, substitute it for value.",value = tuple ( value )
7058,"and MEMCACHE_MAX_KEY_LENGTH, call the function warnings.warn with previous string and CacheKeyWarning as arguments. for every char in key,",for char in key :
7059,input_type is a string 'checkbox'.,input_type = 'checkbox'
7060,"for every bit in bits,",for bit in bits :
7061,errors is an empty list.,errors = [ ]
7062,"languages set to a list with an element self.__locale, codeset set to a string 'utf-8' and fallback set to use_null_fallback, substitute the result for translation. if translation has an attribute '_catalog',","if not hasattr ( translation , '_catalog' ) :"
7063,define the method encoding with an argument self.,def encoding ( self ) :
7064,"result of the call to the function _ with an argument string 'Tuesday' for 1, result of the call to the function _ with an argument string 'Wednesday' for 2, result of the call to the function _ with an argument string 'Thursday' for 3, result of the call to the function _ with an argument string 'Friday' for 4, result of the call to the function _ with an argument string 'Saturday' for 5, and result of the call to the function _ with an argument string 'Sunday' for 6. WEEKDAYS_ABBR is an dictionary with 7 entries: result of the call to the function _ with an argument string 'Mon' for 0,","WEEKDAYS_ABBR = { 0 : _ ( 'Mon' ) , 1 : _ ( 'Tue' ) , 2 : _ ( 'Wed' ) , 3 : _ ( 'Thu' ) , 4 : _ ( 'Fri' ) , 5 : _ ( 'Sat' ) , 6 : _ ( 'Sun' ) }"
7065,"define the method __init__ with self, server and params as arguments.","def __init__ ( self , server , params ) :"
7066,"raise an CommandError exception with an argument string '""%s"" is not a valid port number or address:port pair.',","raise CommandError ( '""%s"" is not a valid port number ' 'or address:port pair.' % options [ 'addrport' ] )"
7067,"for every domain in domains,",for domain in domains :
7068,"remove 'LOCATION' key from kwargs dictionary and put it into location, or use an empty string if key doesnt exists.","location = params . pop ( 'LOCATION' , '' )"
7069,"take two characters from the i-th element of rawdata, if they are not equal to the string '',","assert rawdata [ i : i + 2 ] == """" , ""unexpected call to parse_endtag"""
7070,def method add_arguments with self class instance and parser as the arguments.,"def add_arguments ( self , parser ) :"
7071,"if first and second element of sys.version_info are equal to integers 3 and 4, respectively,","if sys . version_info [ : 2 ] >= ( 3 , 4 ) :"
7072,define the method save with 2 arguments: self and commit set to boolean True.,"def save ( self , commit = True ) :"
7073,TOKEN_COMMENT is integer 3.,TOKEN_COMMENT = 3
7074,call the __init__ method with an argument name from the base class of the MovedModule class.,"super ( MovedModule , self ) . __init__ ( name )"
7075,substitute the last element of parts for parts.,parts = parts [ : - 1 ]
7076,return instance.,return instance
7077,substitute self._request_middleware for request_middleware.,self . _request_middleware = request_middleware
7078,return default_key_func.,return default_key_func
7079,"call the method self.configurator.convert with an argument value, substitute the result for result.",result = self . configurator . convert ( value )
7080,"while model_dependencies is true,",while model_dependencies :
7081,"if obj_list is None,",if obj_list is None :
7082,import module logging.,import logging
7083,return obj.,return obj
7084,call the method logging._acquireLock.,logging . _acquireLock ( )
7085,call the method self.configure_root with 2 arguments: root and boolean True.,"self . configure_root ( root , True )"
7086,"property decorator,",@ property
7087,"substitute the result for starttag_re. call the function re.compile with an argument string '%s>' formated with tags_re, substitute the result for endtag_re.",endtag_re = re . compile ( '%s>' % tags_re )
7088,"if exception of the class Exception, as e, is caught,",except Exception as e :
7089,"call the function register_serializer with 3 arguments: format, value under the format key of the settings.SERIALIZATION_MODULES dictionary and serializers.","register_serializer ( format , settings . SERIALIZATION_MODULES [ format ] , serializers )"
7090,"if las equals integer 2,",if last == 2 :
7091,"call parser.add_argument method with '--ipv6', string '-6', action set to string 'store_true', dest set to string 'use_ipv6',","parser . add_argument ( '--ipv6' , '-6' , action = 'store_true' , dest = 'use_ipv6' , default = False , help = 'Tells Django to use an IPv6 address.' )"
7092,"if param is true,",if param :
7093,"if for all attr in list of attributes 'level', 'msg', 'hint', 'obj' and 'id', self and other have the same attribute attr,","return all ( getattr ( self , attr ) == getattr ( other , attr ) for attr in [ 'level' , 'msg' , 'hint' , 'obj' , 'id' ] )"
7094,substitute serializers for _serializers.,_serializers = serializers
7095,"strip message_context of ""'"" characters from both ends, substitute the result for message_context.","message_context = message_context . strip ( ""'"" )"
7096,"if AttributeError exception is caught,",except AttributeError :
7097,return dec.,return dec
7098,"if initial is not None,",if initial is not None :
7099,"call the method self.key_function with key, self.key_prefix and version as arguments, substitute the result for new_key.","new_key = self . key_func ( key , self . key_prefix , version )"
7100,return nothing.,return
7101,"try,",try :
7102,"call the method self.stdout.write with string "" No migrations to apply."" as an argument.","self . stdout . write ( "" No migrations to apply."" )"
7103,raise an ValueError exception with an argument string 'Unable to add handler %r: %s' formated with h and e.,"raise ValueError ( 'Unable to add handler %r: %s' % ( h , e ) )"
7104,from django.core.mail.utils import CachedDnsName and DNS_NAME into default name space.,"from django . core . mail . utils import CachedDnsName , DNS_NAME"
7105,define the method add_arguments with 2 arguments self and parser.,"def add_arguments ( self , parser ) :"
7106,"if s is an instance of bytes or Promise and s._delegate_bytes is true,","if isinstance ( s , bytes ) or ( isinstance ( s , Promise ) and s . _delegate_bytes ) :"
7107,define the function add_library with 2 arguments: self and lib.,"def add_library ( self , lib ) :"
7108,return result.,return result
7109,self._validate_unique is boolean False.,self . _validate_unique = False
7110,do nothing.,pass
7111,"call the function six.text_type with an argument value, use the result as an argument for the call to the function mark_safe,",return mark_safe ( six . text_type ( value ) )
7112,do nothing.,pass
7113,"call the method base.__dict__.items, for every attr and value in the result,","for attr , value in base . __dict__ . items ( ) :"
7114,"otherwise if length of key equals integer 1 and type of first element of key is contained in fasttypes,",elif len ( key ) == 1 and type ( key [ 0 ] ) in fasttypes :
7115,"from datetime import datetime, timedelta and tzinfo into default name space.","from datetime import datetime , timedelta , tzinfo"
7116,return ZERO.,return ZERO
7117,"call the method bytes_to_text with 2 arguments: value and self.encoding, substitute the result for value.","value = bytes_to_text ( value , self . encoding )"
7118,"args is an list with 3 initial elements self.name, self.value and self.attrs.","args = [ self . name , self . value , self . attrs ]"
7119,define the method prepare_value with 2 arguments: self and value.,"def prepare_value ( self , value ) :"
7120,from django.utils import six into default name space.,from django . utils import six
7121,define the method extract with 2 arguments: self and to_path set to an empty string.,"def extract ( self , to_path = '' ) :"
7122,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
7123,"default as boolean False and help as a string ""Don't break long message lines into several lines."". call the method parser.add_argument with 5 arguments: string '--no-location', action set to string 'store_true',","parser . add_argument ( '--no-location' , action = 'store_true' , dest = 'no_location' , default = False , help = ""Don't write '#: filename:line' lines."" )"
7124,from django.forms.formsets import BaseFormSet and formset_factory into default name space.,"from django . forms . formsets import BaseFormSet , formset_factory"
7125,"call the method ustring_re.sub with 2 arguments: fix and s, return the result.","return ustring_re . sub ( fix , s )"
7126,define the method is_rendered with an argument self.,def is_rendered ( self ) :
7127,"call the options.get method with string 'CULL_FREQUENCY' and integer 3 as arguments, use the string 'cull_frequency' and previous result as the arguments for the call to the params.get method, substitute the result for cull_frequency.","cull_frequency = params . get ( 'cull_frequency' , options . get ( 'CULL_FREQUENCY' , 3 ) )"
7128,define the method get_limit_choices_to with arguments self.,def get_limit_choices_to ( self ) :
7129,substitute value under the NEXT key of the oldroot dictionary for root and first element of nonlocal_root.,root = nonlocal_root [ 0 ] = oldroot [ NEXT ]
7130,"self.choices is an list containing an tuple with 2 elements: an empty string and string ""---------"".","self . choices = [ ( """" , ""---------"" ) ]"
7131,"with call to the function transaction.atomic with using set to connection.alias and savepoint set to connection.features.can_rollback_ddl, as arguments.","with transaction . atomic ( using = connection . alias , savepoint = connection . features . can_rollback_ddl ) :"
7132,"if COOKIES_override is not None, or otherwise generated with the call to the function pformat with an argument request.COOKIES. if Exception exception is caught,",except Exception :
7133,define the function address_string with an argument self.,def address_string ( self ) :
7134,return endpos.,return endpos
7135,"define the method __init__ with 3 arguments: self, template_string and origin.","def __init__ ( self , template_string , origin ) :"
7136,"call the method parser.compile_filter with an argument string ""var|%s"", where '%s' is replaced with rest, substitute the result for filter_expr.","filter_expr = parser . compile_filter ( ""var|%s"" % ( rest ) )"
7137,"if expires is an instance of datetime.datetime class,","if isinstance ( expires , datetime . datetime ) :"
7138,"otherwise if name is not None and filter_func is None,",elif name is not None and filter_func is None :
7139,output is an empty list.,output = [ ]
7140,substitute smart_text for smart_str.,smart_str = smart_text
7141,substitute c for factory.,factory = c
7142,"for every loader_name in settings.TEMPLATE_LOADERS,",for loader_name in settings . TEMPLATE_LOADERS :
7143,"for every w in self.widgets, if all elements w.is_hidden are true, return boolean True, otherwise return boolean False.",return all ( w . is_hidden for w in self . widgets )
7144,"if not,",else :
7145,from django.utils.html import conditional_escape and format_html into default name space.,"from django . utils . html import conditional_escape , format_html"
7146,"TemplateSyntaxError and VariableDoesNotExist. from django.template.base import Context, FilterExpression, Lexer, Node, NodeList, Parser, RequestContext, Origin, StringOrigin,","from django . template . base import ( Context , FilterExpression , Lexer , Node , NodeList , Parser , RequestContext , Origin , StringOrigin , Template , TextNode , Token , TokenParser , Variable , VariableNode , constant_string , filter_raw_string )"
7147,substitute config dictionary value under '()' key for factory.,factory = config [ '()' ]
7148,raise an ValueError exception with an argument string 'Unable to configure filter %r: %s' formated with name and e.,"raise ValueError ( 'Unable to configure ' 'filter %r: %s' % ( name , e ) )"
7149,derive the class EscapeText from six.text_type and EscapeData base classes.,"class EscapeText ( six . text_type , EscapeData ) :"
7150,"raise an CommandError exception with an argument string ""%r conflicts with the name of an existing Python module and cannot be used ""","raise CommandError ( ""%r conflicts with the name of an existing "" ""Python module and cannot be used as an app "" ""name. Please try another name."" % app_name )"
7151,"m2m_convert is a lambda function with an argument v, return value is the result of the function smart_text called with an argument:",m2m_convert = lambda v : smart_text ( field . rel . to . _meta . pk . to_python ( v ) )
7152,"default is boolean False, and help is a string ""Don't colorize the command output."". if self.args is true,",if self . args :
7153,"otherwise if first element of second row of args equals a string '1',",elif args [ 1 ] [ 0 ] == '1' :
7154,"join into a file path: app_dir and string %s.%s.sql, where '%s' is replaced by opts.model_name and backend_name, respectively,","sql_files . append ( os . path . join ( app_dir , ""%s.%s.sql"" % ( opts . model_name , backend_name ) ) )"
7155,call the function is_naive with an argument obj.,if is_naive ( obj ) :
7156,"for every obj in PythonDeserializer called with arguments objects and unpacked dictionary options,","for obj in PythonDeserializer ( objects , ** options ) :"
7157,app_list is an instance of a class OrderedDict.,app_list = OrderedDict ( )
7158,define the method full_clean with an argument self.,def full_clean ( self ) :
7159,"if empty_label is an instance of list or tuple type,","if isinstance ( empty_label , ( list , tuple ) ) :"
7160,"instantiate Lexer class with 2 argumets src and origin, call the method tokenize from it, for every t in the result,","for t in Lexer ( src , origin ) . tokenize ( ) :"
7161,"otherwise if end is not an instance of string type,","elif not isinstance ( end , str ) :"
7162,"use the result as an argument for the call to the function bytes, return the result. define the method __cast with an argument self.",def __cast ( self ) :
7163,return self.,return self
7164,"from django.db import connections, DEFAULT_DB_ALIAS and migrations into default name space.","from django . db import connections , DEFAULT_DB_ALIAS , migrations"
7165,"get config dictionary element under 'formatters' key, if it exists substitute it for formatters, if not, formatters is EMPTY_DICT.","formatters = config . get ( 'formatters' , EMPTY_DICT )"
7166,"locale_dirs is a list of elements from the list of path names that maths the basedir path with '/*' wild card characters for which call to the os.path.isdir returned true, assign it to locale_dirs.","locale_dirs = filter ( os . path . isdir , glob . glob ( '%s/*' % basedir ) )"
7167,"if IndexError exception is caught,",except IndexError :
7168,"define the function run with 5 arguments: addr, port, wsgi_handler, ipv6 set to boolean False and threading set to boolean False.","def run ( addr , port , wsgi_handler , ipv6 = False , threading = False ) :"
7169,"default set to DEFAULT_DB_ALIAS and help as a string 'Nominates a database to flush. Defaults to the ""default"" database.'. call the method parser.add_argument with 5 arguments: string '--no-initial-data', action set to string 'store_false',","parser . add_argument ( '--no-initial-data' , action = 'store_false' , dest = 'load_initial_data' , default = True , help = 'Tells Django not to load any initial data after database synchronization.' )"
7170,call the function logging_config_func with an argument DEFAULT_LOGGING.,logging_config_func ( DEFAULT_LOGGING )
7171,expires is None.,expires = None
7172,"if not,",else :
7173,LOCK_EX is a hexadecimal 2.,LOCK_EX = 0x2
7174,return split.,return split
7175,import module logging.,import logging
7176,"define the method __init__ with 7 arguments: self, file set to None, name set to None, content_type set to None, size set to None, charset set to None and content_type_extra set to None.","def __init__ ( self , file = None , name = None , content_type = None , size = None , charset = None , content_type_extra = None ) :"
7177,raise an NotImplementedError with an argument string 'subclasses of NoArgsCommand must provide a handle_noargs() method'.,raise NotImplementedError ( 'subclasses of NoArgsCommand must provide a handle_noargs() method' )
7178,"raise an CommandError with an argument string ""errors happened while running msgattrib\n%s"", where '%s' is replaced with errors.","raise CommandError ( ""errors happened while running msgattrib\n%s"" % errors )"
7179,substitute name for new_mod.,new_mod = name
7180,append bit to split.,split . append ( bit )
7181,"if objects_in_fixture equals integer 0,",if objects_in_fixture == 0 :
7182,define the function compress_sequence with an argument sequence.,def compress_sequence ( sequence ) :
7183,return an empty string.,return ''
7184,"if self.body is true,",if self . body :
7185,"if AttributeError exception is caught,",except AttributeError :
7186,"call the function glob.glob with an argument: string '/*' appended to self.default_locale_path converted into a string,","locale_dirs = filter ( os . path . isdir , glob . glob ( '%s/*' % self . default_locale_path ) )"
7187,return result.,return result
7188,"name set to a string 'cache_key', max_length set to integer 255, unique set to boolean True and primary_key set to boolean True, return value of the method models.TextField called with argument name set to a string 'value', and return value of the method models.DateTimeField called with 2 arguments: name set to string 'expires' and db_index set to True. table_output is an empty list.",table_output = [ ]
7189,where '%r' is replaced with first element of bits. append first element of bits to 'end'. substitute the result for end_tag.,end_tag = 'end' + bits [ 0 ]
7190,base is an instance of Media class.,base = Media ( )
7191,"if self.max_length is not None and length of file_name is grater than self.max_length,",if self . max_length is not None and len ( file_name ) > self . max_length :
7192,"get opname attribute from int object, substitute its field __doc__ for opfunc.__doc__.","opfunc . __doc__ = getattr ( int , opname ) . __doc__"
7193,return a string '%02d' formated with self.data.month.,"return '%s %s' % ( self . f ( ) , self . a ( ) )"
7194,and database set to value under the 'database' key of the options dictionary. break the loop execution.,break
7195,"if extra_context is true, substitute it for self.extra_context, if not self.extra_context is an empty dictionary.",self . extra_context = extra_context or { }
7196,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
7197,"call the self._lock.writer method, with the result perform the following,",with self . _lock . writer ( ) :
7198,"register.tag decorator,",@ register . tag
7199,increment res by element of to_digit at the digit index.,res = to_digits [ digit ] + res
7200,"if item is not an instance of list or tuple class,","if not isinstance ( item , ( list , tuple ) ) :"
7201,"call the function time.strftime with 2 arguments: fmt and and timetuple without the first element,","s1 = time . strftime ( fmt , ( year , ) + timetuple [ 1 : ] )"
7202,from django.forms.utils import flatatt and to_current_timezone into default name space.,"from django . forms . utils import flatatt , to_current_timezone"
7203,return boolean True.,return True
7204,import gettext module.,import gettext
7205,"define the method bound_data with arguments self, data and initial.","def bound_data ( self , data , initial ) :"
7206,import module os.,import os
7207,"call the method self.execute, with 2 arguments: unpacked list args and unpacked dictionary cmd_options.","self . execute ( * args , ** cmd_options )"
7208,"if length of version does not equals to integer 5, raise an exception.",assert len ( version ) == 5
7209,"if csrf_token is not None,",if csrf_token is not None :
7210,"if _cookie_allows_colon_in_names is False,",if not _cookie_allows_colon_in_names :
7211,attrs as attrs_plus and choices as choice_label. substitute self.choice_input_class for sub_ul_renderer.choice_input_class.,sub_ul_renderer . choice_input_class = self . choice_input_class
7212,"if value is not contained in result,",if value is not result :
7213,define the method dict with an argument self.,def dict ( self ) :
7214,conditions_nodelists is a list containing tuple with 2 elements condition and nodelist.,"conditions_nodelists = [ ( condition , nodelist ) ]"
7215,"call the function allow_lazy with 2 arguments: get_valid_filename and six.text_type, substitute the result for get_valid_filename.","get_valid_filename = allow_lazy ( get_valid_filename , six . text_type )"
7216,"define the method add_fields with 3 arguments: self, form and index.","def add_fields ( self , form , index ) :"
7217,prepend an empty string to hextets list.,hextets = [ '' ] + hextets
7218,substitute value for value under the key key of safe_data dictionary.,safe_data [ key ] = value
7219,"instantiate base class of the class ModelMultipleChoiceField, substitute filed to_python of the result for to_py.","to_py = super ( ModelMultipleChoiceField , self ) . to_python"
7220,"and warning as a string ""You cannot alter upload handlers after the upload has been processed."". parser is an instance of MultiPartParser class, created with 4 arguments: META, post_data, self.upload_handlers and self.encoding.","parser = MultiPartParser ( META , post_data , self . upload_handlers , self . encoding )"
7221,return None.,return None
7222,"if not,",else :
7223,cached_loaders is an empty list.,cached_loaders = [ ]
7224,delete frame.,del frame
7225,import module zipfile.,import zipfile
7226,"join self.dirpath and self.file into a file path, substitute it for orig_file.","orig_file = os . path . join ( self . dirpath , self . file )"
7227,"if TypeError exception is caught,",except TypeError :
7228,curr is an empty string.,curr = ''
7229,"if attr is contained in obj_dict,",if attr in obj_dict :
7230,value is boolean False.,value = False
7231,"if self has an '_post' attribute,","if hasattr ( self , '_post' ) :"
7232,define the method render with 2 arguments self and context.,"def render ( self , context ) :"
7233,"if s is instance of a class Promise,","if isinstance ( s , Promise ) :"
7234,derive the class MultipleHiddenInput from the HiddenInput base class.,class MultipleHiddenInput ( HiddenInput ) :
7235,_cookie_allows_colon_in_names is a boolean True.,_cookie_allows_colon_in_names = True
7236,"if not,",else :
7237,self._current is None.,self . _current = None
7238,return key and pdict.,"return key , pdict"
7239,derive the class PasswordInput from the TextInput base class.,class PasswordInput ( TextInput ) :
7240,"for every sublist in second_item,",for sublist in second_item :
7241,call the method self.validate_key with argument key.,self . validate_key ( key )
7242,"get 'localized_fields' attribute from the options object, if it exists substitute it for self.localized_fields,","self . localized_fields = getattr ( options , 'localized_fields' , None )"
7243,substitute doublecolon_start for best_doublecolon_start.,best_doublecolon_start = doublecolon_start
7244,define the method start_serialization with an argument self.,def start_serialization ( self ) :
7245,"return result converted into an integer. if not,",else :
7246,from django.core.management.sql import sql_indexes into default name space.,from django . core . management . sql import sql_indexes
7247,"only if form_class is not None, and if form_class has an attribute '_meta' and form_class._meta.fields is not None,","return ( form_class is not None and ( hasattr ( form_class , '_meta' ) and ( form_class . _meta . fields is not None or form_class . _meta . exclude is not None ) ) )"
7248,"for every key in sorted list of user_settings,",for key in sorted ( user_settings ) :
7249,"for every key and value in items of dictionary self,","for key , value in dict . items ( self ) :"
7250,substitute app_or_project for self.app_or_project.,self . app_or_project = app_or_project
7251,substitute fcntl.LOCK_SH for LOCK_SH.,LOCK_SH = fcntl . LOCK_SH
7252,i is integer 365.,i = 365
7253,substitute options for self.options.,self . options = options
7254,define the function lower with an argument value.,def lower ( value ) :
7255,return an empty list.,return [ ]
7256,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
7257,increment self.loaded_object_count by loaded_objects_in_fixture.,self . loaded_object_count += loaded_objects_in_fixture
7258,"convert max_entries into a string, substitute it for self._max_entries.",self . _max_entries = int ( max_entries )
7259,"if six.PY2 is true and path is not an instance of six.text_type type,","if six . PY2 and not isinstance ( path , six . text_type ) :"
7260,"url_schemes is list of strings 'http', 'https' and 'ftp'.","url_schemes = [ 'http' , 'https' , 'ftp' ]"
7261,args is an empty list.,args = [ ]
7262,import module codecs.,import codecs
7263,substitute content_type_extra for self.content_type_extra.,self . content_type_extra = content_type_extra
7264,from django.core.files.move import file_move_safe into default name space.,from django . core . files . move import file_move_safe
7265,"if self._pk_field equals self.fk,",if self . _pk_field == self . fk :
7266,"append string "" Got this from the '%s' variable."" to error_msg, where '%s is replaced with self.parent_name.token.","error_msg += "" Got this from the '%s' variable."" % self . parent_name . token"
7267,raise a SerializerDoesNotExist exception with an argument format.,raise SerializerDoesNotExist ( format )
7268,"call the function _generate_cache_key with request, method, headerlist, key_prefix as arguments, return the result.","return _generate_cache_key ( request , method , headerlist , key_prefix )"
7269,substitute template for self.template_name.,self . template_name = template
7270,"if not,",else :
7271,"if not,",else :
7272,"call the function formats.localize_input with 2 arguments: value and self.format if true, if not,","return formats . localize_input ( value , self . format or formats . get_format ( self . format_key ) [ 0 ] )"
7273,"call the method self.itervalues, return the list of results.",return list ( self . itervalues ( ) )
7274,"RemovedInDjango19Warning and stacklevel as integer 2. try,",try :
7275,"call the method handler.startElement with 2 arguments: string 'entry' and result of the function self.item_attributes,","handler . startElement ( ""entry"" , self . item_attributes ( item ) )"
7276,"append header to the string 'HTTP_', append the result to the list headerlist.",headerlist . append ( 'HTTP_' + header )
7277,substitute choices for self.choices.,self . choices = choices
7278,"if not,",else :
7279,use global variable _supported.,global _supported
7280,"define the function send_mass_mail with, datatuple, fail_silently set to False, auth_user set to None, auth_password set to None,","def send_mass_mail ( datatuple , fail_silently = False , auth_user = None , auth_password = None , connection = None ) :"
7281,substitute list containing element self for self.error_list.,self . error_list = [ self ]
7282,define the method writer_leaves with an argument self.,def writer_leaves ( self ) :
7283,define the method get_queryset with an argument self.,def get_queryset ( self ) :
7284,"use the result as a key to get the value from the connections dictionary, substitute the result for connection. call the function check_for_migrations with 2 arguments: app_config and connection.","check_for_migrations ( app_config , connection )"
7285,from django.utils.module_loading import import_string into default name space.,from django . utils . module_loading import import_string
7286,"if mtime is different than the value of dictionary _mtimes under the key filename,",if mtime != _mtimes [ filename ] :
7287,"raise an InvalidTemplateLibrary exception with an argument string ""Template library %s does not have a variable named 'register'"",","raise InvalidTemplateLibrary ( ""Template library %s does not have "" ""a variable named 'register'"" % taglib_module )"
7288,from django.utils import six into default name space.,from django . utils import six
7289,"for every sql_file in sql_files,",for sql_file in sql_files :
7290,"match the rawdata from the position i, with _html_parser.endtagfind pattern, assign the result to the match.","match = _html_parser . endtagfind . match ( rawdata , i )"
7291,"if model is contained in created_models,",if model in created_models :
7292,from django.core.validators import EMPTY_VALUES into default name space.,from django . core . validators import EMPTY_VALUES
7293,import module socket.,import socket
7294,"if data is instance of Node and data.negated is false, and if data.connector equals conn_type or length of data equals integer 1,","if ( isinstance ( data , Node ) and not data . negated and ( data . connector == conn_type or len ( data ) == 1 ) ) :"
7295,substitute field for self.field.,self . field = field
7296,"define the function modelformset_factory with 18 arguments: model, form set to ModelForm, formfield_callback set to None,","def modelformset_factory ( model , form = ModelForm , formfield_callback = None , formset = BaseModelFormSet , extra = 1 , can_delete = False , can_order = False , max_num = None , fields = None , exclude = None , widgets = None , validate_max = False , localized_fields = None , labels = None , help_texts = None , error_messages = None , min_num = None , validate_min = False ) :"
7297,truncate first size number of elements of self.buffer.,self . buffer = self . buffer [ size : ]
7298,derive the class RemovedInDjango19Warning from DeprecationWarning base class.,class RemovedInDjango19Warning ( DeprecationWarning ) :
7299,"call the method parser.add_argument with 3 arguments: string '--database', default set to DEFAULT_DB_ALIAS,","parser . add_argument ( '--database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to print the SQL for. Defaults to the ' '""default"" database.' )"
7300,"if not,",else :
7301,"convert pattern to lowercase, substitute it for pattern.",pattern = pattern . lower ( )
7302,"call the method self.emit_post_migrate with arguments verbosity, interactive and database.","self . emit_post_migrate ( verbosity , interactive , database )"
7303,"call the method self.__dict__.copy, substitute the result for obj_dict.",obj_dict = self . __dict__ . copy ( )
7304,"media is a property object of the current class, with _get_media as getter function.",media = property ( _get_media )
7305,call the function sys.exit with argument integer 3.,sys . exit ( 3 )
7306,"call the method logging.getLogger, substitute the result for root.",root = logging . getLogger ( )
7307,call the method self.xml.endElement with an argument string 'natural',"self . xml . endElement ( ""natural"" )"
7308,"open err_log flie in append mode with buffering size of input buffer, substitute the result for se.","se = open ( err_log , 'a+' , buffering )"
7309,"if props is true,",if props :
7310,do nothing.,pass
7311,"call the method node.getElementsByTagName with the argument string 'natural', substitute the result for keys.",keys = node . getElementsByTagName ( 'natural' )
7312,define the method _get_scheme with self class instance as argument.,def _get_scheme ( self ) :
7313,"if key_func is not of None type,",if key_func is not None :
7314,"if ImportError exception is caught,",except ImportError :
7315,"call the function six.reraise with 3 arguments: ImproperlyConfigured, ImproperlyConfigured(msg) and third element of return value of the function sys.exc_info.","six . reraise ( ImproperlyConfigured , ImproperlyConfigured ( msg ) , sys . exc_info ( ) [ 2 ] )"
7316,"as the arguments, substitute the result for response. append the request to the end of the protected class member response._closable_objects.",response . _closable_objects . append ( request )
7317,"get the value under the library_name key of the libraries dictionary, if it exists, substitute it for lib, if not, lib is None.","lib = libraries . get ( library_name , None )"
7318,"define the function sql_delete with 4 arguments: app_config, style, connection and close_connection set to boolean True.","def sql_delete ( app_config , style , connection , close_connection = True ) :"
7319,"tf is an instance of TimeFormat class, created with an argument value.",tf = TimeFormat ( value )
7320,sublist is an empty string.,sublist = ''
7321,define the method __init__ with 2 arguments: self and unpacked list dicts.,"def __init__ ( self , * dicts ) :"
7322,"if six.PY3 is true,",if six . PY3 :
7323,"otherwise if self.nodelist_false is true,",elif self . nodelist_false :
7324,"if AttributeError exception is caught,",except AttributeError :
7325,derive the class HttpResponseBadRequest from the HttpResponse base class.,class HttpResponseBadRequest ( HttpResponse ) :
7326,nodelist.contains_nontext is boolean True.,nodelist . contains_nontext = True
7327,call the self.close method.,self . close ( )
7328,"join self.dirpath and thefile in a string, substitute the result for work_file.","work_file = os . path . join ( self . dirpath , thefile )"
7329,"call the function data with 3 arguments: d.year, d.month and d.day, return the result.","return date ( d . year , d . month , d . day )"
7330,"concatenate CheckCommand.help to string 'Deprecated. Use ""check"" command instead. ', substitute it for help.","help = 'Deprecated. Use ""check"" command instead. ' + CheckCommand . help"
7331,"if lookup is false,",if not lookup :
7332,"call the function compile_string with 2 arguments: template_string and origin, substitute the result for self.nodelist.","self . nodelist = compile_string ( template_string , origin )"
7333,"call the function now.replace with microseconds set to integer 0, substitute the result for now.",now = now . replace ( microsecond = 0 )
7334,"for every event and node in self.event_stream,","for event , node in self . event_stream :"
7335,from django.utils import six into default name space.,from django . utils import six
7336,"call the method app_list.setdefault with 2 arguments app_config and an empty list, substitute the result for app_list_value.","app_list_value = app_list . setdefault ( app_config , [ ] )"
7337,return qs.,return qs
7338,if self._fname is None:,if self . _fname is None :
7339,"if it is smaller than the value of dictionary kwargs under the key 'max_age', substitute kwargs value under the key 'max-age' by it. if cc contains item 'private' and kwargs contains item 'public',",if 'private' in cc and 'public' in kwargs :
7340,if number is an instance of int type.,"if isinstance ( number , int ) :"
7341,"if failures is true,",if failures :
7342,"call the method self._cache.set_multi with safe_data, self.get_backend_timeout(timeout) as arguments.","self . _cache . set_multi ( safe_data , self . get_backend_timeout ( timeout ) )"
7343,raise an NotImplementedError with an argument string 'subclasses of SyndicationFeed must provide a write() method'.,raise NotImplementedError ( 'subclasses of SyndicationFeed must provide a write() method' )
7344,append ':' and ipv4_address to result.,result += ':' + ipv4_address
7345,return nothing.,return
7346,"for every app_config in reversed list created out of the return value of the function apps.get_app_configs,",for app_config in reversed ( list ( apps . get_app_configs ( ) ) ) :
7347,raise an exception.,raise
7348,code set to an string 'invalid_choice' and dictionary params with an entry: choice for 'value'. return new_value.,return new_value
7349,"try,",try :
7350,"if template_dirs is true,",if template_dirs :
7351,define the method __next__ with an argument self.,def __next__ ( self ) :
7352,"convert self.option_list into a boolean, return the inverted value.",return not bool ( self . option_list )
7353,call the method parser.delete_first_token.,parser . delete_first_token ( )
7354,"if elt is an instance of Choice or NonCapture classes,","if isinstance ( elt , ( Choice , NonCapture ) ) :"
7355,"open new_path file in 'wb' mode, with file descriptor renamed to new_file,","with open ( new_path , 'wb' ) as new_file :"
7356,"if KeyError exception is caught,",except KeyError :
7357,substitute list with an element block_name for parser.__loaded_blocks.,parser . __loaded_blocks = [ block_name ]
7358,"get 'widgets' attribute from the options object, if it exists substitute it for self.widgets, if not self.widgets is None.","self . widgets = getattr ( options , 'widgets' , None )"
7359,"call the function factory with an argument unpacked dictionary kwargs, substitute the result for result.",result = factory ( ** kwargs )
7360,define the method __iter__ with an argument self.,def __iter__ ( self ) :
7361,from django.utils import six into default name space.,from django . utils import six
7362,"call the method self.create_token with 3 arguments: self.template_string list elements from upto index to start index,","result . append ( self . create_token ( self . template_string [ upto : start ] , ( upto , start ) , False ) )"
7363,"from .registry import register, run_checks, tag_exists and Tags into default name space.","from . registry import register , run_checks , tag_exists , Tags"
7364,"define the method __init__ with arguments self, name, value, base, sysid, pubid and notation_name.","def __init__ ( self , name , value , base , sysid , pubid , notation_name ) :"
7365,"and var_arg, respectively. if constant_arg is true,",if constant_arg :
7366,nodelist_false is an instance of NodeList.,nodelist_false = NodeList ( )
7367,"convert lang_string to lowercase, split by the result string accept_language_re, substitute the result for pieces.",pieces = accept_language_re . split ( lang_string . lower ( ) )
7368,"days is a tuple with 7 elements: strings 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' and 'Sun'.","days = ( 'Mon' , 'Tue' , 'Wed' , 'Thu' , 'Fri' , 'Sat' , 'Sun' )"
7369,raise an TemplateSyntaxError exception with an argument error_msg.,raise TemplateSyntaxError ( error_msg )
7370,__all__ is an list containing string 'SelectDateWidget'.,__all__ = [ 'SelectDateWidget' ]
7371,"if first element of sys.version_info equals integer 3, PY3 is boolean True, otherwise it is boolean False.",PY3 = sys . version_info [ 0 ] == 3
7372,"call the method token.split_contents, substitute the result for bits.",bits = token . split_contents ( )
7373,"if self_closing is true or tagname is contained in html4_singlets,",if self_closing or tagname in html4_singlets :
7374,"try,",try :
7375,return value.,return value
7376,"widgets is a tuple with 2 elements: instance of DateInput class, created with 2 arguments: attrs as attrs and format as date_format,","widgets = ( DateInput ( attrs = attrs , format = date_format ) , TimeInput ( attrs = attrs , format = time_format ) )"
7377,define the method __init__ with 2 arguments: self and format_string.,"def __init__ ( self , format_string ) :"
7378,"call the method parser.parse_args with an argument args set to args, substitute the result for defaults.",defaults = parser . parse_args ( args = args )
7379,"slots is a list with an element, slots.",slots = [ slots ]
7380,call the method self.xml.startElement with argument string 'object' and an empty dictionary.,"self . xml . startElement ( ""object"" , { } )"
7381,"raise an exception of class NotImplementedError, with string 'subclasses of BaseCache must provide a delete() method' as argument.",raise NotImplementedError ( 'subclasses of BaseCache must provide a delete() method' )
7382,return integer 12.,return 12
7383,define the function urlquote_plus with 2 arguments: url and safe set to an empty string.,"def urlquote_plus ( url , safe = '' ) :"
7384,"call the method cursor.execute with string ""UPDATE %s SET value = %%s, expires = %%s WHERE cache_key = %%s"" as argument,","cursor . execute ( ""UPDATE %s SET value = %%s, expires = %%s "" ""WHERE cache_key = %%s"" % table , [ b64encoded , exp , key ] )"
7385,import module calendar.,import calendar
7386,raise an ValidationError exception with an argument errors.,raise ValidationError ( errors )
7387,"if middleware has an attribute 'process_response',","if hasattr ( middleware , 'process_response' ) :"
7388,define the serialize content with an argument self.,def serialize ( self ) :
7389,if settings.USE_X_FORWARDED_HOST is true and 'HTTP_X_FORWARDED_HOST' is contained in self.META.,if settings . USE_X_FORWARDED_HOST and ( 'HTTP_X_FORWARDED_HOST' in self . META ) :
7390,derive the class IfEqualNode from Node base class.,class IfEqualNode ( Node ) :
7391,"call the method self.open, substitute the result for stream_created.",stream_created = self . open ( )
7392,"call the function get_wsgi_application, return the result.",return get_wsgi_application ( )
7393,"if delta is smaller than integer 0,",if delta < 0 :
7394,"if not,",else :
7395,call the os.umask function with argument old_umask.,os . umask ( old_umask )
7396,"if instance is None,",if instance is None :
7397,asvar is None.,asvar = None
7398,"call the method qs.values_list with 2 arguments: string 'pk' and flat set to boolean True, put the results in a list,","data [ f . name ] = list ( qs . values_list ( 'pk' , flat = True ) )"
7399,"evaluate the function smart_text with argument self.name, if exists, or an empty string, if not, return the result.",return smart_text ( self . name or '' )
7400,"if format is not contained in return value of the method serializers.get_public_serializer_formats,",if format not in serializers . get_public_serializer_formats ( ) :
7401,sets the role attribute of the style object to the value of the call to the termcolors.make_style function with dictionary format as an argument.,"setattr ( style , role , termcolors . make_style ( ** format ) )"
7402,"if index is lesser than integer 0,",if index < 0 :
7403,"if not,",else :
7404,return media.,return media
7405,"if self doesnt have an '_body' attribute,","if not hasattr ( self , '_body' ) :"
7406,"choice and i, substitute the result for w. call the function format_html with 3 arguments: self.inner_html, choice_value set to result of the function force_text,","output . append ( format_html ( self . inner_html , choice_value = force_text ( w ) , sub_widgets = '' ) )"
7407,return input_val.,return input_val
7408,"get config dictionary element under 'loggers' key, if it exists substitute it for loggers, if not, loggers is EMPTY_DICT.","loggers = config . get ( 'loggers' , EMPTY_DICT )"
7409,"if help_texts is not None,",if help_texts is not None :
7410,define the method write with 2 arguments: self and s.,"def write ( self , s ) :"
7411,call the method handler.addQuickElement with 2 arguments: string 'rights' and value under the 'feed_copyright' key of the self.feed dictionary.,"handler . addQuickElement ( ""rights"" , self . feed [ 'feed_copyright' ] )"
7412,"call the self.to_python method with an argument value, strip the result of the whitespaces from the sides, substitute the result for value.",value = self . to_python ( value ) . strip ( )
7413,substitute value under the name key of the lib.filters dictionary for value under the name key of the temp_lib.filters dictionary.,temp_lib . filters [ name ] = lib . filters [ name ]
7414,define the function to_language with an argument locale.,def to_language ( locale ) :
7415,return nothing.,return
7416,found is boolean True.,found = True
7417,"try,",try :
7418,"get field.name from the obj, substitute it for related.","related = getattr ( obj , field . name )"
7419,"multiply seconds by count, subtract it from since, divide the result by seconds2, store the floored result in count2.",count2 = ( since - ( seconds * count ) ) // seconds2
7420,"for every e in errors convert e into a string and append it to a string ' * ',",output . append ( '\n' . join ( ' * %s' % e for e in errors ) )
7421,return value.,return value
7422,derive the class DebugLexer from the Lexer base class.,class DebugLexer ( Lexer ) :
7423,"from email.utils import formatdate, getaddresses, formataddr and parseaddr into default name space.","from email . utils import formatdate , getaddresses , formataddr , parseaddr"
7424,substitute value under the number key of the rhs dictionary for number_value.,number_value = rhs [ number ]
7425,"from django.core.exceptions import MiddlewareNotUsed, PermissionDenied and SuspiciousOperation into default name space.","from django . core . exceptions import MiddlewareNotUsed , PermissionDenied , SuspiciousOperation"
7426,"if ending is true and msg doesnt end with ending,",if ending and not msg . endswith ( ending ) :
7427,"try,",try :
7428,"otherwise if o is an instance of decimal.Decimal object,","elif isinstance ( o , decimal . Decimal ) :"
7429,and elements of rfcdate from 12-th to the 25-th index. define the function http_date with an argument epoch_seconds set to None.,def http_date ( epoch_seconds = None ) :
7430,"if truncate_text is true,",if truncate_text :
7431,yield self.,yield self
7432,substitute kwargs for self.kwargs.,self . kwargs = kwargs
7433,"if data is true, substitute list created from elements of data, substitute it for self.keyOrder, otherwise self.keyOrder is an empty list.",self . keyOrder = list ( data ) if data else [ ]
7434,"substitute string "" "" for space.","space = "" """
7435,"set the attribute name from value under the DEFAULT_CACHE_ALIAS key of caches dictionary to value, return it.","return setattr ( caches [ DEFAULT_CACHE_ALIAS ] , name , value )"
7436,do nothing.,pass
7437,"try,",try :
7438,"try,",try :
7439,"call the __call__ method from the base class of the URLValidator class, with an argument url.","super ( URLValidator , self ) . __call__ ( url )"
7440,"get the value under self._pk_field.name key of form._meta.widgets dictionary, if it exists substitute it for widget, if not,","widget = form . _meta . widgets . get ( self . _pk_field . name , HiddenInput )"
7441,"define the function sql_custom with 3 arguments: app_config, style and connection.","def sql_custom ( app_config , style , connection ) :"
7442,"raise an ImproperlyConfigured exception with an argument string ""Error importing template source loader %s - can't pass arguments to","raise ImproperlyConfigured ( ""Error importing template source loader %s - can't pass arguments to function-based loader."" % loader )"
7443,substitute ClearableFileInput for widget.,widget = ClearableFileInput
7444,import module locale.,import locale
7445,substitute value for the value under the key key of self._cache dictionary.,self . _cache [ key ] = value
7446,"all the function fcntl.flock with return value of the _fd(f) function and fcntl.LOCK_UN as arguments, substitute the result for ret.","ret = fcntl . flock ( _fd ( f ) , fcntl . LOCK_UN )"
7447,"if self._encoding is None,",if self . _encoding is None :
7448,define the method clean with an argument self.,def clean ( self ) :
7449,"call the function converter with an argument suffix, substitute the result for value.",value = converter ( suffix )
7450,increment piece by firs element of elt.,piece += elt [ 0 ]
7451,"call the function pgettext_lazy with an argument self.message_context and value, return the result.","return pgettext_lazy ( self . message_context , value )"
7452,raise an MultiPartParserError with an argument string 'multipartparser.exhaust() was passed a non-iterable or stream parameter'.,raise MultiPartParserError ( 'multipartparser.exhaust() was passed a non-iterable or stream parameter' )
7453,"define the method __init__ with 4 arguments: self, name, nodelist, parent set to None.","def __init__ ( self , name , nodelist , parent = None ) :"
7454,"if kwargs is true,",if kwargs :
7455,"if os.name equals string 'nt',",if os . name == 'nt' :
7456,"convert base to lowercase, if it ends with string '.tar',",if base . lower ( ) . endswith ( '.tar' ) :
7457,from subprocess import PIPE and Popen into default name space.,"from subprocess import PIPE , Popen"
7458,"call the function _ with an argument string '(Hidden field %(name)s) %(error)s', where '%(name)s' is replaced with name,","top_errors . extend ( [ _ ( '(Hidden field %(name)s) %(error)s' ) % { 'name' : name , 'error' : force_text ( e ) } for e in bf_errors ] )"
7459,"define the method push with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def push ( self , * args , ** kwargs ) :"
7460,"append name to string 'add_' use it as the name of the attribute to get from object self, call the result as an function,","getattr ( self , 'add_' + name ) ( media_attrs . get ( name , None ) )"
7461,"yield string ""# This is an auto-generated Django model module."" as the result.","yield ""# This is an auto-generated Django model module."""
7462,"assign integer 2 to parts if third element of version equals to zero, otherwise assign it integer 3.",parts = 2 if version [ 2 ] == 0 else 3
7463,"RemovedInDjango19Warning, stacklevel set to integer 2. for field_name every obj in list created from the elements of the return value of the function six.iteritems with an argument attrs.","fields = [ ( field_name , attrs . pop ( field_name ) ) for field_name , obj in list ( six . iteritems ( attrs ) ) if isinstance ( obj , Field ) ]"
7464,define the mehod __lt__ with self and other.,"def __lt__ ( self , other ) :"
7465,"if next_item is true and next_item is an instance of list or tuple type,","if next_item and isinstance ( next_item , ( list , tuple ) ) :"
7466,call the method test_runner_class.add_arguments with an argument parser.,test_runner_class . add_arguments ( parser )
7467,call the sys.stderr.write function with an argument msg.,sys . stderr . write ( msg )
7468,"call the method formfield.queryset.complex_filter with an argument limit_choices_to, substitute the result for formfield.queryset.",formfield . queryset = formfield . queryset . complex_filter ( limit_choices_to )
7469,substitute self.min_value for the value under the 'min' key of the attrs dictionary.,attrs [ 'min' ] = self . min_value
7470,return None.,return None
7471,define the method delete_first_token with an argument self.,def delete_first_token ( self ) :
7472,"call the method self.path with argument name, substitute the result for full_path.",full_path = self . path ( name )
7473,"sub_ul_renderer is an instance of ChoiceFieldRenderer class, created with 4 arguments: name as self.name, value as self.value,","sub_ul_renderer = ChoiceFieldRenderer ( name = self . name , value = self . value , attrs = attrs_plus , choices = choice_label )"
7474,self.to is an empty list.,self . to = [ ]
7475,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
7476,call the function self.tag with 2 arguments: function_name and compile_func.,"self . tag ( function_name , compile_func )"
7477,"if Exception, renamed to e, exception is caught,",except Exception as e :
7478,"convert result of the method self.__iter__ into a list, return its length.",return len ( list ( self . __iter__ ( ) ) )
7479,derive the class _OFFSET_UNION from the Union base class.,class _OFFSET_UNION ( Union ) :
7480,"if p_pattern starts with a string '^',",if p_pattern . startswith ( '^' ) :
7481,derive class Command from the base class AppCommand.,class Command ( AppCommand ) :
7482,and result of the method self.__getstate__. define the method __deepcopy__ with 2 arguments self and memo.,"def __deepcopy__ ( self , memo ) :"
7483,"substitute '%s' in a string "" Branch %s"" with migration.name,","self . stdout . write ( self . style . MIGRATE_LABEL ( "" Branch %s"" % migration . name ) )"
7484,substitute timeout for self.default_timeout.,self . default_timeout = timeout
7485,define the function parse_boundary_stream with arguments stream and max_header_size.,"def parse_boundary_stream ( stream , max_header_size ) :"
7486,"default_error_messages is an dictionary with 2 entries: return value of the function _ called with an argument string,","default_error_messages = { 'invalid' : _ ( 'Enter a list of values.' ) , 'incomplete' : _ ( 'Enter a complete value.' ) , }"
7487,substitute length of list_ for list_length.,list_length = len ( list_ )
7488,"get the value under the 'incomplete' key of the field.error_messages dictionary, append it to errors.",errors . append ( field . error_messages [ 'incomplete' ] )
7489,define the method is_hidden with an argument self.,def is_hidden ( self ) :
7490,"get the value under the 'no_obsolete' key of the options dictionary, substitute it for self.no_obsolete.",self . no_obsolete = options . get ( 'no_obsolete' )
7491,append x converted to an integer to bits.,bits . append ( int ( x ) )
7492,"call the method Field.__init__ with 8 arguments: self, required, widget, label, initial, help_text, unpacked list args,","Field . __init__ ( self , required , widget , label , initial , help_text , * args , ** kwargs )"
7493,"call the method self.as_widget with 3 arguments: instance of a class TextInput, attrs and unpacked dictionary kwargs, return the result.","return self . as_widget ( TextInput ( ) , attrs , ** kwargs )"
7494,"call the function _resolve_name with 3 arguments: name list elements from the level index to the end, package and level,","name = _resolve_name ( name [ level : ] , package , level )"
7495,"use the app_config, style and connection as arguments for the call to the sql_create, sql_custom and sql_indexes functions, append the results respectively, return the result.","return sql_create ( app_config , style , connection ) + sql_custom ( app_config , style , connection ) + sql_indexes ( app_config , style , connection )"
7496,call the method base64.urlsafe_b64decode with sum of s and pad as argument.,return base64 . urlsafe_b64decode ( s + pad )
7497,"get _assertRegex attribute of the self object, call the result with 2 arguments: unpacked list args,","return getattr ( self , _assertRegex ) ( * args , ** kwargs )"
7498,"call the method handler.startElement with 2 arguments: string ""item"" and result of the method self.item_attributes with an argument item.","handler . startElement ( 'item' , self . item_attributes ( item ) )"
7499,decorator decorator.,@ decorator
7500,"get 'clean_%s', where '%s' is replaced with name' attribute of the self object, call the result as an function,","value = getattr ( self , 'clean_%s' % name ) ( )"
7501,"if not,",else :
7502,import module tarfile.,import tarfile
7503,ch is None.,ch = None
7504,"call the __init__ method from the base class of the WSGIRequestHandler class, with 2 arguments: unpacked list args and unpacked dictionary kwargs.","super ( WSGIRequestHandler , self ) . __init__ ( * args , ** kwargs )"
7505,define the method delete with arguments self and name.,"def delete ( self , name ) :"
7506,"call the method to_python with an argument value, from the base class of the IntegerField class, substitute the result for value.","value = super ( IntegerField , self ) . to_python ( value )"
7507,"call the method formats.get_format_lazy with an argument string 'DATETIME_INPUT_FORMATS', substitute the result for input_formats.",input_formats = formats . get_format_lazy ( 'DATETIME_INPUT_FORMATS' )
7508,cc is an empty dictionary.,cc = { }
7509,"format truncate with a dictionary with an element: text for 'truncated_text', return the result.",return truncate % { 'truncated_text' : text }
7510,input_type is a string 'radio'.,input_type = 'radio'
7511,"call the method copy.copy with an argument self, substitute the result for result.",result = copy . copy ( self )
7512,"if not,",else :
7513,"and self.format_string, return the result. derive the class SpacelessNode from Node base class.",class SpacelessNode ( Node ) :
7514,"try,",try :
7515,"call the method self._reverse_with_prefix with 4 arguments: lookup_view, an empty string, unpacked list args and unpacked dictionary kwargs.","return self . _reverse_with_prefix ( lookup_view , '' , * args , ** kwargs )"
7516,"try,",try :
7517,"return an instance of a class WidthRatioNode, created with 4 arguments: result of the method parser.compile_filter,","return WidthRatioNode ( parser . compile_filter ( this_value_expr ) , parser . compile_filter ( max_value_expr ) , parser . compile_filter ( max_width ) , asvar = asvar )"
7518,derive the class NumberAwareString from the resultclass base class.,class NumberAwareString ( resultclass ) :
7519,"if value is false or value is not an instance of list or tuple types,","if not value or isinstance ( value , ( list , tuple ) ) :"
7520,"and third element of the return value of the function sys.exc_info. if inhibit_post_migrate is false,",if not inhibit_post_migrate :
7521,I18N_MODIFIED is integer 2,I18N_MODIFIED = 2
7522,substitute EscapeBytes for EscapeString.,EscapeString = EscapeBytes
7523,"define delete method with self class instance, key and version set to None, as arguments.","def delete ( self , key , version = None ) :"
7524,"if arg is true,",if arg :
7525,"if ImportError exception occurred,",except ImportError :
7526,"try,",try :
7527,"call the __init__ method from the base class of the SimpleUploadedFile class with 7 arguments: BytesIO(content), None, name,","super ( SimpleUploadedFile , self ) . __init__ ( BytesIO ( content ) , None , name , content_type , len ( content ) , None , None )"
7528,call the method self._stream.unget with an argument unused_char.,self . _stream . unget ( unused_char )
7529,return new_class.,return new_class
7530,"string 'Ensure this value has at least %(limit_value)d characters (it has %(show_value)d).' and string 'limit_value', substitute the result for message. code is a string 'min_length'",code = 'min_length'
7531,"call the method cursor.execute with string ""DELETE FROM %s"" as argument, substitute the '%s' with table.",cursor . execute ( 'DELETE FROM %s' % table )
7532,define the method _add_fallback with an argument self.,def _add_fallback ( self ) :
7533,"endless loop,",while 1 :
7534,"if not,",else :
7535,"if option_value is contained in selected_choices,",if option_value in selected_choices :
7536,"convert name to lower case, if it is contained in ADDRESS_HEADERS,s",if name . lower ( ) in ADDRESS_HEADERS :
7537,substitute post for self._post.,self . _post = post
7538,"if not,",else :
7539,from collections import OrderedDict into default name space.,from collections import OrderedDict
7540,"match value string with regex self.CONVERT_PATTERN, substitute the result for m.",m = self . CONVERT_PATTERN . match ( value )
7541,"raise an BadSignature exception with an argument string 'Signature ""%s"" does not match', where '%s' is replaced by sig.","raise BadSignature ( 'Signature ""%s"" does not match' % sig )"
7542,"call the method pattern.resolve with an argument new_path, substitute the result for sub_match.",sub_match = pattern . resolve ( new_path )
7543,"raise an CommandError exception with an argument string ""you must provide %s %s name"", where '%s' is replaced with string 'an',","raise CommandError ( ""you must provide %s %s name"" % ( ""an"" if app_or_project == ""app"" else ""a"" , app_or_project ) )"
7544,import module binascii.,import binascii
7545,"if message-id' is not in header_names,",if 'message-id' not in header_names :
7546,"call the function func with 2 arguments: unpacked list self.__args and unpacked dictionary self.__kw,","return bytes ( func ( * self . __args , ** self . __kw ) )"
7547,"tok is a string '""REGEX""',","tok = '""REGEX""'"
7548,"call the method node.getAttribute with an argument string 'pk', use the result as the argument for the call to the method, Model._meta.pk.to_python with, substitute the result for value under the Model._meta.pk.attname key of the data dictionary.",data [ Model . _meta . pk . attname ] = Model . _meta . pk . to_python ( node . getAttribute ( 'pk' ) )
7549,"if pattern.namespace is true,",if pattern . namespace :
7550,"append string "" The domain name provided is not valid according to RFC 1034/1035."" to msg.","msg += "" The domain name provided is not valid according to RFC 1034/1035."""
7551,"for every ch and escaped in input_iter,","for ch , escaped in input_iter :"
7552,"define the method __init__ with 5 arguments: self, val_expr, max_expr, max_width and asvar set to None.","def __init__ ( self , val_expr , max_expr , max_width , asvar = None ) :"
7553,return decorating_function.,return decorating_function
7554,"convert idx to an integer, substitute it or n.",n = int ( idx )
7555,"get the values under the keys 'app_label' and 'migration_name' of the options dictionary, substitute the results for app_label and migration_name, respectively.","app_label , migration_name = options [ 'app_label' ] , options [ 'migration_name' ]"
7556,"if stream_created is true,",if stream_created :
7557,"for every f in opts.local_fields,",for f in opts . local_fields :
7558,initial is an empty list.,initial = [ ]
7559,code is a string 'max_value',code = 'max_value'
7560,"if ImportError, IndentationError, NameError, SyntaxError, TypeError or AttributeErrorexception is caught,","except ( ImportError , IndentationError , NameError , SyntaxError , TypeError , AttributeError ) :"
7561,"call the function curry with 2 arguments: _proxy_method and method set to bytes.decode, substitute the result for decode.","decode = curry ( _proxy_method , method = bytes . decode )"
7562,split is an empty list.,split = [ ]
7563,"substitute the result for last element of output. if not,",else :
7564,"if not,",else :
7565,"if _urlconfs has an attribute 'value',","if hasattr ( _urlconfs , ""value"" ) :"
7566,"import_module called with an argument parentmod and submod, evaluates to false. raise an ViewDoesNotExist exception with an argument string ""Could not import '%s'. Parent module %s does not exist."",","raise ViewDoesNotExist ( ""Could not import '%s'. Parent module %s does not exist."" % ( lookup_view , mod_name ) )"
7567,"call the method field._has_changed with 2 arguments: return value of the function field.to_python called with an argument initial,","if field . _has_changed ( field . to_python ( initial ) , data ) :"
7568,"use the result as an argument for the call to the function strip_spaces_between_tags, return the result. derive the class TemplateTagNode from Node base class.",class TemplateTagNode ( Node ) :
7569,return Operator.,return Operator
7570,define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
7571,derive the class VerbatimNode from Node base class.,class VerbatimNode ( Node ) :
7572,self._reverse_dict is an empty dictionary.,self . _reverse_dict = { }
7573,input_type is None.,input_type = None
7574,substitute old for self.mod.,self . mod = old
7575,"for every handler in self._upload_handlers,",for handler in self . _upload_handlers :
7576,define the function remove_move with an argument name.,def remove_move ( name ) :
7577,"find first index of occurrence of character '-' in locale, substitute it for p.",p = locale . find ( '_' )
7578,"define the method __init__ with 4 arguments: self, template, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , template , * args , ** kwargs ) :"
7579,"and '%s' is replaced with app_or_project and message, respectively. define the method download with arguments self and url.","def download ( self , url ) :"
7580,"property decorator,",@ property
7581,define the method __init__ with 2 arguments: self and name.,"def __init__ ( self , name ) :"
7582,"define the protected method _cull with self class instance, db, cursor and now as arguments.","def _cull ( self , db , cursor , now ) :"
7583,"substitute boolean_check for self.check_test if check_test is None, otherwise substitute check_test for self.check_test.",self . check_test = boolean_check if check_test is None else check_test
7584,return boolean True.,return True
7585,"use it as an argument for the call to the mark_safe function, return the result. define the method value_from_datadict with 4 arguments: self, data, files and name.","def value_from_datadict ( self , data , files , name ) :"
7586,"if eather of settings.USE_I18N or settings.USE_L10N is True, set is_accept_language_redundant to True.",is_accept_language_redundant = settings . USE_I18N or settings . USE_L10N
7587,"call the method kwarg_re.match with an argument first element of bits, substitute the result for match.",match = kwarg_re . match ( bits [ 0 ] )
7588,"append tuple containing 2 elements: k and v to a list, for every k and v in options, only if k starts with curr,","options = sorted ( ( k , v ) for k , v in options if k . startswith ( curr ) )"
7589,"if message is true,",if message :
7590,"define function smart_bytes with s, encoding set to string 'utf-8', strings_only set to False and errors set to string 'strict', as arguments.","def smart_bytes ( s , encoding = 'utf-8' , strings_only = False , errors = 'strict' ) :"
7591,"if form is contained in forms_to_delete,",if form in forms_to_delete :
7592,"if source is an instance of NonCapture class,","if isinstance ( source , NonCapture ) :"
7593,"if app_labels is false,",if not app_labels :
7594,substitute cls.__text_cast for cls.__str__.,cls . __str__ = cls . __text_cast
7595,close file_ file descriptor.,file_ . close ( )
7596,"call the method threading.Semaphore with an argument integer 0, substitute the result for self.can_read.",self . can_read = threading . Semaphore ( 0 )
7597,substitute chr for unichr.,unichr = chr
7598,return boolean True.,return True
7599,filters is an empty list.,filters = [ ]
7600,"and truncate set to string ' ...', return the result. decorator function register.filter with an argument is_safe set to boolean True.",@ register . filter ( is_safe = True )
7601,if t is not None,if t is not None :
7602,substitute jython_reloader for reloader.,reloader = jython_reloader
7603,"call the function ugettext with an argument string ""Please correct the duplicate data for %(field)s."",","return ugettext ( ""Please correct the duplicate data for %(field)s."" ) % { ""field"" : unique_check [ 0 ] , }"
7604,"for every model in app_models,",for model in app_models :
7605,"call the method token.split_contents, substitute the result for bits.",bits = token . split_contents ( )
7606,substitute file_name for self.file_name.,self . file_name = file_name
7607,define the function get_template with 2: template_name and dirs set to None.,"def get_template ( template_name , dirs = None ) :"
7608,"if limit_choices_to is callable object,",if callable ( limit_choices_to ) :
7609,return boolean False.,return False
7610,"call the function new_method_proxy with an argument str, substitute the result for __str__.",__str__ = new_method_proxy ( str )
7611,"call the method df.format with an argument format_string, return the result.",return df . format ( format_string )
7612,"if invalid_var_format_string is true,",if invalid_var_format_string :
7613,call the function add_to_builtins with an argument string 'django.template.defaulttags'.,add_to_builtins ( 'django.template.defaulttags' )
7614,derive class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
7615,"if TemplateSyntaxError, replaced with e, exception is caught,",except TemplateSyntaxError as e :
7616,"if path is None,",if path is None :
7617,define the method __init__ with 2 arguments: self and filter_expression.,"def __init__ ( self , filter_expression ) :"
7618,"deifne the method __init__ with 5 arguments: self, class_name, old_method_name, new_method_name and deprecation_warning.","def __init__ ( self , class_name , old_method_name , new_method_name , deprecation_warning ) :"
7619,define the method _cull with argument self.,def _cull ( self ) :
7620,substitute _iteritems for iteritems.,iteritems = _iteritems
7621,"evaluate the function BytesIO with argument chunk, substitute it for chunk_buffer.",chunk_buffer = BytesIO ( chunk )
7622,define the method __call__ with 2 arguments: self and f.,"def __call__ ( self , f ) :"
7623,"if self.addr is false,",if not self . addr :
7624,and connection as the result of the method self.connection. define the connection with an argument self.,def connection ( self ) :
7625,"call the method params.get with 2 arguments, string 'KEY_FUNCTION' and None, use the result as the argument for the call to the function get_key_func, substitute the result for the self.key_func.","self . key_func = get_key_func ( params . get ( 'KEY_FUNCTION' , None ) )"
7626,define the method __init__ with 2 arguments self and dt.,"def __init__ ( self , dt ) :"
7627,"if not,",else :
7628,"define the __init__ method with 3 arguments: self, unpacked list args and unpacked dictionary **kwargs.","def __init__ ( self , * args , ** kwargs ) :"
7629,"if status is not equal to STATUS_OK,",if status != STATUS_OK :
7630,"f _serializers is false,",if not _serializers :
7631,"define the function find_command with 3 arguments: cmd, path set to None and pathext set to None.","def find_command ( cmd , path = None , pathext = None ) :"
7632,derive the class Atom1Feed from the SyndicationFeed base class.,class Atom1Feed ( SyndicationFeed ) :
7633,call the method __init__ form the base class of the Command class.,"super ( Command , self ) . __init__ ( )"
7634,from django.conf import settings into default name space.,from django . conf import settings
7635,"while end is greater than integer 0 and return value of the s.count called with 3 arguments: an empty string, integer 0 and end,","while end > 0 and s . count ( b'""' , 0 , end ) % 2 :"
7636,"called with an argument value under the 'updateddate' key of the item dictionary. if value under the 'author_name' key of the item dictionary is not None,",if item [ 'author_name' ] is not None :
7637,"call the method __init__ from the base class of the class RendererMixin, with 2 arguments: unpacked list args,","super ( RendererMixin , self ) . __init__ ( * args , ** kwargs )"
7638,"help is an string ""Creates the tables needed to use the SQL cache backend."".","help = ""Creates the tables needed to use the SQL cache backend."""
7639,"if value is an instance of datetime.time,","if isinstance ( value , datetime . time ) :"
7640,"call the method self.__cast, if the result is lesser than other, return boolean True, otherwise return boolean False.",return self . __cast ( ) < other
7641,define the function int_to_base36 with an argument i.,def int_to_base36 ( i ) :
7642,"if print_ is None,",if print_ is None :
7643,raise an exception.,raise
7644,call the method self.indent with argument integer 2.,self . indent ( 2 )
7645,define the __init__ method with argument self.,def __init__ ( self ) :
7646,call the function sys.exit with argument exit_code.,sys . exit ( exit_code )
7647,errors is an empty list.,errors = [ ]
7648,"call the function force_text with an argument output, substitute the result for output.",output = force_text ( output )
7649,self.GET is an instance of QueryDict class created with an argument mutable set to boolean True.,self . GET = QueryDict ( mutable = True )
7650,"if KeyError exception is caught,",except KeyError :
7651,"call the method token_string.count with an argument '\n', append the result to self.lineno.",self . lineno += token_string . count ( '\n' )
7652,"substitute setting and nodelist for self.setting and self.nodelist, respectively.","self . setting , self . nodelist = setting , nodelist"
7653,"call the function timedelta with an argument seconds as negative time.timezone, return the result.",return timedelta ( seconds = - time . timezone )
7654,"append string '-_' to the BASE62_ALPHABET, substitute it for BASE64_ALPHABET.",BASE64_ALPHABET = BASE62_ALPHABET + '-_'
7655,call the method cls.__dict__.copy substitute the result for orig_vars.,orig_vars = cls . __dict__ . copy ( )
7656,"slice the rawdata to obtain substring from i-th to j-th element, use it as the argument for the method call to the self.handle_data.",self . handle_data ( rawdata [ i : j ] )
7657,from django.apps import apps into default name space.,from django . apps import apps
7658,"if not,",else :
7659,"remove element under '_data' key of obj_dict dictionary, if it exists substitute it for data, if not data is an empty list.","data = obj_dict . pop ( '_data' , { } )"
7660,"if secret is None,",if secret is None :
7661,call the method __init__ from the base class of the class SortedDict.,"super ( SortedDict , self ) . __init__ ( )"
7662,return self.,return self
7663,mail.outbox is an empty list.,mail . outbox = [ ]
7664,"join elements of name into a string, substitute it for param.",param = '' . join ( name )
7665,"return an empty string,",return ''
7666,define the method create_var with 2 arguments: self and value.,"def create_var ( self , value ) :"
7667,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
7668,"define the method render with 4 arguments: self, name, value and attrs set to None.","def render ( self , name , value , attrs = None ) :"
7669,"call the datetime.datetime.utcfromtimestamp with timestamp converted to an integer as argument, substitute result for timestamp.",timestamp = datetime . datetime . utcfromtimestamp ( int ( timestamp ) )
7670,"where '%s' is replaced with migration_name and app_label. if KeyError exception is caught,",except KeyError :
7671,"call the method parser.expression with an argument bp, substitute the result for self.first.",self . first = parser . expression ( bp )
7672,define the method __getitem__ with 2 arguments: self and key.,"def __getitem__ ( self , key ) :"
7673,value under the resultclass key of the cls.__dispatch dictionary is an empty dictionary.,cls . __dispatch [ resultclass ] = { }
7674,"get 'value' attribute of the _active object, if it exists substitute it for t, if not t is None.","t = getattr ( _active , ""value"" , None )"
7675,from itertools import groupby and cycle as itertools_cycle into default name space.,"from itertools import groupby , cycle as itertools_cycle"
7676,derive the LabelCommand class from the BaseCommand base class.,class LabelCommand ( BaseCommand ) :
7677,"if obj_pk is not None,",if obj_pk is not None :
7678,"if attachment is an instance of MIMEBase,","if isinstance ( attachment , MIMEBase ) :"
7679,"join statements into a string, separated by newlines, return it.",return '\n' . join ( statements )
7680,substitute DNS_NAME for idhost.,idhost = DNS_NAME
7681,"call the method sys.stderr.write with an argument string ""fork #1 failed: (%d) %s\n"", formated with e.errno and e.strerror.","sys . stderr . write ( ""fork #1 failed: (%d) %s\n"" % ( e . errno , e . strerror ) )"
7682,"call the method self.build_attrs with 3 arguments: attrs, type set to self.input_type, name set to name,","final_attrs = self . build_attrs ( attrs , type = self . input_type , name = name )"
7683,"call the function get_random_string with 2 arguments: integer 50 and chars, substitute it for value under the 'secret_key' of the options dictionary.","options [ 'secret_key' ] = get_random_string ( 50 , chars )"
7684,"otherwise if base_url does not ends with '/' character,",elif not base_url . endswith ( '/' ) :
7685,define the function wordwrap with 2 arguments value and arg.,"def wordwrap ( value , arg ) :"
7686,"call the method self.check,",self . check ( )
7687,"from django.utils.translation import TranslatorCommentWarning, trim_whitespace and LANGUAGE_SESSION_KEY into default name space.","from django . utils . translation import TranslatorCommentWarning , trim_whitespace , LANGUAGE_SESSION_KEY"
7688,"define the __init__ method with arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
7689,"define the method __init__ with 6 arguments: self, regex, urlconf_name, default_kwargs set to None, app_name set to None and namespace set to None.","def __init__ ( self , regex , urlconf_name , default_kwargs = None , app_name = None , namespace = None ) :"
7690,"raise an MultiPartParserError with an argument string 'Invalid Content-Type: %s', where '%s' is replaced with content_type.",raise MultiPartParserError ( 'Invalid Content-Type: %s' % content_type )
7691,value under the 'debug' key of the context_extras dictionary is boolean True.,context_extras [ 'debug' ] = True
7692,"append flup_module to string ""Can't import flup."", print it to the standard output.","print ( ""Can't import flup."" + flup_module )"
7693,decorator cached_property.,@ cached_property
7694,"return a tuple with 3 elements: copyreg._reconstructor, tuple with 3 elements: self.__class__, object and None,","return ( copyreg . _reconstructor , ( self . __class__ , object , None ) , self . __getstate__ ( ) )"
7695,outdict is an empty dictionary.,outdict = { }
7696,"define the method extend_nodelist with 4 arguments: self, nodelist, node and token.","def extend_nodelist ( self , nodelist , node , token ) :"
7697,call the method update_watch.,update_watch ( )
7698,"and include_auto_created set to boolean True, call the method connection.creation.sql_indexes_for_model with arguments model and style, extend output with the result.","output . extend ( connection . creation . sql_indexes_for_model ( model , style ) )"
7699,"if value is an instance of datetime.date class,","if isinstance ( value , datetime . date ) :"
7700,"define the method load_template with 3 arguments: self, template_name and template_dirs set to None.","def load_template ( self , template_name , template_dirs = None ) :"
7701,"call the method self._populate,",self . _populate ( )
7702,self._app_dict is an empty dictionary.,self . _app_dict = { }
7703,"convert_charrefs set to convert_charrefs and dictionary **kwargs as the arguments. if not,",else :
7704,template_source_loaders is None.,template_source_loaders = None
7705,"call the method self.__cast, return the hash value of the result.",return hash ( self . __cast ( ) )
7706,call the method f.save_form_data with 2 arguments: instance and value under the f.name key of cleaned_data dictionary.,"f . save_form_data ( instance , cleaned_data [ f . name ] )"
7707,call the function walk_to_end with 2 arguments: ch and pattern_iter.,"walk_to_end ( ch , pattern_iter )"
7708,"call the method self.attrs.copy, substitute the result for attrs_plus.",attrs_plus = self . attrs . copy ( )
7709,"if name is callable object,",if callable ( name ) :
7710,"unpacked list field_value as an argument, substitute the result for obj. get field.rel.field_name attribute of the object obj, substitute it for value.","value = getattr ( obj , field . rel . field_name )"
7711,"if block_name is contained in parser.__loaded_blocks,",if block_name in parser . __loaded_blocks :
7712,return obj.,return obj
7713,"raise an ValidationError with 3 arguments: value under the 'required' key of the self.error_messages dictionary,","raise ValidationError ( self . error_messages [ 'required' ] , code = 'required' )"
7714,"call the method other_dict.lists, for every key and value_list in result,","for key , value_list in other_dict . lists ( ) :"
7715,"define handle_field method with self, obj and field arguments.","def handle_field ( self , obj , field ) :"
7716,"extract the value under the key 'database' from the options dictionary, use the value for indexing connections list, substitute the result for connection.",connection = connections [ options [ 'database' ] ]
7717,define the method __ne__ with 2 arguments: self and other.,"def __eq__ ( self , other ) :"
7718,"call the method self.recipients, if it evaluates to false,",if not self . recipients ( ) :
7719,derive the class FileBasedCache from BaseCache base class.,class FileBasedCache ( BaseCache ) :
7720,"if parent has an attribute 'render',","if hasattr ( parent , 'render' ) :"
7721,"call the style.NOTICE method with an argument string ""[%s]"", where '%s' is replaced with app, append the result to usage.","usage . append ( style . NOTICE ( ""[%s]"" % app ) )"
7722,"if block is None,",if block is None :
7723,"call the method self.source_error with 2 arguments: token.source and msg, return the result.","return self . source_error ( token . source , msg )"
7724,"define the method __init__ with 4 arguments: self, query_string is None, mutable is boolean False and encoding set to None.","def __init__ ( self , query_string = None , mutable = False , encoding = None ) :"
7725,"call the method __init__ from the base class of the class MultipleHiddenInput, called with an argument attrs.","super ( MultipleHiddenInput , self ) . __init__ ( attrs )"
7726,"call the function transaction.atomic, with using set to db.alias as the argument, return value is a function which is called,",view = transaction . atomic ( using = db . alias ) ( view )
7727,"if supported_platform is False or is_a_tty is False,",if not supported_platform or not is_a_tty :
7728,"if length of app_labels equals integer 0,",if len ( app_labels ) == 0 :
7729,define the method _update_unget_history with arguments self and num_bytes.,"def _update_unget_history ( self , num_bytes ) :"
7730,valid is boolean False.,valid = False
7731,"evaluate the function backend_cls with location and params as arguments, return the result.","return backend_cls ( location , params )"
7732,"property decorator,",@ property
7733,import module sys.,import sys
7734,import module io.,import io
7735,"if not,",else :
7736,call the method handler.addQuickElement with 2 arguments: string 'title' and value under the 'title' key of the self.feed dictionary.,"handler . addQuickElement ( ""title"" , self . feed [ 'title' ] )"
7737,default_validators is an empty list.,default_validators = [ ]
7738,"and help is a string 'Specifies file to which the output is written.'. define the method handle with arguments self, unpacked list app_labels and unpacked dictionary options.","def handle ( self , * app_labels , ** options ) :"
7739,return supported.,return supported
7740,"call the function _add_doc with 2 arguments: u and string """"""Text literal"""""".","_add_doc ( u , """"""Text literal"""""" )"
7741,do nothing.,pass
7742,"for every filename is filelist,",for filename in filelist :
7743,"call the function blankout with 2 arguments: p and 'F', write the result to out.","out . write ( blankout ( p , 'F' ) )"
7744,import module time.,import time
7745,"call the itertools.count function with argument integer 1, substitute the result for count.",count = itertools . count ( 1 )
7746,"if not,",else :
7747,derive the class Command from the BaseCommand class.,class Command ( BaseCommand ) :
7748,"if KeyError exception is caught,",except KeyError :
7749,"if third element of bits is not equal to a string 'by',",if bits [ 2 ] != 'by' :
7750,call the method serializers.get_serializer with an argument format.,serializers . get_serializer ( format )
7751,substitute arg converted into an integer for length.,length = int ( arg )
7752,"if not,",else :
7753,"call the function warnings.warn with 2 arguments string ""IPAddressField has been deprecated. Use GenericIPAddressField instead."",","warnings . warn ( ""IPAddressField has been deprecated. Use GenericIPAddressField instead."" , RemovedInDjango19Warning )"
7754,return boolean False.,return False
7755,convert role to uppercase.,role = role . upper ( )
7756,"if integers 3 and 2 in a tuple are smaller than the sys.version_info and sys.version_info is smaller than integers 3,4 and 4 in a tuple, respectively,","if ( 3 , 2 ) < sys . version_info < ( 3 , 3 , 4 ) :"
7757,"call the function get_current_timezone, substitute the result for timezone.",timezone = get_current_timezone ( )
7758,"queryset is an property object of this class, with _get_queryset getter and _set_queryset setter functions.","queryset = property ( _get_queryset , _set_queryset )"
7759,"if not,",else :
7760,"if unused_char is false,",if not unused_char :
7761,return default.,return default
7762,return self._errors.,return self . _errors
7763,substitute chunk_size for self.chunk_size.,self . chunk_size = chunk_size
7764,"if current_app and is true and current_app is contained in app_list,",if current_app and current_app in app_list :
7765,"call the method self.get_resolved_arguments with context as an argument, substitute the result for resolved_args and resolved_kwargs.","resolved_args , resolved_kwargs = self . get_resolved_arguments ( context )"
7766,"assign the value of the dictionary color_settings under the key role to format, if key doesnt exist assign the empty dictionary.","format = color_settings . get ( role , { } )"
7767,import module datetime.,import datetime
7768,"try,",try :
7769,return the media field of the first element of self.forms.,return self . forms [ 0 ] . media
7770,"define the method __new__ with 3 arguments: cls, unpacked list args and unpacked dictionary kwargs.","def __new__ ( cls , * args , ** kwargs ) :"
7771,derive the class AppRegistryNotReady from the Exception base class.,class AppRegistryNotReady ( Exception ) :
7772,"with unpacked list field_value as an argument, substitute the field pk of the result for obj_pk. if not,",else :
7773,"for every k and v in result of the call to the method type_.__dict__.items,","for ( k , v ) in type_ . __dict__ . items ( ) :"
7774,"if self.use_ssl and self.use_tls are boolean True,",if self . use_ssl and self . use_tls :
7775,"if callback doesnt have '__name__' attribute,","if not hasattr ( callback , '__name__' ) :"
7776,"while bits is true,",while bits :
7777,substitute exclude for value under the 'exclude' key of attrs dictionary.,attrs [ 'exclude' ] = exclude
7778,"return tuple containing 3 elements: RAW, an empty dictionary and stream.","return ( RAW , { } , stream )"
7779,"if initial is not None,",if initial is not None :
7780,"for every bit in bits,",for bit in bits :
7781,"use the result as an argument for the call to the function datetime.fromtimestamp, return the result. define the method created_time with arguments self and name.","def created_time ( self , name ) :"
7782,"call the method self.form with unpacked dictionary defaults as an argument, substitute it for form.",form = self . form ( ** defaults )
7783,"decorator deconstructible,",@ deconstructible
7784,_upload_handlers is an empty list.,_upload_handlers = [ ]
7785,define the function get_unbound_function with an argument unbound.,def get_unbound_function ( unbound ) :
7786,"or opts.auto_created is True and return value of converter function with opts.auto_created._meta.db_table is contained in tables, invert the evaluated expression and return it. manifest is OrderDict class instance, created with tuple of two elements, app_name and list of elements of model_list for which model_installed function returned true, for every app_name and model_list in all_modules.","manifest = OrderedDict ( ( app_name , list ( filter ( model_installed , model_list ) ) ) for app_name , model_list in all_models )"
7787,define the method __repr__ with an argument self.,def __repr__ ( self ) :
7788,"root is an list with 4 elements: root, root, None and None.","root [ : ] = [ root , root , None , None ]"
7789,"if not,",else :
7790,do nothing.,pass
7791,break from the loop execution,break
7792,if self._cull_frequency equals to integer 0.,if self . _cull_frequency == 0 :
7793,"if LookupError exception is caught,",except LookupError :
7794,"if lengths of initial and data are equal,",if len ( initial ) != len ( data ) :
7795,define method _get_width with self class instance as the argument.,def _get_width ( self ) :
7796,"if ValueError or self.queryset.model.DoesNotExist exception is caught,","except ( ValueError , self . queryset . model . DoesNotExist ) :"
7797,"call avoid_wrapping function with name2 modulus count2 as argument, call the ugettext with ', ' as argument, add previous 2 results, increment variable result by it.","result += ugettext ( ', ' ) + avoid_wrapping ( name2 % count2 )"
7798,return a string '%02d' formated with the result of the function self.g.,return '%02d' % self . g ( )
7799,define the method write with 2 arguments: self and content.,"def write ( self , content ) :"
7800,"if call to the function module_has_submodule with 2 arguments: app_config.module and module_to_search evaluates to true,","if module_has_submodule ( app_config . module , module_to_search ) :"
7801,convert first element of answer to lowercase and substitute it for answer.,answer = answer [ 0 ] . lower ( )
7802,derive the class ContextPopException from the Exception base class.,class ContextPopException ( Exception ) :
7803,substitute the return value of the smart_text function with an argument obj_pk for the value under the 'pk' key of the attrs dictionary.,attrs [ 'pk' ] = smart_text ( obj_pk )
7804,"append list containing 4 elements: 'CVS', '.*', '*~' and '*.pyc', to ignore_patterns.","ignore_patterns += [ 'CVS' , '.*' , '*~' , '*.pyc' ]"
7805,"otherwise if, first element of message_context is equal to ""'"",","elif message_context [ 0 ] == ""'"" :"
7806,"evaluate method self.has_key with key and version as arguments, if the result is true,","if self . has_key ( key , version ) :"
7807,"join prefix and path into an url, return it.","return urljoin ( prefix , path )"
7808,"if not, self.reason_phrase is a string 'UNKNOWN STATUS CODE'. substitute content_type for value under the 'Content-Type' key of the self dictionary.",self [ 'Content-Type' ] = content_type
7809,substitute template for self.template.,self . template = template
7810,import module os.,import os
7811,return resulting list. define the method keys with an argument self.,def keys ( self ) :
7812,"define the method add with 5 arguments, self class instance, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def add ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
7813,self.POST is an instance of QueryDict class created with an argument mutable set to boolean True.,self . POST = QueryDict ( mutable = True )
7814,"if content_length is lesser than integer 0,",if content_length < 0 :
7815,"if self.data.hour is greater than integer 11,",if self . data . hour > 11 :
7816,self.lineno is integer 1.,self . lineno = 1
7817,"if p is greater or equal to integer 0,",if p >= 0 :
7818,"if extra_classes is not empty put its elements into a set, substitute it for extra_classes, if not extra_classes is an empty set.",extra_classes = set ( extra_classes or [ ] )
7819,"call the method handler.addQuickElement with 3 arguments: string 'link', an empty string and a dictionary with 2 entries:","handler . addQuickElement ( ""link"" , """" , { ""rel"" : ""alternate"" , ""href"" : self . feed [ 'link' ] } )"
7820,"split the string cc_delim_re with value under the key 'Vary' of response dictionary as delimiter, substitute result for vary_headers.",vary_headers = cc_delim_re . split ( response [ 'Vary' ] )
7821,if statue is not equal to STATUS_OK.,if status != STATUS_OK :
7822,"join management_dir and string 'commands' into a file path name, substitute it for command_dir.","command_dir = os . path . join ( management_dir , 'commands' )"
7823,substitute cached_loaders for self._cached_loaders.,self . _cached_loaders = cached_loaders
7824,"raise an TypeError exception with an argument string ""Variable must be a string or number, got %s"", replace '%s' with type of var.","raise TypeError ( ""Variable must be a string or number, got %s"" % type ( var ) )"
7825,remove the first element from the self.context.,self . context . pop ( )
7826,"define the method __init__ with 4 arguments: self, redirect_to, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , redirect_to , * args , ** kwargs ) :"
7827,"use_natural_foreign_keys set to use_natural_foreign_keys, use_natural_primary_keys set to use_natural_primary_keys, and stream set to stream, if the stream is true, otherwise stream set to self.stdout. finally perform,",finally :
7828,"if not,",else :
7829,call the method self.validate_key with argument key.,self . validate_key ( key )
7830,return self.name.,return self . name
7831,"if new_name ends with a string '_',",if new_name . endswith ( '_' ) :
7832,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
7833,return WRAPPER_ASSIGNMENTS.,return WRAPPER_ASSIGNMENTS
7834,derive class CheckMessage from object base class.,class CheckMessage ( object ) :
7835,delete dictionary item 'private' from cc.,del cc [ 'private' ]
7836,from django.utils.deconstruct import deconstructible into default name space.,from django . utils . deconstruct import deconstructible
7837,"if value under the 'umask' key of options dictionary is true,",if options [ 'umask' ] :
7838,"if errors_on_separate_row and bf_errors are both true,",if errors_on_separate_row and bf_errors :
7839,"if settings.DEBUG is true,",if settings . DEBUG :
7840,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
7841,"fork a child process, if the result equals integer 0,",if os . fork ( ) > 0 :
7842,"'\\u0027' for integer representation of string '\', '\\u0022' for integer representation of string '""', '\\u003E' for integer representation of string '>', '\\u003C' for integer representation of string '<', '\\u0026' for integer representation of string '%', '\\u003D' for integer representation of string '=', '\\u002D' for integer representation of string '-', '\\u003B' for integer representation of string ';', '\\u2028' for integer representation of string '\u2028' and '\\u2029' for integer representation of string '\u2029'. for eery z in range of integers from 0 to 31, update _js_escapes dictionary with '\\u%04X' formated with z,","_js_escapes . update ( ( ord ( '%c' % z ) , '\\u%04X' % z ) for z in range ( 32 ) )"
7843,"call the function _ with an argument string 'midnight', return the result.",return _ ( 'midnight' )
7844,"define the method get with 4 arguments: self, key, default set to None and version set to None.","def get ( self , key , default = None , version = None ) :"
7845,call the method context.update with an argument unpacked_vars.,context . update ( unpacked_vars )
7846,an empty string for 'clear_template' and self.clear_checkbox_label for 'clear_checkbox_label'. template is a string '%(input)s'.,template = '%(input)s'
7847,"get the element of chunks at the (i+1)-the index, assign it to the seconds2 and name2, respectively.","seconds2 , name2 = chunks [ i + 1 ]"
7848,append a tuple with 2 elements: None and nodelist to conditions_nodelists.,"conditions_nodelists . append ( ( None , nodelist ) )"
7849,"if six.PY2 is true,",if six . PY2 :
7850,"if not,",else :
7851,"match regex datetime_re with value, substitute the result for match.",match = datetime_re . match ( value )
7852,"split extra_classes into words, by whitespaces, substitute the result for extra_classes.",extra_classes = extra_classes . split ( )
7853,"call the function datetime_safe.new_datetime with an argument date, on the result call the method strftime with an argument,","d = ',%s' % datetime_safe . new_datetime ( date ) . strftime ( '%Y-%m-%d' )"
7854,raise an exception.,raise
7855,set value under the 'timeout' key of the connection_params to self.timeout.,connection_params [ 'timeout' ] = self . timeout
7856,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
7857,substitute obj for self.object.,self . object = obj
7858,"define the method appendlist with 3 arguments: self, key and value.","def appendlist ( self , key , value ) :"
7859,"call the method self.next_token, substitute the result for self.current_token.",self . current_token = self . next_token ( )
7860,return s.,return s
7861,import module posixpath.,import posixpath
7862,"if string 'trimmed' is contained in result of the method t.split_contents, trimmed is boolean True, otherwise is boolean False.",trimmed = 'trimmed' in t . split_contents ( )
7863,"if not, substitute self.field.initial for data. if data is an callable object,",if callable ( data ) :
7864,from threading import local into default name space.,from threading import local
7865,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
7866,"if UnicodeDecodeError exception is caught,",except UnicodeDecodeError :
7867,ignored is an empty list.,ignored = [ ]
7868,"if row_data is contained in seen_data,",if row_data in seen_data :
7869,"call the function io.open with 3 arguments: potfile, string 'r' and encoding set to string 'utf-8' as arguments,","with io . open ( potfile , 'r' , encoding = 'utf-8' ) as fp :"
7870,"get absolute directory path of dir, substitute it for self._dir.",self . _dir = os . path . abspath ( dir )
7871,substitute Paginator for QuerySetPaginator.,QuerySetPaginator = Paginator
7872,"if self._cached_loaders is false,",if not self . _cached_loaders :
7873,"try,",try :
7874,"call the method autoreload.main with 3 arguments: self.inner_run, None and options.","autoreload . main ( self . inner_run , None , options )"
7875,"if self.cmd has an attribute 'missing_args_message' and next statement is not true: args is true or any arg doesnt start with '-' for arg in args,","if ( hasattr ( self . cmd , 'missing_args_message' ) and not ( args or any ( [ not arg . startswith ( '-' ) for arg in args ] ) ) ) :"
7876,define the function capfirst with an argument value.,def capfirst ( value ) :
7877,break from the loop execution.,break
7878,"if func is None,",if func is None :
7879,"if level is an instance of int type,","if isinstance ( level , int ) :"
7880,"append string 'Form' to model.__name__, substitute the result for class_name.",class_name = model . __name__ + str ( 'Form' )
7881,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
7882,return self._non_form_errors.,return self . _non_form_errors
7883,"try,",try :
7884,"define the method execute with an argument self,",def execute ( self ) :
7885,"for every i in sequence of integers from 0 to result of the method self.total_form_count, call the method self._construct_form,",forms = [ self . _construct_form ( i ) for i in xrange ( self . total_form_count ( ) ) ]
7886,define the method next with an argument self.,def next ( self ) :
7887,"call the function popen_wrapper with argument args, assign the result to msgs, errors and status.","msgs , errors , status = popen_wrapper ( args )"
7888,"while i is lesser than length of subject and i-th element of subject is an empty space or tab character,","while i < len ( subject ) and subject [ i ] in ( ' ' , '\t' ) :"
7889,"call the method comment_re.sub with an arguments: raw string '\1' and line, strip the whitespaces surrounding the result, return it.","cleaned_line = comment_re . sub ( r""\1"" , line ) . strip ( )"
7890,substitute self for value.configurator.,value . configurator = self
7891,substitute SelectMultiple for widget.,widget = SelectMultiple
7892,"if not,",else :
7893,call the method handler.addQuickElement with 2 arguments: string 'email' and value under the 'author_email' key of the self.feed dictionary.,"handler . addQuickElement ( ""email"" , self . feed [ 'author_email' ] )"
7894,"property decorator,",@ property
7895,"call the cursor method on the value under the db key of connections dictionary, preform following with return value named cursor,",with connections [ db ] . cursor ( ) as cursor :
7896,call the cursor.execute method with statement as argument.,cursor . execute ( statement )
7897,"call the function parse_bits with 8 arguments: parser, bits, params, varargs, varkw, defaults, takes_context and function_name,","args , kwargs = parse_bits ( parser , bits , params , varargs , varkw , defaults , takes_context , function_name )"
7898,"join to_path and name into a valid system path, substitute the result for filename.","filename = os . path . join ( to_path , name )"
7899,"call the method self.timezone.utcoffset with an argument self.data, substitute the result for offset.",offset = self . timezone . utcoffset ( self . data )
7900,"call the method self._isdst with an argument dt, if it evaluates to true,",if self . _isdst ( dt ) :
7901,substitute class_name for self.class_name.,self . class_name = class_name
7902,"if self.verbosity is greater than integer 0,",if self . verbosity > 0 :
7903,"for every arg in s, evaluate the function force_bytes for the arguments arg, encoding, strings_only and errors,","return b' ' . join ( [ force_bytes ( arg , encoding , strings_only , errors ) for arg in s ] )"
7904,"if KeyError, renamed to key, exception is caught,",except KeyError as key :
7905,define the method compress with arguments self and data_list.,"def compress ( self , data_list ) :"
7906,FILE_INPUT_CONTRADICTION is an instance of object class.,FILE_INPUT_CONTRADICTION = object ( )
7907,"call the function copy with an argument self.render_context, substitute the result for duplicate.render_context.",duplicate . render_context = copy ( self . render_context )
7908,"parent is a tuple with 1 element, object.","parent = ( object , )"
7909,append key to self.keyOrder dictionary.,self . keyOrder . append ( key )
7910,"get config dictionary element under 'root' key, if it exists substitute it for root, if not, root is None.","root = config . get ( 'root' , None )"
7911,from django.utils.module_loading import import_string into default name space.,from django . utils . module_loading import import_string
7912,raise an ValueError exception with an argument string 'Unable to configure formatter %r: %s' formated with name and e.,"raise ValueError ( 'Unable to configure ' 'formatter %r: %s' % ( name , e ) )"
7913,in the resulting string replace all occurrences of ' ' with '_' and append it to the end of cache_key. return cache_key.,return cache_key
7914,increment Field.creation_counter by one.,Field . creation_counter += 1
7915,property decorator.,@ property
7916,"call the self.style.HTTP_SUCCESS with an argument msg, substitute it for msg.",msg = self . style . HTTP_SUCCESS ( msg )
7917,define the function compress_string with an argument s.,def compress_string ( s ) :
7918,substitute self.var for obj.,obj = self . var
7919,define the method usage with 2 argument: self and subcommand.,"def usage ( self , subcommand ) :"
7920,"call the method self.next_token, substitute the result for token.",token = self . next_token ( )
7921,"call the method clean with an argument value from the base class of the class TypedChoiceField, substitute the result for value.","value = super ( TypedChoiceField , self ) . clean ( value )"
7922,"for every choice in value,",for choice in value :
7923,"if self.fail_silently is boolean False,",if not self . fail_silently :
7924,"raise an KeyError with an argument string 'Your dictionary lacks key \'%s\'. Please provide it, because it is required to '","raise KeyError ( 'Your dictionary lacks key \'%s\'. ' 'Please provide it, because it is required to ' 'determine whether string is singular or plural.' % number )"
7925,"define initialization method __init__ with self class instance, unpacked list args, unpacked dictionary kwargs as arguments.","def __init__ ( self , * args , ** kwargs ) :"
7926,"if os.name equals to 'nt',",if os . name == 'nt' :
7927,import module copy.,import copy
7928,"if chunks is false,",if not chunks :
7929,substitute i for self.pointer.,self . pointer = i
7930,"if self._delegate_bytes is true,",if self . _delegate_bytes :
7931,"call the function force_text with an argument v, for every v in selected_choices, add results to a set,",selected_choices = set ( force_text ( v ) for v in selected_choices )
7932,"if self.first is true,",if self . first :
7933,"kwargs is a dictionary with an entry: attribute 'label' of the object under the name key of the form.fields dictionary for 'label',","kwargs = { 'label' : getattr ( form . fields . get ( name ) , 'label' , capfirst ( self . fk . verbose_name ) ) }"
7934,call the method handler.addQuickElement with 2 arguments: string 'link' and value under the 'link' key of the item dictionary.,"handler . addQuickElement ( ""link"" , item [ 'link' ] )"
7935,import module copy.,import copy
7936,return a tuple with an element self.__dt.,"return self . __dt ,"
7937,"get value under key key of self dictionary, if it doesnt exists return default, substitute the result for value.","value = dict . get ( self , key , default )"
7938,define the function get_tag_uri with 2 arguments: url and date.,"def get_tag_uri ( url , date ) :"
7939,"if m is true,",if m :
7940,"if value is true and method self.valid_value called with an argument value evaluates to false,",if value and not self . valid_value ( value ) :
7941,define the method label_from_instance with 2 arguments: self and obj.,"def label_from_instance ( self , obj ) :"
7942,"if palette equals value under the NOCOLOR_PALETTE key of the PALETTES dictionary,",if palette == PALETTES [ NOCOLOR_PALETTE ] :
7943,derive the class DeclarativeFieldsMetaclass from the base class MediaDefiningClass.,class DeclarativeFieldsMetaclass ( MediaDefiningClass ) :
7944,"call the method self.nodelist_false.render with an arguments context, return the result.",return self . nodelist_false . render ( context )
7945,define the function get_objects.,def get_objects ( ) :
7946,"if name is true, substitute it for function_name, if not get '_decorated_function' attribute from func object, if it exists,","function_name = ( name or getattr ( func , '_decorated_function' , func ) . __name__ )"
7947,raise an ValidationError with 2 arguments: value under the 'max_length' key of the self.error_messages dictionary and code set to 'max_length'.,"raise ValidationError ( self . error_messages [ 'max_length' ] , code = 'max_length' , params = params )"
7948,"call the function msvcrt.get_osfhandle with return value of the _fd(f) function as argument, substitute the result for hfile.",hfile = msvcrt . get_osfhandle ( _fd ( f ) )
7949,"otherwise if f.unique is true,",elif f . unique :
7950,"substitute the result for offset_mins, otherwise offset_mins is integer 0. convert elements of tzinfo from indexes 1 to 3 to an integer, multiply it by integer 60 and increment it by offset_mins,",offset = 60 * int ( tzinfo [ 1 : 3 ] ) + offset_mins
7951,"call the fastcgi_help function with an argument string ""ERROR: Invalid option for daemonize parameter."", return it.","return fastcgi_help ( ""ERROR: Invalid option for daemonize "" ""parameter."" )"
7952,set filter_func._decorated_function objects attr attribute to value.,"setattr ( filter_func . _decorated_function , attr , value )"
7953,"and '3' for '3', substitute it for value. if KeyError exception is caught,",except KeyError :
7954,"for every app_config in return value of the method apps.get_app_configs, only if app_config.models_module is not None, and app_config is not contained in excluded_apps. if not,",else :
7955,define the method run_validators with arguments self and value.,"def run_validators ( self , value ) :"
7956,"append string '%%(%s)s' to plural, where '%s' is replaced with t.contents.",plural . append ( '%%(%s)s' % t . contents )
7957,"re_formatchars.split, for every i and piece in enumerated result, if i is even number,",if i % 2 :
7958,"if maxsize equals integer 0,",if maxsize == 0 :
7959,"call the function stat.S_IMODE with argument st.st_mode, substitute the result for mode.",mode = stat . S_IMODE ( st . st_mode )
7960,import flup,import flup
7961,"if second element of options is true,",if option [ 1 ] :
7962,"join self.dirpath and self.file in a string, substitute with it '%s' in string """", return the result.","return """" % os . sep . join ( [ self . dirpath , self . file ] )"
7963,"if self object has an attribute '_client',","if getattr ( self , '_client' , None ) is None :"
7964,"try,",try :
7965,gettext._translations is an empty dictionary.,gettext . _translations = { }
7966,from django.utils.translation import ugettext and ungettext_lazy into default name space.,"from django . utils . translation import ugettext , ungettext_lazy"
7967,"if not,",else :
7968,"write string ""App '%s' could not be found. Is it in INSTALLED_APPS?"" with '%s' where '%s' is replaced with app_label,","self . stderr . write ( ""App '%s' could not be found. Is it in INSTALLED_APPS?"" % app_label )"
7969,call the method handler.addQuickElement with 2 arguments: string 'description' and value under the 'description' key of the item dictionary.,"handler . addQuickElement ( ""description"" , item [ 'description' ] )"
7970,import module types.,import types
7971,"string '' and result of the function flatatt called with an argument final_attrs. call the method self.render_options with 2 arguments: choices and value, substitute the result for options.","options = self . render_options ( choices , value )"
7972,integer_types is a tuple with 2 elements int and long.,"integer_types = ( int , long )"
7973,replace every occurrence of '\n' in s with '\\n'.,"s = s . replace ( '\n' , '\\n' )"
7974,"call the method self.tag, substitute the result for self.tagname.",self . tagname = self . tag ( )
7975,"if not,",else :
7976,TOKEN_TEXT is integer 0,TOKEN_TEXT = 0
7977,"call the function translation with an argument settings.LANGUAGE_CODE, substitute the result for _default.",_default = translation ( settings . LANGUAGE_CODE )
7978,from django.core.management.base import BaseCommand into default name space.,from django . core . management . base import BaseCommand
7979,"if Exception, renamed to e, exception is caught,",except Exception as e :
7980,self._caches.caches is an empty dictionary.,self . _caches . caches = { }
7981,"define the method __init__ with 6 arguments: self, loopvars, sequence, is_reversed, nodelist_loop and nodelist_empty set to None.","def __init__ ( self , loopvars , sequence , is_reversed , nodelist_loop , nodelist_empty = None ) :"
7982,pathext is an list containing an empty string.,pathext = [ '' ]
7983,"if decimal_pos is not None,",if decimal_pos is not None :
7984,derive the class Enclosure from the object base class.,class Enclosure ( object ) :
7985,append string 'AutoField?' to comment_notes.,comment_notes . append ( 'AutoField?' )
7986,derive the class PermissionDenied from the Exception base class.,class PermissionDenied ( Exception ) :
7987,"if func_name is false,",if not func_name :
7988,define the function do_translate with 2 arguments: message and translation_function.,"def do_translate ( message , translation_function ) :"
7989,"convert self.use_ipv6 to boolean, substitute it for self._raw_ipv6.",self . _raw_ipv6 = bool ( self . use_ipv6 )
7990,"call the method datetime_safe.new_date with an argument date_value, substitute the result for date_value.",date_value = datetime_safe . new_date ( date_value )
7991,"if self.is_reversed is true, substitute reversed_text is an string ' reversed', if not, reversed_text is an empty string.",reversed_text = ' reversed' if self . is_reversed else ''
7992,"substitute value under the ""unifunc"" key of the results dictionary for unifunc.","unifunc = results [ ""unifunc"" ]"
7993,define the method sign with arguments self and value.,"def sign ( self , value ) :"
7994,"if app_config is None,",if app_config is None :
7995,"if match is true,",if match :
7996,"if is_relation is true,",if is_relation :
7997,"substitute the result for value under 'mailhost' key of config dictionary. otherwise if klass is subclass of logging.handlers.SysLogHandler class, and string 'address' is contained in config,","elif issubclass ( klass , logging . handlers . SysLogHandler ) and 'address' in config :"
7998,define the method serialize_headers with an argument self.,def streaming_content ( self ) :
7999,substitute second element of renamed_method for new_method_name.,new_method_name = renamed_method [ 1 ]
8000,"otherwise if char is contained in string 'bEFMmNn',",elif char in 'bEFMmNn' :
8001,"call method self.serialize_headers, append bytes string '\r\n\r\n' to the result, append self.content to the result, return it.",return self . serialize_headers ( ) + b'\r\n\r\n' + self . content
8002,call the method self._get_model_from_node with arguments node and string 'model'.,"Model = self . _get_model_from_node ( node , ""model"" )"
8003,from lib2to3.pgen2 import token into default name space.,from lib2to3 . pgen2 import token
8004,"format string ' _(%s) ', with fmatch, write it to out.",out . write ( ' _(%s) ' % cmatch )
8005,"if TypeError and AttributeError exceptions are caught,","except ( TypeError , AttributeError ) :"
8006,"if saved_locale is not None,",if saved_locale is not None :
8007,from django.core.servers.fastcgi import FASTCGI_HELP into default namespace.,from django . core . servers . fastcgi import FASTCGI_HELP
8008,"if self.is_bound is false,",if not self . is_bound :
8009,"if self.min_value is not None,",if self . min_value is not None :
8010,"from django.template.base import Library, add_to_builtins, builtins, get_library, get_templatetags_modules, get_text_list,","from django . template . base import ( Library , add_to_builtins , builtins , get_library , get_templatetags_modules , get_text_list , import_library , libraries )"
8011,"define the method handle_m2m_field with self, obj and field arguments.","def handle_m2m_field ( self , obj , field ) :"
8012,call the method self.error with an argument self.cmd.missing_args_message.,self . error ( self . cmd . missing_args_message )
8013,decorator function register.filter with an argument is_safe set to boolean False.,@ register . filter ( is_safe = False )
8014,"'get_current_timezone', 'get_current_timezone_name', 'activate', 'deactivate', 'override', 'localtime', 'now', 'is_aware', 'is_naive', 'make_aware' and 'make_naive'. call the function timedelta with an argument integer 0, substitute the result for ZERO.",ZERO = timedelta ( 0 )
8015,ALLOWED_VARIABLE_CHARS is a string 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.'.,ALLOWED_VARIABLE_CHARS = ( 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.' )
8016,want_unicode is boolean True.,want_unicode = True
8017,define the method make_writeable with arguments self and filename.,"def make_writeable ( self , filename ) :"
8018,do nothing.,pass
8019,locale_dir is None.,locale_dir = None
8020,"output is a list containing an element: result of the function format_html called with 2 arguments: string '',","output = [ format_html ( '' , flatatt ( final_attrs ) ) ]"
8021,define the method __contains__ with an argument self.,"def __contains__ ( self , item ) :"
8022,"get the element with maximal value between initial_forms and self.min_num, add self.extra to it, substitute the result for total_forms.","total_forms = max ( initial_forms , self . min_num ) + self . extra"
8023,return doy.,return doy
8024,define the function is_aware with an argument value.,def is_aware ( value ) :
8025,"wrte to the standard output result of the call to the method self.style.MIGRATE_SUCCESS with string "" OK"" as a argument.","self . stdout . write ( self . style . MIGRATE_SUCCESS ( "" OK"" ) )"
8026,define the method as_string with arguments self and unixfrom set to boolean False.,"def as_string ( self , unixfrom = False ) :"
8027,"if the tuple result equals to tuple containing character ';' and string '""\\073""', respectively, assign _cookie_encodes_correctly the boolean True value, otherwise assign it False. assign return value of the call to the http_cookies.SimpleCookie function to _tc.",_tc = http_cookies . SimpleCookie ( )
8028,"call the method formats.sanitize_separators with an argument value, substitute the result for value.",value = formats . sanitize_separators ( value )
8029,from django.utils.deprecation import RemovedInDjango20Warning into default name space.,from django . utils . deprecation import RemovedInDjango20Warning
8030,"if self.queryset is not None,",if self . queryset is not None :
8031,define the method tzname with 2 arguments: self and dt.,"def tzname ( self , dt ) :"
8032,"append list with element inner to list containing first start elements of result, substitute it for result.",result = result [ : start ] + [ inner ]
8033,"convert app and model._meta.object_name to strings, join them with separating '.' character, substitute it for obj.","obj = '%s.%s' % ( app , model . _meta . object_name )"
8034,"call the function urlunsplit with an argument url_fields, use the result as an argument for the call to the function split_url,",url_fields = split_url ( urlunsplit ( url_fields ) )
8035,"call the function ungettext with 3 arguments: string ""%(size)d byte"", string ""%(size)d bytes"" and 0, '%(size)d' is replaced with 0,","value = ungettext ( ""%(size)d byte"" , ""%(size)d bytes"" , 0 ) % { 'size' : 0 }"
8036,call the function ugettext with an argument message.,return ugettext ( message )
8037,define the method has_previous with an argument self.,def has_previous ( self ) :
8038,from django.core.exceptions import SuspiciousFileOperation into default name space.,from django . core . exceptions import SuspiciousFileOperation
8039,"call the function ugettext with string 'yes,no,maybe' as an argument, substitute the result for arg.","arg = ugettext ( 'yes,no,maybe' )"
8040,append attr.name to attrs for every attr in self._moved_attributes.,attrs += [ attr . name for attr in self . _moved_attributes ]
8041,"if self.is_localized is true,",if self . is_localized :
8042,"call the params.get with string 'OPTIONS' and empty dictionary as arguments, substitute the result for options.","options = params . get ( 'OPTIONS' , { } )"
8043,derive the class LocalTimezone from the tzinfo base class.,class LocalTimezone ( tzinfo ) :
8044,increment self.buffer by chunk.,self . buffer += chunk
8045,define the function _check_middleware_classes with app_config set to None and kwargs dictionary as arguments.,"def _check_middleware_classes ( app_configs = None , ** kwargs ) :"
8046,from django.core.urlresolvers import set_script_prefix into default name space.,from django . core . urlresolvers import set_script_prefix
8047,return a tuple with 2 elements: integers 1 and 0.,"return ( 1 , 0 )"
8048,derive the class ImmutableList from the tuple base class.,class ImmutableList ( tuple ) :
8049,derive the class IfParser from the object base class.,class IfParser ( object ) :
8050,define the function flatatt with an argument attrs.,def flatatt ( attrs ) :
8051,from django.conf import settings into default name space.,from django . conf import settings
8052,"if extracted is true,",if extracted :
8053,"define the function fset with 3 arguments: instance, valse to None and name set to fset.__name__.","def fset ( instance , value , name = fset . __name__ ) :"
8054,"join dirpath and filename into path, use it as an argument for the call to the function os.path.normpath, substitute it for file_path.","file_path = os . path . normpath ( os . path . join ( dirpath , filename ) )"
8055,"call the function importlib.import_module with 2 arguments: flup_module converted to string and appended to '.' character, and string 'flup', substitute the result for module.","module = importlib . import_module ( '.%s' % flup_module , 'flup' )"
8056,"call the function bytes with an argument self, divide the result with rhs and return the reminder of the division.",return bytes ( self ) % rhs
8057,define the method add_arguments with 2 arguments self and parser.,"def add_arguments ( self , parser ) :"
8058,yield one element of line iterable.,yield line
8059,substitute Tok.num for self.id.,self . id = Tok . num
8060,define the function to_current_timezone with an argument value.,def to_current_timezone ( value ) :
8061,define the method reload with an argument self.,def reload ( self ) :
8062,from django.utils.safestring import SafeData and mark_safe into default name space.,"from django . utils . safestring import SafeData , mark_safe"
8063,"if not,",else :
8064,from django.utils import six into default name space.,from django . utils import six
8065,"raise an ValueError with an argument string ""Non-reversible reg-exp portion: '(?P%s'"" formated with ch.","raise ValueError ( ""Non-reversible reg-exp portion: '(?P%s'"" % ch )"
8066,"raise an ImportError exception with an argument string ""No IPython"".","raise ImportError ( ""No IPython"" )"
8067,"call the method __init__ from the base class of the class ContextDict, with 2 arguments: unpacked list args and unpacked dictionary kwargs.","super ( ContextDict , self ) . __init__ ( * args , ** kwargs )"
8068,"if http_cookies.CookieError exception is raised,",except http_cookies . CookieError :
8069,call the method HTMLParser.__init__ with an argument self.,HTMLParser . __init__ ( self )
8070,"call the function from_current_timezone with an argument result, return the result.",return from_current_timezone ( result )
8071,"if string 'help' is contained in options,","if ""help"" in options :"
8072,"call the function re.compile with an argument string ""^\s*trans\s+((?:""[^""]*?"")|(?:'[^']*?'))(\s+.*context\s+((?:""[^""]*?"")|(?:'[^']*?')))?\s*"", substitute the result for inline_re.","inline_re = re . compile ( r""""""^\s*trans\s+((?:""[^""]*?"")|(?:'[^']*?'))(\s+.*context\s+((?:""[^""]*?"")|(?:'[^']*?')))?\s*"""""" )"
8073,"call the method self.configure_custom with an argument config, substitute the result for result.",result = self . configure_custom ( config )
8074,substitute first 12 elements of r for r.,r = r [ : 12 ]
8075,write 79 '-' characters into self.stream file stream.,self . stream . write ( b'-' * 79 )
8076,return default.,return default
8077,import module random.,import random
8078,"call the method self.setlistdefault with an argument key, append value to the result.",self . setlistdefault ( key ) . append ( value )
8079,return result.,return result
8080,"evaluate the logical expression, if other is an instance of RegexValidator and self.regex.pattern equals to other.regex.pattern,","return ( isinstance ( other , RegexValidator ) and self . regex . pattern == other . regex . pattern and self . regex . flags == other . regex . flags and ( self . message == other . message ) and ( self . code == other . code ) and ( self . inverse_match == other . inverse_match ) )"
8081,"if not,",else :
8082,"define the method has_key with self class instance, key and version defaulting to None as arguments.","def has_key ( self , key , version = None ) :"
8083,call the method notifier.process_events.,notifier . process_events ( )
8084,use_func is boolean False.,use_func = False
8085,"call the function fastcgi_help with an argument string ""ERROR: Implementation must be one of prefork or thread."", return the result.","return fastcgi_help ( ""ERROR: Implementation must be one of prefork or "" ""thread."" )"
8086,call the self._load_post_and_files method.,self . _load_post_and_files ( )
8087,"call the function _generate_cache_key with request, request.method, an empty list and key_prefix as arguments, return the result.","return _generate_cache_key ( request , request . method , [ ] , key_prefix )"
8088,"if dt is None is_dst is boolean False, otherwise call the method self._isdst with an argument dt, substitute the result for is_dst.",is_dst = False if dt is None else self . _isdst ( dt )
8089,"call the function force_text with an argument bf.label, use the result as an argument for the call to the function conditional_escape, substitute the result label.",label = conditional_escape ( force_text ( bf . label ) )
8090,where '%r' is replaced with subcommand and '%s' is replaced with self.prog_name. call the function sys.exit with an argument integer 1.,sys . exit ( 1 )
8091,msg is an empty string.,"msg = """""
8092,substitute first element of row for column_name.,column_name = row [ 0 ]
8093,"if settings.TEMPLATE_DEBUG and display_name are both true,",if settings . TEMPLATE_DEBUG and display_name :
8094,"if the value under the 'QUERY_STRING' key of the self.META dictionary is true, call the function iri_to_uri,","return '%s%s' % ( self . path , ( '?' + iri_to_uri ( self . META . get ( 'QUERY_STRING' , '' ) ) ) if self . META . get ( 'QUERY_STRING' , '' ) else '' )"
8095,"called with an argument path, substitute path for locale_dir.",locale_dir = path
8096,relations is an empty dictionary.,relations = { }
8097,substitute filter_func for value under the name key of self.filters dictionary.,self . filters [ name ] = filter_func
8098,return the value under the language_code key of the self._regex_dict dictionary.,return self . _regex_dict [ language_code ]
8099,define initialization method __init__ with self instance of the class as an argument.,def __init__ ( self ) :
8100,"raise an TemplateSyntaxError exception with an argument string ""Could not parse some characters: %s|%s|%s"",","raise TemplateSyntaxError ( ""Could not parse some characters: "" ""%s|%s|%s"" % ( token [ : upto ] , token [ upto : start ] , token [ start : ] ) )"
8101,skip this loop iteration.,continue
8102,"and data, if it evaluates to true, return boolean True.",return True
8103,"define the method source_error with 3 arguments: self, source and msg.","def source_error ( self , source , msg ) :"
8104,define the funtion _generate_cache_header_key with key_prefix and request as arguments.,"def _generate_cache_header_key ( key_prefix , request ) :"
8105,"call the method middleware.process_request with an argument request, substitute the result for result.",result = middleware . process_request ( request )
8106,"raise an ValidationError with 3 arguments: dictionary self.error_messages value under the key 'invalid_choice',","raise ValidationError ( self . error_messages [ 'invalid_choice' ] , code = 'invalid_choice' , params = { 'value' : val } , )"
8107,raise an ValidationError with 2 arguments: value under the 'required' key of the self.error_messages dictionary and code set to 'required'.,"raise ValidationError ( self . error_messages [ 'required' ] , code = 'required' )"
8108,derive the class Origin form the base class object.,class Origin ( object ) :
8109,invert self.negated.,self . negated = not self . negated
8110,"otherwise if name is contained in lib.filters,",elif name in lib . filters :
8111,"compile the handle.read in mode 'exec' source is read from file pythonrc, execute the compiled script with imported_objects variables.","exec ( compile ( handle . read ( ) , pythonrc , 'exec' ) , imported_objects )"
8112,self.tokens is an empty dictionary.,self . toks = { }
8113,substitute viewname for view.,view = viewname
8114,"if not,",else :
8115,"format string '%+03d:%02d' with hour and minute, append it to time_str, return the result.","return time_str + '%+03d:%02d' % ( hour , minute )"
8116,"otherwise if fourth element of version does not equals to 'final',",elif version [ 3 ] != 'final' :
8117,"'Database state will be brought to the state after that migration.' as arguments. call the method parser.add_argument with string '--noinput', action containing string 'store_false', dest set to string 'interactive',","parser . add_argument ( '--noinput' , action = 'store_false' , dest = 'interactive' , default = True , help = 'Tells Django to NOT prompt the user for input of any kind.' )"
8118,"call the __add__ method with an arguments rhs from the base class of the class SafeBytes, substitute the result for t.","t = super ( SafeBytes , self ) . __add__ ( rhs )"
8119,"if _serializers is false,",if not _serializers :
8120,define the method __init__ with 2 arguments: self and attrs set to None.,"def __init__ ( self , attrs = None ) :"
8121,raise an exception.,raise
8122,"return a tuple with 3 elements: if path is true, path, in not, a string '%s.%s' formated with obj.__class__.__module__,","return ( path or '%s.%s' % ( obj . __class__ . __module__ , obj . __class__ . __name__ ) , obj . _constructor_args [ 0 ] , obj . _constructor_args [ 1 ] , )"
8123,"""This will IRREVERSIBLY DESTROY all data currently in the %r database, and return each table to an empty state."" ""Are you sure you want to do this?""Type 'yes' to continue, or 'no' to cancel: "", where '%s' is replaced with value under the 'NAME' key of the connection.settings_dict dictionary. if not,",else :
8124,"and guid_attrs. if value under the 'ttl' key of the item dictionary is not None,",if item [ 'ttl' ] is not None :
8125,"if self.verbosity is integer 1,",if self . verbosity > 1 :
8126,"widget set to None, label set to None, initial set to None, help_text set to an empty strign, unpacked list args and unpacked dictionary kwargs. call the method __init__ from the base class of the class ModelMultipleChoiceField, with 10 arguments: queryset, None,","super ( ModelMultipleChoiceField , self ) . __init__ ( queryset , None , cache_choices , required , widget , label , initial , help_text , * args , ** kwargs )"
8127,call the method cls.__new__ with 2 arguments: cls and unpacked list args.,"return cls . __new__ ( cls , * args )"
8128,break the loop execution.,break
8129,derive the class FileField from the base class Field class.,class FileField ( Field ) :
8130,"call the function re.compile with an argument raw string ""^((?:'[^']*'|[^'])*?)--.*$"", substitute the result for comment_re.","comment_re = re . compile ( r""^((?:'[^']*'|[^'])*?)--.*$"" )"
8131,exit the program with failures converted to boolean as a message.,sys . exit ( bool ( failures ) )
8132,"otherwise if common_prefix is None,",elif common_prefix is None :
8133,saved_locale is None.,saved_locale = None
8134,from django.apps import apps into default name space.,from django . apps import apps
8135,return default.,return default
8136,derive the class override from the object base class.,class override ( object ) :
8137,m2m_data is an empty dictionary.,m2m_data = { }
8138,"get 'error_messages' attribute from the options object, if it exists substitute it for self.error_messages,","self . error_messages = getattr ( options , 'error_messages' , None )"
8139,"if min_length is not None,",if min_length is not None :
8140,"try,",try :
8141,define the method _cull with argument self.,def _cull ( self ) :
8142,"which has not been installed."" with all the '%s' replaced by values of description, name and reference joined into a string delimited by '.', respectively, obj set to receiver.__module__, hint set to None and id set to string 'signals.E001', append the result to errors. return errors.",return errors
8143,"return the result of the call to the function chain, with an argument unpacked list, containing the result of the function,","return chain ( * [ [ format_html ( ' ' , self . absolute_path ( path ) , medium ) for path in self . _css [ medium ] ] for medium in media ] )"
8144,return self.data.hour.,return self . data . hour
8145,self.fixture_count is integer 0.,self . fixture_count = 0
8146,"otherwise if first element of cwords is contanied in tuple with 8 entries: 'dumpdata', 'sql', 'sqlall', 'sqlclear', 'sqlcustom',","elif cwords [ 0 ] in ( 'dumpdata' , 'sql' , 'sqlall' , 'sqlclear' , 'sqlcustom' , 'sqlindexes' , 'sqlsequencereset' , 'test' ) :"
8147,result is None.,result = None
8148,assign script_name to the value under the 'SCRIP_NAME' key of the self.META dictionary.,self . META [ 'SCRIPT_NAME' ] = script_name
8149,"convert is a dictionary with 4 initial entries: list with 3 tuples: tuple with 2 elements: string '__gt__',","convert = { '__lt__' : [ ( '__gt__' , lambda self , other : not ( self < other or self == other ) ) , ( '__le__' , lambda self , other : self < other or self == other ) , ( '__ge__' , lambda self , other : not self < other ) ] , '__le__' : [ ( '__ge__' , lambda self , other : not self <= other or self == other ) , ( '__lt__' , lambda self , other : self <= other and not self == other ) , ( '__gt__' , lambda self , other : not self <= other ) ] , '__gt__' : [ ( '__lt__' , lambda self , other : not ( self > other or self == other ) ) , ( '__ge__' , lambda self , other : self > other or self == other ) , ( '__le__' , lambda self , other : not self > other ) ] , '__ge__' : [ ( '__le__' , lambda self , other : ( not self >= other ) or self == other ) , ( '__gt__' , lambda self , other : self >= other and not self == other ) , ( '__lt__' , lambda self , other : not self >= other ) ] }"
8150,do nothing.,pass
8151,"if value is an instance of datetime.datetime,","if isinstance ( value , datetime . datetime ) :"
8152,"append first 49 elements of self._unget_history to list containing num_bytes, substitute the result for self._unget_history.",self . _unget_history = [ num_bytes ] + self . _unget_history [ : 49 ]
8153,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
8154,"map elements of self._iterator through self.make_bytes function, return the result.","return map ( self . make_bytes , self . _iterator )"
8155,substitute serialize_headers for __bytes__.,__bytes__ = serialize_headers
8156,"call the method parser.parse with an argument tuple with an element end_tag, substitute the result for nodelist_false.","nodelist_false = parser . parse ( ( end_tag , ) )"
8157,define the method _read_limited with self class instance and size set to None as arguments.,"def _read_limited ( self , size = None ) :"
8158,"self.getlist with an argument k, for every k in self. return obj_dict.",return obj_dict
8159,"if node is an instance of Node,","if isinstance ( node , Node ) :"
8160,"open the file fn in read mode, with file descriptor as f,","with open ( fn , 'rb' ) as f :"
8161,try,try :
8162,"if m is true,",if m :
8163,substitute file_size for self.file.size.,self . file . size = file_size
8164,"if not, substitute self.auto_id for id_. if if_is true attrs is an dictionary with initial entry: id_ for 'id', if not, attrs is an empty dictionary.",attrs = { 'id' : id_ } if id_ else { }
8165,"append value under the 'protocol' key of the options dictionary to the string 'server.', substitute it for flup_module.",flup_module = 'server.' + options [ 'protocol' ]
8166,"get the value under the 'hide_empty' key of the options dictionary, if the key exists substitute it for self.hide_empty,","self . hide_empty = options . get ( 'hide_empty' , False )"
8167,"msg is a string '%sError importing module %s: ""%s""', where '%s' is replaced with error_prefix, dotted_path and e, respectively.","msg = '%sError importing module %s: ""%s""' % ( error_prefix , dotted_path , e )"
8168,"if not,",else :
8169,substitute stream for self.stream.,self . stream = stream
8170,"substitute the result for context_match. call the method context_match.group with an argument integer 1, substitute the result for message_context.",message_context = context_match . group ( 1 )
8171,"try,",try :
8172,"call the method struct.pack with 2 arguments: bytes string '>I' and i, append the result to salt, substitute the result or u.","u = salt + struct . pack ( b'>I' , i )"
8173,call the method self.instance.validate_unique with an argument exclude set to exclude.,self . instance . validate_unique ( exclude = exclude )
8174,"call the context.push method, with the result, perform,",with context . push ( ) :
8175,define the function _sanitize_ipv4_mapping with an argument ip_str.,def _sanitize_ipv4_mapping ( ip_str ) :
8176,"call the function _strip_once with an argument value, substitute the result for new_value.",new_value = _strip_once ( value )
8177,"substitute '%s' with self._dir converted to a string. define the method key_to_file with self class instance, key and version defaulting to None as arguments.","def _key_to_file ( self , key , version = None ) :"
8178,"if not,",else :
8179,"and unpacked dictionary kwargs, return the result. define the function assertRegex with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def assertRegex ( self , * args , ** kwargs ) :"
8180,substitute third element of renamed_method for deprecation_warning.,deprecation_warning = renamed_method [ 2 ]
8181,"define the method clean with arguments self, data and initial set to None.","def clean ( self , data , initial = None ) :"
8182,define the method __init__ with an argument self.,def __init__ ( self ) :
8183,define the function widthratio with 2 arguments: parser and token.,"def widthratio ( parser , token ) :"
8184,"call the function os.path.abspath with an argument dirpath, if it starts with return value of the method os.path.dirname,",if os . path . abspath ( dirpath ) . startswith ( os . path . dirname ( path ) ) :
8185,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
8186,"call the method self.build_attrs with an argument attrs, substitute the result for final_attrs.",final_attrs = self . build_attrs ( attrs )
8187,"join path and entry into a file path, if it exists,","if os . path . isdir ( os . path . join ( path , entry ) ) :"
8188,return t.,return t
8189,from django.utils.module_loading import import_string into default name space.,from django . utils . module_loading import import_string
8190,call the method self.validate_key with argument key.,self . validate_key ( key )
8191,substitute localized_fields for value under the 'localized_fields' key of attrs dictionary.,attrs [ 'localized_fields' ] = localized_fields
8192,"concatenate string '%0', width and string ""d. %s"", format the previous string with i incremented by 1 and line,","lines [ i ] = ( ""%0"" + width + ""d. %s"" ) % ( i + 1 , line )"
8193,"substitute first, second and second elements of bits for yes, no, maybe, respectively.","yes , no , maybe = bits [ 0 ] , bits [ 1 ] , bits [ 1 ]"
8194,"call the function self.path with argument name, use the result as an argument for the call to the function os.path.getmtime,",return datetime . fromtimestamp ( os . path . getmtime ( self . path ( name ) ) )
8195,"try,",try :
8196,"join 'conf' and 'locale' into a file path, if it is a directory,","if os . path . isdir ( os . path . join ( 'conf' , 'locale' ) ) :"
8197,return self.,return self
8198,"MONTHS is a list with 12 elements: strings 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', and 'dec'.",MONTHS = 'jan feb mar apr may jun jul aug sep oct nov dec' . split ( )
8199,substitute _iterlists for lists.,lists = _iterlists
8200,call the method obj.delete.,obj . delete ( )
8201,"template is an instance of Template class, created with an argument content.",template = Template ( content )
8202,"define the method __init__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
8203,return value.,return value
8204,call the method __new__ with an argument cls from the base class of the klass function.,"obj = super ( klass , cls ) . __new__ ( cls )"
8205,"in the previous result for with string '\n', substitute the result for eol_message. get 'value' attribute of the _active object, if it exists substitute it for t, if not t is None.","t = getattr ( _active , ""value"" , None )"
8206,call method self.stdout.write with statement as an argument.,self . stdout . write ( statement )
8207,"call the method self.make_bytes with an argument content, append it to self._container.",self . _container . append ( self . make_bytes ( content ) )
8208,"get_format called with an argument string 'TIME_INPUT_FORMATS', substitute the result for format. call the method value.strftime with an argument format, return the result.",return value . strftime ( format )
8209,"call the self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
8210,"if self.use_argparse is true,",if self . use_argparse :
8211,define the method I with an argument self.,def I ( self ) :
8212,"and path with self.path, substitute the result for current_uri. call the function urljoin with arguments current_uri and location, substitute the result for location.","location = urljoin ( current_uri , location )"
8213,g is an instance of a class generator.Generator called with fp and mangle_from_ set to False.,"g = generator . Generator ( fp , mangle_from_ = False )"
8214,from django.apps import apps into default name space.,from django . apps import apps
8215,"if value is an instance of SafeData, safe is boolean True, otherwise it is boolean False.","safe = isinstance ( value , SafeData )"
8216,define the method _iteritems with an argument self.,def _iteritems ( self ) :
8217,"if shown is an empty set,",if not shown :
8218,"define the method __init__ with 4 arguments: self, name, old and new set to None.","def __init__ ( self , name , old , new = None ) :"
8219,do nothing.,pass
8220,import hashlib module.,import hashlib
8221,define the method __getinitargs__ with an argument self.,def __getinitargs__ ( self ) :
8222,"add model to a set, substitute the result for known_models. pending_references is an empty dictionary.",pending_references = { }
8223,"call the function force_str with an argument: default if it is true, or if not, first element of the result of the function,",format = force_str ( default or get_format ( 'TIME_INPUT_FORMATS' ) [ 0 ] )
8224,import module re.,import re
8225,substitute DjangoJSONEncoder for DateTimeAwareJSONEncoder.,DateTimeAwareJSONEncoder = DjangoJSONEncoder
8226,"or with an empty string if its not, append the resulting string to full_statement. append string ');' to full_statement.",full_statement . append ( ');' )
8227,"call f.read function, use the result as the argument for zlib.decompress function call, call the pickle.loads function with the previous result as argument, return the result.",return pickle . loads ( zlib . decompress ( f . read ( ) ) )
8228,call the method self.connection.login with arguments self.username and self.password.,"self . connection . login ( self . username , self . password )"
8229,"call the method self.data.tzinfo.tzname with an argument self.data, if it is true, return it, otherwise return an empty string.","return self . data . tzinfo . tzname ( self . data ) or """""
8230,"if self.timezone is false,",if not self . timezone :
8231,substitute version_info from module sys for surrent_version.,current_version = sys . version_info
8232,return boolean False.,return False
8233,import module base64.,import base64
8234,"call the ops.quote_name method with argument self._table on the object under the db key of connections dictionary, substitute the result for table.",table = connections [ db ] . ops . quote_name ( self . _table )
8235,define the function _get_val.,def _get_val ( ) :
8236,"if new is None,",if new is None :
8237,define the function get_ns_resolver with arguments ns_pattern and resolver.,"def get_ns_resolver ( ns_pattern , resolver ) :"
8238,"finally perform,",finally :
8239,"return a string '<%s token: ""%s..."">' with '%s', replace '%s' with token_name and 20 self.contents elements with every newline deleted.","return ( '<%s token: ""%s..."">' % ( token_name , self . contents [ : 20 ] . replace ( '\n' , '' ) ) )"
8240,return statements.,return statements
8241,and fileobj set to zbuf. call the method zfile.write with an argument s.,zfile . write ( s )
8242,"get the next element of the iterable pattern_iter, assign the result for ch and escaped, respectively.","ch , escaped = next ( pattern_iter )"
8243,"call the function os.fdopen with arguments fd and mode, substitute it for _file.","_file = os . fdopen ( fd , mode )"
8244,using_sysrandom is boolean True.,using_sysrandom = True
8245,"is greater than self.max_num, or if value under the TOTAL_FORM_COUNT key of the self.management_form.cleaned_data dictionary, is grater than self.absolute_max, raise an ValidationError with 2 arguments: return value of the function ungettext with 3 arguments:","raise ValidationError ( ungettext ( ""Please submit %d or fewer forms."" , ""Please submit %d or fewer forms."" , self . max_num ) % self . max_num , code = 'too_many_forms' , )"
8246,"for every d in self.dicts,",for d in self . dicts :
8247,define the method __copy__ with an argument self.,def __copy__ ( self ) :
8248,substitute complain for insert.,insert = complain
8249,return None.,return None
8250,"replace '%s' in a string ""Created new squashed migration %s"" with writer.path, use it as an argument for the call to the method,","self . stdout . write ( self . style . MIGRATE_HEADING ( ""Created new squashed migration %s"" % writer . path ) )"
8251,import module sys.,import sys
8252,define the method add_arguments with 2 arguments: self and parser.,"def add_arguments ( self , parser ) :"
8253,call the method _ExpatParser.reset with an argumen sefl.,_ExpatParser . reset ( self )
8254,"if settings.DEBUG is true, return boolean False, otherwise return boolean True.",return not settings . DEBUG
8255,"replace '%s' in the string ""%s.process_template_response didn't return an HttpResponse object. It returned None instead."",","raise ValueError ( ""%s.process_template_response didn't return an "" ""HttpResponse object. It returned None instead."" % ( middleware_method . __self__ . __class__ . __name__ ) )"
8256,"call the cursor method on the value under the db key of connections dictionary, preform following with return value named cursor,",with connections [ db ] . cursor ( ) as cursor :
8257,"from django.conf import settings, global_settings into default name space.","from django . conf import settings , global_settings"
8258,"return new_name, field_params and field_notes.","return new_name , field_params , field_notes"
8259,substitute nodelist for self.nodelist.,self . nodelist = nodelist
8260,skip this loop iteration.,continue
8261,"if not,",else :
8262,from django.utils import six into default name space.,from django . utils import six
8263,"while bit doesnt end with sential,",while not bit . endswith ( sentinal ) :
8264,"get the value under the 'content-type' key of the info dictionary, substitute it for content_type.",content_type = info . get ( 'content-type' )
8265,from pprint import pformat into default name space.,from pprint import pformat
8266,"try,",try :
8267,from django.core.files import temp as tempfile into default name space.,from django . core . files import temp as tempfile
8268,"raise an CommandError exception with an argument string ""You can only use --pks option with one model"".","raise CommandError ( ""You can only use --pks option with one model"" )"
8269,"for every field, messages in return value of the message.items method,","for field , messages in message . items ( ) :"
8270,define the method get_default_prefix with an argument cls.,def get_default_prefix ( cls ) :
8271,"get the type of self object, call its method __bool__ with an argument self, return the result.",return type ( self ) . __bool__ ( self )
8272,"if values under ""author_name"" and ""author_email"" keys of the item dictionary are both true,","if item [ ""author_name"" ] and item [ ""author_email"" ] :"
8273,"call the function os.getpid, substitute it for pid.",pid = os . getpid ( )
8274,define the method __len__ with an argument self.,def __len__ ( self ) :
8275,"call the function get_resolver with an argument urlconf, substitute the result for resolver.",resolver = get_resolver ( urlconf )
8276,"call the function re.compile with an argument raw string ""^\s*plural$"", substitute the result for plural_re.","plural_re = re . compile ( r""""""^\s*plural$"""""" )"
8277,from django.utils.six.moves import input into default name space.,from django . utils . six . moves import input
8278,"call the function pickle.dumps with expiry and integer -1 as arguments, use the result as the argument for the call to f.write function.","f . write ( pickle . dumps ( expiry , - 1 ) )"
8279,"regex is an property object of this class, with _get_regex getter and _set_regex setter function.","regex = property ( _get_regex , _set_regex )"
8280,define the method __init__ with 2 arguments: self and loaders.,"def __init__ ( self , loaders ) :"
8281,"try,",try :
8282,"if field.help_text is true, substitute field.help_text for self.help_text, if not self.help_text is an empty string.",self . help_text = field . help_text or ''
8283,"otherwise if second element of args equals a string '404',",elif args [ 1 ] == '404' :
8284,return result.,return result
8285,define the function get_templatetags_modules.,def get_templatetags_modules ( ) :
8286,"and returns x striped of the surrounding whitespaces, extend the extra_files with the mapped list. if self.verbosity is greater or equal to integer 2,",if self . verbosity >= 2 :
8287,program is string 'msgfmt',program = 'msgfmt'
8288,"from django.db import connections, transaction, router and DatabaseError into default name space.","from django . db import connections , transaction , router , DatabaseError"
8289,"_iterkeys is a string ""iterkeys"".","_itervalues = ""itervalues"""
8290,"take locale or all_locales, whichever is not empty, respectively, and substitute it for locales.",locales = locale or all_locales
8291,"if seconds smaller than integer 0, sign is '-', otherwise sign is '+',",sign = '-' if seconds < 0 else '+'
8292,"tuple with 3 elements: strings '%H:%M:%S', '%H:%M:%S.%f' and '%H:%M' for 'TIME_INPUT_FORMATS', tuple with 4 elements: strings '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M' and '%Y-%m-%d' for 'DATETIME_INPUT_FORMATS'. define the function reset_format_cache.",def reset_format_cache ( ) :
8293,"if max_age is not None,",if max_age is not None :
8294,define the method __iter__ with an argument self.,def __iter__ ( self ) :
8295,from django.db.models.fields.related import RelatedObject into default namespace.,from django . db . models . fields . related import RelatedObject
8296,"if site is contained in sites1,",for site in sites1 :
8297,"call the method self.nodelist.render with an argument new_context, return the result.",return self . nodelist . render ( new_context )
8298,define the function __wrapper__ with 2 arguments: unpacked list args and unpacked dictionary kw.,"def __wrapper__ ( * args , ** kw ) :"
8299,raise an CommandError exception with an argument string 'You must set settings.ALLOWED_HOSTS if DEBUG is False.'.,raise CommandError ( 'You must set settings.ALLOWED_HOSTS if DEBUG is False.' )
8300,"call the method apps.get_app_configs, for every app_config in the result,",for app_config in apps . get_app_configs ( ) :
8301,"if 'coerce' key of the kwargs dictionary exists remove it and substitute its value for self.coerce,","self . coerce = kwargs . pop ( 'coerce' , lambda val : val )"
8302,define the method add_initial_prefix with 2 arguments: self and field_name.,"def add_initial_prefix ( self , field_name ) :"
8303,"if length of bits is lesser than integer 3 or second element of bits is not equal to string 'as',",if len ( bits ) < 3 or bits [ 1 ] != 'as' :
8304,"define the function deserialize with 3 arguments: format, stream_or_string and unpacked dictionary options.","def deserialize ( format , stream_or_string , ** options ) :"
8305,define the method __init__ with 2 arguments: self and variables.,"def __init__ ( self , variables ) :"
8306,"call the function construct_instance with 4 arguments: self, self.instance, opts.fields and construct_instance_exclude,","self . instance = construct_instance ( self , self . instance , opts . fields , construct_instance_exclude )"
8307,"if key is contained in d,",if key in d :
8308,derive the class BaseCache from the object base class.,class BaseCache ( object ) :
8309,"find the first, second and third subgroup of the m regular expression match, assign the result to the attrname, rest and attrvalue, respectively.","attrname , rest , attrvalue = m . group ( 1 , 2 , 3 )"
8310,"subclass is a class named Migration, sub classed from migrations.Migration base class, with fields dependencies set to an empty list,","subclass = type ( ""Migration"" , ( migrations . Migration , ) , { ""dependencies"" : [ ] , ""operations"" : new_operations , ""replaces"" : replaces , } )"
8311,best_doublecolon_start is an integer -1.,best_doublecolon_start = - 1
8312,"if constant is true,",if constant :
8313,"otherwise it is boolean False. if kwarg_format is false,",if not kwarg_format :
8314,call the function os.chmod with arguments dst and mode.,"os . chmod ( dst , mode )"
8315,"call the method form.add_initial_prefix with an argument name, substitute the result for self.html_initial_name.",self . html_initial_name = form . add_initial_prefix ( name )
8316,"call the function sql_custom with app_config, self.style and connection as the arguments, substitute the result for statements.","statements = sql_custom ( app_config , self . style , connection )"
8317,"substitute every '%s' in string '%s%s%s ' with indent, with result of the function escaper called with an argument:","output . append ( '%s%s%s ' % ( indent , escaper ( force_text ( title ) ) , sublist ) )"
8318,"get the type of the self object, on the result call the __bool__ method with an argument self, return the result.",return type ( self ) . __bool__ ( self )
8319,"if s is an instance of object bytes,","if isinstance ( s , bytes ) :"
8320,define the method reader_enters with an argument self.,def reader_enters ( self ) :
8321,"raise an DisallowedRedirect exception with an argument string ""Unsafe redirect to URL with protocol '%s'"",","raise DisallowedRedirect ( ""Unsafe redirect to URL with protocol '%s'"" % parsed . scheme )"
8322,"define the method get with 5 arguments, self class instance, key, default set to None and version set to None.","def get ( self , key , default = None , version = None ) :"
8323,from importlib import import_module.,from importlib import import_module
8324,"if plan_node is not contained in shown and first element of plan_node equals to app_name,",if plan_node not in shown and plan_node [ 0 ] == app_name :
8325,substitute left for self.first.,self . first = left
8326,flush the output buffer of the self.stdout object.,self . stdout . flush ( )
8327,"join lineno_comment_map dictionary value under the comment_lineno_cache key into a string, separated with ' | ',",out . write ( '# %s' % ' | ' . join ( lineno_comment_map [ comment_lineno_cache ] ) )
8328,current_chunk is None.,current_chunk = None
8329,"with an argument escape_html for f, for every f and e in list of tuples of self dictionary key, pair entries, return the result. define the method as_ul with an argument self.",def as_ul ( self ) :
8330,"'startapp' and 'startproject'. try,",try :
8331,tried is an empty list.,tried = [ ]
8332,"if extend is boolean True,",if extend is True :
8333,from django.core import serializers into default name space.,from django . core import serializers
8334,"call the method formats.number_format with 2 arguments, d converted to a integer and then to string, and integer 0,","return mark_safe ( formats . number_format ( '%d' % ( int ( d ) ) , 0 ) )"
8335,self._choices and self.widget.choices are assigned value converted into a list.,self . _choices = self . widget . choices = list ( value )
8336,"call the function re.compile with 2 arguments, string '^%s/', where '%s' is replaced with language_code and re.UNICODE, substitute the result for regex_compiled.","regex_compiled = re . compile ( '^%s/' % language_code , re . UNICODE )"
8337,"call the method inspect.getmro with an argument new_class, for every base in the result,",for base in inspect . getmro ( new_class ) :
8338,return boolean True.,return True
8339,derive the class ExtendsError from the Exception base class.,class ExtendsError ( Exception ) :
8340,decorator function register.filter with an argument is_safe set to boolean False.,@ register . filter ( is_safe = False )
8341,"filesize_number_format is an lambda function with an argument value, return value is the result of the method formats.number_format,","filesize_number_format = lambda value : formats . number_format ( round ( value , 1 ) , 1 )"
8342,"if not,",else :
8343,"if not,",else :
8344,"call the function get_supported_language_variant with an argument settings.LANGUAGE_CODE, return the result.",return get_supported_language_variant ( settings . LANGUAGE_CODE )
8345,"if can fail is true,",if can_fail :
8346,call the function get_urlconf with an argument urlconf.,urlconf = get_urlconf ( )
8347,"if not,",else :
8348,return context.,return context
8349,"for every w in widgets, call the function w and append the result to a list, if w is an instance of type class,","self . widgets = [ w ( ) if isinstance ( w , type ) else w for w in widgets ]"
8350,if content is not None raise an error.,assert content is None
8351,"if data is None,",if data is None :
8352,"if qs._result_cache is not None,",if qs . _result_cache is not None :
8353,"if last element of line is newline or carriage return character,","if line [ - 1 : ] in ( b'\n' , b'\r' ) :"
8354,derive the class metaclass form the meta base class.,class metaclass ( meta ) :
8355,derive the class Command from the AppCommand base class.,class Command ( AppCommand ) :
8356,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
8357,"define the method __init__ with arguments self, stream and boundary.","def __init__ ( self , stream , boundary ) :"
8358,define the method __len__ with an argument self.,def __len__ ( self ) :
8359,"if self.data is false,",if not self . data :
8360,append f.name to exclude.,exclude . append ( f . name )
8361,and unpacked dictionary kwargs. define the function allow_lazy with 2 arguments: func and unpacked list resultclasses.,"def allow_lazy ( func , * resultclasses ) :"
8362,"if Exception exception is caught,",except Exception :
8363,define the method bpython with an argument self.,def bpython ( self ) :
8364,substitute value for the vale under the name key of the pdict dictionary.,pdict [ name ] = value
8365,substitute value under the RESULT key of the root dictionary for oldvalue.,oldvalue = root [ RESULT ]
8366,"if ValueError exception is caught,",except ValueError :
8367,define the method send_messages with arguments self and email_message.,"def send_messages ( self , email_messages ) :"
8368,derive the class URLField from the base class CharField class.,class URLField ( CharField ) :
8369,"for every i and widget in enumerated iterable self.widgets, call the function widget.value_from_datadict with 3 arguments: data,","return [ widget . value_from_datadict ( data , files , name + '_%s' % i ) for i , widget in enumerate ( self . widgets ) ]"
8370,substitute tagtype for self.tagtype.,self . tagtype = tagtype
8371,call the function reloader_thread.,reloader_thread ( )
8372,"define the method __init__ with 6 arguments self, parent_widget, name, value, attrs and choices.","def __init__ ( self , parent_widget , name , value , attrs , choices ) :"
8373,substitute complain for extend.,extend = complain
8374,"define the function ngettext with 3 arguments: singular, plural and number.","def ngettext ( singular , plural , number ) :"
8375,"if self.app_label is true and app_config.label is not equal to self.app_label,",if self . app_label and app_config . label != self . app_label :
8376,"if script_url is false,",if not script_url :
8377,if not self.error_messages is None. derive the class ModelFormMetaclass from the DeclarativeFieldsMetaclass base class.,class ModelFormMetaclass ( DeclarativeFieldsMetaclass ) :
8378,"msg is a string ""[%s] %s\n"", where '%s' are replaced with return value of the method self.log_date_time_string and formated args.","msg = ""[%s] %s\n"" % ( self . log_date_time_string ( ) , format % args )"
8379,define the function iterbytes with an argument buf.,def iterbytes ( buf ) :
8380,substitute help_texts for value under the 'help_texts' key of attrs dictionary.,attrs [ 'help_texts' ] = help_texts
8381,"if val is not None,",if val is not None :
8382,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
8383,"if self._wrapped is empty,",if self . _wrapped is empty :
8384,define the method __str__ with an argument self.,def __str__ ( self ) :
8385,define the method forms with an argument self.,def forms ( self ) :
8386,"if widget is false,",if not widget :
8387,"prepend string '_' to i converted to an string, append the result to the value under the 'id' key of the attrs_plus.",attrs_plus [ 'id' ] += '_{0}' . format ( i )
8388,"if schemes is not None,",if schemes is not None :
8389,self.vals is an empty list.,self . vals = [ ]
8390,"call the method callback.rindex with an argument character '.', substitute the result for dot.",dot = callback . rindex ( '.' )
8391,resource_string is None.,resource_string = None
8392,"if kwargs is None,",if kwargs is None :
8393,"if sign is contained in self.digits,",if sign in self . digits :
8394,"call the method self.widget_attrs with an argument widget, substitute the result for extra_attrs.",extra_attrs = self . widget_attrs ( widget )
8395,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
8396,"if not,",else :
8397,"call the function import_module with an argument path, substitute it for package.",package = import_module ( path )
8398,substitute initial_id for self.auto_id.,self . initial = initial
8399,"call the method formats.number_format with 2 arguments: number and absolute value of p,","return mark_safe ( formats . number_format ( number , abs ( p ) ) )"
8400,"get value under the 'database' key of the options dictionary, substitute it for db.",db = options . get ( 'database' )
8401,"cal the method re.subn with 3 arguments: raw string '\W', string '_' and new_name.","new_name , num_repl = re . subn ( r'\W' , '_' , new_name )"
8402,"if data_list is true,",if data_list :
8403,"for every field, errors in self.error_dict.items method return value,","for field , errors in self . error_dict . items ( ) :"
8404,"msg is a string ""Execution of %s failed: %s"", with '%s' replaced by self.program and errors.","msg = ""Execution of %s failed: %s"" % ( self . program , errors )"
8405,from django.utils.functional import Promise into default name space.,from django . utils . functional import Promise
8406,define the function conditional_content_removal with request and response as the arguments.,"def conditional_content_removal ( request , response ) :"
8407,"call the method self.__dict__.copy, substitute the result for state.",state = self . __dict__ . copy ( )
8408,value is boolean True.,value = True
8409,"get the value under the 'list' key of options dictionary, if key doesnt exist return False, if the return value is True,","if options . get ( ""list"" , False ) :"
8410,EndToken is an instance of EndToken class.,EndToken = EndToken ( )
8411,"if server is an instance of six.string_types,","if isinstance ( server , six . string_types ) :"
8412,"otherwise if self.fixture_object_count equals self.loaded_object_count,",elif self . fixture_object_count == self . loaded_object_count :
8413,"call the function warnings.warn with 2 arguments: string ""Custom SQL location '/models/sql' is deprecated, use '/sql' instead."" and RemovedInDjango19Warning.","warnings . warn ( ""Custom SQL location '/models/sql' is "" ""deprecated, use '/sql' instead."" , RemovedInDjango19Warning )"
8414,"from django.core.cache.backends.base import InvalidCacheBackendError, CacheKeyWarning and BaseCache into default name space.","from django . core . cache . backends . base import ( InvalidCacheBackendError , CacheKeyWarning , BaseCache )"
8415,"if data is true, substitute it for data, otherwise data is an empty list.",data = data or [ ]
8416,"call the function re.compile with 2 arguments: raw string '<.*?>|((?:\w[-\w]*|&.*?;)+)' and bitwise OR performed with 2 operands,","re_words = re . compile ( r'<.*?>|((?:\w[-\w]*|&.*?;)+)' , re . U | re . S )"
8417,"if file path absolute_path exists,",if path . exists ( absolute_path ) :
8418,define the method as_tuple with 2 arguments: self and value.,"def as_tuple ( self , value ) :"
8419,"if self.stream is not None,",if self . stream is not None :
8420,"call the method tarfile.open with an argument file, substitute the result for self._archive.",self . _archive = tarfile . open ( file )
8421,return nothing.,return
8422,"if not,",else :
8423,skip this loop iteration.,continue
8424,"convert value into a string, take character at the negative arg index, convert it into an integer, return it.",return int ( str ( value ) [ - arg ] )
8425,import bz2.,import bz2
8426,return attachment.,return attachment
8427,"call the ops.quote_name method with argument self._table on the object under the db key of connections dictionary, substitute the result for table.",table = connections [ db ] . ops . quote_name ( self . _table )
8428,"if 'locale' is a directory,",if os . path . isdir ( 'locale' ) :
8429,convert self into a string and return it.,return str ( self )
8430,yield item.,yield item
8431,"call the self.set method with key, new_value and version set to version as arguments.","self . set ( key , new_value , version = version )"
8432,"calculate length of provided and increment it by one, substitute the result for plen.",plen = len ( provided ) + 1
8433,define the method __repr__ with an argument self.,def __repr__ ( self ) :
8434,"call the function allow_lazy with an argument chars, substitute the result for chars.",chars = allow_lazy ( chars )
8435,file is an instance of BytesIO class created with an argument: value under the 'content' key of the data dictionary.,file = BytesIO ( data [ 'content' ] )
8436,call the method filename.encode with an argument string 'ascii',filename . encode ( 'ascii' )
8437,"from django.utils.six.moves.urllib.parse import quote, quote_plus, unquote, unquote_plus, urlparse, urlencode as original_urlencode.","from django . utils . six . moves . urllib . parse import ( quote , quote_plus , unquote , unquote_plus , urlparse , urlencode as original_urlencode )"
8438,call the function,"kwarg = token_kwargs ( [ bit ] , parser )"
8439,return duplicate.,return duplicate
8440,"call the function self._key_to_file with key and version as arguments, use the result as an argument for the call to the self._delete method.","self . _delete ( self . _key_to_file ( key , version ) )"
8441,"call the method f.value_from_object with an argument instance, substitute the result for value under the f.name key of the data dictionary.",data [ f . name ] = f . value_from_object ( instance )
8442,substitute self.rawdata for rawdata.,rawdata = self . rawdata
8443,derive the class BadSerializer from the object base class.,class BadSerializer ( object ) :
8444,"if value is not contained in result,",if value is not result :
8445,call the method self.empty_block_tag with an argument token.,self . empty_block_tag ( token )
8446,"call the method handler.addQuickElement with 2 arguments: string 'updated' and result of the function rfc3339_date,","handler . addQuickElement ( ""updated"" , rfc3339_date ( self . latest_post_date ( ) ) )"
8447,"call the method Field.validate with 2 arguments: self and value, return the result.","return Field . validate ( self , value )"
8448,"for every value in result of the method self.prepare_value called with an argument initial. data_set is set created out of return values of the function force_text called with an argument value,",data_set = set ( force_text ( value ) for value in data )
8449,"if nor,",else :
8450,"define the method save_existing with 4 arguments: self, form, instance and commit set to boolean True.","def save_existing ( self , form , instance , commit = True ) :"
8451,import module smtplib.,import smtplib
8452,define the function get_mod_func with an argument callback.,def get_mod_func ( callback ) :
8453,"try,",try :
8454,"define the method handle_template with 3 arguments: self, template and subdir.","def handle_template ( self , template , subdir ) :"
8455,"raise an ValidationError with 3 arguments: dictionary self.error_messages value under the key 'invalid_pk_value',","raise ValidationError ( self . error_messages [ 'invalid_pk_value' ] , code = 'invalid_pk_value' , params = { 'pk' : pk } , )"
8456,substitute charset for self.encoding.,self . encoding = charset
8457,define the method next_token with an argument self.,def next_token ( self ) :
8458,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
8459,"skip this loop iteration,",continue
8460,"call the method to_python with an argument value from the base class of the DateTimeField class, substitute the result for result.","result = super ( DateTimeField , self ) . to_python ( value )"
8461,substitute _iteritems for iteritems.,iteritems = _iteritems
8462,define the function camel_case_to_spaces with an argument value.,def camel_case_to_spaces ( value ) :
8463,"call the method logging.Formatter with 2 arguments: fmt and dfmt, substitute the result for result.","result = logging . Formatter ( fmt , dfmt )"
8464,"call the method bytes_to_text with 2 arguments: key and self.encoding, substitute the result for key.","key = bytes_to_text ( key , self . encoding )"
8465,"if not, substitute used_name for guessed_filename. if not,",else :
8466,"write string ""No changes detected"" to self.stdout stream.","self . stdout . write ( ""No changes detected"" )"
8467,derive the class TagHelperNode form the base class Node.,class TagHelperNode ( Node ) :
8468,call the method self.open(),self . open ( )
8469,"for every func and unused in filter_expr.filters,","for func , unused in filter_expr . filters :"
8470,derive the class LocaleRegexProvider with object as base class.,class LocaleRegexProvider ( object ) :
8471,"replace all the '%s' occurrences with migration_name and app_label, respectively. target is a list containing tuple with two elements app_label and migration.name.","targets = [ ( app_label , migration . name ) ]"
8472,"'%(errors)s%(label)s %(field)s%(help_text)s ', error_row set to a a string '%s ', row_ender set to a string '', help_text_html set to a string, ' %s ', and errors_on_separate_row set to boolean False. define the method as_p with an argument self.",def as_p ( self ) :
8473,"split lang_code by '-', substitute the first element of the result for generic_lang_code.",generic_lang_code = lang_code . split ( '-' ) [ 0 ]
8474,return next element of the iterable it.,return it . next ( )
8475,output is a list containing an entry: result of the function format_html called with 2 arguments:,"output = [ format_html ( '' , flatatt ( final_attrs ) ) ]"
8476,"try,",try :
8477,"call the parser.add_argument method with the string '--database', default set to DEFAULT_DB_ALIAS and help containig string,","parser . add_argument ( '--database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to print the SQL for. Defaults to the ' '""default"" database.' )"
8478,"if name starts with an string '.',",if name . startswith ( '.' ) :
8479,return a list containing results of the function format_html called with 2 arguments:,"return [ format_html ( '' , self . absolute_path ( path ) ) for path in self . _js ]"
8480,"if not,",else :
8481,"from django.utils.encoding import force_bytes, force_str and force_text into default name space.","from django . utils . encoding import force_bytes , force_str , force_text"
8482,"where '%s' is replaced with command and result of the function get_text_list called with an argument list, with p converted into a string and surrounded with single quotes for every p in parse_until. call the method self.error with 2 arguments: token and string ""Invalid block tag: '%s'"", where '%s' is replaced with command,","raise self . error ( token , ""Invalid block tag: '%s'"" % command )"
8483,"if TemplateDoesNotExist, renamed to e, exception is caught,",except TemplateDoesNotExist as e :
8484,return sites.,return sites
8485,do nothing.,pass
8486,call to the resolver.resolve method with request.path_info as an argument.,resolver_match = resolver . resolve ( request . path_info )
8487,"substitute result for the value of the memo dictionary, with identity of the self object as an key.",memo [ id ( self ) ] = result
8488,substitute smart_bytes for smart_str.,smart_str = smart_bytes
8489,settings.BASE_DIR.,settings . BASE_DIR
8490,define the function popen_wrapper with 2 arguments: args and os_err_exc_type set to CommandError.,"def popen_wrapper ( args , os_err_exc_type = CommandError ) :"
8491,return last element of list_.,return list_ [ - 1 ]
8492,"get the value under the format key of the _serializers dictionary, return the Deserializer filed of the result.",return _serializers [ format ] . Deserializer
8493,define the private method __contains__ with self class instance and key as arguments.,"def __contains__ ( self , key ) :"
8494,"if _cached_filenames is empty and settings.USE_I18N is True,",if not _cached_filenames and settings . USE_I18N :
8495,"if token_string starts with VARIABLE_TAG_START,",if token_string . startswith ( VARIABLE_TAG_START ) :
8496,"decorator function register.filter with 2 arguments string ""slice"" and is_safe set to boolean True.","@ register . filter ( ""slice"" , is_safe = True )"
8497,derive class MovedModule from the _LazyDescr base class.,class MovedModule ( _LazyDescr ) :
8498,"call the method signal.signal with signal.SIGTTOU and old_handler, as arguments.","signal . signal ( signal . SIGTTOU , old_handler )"
8499,input_type is a string 'url'.,input_type = 'url'
8500,return settings.LANGUAGE_CODE.,return settings . LANGUAGE_CODE
8501,remove self._regex_validator from self.validators.,self . validators . remove ( self . _regex_validator )
8502,"call the function io.open with 3 arguments: django_po, string 'r' and encoding set to string 'utf-8' as arguments,","with io . open ( django_po , 'r' , encoding = 'utf-8' ) as fp :"
8503,"return six.text_type(s).encode(encoding, errors).","return six . text_type ( s ) . encode ( encoding , errors )"
8504,define the method __init__ with 2 arguments: self and name.,"def __init__ ( self , name ) :"
8505,substitute HiddenInput for widget.,widget = HiddenInput
8506,"if not,",else :
8507,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
8508,"if cookie is not an instance of http_cookies.BaseCookie,","if not isinstance ( cookie , http_cookies . BaseCookie ) :"
8509,"call the method handler.addQuickElement with 3 arguments: string 'atom:link', None and dictionary with 2 entries: 'self' for 'rel',","handler . addQuickElement ( ""atom:link"" , None , { ""rel"" : ""self"" , ""href"" : self . feed [ 'feed_url' ] } )"
8510,return an empty string.,return ''
8511,"if self.field.show_hidden_initial is true,",if self . field . show_hidden_initial :
8512,"if 'coerce' key of the kwargs dictionary exists remove it and substitute its value for self.coerce,","self . coerce = kwargs . pop ( 'coerce' , lambda val : val )"
8513,define the function do_block with 2 arguments parser and token.,"def do_block ( parser , token ) :"
8514,"call the __init__ method from the base class of the EmailBackend class, with arguments: unpacked list args and unpacked dictionary kwargs.","super ( EmailBackend , self ) . __init__ ( * args , ** kwargs )"
8515,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
8516,substitute self.context.render_context for render_context.,render_context = self . context . render_context
8517,"call the function self._key_to_file with key and version as arguments, substitute it for fname.","fname = self . _key_to_file ( key , version )"
8518,"otherwise if formfield_callback is not callable object,",elif not callable ( formfield_callback ) :
8519,"evaluate self._has_expired with argument key, if the result is True,",if self . _has_expired ( key ) :
8520,from django.template.loader import BaseLoader into default name space.,from django . template . loader import BaseLoader
8521,"try,",try :
8522,define the method delete with arguments self and name.,"def delete ( self , name ) :"
8523,call self.clear method.,self . clear ( )
8524,substitute save_as_new for self.save_as_new.,self . save_as_new = save_as_new
8525,"remover 'file' key from the kwargs dictionary, if it exists substitute it for fp, if not substitute sys.stdout for fp.","fp = kwargs . pop ( ""file"" , sys . stdout )"
8526,from django.forms.fields import IntegerField and BooleanField into default name space.,"from django . forms . fields import IntegerField , BooleanField"
8527,substitute self.form.auto_id for auto_id.,auto_id = self . form . auto_id
8528,return integer -1.,return - 1
8529,"call the function ugettext with an argument msg_with_ctxt, substitute the result for result.",result = ugettext ( msg_with_ctxt )
8530,return j.,return j
8531,derive the class Command from the BaseCommands base class.,class Command ( BaseCommand ) :
8532,substitute chr for int2byte.,int2byte = chr
8533,"for every template_dir in template_dirs,",for template_dir in template_dirs :
8534,"if pythonrc is not a file,",if not os . path . isfile ( pythonrc ) :
8535,set result attribute name to value value.,"setattr ( result , name , value )"
8536,do nothing.,pass
8537,"call the function lazy with 2 arguments: pgettext and six.text_type, substitute pgettext_lazy.","pgettext_lazy = lazy ( pgettext , six . text_type )"
8538,"call the ops.quote_name method with argument self._table on the object under the db key of connections dictionary, substitute the result for table.",table = connections [ db ] . ops . quote_name ( self . _table )
8539,get 'value' attribute of the _active object,"self . old_timezone = getattr ( _active , 'value' , None )"
8540,self._current is None.,self . _current = None
8541,"define the method parse_file_upload with 3 arguments: self, META and post_data.","def parse_file_upload ( self , META , post_data ) :"
8542,"for every refto and refs in return value of the method references.items,","for refto , refs in references . items ( ) :"
8543,"static method,",@ staticmethod
8544,define the method add_root_elements with 2 arguments self and handler.,"def add_root_elements ( self , handler ) :"
8545,import threading.,import threading
8546,import module sys.,import sys
8547,"call the method self.clear_checkbox_name with an argument name, substitute the result for checkbox_name.",checkbox_name = self . clear_checkbox_name ( name )
8548,message_context is None.,message_context = None
8549,derive the class EmailBackend from the ConsoleEmailBackend base class.,class EmailBackend ( ConsoleEmailBackend ) :
8550,define the function prepare_js_for_gettext with an argument js.,def prepare_js_for_gettext ( js ) :
8551,"call the function new_method_proxy with an argument operator.contains, substitute the result for __contains__.",__contains__ = new_method_proxy ( operator . contains )
8552,all_unique_checks is an empty set.,all_unique_checks = set ( )
8553,"convert o to an string, return it.",return str ( o )
8554,"call the function timesince with 2 arguments: value and arg, return the result.","return timesince ( value , arg )"
8555,"call the function smart_text with argument related_att, use the result as an argument for the call to the self.xml.characters method.",self . xml . characters ( smart_text ( related_att ) )
8556,return an empty list.,return [ ]
8557,"if key is contained in dict_,",if key in dict_ :
8558,"if _supported is None,",if _supported is None :
8559,"if ImportError, renamed to e, exception is caught,",except ImportError as e :
8560,"try,",try :
8561,"call the method self.flo.read with an argument self.chunk_size, substitute the result for data.",data = self . flo . read ( self . chunk_size )
8562,current_fields is an empty list.,current_fields = [ ]
8563,"if Exception exception is caught,",except Exception :
8564,"if self._errors is None,",if self . _errors is None :
8565,delete the value under the key key of the self._expire_info dictionary.,del self . _expire_info [ key ]
8566,"split tag_re by self.template_string separator, for every bit in result,",for bit in tag_re . split ( self . template_string ) :
8567,"if i is true,",if i :
8568,"if exists, if not use None as the second argument, return the result. call the function MigrationExecutor with connection and self.migration_progress_callback as arguments, substitute the result fro executor.","executor = MigrationExecutor ( connection , self . migration_progress_callback )"
8569,"if max_length is not None,",if max_length is not None :
8570,from pprint import pformat.,from pprint import pformat
8571,return output.,return output
8572,"call the method __get__ with 2 arguments: instance and owner, from the base class of the classonlymethod class, return the result.","return super ( classonlymethod , self ) . __get__ ( instance , owner )"
8573,"define initialization method __init__ with self class instance, unpacked list args, unpacked dictionary kwargs as arguments.","def __init__ ( self , * args , ** kwargs ) :"
8574,answer is None.,answer = None
8575,"if not,",else :
8576,"if incomment is true,",if incomment :
8577,"required set to boolean True, widget set to None, label set to None, initial set to None, help_text set to an empty string, to_field_name set to None, limit_choices_to set to None, unpacked list args and unpacked dictionary kwargs. if required is true and initial is not None,",if required and ( initial is not None ) :
8578,self._leftover is an empty string.,self . _leftover = b''
8579,__slots__ is a string 'hashvalue'.,__slots__ = 'hashvalue'
8580,"decorator python_2_unicode_compatible,",@ python_2_unicode_compatible
8581,"call the self._lock.writer method, with the result perform the following,",with self . _lock . writer ( ) :
8582,import module os.,import os
8583,"call the method termios.tcgetattr with argument fd, substitute the result for attr_list.",attr_list = termios . tcgetattr ( fd )
8584,derive the class TimeFormat from the base class Formatter.,class TimeFormat ( Formatter ) :
8585,"if not,",else :
8586,"define the method __init__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
8587,"if row is None,",if row is None :
8588,"if attrs is not None,",if attrs is not None :
8589,substitute definition for value under the role key of palette dictionary.,palette [ role ] = definition
8590,"convert self.index into a string and append it to '_' string, substitute it for value under the 'id' key of self.attrs dictionary.","self . attrs [ 'id' ] += ""_%d"" % self . index"
8591,"questioner is an instance of a InteractiveMigrationQuestioner class, created with an argument: defaults set to dictionary with entry:",questioner = MigrationQuestioner ( defaults = { 'ask_merge' : True } )
8592,"skip this loop iteration,",continue
8593,self.resolver_match is None.,self . resolver_match = None
8594,"if second from the end element of args equals a string 'as',","elif args [ - 2 ] == ""as"" :"
8595,derive the class _OFFSET from the Structure base class.,class _OFFSET ( Structure ) :
8596,"call the function get_commands, substitute the value under the name key of the return value, for app_name.",app_name = get_commands ( ) [ name ]
8597,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
8598,derive the class Context from the BaseContext base class.,class Context ( BaseContext ) :
8599,define the method values with an argument self.,def values ( self ) :
8600,"convert self to a tuple, call the result with 2 arguments: block.name and block.nodelist, substitute the result for block.","block = type ( self ) ( block . name , block . nodelist )"
8601,decrement factor by one.,factor -= 1
8602,"define the method new_file with arguments: self, unpacked list args and unpacked dictionary kwargs.","def new_file ( self , * args , ** kwargs ) :"
8603,derive the class SplitHiddenDateTimeWidget from the SplitDateTimeWidget base class.,class SplitHiddenDateTimeWidget ( SplitDateTimeWidget ) :
8604,use global variable _localtime.,global _localtime
8605,substitute deactivate for self.deactivate.,self . deactivate = deactivate
8606,"convert ret to a boolean, return it.",return bool ( ret )
8607,call the method self.style.NOTICE with an argument:,"self . stdout . write ( self . style . NOTICE ( ""\nYou have unapplied migrations; your app may not work properly until they are applied."" ) )"
8608,decorator python_2_unicode_compatible.,@ python_2_unicode_compatible
8609,substitute settings.CACHE_MIDDLEWARE_KEY_PREFIX for key_prefix.,key_prefix = settings . CACHE_MIDDLEWARE_KEY_PREFIX
8610,return an instance of NodeList class.,return NodeList ( )
8611,define the initialization method __init__ with self class instance and table as arguments.,"def __init__ ( self , table ) :"
8612,"call the function os.path.abspath with an argument 'locale', append the result to self.locale_paths.",self . locale_paths . append ( os . path . abspath ( 'locale' ) )
8613,return major.,return major
8614,substitute id for self.id.,self . id = id
8615,c is an empty list.,c = [ ]
8616,"append a tuple containing 3 elements: filename, content, mimetype to self.attachments list.","self . attachments . append ( ( filename , content , mimetype ) )"
8617,substitute server for self._servers.,self . _servers = server
8618,derive the class Command from the AppCommand base class.,class Command ( AppCommand ) :
8619,"dest is string 'use_natural_foreign_keys', default is boolean False and help is a string 'Use natural foreign keys if they are available.'. call the method parser.add_argument with 5 arguments: string '--natural-primary', action set to 'store_true',","parser . add_argument ( '--natural-primary' , action = 'store_true' , dest = 'use_natural_primary_keys' , default = False , help = 'Use natural primary keys if they are available.' )"
8620,"try,",try :
8621,do nothing.,pass
8622,call the method handler.file.close.,handler . file . close ( )
8623,"call the function force_text with an argument base, substitute the result for base.",base = force_text ( base )
8624,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
8625,"data is an instance of BytesIO class, created with an argument: self._body.",data = BytesIO ( self . _body )
8626,"call the function reverse with 4 arguments: view_name, args as args, kwargs as kwargs and current_app as context.current_app,","url = reverse ( view_name , args = args , kwargs = kwargs , current_app = context . current_app )"
8627,"call the self.convert method with i, self.decimal_digits, self.digits and '-' as arguments, assign the result to the neg and value, respectively.","neg , value = self . convert ( i , self . decimal_digits , self . digits , '-' )"
8628,message_context is None.,message_context = None
8629,"call the sql_flush function with self.style, connections under the key with the value of options dictionary under the 'database' key,","return '\n' . join ( sql_flush ( self . style , connections [ options [ 'database' ] ] , only_django = True ) )"
8630,define the method __iter__ with an argument self.,def __iter__ ( self ) :
8631,substitute show_hidden_initial for self.show_hidden_initial.,self . show_hidden_initial = show_hidden_initial
8632,"for every name in pattern.reverse_dict,",for name in pattern . reverse_dict :
8633,define the function regroup with 2 arguments: parser and token.,"def regroup ( parser , token ) :"
8634,append string ' ' to output.,output . append ( ' ' )
8635,"open file named path in 'rb' mode, with file descriptor as f,","with open ( path , 'rb' ) as f :"
8636,if OSError or TypeError errors occurred.,"except ( OSError , TypeError ) :"
8637,"join into a file path: self.locale_dir and string '.pot' appended to domain converted to string, substitute it for potfile.","potfile = os . path . join ( self . locale_dir , '%s.pot' % str ( domain ) )"
8638,return sys.modules dictionary value under the name key.,return sys . modules [ name ]
8639,from django.utils import six into default name space.,from django . utils import six
8640,"if file_name is false,",if not file_name :
8641,"call the function timedelta with an argument minutes set to offset, substitute the result for self.__offset.",self . __offset = timedelta ( minutes = offset )
8642,raise an exception.,raise
8643,value under the item key of self.dict dictionary is None.,self . dict [ item ] = None
8644,"if not,",else :
8645,format_key is a string 'DATE_INPUT_FORMATS'.,format_key = 'DATE_INPUT_FORMATS'
8646,"increment i by integer 1, substitute the result for i.",i = i + 1
8647,"string 'Enter a list of values.' for 'list', return value of the function _ called with an argument, string 'Select a valid choice. %(value)s is not one of the available choices.' for 'invalid_choice', and return value of the function _ called with an argument string '""%(pk)s"" is not a valid value for a primary key.' for 'invalid_pk_value'. define the method __init__ with 10 arguments: self, queryset, cache_choices set to None, required set to boolean True,","def __init__ ( self , queryset , cache_choices = None , required = True , widget = None , label = None , initial = None , help_text = '' , * args , ** kwargs ) :"
8648,substitute content_type for self.content_type.,self . content_type = content_type
8649,"and help is a string 'Migrations will be squashed until and including this migration.'. call the method parser.add_argument with 5 arguments: string '--no-optimize', action as a string 'store_true',","parser . add_argument ( '--no-optimize' , action = 'store_true' , dest = 'no_optimize' , default = False , help = 'Do not try to optimize the squashed operations.' )"
8650,"if member is a directory,",if member . isdir ( ) :
8651,internal_use_only is boolean False.,internal_use_only = False
8652,dirs is a list containing basedir.,dirs = [ basedir ]
8653,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
8654,"if self.verbosity is greater or equal to integer 2,",if self . verbosity >= 2 :
8655,increment the offset by the length of self.__starttag_text.,offset = offset + len ( self . __starttag_text )
8656,"try,",try :
8657,"raise an CommandError exception with an argument string ""errors happened while running msguniq\n%s"", where '%s' is replaced with errors.","raise CommandError ( ""errors happened while running msguniq\n%s"" % errors )"
8658,"if six.PY2 is true,",if six . PY2 :
8659,default_validators is a list with an element validators.validate_email.,default_validators = [ validators . validate_email ]
8660,"called with 2 arguments: value rounded to 1 decimal point and integer 1. move integer 1 left for 10 bits, substitute the result for KB.",KB = 1 << 10
8661,substitute __setitem__ filed of the base class of the class SortedDict for super_set.,"super_set = super ( SortedDict , self ) . __setitem__"
8662,"call the method self._render with an argument context, return the result,",return self . _render ( context )
8663,"call the method six.unichr with an argument c, return the result.",return six . unichr ( c )
8664,_file is None.,_file = None
8665,"call the function date.strftime with an argument string '%Y-%m-%dT%H:%M:%S', substitute the result for time_str.",time_str = date . strftime ( '%Y-%m-%dT%H:%M:%S' )
8666,substitute self.__class__.__doc__ for self.__doc__.,self . __doc__ = self . __class__ . __doc__
8667,"substitute '%s' in string ""#. #-#-#-#-# %s.pot (PACKAGE VERSION) #-#-#-#-#\n"" with self.domain,","msgs = msgs . replace ( ""#. #-#-#-#-# %s.pot (PACKAGE VERSION) #-#-#-#-#\n"" % self . domain , """" )"
8668,from django.utils.module_loading import module_has_submodule into default name space.,from django . utils . module_loading import module_has_submodule
8669,"fetch next entry for the database that cursor points into, substitute first element of it for num.",num = cursor . fetchone ( ) [ 0 ]
8670,"call the method s.getvalue, return the result.",return s . getvalue ( )
8671,"call the method connection.introspection.django_table_names with an argument boolean true, substitute the result for tables.",tables = connection . introspection . django_table_names ( only_existing = True )
8672,define the method __str__ with an argument self.,def __str__ ( self ) :
8673,return an empty string.,return ''
8674,from django.http.response import REASON_PHRASES as STATUS_CODE_TEXT # NOQA into default name space.,from django . http . response import REASON_PHRASES as STATUS_CODE_TEXT
8675,define the method y with an argument self.,def y ( self ) :
8676,return boolean True.,return True
8677,"if timeout is not None,",if timeout is not None :
8678,"call the method data.getlist with an argument name, return the result.",return data . getlist ( name )
8679,extend basedirs list with settings.LOCALE_PATHS.,basedirs . extend ( settings . LOCALE_PATHS )
8680,changed is boolean False.,changed = False
8681,from django.db.migrations.loader import MigrationLoader into default name space.,from django . db . migrations . loader import MigrationLoader
8682,"if Exception exception is caught,",except Exception :
8683,substitute MONTHS for self.months.,self . months = MONTHS
8684,"call the serializer function, call the loads method on the return value with an argument data, return the result.",return serializer ( ) . loads ( data )
8685,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
8686,"property decorator,",@ property
8687,"otherwise if self.verbosity is greater than integer 0,",elif self . verbosity > 0 :
8688,call the method self.clear_cdata_mode.,self . clear_cdata_mode ( )
8689,define the function first with an argument value.,def first ( value ) :
8690,"if value under the 'daemonize' of options dictionary is None,","if options [ ""daemonize"" ] is None :"
8691,"if error is not an instance of ValidationError,","if not isinstance ( error , ValidationError ) :"
8692,do nothing.,pass
8693,"if self.id exists, convert self.id to a string, surround it with round brackets, substitute id for it, otherwise id is an empty string.","id = ""(%s) "" % self . id if self . id else """""
8694,"join statements into a string, separated by newlines, return it.",return '\n' . join ( statements )
8695,"if default_list is None,",if default_list is None :
8696,"try,",try :
8697,"try,",try :
8698,"call the method query_string.decode, substitute the result for query_string.",query_string = query_string . decode ( )
8699,"if source is None,",if source is None :
8700,"if value is false,",if not value :
8701,self._is_rendered is boolean True.,self . _is_rendered = True
8702,define the method write_items with 2 arguments: self and handler.,"def write_items ( self , handler ) :"
8703,call the method self.model._default_manager.get_queryset with an argument qs.,qs = self . model . _default_manager . get_queryset ( )
8704,"field.attname of the data dictionary. if not,",else :
8705,"if ImportError exception is caught,",except ImportError :
8706,call the method zfile.close.,zfile . close ( )
8707,"call the method tpl.format with an arguments self.name, self.sysid and self.pubid.","return tpl . format ( self . name , self . sysid , self . pubid )"
8708,"or settings.FILE_UPLOAD_DIRECTORY_PERMISSIONS if it is. define the method _open with arguments self, name and mode defaulting to string 'rb'.","def _open ( self , name , mode = 'rb' ) :"
8709,"if not,",else :
8710,"'in favor of ""requires_system_checks"".' and RemovedInDjango19Warning. if has_old_option and has_new_option are both true,",if has_old_option and has_new_option :
8711,set self.name attribute of the obj object to result.,"setattr ( obj , self . name , result )"
8712,"if call to the self.is_valid method evaluates to false or self.can_order is false,",if not self . is_valid ( ) or not self . can_order :
8713,from django.utils.module_loading import module_has_submodule into default name space.,from django . utils . module_loading import module_has_submodule
8714,"try,",try :
8715,"call the method validate with an argument value, from the base class of the FloatField class.","super ( FloatField , self ) . validate ( value )"
8716,"call the method _ExpatParser.__init__ with arguments self, unpacked list args and unpacked dictionary kwargs.","_ExpatParser . __init__ ( self , * args , ** kwargs )"
8717,"if changes is true,",if changes :
8718,return expanded_template.,return expanded_template
8719,"compiled_parent.nodelist.get_nodes_by_type, called with an argument BlockNode. call the method block_context.add_blocks with an argument blocks.",block_context . add_blocks ( blocks )
8720,"call the method data.getlist with an argument name, return the result.",return data . getlist ( name )
8721,call the self.xml.addQuickElement method with 2 arguments: string 'object' and attr dictionary containing 1 entry:,"self . xml . addQuickElement ( ""object"" , attrs = { 'pk' : smart_text ( value . _get_pk_val ( ) ) } )"
8722,"define the method inner_run with 3 arguments: self, unpacked list args and unpacked dictionary options.","def inner_run ( self , * args , ** options ) :"
8723,"if self.paginator.count equals a integer 0,",if self . paginator . count == 0 :
8724,"substitute '%s' in string 'id_%s' with name, return it.",id_ = 'id_%s' % name
8725,"divide negative dklen with hlen, substitute floored result for l.",l = - ( - dklen // hlen )
8726,"if connector is true, substitute it for self.connector, otherwise substitute self.default for self.connector.",self . connector = connector or self . default
8727,"call the method translation.get_language, substitute th result for saved_locale.",saved_locale = translation . get_language ( )
8728,call the function get_callable.cache_clear.,get_callable . cache_clear ( )
8729,"define the method add_handlers with 3 arguments: self, logger and handlers.","def add_handlers ( self , logger , handlers ) :"
8730,"for app_config in reversed list of apps.get_app_configs() elements,",for app_config in reversed ( list ( apps . get_app_configs ( ) ) ) :
8731,"if IndexError exception is caught,",except IndexError :
8732,substitute negated for self.negated.,self . negated = negated
8733,"or model._meta.app_config is contained in app_configs, for every field in model._meta.local_fields, #ANNOTATION only if field is an instance of models.BooleanField and field.has_default() evaluates to False. call the Warning function with 4 arguments: string ""BooleanField does not have a default value."",","return [ Warning ( ""BooleanField does not have a default value."" , hint = ( ""Django 1.6 changed the default value of BooleanField from False to None. "" ""See https://docs.djangoproject.com/en/1.6/ref/models/fields/#booleanfield "" ""for more information."" ) , obj = field , id = '1_6.W002' , ) for field in problem_fields ]"
8734,delete value under the 'args' key of the cmd_options dictionary.,del cmd_options [ 'args' ]
8735,"call the method self.attrs.copy, substitute the result for obj.attrs.",obj . attrs = self . attrs . copy ( )
8736,"if not,",else :
8737,multiply offset by integer -1.,offset = - offset
8738,from datetime import timedelta and tzinfo into default name space.,"from datetime import timedelta , tzinfo"
8739,"format string '%s ' with lead, middle and trail, use it as an argument for the call to the function mark_safe,","words [ i ] = mark_safe ( '%s%s%s' % ( lead , middle , trail ) )"
8740,"called with value under the 'pubdate' key of the item dictionary. if value under the 'comments' key of the item dictionary is not None,",if item [ 'comments' ] is not None :
8741,"if f.editable is true and f is an instance of models.AutoField, or f.name is not contained in cleaned_data,","if not f . editable or isinstance ( f , models . AutoField ) or f . name not in cleaned_data :"
8742,return self.,return self
8743,"if not,",else :
8744,derive the class Trans from the object base class.,class Trans ( object ) :
8745,return string 'nd'.,return 'nd'
8746,"assign the result to opts and new_class._meta. for every opt in list containing 3 elements: strings 'fields', 'exclude' and 'localized_fields',","for opt in [ 'fields' , 'exclude' , 'localized_fields' ] :"
8747,"where '%(app_label)s' is replaced for obj.object._meta.app_label, '%(object_name)s' is replaced with obj.object._meta.object_name, '%(pk)s' is replaced with obj.object.pk and '%(error_msg)s' is replaced with result of the function force_text with an argument e. raise an exceptions",raise
8748,"if length of self._cache is greater or equal to self._max_entries,",if len ( self . _cache ) >= self . _max_entries :
8749,"open the file whose name is stored in the value under the 'pidfile' key of options dictionary and mode 'w', with the file descriptor as fp,","with open ( options [ ""pidfile"" ] , ""w"" ) as fp :"
8750,from django.utils.safestring import mark_safe into default name space.,from django . utils . safestring import mark_safe
8751,"if IOError, renamed to e, exception is caught,",except IOError as e :
8752,"call the function normalize with an argument p_pattern, substitute the result for bits.",bits = normalize ( p_pattern )
8753,"call the method translation._info.copy, substitute the result for self._info.",self . _info = translation . _info . copy ( )
8754,"for every hextet in new_ip,",for hextet in new_ip :
8755,"call the method value.decode with an argument charset, substitute the result for value.",value = value . decode ( charset )
8756,"join the results into a string, return it. if hmac has an attribute ""compare_digest"",","if hasattr ( hmac , ""compare_digest"" ) :"
8757,"if ImportError exception is caught,",except ImportError :
8758,"append string ""Field renamed because it started with '_'."" to field_notes.","field_notes . append ( ""Field renamed because it started with '_'."" )"
8759,substitute elements of self.template_string list from upto index to the end for last_lit.,last_bit = self . template_string [ upto : ]
8760,substitute Iterator for create_bound_method.,create_bound_method = types . MethodType
8761,default is a string 'DEFAULT'.,default = 'DEFAULT'
8762,from django.conf import settings into default name space.,from django . conf import settings
8763,"call the method sys.stderr.write with an argument string ""ERROR: %s\n"", where '%s' is replaced by e.","sys . stderr . write ( ""ERROR: %s\n"" % e )"
8764,"call the method self.set_cookie with 5 arguments: key, max_age as integer 0, path as path, domain as domain,","self . set_cookie ( key , max_age = 0 , path = path , domain = domain , expires = 'Thu, 01-Jan-1970 00:00:00 GMT' )"
8765,"if TypeError or ValueError exceptions are caught,","except ( ValueError , TypeError ) :"
8766,substitute user_function for wrapper.__wrapped__.,wrapper . __wrapped__ = user_function
8767,define the method __repr__ with an argument self.,def __repr__ ( self ) :
8768,"call the OVERLAPPED function, substitute the result for overlapped.",overlapped = OVERLAPPED ( )
8769,call the method self._load_post_and_files.,self . _load_post_and_files ( )
8770,incomment is boolean False.,incomment = False
8771,"sum year and off, substitute the result for year.",year = year + off
8772,"from django.forms.widgets import TextInput, NumberInput, EmailInput, URLInput, HiddenInput, MultipleHiddenInput, ClearableFileInput,","from django . forms . widgets import ( TextInput , NumberInput , EmailInput , URLInput , HiddenInput , MultipleHiddenInput , ClearableFileInput , CheckboxInput , Select , NullBooleanSelect , SelectMultiple , DateInput , DateTimeInput , TimeInput , SplitDateTimeWidget , SplitHiddenDateTimeWidget , FILE_INPUT_CONTRADICTION )"
8773,"split tmp at '/' character, substitute the last element of the result for filename.",filename = tmp . split ( '/' ) [ - 1 ]
8774,return f.,return f
8775,"if not,",else :
8776,substitute ValueError for error_class.,error_class = ValueError
8777,"use the result as an argument for the call to the upath function, for every d in dirs, append the results into a list, substitute the resulting list for dirs. return dirs.",return dirs
8778,"while model_dependencies is true,",while model_dependencies :
8779,return boolean False.,return False
8780,append value under the 0 key of the opt_dict dictionary to code_list.,code_list . append ( opt_dict [ o ] )
8781,"call the pyinotify.WatchManager method, assign the result to wm.",wm = pyinotify . WatchManager ( )
8782,"call the method stream_or_string.decode with string 'utf-8' as argument, substitute the result for stream_or_string.",stream_or_string = stream_or_string . decode ( 'utf-8' )
8783,return self._regex.,return self . _regex
8784,from django.utils import six into default name space.,from django . utils import six
8785,"from django.core.management.base import BaseCommand, CommandError, CommandParser and handle_default_options into default name space.","from django . core . management . base import ( BaseCommand , CommandError , CommandParser , handle_default_options )"
8786,"call the function parser.compile_filter with an argument arg for every arg in args from the index 1 to the index -2,",values = [ parser . compile_filter ( arg ) for arg in args [ 1 : - 2 ] ]
8787,import module tempfile.,import tempfile
8788,"call the method self._cache.get_multi with argument new_keys, substitute the result for ret.",ret = self . _cache . get_multi ( new_keys )
8789,"if r ends with string '+00:00',",if r . endswith ( '+00:00' ) :
8790,"for every key in keys,",for key in keys :
8791,"if name is true, substitute it for function_name, if not get '_decorated_function' attribute from func object, if it exists,","function_name = ( name or getattr ( func , '_decorated_function' , func ) . __name__ )"
8792,"call the signal.signal method with signal.SIGTTOU and signal.SIG_IGN as arguments, store the result in old_handler.","old_handler = signal . signal ( signal . SIGTTOU , signal . SIG_IGN )"
8793,substitute callback.func for callback.,callback = callback . func
8794,define the method __str__ with argument self.,def __str__ ( self ) :
8795,self.connection is None.,self . connection = None
8796,"method MONTHS.index, increment the result by integer 1, substitute it for month. call the method m.group with an argument string 'fay', convert the result into a string, substitute it for day.",day = int ( m . group ( 'day' ) )
8797,"result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'Feb.' for 2, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'March' for 3, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'April' for 4, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'May' for 5, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'June' for 6, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'July' for 7, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'Aug.' for 8, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'Sept.' for 9, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'Oct.' for 10, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'Nov.' for 11, result of the function pgettext_lazy with 2 arguments: strings 'abbrev. month' and 'Dec.' for 12, MONTHS_ALT is an dictionary with 12 entries: result of the function pgettext_lazy with 2 arguments: 'alt. month' and 'January' for 1,","MONTHS_ALT = { 1 : pgettext_lazy ( 'alt. month' , 'January' ) , 2 : pgettext_lazy ( 'alt. month' , 'February' ) , 3 : pgettext_lazy ( 'alt. month' , 'March' ) , 4 : pgettext_lazy ( 'alt. month' , 'April' ) , 5 : pgettext_lazy ( 'alt. month' , 'May' ) , 6 : pgettext_lazy ( 'alt. month' , 'June' ) , 7 : pgettext_lazy ( 'alt. month' , 'July' ) , 8 : pgettext_lazy ( 'alt. month' , 'August' ) , 9 : pgettext_lazy ( 'alt. month' , 'September' ) , 10 : pgettext_lazy ( 'alt. month' , 'October' ) , 11 : pgettext_lazy ( 'alt. month' , 'November' ) , 12 : pgettext_lazy ( 'alt. month' , 'December' ) }"
8798,substitute self.parent_instance.pk for orig.,orig = self . parent_instance . pk
8799,"if call to the method self.L evaluates to true, and result of the call to the method self.data.month is greater than integer 2,",if self . L ( ) and self . data . month > 2 :
8800,"call the method match.group with an argument integer 0, return the result.",return match . group ( 0 )
8801,"define the method __init__ with 5 arguments: self, template, context set to None, content_type set to None and status set to None.","def __init__ ( self , template , context = None , content_type = None , status = None ) :"
8802,"for every form in self.initial_forms,",for form in self . initial_forms :
8803,"and request_repr, respectively. reporter is an instance of ExceptionReporter class, created with 3 arguments: request, is_email as boolean True,","reporter = ExceptionReporter ( request , is_email = True , * exc_info )"
8804,value is an instance of a class Decimal created with value as an argument.,value = Decimal ( value )
8805,"define the function check_model_signals with app_config defaulting to None and unpacked dictionary kwargs as arguments,","def check_model_signals ( app_configs = None , ** kwargs ) :"
8806,output is an empty list.,output = [ ]
8807,"for every node in self,",for node in self :
8808,"call the function warnings.warn with 2 arguments: string ""Need {0} values to unpack in for loop; got {1}. This will raise an","warnings . warn ( ""Need {0} values to unpack in for loop; got {1}. "" ""This will raise an exception in Django 2.0."" . format ( num_loopvars , len_item ) , RemovedInDjango20Warning )"
8809,default_list is an empty list.,default_list = [ ]
8810,"remove 'sep' key from the kwargs dictionary, if it exists substitute it for sep, if not sep is None.","sep = kwargs . pop ( ""sep"" , None )"
8811,substitute t.lineno for comment_lineno_cache.,comment_lineno_cache = t . lineno
8812,for every plan_node in return value of the graph.forwards_plan method called with node as argument.,for plan_node in graph . forwards_plan ( node ) :
8813,"call the method parser.compile_filter with an argument value, append the result to args.",args . append ( parser . compile_filter ( value ) )
8814,"call the method lookups.appendlist with 2 arguments: name and a tuple containing 3 elements: new_matches, sum of p_pattern and pat,","lookups . appendlist ( name , ( new_matches , p_pattern + pat , dict ( defaults , ** pattern . default_kwargs ) ) )"
8815,where '%s' is replaced with subject. substitute i for p.,p = i
8816,upto is integer 0.,upto = 0
8817,"call the method self.split_leading_dir with an argument name, substitute the second element of the result for name.",name = self . split_leading_dir ( name ) [ 1 ]
8818,call the method self.close.,self . close ( )
8819,"call the function re.compile with 2 arguments: raw string ""([A-Za-z]{1,8}(?:-[A-Za-z0-9]{1,8})*|\*)(?:\s*;\s*q=(0(?:\.\d{,3})?|1(?:.0{,3})?))?(?:\s*,\s*|$)"",","accept_language_re = re . compile ( r''' ([A-Za-z]{1,8}(?:-[A-Za-z0-9]{1,8})*|\*) # ""en"", ""en-au"", ""x-y-z"", ""es-419"", ""*"" (?:\s*;\s*q=(0(?:\.\d{,3})?|1(?:.0{,3})?))? # Optional ""q=1.00"", ""q=0.8"" (?:\s*,\s*|$) # Multiple accepts per header. ''' , re . VERBOSE )"
8820,"if ValueError exception is caught,",except ValueError :
8821,"split string name into two parts from the right side by the separator '.', substitute parts for path and module, respectively.","path , module = name . rsplit ( '.' , 1 )"
8822,"if call to the function _samefile with old_file_name and new_file_name evaluates to boolean True,","if _samefile ( old_file_name , new_file_name ) :"
8823,decompress is boolean True.,decompress = True
8824,clean_data is an empty list.,clean_data = [ ]
8825,"if settings.TEMPLATE_STRING_IF_INVALID is true,",if settings . TEMPLATE_STRING_IF_INVALID :
8826,define the method tokenize with an argument self.,def tokenize ( self ) :
8827,is_compressed is boolean True.,is_compressed = True
8828,import pyinotify module.,import pyinotify
8829,"define the method handle with 3 arguments: self, unpacked args and unpacked dictionary options.","def handle ( self , * args , ** options ) :"
8830,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
8831,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
8832,substitute it for self.view_name. define the method __getitem__ with arguments self and index.,"def __getitem__ ( self , index ) :"
8833,import module os.,import os
8834,"if ValueError or TypeError exceptions are caught,","except ( ValueError , TypeError ) :"
8835,return s.,return s
8836,"call the function sself.__cast with an argument self, divide the result with rhs and return the reminder of the division.",return self . __cast ( ) % rhs
8837,"call the cursor method on the value under the db key of connections dictionary, preform following with return value named cursor,",with connections [ db ] . cursor ( ) as cursor :
8838,"if method msg.get_charset evaluates to true, call the get_output_charset method on the return value of the msg.get_charset method, substitute the result for charset, otherwise if it is false, substitute the string 'utf-8' for charset.",charset = msg . get_charset ( ) . get_output_charset ( ) if msg . get_charset ( ) else 'utf-8'
8839,"create a tuple out of elements under the key field of the form.cleaned_data dictionary, add elements of date_data to it,","data = ( form . cleaned_data [ field ] , ) + date_data"
8840,derive the class ChoiceFieldRenderer from the object base class.,class ChoiceFieldRenderer ( object ) :
8841,"classmethod decorator,",@ classmethod
8842,"tt is an tuple with 9 elements: dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, result of the function dt.weekday,","tt = ( dt . year , dt . month , dt . day , dt . hour , dt . minute , dt . second , dt . weekday ( ) , 0 , 0 )"
8843,"define the function patch_response_headers, with response and cache_timeout with None as default value, as arguments.","def patch_response_headers ( response , cache_timeout = None ) :"
8844,return dec.,return dec
8845,"otherwise if call the method simple_url_2_re.match with an argument middle evaluates to true,",elif simple_url_2_re . match ( middle ) :
8846,return an instance of VariableNode class with an argument filter_expression.,return VariableNode ( filter_expression )
8847,"evaluate the method s.decode with string 'utf-8' and errors as the arguments,","return s . decode ( 'utf-8' , errors ) . encode ( encoding , errors )"
8848,substitute self.current_token for t.,t = self . current_token
8849,"convert app_template_dirs to a tuple, return it.",return tuple ( app_template_dirs )
8850,"call the method self.total_form_count, for every i in sequence of integers, from 0 to the previous result,","for i in range ( 0 , self . total_form_count ( ) ) :"
8851,"define method get_exception_response, with self class instance, request, resolver and status_code as the arguments.","def get_exception_response ( self , request , resolver , status_code ) :"
8852,new_result is an empty list.,new_result = [ ]
8853,"if termios is true,",if termios :
8854,"if not,",else :
8855,"substitute smtplib.SMTP_SSL for connection_class if self.use_ssl is true, if not substitute smtplib.SMTP for connection_class.",connection_class = smtplib . SMTP_SSL if self . use_ssl else smtplib . SMTP
8856,"for every i and handler in enumerated iterator self._upload_handlers,","for i , handler in enumerate ( self . _upload_handlers ) :"
8857,"for every uclass, unique_check in all_unique_checks,","for uclass , unique_check in all_unique_checks :"
8858,"if offset is not None,",if offset is not None :
8859,"if not,",else :
8860,decorator register with argument Tags.compatibility.,@ register ( Tags . compatibility )
8861,"return a string ""<%s: %s>"" formated with self.__class__.__name__,","return ""<%s: %s>"" % ( self . __class__ . __name__ , super ( MultiValueDict , self ) . __repr__ ( ) )"
8862,derive the class ResolverMatch with object as base class.,class ResolverMatch ( object ) :
8863,substitute self.version for version.,version = self . version
8864,"if chunk_size is false,",if not chunk_size :
8865,substitute dt for self.__dt.,self . __dt = dt
8866,"if not,",else :
8867,from django.utils.safestring import mark_safe into default name space.,from django . utils . safestring import mark_safe
8868,"if f doesnt has an 'save_form_data' attribute,","if not hasattr ( f , 'save_form_data' ) :"
8869,or value equals return value of the call to Decimal with argument '-Inf' raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
8870,"if name is true, substitute it for self.name, otherwise substitute func.__name__ for self.name.",self . name = name or func . __name__
8871,from django.core.management.utils import handle_extensions into default name space.,from django . core . management . utils import handle_extensions
8872,"define the method get_backend_timeout with self class instance and timeout set to DEFAULT_TIMEOUT as arguments,","def get_backend_timeout ( self , timeout = DEFAULT_TIMEOUT ) :"
8873,append other_dict to self.dicts.,self . dicts . append ( other_dict )
8874,"if not,",else :
8875,substitute DEFAULT_PORT for self.port.,self . port = DEFAULT_PORT
8876,"if name is not contained in data,",if name not in data :
8877,"if data is true,",if data :
8878,supports_microseconds is boolean False.,supports_microseconds = False
8879,"call the method self.__cast, if the result equals other, return boolean True, otherwise return boolean False.",return self . __cast ( ) == other
8880,substitute first element of s for quote.,quote = s [ 0 ]
8881,"_assertCountEqual is a strnig ""assertItemsEqual"".","_assertCountEqual = ""assertItemsEqual"""
8882,"try,",try :
8883,import module warnings.,import warnings
8884,from django.utils.six.moves import cPickle as pickle into default name space.,from django . utils . six . moves import cPickle as pickle
8885,return path.,return path
8886,import module sys.,import sys
8887,return self.,return self
8888,for every cat in value under the 'categories' key of the self.feed dictionary.,for cat in self . feed [ 'categories' ] :
8889,do nothing.,pass
8890,"if not self.localized_fields is None. get 'labels' attribute from the options object, if it exists substitute it for self.labels, if not self.labels is None.","self . labels = getattr ( options , 'labels' , None )"
8891,"if value is an instance of datetime.date,","if isinstance ( value , datetime . date ) :"
8892,"call the function call_command with 3 arguments: string 'loaddata', string 'initial_data' and unpacked dictionary options.","call_command ( 'loaddata' , 'initial_data' , ** options )"
8893,update flat dictionary with d.,flat . update ( d )
8894,random is an instance of random.SystemRandom class.,random = random . SystemRandom ( )
8895,from django.views import debug into default name space.,from django . views import debug
8896,"call the options.get method with string 'MAX_ENTRIES' and integer 300 as arguments, use the string 'max_entries' and previous result as the arguments for the call to the params.get method, substitute the result for max_entries.","max_entries = params . get ( 'max_entries' , options . get ( 'MAX_ENTRIES' , 300 ) )"
8897,"return list with 2 elements: first_item and second_item, and old_style_list.","return [ first_item , second_item ] , old_style_list"
8898,decorator function wraps with an argument fget.,@ wraps ( fget )
8899,define the function template_localtime with 2 arguments: value and use_tz set to None.,"def template_localtime ( value , use_tz = None ) :"
8900,from itertools import chain into default name space.,from itertools import chain
8901,"add set to DEFAULT_DB_ALIAS and help is 'Nominates a specific database to dump fixtures from. Defaults to the ""default"" database.'. call the method parser.add_argument with 6 arguments: string '-e', string '--exclude', dest set to 'exclude', action set to 'append',","parser . add_argument ( '-e' , '--exclude' , dest = 'exclude' , action = 'append' , default = [ ] , help = 'An app_label or app_label.ModelName to exclude ' '(use multiple --exclude to exclude multiple apps/models).' )"
8902,from django.utils.xmlutils import SimplerXMLGenerator into default name space.,from django . utils . xmlutils import SimplerXMLGenerator
8903,"if not,",else :
8904,"call the method field.clean with an argument value, substitute the result for value.",value = field . clean ( value )
8905,"try,",try :
8906,from django.utils.timezone import utc and get_fixed_timezone into default name space.,"from django . utils . timezone import utc , get_fixed_timezone"
8907,"from django.template.context import BaseContext, Context, RequestContext and ContextPopException into default namespace.","from django . template . context import ( BaseContext , Context , RequestContext , ContextPopException )"
8908,model is None.,model = None
8909,"if not,",else :
8910,"dest set to string 'load_initial_data', default set to True, help containing string 'Tells Django not to load any initial data after database synchronization.' as arguments. call the method parser.add_argument with string '--database', action containing string 'store', dest set to string 'database',","parser . add_argument ( '--database' , action = 'store' , dest = 'database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to synchronize. ' 'Defaults to the ""default"" database.' )"
8911,"if not,",else :
8912,substitute name for self.name.,self . name = name
8913,"call the function _checkLevel with an argument level, use the result as an argument for the call to the function handler.setLevel.",handler . setLevel ( _checkLevel ( level ) )
8914,from django.core.servers.basehttp import get_internal_wsgi_application into default name space.,from django . core . servers . basehttp import get_internal_wsgi_application
8915,"call the function get_script_prefix, substitute the result for prefix.",prefix = get_script_prefix ( )
8916,define the method find_potfiles with an arguments self and root.,"def find_files ( self , root ) :"
8917,"if key is contained in dict_,",if key in dict_ :
8918,write current_chunk to file fd.,"os . write ( fd , current_chunk )"
8919,objects_in_fixture is integer 0.,objects_in_fixture = 0
8920,__dispatch is None.,__dispatch = None
8921,"substitute it for self.allow_empty_file, if not self.allow_empty_file is boolean False. call the method __init__ from the base class of the FileField class, with 2 arguments: unpacked list args and unpacked dictionary.","super ( FileField , self ) . __init__ ( * args , ** kwargs )"
8922,from django.utils.translation import ugettext_lazy as _ into default name space.,from django . utils . translation import ugettext_lazy as _
8923,"call the function split_domain_port with an argument host, assign the result to domain and port, respectively.","domain , port = split_domain_port ( host )"
8924,substitute field_name for old_field_name.,old_field_name = field_name
8925,remove '__weakref__' key from the orig_vars dictionary.,"orig_vars . pop ( '__weakref__' , None )"
8926,import module re.,import re
8927,return callback and a empty string.,"return callback , ''"
8928,close file_ file descriptor.,file_ . close ( )
8929,"call the method test_runner.run_tests with an argument test_labels, substitute it for failures.",failures = test_runner . run_tests ( test_labels )
8930,"if name converted to lower case equals to string 'subject',",if name . lower ( ) == 'subject' :
8931,"bring integer 2 to the power of 10, multiply it by integer 64, substitute the result for DEFAULT_CHUNK_SIZE.",DEFAULT_CHUNK_SIZE = 64 * 2 ** 10
8932,"if s is an instance of the subclass Exception,","if isinstance ( s , Exception ) :"
8933,"for every resultclass in resultclasses,",for resultclass in resultclasses :
8934,"call the method connection.cursor, with the result renamed to cursor, perform the following,",with connection . cursor ( ) as cursor :
8935,"in_tag is boolean True if in_tag is False, otherwise is boolean False.",in_tag = not in_tag
8936,"if tag is not contained in TemplateTagNode.mapping,",if tag not in TemplateTagNode . mapping :
8937,substitute tup for elements of self.,self [ : ] = tup
8938,return boolean True.,return True
8939,do nothing.,pass
8940,"raise an ImproperlyConfigured exception with argument string 'Path for saving email messages exists, but is not a directory: %s', replace '%s' with self.file_path.","raise ImproperlyConfigured ( 'Path for saving email messages exists, but is not a directory: %s' % self . file_path )"
8941,call the function exhaust with an argument self._input_data.,exhaust ( self . _input_data )
8942,"if self.verbosity is greater or equal to integer 2,",if self . verbosity >= 2 :
8943,import module base64.,import base64
8944,"for every item in sequence,",for item in sequence :
8945,substitute length of content for self.size.,self . size = len ( content )
8946,"define the method render with 5 arguments: self, name set to None, value set to None, attrs set to None and choices set to an empty tuple.","def render ( self , name = None , value = None , attrs = None , choices = ( ) ) :"
8947,return val.,return val
8948,pop the element form the path as substitute the result for ns.,ns = path . pop ( )
8949,_urllib_error_moved_attributes is a list with 3 elements: result of the call to the function MovedAttribute with 3 arguments:,"_urllib_error_moved_attributes = [ MovedAttribute ( ""URLError"" , ""urllib2"" , ""urllib.error"" ) , MovedAttribute ( ""HTTPError"" , ""urllib2"" , ""urllib.error"" ) , MovedAttribute ( ""ContentTooShortError"" , ""urllib"" , ""urllib.error"" ) , ]"
8950,"if self.allow_empty_file and file_size are both false,",if not self . allow_empty_file and not file_size :
8951,"join the executor.loader.unmigrated_apps into a string separated by string ', ' append it to the end of a string "" Synchronize unmigrated apps: "",","self . stdout . write ( self . style . MIGRATE_LABEL ( "" Synchronize unmigrated apps: "" ) + ( "", "" . join ( executor . loader . unmigrated_apps ) ) )"
8952,import code.,import code
8953,"raise a ValidationError exception with 2 arguments: return value of the function _ with an string argument 'Enter a valid integer.',","raise ValidationError ( _ ( 'Enter a valid integer.' ) , code = 'invalid' )"
8954,from django.core import checks into default name space.,from django . core import checks
8955,"kwargs is an empty dictionary,",kwargs = { }
8956,raise an exception.,raise
8957,"call the function local, substitute the result for self._caches.",self . _caches = local ( )
8958,"dest as a string 'symlinks', default as boolean False and help as a string 'Follows symlinks to directories when examining ' 'source code and templates for translation strings.'. call the method parser.add_argument with 7 arguments: string '--ignore', string '-i', action as a string 'append',","parser . add_argument ( '--ignore' , '-i' , action = 'append' , dest = 'ignore_patterns' , default = [ ] , metavar = 'PATTERN' , help = 'Ignore files or directories matching this glob-style pattern. ' 'Use multiple times to ignore more.' )"
8959,"from django.utils.translation import get_language, to_locale and check_for_language into default name space.","from django . utils . translation import get_language , to_locale , check_for_language"
8960,"convert the result into a string and substitute it for value. if not,",else :
8961,import module zlib.,import zlib
8962,"call the method apps.get_app_config with an argument app_label, for every app_label in app_labels, append the results to a list,",app_configs = [ apps . get_app_config ( app_label ) for app_label in app_labels ]
8963,if nodelist is an instance of NodeList and node is not an instance of TextNode class.,"if isinstance ( nodelist , NodeList ) and not isinstance ( node , TextNode ) :"
8964,"if not,",else :
8965,return nothing.,return
8966,define the method n with an argument self.,def n ( self ) :
8967,"if call to the function response.has_header with string 'Vary' as an argument returns True,",if response . has_header ( 'Vary' ) :
8968,"call the method self._resolve, substitute the result for result.",result = self . _resolve ( )
8969,"call the method self.tag with 2 arguments name and func, return the result.","return self . tag ( name , func )"
8970,"property decorator,",@ property
8971,from django.conf import settings into default name space.,from django . conf import settings
8972,substitute bp for lbp.,lbp = bp
8973,substitute result for self dictionary under key key.,self [ key ] = result
8974,"define the method unsign with arguments self, value and max_age set to None.","def unsign ( self , value , max_age = None ) :"
8975,"test_runner is an instance of TestRunner class, called with an argument unpacked dictionary options.",test_runner = TestRunner ( ** options )
8976,"match the rawdata from the position i+1, with tagfind pattern, assign the result to the match.","match = tagfind . match ( rawdata , i + 1 )"
8977,value is an empty list.,value = [ ]
8978,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
8979,BLOCK_TAG_END is a string '%}'.,BLOCK_TAG_END = '%}'
8980,from pkg_resources import resource_string into default name space.,from pkg_resources import resource_string
8981,"convert root.manager.loggerDict into a list, substitute it for existing.",existing = list ( root . manager . loggerDict )
8982,derive the class MultiValueDictKeyError from the KeyError base class.,class MultiValueDictKeyError ( KeyError ) :
8983,"join the list of statements into a string separated by new lines, return it.",return '\n' . join ( statements )
8984,"try,",try :
8985,"call the get_complete_version function with version as argument, store the result in version.",version = get_complete_version ( version )
8986,call the method self.find_template_cache.clear.,self . find_template_cache . clear ( )
8987,"call iri_to_uri with return value of the request.build_absolute_uri method, us the result as the argument for the call to the",url = hashlib . md5 ( force_bytes ( iri_to_uri ( request . build_absolute_uri ( ) ) ) )
8988,from django.utils.translation import templatize into default namespace.,from django . utils . translation import templatize
8989,from django.conf import settings into default name space.,from django . conf import settings
8990,if status is not None.,if status is not None :
8991,"e is an instance of TemplateSyntaxError class, created with an argument msg.",e = TemplateSyntaxError ( msg )
8992,substitute result for value under the self.asvar key of context dictionary.,context [ self . asvar ] = result
8993,"if not,",else :
8994,"substitute value under the 'prefix' key of dictionary d, substitute it for prefix.",prefix = d [ 'prefix' ]
8995,"format string ' _(%s) ', with fmatch, write it to out.",out . write ( ' _(%s) ' % fmatch )
8996,return _wrapper.,return _wrapper
8997,define the function escape_filter with an argument value.,def escape_filter ( value ) :
8998,modes is an empty list.,nodes = [ ]
8999,"if value is an instance of six.string_types,","if isinstance ( value , six . string_types ) :"
9000,self._populated is boolean False.,self . _populated = False
9001,from django.utils.six.moves import xrange into default name space.,from django . utils . six . moves import xrange
9002,"if not,",else :
9003,return id_.,return id_
9004,"if context.autoescape is true and value is not an instance of SafeData, or value is an instance of EscapeData,","if ( ( context . autoescape and not isinstance ( value , SafeData ) ) or isinstance ( value , EscapeData ) ) :"
9005,"for every name in loggers,",for name in loggers :
9006,tried is an empty list.,tried = [ ]
9007,derive the class Tags with base class object.,class Tags ( object ) :
9008,create directories from the elements in filename.,os . makedirs ( dirname )
9009,"get config dictionary element under 'loggers' key, if it exists substitute it for loggers, if not, loggers is EMPTY_DICT.","loggers = config . get ( 'loggers' , EMPTY_DICT )"
9010,disable_existing is boolean True. call the method logging._handler.clear.,logging . _handlers . clear ( )
9011,"try,",try :
9012,"concatenate opts.concrete_fields, opts.virtual_fields and opts.many_to_many, for every f in the result,",for f in opts . concrete_fields + opts . virtual_fields + opts . many_to_many :
9013,"substitute the length of the resulting list for number_equal. if number_equal is greater than integer 40,",if number_equal > 40 :
9014,"try,",try :
9015,"call the function t.render with an argument context_instance, return the result.",return t . render ( context_instance )
9016,return self.DSTOFFSET.,return self . DSTOFFSET
9017,"try,",try :
9018,define the method getvalue with an argument self.,def getvalue ( self ) :
9019,"called with an argument option_value, append the result to output. for every option in option_label,",for option in option_label :
9020,"append '/' to tmp, substitute it for display_url.",display_url = tmp + '/'
9021,"fields is an tuple containing instances of the class DateField, created with 3 arguments: input_formats set to input_date_formats,","fields = ( DateField ( input_formats = input_date_formats , error_messages = { 'invalid' : errors [ 'invalid_date' ] } , localize = localize ) , TimeField ( input_formats = input_time_formats , error_messages = { 'invalid' : errors [ 'invalid_time' ] } , localize = localize ) , )"
9022,define the method get_default_prefix with an argument cls.,def get_default_prefix ( cls ) :
9023,return s.,return s
9024,call the method self.full_clean.,self . full_clean ( )
9025,"and truncate, return the result. return elements of words joined in a string, separated with whitespaces.",return ' ' . join ( words )
9026,"if expires is false,",if not expires :
9027,"perform bitwise OR with 2 operands: previous result and result, substitute the result for result. if result is equal to integer 0, return boolean True, otherwise return boolean False.",return result == 0
9028,"call the method __getitem__ with an argument key from the base class of the class DictWrapper, substitute the result for value.","value = super ( DictWrapper , self ) . __getitem__ ( key )"
9029,"if exit_code is lesser than integer 0,",if exit_code < 0 :
9030,ch is None.,ch = None
9031,substitute e and tb for v.__cause__ and v.__traceback__.,"v . __cause__ , v . __traceback__ = e , tb"
9032,"call the function json.loads with an argument stream_or_string, substitute the result for objects.",objects = json . loads ( stream_or_string )
9033,"call the function urlsplit with an argument url, assign the result to scheme, netloc, path, query and fragment, respectively.","scheme , netloc , path , query , fragment = urlsplit ( url )"
9034,"if url_name exists substitute it for view_path, if not substitute .self._func_path for view_path.",view_path = url_name or self . _func_path
9035,derive the SimpleUploadedFile class from the InMemoryUploadedFile base class.,class SimpleUploadedFile ( InMemoryUploadedFile ) :
9036,increment i by integer 1.,i += 1
9037,derive the class HttpResponseNotFound from the HttpResponse base class.,class HttpResponseNotFound ( HttpResponse ) :
9038,return value.,return value
9039,define the method __deepcopy__ with arguments self and memo.,"def __deepcopy__ ( self , memo ) :"
9040,"otherwise if o is an instance of datetime.time object,","elif isinstance ( o , datetime . time ) :"
9041,"from ctypes import sizeof, c_ulong, c_void_p, c_int64, Structure, Union, POINTER, windll and byref into default name space.","from ctypes import ( sizeof , c_ulong , c_void_p , c_int64 , Structure , Union , POINTER , windll , byref )"
9042,"if not,",else :
9043,"call the method form.save with an argument commit as commit, return the result.",return form . save ( commit = commit )
9044,"if not,",else :
9045,"return an empty string,",return ''
9046,"define the method error with 3 arguments: self, token and msg.","def error ( self , token , msg ) :"
9047,"if not,",else :
9048,substitute _html_parser.interesting_normal for self.interesting.,self . interesting = _html_parser . interesting_normal
9049,"if GeneratorExit exception is caught,",except GeneratorExit :
9050,"get the value under the 'id' key of the self.attrs dictionary, return it, if the key doesnt exists return an empty string.","return self . attrs . get ( 'id' , '' )"
9051,self.find_template_cache is an empty dictionary.,self . find_template_cache = { }
9052,import module inspect.,import inspect
9053,where '%s' is replaced with node.nodeName and attr. define the function getInnerText with an argument node.,def getInnerText ( node ) :
9054,"if fset is not None,",if fset is not None :
9055,"get the value from the options dictionary under the key 'traceback', substitute it for self.show_traceback.",self . show_traceback = options . get ( 'traceback' )
9056,"write string "" all instances of the codebase have applied the migrations you squashed,"" to self.stdout.","self . stdout . write ( "" all instances of the codebase have applied the migrations you squashed,"" )"
9057,"call the function func with 2 arguments: obj and unpacked list arg_vals, substitute the result for new_obj.","new_obj = func ( obj , * arg_vals )"
9058,call the method self.close.,self . close ( )
9059,"if not,",else :
9060,"call the method get_runner with 2 arguments: settings and value under the 'testrunner' key of the options dictionary, substitute it for the TestRunner.","TestRunner = get_runner ( settings , options . get ( 'testrunner' ) )"
9061,"if self.method is not equal to string 'POST',",if self . method != 'POST' :
9062,"if ImportError exception is caught,",except ImportError :
9063,from django.contrib.auth import get_user_model into default name space.,from django . contrib . auth import get_user_model
9064,"if other is not equal to list containing elements of self, return boolean True, otherwise return boolean False.",return list ( self ) != other
9065,call the method handler.endElement with an argument string 'item'.,"handler . endElement ( ""item"" )"
9066,return None.,return None
9067,return an empty dictionary.,return { }
9068,define method add_arguments with class instance self and parser as the input arguments.,"def add_arguments ( self , parser ) :"
9069,"call the method token.split_contents, convert the result into a list and substitute it for bits.",bits = list ( token . split_contents ( ) )
9070,"call method request.build_absolute_uri, use the result as an argument for function call of iri_to_uri,",url = hashlib . md5 ( force_bytes ( iri_to_uri ( request . build_absolute_uri ( ) ) ) )
9071,msg_count is integer 0.,msg_count = 0
9072,define the method _resolve with an argument self.,def _resolve ( self ) :
9073,"format, if its true, otherwise string 'TIME_FORMAT' and use_l10n as use_l10n, return the result. define the function number_format with 4 arguments: value, decimal_pos set to None, use_l10n set to None,","def number_format ( value , decimal_pos = None , use_l10n = None , force_grouping = False ) :"
9074,"append self.msgattrib_options to a list containing string 'msgattrib', append to it a list containing string '-o', pofile and pofile,","args = [ 'msgattrib' ] + self . msgattrib_options + [ '-o' , pofile , pofile ]"
9075,define the method close with an argument self.,def close ( self ) :
9076,"use the result as the argument for the call to the function hashlib.sha1, call the hexdigest method on the result, join template_name and previous final result into a string, separated with '-', return it. if not,",else :
9077,"for every key in return value of the method c.keys call,",for key in c . keys ( ) :
9078,"subtract i from len_values, decrement the result by integer 1, substitute it for value under the 'revcounter' key of the loop_dict dictionary.",loop_dict [ 'revcounter0' ] = len_values - i - 1
9079,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
9080,from django.utils import translation into default namespace.,from django . utils import translation
9081,derive the class Loader from the BaseLoader base class.,class Loader ( BaseLoader ) :
9082,substitute opname for opfunc.__name__.,opfunc . __name__ = opname
9083,"and result of the function humanize called with an argument fixture_dir. if length of fixture_files_in_dir is greater than 1,",if len ( fixture_files_in_dir ) > 1 :
9084,"evaluate the method self._cache.incr with key and negative delta as arguments, return the result.","return self . _cache . incr ( key , - delta )"
9085,"call the method six.iteritems with an argument dict_, for every k and v in the result,","for k , v in six . iteritems ( dict_ ) :"
9086,"return an instance of the class Media, called with an unpacked dictionary with an entry: name appended to string '_',","return Media ( ** { str ( name ) : getattr ( self , '_' + name ) } )"
9087,substitute msg for self.msg.,self . msg = msg
9088,"decorator python_2_unicode_compatible,",@ python_2_unicode_compatible
9089,define the method tell with an argument self.,def tell ( self ) :
9090,call the method settings.configure.,settings . configure ( )
9091,substitute message.error_list for message.,message = message . error_list
9092,define the method parse_name with arguments self and fixture_name.,"def parse_name ( self , fixture_name ) :"
9093,vary_headers is an empty list.,vary_headers = [ ]
9094,index_output is an empty list.,index_output = [ ]
9095,"append current_number to a list for current_number in self._unget_history, if current_number is equal to num_bytes,",number_equal = len ( [ current_number for current_number in self . _unget_history if current_number == num_bytes ] )
9096,derive the class Paginator from the object base class.,class Paginator ( object ) :
9097,call the method self.xml.endElement with an argument string 'field'.,"self . xml . endElement ( ""field"" )"
9098,return result.,return result
9099,raise an DisallowedHost exception with an argument msg.,raise DisallowedHost ( msg )
9100,define the function is_safe_url with 2 arguments url and host set to None.,"def is_safe_url ( url , host = None ) :"
9101,"if key_function is callable object,",if callable ( key_func ) :
9102,"otherwise if length of fks_to_parent is zero,",elif len ( fks_to_parent ) == 0 :
9103,"help is a string ""Prints the DROP TABLE SQL statements for the given app name(s)."".","help = ""Prints the DROP TABLE SQL statements for the given app name(s)."""
9104,"of if sample starts with codecs.BOM_UTF16_LE or sample starts with codecs.BOM_UTF16_BE, return the evaluated boolean expression. define the function is_writable with path as argument,",def is_writable ( path ) :
9105,"if length of bits is not equal to integer 2,",if len ( bits ) != 2 :
9106,"call the method m.group with an argument integer 0, use it as an argument for the call to the re_tag.match function,",tag = re_tag . match ( m . group ( 0 ) )
9107,"call the method self._read_limited, store the return value into chunk.",chunk = self . _read_limited ( )
9108,"call the method self.extract with an argument absolute_path, return the result.",return self . extract ( absolute_path )
9109,do nothing.,pass
9110,define the method S with an argument self.,def S ( self ) :
9111,"replace '%s' with self.file_path and err, respectively. if self.file_path file is not writable,","if not os . access ( self . file_path , os . W_OK ) :"
9112,"if not,",else :
9113,"if f.rel and f.rel.to are not contained in to_delete,",if f . rel and f . rel . to not in to_delete :
9114,"and unpacked dictionary kwargs. define the method subwidgets with 5 arguments: self, name, value, attrs set to None and choices set to an empty tuple.","def subwidgets ( self , name , value , attrs = None , choices = ( ) ) :"
9115,substitute context for current.,current = context
9116,"call the self._list_cache_files method, substitute the result for filelist.",filelist = self . _list_cache_files ( )
9117,return final_output.,return final_output
9118,"try,",try :
9119,define the method get_nodes_by_type with 2 arguments: self and nodetype.,"def get_nodes_by_type ( self , nodetype ) :"
9120,"if attrs is true, call the function flatatt with an argument attrs, substitute the result for attrs, if not attrs is an empty string.",attrs = flatatt ( attrs ) if attrs else ''
9121,"if id_ is true,",if id_ :
9122,"from django.utils.translation import ugettext_lazy, ugettext as _ and pgettext into default name space.","from django . utils . translation import ugettext_lazy , ugettext as _ , pgettext"
9123,"'%(label)s %(field)s%(help_text)s
', error_row set to a a string '%s', row_ender set to a string '', help_text_html set to a string, %s ' and errors_on_separate_row set to boolean True. define the method non_field_errors with an argument self.",def non_field_errors ( self ) :
9124,"if self has an 'error_dict' attribute,","if hasattr ( self , 'error_dict' ) :"
9125,"get config dictionary element under 'root' key, if it exists substitute it for root, if not, root is None.","root = config . get ( 'root' , None )"
9126,"""No file was submitted. Check the encoding type on the form."" for 'invalid', return value of the function _ called with an argument, string ""No file was submitted."" for 'missing', return value of the function _ called with an argument ""The submitted file is empty."", for 'empty', return value of the function ungettext_lazy called with 3 arguments: string 'Ensure this filename has at most %(max)d character (it has %(length)d).', string 'Ensure this filename has at most %(max)d characters (it has %(length)d).' and string 'max' for 'max_length', and return value of the function _ called with an argument string, 'Please either submit a file or check the clear checkbox, not both.' for 'contradiction'. define the method __init__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
9127,value under the index key of the hextets dictionary is a string '0'.,hextets [ index ] = '0'
9128,"raise an ValidationError with 2 arguments: dictionary self.error_messages value under the key 'required',","raise ValidationError ( self . error_messages [ 'required' ] , code = 'required' )"
9129,return boolean True.,return True
9130,self.waiting_readers is an integer 0.,self . waiting_readers = 0
9131,"join self.dirpath, thefile into a file path, substitute it for work_file.","work_file = os . path . join ( self . dirpath , thefile )"
9132,"define the method value_from_datadict with 2 arguments: self, data, files and name.","def value_from_datadict ( self , data , files , name ) :"
9133,"call the method widget_attrs with an argument widget, from the base class of the FloatField class, substitute the result for attrs.","attrs = super ( FloatField , self ) . widget_attrs ( widget )"
9134,"and unpacked dictionary kwargs, return the result. define the function assertRaisesRegex with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def assertRaisesRegex ( self , * args , ** kwargs ) :"
9135,"sum trail and closing, substitute the result for lead.",trail = closing + trail
9136,substitute message for self.message.,self . message = message
9137,"convert to an integer value under the 'COMP_CWORD' key of the os.environ dictionary, substitute it for cword.",cword = int ( os . environ [ 'COMP_CWORD' ] )
9138,"call the method self.incr_version with key, negative delta and version as arguments.","return self . incr_version ( key , - delta , version )"
9139,"get the value under the 'csrf_token' key of the context dictionary, if it exists substitute the result for csrf_token,","csrf_token = context . get ( 'csrf_token' , None )"
9140,"rendering_attrs is a list containing 3 strings: 'template_name', 'context_data' and '_post_render_callbacks'.","rendering_attrs = [ 'template_name' , 'context_data' , '_post_render_callbacks' ]"
9141,raise an exception.,raise
9142,define the method end_serialization with an argument self.,def end_serialization ( self ) :
9143,"sum punctuation and trail, substitute the result for trail.",trail = punctuation + trail
9144,from xml.dom import pulldom into default name space.,from xml . dom import pulldom
9145,substitute complain for __setitem__.,__setitem__ = complain
9146,substitute key for op.id.,op . id = key
9147,"raise a exception of ComandError class with string ""More than one migration matches '%s' in app '%s'. Please be more specific."",","raise CommandError ( ""More than one migration matches '%s' in app '%s'. Please be more specific."" % ( migration_name , app_label ) )"
9148,"if init_path is not a file,",if not os . path . isfile ( init_path ) :
9149,name is a property object with _get_name as a getter method and _set_name as a setter method.,"name = property ( _get_name , _set_name )"
9150,define the method tzname with 2 arguments self and dt.,"def tzname ( self , dt ) :"
9151,"multiply 10 to the power of 200, with itself, substitute the result for pos_inf.",pos_inf = 1e200 * 1e200
9152,substitute first decimal_pos elements of dec_part for dec_part.,dec_part = dec_part [ : decimal_pos ]
9153,"replace every occurrence of old for new in msgs, substitute the result for msgs.","msgs = msgs . replace ( old , new )"
9154,"call the method tempfile.mkstemp with dir set to self._dir, substitute result for fd and tmp_path, respectively.","fd , tmp_path = tempfile . mkstemp ( dir = self . _dir )"
9155,"call the method validators.ip_address_validators with arguments protocol, unpack_ipv4, substitute first element of the result for self.default_validators.","self . default_validators = validators . ip_address_validators ( protocol , unpack_ipv4 ) [ 0 ]"
9156,define the method N with an argument self.,def N ( self ) :
9157,do nothing.,pass
9158,from django.utils.functional import cached_property into default name space.,from django . utils . functional import cached_property
9159,define the method __next__ with an argument self.,def __next__ ( self ) :
9160,define the method close with argument self.,def close ( self ) :
9161,"call the method formats.localize_input with an argument value, return the result.",return formats . localize_input ( value )
9162,"call the function lazy with 2 arguments: ugettext and six.text_type, substitute ugettext_lazy.","ugettext_lazy = lazy ( ugettext , six . text_type )"
9163,return self._wrapped.__dict__.,return self . _wrapped . __dict__
9164,"if size is None or size is greater than self.remaining,",if size is None or size > self . remaining :
9165,"define the private method __str__, with self instance of this class as the only argument.",def __str__ ( self ) :
9166,"call the method warnings.warn with 2 arguments: string ""FastCGI support has been deprecated and will be removed in Django 1.9."",","warnings . warn ( ""FastCGI support has been deprecated and will be removed in Django 1.9."" , RemovedInDjango19Warning )"
9167,raise an EmptyPage exception with string 'That page number is less than 1' as an argument.,raise EmptyPage ( 'That page number is less than 1' )
9168,do nothing.,pass
9169,"called with value under the 'QUERY_STRING' key of the self.META dictionary and append it to string '?', append the result th the self.path converted into a string and return it, if the value under the 'QUERY_STRING' key of the self.META dictionary is false, return self.path converted into a string. def the method get_signed_cookie with 5 arguments: self, key, default set to RAISE_ERROR, salt as an empty string,","def get_signed_cookie ( self , key , default = RAISE_ERROR , salt = '' , max_age = None ) :"
9170,"call the method __init__ from the base class of the class Truncator,","super ( Truncator , self ) . __init__ ( lambda : force_text ( text ) )"
9171,"and for every _, nodelist in self.conditions_nodelists. define the method render with 2 arguments: self and context.","def render ( self , context ) :"
9172,substitute app_namefor command.,command = app_name
9173,"call the method render from the base class of the class NullBooleanSelect, with 4 arguments: name, value, attrs and choices,","return super ( NullBooleanSelect , self ) . render ( name , value , attrs , choices )"
9174,"if key is not contained in self,",if key not in self :
9175,"define the function module_to_dict with 2 arguments: module and omittable as a lambda function with an argument k,","def module_to_dict ( module , omittable = lambda k : k . startswith ( '_' ) ) :"
9176,substitute timezone for _active.value.,_active . value = timezone
9177,return an empty list.,return [ ]
9178,return result.,return result
9179,"dir set to None as the arguments. call the method tmpfile.mkstemp with suffix set to suffix, prefix set to prefix and dir set to dir, store the result in the fd and name, respective.","fd , name = tempfile . mkstemp ( suffix = suffix , prefix = prefix , dir = dir )"
9180,derive the class NumberInput from the TextInput base class.,class NumberInput ( TextInput ) :
9181,from django.conf import settings into default name space.,from django . conf import settings
9182,raise an MultiPartParserError with an argument string 'Invalid boundary in multipart: %s' is replaced with boundary.,raise MultiPartParserError ( 'Invalid boundary in multipart: %s' % boundary )
9183,"return path,",return path
9184,"call the function mark_safe with an argument data, return the result.",return mark_safe ( data )
9185,"try,",try :
9186,"call the function func with 2 arguments: unpacked list self.__args and unpacked dictionary self.__kw, substitute the result for res.","res = func ( * self . __args , ** self . __kw )"
9187,define the method __hash__ with an argument self.,def __hash__ ( self ) :
9188,"if ImportError exception is caught,",except ImportError :
9189,from django.conf import settings into default namespace.,from django . conf import settings
9190,RemovedInDjango19Warning and integer 2. substitute dicts for self.dicts.,self . dicts = dicts
9191,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
9192,"replace '%s' in string 'ignoring directory %s\n' with dirname, write it to self.stdout stream.",self . stdout . write ( 'ignoring directory %s\n' % dirname )
9193,"append tuple containing 3 elements: candidate, fixture_dir and fixture_name to list fixture_files_in_dir.","fixture_files_in_dir . append ( ( candidate , fixture_dir , fixture_name ) )"
9194,"try,",try :
9195,"define the method compile_function_error with 3 arguments: self, token and e.","def compile_function_error ( self , token , e ) :"
9196,"if relative_dir is true,",if relative_dir :
9197,call the settings.INSTALLED_APPS.,settings . INSTALLED_APPS
9198,"call the function BytesIO, substitute the result for self.file.",self . file = BytesIO ( )
9199,"if ImportError exception is caught,",except ImportError :
9200,return filter_func.,return filter_func
9201,"concatenate string 'templates/' and template_name, substitute the result for pkg_name.",pkg_name = 'templates/' + template_name
9202,"7 for 'jul', 8 for 'aug', 9 for 'sep', 10 for 'oct', 11 for 'nov' and 12 for 'dec'. MONTHS_AP is an dictionary with 12 entries: result of the function pgettext_lazy with 2 arguments: 'abbrev. month' and 'Jan.' for 1,","MONTHS_AP = { 1 : pgettext_lazy ( 'abbrev. month' , 'Jan.' ) , 2 : pgettext_lazy ( 'abbrev. month' , 'Feb.' ) , 3 : pgettext_lazy ( 'abbrev. month' , 'March' ) , 4 : pgettext_lazy ( 'abbrev. month' , 'April' ) , 5 : pgettext_lazy ( 'abbrev. month' , 'May' ) , 6 : pgettext_lazy ( 'abbrev. month' , 'June' ) , 7 : pgettext_lazy ( 'abbrev. month' , 'July' ) , 8 : pgettext_lazy ( 'abbrev. month' , 'Aug.' ) , 9 : pgettext_lazy ( 'abbrev. month' , 'Sept.' ) , 10 : pgettext_lazy ( 'abbrev. month' , 'Oct.' ) , 11 : pgettext_lazy ( 'abbrev. month' , 'Nov.' ) , 12 : pgettext_lazy ( 'abbrev. month' , 'Dec.' ) }"
9203,do nothing.,pass
9204,valid is boolean True.,valid = True
9205,define the function timeuntil_filter with 2 arguments value and arg set to None.,"def timeuntil_filter ( value , arg = None ) :"
9206,"try,",try :
9207,"define method has_key with self class instance, key and version set to None as arguments.","def has_key ( self , key , version = None ) :"
9208,"call the method self.configure_filter with an argument value under name key of formatters dictionary,",formatters [ name ] = self . configure_formatter ( formatters [ name ] )
9209,"call the method self.widget.decompress with an argument initial, substitute the result for initial.",initial = self . widget . decompress ( initial )
9210,"call the method self.common_logger_config with 3 arguments: root, config and incremental.","self . common_logger_config ( root , config , incremental )"
9211,substitute name for self.name.,self . name = name
9212,"sum sign and hhmm, substitute the result for name.",name = sign + hhmm
9213,reuturn cache.,return cache
9214,"instantiate TimestampSigner object with arguments key and salt set to salt, call its method unsign with arguments:","base64d = force_bytes ( TimestampSigner ( key , salt = salt ) . unsign ( s , max_age = max_age ) )"
9215,"if Exception exception is caught,",except Exception :
9216,import module os.,import os
9217,substitute package.__name__ for package_name.,package_name = package . __name__
9218,"replace every occurrence of '\n' in p for ' ',","paras = [ '%s
' % p . replace ( '\n' , ' ' ) for p in paras ]"
9219,"return a string ""%s%02d%02d"" formated with sign, floored result of the division of seconds by integer 3000,","return ""%s%02d%02d"" % ( sign , seconds // 3600 , ( seconds // 60 ) % 60 )"
9220,"if character '@' is contained in addr,",if '@' in addr :
9221,substitute kwargs for self.kwargs.,self . kwargs = kwargs
9222,return all the integers from the integer 1 to the self.num_pages.,"return range ( 1 , self . num_pages + 1 )"
9223,"call the function self._new_gnu_trans with an argument localedir, substitute the result for translation.",translation = self . _new_gnu_trans ( localedir )
9224,"if not,",else :
9225,"substitute the result for new_obj. if not,",else :
9226,"wrte to the standard output result of the call to the method self.style.MIGRATE_SUCCESS with string "" FAKED"" as a argument.","self . stdout . write ( self . style . MIGRATE_SUCCESS ( "" FAKED"" ) )"
9227,call the options.update method with an argument kwargs.,options . update ( kwargs )
9228,"if not,",else :
9229,from django.conf import settings into default name space.,from django . conf import settings
9230,self._handler_class is None.,self . _handler_class = None
9231,"EMPTY_VALUES is a tuple containing 5 initial elements: None, empty string, empty list, empty tuple and an empty dictionary.","EMPTY_VALUES = ( None , '' , [ ] , ( ) , { } )"
9232,"try,",try :
9233,"if match is true,",if match :
9234,"if not,",else :
9235,extend self.children list with data.children.,self . children . extend ( data . children )
9236,"substitute __name__ field of the result for function_name, in not, substitute func.__name__ for function_name. define the function compile_func with 2 arguments: parser and token.","def compile_func ( parser , token ) :"
9237,return boolean True.,return True
9238,import io.,import io
9239,do nothing.,pass
9240,"get the attribute 'Media' of the cls object, if it exists substitute it for definition, if not definition is None.","definition = getattr ( cls , 'Media' , None )"
9241,"if serializers.SerializerDoesNotExist exception is caught,",except serializers . SerializerDoesNotExist :
9242,"call the method self.configurator.convert with an argument value, substitute the result for result.",result = self . configurator . convert ( value )
9243,append line to lines.,lines . append ( line )
9244,define the method l with an argument self.,def l ( self ) :
9245,derive the class BaseArchive from the object base class.,class BaseArchive ( object ) :
9246,substitute cache_choices for self.cache_choices.,self . cache_choices = cache_choices
9247,"call the method bmatch.group with an argument integer 1, use the result as an argument for the call to the function context_re.match,",context_match = context_re . match ( bmatch . group ( 1 ) )
9248,"string 'Ensure this value has at most %(limit_value)d characters (it has %(show_value)d).' and string 'limit_value', substitute the result for message. code is a string 'max_length'",code = 'max_length'
9249,"call the method token.split_contents, substitute the result for bits.",bits = token . contents . split ( )
9250,compare_to is None.,compare_to = None
9251,call the self.xml.endDocument method.,self . xml . endDocument ( )
9252,"size, charset, content_type_extra. substitute field_name for self.field_name.",self . field_name = field_name
9253,"for every o in opts. for every val in value,",for val in value :
9254,derive the class Textarea from the Widget base class.,class Textarea ( Widget ) :
9255,define the method _get_num_pages with an argument self.,def _get_num_pages ( self ) :
9256,"if not,",else :
9257,substitute col_name for value under the 'db_column' key of the field_params dictionary.,field_params [ 'db_column' ] = col_name
9258,"try,",try :
9259,"get the value under the root key of the convert dictionary, for every opname and opfunc in the result,","for opname , opfunc in convert [ root ] :"
9260,use global variables _format_cache and _format_modules_cache.,"global _format_cache , _format_modules_cache"
9261,call the function import_module with 2 arguments: string .management and app_config.name.,"import_module ( '.management' , app_config . name )"
9262,"and result of the function force_str called with an argument safe, use the result as an argument for the call to the function force_text, return the result. call the function allow_lazy with 2 arguments: urlquote_plus and six.text_type, substitute the result for urlquote_plus.","urlquote_plus = allow_lazy ( urlquote_plus , six . text_type )"
9263,"if not,",else :
9264,"if self.is_bound is true and i is smaller than self.initial_form_count,",if self . is_bound and i < self . initial_form_count ( ) :
9265,derive the class IncludeNode from the Node base class.,class IncludeNode ( Node ) :
9266,"call the method self.valid_value with an argument val, if it evaluates to false,",if not self . valid_value ( val ) :
9267,substitute token.source for e.django_template_source.,e . django_template_source = token . source
9268,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
9269,"call the method parser.parse with an argument tuple with an element string 'endifchanged', substitute the result for nodelist_false.","nodelist_false = parser . parse ( ( 'endifchanged' , ) )"
9270,_trans is an instance of Trans class.,_trans = Trans ( )
9271,decorator function register.filter with 2 arguments is_safe set to boolean True and needs_autoescape set to boolean True.,"@ register . filter ( is_safe = True , needs_autoescape = True )"
9272,"call the method literal_match.group with an integer 1, substitute the result for ip_address.",ip_address = literal_match . group ( 1 )
9273,"if ValueError exception is caught,",except ValueError :
9274,"call the function get_mod_func with an argument mod_name, store the result in parentmod and submod, respectively.","parentmod , submod = get_mod_func ( mod_name )"
9275,"if TypeError or ValueError exceptions are caught,","except ( ValueError , TypeError ) :"
9276,define the method utcoffset with 2 arguments self and dt.,"def utcoffset ( self , dt ) :"
9277,"define the method __new__ with 5 arguments: cls, fget set to None, fset set to None, fdel set to None and doc set to None.","def __new__ ( cls , fget = None , fset = None , fdel = None , doc = None ) :"
9278,"split ip_str by ':', substitute the result for hextets.","hextets = ip_str . split ( "":"" )"
9279,substitute origin for self.origin.,self . origin = origin
9280,derive the class TemplateCommand from the BaseCommand base class.,class TemplateCommand ( BaseCommand ) :
9281,"multiply 10 to the power of 200, with 10 to the power of 200, negative, substitute the result for neg_inf.",neg_inf = - 1e200 * 1e200
9282,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
9283,substitute first element of base64d for base64d.,base64d = base64d [ 1 : ]
9284,"if e.errno equals to errno.EEXIST,",if e . errno == errno . EEXIST :
9285,"if self.is_bound is true,",if self . is_bound :
9286,define the function removetags with 2 arguments value and arg.,"def removetags ( value , tags ) :"
9287,COMMENT_TAG_END is a string '#}'.,COMMENT_TAG_END = '#}'
9288,call the __init__ method of the base class of the EmailBackend class with arguments: unpacked list args and unpacked dictionary kwargs.,"super ( EmailBackend , self ) . __init__ ( * args , ** kwargs )"
9289,call the method os.setsid.,os . setsid ( )
9290,"substitute the result for value under the 'clear_checkbox_id' key of the substitutions dictionary. call the method render from the instance of CheckboxInput class, with 3 arguments: checkbox_name, boolean False,","substitutions [ 'clear' ] = CheckboxInput ( ) . render ( checkbox_name , False , attrs = { 'id' : checkbox_id } )"
9291,substitute name for self.name.,self . name = name
9292,call the method self.merge with an argument translation.,self . merge ( translation )
9293,"call the method s.decode with an argument string 'utf-8', substitute the result for s.",s = s . decode ( 'utf-8' )
9294,call the method __init__ with an argument name form the base class of the class _LazyModule.,"super ( _LazyModule , self ) . __init__ ( name )"
9295,return dec.,return dec
9296,"append string ""Field renamed because it ended with '_'."" to field_notes.","field_notes . append ( ""Field renamed because it ended with '_'."" )"
9297,"if not,",else :
9298,define the method __ne__ with 2 arguments: self and other.,"def __ne__ ( self , other ) :"
9299,return self._post and self._files.,"return self . _post , self . _files"
9300,"call the method router.db_for_write with argument self.cache_model_class, substitute the result for db.",db = router . db_for_read ( self . cache_model_class )
9301,"append the results into a list, substitute it for value. node is an instance of CycleNode class, created wiht an argument values.",node = CycleNode ( values )
9302,"if IOError exception is caught,",except IOError :
9303,"if not,",else :
9304,"call the function format_html with 3 arguments string '{1} ', attrs and contents, substitute the result for contents.","contents = format_html ( '{1} ' , attrs , contents )"
9305,"call the function format_html with 4 arguments: string '{2} ', option_value, selected_html,","return format_html ( '{2} ' , option_value , selected_html , force_text ( option_label ) )"
9306,"status code set to integer 400, return the result. call the method self.get_exception_response with the request, resolver and integer 400 as the arguments, substitute the result for response.","response = self . get_exception_response ( request , resolver , 400 )"
9307,"'get_language_from_request', 'get_language_info', 'get_language_bidi', 'check_for_language', 'to_locale', 'templatize', 'string_concat', 'gettext', 'gettext_lazy', 'gettext_noop', 'ugettext', 'ugettext_lazy', 'ugettext_noop', 'ngettext', 'ngettext_lazy', 'ungettext', 'ungettext_lazy', 'pgettext', 'pgettext_lazy', 'npgettext', 'npgettext_lazy' and 'LANGUAGE_SESSION_KEY'. LANGUAGE_SESSION_KEY is an string '_language'.",LANGUAGE_SESSION_KEY = '_language'
9308,"if self.number is lesser than self.paginator.num_pages, return boolean True, otherwise return boolean False.",return self . number < self . paginator . num_pages
9309,"call the method optimizer.optimize with 2 arguments operations and migration.app_label, substitute the result for new_operations.","new_operations = optimizer . optimize ( operations , migration . app_label )"
9310,set field cdata_tag for this class instance to None.,self . cdata_tag = None
9311,substitute cache_clear for wrapper.cache_clear.,wrapper . cache_clear = cache_clear
9312,define the function get_callable with arguments lookup_view and can_fail set to boolean False.,"def get_callable ( lookup_view , can_fail = False ) :"
9313,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
9314,make a directory top_dir.,os . makedirs ( top_dir )
9315,derive the class JsonResponse from the HttpResponse base class.,class JsonResponse ( HttpResponse ) :
9316,substitute logging.root for root.,root = logging . root
9317,from django.core.serializers.json import DjangoJSONEncode into default name space.,from django . core . serializers . json import DjangoJSONEncoder
9318,"decorator stringfilter,",@ stringfilter
9319,"if not,",else :
9320,"for every k and v in the previous result, add a key into a dictionary: v converted to an integer for k, substitute the resulting dictionary for kw. call the method datetime.date with an argument unpacked dictionary kw, return the result.",return datetime . date ( ** kw )
9321,"property decorator,",@ property
9322,"raise an CommandError with an argument string ""Problem installing fixture '%s': %s is not a known serialization format."",","raise CommandError ( ""Problem installing fixture '%s': %s is not a known "" ""serialization format."" % ( '' . join ( parts [ : - 1 ] ) , parts [ - 1 ] ) )"
9323,define the method T with an argument self.,def T ( self ) :
9324,return result.,return result
9325,"if i incremented by 1 is lesser than length of chunks,",if i + 1 < len ( chunks ) :
9326,"for every migration in merge_migrations,",for migration in merge_migrations :
9327,"result of the call to the function _ with an argument string 'feb' for 2, result of the call to the function _ with an argument string 'mar' for 3, result of the call to the function _ with an argument string 'apr' for 4, result of the call to the function _ with an argument string 'may' for 5, result of the call to the function _ with an argument string 'jun' for 6, result of the call to the function _ with an argument string 'jul' for 7, result of the call to the function _ with an argument string 'aug' for 8, result of the call to the function _ with an argument string 'sep' for 9, result of the call to the function _ with an argument string 'oct' for 10, result of the call to the function _ with an argument string 'nov' for 11, result of the call to the function _ with an argument string 'dec' for 12. MONTHS_3_REV is an dictionary with 12 entries: 1 for 'jan', 2 for 'feb', 3 for 'mar', 4 for 'apr', 5 for 'may', 6 for 'jun',","MONTHS_3_REV = { 'jan' : 1 , 'feb' : 2 , 'mar' : 3 , 'apr' : 4 , 'may' : 5 , 'jun' : 6 , 'jul' : 7 , 'aug' : 8 , 'sep' : 9 , 'oct' : 10 , 'nov' : 11 , 'dec' : 12 }"
9328,do nothing.,pass
9329,"replace every occurrence of newline character in value with string ' ', use it as an argument for the call to the mark_safe,","return mark_safe ( value . replace ( '\n' , ' ' ) )"
9330,return msg.,return msg
9331,define the method __enter__ with an argument self.,def __enter__ ( self ) :
9332,"define the method find_template with 3 arguments: self, name, dirs set to None.","def find_template ( self , name , dirs = None ) :"
9333,from django.utils._os import npath and upath into default name space.,"from django . utils . _os import npath , upath"
9334,define the function ugettext with an argument message.,def ugettext ( message ) :
9335,"if not,",else :
9336,"if not,",else :
9337,"if KeyError exception is caught,",except KeyError :
9338,"if value under the header key of the self.META dictionary is equal to value,","if self . META . get ( header , None ) == value :"
9339,import module datetime.,import datetime
9340,and self.model._meta.pk.name. substitute the value under the pk_key key of the self.data dictionary for pk.,pk = self . data [ pk_key ]
9341,define the method tzname with 2 arguments self and dt.,"def tzname ( self , dt ) :"
9342,"if self._callback is not None,",if self . _callback is not None :
9343,"self.compression_formats is an dictionary with 3 initial entries: tuple containing 2 elements: open and string 'rb' for None,","self . compression_formats = { None : ( open , 'rb' ) , 'gz' : ( gzip . GzipFile , 'rb' ) , 'zip' : ( SingleZipReader , 'r' ) , }"
9344,return boolean False.,return False
9345,substitute elements of self.validators list for result.validators.,result . validators = self . validators [ : ]
9346,"substitute the result for qs. pks is a set containing results of the call to the function force_text with an argument, key attribute of the o object,","pks = set ( force_text ( getattr ( o , key ) ) for o in qs )"
9347,"try,",try :
9348,"if default is true and RAISE_ERROR is false,",if default is not RAISE_ERROR :
9349,from django.utils.six.moves import xrange into default name space.,from django . utils . six . moves import xrange
9350,"assign values under the 'app_label' and 'migration_name' keys of the options dictionary to the app_label and migration_name, respectively.","app_label , migration_name = options [ 'app_label' ] , options [ 'migration_name' ]"
9351,"if LookupError exception is caught,",except LookupError :
9352,"call the function warnings.warn with 2 arguments: string ""NoArgsCommand class is deprecated and will be removed in Django 2.0. ""","warnings . warn ( ""NoArgsCommand class is deprecated and will be removed in Django 2.0. "" ""Use BaseCommand instead, which takes no arguments by default."" , RemovedInDjango20Warning )"
9353,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
9354,"if except UnicodeDecodeError exception is caught,",except UnicodeDecodeError :
9355,define the function smart_urlquote with an argument url.,def smart_urlquote ( url ) :
9356,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
9357,"append self.msgmerge_options to a list containing string 'msgmerge', append to it a list containing pofile and potfile, substitute the result for args.","args = [ 'msgmerge' ] + self . msgmerge_options + [ pofile , potfile ]"
9358,substitute urlconf_name for self.urlconf_name.,self . urlconf_name = urlconf_name
9359,"otherwise if name is not None and filter_func is not None,",elif name is not None and filter_func is not None :
9360,derive the class CheckboxChoiceInput from the ChoiceInput base class.,class CheckboxChoiceInput ( ChoiceInput ) :
9361,"zfile is an instance of GzipFile class, created with 3 arguments: mode set to string 'wb', compresslevel set to integer 6,","zfile = GzipFile ( mode = 'wb' , compresslevel = 6 , fileobj = zbuf )"
9362,"initial_set is set created out of return values of the function force_text called with an argument value,",initial_set = set ( force_text ( value ) for value in self . prepare_value ( initial ) )
9363,"call the function table_name_filter with an argument table_name, if it evaluates to true,",if not table_name_filter ( table_name ) :
9364,return week_number.,return week_number
9365,substitute index for end.,end = index
9366,"call the method Model._default_manager.db_manager with an argument db, on the result call the get_by_natural_key with,",obj . pk = Model . _default_manager . db_manager ( db ) . get_by_natural_key ( * natural_key ) . pk
9367,"if self.obj is None,",if self . obj is None :
9368,from django.utils import six into default name space.,from django . utils import six
9369,substitute base_url for self.base_url.,self . base_url = base_url
9370,"as the arguments, substitute the result for response. if Exception, renamed to e, exception is caught,",except Exception as e :
9371,"substitute the '%s' with table and list containing return value of the method call ops.value_to_db_datetime with argument now on the object under the db key of connections dictionary, respectively. call the method cursor.execute with string ""SELECT COUNT(*) FROM %s"" as argument, substitute the '%s' with table.","cursor . execute ( ""SELECT COUNT(*) FROM %s"" % table )"
9372,"if ch equals string '+',",if ch == '+' :
9373,"call the method warnings.warn with string '""validate"" has been deprecated in favor of ""check"".' and RemovedInDjango19Warning as arguments.","warnings . warn ( '""validate"" has been deprecated in favor of ""check"".' , RemovedInDjango19Warning )"
9374,var_obj is None.,var_obj = None
9375,"if self.output_transaction is true,",if self . output_transaction :
9376,"if not,",else :
9377,"call the function do_translate with 2 arguments: message and string 'ugettext', return the result.","return do_translate ( message , 'ugettext' )"
9378,"s is an instance of the Select class, created with choices set to choices.",s = Select ( choices = choices )
9379,call the method httpd.set_app with an argument wsgi_handler.,httpd . set_app ( wsgi_handler )
9380,"read file fp, call the method decode on the result with an argument settings.FILE_CHARSET, return tuple containing 2 elements,","return ( fp . read ( ) . decode ( settings . FILE_CHARSET ) , filepath )"
9381,"define the function rmtree_errorhandler with 3 arguments func, path and exc_info.","def rmtree_errorhandler ( func , path , exc_info ) :"
9382,"for every template_dir in template_dirs,",for template_dir in template_dirs :
9383,"call the function settings.is_overridden with argument string 'MIDDLEWARE_CLASSES', if the result is boolean False,",if not settings . is_overridden ( 'MIDDLEWARE_CLASSES' ) :
9384,"try,",try :
9385,substitute settings.DEFAULT_CHARSET for self._charset.,self . _charset = settings . DEFAULT_CHARSET
9386,call the function os.kill with os.getpid() and negative exit_code as arguments.,"os . kill ( os . getpid ( ) , - exit_code )"
9387,"raise CommandError exception with string ""This script should be run from the Django Git checkout or your project or app tree, or with the settings module specified."", as argument.","raise CommandError ( ""This script should be run from the Django Git "" ""checkout or your project or app tree, or with "" ""the settings module specified."" )"
9388,"call the method clean with an argument data from the base class of the class URLField, return the result.","return super ( URLField , self ) . clean ( value )"
9389,"define the method token_kwargs: bits, parser and support_legacy set to boolean False.","def token_kwargs ( bits , parser , support_legacy = False ) :"
9390,"if UnicodeEncodeError exception is caught,",except UnicodeEncodeError :
9391,"and e.level is lesser than checks.WARNING and result of the method e.is_silenced in false. append e to errors list for every e in all_issues, if checks.ERROR is lesser than or equal to e.level,",errors = [ e for e in all_issues if checks . ERROR <= e . level < checks . CRITICAL ]
9392,call the function _ with an argument string '%(datetime)s couldn\'t be interpreted in time zone %(current_timezone)s; it ',message = _ ( '%(datetime)s couldn\'t be interpreted ' 'in time zone %(current_timezone)s; it ' 'may be ambiguous or it may not exist.' )
9393,elt is an list with an element elt.,elt = [ elt ]
9394,substitute paginator for self.paginator.,self . paginator = paginator
9395,"call the method parser.compile_filter with an argument, third element of bits, substitute the result for val2.",val2 = parser . compile_filter ( bits [ 2 ] )
9396,from yaml import CSafeLoader as SafeLoader into default name space.,from yaml import CSafeLoader as SafeLoader
9397,from importlib import import_module into default name space.,from importlib import import_module
9398,substitute value under the f.name key of the help_texts dictionary for value under the 'help_text' key of kwargs dictionary.,kwargs [ 'help_text' ] = help_texts [ f . name ]
9399,return an empty string.,return ''
9400,"if it exists or None if not and convert_apps set to app_labels, if it exists or None if not, substitute the result for changes. if changes is false and self.verbosity is greater than, or equal to iteger 1,",if not changes and self . verbosity >= 1 :
9401,"joined into a string, separated by whitespaces, substitute the result for loopvars. for every var in loopvars,",for var in loopvars :
9402,call the method self.add_root_elements with an argument handler.,self . add_root_elements ( handler )
9403,"_meth_func is a string ""__func__"".","_meth_func = ""__func__"""
9404,and unpacked dictionary kwargs. delete the value under the 'content-type' key of the self dictionary.,del self [ 'content-type' ]
9405,"if not,",else :
9406,"call the method parser.add_option with 2 arguments: string '--pythonpath' and help set to string 'A directory to add to the Python path, e.g. ""/home/djangoprojects/myproject"".'.","parser . add_option ( '--pythonpath' , help = 'A directory to add to the Python path, e.g. ""/home/djangoprojects/myproject"".' ) ,"
9407,translation._info is an empty dictionary.,translation . _info = { }
9408,"every occurrence of '<' with '<', every occurrence of '>' with '>', every occurrence of '""' with '"', and every occurrence of ""'"" with ''', call the function mark_safe with the previous result as an argument, return the result. call the function allow_lazy with 2 arguments: escape, six.text_type, substitute the result for escape.","escape = allow_lazy ( escape , six . text_type )"
9409,return self.data.day.,return self . data . day
9410,if pickled is not None.,if pickled is not None :
9411,"take all but the length of path_info last elements of script_url, substitute it for script_name.",script_name = script_url [ : - len ( path_info ) ]
9412,"call the color_style function, substitute the result for style.",style = color_style ( )
9413,"raise an ValidationError exception with an argument errors,",raise ValidationError ( errors )
9414,"subtract length of dec_part from decimal_pos, multiply the number of character '0' by the result,",dec_part = dec_part + ( '0' * ( decimal_pos - len ( dec_part ) ) )
9415,output_transaction is boolean False.,output_transaction = False
9416,return self._size.,return self . _size
9417,derive the class UnrecognizedArchiveFormat from the ArchiveException base class.,class UnrecognizedArchiveFormat ( ArchiveException ) :
9418,"call the function forbid_multi_line_headers with 3 arguments: name, val and string 'ascii', substitute the result for name and val, respectively.","name , val = forbid_multi_line_headers ( name , val , 'ascii' )"
9419,"call the method now.replace with the argument microsecond set to integer 0, substitute the result for now.",now = now . replace ( microsecond = 0 )
9420,"call the function escape with an argument p, replace every occurrence of '\n' in the result for ' ',","paras = [ '%s
' % escape ( p ) . replace ( '\n' , ' ' ) for p in paras ]"
9421,define the function timesince_filter with 2 arguments value and arg set to None.,"def timesince_filter ( value , arg = None ) :"
9422,"default set to boolean False and help set to a string ""Enable fixing of migration conflicts."". call the method parser.add_argument with 5 arguments: string '--empty', action as a string 'store_true', dest as a string 'empty',","parser . add_argument ( '--empty' , action = 'store_true' , dest = 'empty' , default = False , help = ""Create an empty migration."" )"
9423,"if ttl is not None,",if ttl is not None :
9424,"call the method self.fk.rel.to, substitute the result for self.instance.",self . instance = self . fk . rel . to ( )
9425,"DEFAULT_DB_ALIAS for self.db. remove the 'ignorenonexistent' key from the options dictionary, substitute the return value for self.db,","self . ignore = options . pop ( 'ignorenonexistent' , False )"
9426,define the method id_for_label with 2 arguments: self and id_.,"def id_for_label ( self , id_ ) :"
9427,substitute self.config for config.,config = self . config
9428,"tuple with 2 arguments: gzip.GzipFile and string 'rb' for 'gz', tuple with 2 arguments: SingleZipReader and string 'r' for 'gzip'. if has_bz2 is true,",if has_bz2 :
9429,"if model is contained in excluded_models,",if model in excluded_models :
9430,"if exception of class Exception, as e, is caught,",except Exception as e :
9431,"define the function handle_m2m with an argument value,",def handle_m2m ( value ) :
9432,substitute last element of output for last_row.,last_row = output [ - 1 ]
9433,"compare is a lambda function with arguments self, a and b, return value is boolean true if a is lesser than b, otherwise is false.","compare = lambda self , a , b : a < b"
9434,"call the method template_file.read, substitute it for content.",content = template_file . read ( )
9435,derive the class RequestContext from the Context base class.,class RequestContext ( Context ) :
9436,call the method handler.endElement with an argument string 'rss'.,"handler . endElement ( ""rss"" )"
9437,"if self.number is greater than integer 1, return boolean True, otherwise return boolean False.",return self . number > 1
9438,return out.,return out
9439,"if squash is false,",if not squash :
9440,"if not,",else :
9441,"define lambda function that returns self.file.isatty field, use it as an argument for property function, put the result in isatty.",isatty = property ( lambda self : self . file . isatty )
9442,"convert git_changeset to string, append it to the string '.dev', replace it for sub.",sub = '.dev%s' % git_changeset
9443,"if s equals a string '""',","if s == '""' :"
9444,"dest set to string 'verbosity', default set to string '1', type set to int, choices is a list, containing integers: 0, 1, 2 and 3, call the method parser.add_option with 2 arguments: string '--settings' and help as a string 'The Python path to a settings module, e.g. ""myproject.settings.main"". If this isn\'t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.'","parser . add_argument ( '--settings' , help = 'The Python path to a settings module, e.g. ""myproject.settings.main"". If this isn\'t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.' )"
9445,"raise an TemplateSyntaxError exception with an argument string ""'autoescape' argument should be 'on' or 'off'"".","raise TemplateSyntaxError ( ""'autoescape' argument should be 'on' or 'off'"" )"
9446,define the method __repr__ with an argument self.,def __repr__ ( self ) :
9447,"call the method parser.add_argument with 3 arguments: string 'directory', nargs set to '?' and help set to string 'Name of the application or project.'.","parser . add_argument ( 'directory' , nargs = '?' , help = 'Optional destination directory' )"
9448,skip this loop iteration.,continue
9449,is_templatized is boolean True.,is_templatized = True
9450,"if bytes is contained in resultclasses, cls._delegate_bytes is boolean True, otherwise it is boolean False.",cls . _delegate_bytes = bytes in resultclasses
9451,"if self equals to other return boolean False, otherwise return boolean True.",return not ( self == other )
9452,sql_files is an empty list.,sql_files = [ ]
9453,derive the class Page from the collections.Sequence base class.,class Page ( collections . Sequence ) :
9454,"call a function _ with a string 'Enter a valid value.' as an argument, substitute the result for message.",message = _ ( 'Enter a valid email address.' )
9455,from django.utils.html import avoid_wrapping into default name space.,from django . utils . html import avoid_wrapping
9456,"call the method validators.MaxLengthValidator with max_length converted into an integer, append the result to list self.validators.",self . validators . append ( validators . MaxLengthValidator ( int ( max_length ) ) )
9457,"call the method strftime with an argument fmt, from the base class of the type of dt class.","return super ( type ( dt ) , dt ) . strftime ( fmt )"
9458,define the method __add__ with arguments self and other.,"def __add__ ( self , other ) :"
9459,"call the function force_text with an argument value, call the method translate on the result, with an argument _js_escapes,",return mark_safe ( force_text ( value ) . translate ( _js_escapes ) )
9460,"call the function six.text_type with an argument self, divide the result with rhs and return the reminder of the division.",return six . text_type ( self ) % rhs
9461,call the method self.add_error with 2 arguments None and e.,"self . add_error ( None , e )"
9462,define the method __init__ with an argument self.,def __init__ ( self ) :
9463,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
9464,call the method self.handle_fk_field with arguments obj and field.,"self . handle_fk_field ( obj , field )"
9465,"for 'maxSpare', value under the key 'minspare' of options dictionary converted to an integer for 'minSpare', and value under the key 'maxchildren' of options dictionary converted to an integer, for 'maxThreads'. if not,",else :
9466,"call the method one_percent_re.sub with 2 arguments: string '%%' and g, substitute the result for .","g = one_percent_re . sub ( '%%' , g )"
9467,substitute gettext for ugettext.,ugettext = gettext
9468,"return string ""<%s: %s>"", formated with self.__class__.__name__ and self.","return ""<%s: %s>"" % ( self . __class__ . __name__ , self )"
9469,"weekday, increment the result by integer 1 and substitute it for jan1_weekday. call the method self.data.weekday, increment the result by integer 1, substitute the result for weekday.",weekday = self . data . weekday ( ) + 1
9470,increment the lineno by the count of the newlines in self.__starttag_text.,"lineno = lineno + self . __starttag_text . count ( ""\n"" )"
9471,call the function add_to_builtins with an argument string 'django.template.defaultfilters'.,add_to_builtins ( 'django.template.defaultfilters' )
9472,return response.,return response
9473,"if not,",else :
9474,"if call to the method self.is_valid, evaluates to false or self.can_delete is boolean false,",if not self . is_valid ( ) or not self . can_delete :
9475,substitute space for sep.,sep = space
9476,statement is an empty list.,statement = [ ]
9477,value is an string '1'.,value = '1'
9478,"if second element of k is None,",if k [ 1 ] is None :
9479,"get the value under the part key of the PALETTES dictionary, update with it palette dictionary.",palette . update ( PALETTES [ part ] )
9480,"call the function get_template_from_string with 3 arguments: template, origin and template_name, substitute the result for template.","template = get_template_from_string ( template , origin , template_name )"
9481,"if level is not contained in logging._levelNames,",if level not in logging . _levelNames :
9482,"and convert it again to the dictionary, if attrs is false, leave it alone, substitute the result for attrs. if self.field.required is true and self.form has an attribute 'required_css_class',","if self . field . required and hasattr ( self . form , 'required_css_class' ) :"
9483,return boolean False.,return False
9484,"get the length of the options, use it as a starting index for the slicing arg list, substitute it for self.test_runner.",self . test_runner = arg [ len ( option ) : ]
9485,break the loop execution.,break
9486,"raise an EntitiesForbidden exception with arguments name, None, base, sysid, pubid and notation_name.","raise EntitiesForbidden ( name , None , base , sysid , pubid , notation_name )"
9487,"if not,",else :
9488,otherwise assign string 'ascii' to encoding. call the method lookup with the encoding as the argument.,codecs . lookup ( encoding )
9489,"call the method result.utctimetuple, use the result as an argument for the call to the method calendar.timegm, return the result.",return calendar . timegm ( result . utctimetuple ( ) )
9490,"if plan is not true,",if not plan :
9491,_BROWSERS_DEPRECATED_LOCALES is an dictionary with 2 initial entries: 'zh-hans' for 'zh-cn' and 'zh-hant' for 'zh-tw'.,"_BROWSERS_DEPRECATED_LOCALES = { 'zh-cn' : 'zh-hans' , 'zh-tw' : 'zh-hant' , }"
9492,"call the method signing.get_cookie_signer with an argument salt set to sum of key and salt,",value = signing . get_cookie_signer ( salt = key + salt ) . sign ( value )
9493,"otherwise if form.has_changed method evaluates to true,",elif form . has_changed ( ) :
9494,"get attribute real_name from the trans object, return it.","return getattr ( trans , real_name )"
9495,"if initial is not an instance of the list type,","if not isinstance ( initial , list ) :"
9496,"if not, substitute self.auto_id for id_. call the method widget.id_for_label with an argument id_, return the result.",return widget . id_for_label ( id_ )
9497,import threading module.,import threading
9498,"call the method match.group with 2 arguments: strings ""var"" and ""constant"", substitute the result for var and constant, respectively.","var , constant = match . group ( ""var"" , ""constant"" )"
9499,define the function all_locale_paths.,def all_locale_paths ( ) :
9500,"define function dictvale, with an argument t.",def dictvalue ( t ) :
9501,"df is an instance of DateFormat class, created with an argument value.",df = DateFormat ( value )
9502,from django.apps import apps into default name space.,from django . apps import apps
9503,"for every error in self.error_list,",for error in self . error_list :
9504,"if self.errors is true and self.form has an attribute 'error_css_class',","if self . errors and hasattr ( self . form , 'error_css_class' ) :"
9505,"call the function base64_hmac with 3 arguments: string 'signer' appended to self.salt, value and self.key, substitute the result for signature.","signature = base64_hmac ( self . salt + 'signer' , value , self . key )"
9506,return boolean True.,return True
9507,"if argv is true, substitue it for self.argv, if not substitute sys.argv for self.argv.",self . argv = argv or sys . argv [ : ]
9508,substitute self.model._meta.pk for pk_field.,pk_field = self . model . _meta . pk
9509,"if not, content_type is an empty string and content_type_extra is an empty dictionary. strip the content_type of the whitespaces, substitute it for content_type.",content_type = content_type . strip ( )
9510,substitute self._empty_value for value.,value = self . _empty_value
9511,"call the method __deepcopy__ with an argument memo from the base class of the class ChoiceField, substitute the result for result.","result = super ( ChoiceField , self ) . __deepcopy__ ( memo )"
9512,"if ValueError exception is caught,",except ValueError :
9513,"if used_name is not equal to guessed_filename,",if used_name != guessed_filename :
9514,"define the method __init__ with arguments self, context, base, sysid and pubid.","def __init__ ( self , context , base , sysid , pubid ) :"
9515,substitute media.__dict__ for media_attrs.,media_attrs = media . __dict__
9516,"open filepath file in read mode, with file descriptor as fp, perform,","with open ( filepath , 'r' ) as fp :"
9517,"if not,",else :
9518,"if second last element of django.VERSION is not equal to a string 'final',",if django . VERSION [ - 2 ] != 'final' :
9519,define the method _create_message with arguments self and msg.,"def _create_message ( self , msg ) :"
9520,"if urlconf is None,",if urlconf is None :
9521,"call the method data, substitute the result for data.",data = data ( )
9522,from django.dispatch import receiver into default name space.,from django . dispatch import receiver
9523,"if AmbiguityError exception is caught,",except AmbiguityError :
9524,cls.__dispatch is an empty dictionary.,cls . __dispatch = { }
9525,"try,",try :
9526,"return an instance of LoaderOrigin class, created with 4 arguments: display_name, loader, name and dirs.","return LoaderOrigin ( display_name , loader , name , dirs )"
9527,"if an exception of the type UnicodeDecodeError, renamed to e, is caught,",except UnicodeDecodeError as e :
9528,"if basedirs is empty,",if not basedirs :
9529,define the method is_hidden with an argument self.,def is_hidden ( self ) :
9530,"otherwise, if s has an attribute '__unicode__',","elif hasattr ( s , '__unicode__' ) :"
9531,return singular.,return singular
9532,'Enter a number.' for 'invalid'. define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
9533,"if name is boolean False raise an assert error with message string ""The name argument is not allowed to be empty."".","assert name , ""The name argument is not allowed to be empty."""
9534,"call the method self._text_words with 2 arguments length and truncate, return the result.","return self . _text_words ( length , truncate )"
9535,"try,",try :
9536,from django.db import models and router into default name space.,"from django . db import models , router"
9537,"decorator stringfilter,",@ stringfilter
9538,"call the method os.path.dirname with an argument fixture_name, append it to a list, substitute resulting list for fixture_dirs.",fixture_dirs = [ os . path . dirname ( fixture_name ) ]
9539,"if not,",else :
9540,return mod.register.,return mod . register
9541,return found.,return found
9542,define the function urlunquote with an argument quoted_url.,def urlunquote_plus ( quoted_url ) :
9543,import module types.,import types
9544,"and unpacked dictionary kwargs. define the method new_file with arguments: self, file_name, unpacked list args and unpacked dictionary kwargs.","def new_file ( self , file_name , * args , ** kwargs ) :"
9545,"find the ending position of the regular expression match of the object match, substitute the result for j.",j = match . end ( )
9546,define the function file_complete with arguments self and file_size.,"def file_complete ( self , file_size ) :"
9547,return boolean False.,return False
9548,"str.__unicode__().encode('utf-8'), call the lambda function and put the result in the __str__ filed of klass. return klass.",return klass
9549,"call the function force_text with an argument bf_errors, format the error_row string with the result, append it to the output.",output . append ( error_row % force_text ( bf_errors ) )
9550,"created with 2 arguments: required as boolean False and widget set to HiddenInput. call the method __init__ from the base class of the class ManagementForm, called with 2 arguments: unpacked list args,","super ( ManagementForm , self ) . __init__ ( * args , ** kwargs )"
9551,define the method get_backend_timeout with self and timeout set to DEFAULT_TIMEOUT as arguments.,"def get_backend_timeout ( self , timeout = DEFAULT_TIMEOUT ) :"
9552,"call the function conditional_escape with an argument arg, call the method join on the result with an argument value,",data = conditional_escape ( arg ) . join ( value )
9553,"try,",try :
9554,"if nodelist.contains_nontext is true,",if nodelist . contains_nontext :
9555,derive the class TranslatorCommentWarning from the SyntaxWarning base class.,class TranslatorCommentWarning ( SyntaxWarning ) :
9556,"if bcc is not an six.string_types instance raise an error with message string '""bcc"" argument must be a list or tuple'.","assert not isinstance ( bcc , six . string_types ) , '""bcc"" argument must be a list or tuple'"
9557,"define the method __setitem__ with arguments self, name and val.","def __setitem__ ( self , name , val ) :"
9558,"substitute field_type for field_type and new_params, respectively.","field_type , new_params = field_type"
9559,"call the method re_newlines.sub with 2 arguments: '\n' and text, return the result.","return re_newlines . sub ( '\n' , text )"
9560,"if not,",else :
9561,break from the loop execution.,break
9562,"or settings.FILE_UPLOAD_PERMISSIONS if it is. self.directory_permissions_mode is a tuple containing: directory_permissions_mode if directory_permissions_mode is not None,",self . directory_permissions_mode = ( directory_permissions_mode if directory_permissions_mode is not None else settings . FILE_UPLOAD_DIRECTORY_PERMISSIONS )
9563,"try,",try :
9564,"create list of first remaining elements of chunk, substitute it for emitting.",emitting = chunk [ : remaining ]
9565,"if mime_encode is true,",if mime_encode :
9566,from django.utils import six into default name space.,from django . utils import six
9567,"if not,",else :
9568,"call the method __init__ from the base class of the class PasswordInput, called with an argument attrs.","super ( PasswordInput , self ) . __init__ ( attrs )"
9569,substitute _urllib_error_moved_attributes for Module_six_moves_urllib_error._moved_attributes.,Module_six_moves_urllib_error . _moved_attributes = _urllib_error_moved_attributes
9570,"substitute '%s' in 'Forbidden (Permission denied): %s' with request.path, extra is an dictionary with two pairs of elements,","logger . warning ( 'Forbidden (Permission denied): %s' , request . path , extra = { 'status_code' : 403 , 'request' : request } )"
9571,return new_class.,return new_class
9572,define the method _get_count with an argument self.,def _get_count ( self ) :
9573,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
9574,"called with an argument string 'Unknown', tuple with 2 elements: string '2' and return value of the function ugettext_lazy, called with an argument string 'Yes' and tuple with 2 elements: string '3' and return value of the function ugettext_lazy, called with an argument string 'No'. call the method __init__ from the base class of the class NullBooleanSelect, with arguments attrs and choices.","super ( NullBooleanSelect , self ) . __init__ ( attrs , choices )"
9575,call the mail.send method with fail_silently=fail_silently as argument.,mail . send ( fail_silently = fail_silently )
9576,"code set to an string 'invalid_choice' and dictionary params with an entry: val for 'value'. define the method _has_changed with arguments self, initial and data.","def _has_changed ( self , initial , data ) :"
9577,"if last element of parts is contained in self.serialization_formats,",if parts [ - 1 ] in self . serialization_formats :
9578,"call function _checkLevel with an argument level, use the result as an argument for the method result.setLevel.",result . setLevel ( _checkLevel ( level ) )
9579,"p is image parser object, set by calling the PillowImageFile.Parser method.",p = PillowImageFile . Parser ( )
9580,"call the method __setitem__ from the base class of the class MultiValueDict, with 2 arguments key and list_.","super ( MultiValueDict , self ) . __setitem__ ( key , list_ )"
9581,"call the method self.connection.sendmail with arguments: from_email, recipients and return value of the function message.as_bytes.","self . connection . sendmail ( from_email , recipients , message . as_bytes ( ) )"
9582,"if d is an instance of real_datetime class,","if isinstance ( d , real_datetime ) :"
9583,substitute nodelist_empty for self.nodelist_empty.,self . nodelist_empty = nodelist_empty
9584,"call the method f.post_create_sql with arguments: style and model._meta.db_table, extend the output with the result.","output . extend ( f . post_create_sql ( style , model . _meta . db_table ) )"
9585,"return an string ""Error in formatting: %s"", replace '%s' with result of the function force_text,","return ""Error in formatting: %s"" % force_text ( e , errors = ""replace"" )"
9586,substitute complain for __delitem__.,__delitem__ = complain
9587,quant is an empty list.,quant = [ ]
9588,define the method eval with 2 arguments: self and context.,"def eval ( self , context ) :"
9589,call the self._createdir method.,self . _createdir ( )
9590,"call the self.initial_form_count method, return the sublist of self.forms, using previous result as start index to the end.",return self . forms [ self . initial_form_count ( ) : ]
9591,substitute first element of self.argv for subcommand.,subcommand = self . argv [ 1 ]
9592,substitute value under the 'use_threading' key of the options dictionary for threading.,threading = options . get ( 'use_threading' )
9593,"call the method self.extend_nodelist with 3 arguments: nodelist, instance of TextNode class, created with an argument token.contents,","self . extend_nodelist ( nodelist , TextNode ( token . contents ) , token )"
9594,return an empty string.,"return """""
9595,return s.,return s
9596,from django.utils.six.moves import reduce into default name space.,from django . utils . six . moves import reduce
9597,"call the method sys.stderr.write with an argument string ""fork #2 failed: (%d) %s\n"", formated with e.errno and e.strerror.","sys . stderr . write ( ""fork #2 failed: (%d) %s\n"" % ( e . errno , e . strerror ) )"
9598,substitute (i+1)-th element of list_ for next_item.,next_item = list_ [ i + 1 ]
9599,"if not,",else :
9600,derive the class Select from the Widget base class.,class Select ( Widget ) :
9601,"if transfer_encoding is not None,",if transfer_encoding is not None :
9602,define the method endChannelElement with 2 arguments: self and handler.,"def endChannelElement ( self , handler ) :"
9603,"call the method get_template with an argument template, substitute the result for template.",template = get_template ( template )
9604,"output is an list with initial elements generated with call to the function pformat with an argument val, for every val in context.",output = [ pformat ( val ) for val in context ]
9605,skip this loop iteration.,continue
9606,"if self._read_started is true,",if self . _read_started :
9607,"if not,",else :
9608,"get the value under the 'domain' key of the options dictionary, substitute it for self.domain.",self . domain = options . get ( 'domain' )
9609,decorator function register.filter with an argument is_safe set to boolean False.,@ register . filter ( is_safe = False )
9610,"call the method cursor.execute with string ""SELECT COUNT(*) FROM %s"" as argument, substitute the '%s' with table.","cursor . execute ( ""SELECT COUNT(*) FROM %s"" % table )"
9611,"if name is None,",if name is None :
9612,"if other is instance of EmailValidator and, self.domain_whitelist equals to other.domain_whitelist,","return isinstance ( other , EmailValidator ) and ( self . domain_whitelist == other . domain_whitelist ) and ( self . message == other . message ) and ( self . code == other . code )"
9613,"for every part in plural,",for part in plural :
9614,"call the method p.find with bytes string '=' as an argument, substitute the result for i.",i = p . find ( b'=' )
9615,call the method close on self.,self . close ( )
9616,self._done is boolean False.,self . _done = False
9617,append bit to trans_bit.,trans_bit . append ( bit )
9618,"if offset is smaller than integer 0, sign is '-', otherwise sign is '+'.",sign = '-' if offset < 0 else '+'
9619,"call the function call_command with 6 arguments, string 'runserver', addrport as the value under the 'addrport' key of options dictionary,","call_command ( 'runserver' , addrport = options [ 'addrport' ] , shutdown_message = shutdown_message , use_reloader = False , use_ipv6 = options [ 'use_ipv6' ] , use_threading = use_threading )"
9620,"try,",try :
9621,raise an ValueError exception with an argument string 'Unable to convert %r at %r' formated with value and rest.,"raise ValueError ( 'Unable to convert ' '%r at %r' % ( value , rest ) )"
9622,substitute self.rendered_content for self.content.,self . content = self . rendered_content
9623,write string ' #\n' to out file.,out . write ( ' #\n' )
9624,substitute complain for reverse.,reverse = complain
9625,call the method os.unlink with an argument pot_path.,os . unlink ( pot_path )
9626,from django.utils.datastructures import MultiValueDict into default name space.,from django . utils . datastructures import MultiValueDict
9627,skip this loop iteration.,continue
9628,"define function _i18n_cache_key_suffix, with request and cache_key as arguments.","def _i18n_cache_key_suffix ( request , cache_key ) :"
9629,define the function partition with 2 arguments: predicate and values.,"def partition ( predicate , values ) :"
9630,app_configs is not None.,app_configs = None
9631,from _systemrestart import SystemRestart into default name space.,from _systemrestart import SystemRestart
9632,"call the function six.iteritems with an argument kwargs, for every key and value in the result,","for key , value in six . iteritems ( kwargs ) :"
9633,"call the function get_format with an argument string 'DATE_FORMAT', substitute it for fmt.",fmt = get_format ( 'DATE_FORMAT' )
9634,"if x equals to integer 0,",if x == 0 :
9635,return func.,return func
9636,call the method self.autocomplete.,self . autocomplete ( )
9637,"call the method self._get_scheme, return the result.",return self . _get_scheme ( )
9638,"widget is an instance of HiddenInput class. if not,",else :
9639,"convert the result into a lowercase, append it to ret_ip. join elements of ret_ip into a string separated with ':', return it.",return ':' . join ( ret_ip )
9640,if name is contained in lib.filters.,if name in lib . filters :
9641,"if Exception, renamed to e, exception is caught,",except Exception as e :
9642,"if self.fixture_count equals integer 0 and self.hide_empty is true,",if self . fixture_count == 0 and self . hide_empty :
9643,"call the method qs.using with an argument form.instance._state.db, substitute the result for qs.",qs = qs . using ( form . instance . _state . db )
9644,"result is an empty list, upto is integer 0.","result , upto = [ ] , 0"
9645,"if AttributeError exception is caught,",except AttributeError :
9646,substitute substitute TextInput for widget.,widget = TextInput
9647,substitute language for self.__language.,self . __language = language
9648,skip this loop iteration.,continue
9649,skip this loop iteration.,continue
9650,substitute flo for self.flo.,self . flo = flo
9651,"slice the rawdata to obtain substring from i-th to j-th element, use it as the argument for the method call to the self.handle_data.",self . handle_data ( rawdata [ i : j ] )
9652,"call the method _trans.ngettext with 3 arguments singular, plural and number.","return _trans . ngettext ( singular , plural , number )"
9653,return data.,return data
9654,substitute content_length for self.content_length.,self . content_length = content_length
9655,"if self.__language equals settings.LANGUAGE_CODE or self.__language equals a string ""en-us"",","if self . __language == settings . LANGUAGE_CODE or self . __language == ""en-us"" :"
9656,"if f.name is contained in cleaned_data,",if f . name in cleaned_data :
9657,substitute args for key.,key = args
9658,"raise an CommandError with an argument string ""Unable to find a locale path to store translations for file %s"",","raise CommandError ( ""Unable to find a locale path to store translations for file %s"" % file_path )"
9659,"if not,",else :
9660,"call the method self._save with arguments name and content, substitute it for name.","name = self . _save ( name , content )"
9661,substitute variable_name for self.variable_name.,self . variable_name = variable_name
9662,substitute obj for self.obj.,self . obj = obj
9663,"with '%s' substituted for app_label, as arguments. if migration_name equals to string 'zero',","if migration_name == ""zero"" :"
9664,"if not,",else :
9665,"if not,",else :
9666,substitute nodelist for self.nodelist.,self . nodelist = nodelist
9667,"if fourth element of version does not equals to string 'alpha' or 'beta' or 'rc' or 'final', raise an exception.","assert version [ 3 ] in ( 'alpha' , 'beta' , 'rc' , 'final' )"
9668,call the method deactivate.,deactivate ( )
9669,define the function strip_entities with an argument value.,def strip_entities ( value ) :
9670,call the file.__enter__ method on self.,self . file . __enter__ ( )
9671,return self.,return self
9672,"request user input from the standard input, assign it o confirm, with the query string: ""You have requested a flush of the database.""","confirm = input ( """"""You have requested a flush of the database. This will IRREVERSIBLY DESTROY all data currently in the %r database, and return each table to an empty state. Are you sure you want to do this? Type 'yes' to continue, or 'no' to cancel: """""" % connection . settings_dict [ 'NAME' ] )"
9673,"try,",try :
9674,define the method __repr__ with an argument self.,def __repr__ ( self ) :
9675,substitute self for value.configurator.,value . configurator = self
9676,define the method value with an argument self.,def value ( self ) :
9677,"call the function parse_http_date with an argument date, return the result.",return parse_http_date ( date )
9678,"define the method id_for_label with arguments self, data, files and name.","def value_from_datadict ( self , data , files , name ) :"
9679,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
9680,"if value is not None,",if value is not None :
9681,call the function write with an argument end.,write ( end )
9682,raise an exception StopFutureHandlers.,raise StopFutureHandlers ( )
9683,define the function wrapper with 2 arguments: unpacked list args and unpacked dictionary kwds.,"def wrapper ( * args , ** kwds ) :"
9684,"for every item in sorted_items,",for item in sorted_items :
9685,"call the method self.__copy__, return the result.",return self . __copy__ ( )
9686,"if not,",else :
9687,"get the first space decremented with integer 1 elements from string line, append newline character to it, and yield the result.",yield '%s\n' % line [ : space - 1 ]
9688,"define the initialization method __init__ with arguments: self class instance, dir and params.","def __init__ ( self , dir , params ) :"
9689,"get the value under the lang_code key of the _BROWSERS_DEPRECATED_LOCALES dictionary, substitute it for replacement.",replacement = _BROWSERS_DEPRECATED_LOCALES . get ( lang_code )
9690,define the function floatformat with 2 arguments text and arg set to integer -1.,"def floatformat ( text , arg = - 1 ) :"
9691,define the function split_domain_port with an argument host.,def split_domain_port ( host ) :
9692,"from django.utils.encoding import smart_text, force_text and python_2_unicode_compatible into default name space.","from django . utils . encoding import smart_text , force_text , python_2_unicode_compatible"
9693,"if NotImplementedError exception is caught,",except NotImplementedError :
9694,return _default.,return _default
9695,import module base64.,import base64
9696,"call the method bytes_to_text with 2 arguments: key and self.encoding, substitute the result for key.","key = bytes_to_text ( key , self . encoding )"
9697,and RemovedInDjango19Warning. call the __init__ method with unpacked list args and unpacked dictionary kwargs from the base class of the IPAddressField class.,"super ( IPAddressField , self ) . __init__ ( * args , ** kwargs )"
9698,"if arg is smaller than integer 1,",if arg < 1 :
9699,if t.token_type == TOKEN_TEXT:,elif t . token_type == TOKEN_TEXT :
9700,call the method extend with an argument error_list on the return value of the method error_dict.setdefault called with 2 arguments: field and an empty list.,"error_dict . setdefault ( field , [ ] ) . extend ( error_list )"
9701,"call the function force_str with an argument sep, substitute the result for self.sep.",self . sep = force_str ( sep )
9702,"if not,",else :
9703,"get the value under the DELETION_FIELD_NAME key of the form.cleaned_data dictionary, if it exists return it, if not, return boolean False.","return form . cleaned_data . get ( DELETION_FIELD_NAME , False )"
9704,"if finder is None,",if finder is None :
9705,"call the function urlunsplit with a tuple containing 5 elements: scheme, netloc, path, query and fragment, as an argument, substitute the result for url.","url = urlunsplit ( ( scheme , netloc , path , query , fragment ) )"
9706,do nothing.,pass
9707,"if 'id' is contained in self.attrs,",if 'id' in self . attrs :
9708,"evaluate the function import_string with key_func as argument, return the result.",return import_string ( key_func )
9709,call the function locks.lock with arguments fd and locks.LOCK_EX.,"locks . lock ( fd , locks . LOCK_EX )"
9710,"property decorator,",@ property
9711,substitute error.error_dict for error.,error = error . error_dict
9712,"from django.utils.timezone import get_default_timezone, is_aware and is_naive into default name space.","from django . utils . timezone import get_default_timezone , is_aware , is_naive"
9713,"convert value, self.sep and return value of the function timestamp, concatenate them, substitute the result for value.","value = str ( '%s%s%s' ) % ( value , self . sep , self . timestamp ( ) )"
9714,derive the class MultiPartParser from the object base class.,class MultiPartParser ( object ) :
9715,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
9716,"define the method transform with 3 arguments: self, node and results.","def transform ( self , node , results ) :"
9717,"return an instance of SafeText, created with an argument s.",return SafeText ( s )
9718,"for every root, dirs and files in subdirectory tree starting from the base dir template_dir,","for root , dirs , files in os . walk ( template_dir ) :"
9719,derive class WindowsError from Exception base class.,class WindowsError ( Exception ) :
9720,"for every field in self.fields,",for field in self . fields :
9721,"call function _generate_cache_header_key with arguments key_prefix and request, substitute the result for cache_key.","cache_key = _generate_cache_header_key ( key_prefix , request )"
9722,return translation.,return translation
9723,"_meth_self is a string ""im_self"".","_meth_self = ""im_self"""
9724,"call the function os.path.basename with first element of self.argv as an argument, substitute the result for self.prog_name.",self . prog_name = os . path . basename ( self . argv [ 0 ] )
9725,"get 'Meta' attribute from form object, if it exists substitute it for meta, if not meta is None.","meta = getattr ( form , 'Meta' , None )"
9726,"call the function get_language, substitute the result for self.old_language.",self . old_language = get_language ( )
9727,raise a ValidationError exception with arguments self.message and code set to self.code.,"raise ValidationError ( self . message , code = self . code )"
9728,"raise an exception of class ValueError, with string ""Key '%s' not found"" as argument, where '%s' is substituted for key.","raise ValueError ( ""Key '%s' not found"" % key )"
9729,define private method __repr__ with argument self.,def __repr__ ( self ) :
9730,define the method __iter__ with an argument self.,def __iter__ ( self ) :
9731,"try,",try :
9732,"p is a instance of Popen class, created with 6 arguments: args, shell set to boolean False, stdout set to PIPE,","p = Popen ( args , shell = False , stdout = PIPE , stderr = PIPE , close_fds = os . name != 'nt' , universal_newlines = True )"
9733,if subcommand equals to a string 'help'.,if subcommand == 'help' :
9734,"write the string "" Installing custom SQL...\n"" to the standard output.","self . stdout . write ( "" Installing custom SQL...\n"" )"
9735,"get 'dependencies' attribute of the model.natural_key, substitute it for deps, if the attribute doesnt exist, deps in an empty list.","deps = getattr ( model . natural_key , 'dependencies' , [ ] )"
9736,derive the class Signer from the object base class.,class Signer ( object ) :
9737,from django.core.management.sql import sql_destroy_indexes into default name space.,from django . core . management . sql import sql_destroy_indexes
9738,"call the connection.creation.sql_for_pending_references method with refto, no_style() and pending_references as arguments,","sql . extend ( connection . creation . sql_for_pending_references ( refto , no_style ( ) , pending_references ) )"
9739,if value is an instance of bool.,"if isinstance ( value , bool ) :"
9740,"call the method self.port.isdigit, if it evaluates to false,",if not self . port . isdigit ( ) :
9741,"call the CacheHandler function, substitute the result for caches.",caches = CacheHandler ( )
9742,"call the method formats.time_format with 2 arguments: value and arg, return the result.","return formats . date_format ( value , arg )"
9743,"return value of the method field.rel.to._meta.pk.to_python called with an argument v. call the m2m_convert function with pk as argument, for every pk in field_value, substitute the value under the field.name key of the m2m_data dictionary.",m2m_data [ field . name ] = [ m2m_convert ( pk ) for pk in field_value ]
9744,"call the method setdefault from the base class of the class SortedDict, with 2 arguments key and default, return the result.","return super ( SortedDict , self ) . setdefault ( key , default )"
9745,"if token.contents equals string 'empty',",if token . contents == 'empty' :
9746,"for every node in self.nodelist_loop,",for node in self . nodelist_loop :
9747,value under the 'required' key of the kwargs dictionary is boolean False.,"kwargs [ ""required"" ] = False"
9748,substitute self._encoding for encoding.,encoding = self . _encoding
9749,"define the method handle_app_config with 3 arguments: self, app_config and unpacked dictionary options.","def handle_app_config ( self , app_config , ** options ) :"
9750,import termios module.,import termios
9751,"if self.count equals a integer 0 and self.allow_empty_first_page is false,",if self . count == 0 and not self . allow_empty_first_page :
9752,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
9753,"call the os.utime unction, with path and None as arguments.","os . utime ( path , None )"
9754,decorator function register.filter with an argument is_safe set to boolean False.,@ register . filter ( is_safe = False )
9755,"if not,",else :
9756,"raise an ValueError with an argument string ""Invalid header: %r"", where '%s' is replaced with line.","raise ValueError ( ""Invalid header: %r"" % line )"
9757,"raise a exception of CommandError class, with string ""App '%s' does not have migrations"" with '%s' replaced with app_label as the argument.","raise CommandError ( ""App '%s' does not have migrations"" % app_label )"
9758,do nothing.,pass
9759,"otherwise if cmatches is true,",elif cmatches :
9760,"if TemplateSyntaxError, renamed to e, exception is caught,",except TemplateSyntaxError as e :
9761,"call the BaseConverter function with BASE62_ALPHABET as argument, store the result in base62.",base62 = BaseConverter ( BASE62_ALPHABET )
9762,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
9763,"raise a exception of CommandError class, with string ""Cannot find a migration matching '%s' from app '%s'. Is it in INSTALLED_APPS?"",","raise CommandError ( ""Cannot find a migration matching '%s' from app '%s'. Is it in INSTALLED_APPS?"" % ( migration_name , app_label ) )"
9764,"append the results into a list, substitute it for value. node is an instance CycleNode class, created with values,name and silent set to silent.","node = CycleNode ( values , name , silent = silent )"
9765,"call the function six.iteritems with an argument kwargs, for every k and v in the result,","for k , v in six . iteritems ( kwargs ) :"
9766,"define the method set with 5 arguments: self, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def set ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
9767,"try,",try :
9768,substitute file_name for t.,t = file_name
9769,"perform bitwise exclusive OR on 2 operands integer representation of x and integer representation of y,",result |= ord ( x ) ^ ord ( y )
9770,"call the function get_user_model, substitute the result for UserModel.",UserModel = get_user_model ( )
9771,raise an NotImplementedError with argument string 'subclasses of FileUploadHandler must provide a receive_data_chunk() method'.,raise NotImplementedError ( 'subclasses of FileUploadHandler must provide a receive_data_chunk() method' )
9772,"put elements of validators.EMPTY_VALUES to a list, substitute the result for empty_values.",empty_values = list ( validators . EMPTY_VALUES )
9773,call the method self._callback_strs.update with an argument pattern._callback_strs.,self . _callback_strs . update ( pattern . _callback_strs )
9774,LOCK_NB is a hexadecimal 1.,LOCK_NB = 0x1
9775,"if value under the 'method' key of the options dictionary equals to string 'perfork' or 'fork',","if options [ 'method' ] in ( 'prefork' , 'fork' ) :"
9776,"app_list is an instance of OrderedDict class, created with an argument a tuple containing elements: app_config and None,","app_list = OrderedDict ( ( app_config , None ) for app_config in apps . get_app_configs ( ) if app_config . models_module is not None and app_config not in excluded_apps )"
9777,"define the method __init__ with arguments: self, host set to None, port set to None, username set to None, password set to None,","def __init__ ( self , host = None , port = None , username = None , password = None , use_tls = None , fail_silently = False , use_ssl = None , timeout = None , ** kwargs ) :"
9778,"subject is an string '%s: %s' formated with record.levelname and result of the method record.getMessage, respectively.","subject = '%s: %s' % ( record . levelname , record . getMessage ( ) )"
9779,__D is a raw string '(?P\d{2})'.,__D = r'(?P\d{2})'
9780,"if m is true,",if m :
9781,derive the class SkipFile from the UploadFileException base class.,class SkipFile ( UploadFileException ) :
9782,call the method self._cache_flush_all.,self . _cache . flush_all ( )
9783,from django.core.cache.backends.db import BaseDatabaseCache into default name space.,from django . core . cache . backends . db import BaseDatabaseCache
9784,"if not,",else :
9785,import module importlib.,import importlib
9786,from django.conf import settings into default name space.,from django . conf import settings
9787,decorator function register.filter with 2 arguments expects_localtime set to boolean True and is_safe set to boolean False.,"@ register . filter ( expects_localtime = True , is_safe = False )"
9788,define the method t with an argument self.,def t ( self ) :
9789,return value.,return value
9790,define the function trim_url with 2 arguments: x and limit set to trim_url_limit.,"def trim_url ( x , limit = trim_url_limit ) :"
9791,pytz is None.,pytz = None
9792,"define the function get_format with 3 arguments: format_type, lang set to None and use_l10n set to None.","def get_format ( format_type , lang = None , use_l10n = None ) :"
9793,"if content has an attribute 'temporary_file_path',","if hasattr ( content , 'temporary_file_path' ) :"
9794,"call the function getInnerText with an argument child, use the result as an argument for the call to the method inner_text.extend.",inner_text . extend ( getInnerText ( child ) )
9795,"call the method filter_re.finditer with an argument token, substitute the result for matches.",matches = filter_re . finditer ( token )
9796,"call the function re.search with 3 arguments: string '^%s%s', with '%s' replaced for prefix_norm and pattern, respectively,","if re . search ( '^%s%s' % ( prefix_norm , pattern ) , candidate_pat % candidate_subs , re . UNICODE ) :"
9797,return an instance of a class RegexURLResolver created with arguments: raw string '^/' and urlconf.,"return RegexURLResolver ( r'^/' , urlconf )"
9798,"create a list with count decremented by 1 number of last element of result elements, extend list result with it.",result . extend ( [ result [ - 1 ] ] * ( count - 1 ) )
9799,"define the function main, with main_func, args defaulting to None and kwargs defaulting to None as arguments.","def main ( main_func , args = None , kwargs = None ) :"
9800,"if string 'noreset' is not contained in opts,",if 'noreset' not in opts :
9801,"call the method self.create_token with 3 arguments: self.template_string list elements from start index to end index,","result . append ( self . create_token ( self . template_string [ start : end ] , ( start , end ) , True ) )"
9802,call the method self.handle_field with arguments obj and filed.,"self . handle_field ( obj , field )"
9803,"if AttributeError exception is caught,",except AttributeError :
9804,"define the method _has_changed with 3 arguments: self, initial and data.","def _has_changed ( self , initial , data ) :"
9805,define the method list with 3 arguments: self and unpacked list args and unpacked dictionary kwargs.,"def list ( self , * args , ** kwargs ) :"
9806,call the self.run method with unpacked dictionary options as an argument.,self . run ( ** options )
9807,"data, encoding and errors as a string 'replace'. otherwise if item_type equals FILE,",elif item_type == FILE :
9808,import module os.,import os
9809,define the method run with 3 arguments: self and unpacked dictionary options.,"def run ( self , ** options ) :"
9810,"call the method self.format with an argument string '0', substitute the result for name.",name = self . format ( 'O' )
9811,"if filename ends with string '.mo' return I18N_MODIFIED, otherwise return FILE_MODIFIED.",return I18N_MODIFIED if filename . endswith ( '.mo' ) else FILE_MODIFIED
9812,from io import BytesIO into default name space.,from io import BytesIO
9813,append rel_model to deps.,deps . append ( rel_model )
9814,define the method accessed_time with arguments self and name.,"def accessed_time ( self , name ) :"
9815,call the method request_finished.connect with argument update_watch.,request_finished . connect ( update_watch )
9816,"call the function re.compile with an argument raw string ""(?:(\w+)=)?(.+)"", substitute the result for kwarg_re.","kwarg_re = re . compile ( r""(?:(\w+)=)?(.+)"" )"
9817,"call the method parse from the instance of TemplateIfParser class, created with 2 arguments parser and bits, substitute the result for condition.","condition = TemplateIfParser ( parser , bits ) . parse ( )"
9818,"get the type of the exc object, substitute it for exc_type.",exc_type = type ( exc )
9819,do nothing.,pass
9820,break the execution of the smallest enclosing loop.,break
9821,define the method __eq__ with self and other as arguments.,"def __eq__ ( self , other ) :"
9822,"raise an CommandError exception with an argument string ""errors happened while running xgettext on %s\n%s"",","raise CommandError ( ""errors happened while running xgettext on %s\n%s"" % ( self . file , errors ) )"
9823,"if not,",else :
9824,define the method filter with 2 arguments: self and record.,"def filter ( self , record ) :"
9825,"decorator function register.filter with 2 arguments string ""timeuntil"" and is_safe set to boolean False.","@ register . filter ( ""timeuntil"" , is_safe = False )"
9826,"decorator stringfilter,",@ stringfilter
9827,define the function fdel with 2 arguments: instance and name set to fdel.__name__.,"def fdel ( instance , name = fdel . __name__ ) :"
9828,"if first element of message_context equals to character '""',","if message_context [ 0 ] == '""' :"
9829,append d to self.fed.,self . fed . append ( d )
9830,"call the function force_text with an argument text, substitute the result for text.",text = force_text ( text )
9831,"if count of occurrence of '::' in ip_str equals integer 1,",if ip_str . count ( '::' ) == 1 :
9832,"if AttributeError exception is caught,",except AttributeError :
9833,"otherwise if first element of message_context equals to character ""'"",","elif message_context [ 0 ] == ""'"" :"
9834,fields is an tuple containing 3 entries: return value of the method models.CharField called with 4 arguments:,"fields = ( models . CharField ( name = 'cache_key' , max_length = 255 , unique = True , primary_key = True ) , models . TextField ( name = 'value' ) , models . DateTimeField ( name = 'expires' , db_index = True ) , )"
9835,"if ValueError exception is caught,",except ValueError :
9836,from django.forms.forms import everything into default name space.,from django . forms . forms import *
9837,define the method add_arguments with arguments self and parser.,"def add_arguments ( self , parser ) :"
9838,"call the function force_text with 3 arguments: file_name, encoding and errors set to string 'replace',","file_name = force_text ( file_name , encoding , errors = 'replace' )"
9839,"call the function strftime with 2 arguments: self and fmt, return the result.","return strftime ( self , fmt )"
9840,substitute instance._meta for opts.,opts = instance . _meta
9841,"and help set to string 'Nominates a database to print the SQL for. Defaults to the ""default"" database.'. define the handle_app_config with 3 arguments self, app_config and unpacked dictionary options.","def handle_app_config ( self , app_config , ** options ) :"
9842,"if count of occurrence of '.' in ip_str is equal to integer 3,",if hextet . count ( '.' ) == 3 :
9843,"return an empty string,",return ''
9844,"for 'errors', return value of the function force_text with an argument label for 'label', return value of the function six.text_type, with an argument bf, for 'field', help_text for help_text, html_class_attr for 'html_class_attr' and bf.html_name for 'field_name'. if top_errors is true,",if top_errors :
9845,from django.db.migrations.loader import MigrationLoader and AmbiguityError into default name space.,"from django . db . migrations . loader import MigrationLoader , AmbiguityError"
9846,"if fk is not an instance of ForeignKey class, or fk.rel.to is not equal to parent_model,","if not isinstance ( fk , ForeignKey ) or ( fk . rel . to != parent_model and fk . rel . to not in parent_model . _meta . get_parent_list ( ) ) :"
9847,"call the method connection.introspection.get_relations with 2 arguments cursor, table_name and substitute the result for relations.","relations = connection . introspection . get_relations ( cursor , table_name )"
9848,"if response is None,",if response is None :
9849,"while escaped is true or ch is not equal to a string ']',",while escaped or ch != ']' :
9850,USE_INOTIFY is boolean False.,USE_INOTIFY = False
9851,"call the function get_language, substitute the result for language_code.",language_code = get_language ( )
9852,"where '%(field)s' is replaced with first element of unique_check, return the result. if not,",else :
9853,"with open file path in append mode,","with open ( path , 'a' ) :"
9854,"if not,",else :
9855,"replace '%s' in the string '%s %s' with response.status_code and response.reason_phrase, respectively, substitute it for status.","status = '%s %s' % ( response . status_code , response . reason_phrase )"
9856,substitute stream_or_string for self.stream.,self . stream = stream_or_string
9857,questioner is an instance of a InteractiveMigrationQuestioner class.,questioner = InteractiveMigrationQuestioner ( )
9858,"return boolean True, otherwise return boolean False. property decorator.",@ property
9859,"return an instance of a NowNode class, created with an argument format_string.",return NowNode ( format_string )
9860,"call the method dict with 4: self.attrs, type as self.input_type, name as self.name, value as self.choice_value,","final_attrs = dict ( self . attrs , type = self . input_type , name = self . name , value = self . choice_value )"
9861,from django.core.management.base import BaseCommand into default name space.,from django . core . management . base import BaseCommand
9862,forms_valid is True.,forms_valid = True
9863,"get the value under the index key of the hextets dictionary, remove the leading '0' characters,",hextets [ index ] = hextets [ index ] . lstrip ( '0' )
9864,"created with an argument widget set to HiddenInput. value under the MIN_NUM_FORM_COUNT of the self.base_fields dictionary is an instance of IntegerField class,","self . base_fields [ MIN_NUM_FORM_COUNT ] = IntegerField ( required = False , widget = HiddenInput )"
9865,"call the function io.open with 3 arguments: work_file, string 'w' and encoding set to string 'utf-8' as arguments,","with io . open ( work_file , ""w"" , encoding = 'utf-8' ) as fp :"
9866,substitute _iteritems for items.,items = _iteritems
9867,call the method self.writer_enters.,self . writer_enters ( )
9868,"if lookup_view is contained in self._callback_strs,",if lookup_view in self . _callback_strs :
9869,"for every middleware_method in self._view_middleware,",for middleware_method in self . _view_middleware :
9870,"call the method _parse_header with an argument line, assign the result to name and tuple with 2 elements: value and params, respectively.","name , ( value , params ) = _parse_header ( line )"
9871,call the method self.model._default_manager.get_queryset with an argument qs.,qs = self . model . _default_manager . get_queryset ( )
9872,return input_val.,return input_val
9873,"get ""_decorated_function"" attribute from func, return func if the attribute doesnt exists,","self . tags [ getattr ( func , ""_decorated_function"" , func ) . __name__ ] = func"
9874,"if settings.USE_TZ is true,",if settings . USE_TZ :
9875,"if not,",else :
9876,"call the method self.fetch_command with first element of options.args as argument, on the result call the method print_help,","self . fetch_command ( options . args [ 0 ] ) . print_help ( self . prog_name , options . args [ 0 ] )"
9877,"and 'request with value request, respectively use the previous as the arguments for the call to the logger.warning function. if settings.DEBUG is True,",if settings . DEBUG :
9878,requires_system_checks is boolean False.,requires_system_checks = False
9879,define the function luhn with an argument candidate.,def luhn ( candidate ) :
9880,"call the os.path.samefile with arguments src and dst, return the result.","return os . path . samefile ( src , dst )"
9881,"remove the first element from self.backout, substitute the result for self.pointer.",self . pointer = self . backout . pop ( )
9882,return default.,return default
9883,"""arguments '%s' not found. %d pattern(s) tried: %s"", replace '%s' with lookup_view_s, args, kwargs, length of patterns, patterns, and respectively. derive the class LocaleRegexURLResolver with RegexURLResolver as base class.",class LocaleRegexURLResolver ( RegexURLResolver ) :
9884,"call the method token.split_contents, substitute the result for bits.",bits = token . split_contents ( )
9885,"call the function formatdate with 2 arguments: epoch_seconds and usegmt set to boolean True, return the result.","return formatdate ( epoch_seconds , usegmt = True )"
9886,define the function truncatewords with 2 arguments value and arg.,"def truncatewords ( value , arg ) :"
9887,derive the class FirstOfNode from Node base class.,class FirstOfNode ( Node ) :
9888,return lookup_view.,return lookup_view
9889,"call the method bytes_to_text with 2 arguments: default and self.encoding, substitute the result for default.","default = bytes_to_text ( default , self . encoding )"
9890,"convert self.dict into boolean, return the result.",return bool ( self . dict )
9891,define the method with self class instance and parser as arguments.,"def add_arguments ( self , parser ) :"
9892,raise an NotImplementedError exception with an argument string 'Awaiting Implementation'.,raise NotImplementedError ( 'Awaiting Implementation' )
9893,"define the function parse_bits with 8 arguments: parser, bits, params, varargs, varkw, defaults, takes_context and name.","def parse_bits ( parser , bits , params , varargs , varkw , defaults , takes_context , name ) :"
9894,"define the method __init__ with 3 arguments: self, schemes set to None and unpacked dictionary kwargs.","def __init__ ( self , schemes = None , ** kwargs ) :"
9895,"call the method logging.StreamHandler, substitute the result for handler.",handler = logging . StreamHandler ( )
9896,"and e.level is lesser than checks.WARNING and result of the method e.is_silenced in false. append e to warnings list for every e in all_issues, if checks.WARNING is lesser than or equal to e.level,",warnings = [ e for e in all_issues if checks . WARNING <= e . level < checks . ERROR and not e . is_silenced ( ) ]
9897,raise an ValueError exception with an argument string 'Unable to set formatter %r: %s' formated with formatter and e.,"raise ValueError ( 'Unable to set formatter ' '%r: %s' % ( formatter , e ) )"
9898,"if input_formats is not None,",if input_formats is not None :
9899,if ImportError exception is caught.,except ImportError :
9900,"call the function os.path.dirname with an argument writer.path, substitute the result for migrations_directory.",migrations_directory = os . path . dirname ( writer . path )
9901,"if length of args is not equal to the sum of the lengths of params and prefix_args,",if len ( args ) != len ( params ) + len ( prefix_args ) :
9902,"if not,",else :
9903,"if self._wrapped is empty,",if self . _wrapped is empty :
9904,"if pattern has an attribute '_callback_str',","if hasattr ( pattern , '_callback_str' ) :"
9905,derive class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
9906,return host.,return host
9907,"zip elements of inner_result and inner_args into a list of tuples, for every i_item and i_args in the result,","for i_item , i_args in zip ( inner_result , inner_args ) :"
9908,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
9909,"get the value under the lang_code key of the LANG_INFO dictionary, return it.",return LANG_INFO [ lang_code ]
9910,from django.conf import settings into default name space.,from django . conf import settings
9911,"__all__ a tuple containing strings: 'Field', 'CharField', 'IntegerField', 'DateField', 'TimeField', 'DateTimeField', 'RegexField',","__all__ = ( 'Field' , 'CharField' , 'IntegerField' , 'DateField' , 'TimeField' , 'DateTimeField' , 'RegexField' , 'EmailField' , 'FileField' , 'ImageField' , 'URLField' , 'BooleanField' , 'NullBooleanField' , 'ChoiceField' , 'MultipleChoiceField' , 'ComboField' , 'MultiValueField' , 'FloatField' , 'DecimalField' , 'SplitDateTimeField' , 'IPAddressField' , 'GenericIPAddressField' , 'FilePathField' , 'SlugField' , 'TypedChoiceField' , 'TypedMultipleChoiceField' )"
9912,"try,",try :
9913,"use the result as an argument for the call to the method filterer.addFilter. if StandardError, renamed to e, exception is caught,",except StandardError as e :
9914,from django.db.migrations.executor import MigrationExecutor into default name space.,from django . db . migrations . executor import MigrationExecutor
9915,"call the method __setitem__ from the base class of the class MultiValueDict, with 2 arguments key and list containing element value.","super ( MultiValueDict , self ) . __setitem__ ( key , [ value ] )"
9916,"if format is not contained in _serializers,",if format not in _serializers :
9917,raise an ValueError exception with an argument string 'Unable to configure handler %r: %s' formated with name and e.,"raise ValueError ( 'Unable to configure handler ' '%r: %s' % ( name , e ) )"
9918,DEFAULT_MIN_NUM is an integer 0.,DEFAULT_MIN_NUM = 0
9919,decrement nesting by one.,nesting -= 1
9920,"raise an TemplateSyntaxError exception with an argument string ""Invalid arguments provided to assignment_tag"".","raise TemplateSyntaxError ( ""Invalid arguments provided to assignment_tag"" )"
9921,"define function color_style, without input arguments.",def color_style ( ) :
9922,xgettext_options is an list with elements: strings '--from-code=UTF-8' and '--add-comments=Translators'.,"xgettext_options = [ '--from-code=UTF-8' , '--add-comments=Translators' ]"
9923,if self.selected_fields is None or last three elements of field.attname are contained in self.selected_fields:,if self . selected_fields is None or field . attname [ : - 3 ] in self . selected_fields :
9924,"if loader is not None,",if loader is not None :
9925,"get name attribute from the instance object, call it and return the result.","return getattr ( instance , name ) ( )"
9926,return FASTCGI_HELP.,return FASTCGI_HELP
9927,define the function make_msgid with argument idstring set to None.,def make_msgid ( idstring = None ) :
9928,"if not,",else :
9929,"if addr is a instance of six.string_types,","if isinstance ( addr , six . string_types ) :"
9930,"join elements of self.vals into a bytes string, substitute the result for ret.",ret = b'' . join ( self . vals )
9931,lang is None.,lang = None
9932,substitute value under the database key of the connections dictionary for connection.,connection = connections [ database ]
9933,"join result of the parts function into a bytes string, substitute it for out.",out = b'' . join ( parts ( ) )
9934,call the method utility.execute.,utility . execute ( )
9935,"if size of c_ulong does not equals to size of c_void_p,",if sizeof ( c_ulong ) != sizeof ( c_void_p ) :
9936,substitute self.pointer for i.,i = self . pointer
9937,"if 'pk' is contained in d,",if 'pk' in d :
9938,"if not,",else :
9939,"if not,",else :
9940,"help is a tuple containing string ""Creates a Django project directory structure for the given ""","help = ( ""Creates a Django project directory structure for the given "" ""project name in the current directory or optionally in the "" ""given directory."" )"
9941,import module sys.,import sys
9942,"join statements in a string separated by newline, return the result.",return '\n' . join ( statements )
9943,"if six.PY2 is true,",if six . PY2 :
9944,define the method __copy__ with an argument self.,def __copy__ ( self ) :
9945,"try,",try :
9946,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
9947,"if self.initial_forms is false,",if not self . initial_forms :
9948,"_func_globals is a string ""__globals__"".","_func_globals = ""__globals__"""
9949,"if self.asvar is true,",if self . asvar :
9950,"if value equals k or text_value equals return value of the function force_text called with argument k,",if value == k or text_value == force_text ( k ) :
9951,raise an NotImplementedError exception with argument string 'subclasses of Storage must provide an accessed_time() method'.,raise NotImplementedError ( 'subclasses of Storage must provide an accessed_time() method' )
9952,import module cgi.,import cgi
9953,"if _locs_ is None,",if _locs_ is None :
9954,define the method __enter__ with argument self.,def __enter__ ( self ) :
9955,yield meta_line as the result.,yield meta_line
9956,"where '%s' is replaced with name. if defaults is not None,",if defaults is not None :
9957,substitute self for self.config.configurator.,self . config . configurator = self
9958,"if TypeError or ValueError exceptions are caught,","except ( ValueError , TypeError ) :"
9959,"call the method now.decode with an argument string 'utf-8', substitute the result for now.",now = now . decode ( 'utf-8' )
9960,termios is None.,termios = None
9961,return None.,return None
9962,"if InputStreamExhausted exception is caught,",except InputStreamExhausted :
9963,"define the method got with 3 arguments: self, key and otherwise set to None.","def get ( self , key , otherwise = None ) :"
9964,import module os.,import os
9965,raise an NotImplementedError with argument string 'subclasses of FileUploadHandler must provide a file_complete() method'.,raise NotImplementedError ( 'subclasses of FileUploadHandler must provide a file_complete() method' )
9966,return templatetags_modules.,return templatetags_modules
9967,"return a string '%s-%s-%s GMT', formated with: first 7 elements of rfcdate, elements of rfcdate from 8-th to the 11-th index,","return '%s-%s-%s GMT' % ( rfcdate [ : 7 ] , rfcdate [ 8 : 11 ] , rfcdate [ 12 : 25 ] )"
9968,define the method value with an argument self.,def value ( self ) :
9969,"substitute the result for s. if not,",else :
9970,from django.apps import apps into default name space.,from django . apps import apps
9971,define the method __hash__ with an argument self.,def __hash__ ( self ) :
9972,"define the method __init__ with 4 arguments: self, context, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , context , * args , ** kwargs ) :"
9973,"call the sio.read method, substitute the result for self.buffer.",self . buffer = sio . read ( )
9974,"if OSError exception is caught,",except OSError :
9975,"where '%s' is replaced with top_dir. call the function handle_extensions with 2 arguments: value under the 'extensions' key of the options dictionary,","extensions = tuple ( handle_extensions ( options [ 'extensions' ] , ignored = ( ) ) )"
9976,"call the function force_text with an argument bit, append the result to bits.",bits . append ( force_text ( bit ) )
9977,"if first element of s is not contained in ""\""'"" or last element of s is not equal to first element of s,","if s [ 0 ] not in ""\""'"" or s [ - 1 ] != s [ 0 ] :"
9978,"replace all occurrences of symbol '_' in string k with symbol '-', use new string as key to find a value in dictionary cc,","cc [ k . replace ( '_' , '-' ) ] = v"
9979,"if only_django,",if only_django :
9980,"call the method add_fields from the base class of the class BaseInlineFormSet, with 2 arguments: form and index.","super ( BaseInlineFormSet , self ) . add_fields ( form , index )"
9981,"""RobotFileParser"", ""robotparser"", ""urllib.robotparser"". for every attr in _urllib_robotparser_moved_attributes,",for attr in _urllib_robotparser_moved_attributes :
9982,"call the function convert_old_style_list with an argument value, substitute the result for value and converted, respectively.","value , converted = convert_old_style_list ( value )"
9983,"if instance.pk is None,",if instance . pk is None :
9984,substitute new_value for value.,value = new_value
9985,substitute v for value under the k key of self dictionary.,self [ k ] = v
9986,"define the method _new_gnu_trans with 3 arguments: self, localedir and use_null_fallback set to boolean True.","def _new_gnu_trans ( self , localedir , use_null_fallback = True ) :"
9987,"call the get_bytes_from_wsgi function with self.environ, string 'QUERY_STRING' and empty string as arguments, substitute the return value for raw_query_string.","raw_query_string = get_bytes_from_wsgi ( self . environ , 'QUERY_STRING' , '' )"
9988,"convert self.domain into a string and append string '.po' to it, join basedir and result in file path, substitute it for pofile.","pofile = os . path . join ( basedir , '%s.po' % str ( self . domain ) )"
9989,"field url of the value under the 'enclosure' key of the item dictionary for 'url', field length of the value under the 'enclosure' key of the item dictionary for 'length', and field mime_type of the value under the 'enclosure' key of the item dictionary for 'type'. for every cat in value under the 'categories' key of the item dictionary,",for cat in item [ 'categories' ] :
9990,"if not,",else :
9991,"from django.utils.encoding import force_str, force_text and iri_to_uri into default name space.","from django . utils . encoding import force_str , force_text , iri_to_uri"
9992,substitute environ for self.environ.,self . environ = environ
9993,"instantiate Archive class with an argument path, with it renamed to archive, perform,",with Archive ( path ) as archive :
9994,"define the method compile_function_error with 3 arguments: self, token and e.","def compile_function_error ( self , token , e ) :"
9995,return ZERO.,return ZERO
9996,"if ImproperlyConfigured exception is caught,",except ImproperlyConfigured :
9997,self.cookies is an instance of a class SimpleCookie.,self . cookies = SimpleCookie ( )
9998,"replace this value with v. call the function dictvalue with el as argument for every el in values of dictionary cc,","cc = ', ' . join ( dictvalue ( el ) for el in cc . items ( ) )"
9999,"otherwise is template is six.string_types instance,","elif isinstance ( template , six . string_types ) :"
0,return an empty list.,return [ ]
1,"call the function time.strftime with 2 arguments: fmt and and timetuple without the first element,","s2 = time . strftime ( fmt , ( year + 28 , ) + timetuple [ 1 : ] )"
2,"where '%d' is replaced with i and '%s' is replaced with subject. increment i by integer 1,",i += 1
3,define the function ugettext with an argument message.,def ugettext ( message ) :
4,"call the function endtag_re.sub with 2 arguments: an empty string and html, substitute the result for html.","html = endtag_re . sub ( '' , html )"
5,define the method all with argument self.,def all ( self ) :
6,"define the method clear with self class instance as the argument,",def clear ( self ) :
7,"for every child in node.childNodes,",for child in node . childNodes :
8,if encoding is false.,if not encoding :
9,"if answer is false,",if not answer :
10,return value.,return value
11,"evaluate method transaction.atomic with arguments: using set to database and savepoint set to connection.features.can_rollback_ddl,","with transaction . atomic ( using = database , savepoint = connection . features . can_rollback_ddl ) :"
12,"raise an InvalidTemplateLibrary exception with an argument string (""Unsupported arguments to Library.filter: (%r, %r)"",","raise InvalidTemplateLibrary ( ""Unsupported arguments to "" ""Library.filter: (%r, %r)"" , ( name , filter_func ) )"
13,"call the method self.filter_function with 2 arguments func and unpacked dictionary flags, return the result.","return self . filter_function ( func , ** flags )"
14,"try,",try :
15,return initial_forms.,return initial_forms
16,"append tuple containing two entries: k and integer 1 to options, for every k in FASTCGI_OPTIONS.","options += [ ( k , 1 ) for k in FASTCGI_OPTIONS ]"
17,"try,",try :
18,"help is a string ""Starts a lightweight Web server for development."".","help = ""Starts a lightweight Web server for development."""
19,"HttpResponse.content.setter property,",@ HttpResponse . content . setter
20,"raise an TypeError exception with an argument string ""invalid keyword arguments to print()"".","raise TypeError ( ""invalid keyword arguments to print()"" )"
21,substitute pattern.regex.pattern for parent_pat.,parent_pat = pattern . regex . pattern
22,"call the function _generate_cache_header_key with key_prefix and request as arguments, substitute the result for cache_key.","cache_key = _generate_cache_header_key ( key_prefix , request )"
23,substitute result for value under the mem_args key of the cache dictionary.,cache [ mem_args ] = result
24,format_locations is an empty list.,format_locations = [ ]
25,call the method logger.addHandler with an argument handler.,logger . addHandler ( handler )
26,define the function sanitize_address with arguments addr and encoding.,"def sanitize_address ( addr , encoding ) :"
27,"call the method handler.addQuickElement with 3 arguments: string 'dc:creator',","handler . addQuickElement ( ""dc:creator"" , item [ ""author_name"" ] , { ""xmlns:dc"" : ""http://purl.org/dc/elements/1.1/"" } )"
28,"if subcommand_cls.use_argparse is true,",if subcommand_cls . use_argparse :
29,"call the self.initial_form_count method, return the sublist of self.forms from the beginning to the previous result as the end index.",return self . forms [ : self . initial_form_count ( ) ]
30,"and pattern.default_args. if pattern.name is not None,",if pattern . name is not None :
31,substitute self.handle_app for handle_app.,handle_app = self . handle_app
32,"call the function dict with an argument tuple with 2 elements: o.pk and o, for every o in result of the method self.get_queryset,","self . _object_dict = dict ( ( o . pk , o ) for o in self . get_queryset ( ) )"
33,"define the method __new__ with 4 arguments: cls, name, this_bases and d.","def __new__ ( cls , name , this_bases , d ) :"
34,"append the resulting string to dec_part, substitute it for dec_part. if dec_part is true,",if dec_part :
35,"call the method pop from the base class of the class QueryDict, with arguments key and unpacked list args, return the result.","return super ( QueryDict , self ) . pop ( key , * args )"
36,"if ValueError exception is caught,",except ValueError :
37,"raise an TemplateSyntaxError exception with an argument string ""widthratio takes at least three arguments"".","raise TemplateSyntaxError ( ""widthratio takes at least three arguments"" )"
38,"while the result of the method new_name.find, called with an argument string '__' is greater or equals integer 0,",while new_name . find ( '__' ) >= 0 :
39,"get 'value' attribute of the _active object, if it exists return it, if not, call the function get_default_timezone and return the result.","return getattr ( _active , ""value"" , get_default_timezone ( ) )"
40,"property decorator,",@ property
41,"otherwise if vale is an instance of value,","elif isinstance ( value , six . string_types ) :"
42,"if the result to the method call response.has_header, with string 'Cache-Control' as an argument is boolean False,",if not response . has_header ( 'Cache-Control' ) :
43,"if self.body is true,",if self . body :
44,"call the function is_valid_ipv6_address with an argument value, if it evaluates to false,",if not is_valid_ipv6_address ( value ) :
45,"call the method self.get_available_name with argument name, substitute it for name.",name = self . get_available_name ( name )
46,"for every base in reversed order of bases,",for base in bases [ : : - 1 ] :
47,run_syncdb is boolean True.,run_syncdb = True
48,"if IOError, renamed to e, exception is caught,",except IOError as e :
49,"call the method self.build_attrs with 3 arguments: attrs, type as self.input_type, name as name, substitute the result for final_attrs.","final_attrs = self . build_attrs ( attrs , type = self . input_type , name = name )"
50,if format_module_path is None.,if format_module_path is None :
51,"return an instance of metaclass class, created with 3 arguments: cls.__name__, cls.__bases__ and orig_vars.","return metaclass ( cls . __name__ , cls . __bases__ , orig_vars )"
52,"define the method __init__ with 4 arguments: self, template_string, origin set to None and name set to None.","def __init__ ( self , template_string , origin = None , name = None ) :"
53,"if self.timezone is true and call to the method self.timezone.dst with an argument self.data, evaluates to true,",if self . timezone and self . timezone . dst ( self . data ) :
54,"for every value in initial call the function force_text with an argument value, add the results into a set, substitute the resulting set for initial_set.",initial_set = set ( force_text ( value ) for value in initial )
55,inner_html is a string '{choice_value}{sub_widgets} '.,inner_html = '{choice_value}{sub_widgets} '
56,call the method handler.startDocument.,handler . startDocument ( )
57,convert self to a list and return it.,return list ( self )
58,substitute result of the function urlparse with an argument ur1 for p1 and result of the function urlparse with an argument ur2 for p2.,"p1 , p2 = urlparse ( url1 ) , urlparse ( url2 )"
59,derive the class NullBooleanField from the base class BooleanField class.,class NullBooleanField ( BooleanField ) :
60,"if not,",else :
61,raise an NotImplementedError with an argument string 'subclasses of Tokenparser must provide a top() method'.,raise NotImplementedError ( 'subclasses of Tokenparser must provide a top() method' )
62,substitute cookie for c.,c = cookie
63,derive the class BadSignature from the Exception base class.,class BadSignature ( Exception ) :
64,"define method __init__ with self class instance, mode string 'w+b', bufsize set to integer -1, suffix and prefix set to empty strig,","def __init__ ( self , mode = 'w+b' , bufsize = - 1 , suffix = '' , prefix = '' , dir = None ) :"
65,"for every loader in self.loaders,",for loader in self . loaders :
66,"execute regardless of the exception being raised,",finally :
67,"define the method unparsed_entity_decl with arguments self, name, base, sysid, pubid and notation_name.","def unparsed_entity_decl ( self , name , base , sysid , pubid , notation_name ) :"
68,"and unpacked dictionary kwargs. for every v in self.value call the function force_text with an argument v, add the result to a set,",self . value = set ( force_text ( v ) for v in self . value )
69,substitute parsed for self.parsed.,self . parsed = parsed
70,property decorator.,@ property
71,"raise CommandError with an argument string 'Unknown model: %s', where '%s' is replaced with app_label and model_label, respectively.","raise CommandError ( ""Unknown model: %s.%s"" % ( app_label , model_label ) )"
72,statements is an empty list.,statements = [ ]
73,skip this loop iteration.,continue
74,"if not,",else :
75,"remove the first element from colors, substitute it for fg.",fg = colors . pop ( )
76,"where '%s' is replaced with self.id. define the method led with 3 arguments: self, left and parser.","def led ( self , left , parser ) :"
77,derive the class Command from the base class BaseCommand.,class Command ( BaseCommand ) :
78,"if message_context is true,",if message_context :
79,"if refto is contained in seen_models,",if refto in seen_models :
80,singular is an empty list.,singular = [ ]
81,"call the method tag_re.finditer with an argument self.template_string, for every match in result,",for match in tag_re . finditer ( self . template_string ) :
82,"register.tag decorator,",@ register . tag
83,define the method to_python with arguments self and data.,"def to_python ( self , value ) :"
84,neg is integer 1.,neg = 1
85,"convert current_expires to a string, use it as the argument for the call to the function typecast_timestamp, substitute the result for current_expires.",current_expires = typecast_timestamp ( str ( current_expires ) )
86,"append opts.virtual_fields to opts.many_to_many, for every f in the result,",for f in opts . many_to_many + opts . virtual_fields :
87,where '%s' is replaced with first element of bits. return an instance of ExtendsNode with 2 arguments nodelist and parent_name.,"return ExtendsNode ( nodelist , parent_name )"
88,values is an dictionary with 2 arguments: boolean False for 'false' and boolean True for 'true'.,"values = { 'true' : True , 'false' : False }"
89,"if TypeError exception is caught,",except TypeError :
90,"call the function settings.is_overridden with argument string 'MANAGERS', if it evaluates to boolean True,",if settings . is_overridden ( 'MANAGERS' ) :
91,return s.,return s
92,define the method __deepcopy__ with 2 arguments: self and memo.,"def __deepcopy__ ( self , memo ) :"
93,substitute mtime for the value under the filename key of _mtimes dictionary.,_mtimes [ filename ] = mtime
94,"create md5 hash from string response.content in hexadecimal format, surround the hash with double quotes,","response [ 'ETag' ] = '""%s""' % hashlib . md5 ( response . content ) . hexdigest ( )"
95,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
96,from collections import OrderedDict into default name space.,from collections import OrderedDict
97,define the function from_current_timezone with an argument value.,def from_current_timezone ( value ) :
98,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
99,return integer 1 and ch2.,"return 1 , ch2"
100,from django.utils.encoding import force_text and python_2_unicode_compatible into default name space.,"from django . utils . encoding import force_text , python_2_unicode_compatible"
101,"if name is callable object,",if callable ( name ) :
102,substitute form for self.form.,self . form = form
103,"otherwise if any other exception is caught,",except :
104,substitute message for self.message.,self . message = message
105,return value under the alias key of self._caches.caches dictionary.,return self . _caches . caches [ alias ]
106,close zfile stream.,zfile . close ( )
107,"get the next element of the iterable pattern_iter, assign the result for ch and escaped, respectively.","ch , escaped = next ( pattern_iter )"
108,"call the function force_bytes with an argument key_salt, substitute the result for key_salt.",key_salt = force_bytes ( key_salt )
109,"if y, m and d are all equal to string '0',","if y == m == d == ""0"" :"
110,"call the __init__ method with stream_class(content) and name set to name arguments, from the base class of the ContentFile class.","super ( ContentFile , self ) . __init__ ( stream_class ( content ) , name = name )"
111,raise a NotImplementedError with an argument string,raise NotImplementedError ( 'subclasses of Serializer must provide an handle_fk_field() method' )
112,"constant_string is a raw string ""(?:%(i18n_open)s%(strdq)s%(i18n_close)s|%(i18n_open)s%(strsq)s%(i18n_close)s|%(strdq)s|%(strsq)s)"",","constant_string = r"""""" (?:%(i18n_open)s%(strdq)s%(i18n_close)s| %(i18n_open)s%(strsq)s%(i18n_close)s| %(strdq)s| %(strsq)s) """""" % { 'strdq' : r'""[^""\\]*(?:\\.[^""\\]*)*""' , 'strsq' : r""'[^'\\]*(?:\\.[^'\\]*)*'"" , 'i18n_open' : re . escape ( ""_("" ) , 'i18n_close' : re . escape ( "")"" ) , }"
113,call the method self._archive.list.,self . _archive . list ( )
114,extend list inner_args with args.,inner_args . extend ( args )
115,import module threading.,import threading
116,"compare is a lambda function with arguments self, a and b, return value is boolean True if a is not b, otherwise it is False.","compare = lambda self , a , b : a is not b"
117,"set use_workaround to boolean True if current_version tuple elements are smaller than the tuple (2,7,3), respectively,","use_workaround = ( ( current_version < ( 2 , 7 , 3 ) ) or ( current_version >= ( 3 , 0 ) and current_version < ( 3 , 2 , 3 ) ) )"
118,return j.,return j
119,"get the integer representation of the i-th element of buf, return it.",return ord ( buf [ i ] )
120,"call the method related.natural_key, substitute the result for related.",related = related . natural_key ( )
121,define the method __str__ with an argument self.,def __str__ ( self ) :
122,"if app_config.models_module is None,",if app_config . models_module is None :
123,"compare is a lambda function with arguments self, a and b, return value is boolean true if a is greater than b, otherwise is false.","compare = lambda self , a , b : a > b"
124,"if not,",else :
125,define the method previous_page_number with an argument self.,def previous_page_number ( self ) :
126,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
127,derive the class UTC from the tzinfo base class.,class UTC ( tzinfo ) :
128,"raise an ImproperlyConfigured exception with argument string 'Path for saving emails is invalid: %r', replace '%r' with self.file_path.",raise ImproperlyConfigured ( 'Path for saving emails is invalid: %r' % self . file_path )
129,"return an empty string,",return ''
130,define the function time with 2 arguments value and arg set to None.,"def time ( value , arg = None ) :"
131,"define the method __setitem__ with 3 arguments: self, kay and value.","def __setitem__ ( self , key , value ) :"
132,from datetime import datetime into default name space.,from datetime import datetime
133,import module errno.,import errno
134,"if conflicts is true and self.merge is false,",if conflicts and not self . merge :
135,requires_system_checks is boolean False.,requires_system_checks = False
136,"get_format called with an argument string 'DATETIME_INPUT_FORMATS', substitute the result for format. call the method value.strftime with an argument format, return the result.",return value . strftime ( format )
137,substitute cmd for self.cmd.,self . cmd = cmd
138,from django.utils.text import normalize_newlines and slugify as _slugify into default name space.,"from django . utils . text import normalize_newlines , slugify as _slugify"
139,"call the function local, substitute the result for _active.",_active = local ( )
140,substitute error_messages under the message.code key of error_messages dictionary for message.message.,message . message = error_messages [ message . code ]
141,substitute _iterkeys for iterkeys.,iterkeys = _iterkeys
142,value under the klass key of the cls.__dispatch dictionary is an empty dictionary.,cls . __dispatch [ klass ] = { }
143,saved_instances is an empty list.,saved_instances = [ ]
144,define the method super with an argument self.,def super ( self ) :
145,from django.utils.encoding import force_unicode.,from django . utils . encoding import force_unicode
146,"call the method _trans.npgettext with 4 arguments context, singular, plural and number.","return _trans . npgettext ( context , singular , plural , number )"
147,"if value is false or for every v in value every v is contained in self.empty_values,",if not value or not [ v for v in value if v not in self . empty_values ] :
148,substitute first element of loader for loader and loader without the first element for args.,"loader , args = loader [ 0 ] , loader [ 1 : ]"
149,substitute field for self.field.,self . field = field
150,"join top_dir, relative_dir and return value of the function filename.replace called with 2 arguments: base_name and name,","new_path = path . join ( top_dir , relative_dir , filename . replace ( base_name , name ) )"
151,do nothing.,pass
152,"for every i in range of integers from 0 to length of result, not included,",for i in range ( len ( result ) ) :
153,use the result as an argument for the call to the function self._out.write. derive the BaseCommand class from the object base class.,class BaseCommand ( object ) :
154,"get the directory name of filename, substitute the result for dirname.",dirname = os . path . dirname ( filename )
155,"""format (using each model's default manager unless --all is specified)."". define the method add_arguments with arguments self and parser.","def add_arguments ( self , parser ) :"
156,"call the function find_template_loader with an argument loader, append the result to cached_loaders.",cached_loaders . append ( find_template_loader ( loader ) )
157,substitute lookup_view for lookup_view_s.,lookup_view_s = lookup_view
158,call the method self._post.appendlist with 2 arguments: field_name and result of the function force_text called with 3 arguments:,"self . _post . appendlist ( field_name , force_text ( data , encoding , errors = 'replace' ) )"
159,root is an empty list.,root = [ ]
160,call the method urlresolvers.set_urlconf with urlconf as the argument.,urlresolvers . set_urlconf ( urlconf )
161,"try,",try :
162,"decorator stringfilter,",@ stringfilter
163,"for every header in headerlist,",for header in headerlist :
164,substitute registry.run_checks for run_checks.,run_checks = registry . run_checks
165,"get the value under the mem_args key of the cache dictionary, return it.",return cache [ mem_args ]
166,"create a tuple out of types of v, for every v in args, extend key tuple with the result.",key += tuple ( type ( v ) for v in args )
167,define the method _clean_fields with an argument self.,def _clean_fields ( self ) :
168,"if ipv4_unpacked is true,",if ipv4_unpacked :
169,"for every form in self.saved_forms,",for form in self . saved_forms :
170,"unpacked dictionary created with elements of morekwargs dictionary through the kwargs mapping, return the result. return _curried.",return _curried
171,"assign it to value under the string "".moves.urllib_response"" appended to __name__ key of the sys.modules dictionary, and to value under the string "".moves.urllib.response"" appended to __name__ key of the sys.modules dictionary. derive class Module_six_moves_urllib_robotparser from the _LazyModule base class.",class Module_six_moves_urllib_robotparser ( _LazyModule ) :
172,"substitute the result for RFC850_DATE. call the function re.compile with an argument raw string '^\w{3} %s %s %s %s$' formated with __M, __D2, __T and __Y,","ASCTIME_DATE = re . compile ( r'^\w{3} %s %s %s %s$' % ( __M , __D2 , __T , __Y ) )"
173,self._called_from_command_line is boolean True.,self . _called_from_command_line = True
174,increment i by integer 1.,i += 1
175,"define the method __call__ with 3 arguments: self, template_name and template_dirs set to None.","def __call__ ( self , template_name , template_dirs = None ) :"
176,"call the method self.get_unique_error_message with an argument unique_check, append the result to errors.",errors . append ( self . get_unique_error_message ( unique_check ) )
177,import module '.management' from the package app_config.name.,"import_module ( '.management' , app_config . name )"
178,return _wrapped_view.,return _wrapped_view
179,use_l10n set to None and use_tz set to None. substitute autoescape for self.autoescape.,self . autoescape = autoescape
180,substitute self.default_timeout for timeout.,timeout = self . default_timeout
181,from django.utils.six.moves.urllib.parse import urljoin into default name space.,from django . utils . six . moves . urllib . parse import urljoin
182,"if self.deactivate is true,",if self . deactivate :
183,substitute force_text for force_str.,force_str = force_text
184,"if not,",else :
185,substitute self for value.configurator.,value . configurator = self
186,call the method self.handle_template with 2 arguments: value under the 'template' key of the options dictionary and base_subdir.,"template_dir = self . handle_template ( options [ 'template' ] , base_subdir )"
187,"call the function get_template_from_string with 3 arguments: source, origin and template_name, substitute the result for template.","template = get_template_from_string ( source , origin , template_name )"
188,"raise an exception self.error_class with an argument string """"Unused '%s' at end of if expression"",","raise self . error_class ( ""Unused '%s' at end of if expression."" % self . current_token . display ( ) )"
189,"if call to the function response.has_header with string 'Last-Modified' as an argument returns boolean False,",if not response . has_header ( 'Last-Modified' ) :
190,"take last four elements of base and append ext to it, substitute result for ext.",ext = base [ - 4 : ] + ext
191,"call the import_string with arguments path, call the return function with arguments: unpacked list args and unpacked dictionary kwargs, return the result.","return import_string ( path ) ( * args , ** kwargs )"
192,derive the class QueryDict from the base class MultiValueDict.,class QueryDict ( MultiValueDict ) :
193,"call the function escape with an argument text, return the result.",return escape ( text )
194,from django.utils.functional import lazy into default name space.,from django . utils . functional import lazy
195,define the method pop with an argument self.,def pop ( self ) :
196,import module sys.,import sys
197,"for every smigration in migrations_to_squash,",for smigration in migrations_to_squash :
198,"call the function warnings.warn with 3 arguments: string ""`%s.%s` is deprecated, use `%s` instead."",","warnings . warn ( ""`%s.%s` is deprecated, use `%s` instead."" % ( self . class_name , self . old_method_name , self . new_method_name ) , self . deprecation_warning , 2 )"
199,from collections import UserList into default namespace.,from collections import UserList
200,define the function m2m_convert with an argument value.,def m2m_convert ( value ) :
201,"get the values under the 'app_label' and 'migration_name' keys of the options dictionary,","app_label , migration_name = options [ 'app_label' ] , options [ 'migration_name' ]"
202,input_type is None.,input_type = None
203,"call the add_argument method on the parser object, with string 'migration_name', and help set to string 'Migration name to print the SQL for.' as arguments.","parser . add_argument ( 'migration_name' , help = 'Migration name to print the SQL for.' )"
204,from django.conf import settings into default name space.,from django . conf import settings
205,"if field.rel.to._meta.pk.rel is true,",if field . rel . to . _meta . pk . rel :
206,"format string hex_format_string with x, call the method encode on the result with an argument string 'ascii',",return binascii . unhexlify ( ( hex_format_string % x ) . encode ( 'ascii' ) )
207,"define the method _proxy_method with 3 arguments self, unpacked list args and unpacked dictionary kwargs.","def _proxy_method ( self , * args , ** kwargs ) :"
208,"raise CommandError exception with ""Cannot find a migration matching '%s' from app '%s'."",","raise CommandError ( ""Cannot find a migration matching '%s' from app '%s'."" % ( migration_name , app_label ) )"
209,"if mode is not contained in app_list_value,",if model not in app_list_value :
210,"if 'is_safe' attribute of func object exists and is true and obj is an instance of SafeData,","if getattr ( func , 'is_safe' , False ) and isinstance ( obj , SafeData ) :"
211,"call the self.compare method with arguments cleaned and self.limit_value, if it evaluates to true,","if self . compare ( cleaned , self . limit_value ) :"
212,define the method __repr__ with an argument self.,def __repr__ ( self ) :
213,define the method __call__ with arguments self and value.,"def __call__ ( self , value ) :"
214,"from django.db.models import AutoField, OneToOneField and ForeignKey.","from django . db . models import AutoField , OneToOneField , ForeignKey"
215,"call the method cmatch.group with an argument integer 1, format with the result string ' _(%s) ', write it to out.",out . write ( ' _(%s) ' % cmatch . group ( 1 ) )
216,"for every e in all_issues, raise an CommandError with argument msg,",raise CommandError ( msg )
217,"if not,",else :
218,return an empty list.,return [ ]
219,"__all__ is a tuple containing strings 'BaseFormSet', 'formset_factory' and 'all_valid'.","__all__ = ( 'BaseFormSet' , 'formset_factory' , 'all_valid' )"
220,define the method create_variable_node with 2 arguments: self and contents.,"def create_variable_node ( self , contents ) :"
221,"call he function is_valid_ipv6_address with an argument ip_str, if it evaluates to false,",if not is_valid_ipv6_address ( ip_str ) :
222,derive the class MultiValueDict from the dict base class.,class MultiValueDict ( dict ) :
223,"dictionary keys converted into sets, skip this loop iteration,",continue
224,"remove config dictionary element under 'name' key, if it exists substitute it for name, if not, name is an empty string.","name = config . get ( 'name' , '' )"
225,raise an ImproperlyConfigured exception with an argument string 'The SECURE_PROXY_SSL_HEADER setting must be a tuple containing two values.'.,raise ImproperlyConfigured ( 'The SECURE_PROXY_SSL_HEADER setting must be a tuple containing two values.' )
226,"take a tuple with 2 elements: boolean False and instance of Variable class, created with an argument constant_arg, append it to args.","args . append ( ( True , Variable ( var_arg ) ) )"
227,decorator register with Tags.models as an argument.,@ register ( Tags . models )
228,level is an integer 0.,level = 0
229,"call the function loader with 2 arguments name and dirs, substitute the result for source and display_name, respectively.","source , display_name = loader ( name , dirs )"
230,call close method on a file stream.,f . close ( )
231,return attrs.,return attrs
232,from django.core.serializers import base into default name space.,from django . core . serializers import base
233,"msg is a string """"The included urlconf '{name}' does not appear to have any patterns in it.","msg = ( ""The included urlconf '{name}' does not appear to have any "" ""patterns in it. If you see valid patterns in the file then "" ""the issue is probably caused by a circular import."" )"
234,app_configs is None.,app_configs = None
235,self.position is an integer 0.,self . position = 0
236,"call the function re.compile with an argument string '(%s.*?%s|%s.*?%s|%s.*?%s)', substitute all occurrences of '%s' with,","tag_re = ( re . compile ( '(%s.*?%s|%s.*?%s|%s.*?%s)' % ( re . escape ( BLOCK_TAG_START ) , re . escape ( BLOCK_TAG_END ) , re . escape ( VARIABLE_TAG_START ) , re . escape ( VARIABLE_TAG_END ) , re . escape ( COMMENT_TAG_START ) , re . escape ( COMMENT_TAG_END ) ) ) )"
237,"with an argument string 'object', return the result. define the method _get_model_from_node with arguments self, node and attr.","def _get_model_from_node ( self , node , attr ) :"
238,if KeyError exception is caught.,except KeyError :
239,raise an TemplateDoesNotExist exception with an argument template_name.,raise TemplateDoesNotExist ( template_name )
240,derive the class TextNode form the base class Node.,class TextNode ( Node ) :
241,"call the method connection.creation.create_test_db with verbosity set to verbosity, autoclobber set to inverse value of interactive,","db_name = connection . creation . create_test_db ( verbosity = verbosity , autoclobber = not interactive , serialize = False )"
242,"get the attribute '__module__' from the getattr, if it exists substitute it for m, if not, m is None.","m = getattr ( lookup_view , '__module__' , None )"
243,import pickle.,import pickle
244,define the function get_language.,def get_language ( ) :
245,"for every f in fields, if exclude is false, or if exclude is true and f is not contained in exclude, and only if f is not in ignored,","field_dict = OrderedDict ( [ ( f , field_dict . get ( f ) ) for f in fields if ( ( not exclude ) or ( exclude and f not in exclude ) ) and ( f not in ignored ) ] )"
246,self._closable_objects is an empty list.,self . _closable_objects = [ ]
247,"call the function force_str with an argument signature, return the result.",return force_str ( signature )
248,request_middleware is an empty list.,request_middleware = [ ]
249,"call the function processor with an argument request, update updates dictionary with the result.",updates . update ( processor ( request ) )
250,"call the function chain with arguments self.choices and choices, for every option_value and option_label in the result,","for option_value , option_label in chain ( self . choices , choices ) :"
251,"finally,",finally :
252,"if not,",else :
253,define the method __getitem__ with 2 arguments: self and name.,"def __getitem__ ( self , name ) :"
254,import module warnings.,import warnings
255,"get the value under the settings.LANGUAGE_COOKIE_NAME key of the request.COOKIES dictionary, substitute it for lang_code.",lang_code = request . COOKIES . get ( settings . LANGUAGE_COOKIE_NAME )
256,self.verbatim is boolean False.,self . verbatim = False
257,yield representative and boolean True.,"yield representative , True"
258,"call the function copy with an argument base class of the class BaseContext, substitute the result for duplicate.","duplicate = copy ( super ( BaseContext , self ) )"
259,"strfunc is an instance of a class Name, created with 2 arguments: string ""__str__"" and prefix as unifunc.prefix.","strfunc = Name ( ""__str__"" , prefix = unifunc . prefix )"
260,substitute value under the cache_alias key of the caches dictionary for cache.,cache = caches [ cache_alias ]
261,"concatenate first site elements of s, syear and elements of s from the site incremented by integer 4 index, substitute the result for s.",s = s [ : site ] + syear + s [ site + 4 : ]
262,"fetch one record from the database cursor points at, substitute the first element of return value for num.",num = cursor . fetchone ( ) [ 0 ]
263,"if self.save_as_new is true,",if self . save_as_new :
264,from django.core.signals import request_finished into default name space.,from django . core . signals import request_finished
265,substitute return value of the method obj._get_pk_val for obj_pk.,obj_pk = obj . _get_pk_val ( )
266,"append x to self.namespaces list for every x in namespaces, only if x is true.",self . namespaces = [ x for x in namespaces if x ]
267,"define the method get_template_sources with 3 arguments: self, template_name, template_dirs set to None.","def get_template_sources ( self , template_name , template_dirs = None ) :"
268,"get config dictionary element under 'incremental' key, if it exists substitute it for incremental, if not,","incremental = config . pop ( 'incremental' , False )"
269,"if NameError exception is caught,",except KeyError :
270,"if args in true,",if args :
271,"try,",try :
272,"call the method parser.compile_filter with an argument, second element of bits, substitute the result for val1.",val1 = parser . compile_filter ( bits [ 1 ] )
273,"if dt is None, is_dst is boolean False, otherwise call the method _isdst with an argument dt, substitute the result for is_dst.",is_dst = False if dt is None else self . _isdst ( dt )
274,response_fixes is a list with http.fix_location_header and http.conditional_content_removal as elements.,"response_fixes = [ http . fix_location_header , http . conditional_content_removal , ]"
275,"define the method value_from_datadict with 4 arguments: self, data, files and name.","def value_from_datadict ( self , data , files , name ) :"
276,"if field is an instance of InlineForeignKeyField class,","if isinstance ( field , InlineForeignKeyField ) :"
277,"call the function datetime.datetime with 3 arguments: value.year, value.month and value.day, substitute the result for result.","result = datetime . datetime ( value . year , value . month , value . day )"
278,"if 'fields' attribute of Meta object is None and 'exclude' attribute of Meta object is None,","if ( getattr ( Meta , 'fields' , None ) is None and getattr ( Meta , 'exclude' , None ) is None ) :"
279,"raise an TemplateSyntaxError with an argument string ""Invalid filter: '%s'"", substitute '%s' with filter_name.","raise TemplateSyntaxError ( ""Invalid filter: '%s'"" % filter_name )"
280,"for every dirpath, dirnames and filenames in the result, for every dirname in list dirnames,",for dirname in dirnames [ : ] :
281,from collections import OrderedDict into default name space.,from collections import OrderedDict
282,"try,",try :
283,"call the method self.as_tuple with an argument value under 'address' key of config dictionary,",config [ 'address' ] = self . as_tuple ( config [ 'address' ] )
284,substitute number for value under the 'number' key of the kwargs dictionary.,kwargs [ 'number' ] = number
285,"on the result call the method encode with the arguments encoding and errors, return the result. if strings_only and boolean return value of the call to the function is_protected_type for argument s are boolean True,",if strings_only and is_protected_type ( s ) :
286,"remove config dictionary element under 'disable_existing_loggers' key, if it exists substitute it for disable_existing, if not,","disable_existing = config . pop ( 'disable_existing_loggers' , True )"
287,"compile regular expression based on the string '\s*,\s*' and assign the result to cc_delim_re.","cc_delim_re = re . compile ( r'\s*,\s*' )"
288,"call the method self.common_logger_config with 3 arguments: logger, config and incremental.","self . common_logger_config ( logger , config , incremental )"
289,substitute request.urlconf for urlconf.,urlconf = request . urlconf
290,from django.utils import timezone into default name space.,from django . utils import timezone
291,"if path_info is empty,",if not path_info :
292,"call the method self._isdst with an argument dt, if it evaluates to true,",if self . _isdst ( dt ) :
293,"substitute this list for additional_headers. join all of the elements of vary_headers and additional_headers in a string delimited by a comma,","response [ 'Vary' ] = ', ' . join ( vary_headers + additional_headers )"
294,substitute _itervalues for values.,values = _itervalues
295,return singular_suffix.,return singular_suffix
296,"raise an ValueError with an argument string ""'package' not set to a string"".","raise ValueError ( ""'package' not set to a string"" )"
297,call the function deactivate_all.,deactivate_all ( )
298,buffer_types is a tuple with 2 elements bytearray and memoryview.,"buffer_types = ( bytearray , memoryview )"
299,"try,",try :
300,"raise an CommandError exception with an argument string ""Command doesn't accept any arguments"".","raise CommandError ( ""Command doesn't accept any arguments"" )"
301,"call the get_valid_filename with argument name, return the result.",return get_valid_filename ( name )
302,derive the class OrderedSet from the object base class.,class OrderedSet ( object ) :
303,call the method self.endElement with an argument name.,self . endElement ( name )
304,"call the method self.get_handler with 2 arguments unpacked list args and unpacked dictionary options, substitute the result for handler.","handler = self . get_handler ( * args , ** options )"
305,raise a ValidationError exception with arguments self.message and code set to self.code.,"raise ValidationError ( self . message , code = self . code )"
306,"call the function _bin_to_long with an argument u perform bitwise exclusive OR with 2 operands, previous result an result,",result ^= _bin_to_long ( u )
307,"call the method value_from_datadict from the base class of the class ClearableFileInput,","upload = super ( ClearableFileInput , self ) . value_from_datadict ( data , files , name )"
308,"UnlockFileEx.argtypes is a list containing 5 elements: HANDLE, DWORD, DWORD, DWORD and LPOVERLAPPED.","UnlockFileEx . argtypes = [ HANDLE , DWORD , DWORD , DWORD , LPOVERLAPPED ]"
309,"call the function sanitize_address with arguments email_message.from_email and email_message.encoding, substitute the result for from_email.","from_email = sanitize_address ( email_message . from_email , email_message . encoding )"
310,"raise an TemplateSyntaxError exception with an argument string ""'%s' tag takes only one argument"",","raise TemplateSyntaxError ( ""'%s' tag takes only one argument"" % bits [ 0 ] )"
311,"raise an Exception exception with an argument string ""This %s instance is not writable"",","raise Exception ( ""This %s instance is not writable"" % self . __class__ . __name__ )"
312,"convert fourth element of row to an integer, substitute it for value under the 'max_digits' key of the field_params.",field_params [ 'max_length' ] = int ( row [ 3 ] )
313,"""or the 'exclude' attribute is prohibited; form %s needs updating."", where '%s' is replaced with name. if opts.fields equals ALL_FIELDS,",if opts . fields == ALL_FIELDS :
314,return value.,return value
315,substitute factory for value under '()' key of config dictionary.,config [ '()' ] = factory
316,"if t is contained in self.__dispatch,",if t in self . __dispatch :
317,define the method __init__ with 3 arguments: self unpacked list args and unpacked dictionary kwargs.,"def __init__ ( self , * args , ** kwargs ) :"
318,"read file fp, substitute the read data for output.",output = fp . read ( )
319,define the method add_arguments with 2 arguments self and parser.,"def add_arguments ( self , parser ) :"
320,"substitute integers 0, 1, 2 and 3 for PREV, NEXT, KEY and RESULT, respectivley.","PREV , NEXT , KEY , RESULT = 0 , 1 , 2 , 3"
321,return ret.,return ret
322,position the file pointer at the beginning of self file.,self . seek ( 0 )
323,substitute buffer for memoryview.,memoryview = buffer
324,"define the method _create_mime_attachment with arguments self, content and mimetype.","def _create_mime_attachment ( self , content , mimetype ) :"
325,"try,",try :
326,"call the function self._resolve_lookup with an argument context, substitute the result for value.",value = self . _resolve_lookup ( context )
327,"try,",try :
328,"for every item in qu append item.pk to a list, substitute resulting list for value under f.name key of the data dictionary.",data [ f . name ] = [ item . pk for item in qs ]
329,call the method self.can_write.release.,self . can_write . release ( )
330,derive the class cached_property from the object base class.,class cached_property ( object ) :
331,"call the add_argument method on the parser object, with string '--database', default set to DEFAULT_DB_ALIAS and help set to string 'Nominates a database to create SQL for. Defaults to the default"" database.' as arguments.","parser . add_argument ( '--database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to create SQL for. Defaults to the ' '""default"" database.' )"
332,call the function import_module with an argument app_name.,import_module ( app_name )
333,"call the method parser.add_argument with 2 arguments: string 'app_label',","parser . add_argument ( 'app_label' , help = 'App label of the application to squash migrations for.' )"
334,"if key is contained in cache,",if key in cache :
335,derive class ImageFile from the base class File.,class ImageFile ( File ) :
336,substitute True for output_transaction.,output_transaction = True
337,"replace '%s' in string ""Downloading %s\n"", with display_url, write it to self.stdout stream.","self . stdout . write ( ""Downloading %s\n"" % display_url )"
338,"call the import_string with argument: import_path if exists or settings.DEFAULT_FILE_STORAGE, if not, return the result.",return import_string ( import_path or settings . DEFAULT_FILE_STORAGE )
339,"call the method self.configure_filter with an argument value under name key of filters dictionary,",filters [ name ] = self . configure_filter ( filters [ name ] )
340,"allowed_schemes is an list containing 3 elements: strings 'http', 'https' and 'ftp'.","allowed_schemes = [ 'http' , 'https' , 'ftp' ]"
341,"call the method __init__ from the base class of the class CharField, with arguments unpacked list args and unpacked dictionary kwargs.","super ( CharField , self ) . __init__ ( * args , ** kwargs )"
342,"DEFAULT_LOGGING is a dictionary with 5 initial entries: 1 for 'version', False for 'disable_existing_loggers',","DEFAULT_LOGGING = { 'version' : 1 , 'disable_existing_loggers' : False , 'filters' : { 'require_debug_false' : { '()' : 'django.utils.log.RequireDebugFalse' , } , 'require_debug_true' : { '()' : 'django.utils.log.RequireDebugTrue' , } , } , 'handlers' : { 'console' : { 'level' : 'INFO' , 'filters' : [ 'require_debug_true' ] , 'class' : 'logging.StreamHandler' , } , 'null' : { 'class' : 'logging.NullHandler' , } , 'mail_admins' : { 'level' : 'ERROR' , 'filters' : [ 'require_debug_false' ] , 'class' : 'django.utils.log.AdminEmailHandler' } } , 'loggers' : { 'django' : { 'handlers' : [ 'console' ] , } , 'django.request' : { 'handlers' : [ 'mail_admins' ] , 'level' : 'ERROR' , 'propagate' : False , } , 'django.security' : { 'handlers' : [ 'mail_admins' ] , 'level' : 'ERROR' , 'propagate' : False , } , 'py.warnings' : { 'handlers' : [ 'console' ] , } , } }"
343,self.attrs is an empty dictionary.,self . attrs = { }
344,derive the class BooleanField from the base class Field class.,class BooleanField ( Field ) :
345,"call the function get_format with an argument string 'DATE_INPUT_FORMATS', substitute the first element of the result for input_format.",input_format = get_format ( 'DATE_INPUT_FORMATS' ) [ 0 ]
346,"if element of targets in first row and second column is None,",if targets [ 0 ] [ 1 ] is None :
347,and unpacked dictionary kwargs. substitute max_length and min_length for self.max_length for self.min_length.,"self . max_length , self . min_length = max_length , min_length"
348,"replace all occurrences of ""'"" with ""\\'"" in the previous result, return the result. decorator function register.filter with an argument is_safe set to boolean True.",@ register . filter ( is_safe = True )
349,call the method self.validate_unique.,self . validate_unique ( )
350,"if not,",else :
351,default_error_messages is an dictionary with an entry: return value of the function _ called with an argument string 'Enter a valid URL.' for 'invalid'.,"default_error_messages = { 'invalid' : _ ( 'Enter a valid URL.' ) , }"
352,"call the function timedelta with an argument seconds as negative time.altzone, return the result.",return timedelta ( seconds = - time . altzone )
353,return self._request.,return self . _request
354,"and dictionary created by applying defaults mapping on the pattern.default_kwargs dictionary. for every namespace and tuple containing: prefix and sub_pattern, in return value of the method pattern.namespace_dict.items,","for namespace , ( prefix , sub_pattern ) in pattern . namespace_dict . items ( ) :"
355,"if every filter_name in strings 'escape' or 'safe',","if filter_name in ( 'escape' , 'safe' ) :"
356,raise a SerializerDoesNotExist exception with an argument format.,raise SerializerDoesNotExist ( format )
357,from django.utils.encoding import python_2_unicode_compatible and force_st into default name space.,"from django . utils . encoding import python_2_unicode_compatible , force_str"
358,"try,",try :
359,"define the method handle_field with arguments self, obj and field.","def handle_field ( self , obj , field ) :"
360,define the method F with an argument self.,def F ( self ) :
361,"result of the function iri_to_uri called with an argument link for 'link', result of the function to_unicode called with an argument description for 'description', result of the function to_unicode called with an argument author_email for 'author_email', result of the function to_unicode called with an argument author_name for 'author_name', result of the function iri_to_uri called with an author_link link for 'author_link', pubdate for 'pubdate', updateddate for 'updateddate', result of the function to_unicode called with an comments author_name for 'comments', result of the function to_unicode called with an argument unique_id) for 'unique_id)', unique_id_is_permalink for 'unique_id_is_permalink', enclosure for 'enclosure', if true, categories is value for 'categories' key, if not, empty tuple is value for 'categories' key, result of the function to_unicode called with an argument item_copyright for 'item_copyright', ttl for 'ttl'. update dictionary item with an argument kwargs.",item . update ( kwargs )
362,do nothing.,pass
363,derive the class ExtendsNode from the Node base class.,class ExtendsNode ( Node ) :
364,"if request.method equals to string 'HEAD',",if request . method == 'HEAD' :
365,return msgs.,return msgs
366,attrs is a empty list.,attrs = [ ]
367,"if self.domain is not equal to string 'django' or string 'djangojs',","if self . domain not in ( 'django' , 'djangojs' ) :"
368,"call the method copy.copy with an argument register_to._registry, substitute the result for before_import_registry.",before_import_registry = copy . copy ( register_to . _registry )
369,return _make_decorator.,return _make_decorator
370,"and include_auto_created set to boolean True, call the method connection.creation.sql_destroy_indexes_for_model with arguments model and style, extend the output with the result.","output . extend ( connection . creation . sql_destroy_indexes_for_model ( model , style ) )"
371,delete first element of bits.,del bits [ : 1 ]
372,"replace '%s' in string ""Cache table '%s' created."" with tablename, write it to self.stdout.","self . stdout . write ( ""Cache table '%s' created."" % tablename )"
373,set self.cdata_tag to None.,self . cdata_tag = None
374,"get 'name' attribute from the file object, if it doesnt exists use None, substitute it for name.","name = getattr ( file , 'name' , None )"
375,parentloop is an empty dictionary.,parentloop = { }
376,"call the method from_current_timezone with an argument result, return the result.",return from_current_timezone ( result )
377,"if PY3 is true,",if PY3 :
378,"for every i and line in enumerated iterable lines,","for i , line in enumerate ( lines ) :"
379,"if self.inverse_match equals to return value of the self.regex.search method converted to boolean, called with argument force_text(value),",if not ( self . inverse_match is not bool ( self . regex . search ( force_text ( value ) ) ) ) :
380,call the method self.writer_leaves.,self . writer_leaves ( )
381,"if ValueError, TypeError or OverflowError exceptions are caught,","except ( ValueError , TypeError , OverflowError ) :"
382,return the first element of self.client_address.,return self . client_address [ 0 ]
383,join inner_text elements into a string.,"return """" . join ( inner_text )"
384,"define the method handle with 3 arguments: self, unpacked list args and unpacked dictionary options.","def handle ( self , * args , ** options ) :"
385,"class method decorator,",@ classmethod
386,call the method self.parent_name.resolve with an argument context.,parent = self . parent_name . resolve ( context )
387,from django.utils.functional import cached_property into default name space.,from django . utils . functional import cached_property
388,from django.db.models import ForeignKey.,from django . db . models import ForeignKey
389,define the method prepare_value with 2 arguments: self and value.,"def prepare_value ( self , value ) :"
390,"if not,",else :
391,define the method _post_clean with an argument self.,def _post_clean ( self ) :
392,"call the self.path function with argument path, substitute it for path.",path = self . path ( path )
393,"call the method local, substitute the result for _active.",_active = local ( )
394,"if entry is a directory,",if os . path . isdir ( entry ) :
395,s is an instance of MLStripper class.,s = MLStripper ( )
396,"where '%s' is replaced with bit and '%r' is replaced with current. if current is callable object,",if callable ( current ) :
397,"define the method cache_key with 3 arguments: self, template_name and template_dirs.","def cache_key ( self , template_name , template_dirs ) :"
398,"call the function get_mod_func with an argument lookup_view, store the result in mod_name and func_name, respectively.","mod_name , func_name = get_mod_func ( lookup_view )"
399,call the parent class of Command class add_arguments method and parser as the arguments.,"super ( Command , self ) . add_arguments ( parser )"
400,define the method m with an argument self.,def m ( self ) :
401,"if chunk_size is false,",if not chunk_size :
402,"return an instance of a ResolverMatch class, crated with arguments self.callback, args, kwargs and self.name.","return ResolverMatch ( self . callback , args , kwargs , self . name )"
403,"try,",try :
404,"if self.verbosity is greater than integer 0,",if self . verbosity > 0 :
405,"with return value of the function transaction.atomic with using set to db as arguments, perform the following,",with transaction . atomic ( using = db ) :
406,"define the method add_fields with 2 arguments: self, form and index.","def add_fields ( self , form , index ) :"
407,define the method __str__ with an argument self.,def __str__ ( self ) :
408,"call the method value.serializable_value with an argument self.to_field_name, return the result.",return value . serializable_value ( self . to_field_name )
409,"if it doesnt exists return value of the function capfirst with an argument self.fk.verbose_name for 'label'. if self.fk.rel.field_name is not equal to self.fk.rel.to._meta.pk.name,",if self . fk . rel . field_name != self . fk . rel . to . _meta . pk . name :
410,first element of url_fields is string 'http'.,url_fields [ 0 ] = 'http'
411,"return an instance of SafeText, created with an argument t.",return SafeText ( t )
412,"decrement number by one, multiply it with self.per_page, substitute the result for bottom.",bottom = ( number - 1 ) * self . per_page
413,"define the function curry with 3 arguments: _curried_func, unpacked list args and unpacked dictionary kwargs.","def curry ( _curried_func , * args , ** kwargs ) :"
414,"define the method __init__ with 4 arguments: self, url, length and mime_type.","def __init__ ( self , url , length , mime_type ) :"
415,"define the function smart_text, with s, encoding set to string 'utf-8', strings_only set to False, errors set to 'strict' as arguments.","def smart_text ( s , encoding = 'utf-8' , strings_only = False , errors = 'strict' ) :"
416,"yield obj as generator return value,",yield obj
417,ch2 is None.,ch2 = None
418,return text.,return text
419,remove original_path directory.,os . rmdir ( original_path )
420,"try,",try :
421,"for every filenam in locale_filenames,",for filename in locale_filenames :
422,"os.path.basename(prog_name) and subcommand, separated by whitespace and description set to self.help, if exists, or None, otherwise. call the method parser.add_option with 3 arguments: string '--version', action set to string 'version',","parser . add_argument ( '--version' , action = 'version' , version = self . get_version ( ) )"
423,"if KeyError exception is caught,",except KeyError :
424,delete the value under key key of self._expire_info.,del self . _expire_info [ key ]
425,from django.utils.encoding import smart_text and force_text into default name space.,"from django . utils . encoding import smart_text , force_text"
426,substitute frame.f_globals for _globs_.,_globs_ = frame . f_globals
427,"try,",try :
428,"unpacked list field_value as an argument, substitute the result for value of under the field.attname key of the data dictionary. if not,",else :
429,yield one element of data iterable.,yield data
430,"otherwise if char is contained in string 'dj',",elif char in 'dj' :
431,define the function comment with 2 arguments: parser and token.,"def comment ( parser , token ) :"
432,define the function find_commands with an argument management_dir.,def find_commands ( management_dir ) :
433,"if call to the _has_expired method with argument key evaluates to boolean False,",if not self . _has_expired ( key ) :
434,substitute self.entity_decl for parser.EntityDeclHandler.,parser . EntityDeclHandler = self . entity_decl
435,call the method handler.addQuickElement with 2 arguments: string 'email' and value under the 'author_email' key of the item dictionary.,"handler . addQuickElement ( ""email"" , item [ 'author_email' ] )"
436,"buffer_types is a tuple with 3 elements: bytes, bytearray and memoryview.","buffer_types = ( bytes , bytearray , memoryview )"
437,"get 'errors' attribute from fp object, substitute it for errors if it exists, if not errors is None.","errors = getattr ( fp , ""errors"" , None )"
438,"REASON_PHRASES is a dictionary containing 59 initial entries: 'CONTINUE' for 100, 'SWITCHING PROTOCOLS' for 101,","REASON_PHRASES = { 100 : 'CONTINUE' , 101 : 'SWITCHING PROTOCOLS' , 102 : 'PROCESSING' , 200 : 'OK' , 201 : 'CREATED' , 202 : 'ACCEPTED' , 203 : 'NON-AUTHORITATIVE INFORMATION' , 204 : 'NO CONTENT' , 205 : 'RESET CONTENT' , 206 : 'PARTIAL CONTENT' , 207 : 'MULTI-STATUS' , 208 : 'ALREADY REPORTED' , 226 : 'IM USED' , 300 : 'MULTIPLE CHOICES' , 301 : 'MOVED PERMANENTLY' , 302 : 'FOUND' , 303 : 'SEE OTHER' , 304 : 'NOT MODIFIED' , 305 : 'USE PROXY' , 306 : 'RESERVED' , 307 : 'TEMPORARY REDIRECT' , 308 : 'PERMANENT REDIRECT' , 400 : 'BAD REQUEST' , 401 : 'UNAUTHORIZED' , 402 : 'PAYMENT REQUIRED' , 403 : 'FORBIDDEN' , 404 : 'NOT FOUND' , 405 : 'METHOD NOT ALLOWED' , 406 : 'NOT ACCEPTABLE' , 407 : 'PROXY AUTHENTICATION REQUIRED' , 408 : 'REQUEST TIMEOUT' , 409 : 'CONFLICT' , 410 : 'GONE' , 411 : 'LENGTH REQUIRED' , 412 : 'PRECONDITION FAILED' , 413 : 'REQUEST ENTITY TOO LARGE' , 414 : 'REQUEST-URI TOO LONG' , 415 : 'UNSUPPORTED MEDIA TYPE' , 416 : 'REQUESTED RANGE NOT SATISFIABLE' , 417 : 'EXPECTATION FAILED' , 418 : ""I'M A TEAPOT"" , 422 : 'UNPROCESSABLE ENTITY' , 423 : 'LOCKED' , 424 : 'FAILED DEPENDENCY' , 426 : 'UPGRADE REQUIRED' , 428 : 'PRECONDITION REQUIRED' , 429 : 'TOO MANY REQUESTS' , 431 : 'REQUEST HEADER FIELDS TOO LARGE' , 500 : 'INTERNAL SERVER ERROR' , 501 : 'NOT IMPLEMENTED' , 502 : 'BAD GATEWAY' , 503 : 'SERVICE UNAVAILABLE' , 504 : 'GATEWAY TIMEOUT' , 505 : 'HTTP VERSION NOT SUPPORTED' , 506 : 'VARIANT ALSO NEGOTIATES' , 507 : 'INSUFFICIENT STORAGE' , 508 : 'LOOP DETECTED' , 510 : 'NOT EXTENDED' , 511 : 'NETWORK AUTHENTICATION REQUIRED' , }"
439,"call the method m.group with an argument string 'year', convert the result into a string, substitute it for year.",year = int ( m . group ( 'year' ) )
440,"sort elements of handlers, for every name in result,",for name in sorted ( handlers ) :
441,return f.,return f
442,"if match is true,",if match :
443,"if fifth and sixth elements of row are None,",if row [ 4 ] is None or row [ 5 ] is None :
444,"if args in None of boolean False, substitute it for an empty list.",args = args or [ ]
445,substitute boundary for self._boundary.,self . _boundary = boundary
446,"if ext is false and content_type is true,",if not ext and content_type :
447,"call the method appendlist from the base class of the QueryDict class, with arguments key and value.","super ( QueryDict , self ) . appendlist ( key , value )"
448,output is an empty list.,output = [ ]
449,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
450,if AttributeError exception is caught.,except AttributeError :
451,"for app_config in return value of the method apps.get_app_configs,",for app_config in apps . get_app_configs ( ) :
452,"call the method language_code_re.search with an argument accept_lang, if it evaluates to false,",if not language_code_re . search ( accept_lang ) :
453,"if TypeError, renamed to te, exception is caught,",except TypeError as te :
454,call the method stream.unget with elements of list chunk from the index next to the end.,stream . unget ( chunk [ next : ] )
455,from django.core import mail into default name space.,from django . core import mail
456,"call the method value.as_tuple, assign the result to sign, digittuple and exponent, respectively.","sign , digittuple , exponent = value . as_tuple ( )"
457,"call the method operator.methodcaller with 3 arguments: string 'to_bytes', integer 1 and string 'big', substitute the result for int2byte.","int2byte = operator . methodcaller ( ""to_bytes"" , 1 , ""big"" )"
458,"call the method self.check with arguments: app_configs set to app_configs, tags set to tags, display_num_errors set to boolean True.","self . check ( app_configs = app_configs , tags = tags , display_num_errors = True )"
459,"if stream_or_string is not an instance of bytes or six.string_types,","if not isinstance ( stream_or_string , ( bytes , six . string_types ) ) :"
460,"if recursive is true,",if recursive :
461,"if not,",else :
462,call the method handler.addQuickElement with 2 arguments: string 'category' and cat.,"handler . addQuickElement ( ""category"" , cat )"
463,"for every matches, pat and defaults in return value of the method pattern.reverse_dict.getlist called with an argument name,","for matches , pat , defaults in pattern . reverse_dict . getlist ( name ) :"
464,import module errno.,import errno
465,return nothing.,return
466,"clean is a lambda function with self and x as arguments, return value is length of x.","clean = lambda self , x : len ( x )"
467,"define the function custom_sql_for_model with 3 arguments: app_config, style and connection.","def custom_sql_for_model ( model , style , connection ) :"
468,"if first element of the second row of args equals a string '2',",if args [ 1 ] [ 0 ] == '2' :
469,"mapped with a function k, for every k and v in return value of the method candidate_subs.items. format candidate_pat with candidate_subs, return the result.",return candidate_pat % candidate_subs
470,from django.utils.formats import localize into default name space.,from django . utils . formats import localize
471,derive the class JSONSerializer from the object base class.,class JSONSerializer ( object ) :
472,"if compress is true,",if compress :
473,"raise an ValidationError exception with 2 arguments: value under the 'invalid_choice' key of the self.error_messages dictionary,","raise ValidationError ( self . error_messages [ 'invalid_choice' ] , code = 'invalid_choice' )"
474,"if inplural is true,",if inplural :
475,remove k element from self.keyOrder dictionary.,self . keyOrder . remove ( k )
476,define the method __eq__ with arguments self and other.,"def __eq__ ( self , other ) :"
477,"if self.verbosity is greater or equal to integer 3,",if self . verbosity >= 3 :
478,nm and addr are addr.,"nm , addr = addr"
479,"call the function format_html with an argument empty string, return the result.","return format_html ( """" )"
480,"try,",try :
481,"for every formset in formsets,",for formset in formsets :
482,from django.core.serializers.python import Serializer as PythonSerializer into default name space.,from django . core . serializers . python import Serializer as PythonSerializer
483,"if self equals to other return boolean False, otherwise return True.",return not ( self == other )
484,derive the class HttpResponseNotAllowed from the HttpResponse base class.,class HttpResponseNotAllowed ( HttpResponse ) :
485,"if transfer_encoding equals string 'base64',",if transfer_encoding == 'base64' :
486,update self dictionary with updates.,self . update ( updates )
487,"find first index of occurrence of character '-' in language, substitute it for p.",p = language . find ( '-' )
488,"call the function token.split_contents, substitute the result without the first element for bits.",bits = token . split_contents ( ) [ 1 : ]
489,app_configs is a list containing app_config.,app_configs = [ app_config ]
490,"call the method var.resolve with 2 arguments: context and True, substitute the result for value.","value = var . resolve ( context , True )"
491,"try,",try :
492,"if in_tag and is not contained in self.verbatim,",if in_tag and not self . verbatim :
493,"and html set to boolean True, return the result. decorator function register.filter with an argument is_safe set to boolean True.",@ register . filter ( is_safe = True )
494,define the method is_multipart with an argument self.,def is_multipart ( self ) :
495,max_num is integer 1.,max_num = 1
496,from django.utils.translation import trans_real into default namespace.,from django . utils . translation import trans_real
497,lookups is an instance of the MultiValueDict class.,lookups = MultiValueDict ( )
498,return lang_code.,return lang_code
499,return the value under the self.data.month key of the MONTHS dictionary.,return MONTHS [ self . data . month ]
500,substitute self.addr without the first and last element for self.addr.,self . addr = self . addr [ 1 : - 1 ]
501,"and convert it to lowercase, substitute the result for value. call the function re.sub with 3 arguments: string '[-\s]+', string '-' and value, use the result as an argument for the call to the,","return mark_safe ( re . sub ( '[-\s]+' , '-' , value ) )"
502,"call the LockFileEx function with 5 arguments: hfile, integer 0, integer 0, hexadecimal value FFFF0000, return value of the byref function called with argument overlapped, substitute the result for ret.","ret = UnlockFileEx ( hfile , 0 , 0 , 0xFFFF0000 , byref ( overlapped ) )"
503,"try,",try :
504,"call the function func with 3 arguments: obj, autoescape set to context.autoescape and unpacked list arg_vals,","new_obj = func ( obj , autoescape = context . autoescape , * arg_vals )"
505,num is an integer 0.,num = 0
506,do nothing.,pass
507,"do nothing,",pass
508,"where '%s' is replaced with app_or_project and extensions joined into a string, separated by a string ', '. call the method self.stdout.write, with an argument string ""Rendering %s template files with filenames: %s\n"",","self . stdout . write ( ""Rendering %s template files with "" ""filenames: %s\n"" % ( app_or_project , ', ' . join ( extra_files ) ) )"
509,"call the function ugettext_lazy with an argument string 'Clear', substitute the result for clear_checkbox_label.",clear_checkbox_label = ugettext_lazy ( 'Clear' )
510,"if ',' is contained in second element of args,","if ',' in args [ 1 ] :"
511,"call the method self.load_template_source with arguments template_name and template_dirs, assign the result to source and display_name.","source , display_name = self . load_template_source ( template_name , template_dirs )"
512,"try,",try :
513,"if secure is true,",if secure :
514,"if field is not None,",if field is not None :
515,from django.core.serializers import base into default name space.,from django . core . serializers import base
516,"if OSError or IOError exceptions were raised,","except ( OSError , IOError ) :"
517,"call the function get_git_changeset, store the result in git_changeset.",git_changeset = get_git_changeset ( )
518,"if not,",else :
519,return input_val.,return input_val
520,"call the method base.DeserializedObject with arguments obj and m2m_data, return the result.","return base . DeserializedObject ( obj , m2m_data )"
521,"library set to pylibmc and value_not_found_exception set to pylibmc.NotFound. decorator cached_property,",@ cached_property
522,"open '/dev/null' file in read mode, substitute the result for si.","si = open ( '/dev/null' , 'r' )"
523,"if self._wrapped is empty,",if self . _wrapped is empty :
524,"define the method __init__ with 3 arguments: self, token_type and contents.","def __init__ ( self , token_type , contents ) :"
525,import module sys.,import sys
526,"get the value under the e.code key of the self.error_messages dictionary, substitute the result for e.message.",e . message = self . error_messages [ e . code ]
527,from django.core.files import File into default name space.,from django . core . files import File
528,"call the method self.add_prefix with an argument fieldname, substitute it for prefix.",prefix = self . add_prefix ( fieldname )
529,"get the value under the funcname key of the t-th elment of self.__dispatch dictionary, call the result with 3 arguments: res,","return self . __dispatch [ t ] [ funcname ] ( res , * args , ** kw )"
530,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
531,"define the method enter_command with 3 arguments: self, command and token.","def enter_command ( self , command , token ) :"
532,"call the function templatize with 2 arguments: src_data and sliced orig_file, without first 2 elements, substitute the result for content.","content = templatize ( src_data , orig_file [ 2 : ] )"
533,derive the class DebugParser from the Parser base class.,class DebugParser ( Parser ) :
534,"raise an ViewDoesNotExist exception with an argument string ""Could not import '%s'. View does not exist in module %s."",","raise ViewDoesNotExist ( ""Could not import '%s'. View does not exist in module %s."" % ( lookup_view , mod_name ) )"
535,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
536,"try,",try :
537,"call the method parser.add_option with 3 arguments: string '--traceback', action set to a string 'store_true',","parser . add_option ( '--traceback' , action = 'store_true' , help = 'Raise on exception' )"
538,"if self.output_transaction is true,",if self . output_transaction :
539,"if length of bits is greater or equal to intger 2 and second last element of bits is equal to string 'as',",if len ( bits ) >= 2 and bits [ - 2 ] == 'as' :
540,"if not,",else :
541,"call the function force_text with an argument value, substitute the result for text_value.",text_value = force_text ( value )
542,"ingeter 0 and integer 0. call the method _time.mktime with an argument tt, substitute the result for stamp.",stamp = _time . mktime ( tt )
543,raise an ValueError exception with an argument string 'Not a valid Python identifier: %r' formated with s.,raise ValueError ( 'Not a valid Python identifier: %r' % s )
544,"stderr set to PIPE, close_fds set to boolean True is os.name is not equal to 'nt', universal_newlines set to boolean True. if OSError, renamed to e, exception is caught,",except OSError as e :
545,call the method msg.attach with an argument attachment.,msg . attach ( attachment )
546,substitute settings.TEMPLATE_STRING_IF_INVALID for current.,current = settings . TEMPLATE_STRING_IF_INVALID
547,"if args is true,",if args :
548,_cookie_allows_colon_in_names is boolean False.,_cookie_allows_colon_in_names = False
549,"raise an TypeError exception with an argument string ""end must be None or a string"".","raise TypeError ( ""end must be None or a string"" )"
550,"for key and value in result of the function six.iterlists called with an argument,","for key , value in six . iterlists ( self ) :"
551,"if TypeError or ValueError exceptions are caught,","except ( ValueError , TypeError ) :"
552,"define the initialization method __init__ with self, table and params as arguments.","def __init__ ( self , table , params ) :"
553,"call the method path.normpath with an argument expanded_template, substitute it for expanded_template.",expanded_template = path . normpath ( expanded_template )
554,"return first element of t converted to lowercase and boolean True, as a tuple.","return ( t [ 0 ] . lower ( ) , True )"
555,"plural set to plural and number set to number, return the result. define the function activate with an argument language.",def activate ( language ) :
556,"if commands_only is true,",if commands_only :
557,from django.core.exceptions import DisallowedHost and ImproperlyConfigured into default name space.,"from django . core . exceptions import DisallowedHost , ImproperlyConfigured"
558,"call the method fp.getvalue, return the result.",return fp . getvalue ( )
559,"call the method self.error_class with an argument list with one element, return value of the method self.get_form_error,",form . _errors [ NON_FIELD_ERRORS ] = self . error_class ( [ self . get_form_error ( ) ] )
560,"slice the filename from the previous result as start index to the end, strip it of white spaces from both ends, if the result is not an empty string and filename is not an empty string, return boolean True, otherwise return boolean False. define the method _close_files with an argument self.",def _close_files ( self ) :
561,call the method self._populate.,self . _populate ( )
562,write a new line to the self.stream file stream.,"self . stream . write ( ""\n"" )"
563,raise an ValueError exception with an argument string 'Unknown level: %r' formated with level.,raise ValueError ( 'Unknown level: %r' % level )
564,"if fields is not None,",if fields is not None :
565,"convert value and arg into a integers, return their sum.",return int ( value ) + int ( arg )
566,"call the function _check_test_runner with dictionary kwargs as argument, use the result as an argument for the call to the function errors.extend.",errors . extend ( _check_test_runner ( ** kwargs ) )
567,derive the InMemoryUploadedFile class from the UploadedFile base class.,class InMemoryUploadedFile ( UploadedFile ) :
568,"try,",try :
569,"result of the function force_text called with an argument title, and with sublist, append the string to output. increment i by 1.",i += 1
570,raise an ValidationError with 2 arguments: value under the 'required' key of the self.error_messages dictionary and code set to 'required'.,"raise ValidationError ( self . error_messages [ 'required' ] , code = 'required' )"
571,"if filename ends with string "".pyc"" or it ends with "".pyo"",","if filename . endswith ( "".pyc"" ) or filename . endswith ( "".pyo"" ) :"
572,DEFAULT_MAX_NUM is an integer 1000.,DEFAULT_MAX_NUM = 1000
573,define the method _prepare_data with 2 arguments: self and data.,"def _prepare_data ( self , data ) :"
574,set attr.name attribute of the Module_six_moves_urllib_parse object to attr.,"setattr ( Module_six_moves_urllib_parse , attr . name , attr )"
575,"if self.limit_choices_to object is callable,",if callable ( self . limit_choices_to ) :
576,substitute the result for self._object_dict. return the value under the pk key of self._object_dict dictionary.,return self . _object_dict . get ( pk )
577,"define the method get_renderer with 5 arguments: self, name, value, attrs set to None and choices set to an empty tuple.","def get_renderer ( self , name , value , attrs = None , choices = ( ) ) :"
578,derive the class URLValidator form the RegexValidator base class.,class URLValidator ( RegexValidator ) :
579,return boolean False.,return False
580,define the method __ne__ with self and other as arguments.,"def __ne__ ( self , other ) :"
581,return parser,return parser
582,"get the directory name of filename, substitute it for dirname.",dirname = os . path . dirname ( filename )
583,substitute fail_silently for self.fail_silently.,self . fail_silently = fail_silently
584,define the function calculate_app_template_dirs.,def calculate_app_template_dirs ( ) :
585,define the method __html__ with an argument self.,def __html__ ( self ) :
586,"and elements of token_string from second to second last element wiht the whitespaces striped from the both sides. otherwise if token_string starts with BLOCK_TAG_START,",elif token_string . startswith ( BLOCK_TAG_START ) :
587,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
588,"try,",try :
589,"call the method threading.Semaphore with an argument integer 0, substitute the result for self.can_write.",self . can_write = threading . Semaphore ( 0 )
590,yield one element from the buffer_ iterable.,yield buffer_
591,"if ValidationError exception is caught,",except ValidationError :
592,from django.http import QueryDict into default namespace.,from django . http import QueryDict
593,from django.test.utils import get_runner into default name space.,from django . test . utils import get_runner
594,self.bad_cookies is an empty set.,self . bad_cookies = set ( )
595,"if self._dir path doesnt exists,",if not os . path . exists ( self . _dir ) :
596,"if not,",else :
597,want_unicode is boolean False.,want_unicode = False
598,self._read_started is True.,self . _read_started = True
599,substitute msg for body_msg.,body_msg = msg
600,append model to model_list.,model_list . append ( model )
601,"for every migration in migrations_to_squash,",for migration in migrations_to_squash :
602,"if self.verbosity is greater or equal to integer 1,",if self . verbosity >= 1 :
603,"call the function smart_text with an argument obj, return the result.",return smart_text ( obj )
604,"remove kwargs dictionary entry under the 'extra_context' key, if it exists substitute it for self.extra_context,","self . extra_context = kwargs . pop ( 'extra_context' , { } )"
605,"join statements into a string, separated by newlines, return it.",return '\n' . join ( statements )
606,"if field.rel.through._meta.auto_created is true,",if field . rel . through . _meta . auto_created :
607,self.first is boolean True.,self . first = True
608,"if lang is None,",if lang is None :
609,"call the function to_locale with an argument lang, substitute the result for locale.",locale = to_locale ( lang )
610,"if not,",else :
611,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
612,"evaluate the force_text function with settings.FORCE_SCRIPT_NAME as argument, return the result.",return force_text ( settings . FORCE_SCRIPT_NAME )
613,daemon_kwargs is an empty dictionary.,daemon_kwargs = { }
614,"substitute '%s' with title in the string "" [X] %s"", write it to the standard output.","self . stdout . write ( "" [X] %s"" % title )"
615,define the method __str__ with an argument self.,def __str__ ( self ) :
616,"dest as a string 'interface' and help as a string 'Specify an interactive interpreter interface. Available options: ""ipython"" and ""bpython""'. define the method _ipython_pre_011 with an argument self.",def _ipython_pre_011 ( self ) :
617,"from django.core.mail.message import EmailMessage, EmailMultiAlternatives, SafeMIMEText, SafeMIMEMultipart,","from django . core . mail . message import ( EmailMessage , EmailMultiAlternatives , SafeMIMEText , SafeMIMEMultipart , DEFAULT_ATTACHMENT_MIME_TYPE , make_msgid , BadHeaderError , forbid_multi_line_headers )"
618,call the method get_supported_language_variant.cache_clear.,get_supported_language_variant . cache_clear ( )
619,"call the method Model._meta.pk.to_python with one argument: value under the 'pk' key of dictionary d, or None if previous doesnt exists,","data [ Model . _meta . pk . attname ] = Model . _meta . pk . to_python ( d . get ( ""pk"" , None ) )"
620,"define the method pop with 3 arguments: self, key and unpacked list args.","def pop ( self , key , * args ) :"
621,decorator register with Tags.models and Tags.signals as arguments.,"@ register ( Tags . models , Tags . signals )"
622,"if OSError exception is caught,",except OSError :
623,"replace '%s' in string '%s>' with tag, append the result to out.",out += '%s>' % tag
624,define the method id_for_label with an argument self.,def id_for_label ( self ) :
625,"if language_code is not contained in self._namespace_dict,",if language_code not in self . _namespace_dict :
626,"if not,",else :
627,"define the function inlineformset_factory with 20 arguments: parent_model, model, form set to ModelForm,","def inlineformset_factory ( parent_model , model , form = ModelForm , formset = BaseInlineFormSet , fk_name = None , fields = None , exclude = None , extra = 3 , can_order = False , can_delete = True , max_num = None , formfield_callback = None , widgets = None , validate_max = False , localized_fields = None , labels = None , help_texts = None , error_messages = None , min_num = None , validate_min = False ) :"
628,return new_class.,return new_class
629,define the method writer_enters with an argument self.,def writer_enters ( self ) :
630,define the function new_method_proxy with an argument func.,def new_method_proxy ( func ) :
631,substitute value under the unique_for key of form.cleaned_data dictionary for date.,date = form . cleaned_data [ unique_for ]
632,substitute _iterkeys for keys.,keys = _iterkeys
633,"get config dictionary element under 'filters' key, if it exists substitute it for filters, if not, filters is EMPTY_DICT.","filters = config . get ( 'filters' , EMPTY_DICT )"
634,"call the method self._expire_info.get with key and integer -1 as arguments, substitute the result for exp.","exp = self . _expire_info . get ( key , - 1 )"
635,yield d.,yield d
636,"if field.show_hidden_initial is false,",if not field . show_hidden_initial :
637,call the method self.full_clean.,self . full_clean ( )
638,"call the function pickle.load with argument f, substitute the result for exp.",exp = pickle . load ( f )
639,"join package.__name__ and module_name into a string separated with '.', substitute it for name.","name = ""."" . join ( [ package . __name__ , module_name ] )"
640,"call the function reraise from the module six, with list of arguments exec_info.",six . reraise ( * exc_info )
641,define method add_arguments with self class instance and parser as the arguments.,"def add_arguments ( self , parser ) :"
642,substitute buf_size for self.buf_size.,self . buf_size = buf_size
643,"get self.to_field attribute of self.parent_instance object, substitute it for value under the 'initial' key of the kwargs dictionary.","kwargs [ ""initial"" ] = getattr ( self . parent_instance , self . to_field )"
644,"call the function hashlib.pbkdf2_hmac with 5 arguments: field name of the result of the function digest, password, salt,","return hashlib . pbkdf2_hmac ( digest ( ) . name , password , salt , iterations , dklen )"
645,close is boolean True.,close = True
646,define the function get_cache with backend and dictionary pair of elements kwargs as arguments.,"def get_cache ( backend , ** kwargs ) :"
647,"if s is an instance of six.text_type or Promise,","if isinstance ( s , ( six . text_type , Promise ) ) :"
648,"TOKEN_MAPPING is a dictionary with 4 initial entries: 'Text' for TOKEN_TEXT, 'Var' for TOKEN_VAR, 'Block' for TOKEN_BLOCK,","TOKEN_MAPPING = { TOKEN_TEXT : 'Text' , TOKEN_VAR : 'Var' , TOKEN_BLOCK : 'Block' , TOKEN_COMMENT : 'Comment' , }"
649,"call the function format_html with 2 arguments: string ' for=""{0}""' and self.id_for_label, substitute the result for label_for.","label_for = format_html ( ' for=""{0}""' , self . id_for_label )"
650,"join dir_ and return value of the function os.path.dirname called with an argument fixture_name into a valid file path,","fixture_dirs = [ os . path . join ( dir_ , os . path . dirname ( fixture_name ) ) for dir_ in fixture_dirs ]"
651,all the method self.create_table with arguments: db and cache._table.,"self . create_table ( db , cache . _table )"
652,"if j equals to integer -1,",if j == - 1 :
653,"map elements from args through the function conditional_escape, substitute the result for args_safe.","args_safe = map ( conditional_escape , args )"
654,"substitute self.widget if the widget is false, otherwise substitute widget for widget.",widget = widget or self . widget
655,"for every key_value in related,",for key_value in related :
656,import pylibmc.,import pylibmc
657,"call the function check_for_migrations with an arguments app_config, connection.","check_for_migrations ( app_config , connection )"
658,"call the function bf.label_tag with an argument label, if the result is true substitute it for label, otherwise label is an empty string.",label = bf . label_tag ( label ) or ''
659,substitute v for value under the k-th element of m key of _ dictionary.,_ [ m [ k ] ] = v
660,"substitute first 2 elements of bits for singular_suffix and plural_suffix, respectively.","singular_suffix , plural_suffix = bits [ : 2 ]"
661,"otherwise if size is less than length of self.buffer,",elif size < len ( self . buffer ) :
662,"if IOError, substituted to e, exception is caught,",except IOError as e :
663,"call the method __setitem__ from the base class of the class SortedDict, with 2 arguments key and value.","super ( SortedDict , self ) . __setitem__ ( key , value )"
664,mem_args is a list containing of first num_args elements of args list.,mem_args = args [ : num_args ]
665,"if status is True,",if status :
666,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
667,from django.utils.xmlutils import SimplerXMLGenerator into default name space.,from django . utils . xmlutils import SimplerXMLGenerator
668,serializers is an empty dictionary.,serializers = { }
669,"call the self.stderr.write method with string "" Failed to install custom SQL for %s.%s model: %s\n"" as argument,","self . stderr . write ( "" Failed to install custom SQL for %s.%s model: %s\n"" % ( app_name , model . _meta . object_name , e ) )"
670,"if field_type equals a string 'DecimalField',",if field_type == 'DecimalField' :
671,"if not,",else :
672,"try,",try :
673,"if settings.USE_L10N is true,",if settings . USE_L10N :
674,return self.tag_function.,return self . tag_function
675,"call the function import_library with an argument taglib_module, substitute the result for lib.",lib = import_library ( taglib_module )
676,substitute windll.kernel32.UnlockFileEx for UnlockFileEx.,UnlockFileEx = windll . kernel32 . UnlockFileEx
677,"if name is contained in lib.tags,",if name in lib . tags :
678,import module warnings.,import warnings
679,define the function time_format with 2 arguments: value and format_string.,"def time_format ( value , format_string ) :"
680,define the function wordcount with an argument value.,def wordcount ( value ) :
681,"replace '%s' in string '<%s list>' with __class__.__name__ field of first element of self.urlconf_name, substitute it for urlconf_repr.",urlconf_repr = '<%s list>' % self . urlconf_name [ 0 ] . __class__ . __name__
682,"if new_method is false and old_method is true,",if not new_method and old_method :
683,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
684,"call the method validators.MinLengthValidator with min_length converted into an integer, append the result to list self.validators.",self . validators . append ( validators . MinLengthValidator ( int ( min_length ) ) )
685,"if not,",else :
686,"call the method datetime.utcnow, on the result call the method replace with an argument tzinfo set to utc, return the result.",return datetime . utcnow ( ) . replace ( tzinfo = utc )
687,"call the method six.iteritems with an argument kwarg, convert the result into a list,","param , value = list ( six . iteritems ( kwarg ) ) [ 0 ]"
688,"if self.LibraryValueNotFoundException exception is caught,",except self . LibraryValueNotFoundException :
689,"bring integer 36 to the power of factor, if i is smaller than the result,",if i < 36 ** factor :
690,do nothing.,pass
691,consume_next is boolean False.,consume_next = False
692,"define the method __init__ with 4 arguments: self, takes_context, args and kwargs.","def __init__ ( self , takes_context , args , kwargs ) :"
693,"split part by '=' character, substitute the result for role and instructions, respectively.","role , instructions = part . split ( '=' )"
694,internal_use_only is a boolean False.,internal_use_only = False
695,from django.utils.datastructures import MultiValueDict into default name space.,from django . utils . datastructures import MultiValueDict
696,"validTemplateLibrary, BLOCK_TAG_START, BLOCK_TAG_END, VARIABLE_TAG_START, VARIABLE_TAG_END, SINGLE_BRACE_START, SINGLE_BRACE_END, COMMENT_TAG_START, COMMENT_TAG_END, VARIABLE_ATTRIBUTE_SEPARATOR, get_library, token_kwargs, kwarg_re and render_value_in_context. from django.template.smartif import IfParser and Literal into default name space.","from django . template . smartif import IfParser , Literal"
697,"if POST_override is not None, or otherwise generated with the call to the function pformat with an argument request.POST. if Exception exception is caught,",except Exception :
698,define the function truncatewords_html with 2 arguments value and arg.,"def truncatewords_html ( value , arg ) :"
699,"unpacked list args and unpacked dictionary kw, return the result. raise an TypeError exception with an argument sting ""Lazy object returned unexpected type."".","raise TypeError ( ""Lazy object returned unexpected type."" )"
700,output_transaction is boolean True.,output_transaction = True
701,derive the class SafeMIMEMessage from the MIMEMixin and MIMEMessage base class.,"class SafeMIMEMessage ( MIMEMixin , MIMEMessage ) :"
702,"if 'content_type' key doesnt exist in kwargs, set its value to 'application/json'.","kwargs . setdefault ( 'content_type' , 'application/json' )"
703,"get is a tuple containing elements generated by the call to the function pformat with an argument GET_override,",get = ( pformat ( GET_override ) if GET_override is not None else pformat ( request . GET ) )
704,"define the method add_item_elements with 2 arguments, handler self and item.","def add_item_elements ( self , handler , item ) :"
705,"if value under the 'author_link' key of the item dictionary is not None,",if item [ 'author_link' ] is not None :
706,close file descriptor s.,s . close ( )
707,"raise an TemplateSyntaxError exception with an argument string ""expected another tag, found end of string: %s"",","raise TemplateSyntaxError ( ""expected another tag, found "" ""end of string: %s"" % subject )"
708,return an empty string.,return ''
709,"for arg in argv list without the first two elements,",for arg in argv [ 2 : ] :
710,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
711,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
712,call the function runfastcgi with an argument args.,runfastcgi ( args )
713,"call the method s.get_data, return the result.",return s . get_data ( )
714,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
715,"for every dict_ in self.dicts,",for dict_ in self . dicts :
716,__all__ is a list containing a string 'file_move_safe'.,__all__ = [ 'file_move_safe' ]
717,raise an exception value.,raise value
718,counters is a list containing length of handlers number of zeros.,counters = [ 0 ] * len ( handlers )
719,"otherwise, get the 'alters_data' attribute of current object, if it exists and is true,","elif getattr ( current , 'alters_data' , False ) :"
720,"if field PY2 of the module six is boolean True,",if six . PY2 :
721,return obj_pk.,return obj_pk
722,"if not,",else :
723,"call the function getInnerText with argument k, on the result call the method strip, for every k in keys, append the results to field_value list.",field_value = [ getInnerText ( k ) . strip ( ) for k in keys ]
724,"if level is true,",if level :
725,"for every entry in package_path,",for entry in package_path :
726,"replace all the '%r' with self.level, self.msg, self.hint. self.obj and self.id, respectively, return the result. define the method is_serious with argument self.",def is_serious ( self ) :
727,"call the method sys.exc_info, substitute the result without the first element for e and tb.","e , tb = sys . exc_info ( ) [ 1 : ]"
728,"if _file is not None,",if _file is not None :
729,define the function _split_statements with an argument content.,def _split_statements ( content ) :
730,called with an argument item. call the method self.add_item_elements with 2 arguments: handler and item.,"self . add_item_elements ( handler , item )"
731,"put to into a list, assign it to self.to.",self . to = list ( to )
732,"read chunk_size bytes from the old_file file, substitute the result for current_chunk.",current_chunk = old_file . read ( chunk_size )
733,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
734,"call the function self.to_python with an argument data, substitute the result for data.",data = self . to_python ( data )
735,"otherwise id change equals to I18N_MODIFIED,",elif change == I18N_MODIFIED :
736,return the printable representation of the self object converted to a dictionary.,return repr ( dict ( self ) )
737,"if httponly is true,",if httponly :
738,"if six.PY3 is true,",if six . PY3 :
739,"get the value under the 'charset' key of the content_type_extra dictionary, substitute it for charset.",charset = content_type_extra . get ( 'charset' )
740,"otherwise if ch equals a string '(',",elif ch == '(' :
741,"get 'editable' attribute from object f, if it doesnt exists or its true,","if not getattr ( f , 'editable' , False ) :"
742,module_values is a set created from the elements of sys.modules.values method return value.,module_values = set ( sys . modules . values ( ) )
743,return self.data.hour.,return self . data . hour
744,"if language is not contained in _translations,",if language not in _translations :
745,define the function quote_etag with an argument etag.,def quote_etag ( etag ) :
746,return None.,return None
747,define the method read with arguments self and size set to None.,"def read ( self , size = None ) :"
748,"if tag is contained in self.CDATA_CONTENT_ELEMENTS,",if tag in self . CDATA_CONTENT_ELEMENTS :
749,"define the function date_format with 3 arguments: value, format set to None and use_l10n set to None.","def date_format ( value , format = None , use_l10n = None ) :"
750,"and self.message equals to other.message, and self.code equals to other.code, return boolean True, otherwise return boolean False. validate_email is an instance of EmailValidator class.",validate_email = EmailValidator ( )
751,write errors to self.stdout.,self . stdout . write ( errors )
752,define the method _init_translation_catalog with an argument self.,def _init_translation_catalog ( self ) :
753,"call the method Model._meta.get_all_field_names, substitute the result for model_fields.",model_fields = Model . _meta . get_all_field_names ( )
754,define the method encode with self class instance and i as arguments.,"def encode ( self , i ) :"
755,define the function prefix with 2 arguments bp and func.,"def prefix ( bp , func ) :"
756,"call the function fcntl.flock with return value of the _fd(f) function and flags as arguments, substitute the result for ret.","ret = fcntl . flock ( _fd ( f ) , flags )"
757,"try,",try :
758,call the method self.template_cache.clear.,self . template_cache . clear ( )
759,"call the function warnings.warn with 3 arguments: string ""cache_choices has been deprecated and will be removed in Django 1.9."",","warnings . warn ( ""cache_choices has been deprecated and will be "" ""removed in Django 1.9."" , RemovedInDjango19Warning , stacklevel = 2 )"
760,"if obj is instance of models.signals.ModelSignal class,","if isinstance ( obj , models . signals . ModelSignal ) :"
761,from django.utils.translation import ugettext_lazy and pgettext_lazy into default name space.,"from django . utils . translation import ugettext_lazy , pgettext_lazy"
762,define the function pprint with an argument value.,def pprint ( value ) :
763,raise an TemplateDoesNotExist exception with an argument error_msg.,raise TemplateDoesNotExist ( error_msg )
764,return self.,return self
765,"if as_form is true,",if as_form :
766,import module datetime.,import datetime
767,"for every form_errors in self.errors sum length of return value of the method self.non_form_errors and length of form_errors, return the result.",return len ( self . non_form_errors ( ) ) + sum ( len ( form_errors ) for form_errors in self . errors )
768,"call the method timezone.tzname with an argument None, return the result.",return timezone . tzname ( None )
769,"get the value under the 'interactive' key of the options dictionary, substitute it for self.interactive.",self . interactive = options . get ( 'interactive' )
770,consume_next is boolean True.,consume_next = True
771,"if six.text_type is contained in resultclasses, cls._delegate_text is boolean True, otherwise it is boolean False.",cls . _delegate_text = six . text_type in resultclasses
772,define the function truncatechars with 2 arguments value and arg.,"def truncatechars ( value , arg ) :"
773,from email.utils import formatdate into default name space.,from email . utils import formatdate
774,derive the class DjangoUnicodeDecodeError from the base class UnicodeDecodeError.,class DjangoUnicodeDecodeError ( UnicodeDecodeError ) :
775,define the method __init__ with arguments self and connection_reset defaulting to boolean False.,"def __init__ ( self , connection_reset = False ) :"
776,call the method self.event_stream.expandNode with an argument node.,self . event_stream . expandNode ( node )
777,derive the class SelectDateWidget for the Widget base class.,class SelectDateWidget ( Widget ) :
778,call the method stream.unget with an argument chunk.,stream . unget ( chunk )
779,"for every i and word in enumerated iterable words,","for i , word in enumerate ( words ) :"
780,"try,",try :
781,substitute arg converted into an integer for length.,length = int ( arg )
782,"if typed is true,",if typed :
783,"call the function re.compile with raw string '(]*?)target=[^\s>]+', substitute the result for link_target_attribute_re.",link_target_attribute_re = re . compile ( r'( ]*?)target=[^\s>]+' )
784,"if eather one of settings.USE_I18N or settings.USE_L10N is True,",if settings . USE_I18N or settings . USE_L10N :
785,return result.,return result
786,"for every app_label and app_migrations in result of the method changes.items,","for app_label , app_migrations in changes . items ( ) :"
787,"append the result at the end of string '.', append it all at the end of string cache_key. if settings.USE_TZ is True,",if settings . USE_TZ :
788,"property decorator,",@ property
789,internal_use_only is boolean True.,internal_use_only = True
790,"call the function _ with the argument string 'Ensure this value is %(limit_value)s (it is %(show_value)s).', substitute the result for message.",message = _ ( 'Ensure this value is %(limit_value)s (it is %(show_value)s).' )
791,"call the function warnings.warn with 3 arguments: string ""django.utils.importlib will be removed in Django 1.9."",","warnings . warn ( ""django.utils.importlib will be removed in Django 1.9."" , RemovedInDjango19Warning , stacklevel = 2 )"
792,"called with an argument error, for every error in bf.errors, substitute the result for bf_errors. if bf.is_hidden is true,",if bf . is_hidden :
793,"return an instance of OrderedDict class, created with an argument fields.",return OrderedDict ( fields )
794,"define the method set_signed_cookie with 5 arguments: self, key, value, salt as an empty string and unpacked dictionary kwarg.","def set_signed_cookie ( self , key , value , salt = '' , ** kwargs ) :"
795,"property decorator,",@ property
796,"for every subnode in node,",for subnode in node :
797,"if field_type equals a string 'BooleanField(',",if field_type == 'BooleanField(' :
798,"call the method self.extend_nodelist with 3 arguments: nodelist, compiled_result and token.","self . extend_nodelist ( nodelist , compiled_result , token )"
799,"with lock,",with lock :
800,"call the function force_bytes with argument value, use the result as an argument for the call to the method base64.b64decode,",return pickle . loads ( base64 . b64decode ( force_bytes ( value ) ) )
801,substitute x for k and boolean True for v.,"k , v = x , True"
802,in_tag is boolean False.,in_tag = False
803,"if arg is an instance of unicode,","if isinstance ( arg , unicode ) :"
804,return self.,return self
805,"get '_filter_name' attribute of the func object, if it exists, substitute it for filter_name, if not, filter_name is None.","filter_name = getattr ( func , '_filter_name' , None )"
806,substitute registry.tag_exists for tag_exists.,tag_exists = registry . tag_exists
807,requires_system_checks is boolean False.,requires_system_checks = False
808,"define the method render with 5 arguments: self, name, value, attrs set to None and choices set to an empty tuple.","def render ( self , name , value , attrs = None , choices = ( ) ) :"
809,"if value is not an instance of list or tuple types,","if not isinstance ( value , ( list , tuple ) ) :"
810,"string created by concatenating context, CONTEXT_SEPARATOR and plural and number. call the function ungettext with unpacked dictionary msgs_with_ctxt, substitute the result for result.",result = ungettext ( * msgs_with_ctxt )
811,"if template starts with a string 'file://',",if template . startswith ( 'file://' ) :
812,raise an ValueError with an argument string 'ModelForm has no model class specified.'.,raise ValueError ( 'ModelForm has no model class specified.' )
813,define the method o with an argument self.,def o ( self ) :
814,"call the method datetime.datetime.strptime with 2 arguments: result of the function force_str called with an argument value,","return datetime . datetime . strptime ( force_str ( value ) , format )"
815,"token is an instance of Token class, created with 2 arguments: TOKEN_VAR,","token = Token ( TOKEN_VAR , token_string [ 2 : - 2 ] . strip ( ) )"
816,"get the value under the settings.__module__ key of the sys.modules dictionary,",settingsfile = upath ( sys . modules [ settings . __module__ ] . __file__ )
817,"usage is a list containing 4 entries: an empty string, string ""Type '%s help ' for help on a specific subcommand."",","usage = [ """" , ""Type '%s help ' for help on a specific subcommand."" % self . prog_name , """" , ""Available subcommands:"" , ]"
818,define the method create_variable_node with 2 arguments self and filter_expression.,"def create_variable_node ( self , filter_expression ) :"
819,"substitute fist and second element of exc_info for exctype and value, respectively.","exctype , value = exc_info [ : 2 ]"
820,"call the function next_space_index with 2 arguments: subject and i, substitute the result for i.","i = next_space_index ( subject , i )"
821,"if ValueError exception is caught,",except ValueError :
822,"otherwise if self._delegate_text is true,",elif self . _delegate_text :
823,define the function lock with arguments f and flags.,"def lock ( f , flags ) :"
824,"call the method pyinotify.INotifyWrapper.create, on the return value call the inotify_init method, substitute the result for fd.",fd = pyinotify . INotifyWrapper . create ( ) . inotify_init ( )
825,call the methof model_dependencies.reverse.,model_dependencies . reverse ( )
826,"raise an TemplateSyntaxError exception with an argument string ""'regroup' tag takes five arguments"".","raise TemplateSyntaxError ( ""'regroup' tag takes five arguments"" )"
827,"if OverflowError or ValueError, renamed to exc, exceptions are caught,","except ( OverflowError , ValueError ) as exc :"
828,return an empty list.,return [ ]
829,"if form.is_bound is true,",if form . is_bound :
830,derive the class RegexValidator form the object base class.,class RegexValidator ( object ) :
831,"if not self.max_length is None. remove the value under 'allow_empty_file' key from the kwargs dictionary and if the key exists,","self . allow_empty_file = kwargs . pop ( 'allow_empty_file' , False )"
832,requires_system_checks is boolean False.,requires_system_checks = False
833,"define the method serialize with 3 arguments: self, queryset and unpacked dictionary options.","def serialize ( self , queryset , ** options ) :"
834,filemsg is an empty string.,filemsg = ''
835,define the method _list_cache_files with argument self.,def _list_cache_files ( self ) :
836,"try,",try :
837,substitute inotify_code_changed for fn.,fn = inotify_code_changed
838,"dest set to string 'load_initial_data', default=True and help as a string 'Tells Django not to load any initial data after database synchronization.'. define the method handle with arguments self and unpacked dictionary options.","def handle ( self , ** options ) :"
839,"if dt.year is greater than or equal to integer 1900,",if dt . year >= 1900 :
840,"return boolean False,",return False
841,all_locales is an empty string.,all_locales = [ ]
842,"for every message in email_messages,",for message in email_messages :
843,substitute the tuple containing 2 elements p_pattern and pattern for value under the pattern.namespace key of the namespaces dictionary.,"namespaces [ pattern . namespace ] = ( p_pattern , pattern )"
844,"if value is an instance of Field class,","if isinstance ( value , Field ) :"
845,define the method resolve_variable with 2 arguments: path and context.,"def resolve_variable ( path , context ) :"
846,"call the function warnings.warn with 2 arguments: string ""django.utils.tzinfo.LocalTimezone will be removed in Django 1.9. ""","warnings . warn ( ""django.utils.tzinfo.LocalTimezone will be removed in Django 1.9. "" ""Use django.utils.timezone.get_default_timezone instead."" , RemovedInDjango19Warning )"
847,"if self.render_value is false,",if not self . render_value :
848,substitute name for self.name.,self . name = name
849,"try,",try :
850,"get '_decorated_function' attribute from the func object, substitute it for _dec._decorated_function, if it doesnt exist,","_dec . _decorated_function = getattr ( func , '_decorated_function' , func )"
851,return ip_str.,return ip_str
852,"call the method wrap with 2 arguments, value and arg converted into a integer, return the result.","return wrap ( value , int ( arg ) )"
853,"define the method label_tag with 4 arguments: self, contents set to None, attrs set to None and label_suffix set to None.","def label_tag ( self , contents = None , attrs = None , label_suffix = None ) :"
854,return the result. decorator function register.filter with 2 arguments is_safe set to boolean True and needs_autoescape set to boolean True.,"@ register . filter ( is_safe = True , needs_autoescape = True )"
855,"for every app in app_labels. call the method autodetector.arrange_for_graph with 2 arguments: changes, loader.graph, substitute the result for changes.","changes = autodetector . arrange_for_graph ( changes , loader . graph )"
856,"call the function popen_wrapper with an argument args, assign the result to msgs, errors and status.","msgs , errors , status = popen_wrapper ( args )"
857,return an empty string.,return ''
858,define the method strftime with 2 arguments: self and fmt.,"def strftime ( self , fmt ) :"
859,"if value,",if value :
860,"call the function update_wrapper with 2 arguments: wrapper and user_function, return the result.","return update_wrapper ( wrapper , user_function )"
861,"python_2_unicode_compatible decorator,",@ python_2_unicode_compatible
862,do nothing.,pass
863,"try,",try :
864,"get attr attribute from the _module object, substitute it for value.","value = getattr ( _module , attr )"
865,define the method id_for_label with an argument self.,def id_for_label ( self ) :
866,"define the __call__method with arguments self, unpacked list args and unpacked dictionary kwargs.","def __call__ ( self , * args , ** kwargs ) :"
867,if self.verbosity is greater or equal to integer 1.,if self . verbosity >= 1 :
868,"call the function allow_lazy with 2 arguments: remove_tags, six.text_type, substitute the result for remove_tags.","remove_tags = allow_lazy ( remove_tags , six . text_type )"
869,_get_post is a getter function and _set_post is a setter function for POST attribute of this class.,"POST = property ( _get_post , _set_post )"
870,"call the get_bytes_from_wsgi function with environ, string 'SCRIPT_NAME' and empty strings as arguments, substitute the result for script_name.","script_name = get_bytes_from_wsgi ( environ , 'SCRIPT_NAME' , '' )"
871,"get the value under the self.using key of the connections dictionary, substitute it for connection.",connection = connections [ self . using ]
872,"if exclude is true and f.name is contained in exclude,",if exclude and f . name in exclude :
873,"round up radio, convert it to an integer and the convert it to a string and substitute the result for result.",result = str ( int ( round ( ratio ) ) )
874,"if NameError exception is caught,",except NameError :
875,"split string pks by ',', substitute the result for primary_keys.","primary_keys = pks . split ( ',' )"
876,delete name attribute from self._wrapped object.,"delattr ( self . _wrapped , name )"
877,"get 'exclude' attribute from the options object, if it exists substitute it for self.exclude, if not self.exclude is None.","self . exclude = getattr ( options , 'exclude' , None )"
878,msgmerge_options is an list with elements: strings '-q' and '--previous'.,"msgmerge_options = [ '-q' , '--previous' ]"
879,"decorator function wraps with 2 arguments: view_func and assigned set to result of the function available_attrs,","@ wraps ( view_func , assigned = available_attrs ( view_func ) )"
880,skip this loop execution.,continue
881,"and _, respectively. if file_ is true,",if file_ :
882,"join tokens elements into a string, substitute it for message.",message = '' . join ( tokens )
883,"return a string """", substitute '%s' with self.filter_expression.","return """" % self . filter_expression"
884,call the function resolve with arguments path and urlconf.,"resolve ( path , urlconf )"
885,"if ValueError exception is caught,",except ValueError :
886,call the method self.can_write.acquire.,self . can_write . acquire ( )
887,return self._queryset.,return self . _queryset
888,"call the function signed_value with an argument value, substitute the result for signed_value.",signed_value = force_str ( signed_value )
889,"return length of value,",return len ( value )
890,return wrapper.,return wrapper
891,define the method clear with an argument self.,def clear ( self ) :
892,"for every lookup and arg in args,","for lookup , arg in args :"
893,"call the function force_str with an argument: default if it is true, or if not, first element of the result of the function,",format = force_str ( default or get_format ( 'DATE_INPUT_FORMATS' ) [ 0 ] )
894,update object_data dictionary with initial.,object_data . update ( initial )
895,define the get_path_info function with environ as the argument.,def get_path_info ( environ ) :
896,from django.utils.html import format_html into default name space.,from django . utils . html import format_html
897,return nodes.,return nodes
898,substitute empty bytes string for self.buffer.,self . buffer = b''
899,and RemovedInDjango19Warning. from django.conf import settings into default namespace.,from django . conf import settings
900,"decrement l by integer 1, multiply it with hlen, subtract the result from dklen, substitute the result for r.",r = dklen - ( l - 1 ) * hlen
901,"divide message by error.params, substitute the residue of the division for message.",message %= error . params
902,substitute source for e.django_template_source.,e . django_template_source = source
903,substitute bytes for binary_type.,binary_type = bytes
904,"if replaces filed of graph.nodes element at the plan_node index is true,",if graph . nodes [ plan_node ] . replaces :
905,"call the method self.build_attrs with 3 arguments: attrs, type as a string 'checkbox', name as name, substitute the result for final_attrs.","final_attrs = self . build_attrs ( attrs , type = 'checkbox' , name = name )"
906,"call the self._read_limiter with length of self.buffer subtracted from size as argument, store the result into chunk.",chunk = self . _read_limited ( size - len ( self . buffer ) )
907,"split into two parts token.contents by None, substitute the parts for _ and rest, respectively.","_ , rest = token . contents . split ( None , 1 )"
908,"if not substitute field.initial for initial_value. if initial_value is an callable object,",if callable ( initial_value ) :
909,"if settings.configured is false,",if not settings . configured :
910,"call the method blankout with 2 arguments: part and 'P', write the result to out.","out . write ( blankout ( part , 'P' ) )"
911,"if NotImplementedError exception is caught,",except NotImplementedError :
912,"call the method self.error_class with an argument list containing results of the function conditional_escape,",bf_errors = self . error_class ( [ conditional_escape ( error ) for error in bf . errors ] )
913,"if middle ends with closing and count of occurrence of closing in middle equals count of occurrence of opening in middle incremented by one,",if ( middle . endswith ( closing ) and middle . count ( closing ) == middle . count ( opening ) + 1 ) :
914,"if daemonize is true,",if daemonize :
915,define the function gettext_noop with an argument message.,def gettext_noop ( message ) :
916,"property decorator,",@ property
917,"""Use django.utils.timezone.get_default_timezone instead."" and RemovedInDjango19Warning. call the method tzinfo.__init__ with an argument self.",tzinfo . __init__ ( self )
918,"for every cnt and digit in enumerated list int_part with reversed ordering of elements,","for cnt , digit in enumerate ( int_part [ : : - 1 ] ) :"
919,widget.input_type is a string 'hidden'.,widget . input_type = 'hidden'
920,"call the method add_arguments from the base class of the Command class, with an argument parser.","super ( Command , self ) . add_arguments ( parser )"
921,from django.utils.html import strip_spaces_between_tags.,from django . utils . html import strip_spaces_between_tags
922,call the method connection.client.runshell.,connection . client . runshell ( )
923,"for every i and ext in enumerated iterable ext_list,","for i , ext in enumerate ( ext_list ) :"
924,return result.,return result
925,from django.core.management.base import BaseCommand into default name space.,from django . core . management . base import BaseCommand
926,define the method c with an argument self.,def c ( self ) :
927,"if self.warning is an instance of Exception class,","if isinstance ( self . warning , Exception ) :"
928,"convert value under the 'REQUEST_METHOD' key of the environ dictionary to uppercase, substitute it for self.method.",self . method = environ [ 'REQUEST_METHOD' ] . upper ( )
929,"if response is None,",if response is None :
930,derive the class classonlymethod from the classmethod base class.,class classonlymethod ( classmethod ) :
931,define the method G with an argument self.,def G ( self ) :
932,"if InvalidTemplateLibrary, renamed to e, exception is caught,",except InvalidTemplateLibrary as e :
933,substitute auto_id for self.auto_id.,self . auto_id = auto_id
934,"define the method _find_boundary with an arguments self, data and eof set to boolean False.","def _find_boundary ( self , data , eof = False ) :"
935,"if second_item is an empty list,",if second_item == [ ] :
936,from django.core.files import uploadhandler into default name space.,from django . core . files import uploadhandler
937,"substitute '%s' with ser_fmt, fixture_name and return value of the function humanize called with an argument fixture_dir. call the method serializers.deserialize with 4 arguments: ser_fmt, fixture, using set to self.using,","objects = serializers . deserialize ( ser_fmt , fixture , using = self . using , ignorenonexistent = self . ignore )"
938,"for every name in namelist,",for name in namelist :
939,"try,",try :
940,do nothing.,pass
941,"call the method pk.rel.to._default_manager.get_queryset, substitute the result for qs.",qs = pk . rel . to . _default_manager . get_queryset ( )
942,"call the params.get method with string 'KEY_PREFIX' and an empty string as arguments, substitute the result for self._key_prefix.","self . key_prefix = params . get ( 'KEY_PREFIX' , '' )"
943,"property decorator,",@ property
944,outut is an empty list.,output = [ ]
945,"compile regex from string '^[a-z_][a-z0-9_]*$' in case insensitive mode, substitute it for IDENTIFIER.","IDENTIFIER = re . compile ( '^[a-z_][a-z0-9_]*$' , re . I )"
946,increment key by kwd_mark.,key += kwd_mark
947,"for every message in messages,",for message in messages :
948,return self.cleaned_data.,return self . cleaned_data
949,"if not,",else :
950,"if obj.pk is None, and Model has an 'natural_key' attribute, and Model._default_manager has and 'get_by_natural_key',","if ( obj . pk is None and hasattr ( Model , 'natural_key' ) and hasattr ( Model . _default_manager , 'get_by_natural_key' ) ) :"
951,"try,",try :
952,"define the method __exit__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __exit__ ( self , * args , ** kwargs ) :"
953,"if header equals a string 'ACCEPT_LANGUAGE' and is_accept_language_redundant is boolean True,",if header == 'ACCEPT_LANGUAGE' and is_accept_language_redundant :
954,return result.,return result
955,return self.file.closed.,return self . file . closed
956,"call the middleware_method with the request as an argument, substitute the result for response.",response = middleware_method ( request )
957,"_PROTECTED_TYPES is a tuple containing next elements, six.integer_types, type of None, type of float, Decimal, detetime.datetime,","_PROTECTED_TYPES = six . integer_types + ( type ( None ) , float , Decimal , datetime . datetime , datetime . date , datetime . time )"
958,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
959,"call the method questioner.ask_merge with an argument app_label, if it evaluates to true,",if questioner . ask_merge ( app_label ) :
960,"if name is None,",if name is None :
961,set attr.name attribute of Module_six_moves_urllib_robotparser object to attr.,"setattr ( Module_six_moves_urllib_robotparser , attr . name , attr )"
962,substitute render_value for self.render_value.,self . render_value = render_value
963,return output.,return output
964,"call the self._create_message method with argument msg, substitute it for msg.",msg = self . _create_message ( msg )
965,"try,",try :
966,"if response is None,",if response is None :
967,define the method __init__ with an argument self.,def __init__ ( self ) :
968,self.choice_cache is None.,self . choice_cache = None
969,"define lambda function that returns self.file.writelines field, use it as an argument for property function, put the result in writelines.",writelines = property ( lambda self : self . file . writelines )
970,define the function default_if_none with 2 arguments value and arg.,"def default_if_none ( value , arg ) :"
971,"define the method __new__ with 4 arguments mcs, name, bases and attrs.","def __new__ ( mcs , name , bases , attrs ) :"
972,define the method clean with an argument self.,def clean ( self ) :
973,options_list is an empty tuple.,option_list = ( )
974,"raise an self.error exception with 2 arguments: token and string ""Invalid block tag: '%s', expected %s"",","raise self . error ( token , ""Invalid block tag: '%s', expected %s"" % ( command , get_text_list ( [ ""'%s'"" % p for p in parse_until ] ) ) )"
975,flush zfile stream buffer.,zfile . flush ( )
976,call the method self.tag with 2 arguments: function_name and compile_func.,"self . tag ( function_name , compile_func )"
977,"call the function os.environ.get with 2 arguments: string 'PATH' and an empty string, split the result at the os.pathsep, substitute the result for path.","path = os . environ . get ( 'PATH' , '' ) . split ( os . pathsep )"
978,"call the method self.to_python with an argument value, substitute it for value.",value = self . to_python ( value )
979,substitute regex for self._regex.,self . _regex = regex
980,"call the method self.value.resolve with 2 arguments context and ignore_failures set to boolean True, return the result.","return self . value . resolve ( context , ignore_failures = True )"
981,"if age is greater than max_age,",if age > max_age :
982,"if escaped is true,",if escaped :
983,while start is lesser than end.,while start < end :
984,from django.utils.six.moves import socketserver into default name space.,from django . utils . six . moves import socketserver
985,"substitute the '%s' with table and 3 elements of a list: b64encoded, exp and key, respectively. if not,",else :
986,data is an empty dictionary.,data = { }
987,"call the function new_method_proxy with an argument len, substitute the result for __len__.",__len__ = new_method_proxy ( len )
988,"call the method self.get_parent with an argument context, substitute the result for compiled_parent.",compiled_parent = self . get_parent ( context )
989,"if change equals to FILE_MODIFIED,",if change == FILE_MODIFIED :
990,"if not,",else :
991,return the_path.,return the_path
992,"call the function get_commands, convert the result to a list, append string 'help' to it, substitute it for subcommands.",subcommands = list ( get_commands ( ) ) + [ 'help' ]
993,"for every key in self,",for key in self :
994,"if sum of the top and self.orphans is greater or equal to self.count,",if top + self . orphans >= self . count :
995,"for every s in strings, call the function force_text with an argument s, join the results in a string, return the result.",return '' . join ( force_text ( s ) for s in strings )
996,"slice chunk list to get the last rollback elements, if the new list is not empty,",if not chunk [ : - rollback ] :
997,"create a list of tuples out of 2 lists: appended params list to prefix_args and text_args, covert the result into a dictionary,","candidate_subs = dict ( zip ( prefix_args + params , text_args ) )"
998,define the method __getitem__ with 2 arguments: self and key.,"def __getitem__ ( self , key ) :"
999,self.content_type_extra is None.,self . content_type_extra = None
1000,from django.conf import settings into default name space.,from django . conf import settings
1001,define the function _import_module with an argument name.,def _import_module ( name ) :
1002,"call the method field.value_to_string with an argument obj, use the result as an argument for the call the method self.xml.characters.",self . xml . characters ( field . value_to_string ( obj ) )
1003,define the method unclosed_block_tag with 2 arguments: self and parse_until.,"def unclosed_block_tag ( self , parse_until ) :"
1004,"define the method __new__ with 4 arguments: mcs, name, bases and attrs.","def __new__ ( mcs , name , bases , attrs ) :"
1005,"ge the absolute path of the return value of the function path.expanduser with the argument target, substitute it for top_dir.",top_dir = os . path . abspath ( path . expanduser ( target ) )
1006,"for every value in data. if data_set is not equal to initial_set return boolean True, otherwise return boolean False.",return data_set != initial_set
1007,define the method validate_unique with an argument self.,def validate_unique ( self ) :
1008,"prefix set to None, initial set to None, error_class set to ErrorList, label_suffix set to None, empty_permitted set to boolean False, instance set to None. substitute self._meta for opts.",opts = self . _meta
1009,substitute save_m2m for self.save_m2m.,self . save_m2m = save_m2m
1010,"call the function timesince with an argument value, return the result.",return timesince ( value )
1011,"if AppRegistryNotReady exception is caught,",except AppRegistryNotReady :
1012,"if not,",else :
1013,"if _ipv6 is true,",if _ipv6 :
1014,"define the method __init__ with 6 arguments: self, name, value, attrs, choice and index.","def __init__ ( self , name , value , attrs , choice , index ) :"
1015,substitute True for self.close_called.,self . close_called = True
1016,"if field is contained in self.errors,",if field in self . errors :
1017,"convert to an integer first element of the value under the 'content-length' key of the meta_data dictionary, substitute it for content_length.",content_length = int ( meta_data . get ( 'content-length' ) [ 0 ] )
1018,"if data is bound to the same object as FILE_INPUT_CONTRADICTION,",if data is FILE_INPUT_CONTRADICTION :
1019,"increment i by integer 1,",i += 1
1020,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
1021,"call the function loader with arguments name and dirs, assign the result to template and display_name, respectively.","template , display_name = loader ( name , dirs )"
1022,define the method run_from_argv with arguments self and argv.,"def run_from_argv ( self , argv ) :"
1023,derive the class RegexURLResolver with LocaleRegexProvider as base class.,class RegexURLResolver ( LocaleRegexProvider ) :
1024,call the method self._delete with argument key.,self . _delete ( key )
1025,"if value under the 'author_email' key of the self.feed dictionary is not None,",if self . feed [ 'author_email' ] is not None :
1026,merge_migrations is an empty list.,merge_migrations = [ ]
1027,"for every handler in settings.FILE_UPLOAD_HANDLERS,","self . _upload_handlers = [ uploadhandler . load_handler ( handler , self ) for handler in settings . FILE_UPLOAD_HANDLERS ]"
1028,fail_message is a string changed'.,fail_message = 'changed'
1029,"raise an exception DjingoUnicodeDecodeError, with s and list of arguments *args from object e, as the arguments.","raise DjangoUnicodeDecodeError ( s , * e . args )"
1030,"if UnicodeEncodeError exception is caught,",except UnicodeEncodeError :
1031,"call the method queryset.filter with an argument unpacked dictionary containing self.instance for self.fk.name, substitute the result for qs.",qs = queryset . filter ( ** { self . fk . name : self . instance } )
1032,"for every app and names in result of the method conflicts.items, join names into a string, separated by ', ',","name_str = ""; "" . join ( ""%s in %s"" % ( "", "" . join ( names ) , app ) for app , names in conflicts . items ( ) )"
1033,"call the Parser object with stream and self._boundary, for every item_type, meta_data and field_stream in return value,","for item_type , meta_data , field_stream in Parser ( stream , self . _boundary ) :"
1034,import module django.,import django
1035,append name to exclude.,exclude . append ( name )
1036,"append migration.name to string ' - ', write it to self.stdout stream.","self . stdout . write ( "" - %s"" % migration . name )"
1037,"tablename and return value of the function force_text called with an argument e, respectively. for every statement in index_output,",for statement in index_output :
1038,"add self.buffer and self._read_limited method return value together, store it in result.",result = self . buffer + self . _read_limited ( )
1039,"call the function chain with 2 arguments: self.choices and choices, convert the result into a list and substitute it for choices.","choices = list ( chain ( self . choices , choices ) )"
1040,"classmethod decorator,",@ classmethod
1041,"get the value under the 'HTTP_X_FORWARDED_HOST' key of the self.META dictionary, substitute the result for host.",host = self . META [ 'HTTP_X_FORWARDED_HOST' ]
1042,"for every f and e in list of tuples of self dictionary key, pair entries. define the method as_json with 2 argumens self and escape_html set to boolean False.","def as_json ( self , escape_html = False ) :"
1043,define the function select_template with 2 arguments: template_name_list and dirs set to None.,"def select_template ( template_name_list , dirs = None ) :"
1044,"otherwise if k equals a string 'bg',",elif k == 'bg' :
1045,"call the method token.contents.split, substitute the result for args.",args = token . contents . split ( )
1046,"put bcc into a list, assign it to self.bcc.",self . bcc = list ( bcc )
1047,"'Enter a whole number.' for 'invalid'. define the method __init__ with 5 arguments: self, max_value set to None, min_value set to None, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , max_value = None , min_value = None , * args , ** kwargs ) :"
1048,"strip whitespaces from both sides of the value, substitute it for value.",value = value . strip ( )
1049,define the method __enter__ with an argument self.,def __enter__ ( self ) :
1050,"if value is not equal to value or value equals return value of the call to Decimal with argument 'Inf',","if value != value or value == Decimal ( ""Inf"" ) or value == Decimal ( ""-Inf"" ) :"
1051,define the method serialize_headers with an argument self.,def serialize_headers ( self ) :
1052,"if self.setting is true,",if self . setting :
1053,"encoding.setter decorator,",@ encoding . setter
1054,vary_on is an empty tuple.,vary_on = ( )
1055,from django.core.management.color import color_style into default name space.,from django . core . management . color import color_style
1056,"if not,",else :
1057,"get name attribute from the instance object, call it with an argument value and return the result.","return getattr ( instance , name ) ( value )"
1058,substitute attrs for self.attrs.,self . attrs = attrs
1059,define the function pgettext with 2 arguments: context and message.,"def pgettext ( context , message ) :"
1060,"for every handler in handlers,",for handler in handlers :
1061,"separated by newline, use it as an argument for the call to the function mark_safe, return the result. define the function formset_factory with 9 arguments: form, formset set to BaseFormSet, extra set to integer 1,","def formset_factory ( form , formset = BaseFormSet , extra = 1 , can_order = False , can_delete = False , max_num = None , validate_max = False , min_num = None , validate_min = False ) :"
1062,"return a string """", where '%s' is replaced with self.__language.","return """" % self . __language"
1063,"if not,",else :
1064,import module errno.,import errno
1065,call the method check_for_migrations with arguments: app_config and connection.,"check_for_migrations ( app_config , connection )"
1066,"if it exists, get 'stderr' attribute of self, substitute it for stderr, if not, stderr is an instance of OutputWrapper class,","stderr = getattr ( self , 'stderr' , OutputWrapper ( sys . stderr , self . style . ERROR ) )"
1067,"otherwise if i is smaller than list_length decremented by one,",elif i < list_length - 1 :
1068,"call the method self.next_token, substitute the result for self.current_token.",self . current_token = self . next_token ( )
1069,from django.core.files.uploadedfile import TemporaryUploadedFile and InMemoryUploadedFile into default name space.,"from django . core . files . uploadedfile import TemporaryUploadedFile , InMemoryUploadedFile"
1070,use the global variables _mtimes and _win in this function.,"global _mtimes , _win"
1071,value under the app_config key of the app_list is None.,app_list [ app_config ] = None
1072,nodes is an empty list.,nodes = [ ]
1073,return msg.,return msg
1074,raise CommandError exception with msg as argument.,raise CommandError ( msg )
1075,"use the result as the argument for the function call to the pickle.loads, return the result. define the method set with 5 arguments, self class instance, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def set ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
1076,consume_next is boolean True.,consume_next = True
1077,"call the method self.filter_expression.resolve with an argument context, substitute the result for output.",output = self . filter_expression . resolve ( context )
1078,from django.utils.safestring import SafeData and EscapeData into default name space.,"from django . utils . safestring import SafeData , EscapeData"
1079,"if key_prefix is None,",if key_prefix is None :
1080,"property decorator,",@ property
1081,define the function unregister_serializer with an argument format.,def unregister_serializer ( format ) :
1082,_dec.__name__ is a string 'method_decorator(%s)' formated with decorator.__name__.,_dec . __name__ = 'method_decorator(%s)' % decorator . __name__
1083,return boolean False.,return False
1084,define the method __init__ with 2 arguments: self and value.,"def __init__ ( self , value ) :"
1085,"call the method datetime.timedelta with an argument seconds set to integer 1, increment delta by it.",delta = delta + datetime . timedelta ( seconds = 1 )
1086,self.app_label is a string 'django_cache'.,self . app_label = 'django_cache'
1087,"yield string 'from %s import models' % self.db_module as the result, where ""%s"" is replaced with self.db_module.",yield 'from %s import models' % self . db_module
1088,"for every p in parts without the first element,",for p in parts [ 1 : ] :
1089,"call the function _ with an argument string 'p.m.', return the result.",return _ ( 'p.m.' )
1090,substitute compressed for data.,data = compressed
1091,"call the self.path with argument name, use the result as an argument for the call to the os.path.getsize function, return the result.",return os . path . getsize ( self . path ( name ) )
1092,raise an exception.,raise
1093,"return an instance of DebugVariableNode, created with an argument contents.",return DebugVariableNode ( contents )
1094,FILE_MODIFIED is integer 1.,FILE_MODIFIED = 1
1095,"get the value under the self.data.month key of the MONTHS_3 dictionary, call on it the method title, return the result.",return MONTHS_3 [ self . data . month ] . title ( )
1096,self.content_type is None.,self . content_type = None
1097,substitute messages.error_list for the value under the field key of the self.error_dict dictionary.,self . error_dict [ field ] = messages . error_list
1098,from django.db.migrations.executor import MigrationExecutor into default name space.,from django . db . migrations . executor import MigrationExecutor
1099,derive the class InvalidPage from the Exception base class.,class InvalidPage ( Exception ) :
1100,from django.conf import settings into default namespace.,from django . conf import settings
1101,"call the method self.nodelist.render with an argument context, substitute the result for result.",result = self . nodelist . render ( context )
1102,define the function safe with an argument value.,def safe ( value ) :
1103,"for every chunk in field_stream,",for chunk in field_stream :
1104,"error is an dictionary with an initial entry error.error_list for filed if true, or NON_FIELD_ERRORS if not.",error = { field or NON_FIELD_ERRORS : error . error_list }
1105,"get the value under the key of the dictionary self, if key does not exists return evaluated result of the function Morsel, substitute it for M.","M = self . get ( key , Morsel ( ) )"
1106,CRITICAL is integer 50.,CRITICAL = 50
1107,"try,",try :
1108,"call the method self.get_field_type with 3 arguments connection, table_name and row, assign the result to field_type, field_params,","field_type , field_params , field_notes = self . get_field_type ( connection , table_name , row )"
1109,"call the method parser.add_argument with string '--locale', string '-l', dest set to string 'locale', action set to string 'append',","parser . add_argument ( '--locale' , '-l' , dest = 'locale' , action = 'append' , default = [ ] , help = 'Locale(s) to process (e.g. de_AT). Default is to process all. ' 'Can be used multiple times.' )"
1110,"return an instance of BoundField class, created with arguments self, field and name.","return BoundField ( self , field , name )"
1111,define the method nodelist with an argument self.,def nodelist ( self ) :
1112,define the method get_full_path with an argument self.,def get_full_path ( self ) :
1113,delete the value under the key key of self._expire_info dictionary.,del self . _expire_info [ key ]
1114,"for every app_name and namespace_list in pattern.app_dict.items method return value,","for app_name , namespace_list in pattern . app_dict . items ( ) :"
1115,from django.core.files import locks into default name space.,from django . core . files import locks
1116,"call the function ugettext with an argument string ""Please correct the duplicate data for %(field)s, which must be unique."",","return ugettext ( ""Please correct the duplicate data for %(field)s, "" ""which must be unique."" ) % { ""field"" : get_text_list ( unique_check , six . text_type ( _ ( ""and"" ) ) ) , }"
1117,"if exclude is true and f.name is contained in exclude,",if exclude and f . name in exclude :
1118,"string ""memoize wrapper is deprecated and will be removed in Django 1.9. Use django.utils.lru_cache instead."", RemovedInDjango19Warning and stacklevel set to integer 2. decorator function wraps with an argument func.",@ wraps ( func )
1119,"if matches is false,",if not matches :
1120,"if label_suffix is None,",if label_suffix is None :
1121,"substitute the result for content. token is an instance of Token class, created with 2 arguments: TOKEN_COMMENT and content.","token = Token ( TOKEN_COMMENT , content )"
1122,call the method message.message.,message . message ( )
1123,"if cls is false,",if not cls :
1124,remove name from existing.,existing . remove ( name )
1125,substitute i for value under the 'counter0' key of the loop_dict dictionary.,loop_dict [ 'counter0' ] = i
1126,"yield string ' %s', where '%s' is replaced with field_desc.",yield ' %s' % field_desc
1127,"call the function cache_get with 2 arguments: key and root, substitute the result for result.","result = cache_get ( key , root )"
1128,return commands.,return commands
1129,"return an instance of AutoEscapeControlNode with 2 arguments: boolean exception arg equals to string 'on', and nodelist.","return AutoEscapeControlNode ( ( arg == 'on' ) , nodelist )"
1130,"call the message_from_string function with an argument content, substitute the result for content.",content = message_from_string ( content )
1131,"call the method connection.ops.end_transaction_sql, use the result as the argument for the call to the method self.style.SQL_KEYWORD,",self . stdout . write ( '\n' + self . style . SQL_KEYWORD ( connection . ops . end_transaction_sql ( ) ) )
1132,"remove first element from remaining_bits, substitute the result for option.",option = remaining_bits . pop ( 0 )
1133,derive the class TimestampSigner from the Signer base class.,class TimestampSigner ( Signer ) :
1134,substitute v for value under the k converted to lower case key of options dictionary.,options [ k . lower ( ) ] = v
1135,"if StandardError, renamed to e, exception is caught,",except StandardError as e :
1136,yield k.,yield k
1137,return nodelist.,return nodelist
1138,skip this loop iteration.,continue
1139,"call the function normalize_newlines with an argument value, substitute the result for value.",value = normalize_newlines ( value )
1140,"call the method self._coerce with an argument data, substitute the result for data.",data = self . _coerce ( data )
1141,"call the method handler.addQuickElement with 3 arguments: string 'link', an empty string and a dictionary with 2 entries:","handler . addQuickElement ( ""link"" , """" , { ""href"" : item [ 'link' ] , ""rel"" : ""alternate"" } )"
1142,"get 'exec' attribute from the moves.builtins object, substitute it for exec_.","exec_ = getattr ( moves . builtins , ""exec"" )"
1143,"return a tuple with 2 elements: result of the method self.field.prepare_value called with an argument obj,","return ( self . field . prepare_value ( obj ) , self . field . label_from_instance ( obj ) )"
1144,"call the method cursor.execute with string ""DELETE FROM %s WHERE cache_key = %%s"" as argument,","cursor . execute ( ""DELETE FROM %s WHERE cache_key = %%s"" % table , [ key ] )"
1145,"if not,",else :
1146,"if p2.scheme, p2.hostname and p2.port equals p1.scheme, p1.hostname and p1.port, respectively, return boolean True, otherwise return boolean False.","return ( p1 . scheme , p1 . hostname , p1 . port ) == ( p2 . scheme , p2 . hostname , p2 . port )"
1147,import module os.,import os
1148,"call the method nodelist.get_nodes_by_type with an argument nodetype, extend nodes with the result.",nodes . extend ( nodelist . get_nodes_by_type ( nodetype ) )
1149,"if not,",else :
1150,call the function _load_serializers.,_load_serializers ( )
1151,"yield string ""# into your database."" as the result.","yield ""# into your database."""
1152,escaped is boolean False.,escaped = False
1153,"call the function allow_lazy with 2 arguments: urlize, six.text_type, substitute the result for urlize.","urlize = allow_lazy ( urlize , six . text_type )"
1154,"for every x in argset,",for x in argset :
1155,"if is_compressed is true,",if is_compressed :
1156,"call the function _explode_shorthand_ip_string with an argument ip_str, substitute the result for ip_str.",ip_str = _explode_shorthand_ip_string ( ip_str )
1157,increment i-th element of counters by chunk_length.,counters [ i ] += chunk_length
1158,convert candidate to a string.,candidate = str ( candidate )
1159,"call the method router.allow_migrate with 2 arguments: database and cache.cache_model_class, if it evaluates to false,","if not router . allow_migrate ( database , cache . cache_model_class ) :"
1160,"return an property object with getter function fget, setter function fset, destructor fdel and documentation string doc.","return property ( fget , fset , fdel , doc )"
1161,"if AttributeError exception is caught,",except AttributeError :
1162,"return an empty string,",return ''
1163,"fks_to_parent is a list containing f, for every f in opts.fields if f.name equals fk_name.",fks_to_parent = [ f for f in opts . fields if f . name == fk_name ]
1164,"call the function escape with an argument word, substitute the result for i-th element of words.",words [ i ] = escape ( word )
1165,"if not,",else :
1166,"get attribute name from value under the DEFAULT_CACHE_ALIAS key of caches dictionary, return it.","return getattr ( caches [ DEFAULT_CACHE_ALIAS ] , name )"
1167,"if _file is None,",if _file is None :
1168,"raise an ValueError exception with string ""Key '%s' not found"" as argument, substitute '%s' with key converted into a string.","raise ValueError ( ""Key '%s' not found"" % key )"
1169,"if not,",else :
1170,"string 'ascii' and errors set to a string 'replace', return the result. define the method render with 2 arguments: self and context.","def render ( self , context ) :"
1171,"substitute parts, without the first element, for path.",path = parts [ 1 : ]
1172,"if length of args is not equal to integer 2,",if len ( args ) != 2 :
1173,call the method translation.activate with an argument string 'en-us'.,translation . activate ( 'en-us' )
1174,"if app equals a string 'django.core',",if app == 'django.core' :
1175,"from .. import Warning, register and Tags into default name space.","from . . import Warning , register , Tags"
1176,return an empty string.,"return """""
1177,"decrement by length of password, create bytes string with previous result number of characters '\x00',",password += b'\x00' * ( inner . block_size - len ( password ) )
1178,"all the method command.create_parser with arguments: empty and name, substitute the result for parser.","parser = command . create_parser ( '' , name )"
1179,define the method _parse_header with an argument line.,def _parse_header ( line ) :
1180,"if not,",else :
1181,do nothing.,pass
1182,define the function parse_accept_lang_header with an argument lang_string.,def parse_accept_lang_header ( lang_string ) :
1183,"if length of self.backout is greater than zero,",if not len ( self . backout ) :
1184,define the method render with an argument self.,def render ( self ) :
1185,"and re.IGNORECASE, substitute the result for domain_regex. call the re.compile function with 2 arguments: raw string '\[([A-f0-9:\.]+)\]$' and re.IGNORECASE, substitute the result for literal_regex.","literal_regex = re . compile ( r'\[([A-f0-9:\.]+)\]$' , re . IGNORECASE )"
1186,and third element of result of the function sys.exc_info. define the function import_by_path with 2 arguments dotted_path and error_prefix set to an empty string..,"def import_by_path ( dotted_path , error_prefix = '' ) :"
1187,closed is a property object with _get_closed as a getter method.,closed = property ( _get_closed )
1188,substitute use_tz for self.use_tz.,self . use_tz = use_tz
1189,"strip whitespaces from both sides of the value, return the result.",return value . strip ( )
1190,from django.utils import six into default name space.,from django . utils import six
1191,"sum value and arg, return the result.",return value + arg
1192,"return an instance of SafeBytes, created with an argument data.",return SafeBytes ( data )
1193,result is an empty list.,result = [ ]
1194,"call the method data.replace with an argument microsecond set to integer 0, substitute the result for data.",data = data . replace ( microsecond = 0 )
1195,from argparse import ArgumentParser into default name space.,from argparse import ArgumentParser
1196,from optparse import OptionParser into default name space.,from optparse import OptionParser
1197,from django.utils import six into default name space.,from django . utils import six
1198,import module collections.,import collections
1199,"raise an Exception exception with an argument string ""This %s instance cannot tell its position"",","raise Exception ( ""This %s instance cannot tell its position"" % self . __class__ . __name__ )"
1200,"if not,",else :
1201,return the length of self.forms.,return len ( self . forms )
1202,"if AttributeError exception is caught,",except AttributeError :
1203,"for every e in etags call the method e.encode with an argument string 'ascii', call the method decode on the result with an argument,",etags = [ e . encode ( 'ascii' ) . decode ( 'unicode_escape' ) for e in etags ]
1204,substitute self.field.widget for widget.,widget = self . field . widget
1205,"if not,",else :
1206,define the method deleted_forms with an argument self.,def deleted_forms ( self ) :
1207,"acceptable_endblocks is a tuple with 2 elements: string 'endblock' and 'endblock %s', where '%s' replaced with block_name.","acceptable_endblocks = ( 'endblock' , 'endblock %s' % block_name )"
1208,define the method _set_choices with arguments self and value.,"def _set_choices ( self , value ) :"
1209,substitute value for value under the self.variable_name key of the context dictionary.,context [ self . variable_name ] = value
1210,self.tags is an empty dictionary.,self . tags = { }
1211,"return tuple, consisting of first element of t converted to lowercase and second element of t.","return t [ 0 ] . lower ( ) , t [ 1 ]"
1212,from io import BytesIO into default name space.,from io import BytesIO
1213,do nothing.,pass
1214,"if data is not an instance of basestring,","if not isinstance ( data , basestring ) :"
1215,derive the class DefaultStorage from the LazyObject base class.,class DefaultStorage ( LazyObject ) :
1216,"call the method self.is_valid, if it evaluates to false,",if not self . is_valid ( ) :
1217,"if value is an instance of list type,","if isinstance ( value , list ) :"
1218,httpd.daemon_threads is boolean True.,httpd . daemon_threads = True
1219,"if cache_timeout is None,",if cache_timeout is None :
1220,"if rel_model has an 'natural_key' attribute and rel_model is not equal to model,","if hasattr ( rel_model , 'natural_key' ) and rel_model != model :"
1221,"if self.var is an instance of Variable class,","if isinstance ( self . var , Variable ) :"
1222,"if length of bits equals integer 2,",if len ( bits ) == 2 :
1223,append list containing string '--no-wrap' to self.msgmerge_options,self . msgmerge_options = self . msgmerge_options [ : ] + [ '--no-wrap' ]
1224,"for f in sorted list of the files in the self.path directory,",for f in sorted ( os . listdir ( self . path ) ) :
1225,define the function addslashes with an argument value.,def addslashes ( value ) :
1226,do nothing.,pass
1227,"extend list kw with a list with 5 elements: d.hour, d.minute, d.second, d.microsecond and d.tzinfo.","kw . extend ( [ d . hour , d . minute , d . second , d . microsecond , d . tzinfo ] )"
1228,substitute filter_expression for self.filter_expression.,self . filter_expression = filter_expression
1229,open the file in mode 'ab' and with file name obtained by calling the self._get_filename method.,"self . stream = open ( self . _get_filename ( ) , 'ab' )"
1230,"call the function vars with an argument options, substitute the result for cmd_options.",cmd_options = vars ( options )
1231,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
1232,"property decorator,",@ property
1233,"if model_list is None,",if model_list is None :
1234,substitute the result for the value under the Model._meta.pk.attname key of data dictionary. m2m_data is an empty dictionary.,m2m_data = { }
1235,"call the method self.choice_input_class with 5 arguments: self.name, self.value, return value of the method self.attrs.copy,","w = self . choice_input_class ( self . name , self . value , self . attrs . copy ( ) , choice , i )"
1236,"call the method self.render, return the result.",return self . render ( )
1237,"substitute '%s' in 'Internal Server Error: %s' with request.path, exc_info set to exc_info,","logger . error ( 'Internal Server Error: %s' , request . path , exc_info = exc_info , extra = { 'status_code' : 500 , 'request' : request } )"
1238,"if self.takes_context is true,",if self . takes_context :
1239,"if fourth element of version equals to string 'alpha' and fight element of version equals to integer 0,",if version [ 3 ] == 'alpha' and version [ 4 ] == 0 :
1240,import module sys.,import sys
1241,"if self.timezone is true,",if not self . timezone :
1242,"define the function join with 3 arguments: value, arg and autoescape set to None.","def join ( value , arg , autoescape = None ) :"
1243,call the _tc.load method with the 'foo:bar=1' converted to string as an argument.,_tc . load ( str ( 'foo:bar=1' ) )
1244,"if ValidationError, renamed to e, exception is caught,",except ValidationError as e :
1245,define the method temporary_file_path with argument self.,def temporary_file_path ( self ) :
1246,common_ancestor is None.,common_ancestor = None
1247,call the method self._post_clean.,self . _post_clean ( )
1248,"if error is an instance of ValidationError,","if isinstance ( error , ValidationError ) :"
1249,"substitute '%r' in string 'Cache key contains characters that will cause errors if used with memcached: %r' with key,","warnings . warn ( 'Cache key contains characters that will cause ' 'errors if used with memcached: %r' % key , CacheKeyWarning )"
1250,define the function sort_dependencies with an argument app_list.,def sort_dependencies ( app_list ) :
1251,"if filters is true,",if filters :
1252,if decimal_pos is not None,if decimal_pos is not None :
1253,"call the method connection.close,",connection . close ( )
1254,return empty bytes string.,return b''
1255,"call the method block.nodelist.render with an argument context, substitute the result for result.",result = block . nodelist . render ( context )
1256,"define the method __init__ with 3 arguments: self, template_string and origin.","def __init__ ( self , template_string , origin ) :"
1257,derive the class MaxLengthValidator form the BaseValidator base class.,class MaxLengthValidator ( BaseValidator ) :
1258,"call the function re.compile with an argument raw string '^\w{3}, %s %s %s %s GMT$' formated with __D, __M, __Y and __T,","RFC1123_DATE = re . compile ( r'^\w{3}, %s %s %s %s GMT$' % ( __D , __M , __Y , __T ) )"
1259,"call the function ugettext with '0 minutes' as argument, use the result as the argument for the call to the avoid_wrapping function, return the result.",return avoid_wrapping ( ugettext ( '0 minutes' ) )
1260,append contents to singular.,singular . append ( contents )
1261,define the method _add_installed_apps_translations with an argument self.,def _add_installed_apps_translations ( self ) :
1262,"with the argument view, store the result in the view. return view",return view
1263,deps is an empty list.,deps = [ ]
1264,"skip this loop iteration,",continue
1265,"call the method connection.ops.prepare_sql_script with 2 arguments: return value of the function fp.read,","output . extend ( connection . ops . prepare_sql_script ( fp . read ( ) , _allow_fallback = True ) )"
1266,append val to self.vals.,self . vals . append ( val )
1267,derive the class CacheClass from the DummyCache base class.,class CacheClass ( DummyCache ) :
1268,return s.,return s
1269,"if cls._delegate_text is true,",if cls . _delegate_text :
1270,"substitute '%s' from string ""<%s: %s (%s)>"" with self.__class__.__name__, self.name and self.content_type, respectively, use it as an argument for the call to the function force_str, return the result.","return force_str ( ""<%s: %s (%s)>"" % ( self . __class__ . __name__ , self . name , self . content_type ) )"
1271,"if file filename exists,",if os . path . exists ( filename ) :
1272,"for statements is sql,",for statement in sql :
1273,substitute self.lineno for token.lineno.,token . lineno = self . lineno
1274,substitute messages for self.error_messages.,self . error_messages = messages
1275,substitute field.rel.to with rel_model.,rel_model = field . rel . to
1276,"get the unicode representation of result of the method match.group called with an integer 1, format with in a string ""\\u%04x"",","return ""\\u%04x"" % ord ( match . group ( 1 ) )"
1277,call the method self._archive.close.,self . _archive . close ( )
1278,"call the method parser.compile_filter with an argument second element for bits, substitute the result for parent_name.",parent_name = parser . compile_filter ( bits [ 1 ] )
1279,update self.__dict__ dictionary with obj_dict.,self . __dict__ . update ( obj_dict )
1280,define the method g with an argument self.,def g ( self ) :
1281,return an empty string.,return ''
1282,append list containing string '--no-wrap' to self.xgettext_options.,self . xgettext_options = self . xgettext_options [ : ] + [ '--no-wrap' ]
1283,"if length of app_labels is equal to integer 1,",if len ( app_labels ) == 1 :
1284,from django.conf import settings into default name space.,from django . conf import settings
1285,"format string '%s;' with name, append it to self.fed.",self . fed . append ( '%s;' % name )
1286,"call the function time.time, substitute the result for timeval.",timeval = time . time ( )
1287,"convert fist p elements of language to lowercase, append '_' to it,",return language [ : p ] . lower ( ) + '_' + language [ p + 1 : ] . lower ( )
1288,"'TemporaryFileUploadHandler', 'MemoryFileUploadHandler', 'load_handler' and 'StopFutureHandlers'. derive the class UploadFileException from the Exception base class.",class UploadFileException ( Exception ) :
1289,bad_app_labels is an empty set.,bad_app_labels = set ( )
1290,from datetime import datetime into default name space.,from datetime import datetime
1291,"call the function _explode_shorthand_ip_string with an argument ip_str, substitute the result for ip_str.",ip_str = _sanitize_ipv4_mapping ( ip_str )
1292,"for every shell in available_shells,",for shell in available_shells :
1293,substitute settings.ROOT_URLCONF for urlconf.,urlconf = settings . ROOT_URLCONF
1294,define the method add_arguments with self and parser as arguments.,"def add_arguments ( self , parser ) :"
1295,"try,",try :
1296,"get the value under the 'database' key of the options dictionary, substitute the result for database.",using = options . get ( 'database' )
1297,"append self.msguniq_options to a list containing a string 'msguniq', append list containing potfile to the result, substitute it for args.",args = [ 'msguniq' ] + self . msguniq_options + [ potfile ]
1298,if s is an instance of an object six.memoryview.,"if isinstance ( s , six . memoryview ) :"
1299,substitute args for self.args.,self . args = args
1300,call the method self.endChannelElement with an argument handler.,self . endChannelElement ( handler )
1301,"call the method copy.deepcopy with arguments self.widget and memo, substitute the result for result.widget.","result . widget = copy . deepcopy ( self . widget , memo )"
1302,"call the method t.render with an argument, instance of Context class, created with an argument dictionary, return the result.",return t . render ( Context ( dictionary ) )
1303,request_finished is a instance of a Signal class.,request_finished = Signal ( )
1304,call the method result.setlist with the arguments: key and value.,"result . setlist ( key , value )"
1305,raise the exception.,raise
1306,"define show_migration_list with self class instance, connection and app_names set to None, as arguments.","def show_migration_list ( self , connection , app_names = None ) :"
1307,"string '%s' with self._func_path, self.args, self.kwargs, self.url_name, self.app_name and self.namespaces, respectively. derive the class Resolver404 with Http404 as base class.",class Resolver404 ( Http404 ) :
1308,break from the loop execution.,break
1309,"call the function base.DeserializedObject with obj and m2m_data as arguments, yield the result as the generator return value.","yield base . DeserializedObject ( obj , m2m_data )"
1310,substitute instance for self.instance.,self . instance = instance
1311,"if last element of host equals character ']',",if host [ - 1 ] == ']' :
1312,"decorator stringfilter,",@ stringfilter
1313,define the method clean with 2 arguments self and value.,"def clean ( self , value ) :"
1314,define the function debug with an argument request.,def debug ( request ) :
1315,derive the class SubWidget from the object base class.,class SubWidget ( object ) :
1316,"match the rawdata from the position k, with attrfind pattern, assign the result to the m.","m = _html_parser . attrfind . match ( rawdata , k )"
1317,"if PY3 is true,",if PY3 :
1318,"remove the first element of value under the name key of self.blocks dictionary, return it.",return self . blocks [ name ] . pop ( )
1319,return instance.,return instance
1320,"try,",try :
1321,field_value is None.,field_value = None
1322,"created with 4 arguments: qs, initial as pk_value, required as boolean False and widget as widget. call the method add_fields from the base class of the class BaseModelFormSet, with 2 arguments: form and index.","super ( BaseModelFormSet , self ) . add_fields ( form , index )"
1323,return msg.,return msg
1324,"if ext is true,",if ext :
1325,"for every slots_var in slots,",for slots_var in slots :
1326,"define the function clean_ipv6_address with 3 arguments: ip_str, unpack_ipv4 set to boolean False and error_message,","def clean_ipv6_address ( ip_str , unpack_ipv4 = False , error_message = _ ( ""This is not a valid IPv6 address."" ) ) :"
1327,define the method __iter__ with an argument self.,def __iter__ ( self ) :
1328,"integer 0 and integer 0. try,",try :
1329,"if Resolver404, renamed to e, exception is caught,",except Resolver404 as e :
1330,define the function translation with an argument language.,def translation ( language ) :
1331,"call the method self.open, substitute the result for the new_conn_created.",new_conn_created = self . open ( )
1332,define the method initial_form_count with an argument self.,def initial_form_count ( self ) :
1333,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
1334,define the function find_template with 2: template_name and dirs set to None.,"def find_template ( name , dirs = None ) :"
1335,"call the method dot_re.sub with 2 arguments: char and src, return the result.","return dot_re . sub ( char , src )"
1336,"find the value of response under the key 'Cache-Control', use it as a delimiter to split string ss_delim_re,",cc = cc_delim_re . split ( response [ 'Cache-Control' ] )
1337,"call the method connection.introspection.get_relations with 2 arguments cursor, table_name and substitute the result for indexes.","indexes = connection . introspection . get_indexes ( cursor , table_name )"
1338,"call the translation.get_language function, substitute the result for the value under the 'LANGUAGE_CODE' key of the context_extras dictionary.",context_extras [ 'LANGUAGE_CODE' ] = translation . get_language ( )
1339,"get the value under the 'traceback' key of the options dictionary, substitute the result for traceback.",show_traceback = options . get ( 'traceback' )
1340,self._max_entries is integer 300.,self . _max_entries = 300
1341,"instantiate the TimestampSigner object with arguments key and salt set to salt, call its method sign with an argument base64, return it.","return TimestampSigner ( key , salt = salt ) . sign ( base64d )"
1342,"if TypeError exception is caught,",except TypeError :
1343,"""apps registry is ready. Check that you don't make non-lazy gettext calls at import time."". for every app_config in app_configs,",for app_config in app_configs :
1344,"if attrs is not None,",if attrs is not None :
1345,where '%s' is replaced with result of the method self.current_token.display. return retval.,return retval
1346,define the method message with argument self.,def message ( self ) :
1347,"join elements of the output into a string, separated by newlies, return the string.",return '\n' . join ( output )
1348,"a dictionary with 18 pairs of dictionary value and string keys for DARK_PALETTE, and a dictionary with 18 pairs of dictionary value and string keys for LIGHT_PALETTE. substitute DARK_PALETTE for DEFAULT_PALETTE.",DEFAULT_PALETTE = DARK_PALETTE
1349,"dest set to string 'use_ipv6', default set to boolean False and help set to string 'Tells Django to use an IPv6 address.'. call the method parser.add_argument with 5 arguments: string '--nothreading', action set to string 'store_false',","parser . add_argument ( '--nothreading' , action = 'store_false' , dest = 'use_threading' , default = True , help = 'Tells Django to NOT use threading.' )"
1350,"for every alternative in self.alternatives,",for alternative in self . alternatives :
1351,"validate_slug is a instance of a RegexValidator class, created with 3 arguments: slug_re, return value of the call to the function,","validate_slug = RegexValidator ( slug_re , _ ( ""Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens."" ) , 'invalid' )"
1352,define the method dst with 2 arguments self and dt.,"def dst ( self , dt ) :"
1353,"instantiate Variable class, with an argument constant, call the resolve method with an empty dictionary as an argument, substitute the result for var_obj.",var_obj = Variable ( constant ) . resolve ( { } )
1354,"convert value to uppercase, return the result.",return value . upper ( )
1355,"if TypeError or ValueError exceptions are caught,","except ( TypeError , ValueError ) :"
1356,define method value_encode with self class instance and val as arguments.,"def value_encode ( self , val ) :"
1357,"call the function get_language, substitute the result for lang.",lang = get_language ( )
1358,substitute second element of bits for tag.,tag = bits [ 1 ]
1359,"call the function F with an argument x, for every x in sequence of integers from 1 to l, not included,","T = [ F ( x ) for x in range ( 1 , l ) ]"
1360,"split ip_str into parts by ':', for every hextet in the result,",for hextet in ip_str . split ( ':' ) :
1361,return data.,return data
1362,"call the __init__ method with arguments file and name, from the base class of the UploadedFile class.","super ( UploadedFile , self ) . __init__ ( file , name )"
1363,substitute args for self.args.,self . args = args
1364,from django.db import models into default name space.,from django . db import models
1365,"if not,",else :
1366,excluded_apps is an empty set.,excluded_apps = set ( )
1367,day_field is a string '%s_day'.,day_field = '%s_day'
1368,"raise an InvalidTemplateLibrary exception with an argument string ""Unsupported arguments to Library.tag: (%r, %r)"",","raise InvalidTemplateLibrary ( ""Unsupported arguments to "" ""Library.tag: (%r, %r)"" , ( name , compile_function ) )"
1369,derive the class NonCapture from list base class.,class NonCapture ( list ) :
1370,"call the function user_function with 2 arguments: unpacked list args and unpacked dictionary kwds, substitute the result for result.","result = user_function ( * args , ** kwds )"
1371,"with the result renamed to fp, perform the following: write msgs to fp.",fp . write ( msgs )
1372,"if not,",else :
1373,from django.utils._os import safe_join into default name space.,from django . utils . _os import safe_join
1374,"raise an RawPostDataException exception with an argument string ""You cannot access body after reading from request's data stream"".","raise RawPostDataException ( ""You cannot access body after reading from request's data stream"" )"
1375,"keep_blank_values set to boolean True, encoding set to encoding. call the method appendlist with 2 arguments: key and value.","self . appendlist ( key , value )"
1376,call the method handler.addQuickElement with 2 arguments: string 'name' and value under the 'author_name' key of the item dictionary.,"handler . addQuickElement ( ""name"" , item [ 'author_name' ] )"
1377,"if middle ends with punctuation,",if middle . endswith ( punctuation ) :
1378,"return string 'StopUpload: Consume request data, then halt.'.","return 'StopUpload: Consume request data, then halt.'"
1379,substitute s without the first element for s.,s = s [ 1 : ]
1380,"if not,",else :
1381,"if not,",else :
1382,import module django.,import django
1383,"define convert method with self class instance, number, from_digits, to_digits and sign as arguments.","def convert ( self , number , from_digits , to_digits , sign ) :"
1384,"call the method self.iterlists, return list of results.",return list ( self . iterlists ( ) )
1385,"if not,",else :
1386,"if not,",else :
1387,"if rhs is an instance of SafeText,","if isinstance ( rhs , SafeText ) :"
1388,"append a tuple containing 2 elements: content and mimetype, to the self.alternatives list.","self . alternatives . append ( ( content , mimetype ) )"
1389,"with the result renamed to fp, perform the following: call the method fp.write with an argument msgs.",fp . write ( msgs )
1390,"raise CommandError exception with ""App '%s' does not have migrations (you cannot selectively sync unmigrated apps)"",","raise CommandError ( ""App '%s' does not have migrations (you cannot selectively sync unmigrated apps)"" % app_label )"
1391,from django.core.serializers.python import Deserializer as PythonDeserializer into default name space.,from django . core . serializers . python import Deserializer as PythonDeserializer
1392,"call the method self.has_previous, if it evaluate to false, call the self.has_next method, return the result.",return self . has_previous ( ) or self . has_next ( )
1393,"if value is an instance of str type,","if isinstance ( value , str ) :"
1394,"call the function datetime.date with 3 arguments: y, m and d all converted into a integers, substitute the result for date_value.","date_value = datetime . date ( int ( y ) , int ( m ) , int ( d ) )"
1395,"remove 'end' key from the kwargs dictionary, if it exists substitute it for end, if not end is None.","end = kwargs . pop ( ""end"" , None )"
1396,evaluate function has_bom with po_path as argument.,if has_bom ( po_path ) :
1397,"substitute exc for self.settings_exception,",self . settings_exception = exc
1398,self.namespaces is an empty list.,self . namespaces = [ ]
1399,substitute value under the name key for bf.,bf = self [ name ]
1400,"call the method parser.parse_args with argv, without the first 2 elements, substitute the result for options and args.","options , args = parser . parse_args ( argv [ 2 : ] )"
1401,do nothing.,pass
1402,"if not,",else :
1403,"return an instance of EscapeBytes, created with an argument s.",return EscapeBytes ( s )
1404,to_delete is an empty set.,to_delete = set ( )
1405,define the method __getitem__ with an argument self.,"def __getitem__ ( self , index ) :"
1406,"raise an TypeError exception with an argument string ""sep must be None or a string"".","raise TypeError ( ""sep must be None or a string"" )"
1407,substitute node.source for e.django_template_source.,e . django_template_source = node . source
1408,"boolean True for 'True', boolean False for '3', boolean False for 'False' and boolean False for boolean False, return it if the key exists, if not return None. derive the class SelectMultiple from the Select base class.",class SelectMultiple ( Select ) :
1409,call the method self.validate_key with argument key.,self . validate_key ( key )
1410,substitute silent for self.silent.,self . silent = silent
1411,"join source list elements from last till pos indexes into a string, substitute the result for piece.",piece = '' . join ( source [ last : pos ] )
1412,"if col_name is not equal to new_name and field_notes is true,",if col_name != new_name and field_notes :
1413,derive the class NullDevice.,class NullDevice :
1414,if first element of str_number equals a string '-'.,if str_number [ 0 ] == '-' :
1415,"third element of the result of the function sys.exc_info. define the method readline with 3 arguments: self, unpacked list args and unpacked list kwargs.","def readline ( self , * args , ** kwargs ) :"
1416,from django.core.management.sql import sql_create into default name space.,from django . core . management . sql import sql_create
1417,"if retval is true,",if retval :
1418,"if not,",else :
1419,import module sys.,import sys
1420,translation._catalog is an empty dictionary.,translation . _catalog = { }
1421,derive the class DictConfigurator from the BaseConfigurator base class.,class DictConfigurator ( BaseConfigurator ) :
1422,return boolean False.,return False
1423,skip this loop iteration.,continue
1424,define the method next_page_number with an argument self.,def next_page_number ( self ) :
1425,return default.,return default
1426,"get the value under the 'output' key of the options dictionary, substitute the result for output.",output = options . get ( 'output' )
1427,"__all__ is a list with 15 elements: strings 'utc', 'get_fixed_timezone', 'get_default_timezone', 'get_default_timezone_name',","__all__ = [ 'utc' , 'get_fixed_timezone' , 'get_default_timezone' , 'get_default_timezone_name' , 'get_current_timezone' , 'get_current_timezone_name' , 'activate' , 'deactivate' , 'override' , 'localtime' , 'now' , 'is_aware' , 'is_naive' , 'make_aware' , 'make_naive' , ]"
1428,"perform binary or for operands: fourth element of_attr_list and termios.ECHO, store the result in fourth element of attr_list.",attr_list [ 3 ] |= termios . ECHO
1429,"call the function empty_form with 3 arguments: auto_id as self.auto_id, prefix set to the return value of the self.add_prefix method,","form = self . form ( auto_id = self . auto_id , prefix = self . add_prefix ( '__prefix__' ) , empty_permitted = True , )"
1430,define the method __add__ with 2 arguments self and rhs.,"def __add__ ( self , rhs ) :"
1431,"call the __init__ method from the base class of the WSGIServer class, with 2 arguments: unpacked list args and unpacked dictionary kwargs.","super ( WSGIServer , self ) . __init__ ( * args , ** kwargs )"
1432,"try,",try :
1433,upload_handlers.setter decorator.,@ upload_handlers . setter
1434,"try,",try :
1435,import module time.,import time
1436,"if '.' is contained in last elements of hextets,",if '.' in hextets [ - 1 ] :
1437,"for every result and params in possibility,","for result , params in possibility :"
1438,"define the method simple_tag with 4 arguments: self, func and None, takes_context and None and name set to None.","def simple_tag ( self , func = None , takes_context = None , name = None ) :"
1439,"yield an instance of SubWidget class created with 5 arguments: self, name, value, attrs and choices.","yield SubWidget ( self , name , value , attrs , choices )"
1440,parts is an empty list.,parts = [ ]
1441,call the function exhaust with an argument field_stream.,exhaust ( field_stream )
1442,"message is an string ""%s\n\nRequest repr(): %s"" formated with the result of the metod self.format with an argument record,","message = ""%s\n\nRequest repr(): %s"" % ( self . format ( record ) , request_repr )"
1443,"substitute it for callback, if the attribute doesnt exists, callback is None. if not callback,",if not callback :
1444,"if msg is true,",if msg :
1445,"find the ending position of the regular expression match of the object match, substitute the result for k.",k = m . end ( )
1446,substitute app_name for self.app_name.,self . app_name = app_name
1447,and 'Comment' for TOKEN_COMMENT. FILTER_SEPARATOR is a string '|'.,FILTER_SEPARATOR = '|'
1448,substitute value under 'unique_id' key of item dictionary for unique_id.,unique_id = item [ 'unique_id' ]
1449,define the method open with arguments self and mode defaulting to None.,"def open ( self , mode = None ) :"
1450,substitute self.setting for context.autoescape.,context . autoescape = self . setting
1451,call the method self.validate_key with key as argument.,self . validate_key ( key )
1452,"add integer 1 to it, substitute the result for space. if space equals integer 0,",if space == 0 :
1453,iterator is iterator created out of stream_or_iterable.,iterator = iter ( stream_or_iterable )
1454,"if not,",else :
1455,"if not self.extra_context is an empty dictionary. remove kwargs dictionary entry under the 'isolated_context' key, if it exists substitute it for self.isolated_context,","self . isolated_context = kwargs . pop ( 'isolated_context' , False )"
1456,read 4 bytes from file f and store it in sample.,sample = f . read ( 4 )
1457,raise an ValueError exception with an argument string 'Unable to configure root logger: %s' formated with e.,raise ValueError ( 'Unable to configure root ' 'logger: %s' % e )
1458,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
1459,"if process_all is true,",if process_all :
1460,substitute the value under the entry key of the sys.path_importer_cache dictionary for finder.,finder = sys . path_importer_cache [ entry ]
1461,"call the self.get method with key and version set to version as arguments, substitute the result for value.","value = self . get ( key , version = version )"
1462,substitute minimal element of the resulting list for self._chunk_size. substitute META for self._meta.,self . _meta = META
1463,"call the method cursor.execute with string ""SELECT cache_key FROM %s WHERE cache_key = %%s and expires > %%s"" as argument,","cursor . execute ( ""SELECT cache_key FROM %s "" ""WHERE cache_key = %%s and expires > %%s"" % table , [ key , connections [ db ] . ops . value_to_db_datetime ( now ) ] )"
1464,"define the method handle_fk_field with argument self, obj and field.","def handle_fk_field ( self , obj , field ) :"
1465,return new_value.,return new_value
1466,"assign the result to cc. cc is a dictionary populated with items by calling function dictitem with el as argument, for every el in cc.",cc = dict ( dictitem ( el ) for el in cc )
1467,"define the function supports_color, without arguments.",def supports_color ( ) :
1468,"if not,",else :
1469,"try,",try :
1470,"define the method _html_output with 6 arguments: self, normal_row, error_row, row_ender, help_text_html and errors_on_separate_row.","def _html_output ( self , normal_row , error_row , row_ender , help_text_html , errors_on_separate_row ) :"
1471,"call the function _super with 2 arguments: class SimpleLazyObject and self, call the method __init__ on the result.","_super ( SimpleLazyObject , self ) . __init__ ( )"
1472,import module os.,import os
1473,import module collections.,import collections
1474,"replace all the occurrences of the '%' string for '%%', append result to the previous result, substitute it for candidate_pat.","candidate_pat = prefix_norm . replace ( '%' , '%%' ) + result"
1475,"field_desc is a string '%s = %s%s', where '%s' is replaced with: att_name, an empty string if '.' is contained in field_type,","field_desc = '%s = %s%s' % ( att_name , '' if '.' in field_type else 'models.' , field_type , )"
1476,"if not,",else :
1477,substitute timezone for self.timezone.,self . timezone = timezone
1478,return nothing.,return
1479,"call the function import_string with an argument dotted_path, substitute the result for attr.",attr = import_string ( dotted_path )
1480,"for every receiver, _ and _ in receivers,","for receiver , _ , _ in receivers :"
1481,remove 'BACKEND' key from params dictionary and put it into backend.,backend = params . pop ( 'BACKEND' )
1482,"if ValueError exception is caught,",except ValueError :
1483,"try,",try :
1484,"join return value of the function six.text_type called with an argument self.management_form and forms into a string,","return mark_safe ( '\n' . join ( [ six . text_type ( self . management_form ) , forms ] ) )"
1485,"join output into a string, separated by newline characters, return it.",return '\n' . join ( output )
1486,"if origin is true,",if origin :
1487,"call the method self.to_python with an argument value, strip the whitespaces from the both ends of the result and substitute it for value.",value = self . to_python ( value ) . strip ( )
1488,"call the function _generator, join the result into a string, return the result.",return '' . join ( _generator ( ) )
1489,"get the element with minimal value between the value under the TOTAL_FORM_COUNT key of self.management_form.cleaned_data dictionary,","return min ( self . management_form . cleaned_data [ TOTAL_FORM_COUNT ] , self . absolute_max )"
1490,derive the class BlockNode from the Node base class.,class BlockNode ( Node ) :
1491,from django.utils.encoding import force_text and force_str into default name space.,"from django . utils . encoding import force_text , force_str"
1492,"raise an ValueError with an argument string ""'%s.%s' has no ForeignKey to '%s.%s'."", where '%s' is replaced with,","raise ValueError ( ""'%s.%s' has no ForeignKey to '%s.%s'."" % ( model . _meta . app_label , model . _meta . object_name , parent_model . _meta . app_label , parent_model . _meta . object_name ) )"
1493,"for every node in self.nodelist_empty,",for node in self . nodelist_empty :
1494,assign path_info to the value under the 'PATH_INFO' key of the self.META dictionary.,self . META [ 'PATH_INFO' ] = path_info
1495,"call the x.split method with arguments: character '=' and integer 1, store the result in k and v, respectively.","k , v = x . split ( '=' , 1 )"
1496,from django.utils import six into default name space.,from django . utils import six
1497,"return boolean True, otherwise return boolean False. define private method __ne__ with self class instance and other as arguments.","def __ne__ ( self , other ) :"
1498,"raise an SyntaxError with an argument string ""Translation blocks must not include other block tags: %s (%sline %d)"",","raise SyntaxError ( ""Translation blocks must not include other block tags: %s (%sline %d)"" % ( t . contents , filemsg , t . lineno ) )"
1499,"otherwise if length of bits equals integer 6,",elif len ( bits ) == 6 :
1500,"convert the first element of the first row of targets to string, append it to the string "" Unapply all migrations: "",","self . stdout . write ( self . style . MIGRATE_LABEL ( "" Unapply all migrations: "" ) + ""%s"" % ( targets [ 0 ] [ 0 ] , ) )"
1501,"if KeyError exception is caught,",except KeyError :
1502,define the method start_object with arguments self and obj.,"def start_object ( self , obj ) :"
1503,call the method host_validation_re.match with an argument host.,if not host_validation_re . match ( host ) :
1504,"delete all the whitespaces from ext, split it by ',' character, extend ext_list with the result.","ext_list . extend ( ext . replace ( ' ' , '' ) . split ( ',' ) )"
1505,convert initial into boolean and substitute it for initial.,initial = bool ( initial )
1506,"call the method path_rest.replace with arguments base_name and name, substitute the result for relative_dir.","relative_dir = path_rest . replace ( base_name , name )"
1507,"if decimal_separator is contained in value,",if decimal_separator in value :
1508,do nothing.,pass
1509,"call the function allow_lazy with 2 arguments: javascript_quote and six.text_type, substitute the result for javascript_quote.","javascript_quote = allow_lazy ( javascript_quote , six . text_type )"
1510,add elements from new_modules set to _cached_modules set.,_cached_modules = _cached_modules . union ( new_modules )
1511,"call the function force_text with 2 arguments: value under the is_dst key of the time.tzname and DEFAULT_LOCALE_ENCODING,","return force_text ( time . tzname [ is_dst ] , DEFAULT_LOCALE_ENCODING )"
1512,"if fake is true,",if fake :
1513,"call the method self.paginator.validate_number with self.number incremented by 1 as argument, return the result.",return self . paginator . validate_number ( self . number + 1 )
1514,define the method fastcgi_help with an argument message set to None.,def fastcgi_help ( message = None ) :
1515,"call the function binascii.hexlify with an argument x, convert the result to base 16 integer, return the result.","return int ( binascii . hexlify ( x ) , 16 )"
1516,code set to string 'max_digits' and params set to a dictionary with an entry: self.max_digits for 'max'. if self.decimal_places is not None and decimals is grater than self.decimal_places:,if self . decimal_places is not None and decimals > self . decimal_places :
1517,"dest as a string 'exclude', action as a string 'append' and help as a string 'Locales to exclude. Default is none. Can be used multiple times.'. call the method parser.add_argument with 5 arguments: string '--domain', string '-d', default as a string 'django',","parser . add_argument ( '--domain' , '-d' , default = 'django' , dest = 'domain' , help = 'The domain of the message files (default: ""django"").' )"
1518,"call the method self.parent_widget.render with unpacked list args as an argument, return the result.",return self . parent_widget . render ( * args )
1519,substitute status for self.status_code.,self . status_code = status
1520,"raise an AttributeError exception with an argument string: ""'%s' object has no attribute 'ordered_forms'"",","raise AttributeError ( ""'%s' object has no attribute 'ordered_forms'"" % self . __class__ . __name__ )"
1521,define the method update_error_dict with arguments self and error_dict.,"def update_error_dict ( self , error_dict ) :"
1522,substitute i-th element of tokens for token.,token = tokens [ i ]
1523,"get 'editable' attribute from object f, if it doesnt exists or its true,","if not getattr ( f , 'editable' , False ) :"
1524,substitute doc for func.__doc__.,func . __doc__ = doc
1525,define the function localize_input with 2 arguments value and default set to None.,"def localize_input ( value , default = None ) :"
1526,"if kwds is true or typed is true, call the function make_key with 3 arguments: args, kwds and typed, substitute the result for key,","key = make_key ( args , kwds , typed ) if kwds or typed else args"
1527,append site to sites.,sites . append ( site )
1528,return boolean True.,return True
1529,"get converter attribute from self object, substitute it for converter.","converter = getattr ( self , converter )"
1530,"call the function import_module with an argument taglib_module, substitute the result for mod.",mod = import_module ( taglib_module )
1531,"if TypeError, renamed to te, exception is caught,",except TypeError as te :
1532,"call the json.dump function with 4 arguments: return value of the method self.get_dump_object called with an argument obj, self.stream, cls set to DjangoJSONEncoder and unpacked dictionary self.json_kwargs.","json . dump ( self . get_dump_object ( obj ) , self . stream , cls = DjangoJSONEncoder , ** self . json_kwargs )"
1533,raise an exception.,raise
1534,"get the value under the 'primary_keys' key of the options dictionary, substitute the result for pks.",pks = options . get ( 'primary_keys' )
1535,increment chunk by over_chunk.,chunk += over_chunk
1536,define the function strip_spaces_between_tags with an argument value.,def strip_spaces_between_tags ( value ) :
1537,define the function do_for with 2 arguments: parser and token.,"def do_for ( parser , token ) :"
1538,define the method D with an argument self.,def D ( self ) :
1539,"if not,",else :
1540,old_handler is None.,old_handler = None
1541,is_usable is boolean True.,is_usable = True
1542,"substitute the result for final_attrs. call the method widget.render with 3 arguments: string created by concatenation from: name, string '_' and i, widget_value,","output . append ( widget . render ( name + '_%s' % i , widget_value , final_attrs ) )"
1543,"otherwise if second element of args equals a string '304',",elif args [ 1 ] == '304' :
1544,define the method items with an argument self.,def items ( self ) :
1545,used_column_names is an empty list.,used_column_names = [ ]
1546,define the method resolve with 2 arguments: self and s.,"def resolve ( self , s ) :"
1547,"call the function blankout with 2 arguments: t.contents and 'X', write the result to out.","out . write ( blankout ( t . contents , 'X' ) )"
1548,"call the method match.group with an argument integer 0, return the result.",return match . group ( 0 )
1549,"for bit in self.lookups,",for bit in self . lookups :
1550,write a '[' to the self.stream file stream.,"self . stream . write ( ""["" )"
1551,define the method build_potfiles with an argument self.,def build_potfiles ( self ) :
1552,define the function b with an argument s.,def b ( s ) :
1553,"if value under the 'author_link' key of the self.feed dictionary is not None,",if self . feed [ 'author_link' ] is not None :
1554,"if value under the 'unique_id' key of the item dictionary is not None,",if item [ 'unique_id' ] is not None :
1555,"for every o in opts,",for o in opts :
1556,"call the smart_text function with 2 arguments: return value of the obj._get_pk_val function and string_only set to boolean True,","data [ ""pk"" ] = smart_text ( obj . _get_pk_val ( ) , strings_only = True )"
1557,_anonymous_ is a list containing one string: '_offset_union'.,_anonymous_ = [ '_offset_union' ]
1558,call the self.stream.close function.,self . stream . close ( )
1559,"if ValueError exception is caught,",except ValueError :
1560,"raise an TemplateSyntaxError exception with an argument string ""No named cycles in template. '%s' is not defined"",","raise TemplateSyntaxError ( ""No named cycles in template. '%s' is not defined"" % name )"
1561,"and input_format, substitute the result for v. substitute v.year, v.month and v.day for year_val, month_val and day_val, respectively.","year_val , month_val , day_val = v . year , v . month , v . day"
1562,year_val and month_val and day_val are set to None.,year_val = month_val = day_val = None
1563,increment visible_issue_count for length of issues.,visible_issue_count += len ( issues )
1564,define the method __repr__ with an argument self.,def __repr__ ( self ) :
1565,inplural is boolean False.,inplural = False
1566,"call the function inner.copy, substitute the result for dig1, call the function outer.copy, substitute the result for dig2.","dig1 , dig2 = inner . copy ( ) , outer . copy ( )"
1567,"define the function _make_key with 9 arguments: args, kwds, typed, kwd_mark as a tuple with an element result of the function object,","def _make_key ( args , kwds , typed , kwd_mark = ( object ( ) , ) , fasttypes = { int , str , frozenset , type ( None ) } , sorted = sorted , tuple = tuple , type = type , len = len ) :"
1568,"call the method self.style.MIGRATE_HEADING with an argument string ""Optimizing..."", write it to self.stdout.","self . stdout . write ( self . style . MIGRATE_HEADING ( ""Optimizing..."" ) )"
1569,end_index is None.,end_index = None
1570,"return an instance of a NodeList class, created with arguments node, for every node in nodelist,","return NodeList ( node for _ , nodelist in self . conditions_nodelists for node in nodelist )"
1571,"define the method delete with self class instance, key and version set to None as arguments.","def delete ( self , key , version = None ) :"
1572,"if not,",else :
1573,import module sta.,import stat
1574,message is an instance of the ValidationError class created with an argument message.,message = ValidationError ( message )
1575,"if not,",else :
1576,"if not,",else :
1577,define private method __eq__ with self class instance and other as arguments.,"def __eq__ ( self , other ) :"
1578,"if lengths of initial and data are not the same,",if len ( initial ) != len ( data ) :
1579,self._post_parse_error is boolean False.,self . _post_parse_error = False
1580,raise an ValidationError with 2 arguments: value under the 'empty' key of the self.error_messages dictionary and code set to 'empty'.,"raise ValidationError ( self . error_messages [ 'empty' ] , code = 'empty' )"
1581,"call the function force_text with an argument value, substitute the result for value.",value = force_text ( value )
1582,"if not,",else :
1583,"if cleaned_line is false,",if not cleaned_line :
1584,define the method validate_domain_part with arguments self and domain_part.,"def validate_domain_part ( self , domain_part ) :"
1585,raise an StopIteration.,raise StopIteration ( )
1586,"try,",try :
1587,"if ch is not equal to string '<' or string '=',","if ch not in ( '<' , '=' ) :"
1588,"call the method self._isdst with an argument dt, use it as an key to get the value from the _time.tzname dictionary, return it.",return _time . tzname [ self . _isdst ( dt ) ]
1589,"property decorator, to be called by property built-in function.",@ property
1590,return reversed list output.,return output [ : : - 1 ]
1591,increment self.waiting_readers by 1.,self . waiting_readers += 1
1592,define the method __lt__ with 2 arguments: self and other.,"def __lt__ ( self , other ) :"
1593,"get the next element of iterable self, substitute it for chunk.",chunk = next ( self )
1594,"attrs is a list with 2 elements: strings ""__doc__"" and ""__name__"".","attrs = [ ""__doc__"" , ""__name__"" ]"
1595,reason_phrase is None.,reason_phrase = None
1596,convert provided into a list and substitute it for provided.,provided = list ( provided )
1597,"if Exception, renamed to e, exception is caught,",except Exception as e :
1598,"call the function mark_safe with an argument message, return the result.",return mark_safe ( message )
1599,"call the method handler.addQuickElement with 3 arguments: string 'link', an empty string and a dictionary with 4 entries:","handler . addQuickElement ( ""link"" , '' , { ""rel"" : ""enclosure"" , ""href"" : item [ 'enclosure' ] . url , ""length"" : item [ 'enclosure' ] . length , ""type"" : item [ 'enclosure' ] . mime_type } )"
1600,"multiply offset.days, integer 24 and integer 60, sum the result with floored result of division of offset.seconds,",timezone = ( offset . days * 24 * 60 ) + ( offset . seconds // 60 )
1601,"otherwise, if first and the last character of attrvalue are '\' charter or first and last character of attrvalue are '""' character,","elif ( attrvalue [ : 1 ] == '\'' == attrvalue [ - 1 : ] or attrvalue [ : 1 ] == '""' == attrvalue [ - 1 : ] ) :"
1602,substitute RemovedInDjango19Warning for RemovedInNextVersionWarning.,RemovedInNextVersionWarning = RemovedInDjango19Warning
1603,"define the method __init__ with 4 arguments: self, dirpath, file_name and locale_dir.","def __init__ ( self , dirpath , file_name , locale_dir ) :"
1604,_default is None.,_default = None
1605,"if not,",else :
1606,"if not,",else :
1607,"define the function timesince with d, now defaulting to None, reversed defaulting to False as arguments.","def timesince ( d , now = None , reversed = False ) :"
1608,"call the function force_text with an argument path, substitute the result for path.",path = force_text ( path )
1609,"call the method msgs.decode with an argument string 'utf-8', substitute the result for msgs.",msgs = msgs . decode ( 'utf-8' )
1610,"if handler has an attribute 'file',","if hasattr ( handler , 'file' ) :"
1611,"with '%s' substituted for migration_name and app_label, respectively, as arguments. if KeyError exception is caught,",except KeyError :
1612,"if confirm equals a string 'yes',",if confirm == 'yes' :
1613,"if not,",else :
1614,"string '--keyword=gettext_noop', string '--keyword=gettext_lazy', string '--keyword=ngettext_lazy:1,2', string '--keyword=pgettext:1c,2', string '--keyword=npgettext:1c,2,3' and string '--output=-', substitute it for args. append work_file to args.",args . append ( work_file )
1615,substitute SafeText for SafeString.,SafeString = SafeText
1616,derive the class LazyObject from the object base class.,class LazyObject ( object ) :
1617,datetime.date and datetime.time. define the function is_protected_type with obj as the only argument.,def is_protected_type ( obj ) :
1618,"in string '%s_%d', replace '%s' with new_name and '%d' with num, substitute the result for new_name.","new_name = '%s_%d' % ( new_name , num )"
1619,"func is an instance of TemplateLoader class, created with unpacked list args.",func = TemplateLoader ( * args )
1620,call the method stream.unget with last rollback elements of chunk as an argument.,stream . unget ( chunk [ - rollback : ] )
1621,"kwargs is a dictionary created with tuples with 2 elements: k and value under k key of config dictionary,","kwargs = dict ( ( k , config [ k ] ) for k in config if valid_ident ( k ) )"
1622,"if self.__stattag_text contains newline character,","if ""\n"" in self . __starttag_text :"
1623,"where '%s' is replaced with self.prog_name, an empty string and string ""Available subcommands:"". call the method collections.defaultdict with a argument: lambda function without arguments that returns an empty list,",commands_dict = collections . defaultdict ( lambda : [ ] )
1624,"for every i and tuple containing 2 elements: seconds and name, in enumerated chunks,","for i , ( seconds , name ) in enumerate ( chunks ) :"
1625,"call the method self.style.NOTICE with string "" Your models have changes that are not yet reflected in a migration, and so won't be applied."" as an argument, use the result as an argument for the call to the self.stdout.write method.","self . stdout . write ( self . style . NOTICE ( "" Your models have changes that are not yet reflected in a migration, and so won't be applied."" ) )"
1626,substitute first element of app_list for ns.,ns = app_list [ 0 ]
1627,property decorator.,@ property
1628,"raise an TemplateSyntaxError exception with an argument string ""'%s' tag with name '%s' appears more than once"",","raise TemplateSyntaxError ( ""'%s' tag with name '%s' appears more than once"" % ( bits [ 0 ] , block_name ) )"
1629,"if NotImplementedError exception is caught,",except NotImplementedError :
1630,from django.utils.timesince import timesince and timeuntil into default name space.,"from django . utils . timesince import timesince , timeuntil"
1631,"if reason is not None,",if reason is not None :
1632,do nothing.,pass
1633,substitute self.current_token for t.,t = self . current_token
1634,"python_2_unicode_compatible decorator,",@ python_2_unicode_compatible
1635,do nothing.,pass
1636,"call the self._get_pages method with 3 arguments: self.object_list from the bottom to the top index, number and self, return the result.","return self . _get_page ( self . object_list [ bottom : top ] , number , self )"
1637,call the method sub_match_dict.update with an argument sub_match.kwargs.,sub_match_dict . update ( sub_match . kwargs )
1638,"if las equals integer 3,",if last == 3 :
1639,call the method self.setlist with 2 arguments: key and default_list.,"self . setlist ( key , default_list )"
1640,return nothing.,return
1641,"raise an base.DeserializationError exception with an argument string ""<%s> node is missing the required '%s' attribute"",","raise base . DeserializationError ( ""<%s> node is missing the required '%s' attribute"" % ( node . nodeName , attr ) )"
1642,derive the AppCommand class from the BaseCommand base class.,class AppCommand ( BaseCommand ) :
1643,"numbers is a list containing return value of the MigrationAutodetector.parse_number method called with an argument migration.name,",numbers = [ MigrationAutodetector . parse_number ( migration . name ) for migration in merge_migrations ]
1644,import module django.core.checks.compatibility.django_1_6_0.,import django . core . checks . compatibility . django_1_6_0
1645,substitute col_name for value under the 'db_column' key of the field_params dictionary.,field_params [ 'db_column' ] = col_name
1646,"key is a list with elements of list key from length of self.prefixes index to the end,",key = key [ len ( self . prefix ) : ]
1647,"_func_closure is a string ""__closure__"".","_func_closure = ""__closure__"""
1648,"call the method text.find with 2 arguments: substr and i, substitute the result for j.","j = text . find ( substr , i )"
1649,"if new_value equals value,",if new_value == value :
1650,call the method handler.addQuickElement with 2 arguments: string 'comments' and value under the 'comments' key of the item dictionary.,"handler . addQuickElement ( ""comments"" , item [ 'comments' ] )"
1651,"called with 2 arguments: s and string_only as boolean True. if categories is true,",if categories :
1652,define the method __str__ with argument self.,def __str__ ( self ) :
1653,"if self.asvar is None,",if self . asvar is None :
1654,"if url starts with '///',",if url . startswith ( '///' ) :
1655,where '%s' is replaced with first element of bits. substitute second element for bits for block_name.,block_name = bits [ 1 ]
1656,created_models is a set.,created_models = set ( )
1657,"if KeyboardInterrupt exception is caught,",except KeyboardInterrupt :
1658,"label set to return value of the function _ called with an string 'Order' and required as boolean False. if self.can_delete is true,",if self . can_delete :
1659,"call the baseconv.base62.decode method with an argument timestamp, substitute the result for timestamp.",timestamp = baseconv . base62 . decode ( timestamp )
1660,assign StringIO.StringIO to StringIO and BytesIO.,StringIO = BytesIO = StringIO . StringIO
1661,raise an NotImplementedError exception with an argument sting 'subclasses of LazyObject must provide a _setup() method'.,raise NotImplementedError ( 'subclasses of LazyObject must provide a _setup() method' )
1662,substitute settings.DEFAULT_CHARSET for self._encoding.,self . _encoding = settings . DEFAULT_CHARSET
1663,"call the function include_is_allowed with an argument filepath, if it evaluates to false,",if not include_is_allowed ( filepath ) :
1664,substitute BOOL for UnlockFileEx.restype.,UnlockFileEx . restype = BOOL
1665,return s.,return s
1666,doublecolon_len is an integer 0.,doublecolon_len = 0
1667,"call the method handler.handle_raw_input with 5 arguments: self._input_data, self._meta, self._content_length, self._boundary,","result = handler . handle_raw_input ( self . _input_data , self . _meta , self . _content_length , self . _boundary , encoding )"
1668,if tags is not None.,if tags is not None :
1669,"content.setter decorator,",@ content . setter
1670,"call the method self.resolve with an argument c, substitute the result for c.",c = self . resolve ( c )
1671,trym,try :
1672,"of the options dictionary and value under the 'port' key of the options dictionary converted into an integer. if value under the 'socket' key of the options dictionary is true and values under the 'host' and 'port' keys of the options dictionary are false,","elif options [ ""socket"" ] and not options [ ""host"" ] and not options [ ""port"" ] :"
1673,append string 'django.conf.locale.%s' to format_locations.,format_locations . append ( 'django.conf.locale.%s' )
1674,"raise an ValidationError with 2 arguments: self.error_messages dictionary value under the 'invalid_choice' key,","raise ValidationError ( self . error_messages [ 'invalid_choice' ] , code = 'invalid_choice' )"
1675,"define the method handle_fk_field with self, obj and field arguments.","def handle_fk_field ( self , obj , field ) :"
1676,"if self has an attribute '_body',","if hasattr ( self , '_body' ) :"
1677,"raise an InvalidTemplateLibrary exception with an argument string ""Template library %s not found, tried %s"",","raise InvalidTemplateLibrary ( ""Template library %s not found, "" ""tried %s"" % ( library_name , ',' . join ( tried_modules ) ) )"
1678,delete attr.,del attr
1679,"subtract length of hextet from 4, create a string with previous result number of character '0', append hextet to it,",ret_ip . append ( ( '0' * ( 4 - len ( hextet ) ) + hextet ) . lower ( ) )
1680,"raise an InputStreamExhausted exception,",raise InputStreamExhausted ( )
1681,"return an instance of IfNode class, created with an argument conditions_nodelists.",return IfNode ( conditions_nodelists )
1682,"substitute the result for value under the 'microsecond' key of the kw dictionary. update a dictionary with an entry v converted to an integer for k, for every k and v in result of the function six.iteritems,","kw = dict ( ( k , int ( v ) ) for k , v in six . iteritems ( kw ) if v is not None )"
1683,"if not csrf_token is None. if csrf_token is true,",if csrf_token :
1684,delete the attribute name from the cache dictionary under the DEFAULT_CACHE_ALIAS key.,"return delattr ( caches [ DEFAULT_CACHE_ALIAS ] , name )"
1685,"use it as an argument for the call to the glob.iglob, for every candidate in result, call the method os.path.basename with an argument candidate, is result is contained in targets,",if os . path . basename ( candidate ) in targets :
1686,"call the self.style.MIGRATE_HEADING with string ""Synchronizing apps without migrations:"" as an argument,","self . stdout . write ( self . style . MIGRATE_HEADING ( ""Synchronizing apps without migrations:"" ) )"
1687,call the initialization method _html_parser.HTMLParser.__init__(self) for the base class.,_html_parser . HTMLParser . __init__ ( self )
1688,"call the get_major_version wit version as argument, store the result in major.",major = get_major_version ( version )
1689,substitute the result for value under the self.target_var key of the context dictionary. return an empty string.,return ''
1690,import module logging.,import logging
1691,"call the method unicodedata.combining with an argument char, if it evaluates to false,",if not unicodedata . combining ( char ) :
1692,"if ""'stream'"" is not contained in te converted into a string,","if ""'stream'"" not in str ( te ) :"
1693,return endpos.,return endpos
1694,"get the value under the 'name' key of the disposition dictionary, strip it of whitespaces, substitute the result for field_name.",field_name = disposition [ 'name' ] . strip ( )
1695,"call the method parser.add_argument with 5 arguments: string '--noinput', action set to string 'store_false',","parser . add_argument ( '--noinput' , action = 'store_false' , dest = 'interactive' , default = True , help = 'Tells Django to NOT prompt the user for input of any kind.' )"
1696,substitute to_field_name for self.to_field_name,self . to_field_name = to_field_name
1697,remove last element for quant.,quant = quant [ : - 1 ]
1698,escaper is an identity lambda function.,escaper = lambda x : x
1699,"if length of compressed is lesser than length of data decremented by 1,",if len ( compressed ) < ( len ( data ) - 1 ) :
1700,for every message in email_messages:,for message in email_messages :
1701,"call the function find_template_loader with an argument loader_name, substitute the result for loader.",loader = find_template_loader ( loader_name )
1702,call the method self.remove_potfiles.,self . remove_potfiles ( )
1703,derive class CachedDnsName from the object base class.,class CachedDnsName ( object ) :
1704,"call the function factory with an argument unpacked dictionary kwargs, substitute the result for result.",result = factory ( ** kwargs )
1705,"if not,",else :
1706,"append to list, a tuple with 2 elements: f and value under the f key of field_dict dictionary, use the resulting list as an argument, for the creation of the instance of OrderedDict class, substitute it for field_dict. return field_dict.",return field_dict
1707,"if self.LibraryValueNotFoundException exception is caught,",except self . LibraryValueNotFoundException :
1708,"choices is a tuple with 3 elements: tuple with 2 elements: string '1' and return value of the function ugettext_lazy,","choices = ( ( '1' , ugettext_lazy ( 'Unknown' ) ) , ( '2' , ugettext_lazy ( 'Yes' ) ) , ( '3' , ugettext_lazy ( 'No' ) ) )"
1709,"return callback split into two lists at the dot index, without the element at the dot index.","return callback [ : dot ] , callback [ dot + 1 : ]"
1710,substitute the length of defaults for dlen.,dlen = len ( defaults or [ ] )
1711,"define the method handle_raw_input with arguments: self, input_data, META, content_length, boundary and encoding set to None.","def handle_raw_input ( self , input_data , META , content_length , boundary , encoding = None ) :"
1712,"append the result to the '\n' string, write it to self.stdout. finally perform,",finally :
1713,reverse elements order of values.,values = reversed ( values )
1714,"property decorator,",@ property
1715,"or first element of var equals '_', raise an TemplateSyntaxError exception with an argument string ""Variables and attributes may not begin with underscores: '%s'"",","raise TemplateSyntaxError ( ""Variables and attributes may "" ""not begin with underscores: '%s'"" % var )"
1716,"replace '%s' in string "" Optimized from %s operations to %s operations."" with lengths of operations and ew_operations, respectively,","self . stdout . write ( "" Optimized from %s operations to %s operations."" % ( len ( operations ) , len ( new_operations ) ) )"
1717,define the method L with an argument self.,def L ( self ) :
1718,"if imoportError exception is caught,",except ImportError :
1719,"otherwise if self.verbosity is greater than integer 0,",elif self . verbosity > 0 :
1720,from email.header import Header into default name space.,from email . header import Header
1721,"get the value under the 'CONTENT_TYPE' key of the self.META dictionary, if it starts with a string 'multipart/form-data',","if self . META . get ( 'CONTENT_TYPE' , '' ) . startswith ( 'multipart/form-data' ) :"
1722,"call the function get_resolver with an argument urlconf, on the result call the method resolve with an argument path, return it.",return get_resolver ( urlconf ) . resolve ( path )
1723,"call the function func with 2 arguments: unpacked list self.__args and unpacked dictionary self.__kw, return the result.","return func ( * self . __args , ** self . __kw )"
1724,"call the function get_quantifier with 2 arguments: ch and pattern_iter, substitute the result for count and ch, respectively.","count , ch = get_quantifier ( ch , pattern_iter )"
1725,derive the class Operator from the base class TokenBase.,class Operator ( TokenBase ) :
1726,"if e.args list first element starts with string ""Error -5"",","if e . args [ 0 ] . startswith ( ""Error -5"" ) :"
1727,"if iri is not initialized,",if iri is None :
1728,substitute HTMLParser from the module _html_parser for HTMLParser.,HTMLParser = _html_parser . HTMLParser
1729,"raise an AttributeError exception with an argument string ""This method is available only on the view class."".","raise AttributeError ( ""This method is available only on the view class."" )"
1730,"define the method decr_version with 4 arguments, self, key, delta defaulting to integer 1 and version defaulting to None.","def decr_version ( self , key , delta = 1 , version = None ) :"
1731,"if first element of new_name is digit,",if new_name [ 0 ] . isdigit ( ) :
1732,"if OSError, renamed to e, is caught,",except OSError as e :
1733,call the function iter with an argument patterns.,iter ( patterns )
1734,"if logging_settings is true,",if logging_settings :
1735,"if not,",else :
1736,skip this loop iteration.,continue
1737,final_output is an empty list.,final_output = [ ]
1738,"try,",try :
1739,substitute sixth element of row for value under the 'decimal_places' key of the field_params.,field_params [ 'decimal_places' ] = row [ 5 ]
1740,"get 'model' attribute from the options object, if it exists substitute it for self.model, if not self.model is None.","self . model = getattr ( options , 'model' , None )"
1741,"convert x into a string and append it to a list, substitute the resulting list for out. join elements of out into a string, separated with whitespaces, append ')' to it, append the result to '(', return it.","return ""("" + "" "" . join ( out ) + "")"""
1742,"use_l10n set to None and use_tz set to None. call the method Context.__init__ with 5 arguments: self, dict_, current_app as current_app, use_l10n as use_l10n, use_tz as use_tz.","Context . __init__ ( self , dict_ , current_app = current_app , use_l10n = use_l10n , use_tz = use_tz )"
1743,call the method self.add_item_elements with 2 arguments: handler and item.,"self . add_item_elements ( handler , item )"
1744,"take elements of token_string from second to second last element and strip the whitespaces surrounding the result,",block_content = token_string [ 2 : - 2 ] . strip ( )
1745,return string 'th'.,return 'th'
1746,raise an NotImplementedError exception with an argument string 'subclasses of LabelCommand must provide a handle_label() method'.,raise NotImplementedError ( 'subclasses of LabelCommand must provide a handle_label() method' )
1747,"define the method write with 3 arguments: self, outfile and encoding.","def write ( self , outfile , encoding ) :"
1748,"call the function warnings.warn with 3 arguments: msg, RemovedInDjango19Warning and stacklevel as integer 2.","warnings . warn ( msg , RemovedInDjango19Warning , stacklevel = 2 )"
1749,"evaluate the method self._has_expired with argument key, if it as False,",if not self . _has_expired ( key ) :
1750,"if stream is true,",if stream :
1751,from django.utils.timezone import template_localtime into default name space.,from django . utils . timezone import template_localtime
1752,"define the close method with 2 arguments, self and dictionary of argument pairs kwargs.","def close ( self , ** kwargs ) :"
1753,use global variable _default.,global _default
1754,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
1755,call the method deactivate.,deactivate ( )
1756,convert result to lowercase and return it.,return result . lower ( )
1757,derive the class IntegerField from the base class Field class.,class IntegerField ( Field ) :
1758,"call the method parser.next_token, substitute the result for endblock.",endblock = parser . next_token ( )
1759,substitute cleaned_data for self.cleaned_data.,self . cleaned_data = cleaned_data
1760,must_be_first is boolean False.,must_be_first = False
1761,update widget.attrs dictionary with extra_attrs.,widget . attrs . update ( extra_attrs )
1762,"""Use django.forms.utils instead."", RemovedInDjango19Warning and stacklevel set to an integer 2. from django.forms.utils import everything into default name space.",from django . forms . utils import *
1763,"call the method calendar.monthrange with 2 arguments: self.data.year and self.data.month,","return '%02d' % calendar . monthrange ( self . data . year , self . data . month ) [ 1 ]"
1764,substitute obj.tzinfo for self.timezone.,self . timezone = obj . tzinfo
1765,"try,",try :
1766,latest_date is None.,latest_date = None
1767,"boolean True for 'ask_merge'. for every app_label and migration_names in result of the method conflicts.items,","for app_label , migration_names in conflicts . items ( ) :"
1768,"formfield_callback as formfield_callback, widgets as widgets, localized_fields as localized_fields, labels as labels, help_texts as help_texts and error_messages as error_messages, substitute the result for form. call the function formset_factory with 10 arguments: form, formset, extra as extra, min_num as min_num, max_num as max_num,","FormSet = formset_factory ( form , formset , extra = extra , min_num = min_num , max_num = max_num , can_order = can_order , can_delete = can_delete , validate_min = validate_min , validate_max = validate_max )"
1769,call the method self.validate_unique.,self . validate_unique ( )
1770,"call the method __init__ from the base class of the class SplitHiddenDateTimeWidget, with 3 arguments: attrs, date_format, and time_format.","super ( SplitHiddenDateTimeWidget , self ) . __init__ ( attrs , date_format , time_format )"
1771,"if self.m2m.data and save_m2m are true,",if self . m2m_data and save_m2m :
1772,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
1773,"define the method __init__ with 4 arguments: self, parser, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , parser , * args , ** kwargs ) :"
1774,return self._container converted into a iterable.,return iter ( self . _container )
1775,"call the method token.split_contents, substitute the result for bits.",bits = token . split_contents ( )
1776,"call the method self.fields.items, for every name and field in result,","for name , field in self . fields . items ( ) :"
1777,delete attr.,del attr
1778,"call the method self.stdout.write with an argument string ""No fixture '%s' in %s."", where '%s' is replaced with fixture_name,","self . stdout . write ( ""No fixture '%s' in %s."" % ( fixture_name , humanize ( fixture_dir ) ) )"
1779,"where '%s' is replaced with node.nodeName and attr. try,",try :
1780,"call the method validators.MinValueValidator with min_value converted into an integer, append the result to list self.validators.",self . validators . append ( validators . MinValueValidator ( min_value ) )
1781,"substitute the result for i-th element of lines. if not,",else :
1782,"put a tuple with 2 elements: k and value under k key of self dictionary into a list, for every k in self.keyOrder,","return [ ( k , self [ k ] ) for k in self . keyOrder ]"
1783,substitute complain for append.,append = complain
1784,"try,",try :
1785,"call the method self.renderer with 4 arguments: name, value, final_attrs and choices, return the result.","return self . renderer ( name , value , final_attrs , choices )"
1786,define the method __repr__ with an argument self.,def __repr__ ( self ) :
1787,define the method root_attributes with an argument self.,def root_attributes ( self ) :
1788,"where '%s' is replaced by lookup_view. try,",try :
1789,define the function server_bind with an argument self.,def server_bind ( self ) :
1790,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
1791,break from the smallest enclosing loop.,break
1792,"if TemplateDoesNotExist exception is caught,",except TemplateDoesNotExist :
1793,"get the value under the 'localize' key of the kwargs dictionary, if it is true and self.widget equals to NumberInput,",if kwargs . get ( 'localize' ) and self . widget == NumberInput :
1794,"if self.connection is true,",if self . connection :
1795,"if kwargs is true,",if kwargs :
1796,define the function get_text_list with 2 arguments: list_ and last_word set to result of the function ugettext_lazy called with an argument string 'or'.,"def get_text_list ( list_ , last_word = ugettext_lazy ( 'or' ) ) :"
1797,"from django.core.servers.fastcgi import FASTCGI_OPTIONS into default namespace,",from django . core . servers . fastcgi import FASTCGI_OPTIONS
1798,"if self.verbosity is greater or equal than integer 1,",if self . verbosity >= 1 :
1799,"with the name of the module callback is in and the view_name, respectively, use it as the argument for the ValueError exception raise. if response has an attribute named 'render' and response.render is a callable function,","if hasattr ( response , 'render' ) and callable ( response . render ) :"
1800,"convert value, self.sep and return value of a method self.signature called with an argument value, concatenate them together, return the result.","return str ( '%s%s%s' ) % ( value , self . sep , self . signature ( value ) )"
1801,"with self.mutex perform,",with self . mutex :
1802,decorator function wraps with an argument fset.,@ wraps ( fset )
1803,"and help set to a string 'Nominates a database to print the SQL for. Defaults to the ""default"" database.'. define the method handle_app_config with 3 arguments: self, app_config and unpacked dictionary options.","def handle_app_config ( self , app_config , ** options ) :"
1804,define the function templatetag with 2 arguments: parser and token.,"def templatetag ( parser , token ) :"
1805,return data.,return data
1806,"is an even number, call the method s.find with 2 arguments: bytes string ';' and end incremented by one, substitute the result for end.","end = s . find ( b';' , end + 1 )"
1807,mixed_subtype is a string 'mixed'.,mixed_subtype = 'mixed'
1808,"if cursor is true,",if cursor :
1809,"get the next element of the iterable pattern_iter, assign the result for ch and escaped, respectively.","ch , escaped = next ( pattern_iter )"
1810,return template.,return template
1811,"for every key and value in data.items method return value,","for key , value in data . items ( ) :"
1812,"if ImportError exception is caught,",except ImportError :
1813,define the method __multiple_chunks__ with arguments self and chunk_size defaulting to None.,"def multiple_chunks ( self , chunk_size = None ) :"
1814,"call the method self.next_token, substitute the result for token.",token = self . next_token ( )
1815,"if not,",else :
1816,"substitute '%s' is string 'processing file %s in %s\n' with self.file and self.dirpath, write it to command.stdout.","command . stdout . write ( 'processing file %s in %s\n' % ( self . file , self . dirpath ) )"
1817,"reverse element order of dicts, join them in a string, substitute the result for number.",number = '' . join ( reversed ( digits ) )
1818,"if t.token_type equals TOKEN_BLOCK,",if t . token_type == TOKEN_BLOCK :
1819,from django.utils import six into default name space.,from django . utils import six
1820,if opts.model is None.,if opts . model is None :
1821,"returns the result of the call the method d._get_pk_val, if not return d, put all the generator items into a tuple row_data. if row_data is true and None is not contained in row_data,",if row_data and None not in row_data :
1822,get self.instance,"pk_value = getattr ( self . instance , self . fk . rel . field_name )"
1823,define the method __getstate__ with an argument self.,def __getstate__ ( self ) :
1824,"call get_str_from_wsgi function with self.environ, string 'HTTP_COOKIE' and empty string as arguments, substitute it for raw_cookie.","raw_cookie = get_str_from_wsgi ( self . environ , 'HTTP_COOKIE' , '' )"
1825,"result is an tuple with 2 elements: template and return value of the function make_origin called with 4 arguments: display_name, loader, name and dirs.","result = ( template , make_origin ( display_name , loader , name , dirs ) )"
1826,"if f is a file,",if os . path . isfile ( f ) :
1827,substitute error.message for message.,message = error . message
1828,"'Nominates a database to print the SQL for. Defaults to the ""default"" database.' as the arguments. define the method handle with self class instance and dictionary options as the arguments.","def handle ( self , ** options ) :"
1829,if self.verbosity is greater or equal to integer 2.,if self . verbosity >= 2 :
1830,"call the data.decode method with a string 'latin-1' as an argument, use the result as an argument for the call to the json.load function, return the result.",return json . loads ( data . decode ( 'latin-1' ) )
1831,extend all_locales list with the elements of locale_dirs list on which os.path.basename function was applied.,"all_locales . extend ( map ( os . path . basename , locale_dirs ) )"
1832,"raise an ValidationError with 3 arguments: value under the 'max_digits' key of the self.error_messages dictionary,","raise ValidationError ( self . error_messages [ 'max_digits' ] , code = 'max_digits' , params = { 'max' : self . max_digits } , )"
1833,"finally perform,",finally :
1834,"default_error_messages is an dictionary with an entry: return value of the function _ called with an argument,","default_error_messages = { 'invalid_choice' : _ ( 'The inline foreign key did not match the parent instance primary key.' ) , }"
1835,cache_suffix is a string '.djcache'.,cache_suffix = '.djcache'
1836,from django.utils import baseconv into default name space.,from django . utils import baseconv
1837,from django.core.exceptions import DisallowedRedirect into default name space.,from django . core . exceptions import DisallowedRedirect
1838,"otherwise if autoescape is true,",elif autoescape :
1839,return value.,return value
1840,"try,",try :
1841,call the function time.sleep with an argument integer 1.,time . sleep ( 1 )
1842,return plist.,return plist
1843,increment doy by integer 1.,doy += 1
1844,raise an NotImplementedError with an argument string 'Subclasses must implement this method.'.,raise NotImplementedError ( 'Subclasses must implement this method.' )
1845,"for every digit in number coverted to a string,",for digit in str ( number ) :
1846,from django.utils.translation import trans_real as trans.,from django . utils . translation import trans_real as trans
1847,"added to a tuple with an element sum of year an integer 28, substitute the result for s2. call the function _findall with 2 arguments: s2 and sum of year and integer 28, converted into a string, substitute the result for sites2.","sites2 = _findall ( s2 , str ( year + 28 ) )"
1848,"call the function io.open with 3 arguments: work_file, string 'w' and encoding set to settings.FILE_CHARSET as arguments,","with io . open ( orig_file , 'r' , encoding = settings . FILE_CHARSET ) as fp :"
1849,do nothing.,pass
1850,import msvcrt.,import msvcrt
1851,define the function check_1_6_compatibility with argument kwargs dictionary.,def check_1_6_compatibility ( ** kwargs ) :
1852,"if data is not None, substitute data for initial_value, otherwise data_value is an empty string.",data_value = data if data is not None else ''
1853,"if TypeError or AttributeError exceptions are caught,","except ( AttributeError , TypeError ) :"
1854,"try,",try :
1855,return the second element of the return value of the call to the self._det_image_dimensions method.,return self . _get_image_dimensions ( ) [ 1 ]
1856,import module sys.,import sys
1857,"call the method self.add_prefix with an argument name, substitute the result for prefixed_name.",prefixed_name = self . add_prefix ( name )
1858,"endless loop,",while True :
1859,"define the method __init__ with arguments: self, fail_silently set to boolean False and unpacked dictionary kwargs.","def __init__ ( self , fail_silently = False , ** kwargs ) :"
1860,"call the method self.as_widget with 3 arguments: instance of a class Textarea, attrs and unpacked dictionary kwargs, return the result.","return self . as_widget ( Textarea ( ) , attrs , ** kwargs )"
1861,"raise an KeyError with an argument string ""Key %r not found in '%s'"", substitute '%s' with name and self.__class__.__name__.","raise KeyError ( ""Key %r not found in '%s'"" % ( name , self . __class__ . __name__ ) )"
1862,"call the function mark_safe with an argument word, substitute the result for i-th element of words.",words [ i ] = mark_safe ( word )
1863,"open the file named filepath in read mode, with file descriptor renamed to fp perform,","with open ( filepath , 'rb' ) as fp :"
1864,"call the function custom_sql_for_model with 3 arguments: model, style and connection, extend the output with the result.","output . extend ( custom_sql_for_model ( model , style , connection ) )"
1865,"if verbosity is greater or equal to integer 2,",if verbosity >= 2 :
1866,append length of result to non_capturing_groups.,non_capturing_groups . append ( len ( result ) )
1867,"try,",try :
1868,"if ch equals a string '<',",if ch == '<' :
1869,define the method __getitem__ with 2 arguments: self and key.,"def __getitem__ ( self , key ) :"
1870,do nothing.,pass
1871,if arg is None,if arg is None :
1872,increment num_sent by one.,num_sent += 1
1873,"try,",try :
1874,"if labels is not None,",if labels is not None :
1875,"join return value of the function six.text_type called with an argument self.management_form and forms into a string,","return mark_safe ( '\n' . join ( [ six . text_type ( self . management_form ) , forms ] ) )"
1876,"convert self.file to a string and append '.c' string to it, substitute the result for thefile.",thefile = '%s.c' % self . file
1877,set the file pointer at the beginning of the self.file file.,self . file . seek ( 0 )
1878,return boolean False.,return False
1879,"call the function warnings.warn with 2 arguments: string ""OptionParser usage for Django management commands ""","warnings . warn ( ""OptionParser usage for Django management commands "" ""is deprecated, use ArgumentParser instead"" , RemovedInDjango20Warning )"
1880,i is integer 0.,i = 0
1881,return string 'NOTPROVIDED'.,return 'NOTPROVIDED'
1882,and unpacked dictionary kwargs. if safe is true and data is not an instance of dict type.,"if safe and not isinstance ( data , dict ) :"
1883,define the method validate with arguments self and value.,"def validate ( self , value ) :"
1884,substitute data.name for file_name.,file_name = data . name
1885,"if commit is false,",if not commit :
1886,define the function activate with an argument language.,def activate ( language ) :
1887,"try,",try :
1888,if self._read_started is true and self doesnt have an '_body' attribute.,"if self . _read_started and not hasattr ( self , '_body' ) :"
1889,"call the function make_middleware_decorator with an argument middleware_class, call the result, return the new result.",return make_middleware_decorator ( middleware_class ) ( )
1890,"from django.utils.six.moves.urllib.parse import quote, unquote, urlsplit and urlunsplit into default name space.","from django . utils . six . moves . urllib . parse import quote , unquote , urlsplit , urlunsplit"
1891,return boolean False.,return False
1892,"return a tuple wit 2 elements: _lazy_proxy_unpickle and tuple with 3 elements: func, self.__args, self.__kw and resultclasses.","return ( _lazy_proxy_unpickle , ( func , self . __args , self . __kw ) + resultclasses )"
1893,"call the EmailMultiAlternatives function with, subject, message, from_email, recipient_list and connection set to connection, as arguments, assign the result to mail.","mail = EmailMultiAlternatives ( subject , message , from_email , recipient_list , connection = connection )"
1894,return boolean False.,return False
1895,skip this loop iteration.,continue
1896,self.command_stack is an empty list.,self . command_stack = [ ]
1897,"for every node in self,",for node in self :
1898,"for every attr in _urllib_request_moved_attributes,",for attr in _urllib_request_moved_attributes :
1899,"if field.serialize is true,",if field . serialize :
1900,return args and kwargs.,"return args , kwargs"
1901,substitute model._meta for opts.,opts = model . _meta
1902,"of the _DJANGO_DEPRECATED_LOCALES dictionary, RemovedInDjango19Warning and stacklevel set to integer 2. call the function translation with an argument language, substitute the result for _active.value.",_active . value = translation ( language )
1903,"new_ip is an empty list,",new_ip = [ ]
1904,"if not formfield_callback is None. call the method __new__ from the base class of the class ModelFormMetaclass, with 4 arguments: mcs, name, bases and attrs,","new_class = super ( ModelFormMetaclass , mcs ) . __new__ ( mcs , name , bases , attrs )"
1905,"call the function chain with an argument unpacked list, append name to string 'render_',","return mark_safe ( '\n' . join ( chain ( * [ getattr ( self , 'render_' + name ) ( ) for name in MEDIA_TYPES ] ) ) )"
1906,doublecolon_start is integer -1.,doublecolon_start = - 1
1907,"if kwargs is true,",if kwargs :
1908,import module sys.,import sys
1909,"if not,",else :
1910,"if current is an instance of BaseContext and bit attribute of type of current is true,","if isinstance ( current , BaseContext ) and getattr ( type ( current ) , bit ) :"
1911,define the method scheme with an argument self.,def scheme ( self ) :
1912,"if cc contains item 'max-age' and kwargs contains item 'max_age',",if 'max-age' in cc and 'max_age' in kwargs :
1913,"called with an argument value and value. register.tag decorator function with an argument 'if',",@ register . tag ( 'if' )
1914,"call the function six.reraise with 3 arguments: UnreadablePostError, UnreadablePostError instantiated with unpacked list e.args,","six . reraise ( UnreadablePostError , UnreadablePostError ( * e . args ) , sys . exc_info ( ) [ 2 ] )"
1915,"""That port is already in use."" for errno.EADDRINUSE and ""That IP address can't be assigned-to."" for errno.EADDRNOTAVAIL. try,",try :
1916,"if strict is false,",if not strict :
1917,"define the method render with 5 arguments: self, name, value, attrs set to None and choices set to an empty tuple.","def render ( self , name , value , attrs = None , choices = ( ) ) :"
1918,"from django.utils.safestring import SafeData, EscapeData, mark_safe and mark_for_escaping into default namespace.","from django . utils . safestring import ( SafeData , EscapeData , mark_safe , mark_for_escaping )"
1919,define the method start_object with argument self and obj.,"def start_object ( self , obj ) :"
1920,"if not,",else :
1921,"if there is no match,",if not match :
1922,result is an integer 0.,result = 0
1923,"prefix set to None, queryset set to None and unpacked dictionary kwargs. substitute queryset for self.queryset.",self . queryset = queryset
1924,"define the method __init__ with arguments self, name, sysid and pubid.","def __init__ ( self , name , sysid , pubid ) :"
1925,define the method _get_page_range with an argument self.,def _get_page_range ( self ) :
1926,define the method __contains__ with 2 arguments: self and key.,"def __contains__ ( self , key ) :"
1927,"call the method self.var.resolve with an argument context, substitute it for obj.",obj = self . var . resolve ( context )
1928,"if value is false, return it, if it is true convert first element of value to uppercase letter, return the value.",return value and value [ 0 ] . upper ( ) + value [ 1 : ]
1929,substitute HiddenInput for hidden_widget.,hidden_widget = HiddenInput
1930,substitute the resulting set for selected_choices. output is an empty list.,output = [ ]
1931,define the function spaceless with 2 arguments: parser and token.,"def spaceless ( parser , token ) :"
1932,define the method _itervalues with an argument self.,def _itervalues ( self ) :
1933,"if app_output is true,",if app_output :
1934,return plural_suffix.,return plural_suffix
1935,call the method self.validate_key with argument key.,self . validate_key ( key )
1936,DARK_PALETTE is a string 'dark'.,DARK_PALETTE = 'dark'
1937,return an empty list.,return [ ]
1938,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
1939,derive the class CycleNode from Node base class.,class CycleNode ( Node ) :
1940,"return an instance of _CacheInfo class, created with 4 arguments: value under the HITS key of the stats dictionary,","return _CacheInfo ( stats [ HITS ] , stats [ MISSES ] , maxsize , len ( cache ) )"
1941,define the method close with self and dictionary pairs of elements kwargs.,"def close ( self , ** kwargs ) :"
1942,"if not,",else :
1943,"where '%s' is replaced with subject. if i-th element of subject is '""' character or ""'"" character,","if subject [ i ] in ( '""' , ""'"" ) :"
1944,"get the absolute path of the __file__, repo_dir is name of the directory two leveles above it.",repo_dir = os . path . dirname ( os . path . dirname ( os . path . abspath ( __file__ ) ) )
1945,"if extra_attrs is true,",if extra_attrs :
1946,"call the function self.coerce with an argument value, substitute it for value.",value = self . coerce ( value )
1947,"if mimetype is None,",if mimetype is None :
1948,"if the result is equal to the result of the call to the function force_text with data_value as an argument, return boolean True, otherwise return boolean False. derive the class ModelMultipleChoiceField from the ModelChoiceField base class.",class ModelMultipleChoiceField ( ModelChoiceField ) :
1949,"replace all the occurrences of '\\\\' in string value with '\\' and all occurrences of '\\""' for '""', substitute the result for value.","value = value . replace ( b'\\\\' , b'\\' ) . replace ( b'\\""' , b'""' )"
1950,"substitute lookup_view for original_lookup,",original_lookup = lookup_view
1951,define the function execute_from_command_line with an argument argv set to None.,def execute_from_command_line ( argv = None ) :
1952,"get the value under the key key of the self.cookies dictionary, substitute boolean True for 'httponly' key of the returned dictionary.",self . cookies [ key ] [ 'httponly' ] = True
1953,"if message has an 'error_dict' attribute,","if hasattr ( message , 'error_dict' ) :"
1954,do nothing.,pass
1955,"kwargs is a dictionary with 17 entries: form for 'form', formfield_callback for 'formfield_callback', formset for 'formset',","kwargs = { 'form' : form , 'formfield_callback' : formfield_callback , 'formset' : formset , 'extra' : extra , 'can_delete' : can_delete , 'can_order' : can_order , 'fields' : fields , 'exclude' : exclude , 'min_num' : min_num , 'max_num' : max_num , 'widgets' : widgets , 'validate_min' : validate_min , 'validate_max' : validate_max , 'localized_fields' : localized_fields , 'labels' : labels , 'help_texts' : help_texts , 'error_messages' : error_messages , }"
1956,append '-' to digits.,digits . append ( '-' )
1957,"called with an argument value under the 'pubdate' key of the item dictionary. if value under the 'updateddate' key of the item dictionary is not None,",if item [ 'updateddate' ] is not None :
1958,import module tempfile.,import tempfile
1959,decorator function register.filter with an argument is_safe set to boolean False.,@ register . filter ( is_safe = False )
1960,"convert tag to lowercase, use it as the argument for the call to the method self.handle_endtag.",self . handle_endtag ( tag . lower ( ) )
1961,"for every p in path,",for p in path :
1962,"if first nine elements of block_content is string 'verbatim' or 'verbatim ',","if block_content [ : 9 ] in ( 'verbatim' , 'verbatim ' ) :"
1963,"call the function get_callable with arguments lookup_view and boolean True, substitute the result for lookup_view.","lookup_view = get_callable ( lookup_view , True )"
1964,"if shutdown_message is true,",if shutdown_message :
1965,"get the value under the 'incomplete' key of the field.error_messages dictionary, if it is not contained in errors,",if field . error_messages [ 'incomplete' ] not in errors :
1966,substitute environ for self.META.,self . META = environ
1967,self.use_ipv6 is boolean True.,self . use_ipv6 = True
1968,"call the function new_method_proxy with an argument unicode, substitute the result for __unicode__.",__unicode__ = new_method_proxy ( unicode )
1969,"strip message_context of '""' characters from both ends, substitute the result for message_context.","message_context = message_context . strip ( '""' )"
1970,"if _default is None,",if _default is None :
1971,call the method self._close_files.,self . _close_files ( )
1972,"if regex is an instance of six.string_types class,","if isinstance ( regex , six . string_types ) :"
1973,"raise an CommandError exception with an argument string ""couldn't handle %s template %s."", replace '%s' with self.app_or_project and template.","raise CommandError ( ""couldn't handle %s template %s."" % ( self . app_or_project , template ) )"
1974,"call the method self.replace_header with argument string 'Content-Type', 'text/%s; charset=""%s""', where '%s' symbols are replaced by:","self . replace_header ( 'Content-Type' , 'text/%s; charset=""%s""' % ( subtype , charset ) )"
1975,"pop the first element from plist, convert it to lowercase, call the method decode on it, with string 'ascii' as an argument,",key = plist . pop ( 0 ) . lower ( ) . decode ( 'ascii' )
1976,define the function get_wsgi_application.,def get_wsgi_application ( ) :
1977,"if fg is contained in color_names,",if fg in color_names :
1978,"call the method d.quantize with 3 arguments: exp, ROUND_HALF_UP and instance of Context class created with prec as prec,","sign , digits , exponent = d . quantize ( exp , ROUND_HALF_UP , Context ( prec = prec ) ) . as_tuple ( )"
1979,sort result in reversed order by the key as lambda function with an argument k and reeturn value second element of k.,"result . sort ( key = lambda k : k [ 1 ] , reverse = True )"
1980,derive the class GenericIPAddressField from the base class CharField class.,class GenericIPAddressField ( CharField ) :
1981,define the method is_valid with an argument self.,def is_valid ( self ) :
1982,"join all the results into a string separated by newlines, append the result to output. join elements of output into a string, separated by newline characters, return the result.",return '\n' . join ( output )
1983,"call the function six.reraise with 3 arguments: ValidationError, ValidationError created with 2 arguments:","six . reraise ( ValidationError , ValidationError ( self . error_messages [ 'invalid_image' ] , code = 'invalid_image' , ) , sys . exc_info ( ) [ 2 ] )"
1984,"""Use django.utils.timezone instead."", RemovedInDjango19Warning and stacklevel set to 2. derive the class FixedOffset from the tzinfo base class.",class FixedOffset ( tzinfo ) :
1985,"try,",try :
1986,label set to return value of the function _ called with an string 'Delete' and required as boolean False. define the method add_prefix with an argument self.,"def add_prefix ( self , index ) :"
1987,"if KeyError exception is caught,",except KeyError :
1988,from django.conf import settings into default namespace.,from django . conf import settings
1989,import module shutil.,import shutil
1990,"called with an argument k. call the function c with an argument unpacked dictionary kwargs, substitute the result for result.",result = c ( ** kwargs )
1991,"if not,",else :
1992,insert tagname at the beginning of open_tags.,"open_tags . insert ( 0 , tagname )"
1993,"else if timeout converted into an integer equals to integer 0,",elif int ( timeout ) == 0 :
1994,"""misses"", ""maxsize"" and ""currsize"". derive class _HashedSeq from list base class.",class _HashedSeq ( list ) :
1995,"define the method __init__ with 3 arguments: self, media set to None and unpacked dictionary kwargs.","def __init__ ( self , media = None , ** kwargs ) :"
1996,"call the ops.quote_name method with argument self._table on the object under the db key of connections dictionary, substitute the result for table.",table = connections [ db ] . ops . quote_name ( self . _table )
1997,"substitute value under the 'suffix' key of dictionary d, substitute it for suffix.",suffix = d [ 'suffix' ]
1998,"self._post is an instance of QueryDict created with arguments: self.body and encoding set to self._encoding,","self . _post , self . _files = QueryDict ( self . body , encoding = self . _encoding ) , MultiValueDict ( )"
1999,set real_name attribute of the self object to value of real_name attribute of trans object.,"setattr ( self , real_name , getattr ( trans , real_name ) )"
2000,call the method parser.add_argument with an argument string '--settings'.,parser . add_argument ( '--settings' )
2001,"define lambda function that returns self.file.write field, use it as an argument for property function, put the result in write.",write = property ( lambda self : self . file . write )
2002,substitute name for self.name.,self . name = name
2003,define the method end_serialization with an argument self.,def end_serialization ( self ) :
2004,"if value under the 'verbosity' key of the options dictionary is greater than zero,",if options [ 'verbosity' ] > 0 :
2005,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
2006,"utility is a instance of ManagementUtility class, created with an argument argv.",utility = ManagementUtility ( argv )
2007,"if initial is true, substitute it for self.initial, if not self.files is an empty dictionary.",self . initial = initial or { }
2008,"get the absolute file path of the expanded_template, substitute it for absolute_path.",absolute_path = path . abspath ( expanded_template )
2009,"if self.connector equals conn_type,",if self . connector == conn_type :
2010,"get the value under the 'addrport' key of the options dictionary, if it is false,",if not options . get ( 'addrport' ) :
2011,"substitute path_override for path if path_override is not None, otherwise substitute request.path for path",path = path_override if path_override is not None else request . path
2012,define the method initial_forms with an argument self.,def initial_forms ( self ) :
2013,define the method skip_past with 2 arguments: self and endtag.,"def skip_past ( self , endtag ) :"
2014,substitute SelectMultiple for widget.,widget = SelectMultiple
2015,self.callback is None.,self . callback = None
2016,"if HTMLParseError or UnboundLocalError exceptions are caught,","except ( HTMLParseError , UnboundLocalError ) :"
2017,if AttributeError exception is caught.,except AttributeError :
2018,"substitute the '%s' with table and list containing return value of the method call ops.value_to_db_datetime with argument now on the object under the db key of connections dictionary, respectively. if exists return next entry from the database that cursor points at.",return cursor . fetchone ( ) is not None
2019,create_models is an empty list.,created_models = [ ]
2020,substitute parent_name for self.parent_name.,self . parent_name = parent_name
2021,raise an NotImplementedError exception with argument string 'subclasses of Storage must provide a url() method'.,raise NotImplementedError ( 'subclasses of Storage must provide a url() method' )
2022,"call the function contains with 2 arguments: elt and inst, if it evaluates to true,","if contains ( elt , inst ) :"
2023,"for model in model_list,",for model in model_list :
2024,"call the function is_aware with an argument value, if it evaluates to true,",if is_aware ( value ) :
2025,"if stream_or_string is instance of bytes type,","if isinstance ( stream_or_string , bytes ) :"
2026,define the function rfc2822_date with an argument date.,def rfc2822_date ( date ) :
2027,response.streaming_content is an empty list.,response . streaming_content = [ ]
2028,from django.apps import apps into default name space.,from django . apps import apps
2029,"substitute the result for base and tail_ext. get the value under the tail_ext key of the extension_map dictionary, substitute it for cls.",cls = extension_map . get ( tail_ext )
2030,"with 2 arguments: stream and Loader set to SafeLoader, and unpacked dictionary options, yield one element of the itterable obj.",yield obj
2031,derive the class ExternalReferenceForbidden from the DefusedXmlException base class.,class ExternalReferenceForbidden ( DefusedXmlException ) :
2032,"if potfile fie exists,",if os . path . exists ( potfile ) :
2033,"cache_choices, required, widget, label, initial, help_text, unpacked list args and unpacked dictionary kwargs. define the method to_python with 2 arguments: self and value.","def to_python ( self , value ) :"
2034,"decorator stringfilter,",@ stringfilter
2035,"and return value of the function flatatt called with an argument final_attrs, substitute the result for output. call the method self.render_options with 2 arguments: choices and list with an entry, value, substitute the result for options.","options = self . render_options ( choices , [ value ] )"
2036,define the method unsign with arguments self and signed_value.,"def unsign ( self , signed_value ) :"
2037,define the functionbase36_to_int with an argument s.,def base36_to_int ( s ) :
2038,"call the method connection.creation.sql_for_pending_references with 3 arguments: refo, style and pending_references,","final_output . extend ( connection . creation . sql_for_pending_references ( refto , style , pending_references ) )"
2039,"define the method filter with 4 arguments: self, name set to None, filter_func set to None and unpacked dictionary flags.","def filter ( self , name = None , filter_func = None , ** flags ) :"
2040,"otherwise if safe_input is true,",elif safe_input :
2041,define the method tag with an argument self.,def tag ( self ) :
2042,substitute i for self.pointer.,self . pointer = i
2043,"join base an unpacked list paths into a string, get the absolute path in unicode representation of the result, substitute the result for final_path.","final_path = abspathu ( join ( base , * paths ) )"
2044,"define the method __init__ with 6 arguments: (self, var1, var2, nodelist_true, nodelist_false and negate.","def __init__ ( self , var1 , var2 , nodelist_true , nodelist_false , negate ) :"
2045,import pickle.,import pickle
2046,"if number equals integer 1,",if number == 1 :
2047,substitute loader.graph for graph.,graph = loader . graph
2048,call the method self.xml.startElement with arguments string 'object' and attrs.,"self . xml . startElement ( ""object"" , attrs )"
2049,"for every v in self.validators,",for v in self . validators :
2050,"define the method enter_command with 3 arguments: self, token and msg.","def error ( self , token , msg ) :"
2051,"define the method assignment_tag with 4 arguments: self, func set to None, takes_context set to None and name set to None.","def assignment_tag ( self , func = None , takes_context = None , name = None ) :"
2052,if AttributeError exception is caught.,except AttributeError :
2053,define the method __repr__ with an argument self.,def __repr__ ( self ) :
2054,import module mimetypes.,import mimetypes
2055,call the method self._archive.extract with an argument to_path.,self . _archive . extract ( to_path )
2056,"format string '%+03d%02d' with hour and minute, append it to time_str, return the result.","return time_str + '%+03d%02d' % ( hour , minute )"
2057,substitute field.rel.to for rel_model.,rel_model = field . rel . to
2058,define the method ugettext with an argument message.,def ugettext ( message ) :
2059,"if m is not False, None is considered False,",if not m :
2060,except ImportError.,except ImportError :
2061,"call the function re.sub with 3 arguments: raw string ""\\.|."", escape_quotes and tok without the first and last element,","guts = re . sub ( r""\\.|."" , escape_quotes , tok [ 1 : - 1 ] )"
2062,define the method __deepcopy__ with 3 arguments: self and memo.,"def __deepcopy__ ( self , memo ) :"
2063,define the method _itervalues with an argument self.,def _itervalues ( self ) :
2064,"call the method mimetypes.guess_extension with an argument content_type, substitute result for ext.",ext = mimetypes . guess_extension ( content_type )
2065,"try,",try :
2066,increment i by integer 1.,i += 1
2067,"for every model in not_installed_models,",for model in not_installed_models :
2068,"where '%s' is replaced with taglib and e. if not,",else :
2069,"try,",try :
2070,derive the class Command from the BaseCommand class.,class Command ( BaseCommand ) :
2071,return result.,return result
2072,"if not,",else :
2073,derive the class EmailBackend from the BaseEmailBackend base class.,class EmailBackend ( BaseEmailBackend ) :
2074,"call the method re.sub with 3 arguments: raw string '>\s+<', string '><' and result of the function force_text,","return re . sub ( r'>\s+<' , '><' , force_text ( value ) )"
2075,cmp_fmt is None.,cmp_fmt = None
2076,"in the string '%s. You passed in %r (%s)' replace every %s with original and type of the object self.obj as strings, respectively,","return '%s. You passed in %r (%s)' % ( original , self . obj , type ( self . obj ) )"
2077,"if ImportError exception is caught,",except ImportError :
2078,"if not,",else :
2079,"try,",try :
2080,derive the class FieldError from the Exception base class.,class FieldError ( Exception ) :
2081,leave_locale_alone is boolean True.,leave_locale_alone = True
2082,"remove first element from styles, split it by the '/' character, substitute the result for colors.",colors = styles . pop ( ) . split ( '/' )
2083,"with arguments al and mn, for every al, mn in executor.loader.graph.forwards_plan method return value called with 2 arguments: migration.app_label, migration.name, only if al equals migration.app_label. if self.verbosity is greater than integer 0 or self.interactive is true,",if self . verbosity > 0 or self . interactive :
2084,"content.setter decorator,",@ content . setter
2085,"for every c in return value of the method response.cookies.values,",for c in response . cookies . values ( ) :
2086,"for every name in loggers,",for name in loggers :
2087,"self.feed is an dictionary with 13 initial entries, result of the function to_unicode called with an argument title for 'title',","self . feed = { 'title' : to_unicode ( title ) , 'link' : iri_to_uri ( link ) , 'description' : to_unicode ( description ) , 'language' : to_unicode ( language ) , 'author_email' : to_unicode ( author_email ) , 'author_name' : to_unicode ( author_name ) , 'author_link' : iri_to_uri ( author_link ) , 'subtitle' : to_unicode ( subtitle ) , 'categories' : categories or ( ) , 'feed_url' : iri_to_uri ( feed_url ) , 'feed_copyright' : to_unicode ( feed_copyright ) , 'id' : feed_guid or link , 'ttl' : ttl , }"
2088,raise an NotImplementedError exception with argument string 'subclasses of Storage must provide a modified_time() method'.,raise NotImplementedError ( 'subclasses of Storage must provide a modified_time() method' )
2089,return s.,return s
2090,define the method _get_queryset with an argument self.,def _get_queryset ( self ) :
2091,derive the class RequireDebugTrue from logging.Filter base class.,class RequireDebugTrue ( logging . Filter ) :
2092,"raise an StopIteration exception,",raise StopIteration ( )
2093,"define the method add with 5 arguments, self class instance, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def add ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
2094,"expires as a string 'Thu, 01-Jan-1970 00:00:00 GMT', return the result. define the method make_bytes with 2 arguments: self and value.","def make_bytes ( self , value ) :"
2095,"evaluate the logic expression, plat does not equals to string 'Pocket PC', and plat does not equals to string 'win32'",supported_platform = plat != 'Pocket PC' and ( plat != 'win32' or 'ANSICON' in os . environ )
2096,decrement self.remaining by length of result.,self . remaining -= len ( result )
2097,"get the value under the key 'database' of the options dictionary, substitute it for db.",db = options . get ( 'database' )
2098,"try,",try :
2099,from wsgiref.util import FileWrapper,from wsgiref . util import FileWrapper
2100,"if cmd ends with ext,",if cmd . endswith ( ext ) :
2101,"widget set to widget, label set to label, initial set to initial, help_text set to help_text, unpacked list args, and unpacked dictionary kwargs. substitute choices for self.choices.",self . choices = choices
2102,from django.utils import six into default name space.,from django . utils import six
2103,return self.objects.,return self . objects
2104,"call the method self.configurator.convert with an arugment value, substitute the result for result.",result = self . configurator . convert ( value )
2105,"call the function force_text with an argument v, for every v in args, put the results in a text_args list.",text_args = [ force_text ( v ) for v in args ]
2106,raise an exception.,raise
2107,call the method self._close_files.,self . _close_files ( )
2108,define the method upload_complete with argument self.,def upload_complete ( self ) :
2109,substitute value for self.value.,self . value = value
2110,status set to None and current_app set to None. substitute request for self._request.,self . _request = request
2111,define the method __init__ with 2 arguments: self and config.,"def __init__ ( self , config ) :"
2112,substitute self.default_timeout for timeout.,timeout = self . default_timeout
2113,"if root is true,",if root :
2114,"call the function re.sub with 3 arguments: string ""([a-z])'([A-Z])"", lambda function with an argument m and return value,","t = re . sub ( ""([a-z])'([A-Z])"" , lambda m : m . group ( 0 ) . lower ( ) , value . title ( ) )"
2115,"call the function curry with 2 arguments: _proxy_method and method set to six.text_type.encode, substitute the result for encode.","encode = curry ( _proxy_method , method = six . text_type . encode )"
2116,"call the function warn_about_renamed_method with 2 arguments: class_name and unpacked list renamed_method, substitute the result for wrapper.","wrapper = warn_about_renamed_method ( class_name , * renamed_method )"
2117,"skip this loop iteration,",continue
2118,"if return value of the self.is_secure method is true and server_port is not equal to string '443',",if server_port != ( '443' if self . is_secure ( ) else '80' ) :
2119,"evaluate the field.get_attname, use the result as the name of the obj attribute to get, substitute it for related_att.","related_att = getattr ( obj , field . get_attname ( ) )"
2120,"where '%s' is replaced with migration_name and app_label. migrations_to_squash is a list created dynamically with elements: return value of the method executor.loader.get_migration called,","migrations_to_squash = [ executor . loader . get_migration ( al , mn ) for al , mn in executor . loader . graph . forwards_plan ( ( migration . app_label , migration . name ) ) if al == migration . app_label ]"
2121,"define lambda function that returns self.file.seek field, use it as an argument for property function, put the result in seek.",seek = property ( lambda self : self . file . seek )
2122,"try,",try :
2123,"call the function make_middleware_decorator with an argument middleware_class, return the result.",return make_middleware_decorator ( middleware_class )
2124,"tuple containing 2 elements: list with an element validate_ipv4_address and return value of the function _ with an argument string, 'Enter a valid IPv4 address.' for 'ipv4' and tuple containing 2 elements: list with an element validate_ipv6_address, and return value of the function _ with an argument string 'Enter a valid IPv6 address.' for 'ipv6'. define the function ip_address_validators with arguments protocol and unpack_ipv4.","def ip_address_validators ( protocol , unpack_ipv4 ) :"
2125,"remove first element from model_dependencies, assign it to model and deps, respectively.","model , deps = model_dependencies . pop ( )"
2126,"convert col_name to lowercase, on the result call the method find with an argument string '__', if the result is greater of equal to integer 0,",if col_name . lower ( ) . find ( '__' ) >= 0 :
2127,do nothing.,pass
2128,from django.db import router and DEFAULT_DB_ALIAS into default name space.,"from django . db import router , DEFAULT_DB_ALIAS"
2129,define the function slugify with an argument value.,def slugify ( value ) :
2130,"join elements of code_list in a string, separated by ';', format string '\x1b[%sm' with it, append text to the result if exists,","return '%s%s' % ( ( '\x1b[%sm' % ';' . join ( code_list ) ) , text or '' )"
2131,"index of the first occurrence of '\\' in path, or alternatively if '\\' is not contained in path, split path in two parts by '/' character, return the result.","return path . split ( '/' , 1 )"
2132,from django.core.management.base import CommandError into default name space.,from django . core . management . base import CommandError
2133,return s.,return s
2134,"if remaining is None,",if remaining is None :
2135,define the function runfastcgi with 2 arguments: argset set to an empty list and unpacked dictionary kwargs.,"def runfastcgi ( argset = [ ] , ** kwargs ) :"
2136,"define the method set with 5 arguments, self class instance, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def set ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
2137,"raise an CommandError with argument: string ""Can't resolve dependencies for %s in serialized app list."", where '%s' is replaced with:","raise CommandError ( ""Can't resolve dependencies for %s in serialized app list."" % ', ' . join ( '%s.%s' % ( model . _meta . app_label , model . _meta . object_name ) for model , deps in sorted ( skipped , key = lambda obj : obj [ 0 ] . __name__ ) ) )"
2138,_standard_context_processors is None.,_standard_context_processors = None
2139,"if scheme is not contained in self.schemes,",if scheme not in self . schemes :
2140,define the method needs_multipart_form with an argument self.,def needs_multipart_form ( self ) :
2141,"if field.rel is true and field.rel is an instance of models.ManyToManyRel,","if field . rel and isinstance ( field . rel , models . ManyToManyRel ) :"
2142,substitute WSGIRequest for request_class.,request_class = WSGIRequest
2143,"if field.rel.to._default_manager has an attribute 'get_by_natural_key',","if hasattr ( field . rel . to . _default_manager , 'get_by_natural_key' ) :"
2144,"if not,",else :
2145,define the function wrapper with an argument unpacked list args.,def wrapper ( * args ) :
2146,if app_name is an instance of BaseCommands.,"if isinstance ( app_name , BaseCommand ) :"
2147,import module datetime.,import datetime
2148,"if decompress is true,",if decompress :
2149,"bcc, connection, attachments, headers and cc. if alternatives exists substitute it for self.alternatives, if not self.alternatives is an empty list.",self . alternatives = alternatives or [ ]
2150,"if i is greater than or equal to length of subject,",if i >= len ( subject ) :
2151,return an empty string.,return ''
2152,"if lang is None,",if lang is None :
2153,derive the class FixedOffset from the tzinfo base class.,class FixedOffset ( tzinfo ) :
2154,delete dictionary item 'public' from cc.,del cc [ 'public' ]
2155,"call the exp.replace with microsecond set to integer 0, substitute the result for exp.",exp = exp . replace ( microsecond = 0 )
2156,import module sys.,import sys
2157,"if response is True,",if response :
2158,"if seventh element of row is true,",if row [ 6 ] :
2159,"if not,",else :
2160,import module contextlib.,import contextlib
2161,"and result of the method self.field.label_from_instance, called with an argument obj. derive the class ModelChoiceField from the ChoiceField base class.",class ModelChoiceField ( ChoiceField ) :
2162,"skip this loop iteration,",continue
2163,"only if app_configs is None ot model._meta.app_config is contained in app_configs, error is a list containing all the previous elements. chain all errors elements into a list, return it.",return list ( chain ( * errors ) )
2164,otherwise if action equals to string 'unapply_start'.,"elif action == ""unapply_start"" :"
2165,"under the 'handlers' key of self.config dictionary, substitute the result for value under 'target' key of config dictioanry. if StandardError, renamed to e, exception is caught,",except StandardError as e :
2166,"call the function call_command with 3 arguments: string ""createsuperuser"", interactive is boolean True,","call_command ( ""createsuperuser"" , interactive = True , database = options [ 'database' ] )"
2167,"if callback is an instance of functools.partial object,","if isinstance ( callback , functools . partial ) :"
2168,append app_dir to dirs list.,dirs . append ( app_dir )
2169,from django.core.files.utils import FileProxyMixin into default name space.,from django . core . files . utils import FileProxyMixin
2170,call the os.remove function with argument name.,os . remove ( name )
2171,"from django.forms.utils import flatatt, ErrorDict and ErrorList into default name space.","from django . forms . utils import flatatt , ErrorDict , ErrorList"
2172,"call the get_deserializer function with an argument format, substitute the result for d.",d = get_deserializer ( format )
2173,"created with an argument constant_arg, append it to args. otherwise if var_arg is true,",elif var_arg :
2174,_wrapped is None.,_wrapped = None
2175,"property decorator,",@ property
2176,"call the method os.environ.get with 2 arguments: strings 'PATHEXT' and '.COM;.EXE;.BAT;.CMD', split the result at os.pathsep, substitute it for pathext.","pathext = os . environ . get ( 'PATHEXT' , '.COM;.EXE;.BAT;.CMD' ) . split ( os . pathsep )"
2177,"define the method get with 4 arguments, self, key, default set to None and version set to None.","def get ( self , key , default = None , version = None ) :"
2178,"get the value under the 'symlinks' key of the options dictionary, substitute it for self.symlinks.",self . symlinks = options . get ( 'symlinks' )
2179,"call the method self.filter_expression.resolve with an argument context, substitute the result for output.",output = self . filter_expression . resolve ( context )
2180,self.stdout.ending is None.,self . stdout . ending = None
2181,"if not,",else :
2182,"and unpacked dictionary kwargs. call the function force_text with an argument self.value, substitute the result for self.value.",self . value = force_text ( self . value )
2183,derive the class TypedMultipleChoiceField from the base class MultipleChoiceField class.,class TypedMultipleChoiceField ( MultipleChoiceField ) :
2184,"slice migration.ancestry list from the last result as an starting index to the end, substitute the slice for migration.branch. migration.merged_operations is an empty list.",migration . merged_operations = [ ]
2185,from collections import OrderedDict into default name space.,from collections import OrderedDict
2186,"if ValueError or TypeError exceptions are caught,","except ( ValueError , TypeError ) :"
2187,substitute MultipleHiddenInput for hidden_widget.,hidden_widget = MultipleHiddenInput
2188,"get the id of the self object, use it as a key to obtain the value from the memo dictionary, substitute self with it.",memo [ id ( self ) ] = self
2189,return value.,return value
2190,"if PY3 is true,",if PY3 :
2191,"call the method token.split_contents, substitute the result for bits.",bits = token . split_contents ( )
2192,"where '%s' is replaced with fixture_name, and RuntimeWarning. decorator method lru_cache.lru_cache with an argument maxsize set to None.",@ lru_cache . lru_cache ( maxsize = None )
2193,"evaluate the boolean expression, if first three characters of sample equals to string of bytes '\xef\xbb\xbf\',",return sample [ : 3 ] == b'\xef\xbb\xbf' or sample . startswith ( codecs . BOM_UTF16_LE ) or sample . startswith ( codecs . BOM_UTF16_BE )
2194,"return an instance of FilterExpression class, created with 2 arguments: token and self.","return FilterExpression ( token , self )"
2195,derive the class Iterator from the base class object.,class Iterator ( object ) :
2196,substitute self._wrapped for repr_attr.,repr_attr = self . _wrapped
2197,"call the connection.creation.sql_indexes_for_model with model and no_style() as arguments, substitute the result for index_squl.","index_sql = connection . creation . sql_indexes_for_model ( model , no_style ( ) )"
2198,from django.utils.formats import localize into default name space.,from django . utils . formats import localize
2199,"for every app_config in return value of the method apps.get_app_configs if app_config.models_module is not None,","all_models = [ ( app_config . label , router . get_migratable_models ( app_config , connection . alias , include_auto_created = True ) ) for app_config in apps . get_app_configs ( ) if app_config . models_module is not None and app_config . label in app_labels ]"
2200,"if not,",else :
2201,"if return values of the function force_text called two times with 1 argument, with value, and with orig, are equal,",if force_text ( value ) != force_text ( orig ) :
2202,substitute pos for end_text_pos.,end_text_pos = pos
2203,"call the function file_move_safe with tmp_path, fname, allow_overwrite set to boolean True as arguments.","file_move_safe ( tmp_path , fname , allow_overwrite = True )"
2204,"call the method self.render_option with 2 arguments: selected_choices and unpacked list option, append the result to output.","output . append ( self . render_option ( selected_choices , * option ) )"
2205,"field_notes, respectively. add field_params to extra_params dictionary.",extra_params . update ( field_params )
2206,call the method self._cache.clear.,self . _cache . clear ( )
2207,"call the method self._lock, with the result,",with self . _lock :
2208,import module sys.,import sys
2209,call the method self.inner_run with 2 arguments: None and unpacked dictionary options.,"self . inner_run ( None , ** options )"
2210,"if text ends with truncate,",if text . endswith ( truncate ) :
2211,append list containing string '--no-location' to self.msgattrib_options.,self . msgattrib_options = self . msgattrib_options [ : ] + [ '--no-location' ]
2212,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
2213,"call the method self._truncate_html with 5 arguments: length, truncate, self._wrapped, length and boolean True, return the result.","return self . _truncate_html ( length , truncate , self . _wrapped , length , True )"
2214,"if not,",else :
2215,from PIL module import ImageFile as PillowImageFile.,from PIL import ImageFile as PillowImageFile
2216,"dest as a string 'ignore_patterns', default as an empty list, metavar as a string 'PATTERN', and help as a string 'Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.'. call the method parser.add_argument with 5 arguments: string '--no-default-ignore', action as a string 'store_false',","parser . add_argument ( '--no-default-ignore' , action = 'store_false' , dest = 'use_default_ignore_patterns' , default = True , help = ""Don't ignore the common glob-style patterns 'CVS', '.*', '*~' and '*.pyc'."" )"
2217,substitute self.none_value for self.day_none_value.,self . day_none_value = self . none_value
2218,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
2219,define the method _iterkeys with an argument self.,def _iterkeys ( self ) :
2220,"call the method domain.encode with an argument string 'idna', call the method decode on the result with an argument string 'ascii',",domain = domain . encode ( 'idna' ) . decode ( 'ascii' )
2221,substitute the result for filter_re. derive the class FilterExpression form the base class object.,class FilterExpression ( object ) :
2222,"if StopIteration exception,",except StopIteration :
2223,"define the function sql_all with 3 arguments: app_config, style and connection.","def sql_all ( app_config , style , connection ) :"
2224,self.test_runner is None.,self . test_runner = None
2225,"get the attribute 'extend' of the cls object, if it exists substitute it for extend, if not extend is boolean True.","extend = getattr ( definition , 'extend' , True )"
2226,"define the function pbkdf2 with 5 arguments: password, salt, iterations, dklen set to integer 0 and digest set to None.","def pbkdf2 ( password , salt , iterations , dklen = 0 , digest = None ) :"
2227,substitute the result for value under 'address' key of config dictionary. substitute klass for factory.,factory = klass
2228,"if widget is an instance of type class,","if isinstance ( widget , type ) :"
2229,"if errors is None,",if errors is None :
2230,"call the method self.nodelist_empty.render with an argument context, return the result.",return self . nodelist_empty . render ( context )
2231,substitute connections element at the index of the value db for connections.,connection = connections [ db ]
2232,"if id_ is true,",if id_ :
2233,define the function close_caches with dictionary pair of elements kwargs as argument.,def close_caches ( ** kwargs ) :
2234,append '0' to digits.,digits . append ( '0' )
2235,"join self.dirpath and self.file into a file path, return it.","return os . path . join ( self . dirpath , self . file )"
2236,"if TypeError, ValueError or UnicodeDecodeError exceptions are caught,","except ( TypeError , ValueError , UnicodeDecodeError ) :"
2237,from django.utils._os import upath into default name space.,from django . utils . _os import upath
2238,"call the function force_text with an argument text, substitute the result for text.",text = force_text ( text )
2239,return result.,return result
2240,"call the function isabs with an argument path, if it evaluates to false,",if not isabs ( path ) :
2241,"try,",try :
2242,"call the run_from_argv function from the base class of the Command class with argv as a argument,.","super ( Command , self ) . run_from_argv ( argv )"
2243,"otherwise ser_fmts is a list containing ser_fmt. if self.verbosity is greater or equal to integer 2,",if self . verbosity >= 2 :
2244,from django.utils.six.moves.urllib.parse import urlsplit and urlunsplit into default name space.,"from django . utils . six . moves . urllib . parse import urlsplit , urlunsplit"
2245,"define the method process with 3 arguments: self, command and domain.","def process ( self , command , domain ) :"
2246,"call the function load_command_class with arguments app_name and subcommand, substitute the result for klass.","klass = load_command_class ( app_name , subcommand )"
2247,"call the MigrationAutodetector function with arguments, return value of the call to the method executor.loader.project_state,","autodetector = MigrationAutodetector ( executor . loader . project_state ( ) , ProjectState . from_apps ( apps ) , )"
2248,derive the class BaseMemcachedCacheMethods from RenameMethodsBase the base class.,class BaseMemcachedCacheMethods ( RenameMethodsBase ) :
2249,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
2250,raise an self.exception exception.,raise self . exception
2251,from importlib import import_module into default name space.,from importlib import import_module
2252,substitute widgets for value under the 'widgets' key of attrs dictionary.,attrs [ 'widgets' ] = widgets
2253,append form.errors to self._errors.,self . _errors . append ( form . errors )
2254,"filesize_number_format with result of division of bytes by KB as an argument, substitute the result for value. otherwise if bytes is smaller than GB,",elif bytes < GB :
2255,"if fname is contained in self._list_cache_files method return value,",for fname in self . _list_cache_files ( ) :
2256,"if dklen is false,",if not dklen :
2257,"if self.is_localized is true,",if self . is_localized :
2258,"substitute target and expression for self.target and self.expression, respectively.","self . target , self . expression = target , expression"
2259,where '%s' is replace by regex and return value of the function six.text_type with an argument e. substitute the compiled_regex for value under the language_code key of the self._regex_dict dictionary.,self . _regex_dict [ language_code ] = compiled_regex
2260,"if not,",else :
2261,input_type is a string 'password'.,input_type = 'password'
2262,return self.new_objects.,return self . new_objects
2263,"if self._populated is false,",if not self . _populated :
2264,"call the method __init__ from the base class of the InMemoryUploadedFile base class, with 6 arguments: file, name, content_type,","super ( InMemoryUploadedFile , self ) . __init__ ( file , name , content_type , size , charset , content_type_extra )"
2265,skip this loop iteration.,continue
2266,"call the method apps.get_app_config with an argument app_lable, for every app_label in app_labels, append the results to app_configs list.",app_configs = [ apps . get_app_config ( app_label ) for app_label in app_labels ]
2267,"call the __init__ method of the base class of the class FilePathField, with arguments: choices set to an empty tuple,4","super ( FilePathField , self ) . __init__ ( choices = ( ) , required = required , widget = widget , label = label , initial = initial , help_text = help_text , * args , ** kwargs )"
2268,return.,return
2269,"use it as an argument for the call to the method self.style.MIGRATE_HEADING, write the result to self.stdout. for every migration in merge_migrations,",for migration in merge_migrations :
2270,from django.utils import six into default name space.,from django . utils import six
2271,define the function parts.,def parts ( ) :
2272,"define the method handle_label with 3 arguments: self, label and unpacked dictionary options.","def handle_label ( self , label , ** options ) :"
2273,define the method auto_id with an argument self.,def auto_id ( self ) :
2274,substitute reason for self.reason_phrase.,self . reason_phrase = reason
2275,"and value under the unique_for key of form.cleaned_data dictionary is not None, if lookup equals a string 'date',",if lookup == 'date' :
2276,define the method is_ajax with an argument self.,def is_ajax ( self ) :
2277,"call the nethod self._isdst with an argument dt, if it evaluates to true,",if self . _isdst ( dt ) :
2278,add obj.object.__class__ to self.models set.,self . models . add ( obj . object . __class__ )
2279,call the function exhaust with an argument stream.,exhaust ( stream )
2280,define the method __getitem__ with arguments self and name.,"def add_js ( self , data ) :"
2281,"if not,",else :
2282,"LockFileEx.argtypes is a list containing 6 elements: HANDLE, DWORD, DWORD, DWORD, DWORD and LPOVERLAPPED.","LockFileEx . argtypes = [ HANDLE , DWORD , DWORD , DWORD , DWORD , LPOVERLAPPED ]"
2283,"f _serializers is false,",if not _serializers :
2284,substitute new_args for result_args.,result_args = new_args
2285,return out.,return out
2286,"if value under the 'description' key of the item dictionary is not None,",if item [ 'description' ] is not None :
2287,"if not,",else :
2288,"call the function do_translate with 2 arguments: message and string 'gettext', return the result.","return do_translate ( message , 'gettext' )"
2289,"finally perform,",finally :
2290,"call the method parse_bits with 8 arguments: parser, bits, params, varargs, varkw, defaults, takes_context and name,","args , kwargs = parse_bits ( parser , bits , params , varargs , varkw , defaults , takes_context , name )"
2291,substitute offset for self.__offset.,self . __offset = offset
2292,return an empty list.,return [ ]
2293,"append '.' to name, substitute the result for prefixed.","prefixed = name + ""."""
2294,"for every item in self.items,",for item in self . items :
2295,"call the function time_format with 2 arguments: value and arg, return the result.","return time_format ( value , arg )"
2296,"if StandardError, renamed to e, exception is caught,",except StandardError as e :
2297,value under the field.attname key of the data dictionary is None.,data [ field . attname ] = None
2298,"raise an ValueError with an argument string ""'%s.%s' has more than one ForeignKey to '%s.%s'."", where '%s' is replaced with,","raise ValueError ( ""'%s.%s' has more than one ForeignKey to '%s.%s'."" % ( model . _meta . app_label , model . _meta . object_name , parent_model . _meta . app_label , parent_model . _meta . object_name ) )"
2299,"if expires is not None,",if expires is not None :
2300,raise an ValidationError with 2 arguments: value under the 'invalid_time' key of the self.error_messages dictionary and code set to string 'invalid_time'.,"raise ValidationError ( self . error_messages [ 'invalid_time' ] , code = 'invalid_time' )"
2301,substitute charset for self.charset.,self . charset = charset
2302,define the method _archive_cls with an argument file.,def _archive_cls ( file ) :
2303,"slice the rawdata from k to endpos, then take the first 20 elements of the previous slice,","self . error ( ""junk characters in start tag: %r"" % ( rawdata [ k : endpos ] [ : 20 ] , ) )"
2304,if file_name is an instance of Template class.,"if isinstance ( file_name , Template ) :"
2305,"call the function with 7 arguments: self, self.instance, self._meta.fields, fail_message, commit, self._meta.exclude,","return save_instance ( self , self . instance , self . _meta . fields , fail_message , commit , self . _meta . exclude , construct = False )"
2306,"if roots is false,",if not roots :
2307,"append the result to password. call the method password.translate with an argument hmac.trans_36, update inner dictionary with the result.",inner . update ( password . translate ( hmac . trans_36 ) )
2308,"call the function new_method_proxy with an argument operator.delitem, substitute the result for __delitem__.",__delitem__ = new_method_proxy ( operator . delitem )
2309,"try,",try :
2310,define the function dummy with 2 arguments: unpacked list args and unpacked dictionary kwargs.,"def dummy ( * args , ** kwargs ) :"
2311,derive the class CheckboxSelectMultiple from the RendererMixin and SelectMultiple base classes.,"class CheckboxSelectMultiple ( RendererMixin , SelectMultiple ) :"
2312,"call the method operator.attrgetter with an argument _meth_func, substitute the result for get_method_function.",get_method_function = operator . attrgetter ( _meth_func )
2313,if value has an '__iter__' attribute and value is not an instance of bytes or six.string_types class.,"if hasattr ( value , '__iter__' ) and not isinstance ( value , ( bytes , six . string_types ) ) :"
2314,"if second element of source is None,",if source [ 1 ] is None :
2315,"return a tuple containing 3 entries: output, result of the function force_text, called with 3 arguments: errors,","return ( output , force_text ( errors , DEFAULT_LOCALE_ENCODING , strings_only = True ) , p . returncode )"
2316,derive the class EmailBackend from the BaseEmailBackend base class.,class EmailBackend ( BaseEmailBackend ) :
2317,cookies is a string ''.,cookies = ''
2318,"join self.dirpath and self.file into a file path, substitute it for orig_file.","orig_file = os . path . join ( self . dirpath , self . file )"
2319,raise an exception.,raise
2320,"call the method self.get_available_name with argument name, substitute the result for name.",name = self . get_available_name ( name )
2321,"if choice_label is an instance of tuple or list,","if isinstance ( choice_label , ( tuple , list ) ) :"
2322,"if value is None,",if value is None :
2323,raise a ValidationError exception with arguments self.message and code set to self.code.,"raise ValidationError ( self . message , code = self . code )"
2324,substitute the last element of parts for ser_fmt.,ser_fmt = parts [ - 1 ]
2325,"otherwise if vale is not an instance of ConvertingTuple and value is an instance of tuple type,","elif not isinstance ( value , ConvertingTuple ) and isinstance ( value , tuple ) :"
2326,"define the function assertCountEqual with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def assertCountEqual ( self , * args , ** kwargs ) :"
2327,define the method __getitem__ with 2 arguments: self and idx.,"def __getitem__ ( self , idx ) :"
2328,"skip this loop iteration,",continue
2329,substitute WSGIServer for httpd_cls.,httpd_cls = WSGIServer
2330,substitute empty bytes string for self.buffer.,self . buffer = b''
2331,"for every key is self.bad_cookies,",for key in self . bad_cookies :
2332,"call the method self._lib.Client with self._servers and pickleProtocol set to pickle.HIGHEST_PROTOCOL as arguments, substitute the result for self._client.","self . _client = self . _lib . Client ( self . _servers , pickleProtocol = pickle . HIGHEST_PROTOCOL )"
2333,derive class Command from base class BaseCommand.,class Command ( BaseCommand ) :
2334,"if filename ends with string ""$py.class"",","if filename . endswith ( ""$py.class"" ) :"
2335,"default_error_messages is an dictionary with an entry: return value of the function _ called with an argument string,","default_error_messages = { 'invalid_image' : _ ( ""Upload a valid image. The file you uploaded was either not an image or a corrupted image."" ) , }"
2336,raise an exception.,raise
2337,"for every j in range of integers from 0 to iterations converted to an integer,",for j in xrange ( int ( iterations ) ) :
2338,"if six.PY3 is true,",if six . PY3 :
2339,"compile regex from a string '\\(.)', substitute it for re_escaped.",re_escaped = re . compile ( r'\\(.)' )
2340,remove slots_var key from the orig_vars dictionary.,orig_vars . pop ( slots_var )
2341,return string '1'.,return '1'
2342,"if lengths of value and arg are equal, return boolean True, otherwise return boolean False.",return len ( value ) == int ( arg )
2343,"call the function _ with an argument string 'noon', return the result.",return _ ( 'noon' )
2344,"call the method timezone.normalize with an argument value, substitute the result for value.",value = timezone . normalize ( value )
2345,"if display_num_errors is true,",if display_num_errors :
2346,"as long as self.exists function with argument name evaluates to boolean True,",while self . exists ( name ) :
2347,substitute object_list for self.object_list.,self . object_list = object_list
2348,"mapping is a dictionary with 3 initial entries: 'a' for 'alpha', 'b' for 'beta' and 'c' for 'rc'.","mapping = { 'alpha' : 'a' , 'beta' : 'b' , 'rc' : 'c' }"
2349,write a new line to the self.stream file stream.,"self . stream . write ( ""\n"" )"
2350,"otherwise if value is an instance of datetime.date,","elif isinstance ( value , datetime . date ) :"
2351,"if e doesnt have an 'django_template_source' attribute,","if not hasattr ( e , 'django_template_source' ) :"
2352,"define lambda function with self class instance as the argument, lambda function body encapsulates the call to the method,",klass . __str__ = lambda self : self . __unicode__ ( ) . encode ( 'utf-8' )
2353,"define the function call_command with 3 arguments: name, unpacked list args and unpacked dictionary options.","def call_command ( name , * args , ** options ) :"
2354,all_date_checks is an empty set.,all_date_checks = set ( )
2355,"call the function self.path with argument name, use the result as an argument for the call to the function os.path.getatime,",return datetime . fromtimestamp ( os . path . getatime ( self . path ( name ) ) )
2356,set attrvalue to None.,attrvalue = None
2357,return printable representation of self.dicts.,return repr ( self . dicts )
2358,"substitute a tuple with 2 elements: template and None, for self.find_template_cache dictionary value under the key key.","self . template_cache [ key ] = ( template , None )"
2359,"self.max_digits and self.decimal_places, raise an ValidationError with 3 arguments: value under the 'max_whole_digits' key of the self.error_messages dictionary,","raise ValidationError ( self . error_messages [ 'max_whole_digits' ] , code = 'max_whole_digits' , params = { 'max' : ( self . max_digits - self . decimal_places ) } , )"
2360,return None.,return None
2361,"call the method __init__ from the base class of the class RegexField, with 4 arguments: max_length, min_length, unpacked list args,","super ( RegexField , self ) . __init__ ( max_length , min_length , * args , ** kwargs )"
2362,"if self.data.day equals integer 11, 12 or 13,","if self . data . day in ( 11 , 12 , 13 ) :"
2363,nofollow_attr is an empty string.,nofollow_attr = ''
2364,substitute the value under the command key of self.tags dictionary for compile_func.,compile_func = self . tags [ command ]
2365,"call the function timezone.make_naive with 2 arguments value, current_timezone, return the result.","return timezone . make_naive ( value , current_timezone )"
2366,"call the function datetime.fromtimestamp with argument timeout, substitute it for exp.",exp = datetime . fromtimestamp ( timeout )
2367,"try,",try :
2368,"define lambda function that returns self.file.readinto field, use it as an argument for property function, put the result in readinto.",readinto = property ( lambda self : self . file . readinto )
2369,define the method tokenize with an argument self.,def tokenize ( self ) :
2370,"explicitly is prohibited."" call the function modelform_factory with 10 arguments: model, form as form, fields as fields, exclude as exclude,","form = modelform_factory ( model , form = form , fields = fields , exclude = exclude , formfield_callback = formfield_callback , widgets = widgets , localized_fields = localized_fields , labels = labels , help_texts = help_texts , error_messages = error_messages )"
2371,"convert the value under the 'daemonize' key of options dictionary to lowercase, if it equals to string 'true', 'yes' or 't',","if options [ ""daemonize"" ] . lower ( ) in ( 'true' , 'yes' , 't' ) :"
2372,do nothing.,pass
2373,"if self.leave_locale_alone is false,",if not self . leave_locale_alone :
2374,call the method self.indent with argument integer 2.,self . indent ( 2 )
2375,"if os.name equals string 'posix',",if os . name == 'posix' :
2376,"instantiate class ModelFormOptions with argument: attribute 'Meta' of the new_class object. if it exists or None, if not,","opts = new_class . _meta = ModelFormOptions ( getattr ( new_class , 'Meta' , None ) )"
2377,from django.core.management.base import BaseCommand into default name space.,from django . core . management . base import BaseCommand
2378,"substitute the result for new_migration. writer is an instance of a class MigrationWriter, created with an argument new_migration.",writer = MigrationWriter ( new_migration )
2379,"call the function six.reraise with 3 arguments: class ValidationError, class ValidationError, created with 3 arguments:","six . reraise ( ValidationError , ValidationError ( message , code = 'ambiguous_timezone' , params = params , ) , sys . exc_info ( ) [ 2 ] )"
2380,"if value in self.empty_values,",if value in self . empty_values :
2381,"call the function op, return the result.",return op ( )
2382,substitute context.autoescape for old_setting.,old_setting = context . autoescape
2383,substitute the datetime.max for exp.,exp = datetime . max
2384,requires_system_checks is boolean False.,requires_system_checks = False
2385,define the method values with an argument self.,def values ( self ) :
2386,define the function new_date with an argument d.,def new_date ( d ) :
2387,call the function os.umask with an argument umask.,os . umask ( umask )
2388,__D2 is a raw string '(?P[ \d]\d)'.,__D2 = r'(?P[ \d]\d)'
2389,"otherwise if name is not None and compile_function is None,",elif name is not None and compile_function is None :
2390,raise an ValidationError with 2 arguments: value under the 'required' key of the self.error_messages dictionary and code set to 'required'.,"raise ValidationError ( self . error_messages [ 'required' ] , code = 'required' )"
2391,"call the function add_arguments with parser as an argument, from the base class of the Command class.","super ( Command , self ) . add_arguments ( parser )"
2392,"if exception ValueError or TypeError is caught,","except ( ValueError , TypeError ) :"
2393,"for every node_app and node_name in migration.branch,","for node_app , node_name in migration . branch :"
2394,"call the method now.replace with argument tzinfo set to None, substitute it for now.",now = now . replace ( tzinfo = None )
2395,"evaluate the http.QueryDict method with raw_query_string and encoding set to self._encoding as arguments, return the result.","return http . QueryDict ( raw_query_string , encoding = self . _encoding )"
2396,substitute self.form.required_css_class for the value under the 'class' key of the attrs dictionary.,attrs [ 'class' ] = self . form . required_css_class
2397,derive the class Serializer from the PythonSerializer base class.,class Serializer ( PythonSerializer ) :
2398,"if ValueError exception is caught,",except ValueError :
2399,call the method self._archive.close.,self . _archive . close ( )
2400,define the method add_arguments with an argument self and parser.,"def add_arguments ( self , parser ) :"
2401,"for every app_config in result of the method apps.get_app_configs, append the resulting list to templatetags_modules_candidates. for every templatetag_module in templatetags_modules_candidates,",for templatetag_module in templatetags_modules_candidates :
2402,"call the method self._cache.incr with key and delta as arguments, substitute the result for val.","val = self . _cache . incr ( key , delta )"
2403,"if file_name is false,",if not file_name :
2404,derive the class HTMLParser from the base class HTMLParser located in the module _html_parser.,class HTMLParser ( _html_parser . HTMLParser ) :
2405,"if DatabaseError or IntegrityError, renamed to e, exceptions are caught,","except ( DatabaseError , IntegrityError ) as e :"
2406,"if not,",else :
2407,define the method _start_relational_field with arguments self and field.,"def _start_relational_field ( self , field ) :"
2408,for every first_select in return value of the function _parse_date_fmt.,for first_select in _parse_date_fmt ( ) :
2409,"get the value under the name key of the self dictionary, yield it as the return value of the generator.",yield self [ name ]
2410,"for field in self if field.is_hidden is false, append field to a list, return the resulting list.",return [ field for field in self if not field . is_hidden ]
2411,define the function length with an argument value.,def length ( value ) :
2412,"open writer.path file in write mode, with the file descriptor as fh, perform the following,","with open ( writer . path , ""wb"" ) as fh :"
2413,define the method __repr__ with an argument self.,def __repr__ ( self ) :
2414,"if html is true,",if html :
2415,if message is not None,if message is not None :
2416,"and pending_references append sql to the string '-- ', put the results in a list, extend alter_sql with the result. if alter_sql,",if alter_sql :
2417,"targets is a list containing tuple with two elements, app_label and None.","targets = [ ( app_label , None ) ]"
2418,add model to models set.,models . add ( model )
2419,import module django.,import django
2420,"try,",try :
2421,"create a list out of basedir elements for which function os.path.isdir returns true, apply the os.path.abspath function on every element, and put the results in a list, basedir is set of previous list elements.","basedirs = set ( map ( os . path . abspath , filter ( os . path . isdir , basedirs ) ) )"
2422,"if response is None,",if response is None :
2423,"if length of bits is greater or equal to integer 4 and second last element of bits equals sting 'from',","if len ( bits ) >= 4 and bits [ - 2 ] == ""from"" :"
2424,"call the method parser.parse with an argument tuple with 2 elements strings: 'else' and 'endfilter', substitute the result for nodelistelse.","nodelist_true = parser . parse ( ( 'else' , 'endifchanged' ) )"
2425,"define the method strptime with arguments self, value and format.","def strptime ( self , value , format ) :"
2426,"define the method _text_words with 3 arguments: self, length and truncate.","def _text_words ( self , length , truncate ) :"
2427,"call the function getInnerText with an argument node, call the strip method on the result, substitute the result for field_value.",field_value = getInnerText ( node ) . strip ( )
2428,define the function date with 2 arguments value and arg set to None.,"def date ( value , arg = None ) :"
2429,"call the function six.iteritems with an argument: instance of base class of the MultiValueDict class, return the result.","return six . iteritems ( super ( MultiValueDict , self ) )"
2430,"choice and idx, return the result. define the method __str__ with an argument self.",def __str__ ( self ) :
2431,"if attachments exists substitute it for self.attachments, if not attachments is an empty list.",self . attachments = attachments or [ ]
2432,"use it as an argument for the call to the force_str function, return the result. define the method add_prefix with arguments self and prefix.","def add_prefix ( self , prefix ) :"
2433,"Template, TextNode, Token, TokenParser, Variable, VariableNode, constant_string and filter_raw_string. from django.template.base import compile_string, resolve_variable, unescape_string_literal and generic_tag_compiler.","from django . template . base import ( compile_string , resolve_variable , unescape_string_literal , generic_tag_compiler )"
2434,"try,",try :
2435,"decorator stringfilter,",@ stringfilter
2436,define the method __getitem__ with 2 arguments: self and key.,"def __getitem__ ( self , key ) :"
2437,"instantiate class ChunkIter with 2 arguments: self._input_data and self._chunk_size, use it to instantiate LazyStream class,","stream = LazyStream ( ChunkIter ( self . _input_data , self . _chunk_size ) )"
2438,"tr,",try :
2439,"call the method cgi.parse_header with an argument content_disposition, assign the result to _ and params, respectively.","_ , params = cgi . parse_header ( content_disposition )"
2440,"call the force_str function with an argument: salt, if it exists, if not with a string '%s.%s', with '%s' replaced by,","self . salt = force_str ( salt or '%s.%s' % ( self . __class__ . __module__ , self . __class__ . __name__ ) )"
2441,return first element of value.,return value [ 0 ]
2442,substitute member.name for name.,name = member . name
2443,"if TypeError exception is caught,",except TypeError :
2444,substitute tok.next for state.,state = tok . next
2445,call the function dateformat.time_format with 2 arguments: value and result of the function get_format called with 2 arguments:,"return dateformat . time_format ( value , get_format ( format or 'TIME_FORMAT' , use_l10n = use_l10n ) )"
2446,substitute the result for new_permission. call the function os.chmod wiht arguments filename and new_permissions.,"os . chmod ( filename , new_permissions )"
2447,common_prefix is None.,common_prefix = None
2448,"substitute the result for commands_dict. for every name and app in return value of the function six.iteritems calle with return argument of function get_commands as an arugment,","for name , app in six . iteritems ( get_commands ( ) ) :"
2449,raise self.warning.,raise self . warning
2450,"call the unsign method from the base class of the TimestampSigner class with an argument value, substitute the result for result.","result = super ( TimestampSigner , self ) . unsign ( value )"
2451,from django.template.debug import DebugLexer and DebugParser.,"from django . template . debug import DebugLexer , DebugParser"
2452,"try,",try :
2453,"call the function get_language, substitute the result for lang.",lang = get_language ( )
2454,substitute key for result.key.,result . key = key
2455,self.translate is boolean False.,self . translate = False
2456,"call to the self.handle_uncaught_exception method with request, resolver and value of the evaluated function sys.exec_info,","response = self . handle_uncaught_exception ( request , resolver , sys . exc_info ( ) )"
2457,"substitute the result for result. call the function _long_to_bin with 2 arguments: result and hex_format_string, return the result.","return _long_to_bin ( result , hex_format_string )"
2458,define the method configure with an argument self.,def configure ( self ) :
2459,"decorator stringfilter,",@ stringfilter
2460,"raise an ImproperlyConfigured with an argument string ""Calling modelform_factory without defining 'fields' or 'exclude' explicitly is prohibited.""","raise ImproperlyConfigured ( ""Calling modelform_factory without defining 'fields' or "" ""'exclude' explicitly is prohibited."" )"
2461,call the method wm.add_watch with path and mask as arguments.,"wm . add_watch ( path , mask )"
2462,"serialize data to JSON format with cls set to encoder, substitute it for data.","data = json . dumps ( data , cls = encoder )"
2463,do nothing.,pass
2464,substitute SplitDateTimeWidget for widget.,widget = SplitDateTimeWidget
2465,"if arg starts with options,",if arg . startswith ( option ) :
2466,substitute qs for self._queryset.,self . _queryset = qs
2467,"call the method router.db_for_write with argument self.cache_model_class, substitute the result for db.",db = router . db_for_write ( self . cache_model_class )
2468,substitute settings.CACHE_MIDDLEWARE_SECONDS for cache_timeout.,cache_timeout = settings . CACHE_MIDDLEWARE_SECONDS
2469,"call the ops.quote_name method with argument self._table on the object under the db key of connections dictionary, substitute the result for table.",table = connections [ db ] . ops . quote_name ( self . _table )
2470,return nothing.,return
2471,can_import_settings is boolean True.,can_import_settings = True
2472,"if timezone has an attribute 'localize',","if hasattr ( timezone , 'localize' ) :"
2473,raise an ValidationError with 2 arguments: value under the 'contradiction' key of the self.error_messages dictionary and code set to 'contradiction'.,"raise ValidationError ( self . error_messages [ 'contradiction' ] , code = 'contradiction' )"
2474,define the method __init__ with 2 arguments: self and dict_ set to None.,"def __init__ ( self , dict_ = None ) :"
2475,"define the method _proxy_method with 3 arguments self, unpacked list args and unpacked dictionary kwargs.","def _proxy_method ( self , * args , ** kwargs ) :"
2476,"call the self.stdout.write method with string "" Installing custom SQL for %s.%s model\n"" as argument,","self . stdout . write ( "" Installing custom SQL for %s.%s model\n"" % ( app_name , model . _meta . object_name ) )"
2477,define the method __iter__ with an argument self.,def __iter__ ( self ) :
2478,raise an ContentNotRenderedError exception with an string 'The response content must be rendered before it can be iterated over.'.,raise ContentNotRenderedError ( 'The response content must be ' 'rendered before it can be iterated over.' )
2479,"call the function limit_choices_to, substitute the result for limit_choices_to.",limit_choices_to = limit_choices_to ( )
2480,"wrte to the standard output result of the call to the method self.style.MIGRATE_SUCCESS with string "" FAKED"" as a argument.","self . stdout . write ( self . style . MIGRATE_SUCCESS ( "" FAKED"" ) )"
2481,"if autoescape is true,",if autoescape :
2482,"if self.use_ipv6 is true and socket.has_ipv6 is false,",if self . use_ipv6 and not socket . has_ipv6 :
2483,"call the method m.group with an argument string 'hour', convert the result into a string, substitute it for hour.",hour = int ( m . group ( 'hour' ) )
2484,"call the method node.clone, substitute the result for klass.",klass = node . clone ( )
2485,"call the method parser.parse with an argument tuple with 3 elements strings 'elif', 'else' and 'endif', substitute the result for nodelist.","nodelist = parser . parse ( ( 'elif' , 'else' , 'endif' ) )"
2486,"if not,",else :
2487,self._callback_strs is an empty set.,self . _callback_strs = set ( )
2488,substitute key for result.key.,result . key = key
2489,"if IndexError exception is caught,",except IndexError :
2490,"if last_bit is true,",if last_bit :
2491,"replace '%s' in string ""Notice: Couldn't set permission bits on %s. You're probably using an uncommon filesystem setup. No problem."",","self . stderr . write ( ""Notice: Couldn't set permission bits on %s. You're "" ""probably using an uncommon filesystem setup. No "" ""problem."" % new_path , self . style . NOTICE )"
2492,"call the function force_str with an argument quoted_url, use the result as an argument for the call to the function unquote_plus,",return force_text ( unquote_plus ( force_str ( quoted_url ) ) )
2493,define the function include_is_allowed with an argument filepath.,def include_is_allowed ( filepath ) :
2494,derive the class DeserializedObject from the object base class.,class DeserializedObject ( object ) :
2495,"define the method __init__ with 3 arguments: self, filepath and parsed.","def __init__ ( self , filepath , parsed ) :"
2496,substitute TimeInput for widget.,widget = TimeInput
2497,"app set to app_config.models_module, create_models set to create_models, verbosity set to verbosity, interactive set to interactive, and db set to db. define the function emit_post_migrate_signal with 4 arguments: created_models, verbosity, interactive and db.","def emit_post_migrate_signal ( created_models , verbosity , interactive , db ) :"
2498,"help is a string ""Prints the CREATE INDEX SQL statements for the given model module name(s)."".","help = ""Prints the CREATE INDEX SQL statements for the given model module name(s)."""
2499,"'PROCESSING' for 102, 'OK' for 200, 'CREATED' for 201, 'ACCEPTED' for 202, 'NON-AUTHORITATIVE INFORMATION' for 203, 'NO CONTENT' for 204, 'RESET CONTENT' for 205, 'PARTIAL CONTENT' for 206, 'MULTI-STATUS' for 207, 'ALREADY REPORTED' for 208, 'IM USED' for 226, 'MULTIPLE CHOICES' for 300, 'MOVED PERMANENTLY' for 301, 'FOUND' for 302, 'SEE OTHER' for 303, 'NOT MODIFIED' for 304, 'USE PROXY' for 305, 'RESERVED' for 306, 'TEMPORARY REDIRECT' for 307, 'PERMANENT REDIRECT' for 308, 'BAD REQUEST' for 400, 'UNAUTHORIZED' for 401, 'PAYMENT REQUIRED' for 402, 'FORBIDDEN' for 403, 'NOT FOUND' for 404, 'METHOD NOT ALLOWED' for 405, 'NOT ACCEPTABLE' for 406, 'PROXY AUTHENTICATION REQUIRED' for 407, 'REQUEST TIMEOUT' for 408, 'CONFLICT' for 409, 'GONE' for 410, 'LENGTH REQUIRED' for 411, 'PRECONDITION FAILED' for 412, 'REQUEST ENTITY TOO LARGE' for 413, 'REQUEST-URI TOO LONG' for 414, 'UNSUPPORTED MEDIA TYPE' for 415, 'REQUESTED RANGE NOT SATISFIABLE' for 416, 'EXPECTATION FAILED' for 417, 'I'M A TEAPOT' for 418, 'UNPROCESSABLE ENTITY' for 422, 'LOCKED' for 423, 'FAILED DEPENDENCY' for 424, 'UPGRADE REQUIRED' for 426, 'PRECONDITION REQUIRED' for 428, 'TOO MANY REQUESTS' for 429, 'REQUEST HEADER FIELDS TOO LARGE' for 431, 'INTERNAL SERVER ERROR' for 500, 'NOT IMPLEMENTED' for 501, 'BAD GATEWAY' for 502, 'SERVICE UNAVAILABLE' for 503, 'GATEWAY TIMEOUT' for 504, 'HTTP VERSION NOT SUPPORTED' for 505, 'VARIANT ALSO NEGOTIATES' for 506, 'INSUFFICIENT STORAGE' for 507, 'LOOP DETECTED' for 508, 'NOT EXTENDED' for 510 and 'NETWORK AUTHENTICATION REQUIRED' for 511. derive the class BadHeaderError from the ValueError base class.",class BadHeaderError ( ValueError ) :
2500,"if args is true,",if args :
2501,define the function rfc3339_date with an argument date.,def rfc3339_date ( date ) :
2502,substitute fcntl.LOCK_EX for LOCK_EX.,LOCK_EX = fcntl . LOCK_EX
2503,"if digest is false,",if not digest :
2504,"call the function digest twice, substitute the results for inner, outer, respectively.","inner , outer = digest ( ) , digest ( )"
2505,"for every app_name and mode_list in return value of manifest.items method,","for app_name , model_list in manifest . items ( ) :"
2506,"define the method __init__ with 5 arguments: self, attrs set to None, years set to None, months set to None and empty_label set to None.","def __init__ ( self , attrs = None , years = None , months = None , empty_label = None ) :"
2507,"if string ""'format'"" is not contained in e converted into a string,","if ""'format'"" not in str ( te ) :"
2508,"if attrs is false, make attrs an empty dictionary.",attrs = attrs or { }
2509,"msg is a string 'Module ""%s"" does not define a ""%s"" attribute/class' formated with dotted_path and class_name, respectively.","msg = 'Module ""%s"" does not define a ""%s"" attribute/class' % ( dotted_path , class_name )"
2510,"if StandardError, renamed to e, exception is caught,",except StandardError as e :
2511,substitute EscapeText for EscapeString.,EscapeString = EscapeText
2512,define the method clean with an argument self.,def clean ( self ) :
2513,import module re.,import re
2514,"define the method __init__ with 7 arguments: self, data set to None, files set to None, auto_id set to string 'id_%s',","def __init__ ( self , data = None , files = None , auto_id = 'id_%s' , prefix = None , queryset = None , ** kwargs ) :"
2515,"decorator function register.filter with 2 arguments string ""escape"" and is_safe set to boolean True.","@ register . filter ( ""escape"" , is_safe = True )"
2516,"exc_info is an tuple with 3 elements: None, result of method record.getMessage and None.","exc_info = ( None , record . getMessage ( ) , None )"
2517,"raise an TemplateSyntaxError with an argument string ""%r tag takes at least one argument: the name of the template to be included."",","raise TemplateSyntaxError ( ""%r tag takes at least one argument: the name of the template to be included."" % bits [ 0 ] )"
2518,"full_statement is a list containing: string ""CREATE TABLE %s ("", where %s is replaced by result of the function qn called with an argument tablename.","full_statement = [ ""CREATE TABLE %s ("" % qn ( tablename ) ]"
2519,substitute model._meta for opts.,opts = model . _meta
2520,"append block_content to a string 'end', substitute the result for self.verbatim.",self . verbatim = 'end%s' % block_content
2521,"call the function cleanup_url with an argument url, assign the result to filename and display_url, respectively.","filename , display_url = cleanup_url ( url )"
2522,do nothing.,pass
2523,"if value under the 'errlog' key of options dictionary is true,",if options [ 'errlog' ] :
2524,"call the make_msgid function, substitute it for value under the 'Message-ID' key of msg dictionary.",msg [ 'Message-ID' ] = make_msgid ( )
2525,"called with an argument string ':?.!'. call the method format_html with 3 arguments: string '{0}{1}', contents and label_suffix, substitute the result for contents.","contents = format_html ( '{0}{1}' , contents , label_suffix )"
2526,"if app_path is None,",if app_path is None :
2527,define the method add_root_elements with 2 arguments: self and handler.,"def add_root_elements ( self , handler ) :"
2528,"if KeyError exception is caught,",except KeyError :
2529,"call the method self.clear_checkbox_id with an argument checkbox_name, substitute the result for checkbox_id.",checkbox_id = self . clear_checkbox_id ( checkbox_name )
2530,return an empty string.,return ''
2531,"convert e to a string, substitute it for error_text.",error_text = str ( e )
2532,"call the method cursor.execute with string ""DELETE FROM %s WHERE expires < %%s"" as argument,","cursor . execute ( ""DELETE FROM %s WHERE expires < %%s"" % table , [ connections [ db ] . ops . value_to_db_datetime ( now ) ] )"
2533,"if length of tablenames is greater than zero,",if len ( tablenames ) :
2534,return self.,return self
2535,return nothing.,return
2536,DEFAULT_ATTACHMENT_MIME_TYPE is a string 'application/octet-stream'.,DEFAULT_ATTACHMENT_MIME_TYPE = 'application/octet-stream'
2537,define the function deactivate.,def deactivate ( ) :
2538,substitute python_reloader for reloader.,reloader = python_reloader
2539,and form_class_attrs. derive the class BaseModelFormSet from the BaseFormSet base class.,class BaseModelFormSet ( BaseFormSet ) :
2540,substitute value for value under name key of msg dictionary.,msg [ name ] = value
2541,substitute cls.__bytes_cast for cls.__bytes__.,cls . __bytes__ = cls . __bytes_cast
2542,"if setting has an ""SERIALIZATION_MODULES"" attribute,","if hasattr ( settings , ""SERIALIZATION_MODULES"" ) :"
2543,"append work_file to string '#: ', substitute it for old.",old = '#: ' + work_file
2544,"self._post is an instance of QueryDict created with arguments: an empty string and encoding set to self._encoding,","self . _post , self . _files = QueryDict ( '' , encoding = self . _encoding ) , MultiValueDict ( )"
2545,for every x in sequence of integers from 0 to 7. RESET is a string '0'.,RESET = '0'
2546,"try,",try :
2547,"while ch is not equal to a string '}',",while ch != '}' :
2548,errors is an empty list,errors = [ ]
2549,"raise an UnrecognizedArchiveFormat exception with an argument string ""Path not a recognized archive format: %s"",","raise UnrecognizedArchiveFormat ( ""Path not a recognized archive format: %s"" % filename )"
2550,"if any w.needs_multipart_form for every w in self.widgets is true, return boolean True, if not return boolean False.",return any ( w . needs_multipart_form for w in self . widgets )
2551,"if cnt is true and remained of dividing cnt with grouping is zero,",if cnt and not cnt % grouping :
2552,raise an MultiValueDictKeyError exception with printable representation of key.,raise MultiValueDictKeyError ( repr ( key ) )
2553,"if UnicodeEncodeError exception is caught,",except UnicodeEncodeError :
2554,"format, if its true, otherwise string 'DATE_FORMAT' and use_l10n as use_l10n, return the result. define the function time_format with 3 arguments: value, format set to None and use_l10n set to None.","def time_format ( value , format = None , use_l10n = None ) :"
2555,"for every message is message,",for message in message :
2556,"call the function iri_to_uri with an argument location, return the result.",return iri_to_uri ( location )
2557,call the method self._update_errors with an argument e.,self . _update_errors ( e )
2558,import module re.,import re
2559,from django.conf import settings into default name space.,from django . conf import settings
2560,derive the class Template form the base class object.,class Template ( object ) :
2561,"otherwise if ch equals a string ')',",elif ch == ')' :
2562,prepend '.' to the i-th element of the ext_list.,ext_list [ i ] = '.%s' % ext_list [ i ]
2563,"define the method make_view_atomic, with self class instance and view as the arguments.","def make_view_atomic ( self , view ) :"
2564,"and string 'ignore', call the method decode on the result with an argument string 'ascii', substitute the result for value. call the method re.sub with 3 arguments: string '[^\w\s-]', empty string and value, strip the result of whitespaces from both ends,","value = re . sub ( '[^\w\s-]' , '' , value ) . strip ( ) . lower ( )"
2565,"if first element of base64d equals to a '.' character,",if base64d [ : 1 ] == b'.' :
2566,"if initial is None,",if initial is None :
2567,return flat.,return flat
2568,define the method page with self class instance and number as arguments.,"def page ( self , number ) :"
2569,"otherwise if self.required is true,",elif self . required :
2570,"if length of bits is lesser than integer 3 or second element of bits is not equal to string 'as',",if len ( bits ) < 3 or bits [ 1 ] != 'as' :
2571,define the class Serializer from the PythonSerializer base class.,class Serializer ( PythonSerializer ) :
2572,"if self does not have '_files' attribute,","if not hasattr ( self , '_files' ) :"
2573,"remove config dictionary element under '.' key, if it exists substitute it for props, if not, props is None.","props = config . pop ( '.' , None )"
2574,"get the value from the options dictionary under the key 'interactive', substitute it for self.interactive.",self . interactive = options . get ( 'interactive' )
2575,"for 'invalid_date' and return value of the function _ called with an string 'Enter a valid time.', for 'invalid_time. define the method __init__ with 3 arguments: self, input_date_formats set to None, input_time_formats set to None,","def __init__ ( self , input_date_formats = None , input_time_formats = None , * args , ** kwargs ) :"
2576,"if self.file has an attribute 'name',","if hasattr ( self . file , 'name' ) :"
2577,"try,",try :
2578,"substitute the result for final_attrs dictionary value under the 'value' key. call the function format_html with 2 arguments: string ' ',","return format_html ( ' ' , flatatt ( final_attrs ) )"
2579,"define the method __new__ with 3 arguments: cls, unpacked list args and unpacked dictionary kwargs.","def __new__ ( cls , * args , ** kwargs ) :"
2580,"if default_kwargs exists, substitute it for self.default_kwargs, otherwise self.default_kwargs is an empty dictionary.",self . default_kwargs = default_kwargs or { }
2581,substitute self for block.,block = self
2582,"raise an TemplateSyntaxError exception with an argument string ""'cycle' tag requires at least two arguments"".","raise TemplateSyntaxError ( ""'cycle' tag requires at least two arguments"" )"
2583,"call the json.dumps function with 2 arguments: obj and separators set to tuple containing ',' and ':' characters,","return json . dumps ( obj , separators = ( ',' , ':' ) ) . encode ( 'latin-1' )"
2584,define the method reader_leaves with an argument self.,def reader_leaves ( self ) :
2585,define the method get_resolved_arguments with 2 arguments: self and context.,"def get_resolved_arguments ( self , context ) :"
2586,from datetime import datetime into default name space.,from datetime import datetime
2587,"call the method __copy__ with an argument unpacked list self.dicts, return the result.",return self . __class__ ( * self . dicts )
2588,"call the method self.get_queryset, substitute field pk under the result at the index index for pk_value.",pk_value = self . get_queryset ( ) [ index ] . pk
2589,call the method self.validate_key with argument key.,self . validate_key ( key )
2590,"define the method render with 4 arguments: self, name, value and attrs set to None.","def render ( self , name , value , attrs = None ) :"
2591,define the function cut with 2 arguments value and arg.,"def cut ( value , arg ) :"
2592,if widget is an instance of NumberInput and string 'step' is not contained in widget.attrs.,"if isinstance ( widget , NumberInput ) and 'step' not in widget . attrs :"
2593,from __future__ import absolute_import into default name space.,from __future__ import absolute_import
2594,"if site is contained in sites2,",if site in sites2 :
2595,from django.apps import apps into default name space.,from django . apps import apps
2596,append obj to self.deleted_objects list.,self . deleted_objects . append ( obj )
2597,substitute body for self.body.,self . body = body
2598,from django.utils.module_loading import import_string into default name space.,from django . utils . module_loading import import_string
2599,"try,",try :
2600,"define the method enter_command with 3 arguments: self, command and token.","def enter_command ( self , command , token ) :"
2601,"get the next element of the iterable pattern_iter, assign the result for ch and escaped, respectively.","ch , escaped = next ( pattern_iter )"
2602,"if username is None substitute settings.EMAIL_HOST_USER for self.username, if not substitute username for self.username.",self . username = settings . EMAIL_HOST_USER if username is None else username
2603,"call the __bool__ method with argument self, on the return value of the type function with argument self, return the result.",return type ( self ) . __bool__ ( self )
2604,substitute None for pickled.,pickled = None
2605,"try,",try :
2606,"call the method urlresolvers.RegexURLResolver with raw literal string '^/' and urlconf as the arguments, substitute the result for resolver.","resolver = urlresolvers . RegexURLResolver ( r'^/' , urlconf )"
2607,call the method self_cache.delete_multi with argument list containing keys mapped through function l.,"self . _cache . delete_multi ( map ( l , keys ) )"
2608,"otherwise if t.contents equals a string 'comment',",elif t . contents == 'comment' :
2609,"of the obj object. if commit is true,",if commit :
2610,"if attrs is false, make it an empty dictionary.",attrs = attrs or { }
2611,"if not,",else :
2612,define the method handle_inspection with 2 argument: self and options.,"def handle_inspection ( self , options ) :"
2613,"decorator stringfilter,",@ stringfilter
2614,substitute self.none_value for self.year_none_value.,self . year_none_value = self . none_value
2615,substitute self.subject for value under the 'Subject' key of msg dictionary.,msg [ 'Subject' ] = self . subject
2616,"call the function popen_wrapper with an argument args, assign the result to msgs, errors and status, respectively.","msgs , errors , status = popen_wrapper ( args )"
2617,derive the class MultipleObjectsReturned from the Exception base class.,class MultipleObjectsReturned ( Exception ) :
2618,define the function striptags with an argument value.,def striptags ( value ) :
2619,"if file path sql_file exists,",if os . path . exists ( sql_file ) :
2620,"raise an NoReverseMatch exception with an argument string ""%s is not a registered namespace inside '%s'"",","raise NoReverseMatch ( ""%s is not a registered namespace inside '%s'"" % ( key , ':' . join ( resolved_path ) ) )"
2621,substitute the result for value. substitute value for the value under the name key of the self.cleaned_data dictionary.,self . cleaned_data [ name ] = value
2622,"call the method parser.next_token, substitute the result for token.",token = parser . next_token ( )
2623,substitute self.__offset.seconds for offset.,offset = self . __offset . seconds // 60
2624,"if KeyError exception is caught,",except KeyError :
2625,"for every path_to_remove in self.paths_to_remove,",for path_to_remove in self . paths_to_remove :
2626,"define the method delete_many with 3 arguments: self, keys, and version set to None.","def delete_many ( self , keys , version = None ) :"
2627,"replace '%s' in string ""Running post-migrate handlers for application %s"" with app_config.label, print it to the standard output.","print ( ""Running post-migrate handlers for application %s"" % app_config . label )"
2628,is_usable is boolean True.,is_usable = True
2629,"self.style.MIGRATE_HEADING, write the result to self.stdout. write string "" You should commit this migration but leave the old ones in place;"" to self.stdout.","self . stdout . write ( "" You should commit this migration but leave the old ones in place;"" )"
2630,"if e doesnt have an 'django_template_source' attribute,","if not hasattr ( e , 'django_template_source' ) :"
2631,"call the function format_html with 3 arguments: string '', self.error_class and return value of the function,","return format_html ( '' , self . error_class , format_html_join ( '' , '{0} ' , ( ( force_text ( e ) , ) for e in self ) ) )"
2632,from django.utils.dateformat import format and time_format into default name space.,"from django . utils . dateformat import format , time_format"
2633,"for every bwidget in self.widgets,",for widget in self . widgets :
2634,attrs is an empty dictionary.,attrs = { }
2635,"if contents is not None,",if contents is not None :
2636,raise an ValidationError with 2 arguments: value under the 'required' key of the self.error_messages dictionary and code set to 'required'.,"raise ValidationError ( self . error_messages [ 'required' ] , code = 'required' )"
2637,"define the method print_help with 3 arguments: self, prog_name and subcommand.","def print_help ( self , prog_name , subcommand ) :"
2638,if i equals to integer 0 and,if i == 0 and not is_writable ( npath ( base_path + '.mo' ) ) :
2639,substitute the result for the value under the NON_FIELD_ERRORS key of form._errors dictionary. delete entry from form.cleaned_data dictionary under the field key.,del form . cleaned_data [ field ]
2640,call the method self.end_serialization.,self . end_serialization ( )
2641,substitute regex for self.regex.,self . regex = regex
2642,call os.makedirs function with self._dir and hexadecimal 0o700 as arguments.,"os . makedirs ( self . _dir , 0o700 )"
2643,request_started is a instance of a Signal class.,request_started = Signal ( )
2644,if LookupError exception is caught.,except LookupError :
2645,from django.utils.module_loading import import_string into default name space.,from django . utils . module_loading import import_string
2646,"use the result as an argument for the call to the mark_safe function, return the result. call the function allow_lazy with 2 arguments: escapejs, six.text_type, substitute the result for escapejs.","escapejs = allow_lazy ( escapejs , six . text_type )"
2647,"define the method handle_raw_input with arguments: self, input_data, META, content_length, boundary and encoding set to None.","def handle_raw_input ( self , input_data , META , content_length , boundary , encoding = None ) :"
2648,"substitute the result for ipv4_re. validate_ipv4_address is a instance of a RegexValidator class, created with 3 arguments: ipv4_re,","validate_ipv4_address = RegexValidator ( ipv4_re , _ ( 'Enter a valid IPv4 address.' ) , 'invalid' )"
2649,define the method __str__ with argument self.,def __str__ ( self ) :
2650,"define the method __init__ with 3 arguments: self, setting and nodelist.","def __init__ ( self , setting , nodelist ) :"
2651,substitute record.exc_info for exc_info.,exc_info = record . exc_info
2652,"call the method __init__ from the base class of EmailBackend class, with arguments: unpacked list args and unpacked dictionary kwargs.","super ( EmailBackend , self ) . __init__ ( * args , ** kwargs )"
2653,__Y2 is a raw string '(?P\d{2})'.,__Y2 = r'(?P\d{2})'
2654,break the loop execution.,break
2655,"raise an CommandError with an argument string ""App '%s' does not have migrations (so squashmigrations on it makes no sense)"",","raise CommandError ( ""App '%s' does not have migrations (so squashmigrations on it makes no sense)"" % app_label )"
2656,"if value.__traceback__ is not tb,",if value . __traceback__ is not tb :
2657,"if six.PY3 is true,",if six . PY3 :
2658,"try,",try :
2659,"call the method self.__class__, substitute the result for result.",result = self . __class__ ( )
2660,"call the method self.data.weekday, increment the result by an integer 1, divide it with integer 7, return the reminder of the division.",return ( self . data . weekday ( ) + 1 ) % 7
2661,declared_fields is an instance of OrderedDict class.,declared_fields = OrderedDict ( )
2662,executor is an instance of the class MigrationExecutor created with an argument: value under the DEFAULT_DB_ALIAS key of the connections dictionary.,executor = MigrationExecutor ( connections [ DEFAULT_DB_ALIAS ] )
2663,"if ValueError exception is caught,",except ValueError :
2664,"try,",try :
2665,"call the function _add_doc with 2 arguments: get_unbound_function and string """"""Get the function out of a possibly unbound function"""""".","_add_doc ( get_unbound_function , """"""Get the function out of a possibly unbound function"""""" )"
2666,"if not, self.empty_value is an empty list. call the method __init__ with 2 arguments: unpacked list args and unpacked dictionary kwargs,","super ( TypedMultipleChoiceField , self ) . __init__ ( * args , ** kwargs )"
2667,substitute label for app_label.,app_label = label
2668,from os import path into default name space.,from os import path
2669,call the method __init__ with 2 arguments: self.states and string 'reg' from the base class of the class JsLexer.,"super ( JsLexer , self ) . __init__ ( self . states , 'reg' )"
2670,"while i is lesser than num_existing and first pflen elements of i-th element of existing equals prefixed,",while ( i < num_existing ) and ( existing [ i ] [ : pflen ] == prefixed ) :
2671,call the method self.check_migrations.,self . check_migrations ( )
2672,"called with an argument view_func. define the function _wrapped_view with 3 arguments: request, unpacked list args and unpacked dictionary kwargs.","def _wrapped_view ( request , * args , ** kwargs ) :"
2673,call the method parser.add_argument with 2 arguments: string '--template' and help set to string 'The path or URL to load the template from.'.,"parser . add_argument ( '--template' , help = 'The path or URL to load the template from.' )"
2674,define the method _set_size with arguments self and size.,"def _set_size ( self , size ) :"
2675,import module os.,import os
2676,"call the method self._lock, with the return value,",with self . _lock :
2677,return boolean False.,return False
2678,"try,",try :
2679,feed data to the parser p.,p . feed ( data )
2680,call the cursor.execute method with sql as argument.,cursor . execute ( sql )
2681,"call the method self.create_select with 6 arguments: name, self.month_field, value, month_val, choices and self.month_none_value,","html [ 'month' ] = self . create_select ( name , self . month_field , value , month_val , choices , self . month_none_value )"
2682,from django.core.management.color import no_style into default name space.,from django . core . management . color import no_style
2683,substitute nonlocal_root for a tuple with an element root.,"root , = nonlocal_root"
2684,"call the function timedelta with an argument seconds set to negative _time.altzone, substitute the result for self.DSTOFFSET.",self . DSTOFFSET = timedelta ( seconds = - _time . altzone )
2685,substitute years for self.years.,self . years = years
2686,"if not,",else :
2687,"call the method self.setlistdefault with an argument key, append value to the result.",self . setlistdefault ( key ) . append ( value )
2688,define the function boolean_check with an argument v.,def boolean_check ( v ) :
2689,do nothing.,pass
2690,"if auto_id is true and 'id' is not contained in attrs and 'id' is not contained in widget.attrs,",if auto_id and 'id' not in attrs and 'id' not in widget . attrs :
2691,do nothing.,pass
2692,substitute length of s for end.,end = len ( s )
2693,"formated with 3 elements: class_name, old_method_name and new_method_name, deprecation_warning and integer 2. set new_method_name attribute of the base object to old_method.","setattr ( base , new_method_name , old_method )"
2694,define the method close with argument self.,def close ( self ) :
2695,value under the cache_key key of the _format_cache dictionary is None.,_format_cache [ cache_key ] = None
2696,"settings.DEFAULT_CHARSET if the key doesnt exists and strings_only set to boolean True. call the Model._meta.get_field method with an argument field_name, substitute the result for field.",field = Model . _meta . get_field ( field_name )
2697,"call the method attachment.add_header with 3 arguments: string 'Content-Disposition', string 'attachment' and filename set to filename.","attachment . add_header ( 'Content-Disposition' , 'attachment' , filename = filename )"
2698,"if self.required is true and value is false,",if self . required and not value :
2699,substitute name for self.name.,self . name = name
2700,substitute self.data for value under the 'data' key of the defaults dictionary.,defaults [ 'data' ] = self . data
2701,"try,",try :
2702,from django.utils.deprecation import RemovedInDjango19Warning and RemovedInDjango20Warning into default name space.,"from django . utils . deprecation import RemovedInDjango19Warning , RemovedInDjango20Warning"
2703,"call the function _is_shorthand_ip with an argument ip_str, if it evaluates to false,",if not _is_shorthand_ip ( ip_str ) :
2704,"match regex time_re with value, substitute the result for match.",match = time_re . match ( value )
2705,create directories from the elements in filename.,os . makedirs ( filename )
2706,"call the method apps.get_app_configs, convert the result in a list, reverse the order of elements, substitute the result for app_configs.",app_configs = reversed ( list ( apps . get_app_configs ( ) ) )
2707,"remove config dictionary element under 'class' key, use it as an argument for the call to the method self.resolve,",klass = self . resolve ( config . pop ( 'class' ) )
2708,define the method __init__ with an argument self.,def __init__ ( self ) :
2709,"for every i in sequence of integers, from 0 to the result of the method self.total_form_count,","for i in range ( 0 , self . total_form_count ( ) ) :"
2710,append name to the value of under the app key of the commands_dict.,commands_dict [ app ] . append ( name )
2711,"for every bit in bits,",for bit in bits :
2712,"if string 'forloop' is contained in context,",if 'forloop' in context :
2713,"if OSError renamed to e, exception is caught,",except OSError as e :
2714,"call strip s of the surrounding whitespaces, substitute every occurrence of the whitespace in the trim_whitespace_re with previous result, return the result.","return trim_whitespace_re . sub ( ' ' , s . strip ( ) )"
2715,"decorator python_2_unicode_compatible,",@ python_2_unicode_compatible
2716,"for every post_callback in self._post_render_callbacks,",for post_callback in self . _post_render_callbacks :
2717,BLOCK_TAG_START is a string '{%'.,BLOCK_TAG_START = '{%'
2718,"call the method resultclass.mro, reverse the order of elements, for every type_ in the result.",for type_ in reversed ( resultclass . mro ( ) ) :
2719,from django.db import connection into default name space.,from django . db import connection
2720,"try,",try :
2721,"subtract day_of_year from i, if the result is smaller than the result of subtraction of weekday from integer 4,",if ( i - day_of_year ) < ( 4 - weekday ) :
2722,"return an instance of RequestContext class, created with 3 arguments: self._request, context and current_app set to self._current_app.","return RequestContext ( self . _request , context , current_app = self . _current_app )"
2723,"call the method create_token from the base class of the class DebugLexer, with 2 arguments: template_string and in_tag,","token = super ( DebugLexer , self ) . create_token ( token_string , in_tag )"
2724,substitute str for binary_type.,binary_type = str
2725,"from django.http.request import HttpRequest, QueryDict, RawPostDataException, UnreadablePostError and build_request_repr into default name space.","from django . http . request import ( HttpRequest , QueryDict , RawPostDataException , UnreadablePostError , build_request_repr )"
2726,substitute the value under the 'socket' key of options dictionary for value under the 'bindAddress' key of wsgi_opts dictionary.,"wsgi_opts [ 'bindAddress' ] = options [ ""socket"" ]"
2727,return changeset.,return changeset
2728,"try,",try :
2729,define the method item_attributes with 2 arguments self and item.,"def item_attributes ( self , item ) :"
2730,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
2731,return self.hashvalue.,return self . hashvalue
2732,"for every arg in s, call the function force_text with arg, encoding, strings_only and errors as arguments,","s = ' ' . join ( [ force_text ( arg , encoding , strings_only , errors ) for arg in s ] )"
2733,"define the function get_complete_version with in argument version, defaulting to None.",def get_complete_version ( version = None ) :
2734,"for every x in sequence of integer from integer 0 to length of data, append an empty string to a list, substitute the resulting list for initial.","initial = [ '' for x in range ( 0 , len ( data ) ) ]"
2735,"split ip_str into parts by ':', for every x in the result, calculate length of x, if any is smaller than integer 4,",if any ( len ( x ) < 4 for x in ip_str . split ( ':' ) ) :
2736,"if self.negate is true and val1 is not equal to val2, or if, self.negate is false and val1 equals val2,",if ( self . negate and val1 != val2 ) or ( not self . negate and val1 == val2 ) :
2737,define the method _handle_object with arguments self and node.,"def _handle_object ( self , node ) :"
2738,and code set to a string 'invalid_choice'. return self.parent_instance.,return self . parent_instance
2739,"if method self.validate_domain_part with an argument domain_part evaluates to true,",if self . validate_domain_part ( domain_part ) :
2740,"left justify string s in a field of width equal to the sum of length of s and reminder of the division of length of s by integer 4,","return base64 . urlsafe_b64decode ( s . ljust ( len ( s ) + len ( s ) % 4 , b'=' ) )"
2741,"call the self.get method with key and version set to version as arguments, return it if it is not None.","return self . get ( key , version = version ) is not None"
2742,"decorator stringfilter,",@ stringfilter
2743,"joining string '%r: %r' formated with k and v into a string, separated with ', ', use it to format a string '{%s}', return it. define the method clear with an argument self.",def clear ( self ) :
2744,num_sent is an integer 0.,num_sent = 0
2745,"try,",try :
2746,where '%s' is replaced with token.contents. assign the string 'reversed' to is_reversed and bits last elements.,is_reversed = bits [ - 1 ] == 'reversed'
2747,define the function parse_datetime with an argument value.,def parse_datetime ( value ) :
2748,return nothing.,return
2749,"and app_or_project if app_or_project equals to string 'app', if not, it is replaced with 'a' and app_or_project. call the method re.search with 2 arguments: raw string '^[_a-zA-Z]\w*$' and name, if it evaluates to false,","if not re . search ( r'^[_a-zA-Z]\w*$' , name ) :"
2750,substitute the middleware. define the function _decorator with an argument view_func.,def _decorator ( view_func ) :
2751,"unpacked list args2 and unpacked dictionary kwargs2, return the result. call the function bound_func with 2 arguments: unpacked list args and unpacked dictionary kwargs, return the result.","return bound_func ( * args , ** kwargs )"
2752,"raise CommandError exception with ""App '%s' does not have migrations (you cannot selectively sync unmigrated apps)"",","raise CommandError ( ""App '%s' does not have migrations (you cannot selectively sync unmigrated apps)"" % app_label )"
2753,"subtract i from len_values, substitute the result for value under the 'revcounter' key of the loop_dict dictionary.",loop_dict [ 'revcounter' ] = len_values - i
2754,"sum version and delta together, return the result.",return version + delta
2755,"if target is None,",if target is None :
2756,"if Exception exception is caught,",except Exception :
2757,define the _fd function with argument f.,def _fd ( f ) :
2758,"call the function six.text_type with an argument name, return the result.",return six . text_type ( name )
2759,define private method __getattr__ with self class instance and attr as the arguments.,"def __getattr__ ( self , attr ) :"
2760,derive the class InclusionNode form the base class TagHelperNode.,class InclusionNode ( TagHelperNode ) :
2761,from django.db.models.fields.related import ManyToManyField.,from django . db . models . fields . related import ManyToManyField
2762,"if t.token_type is not equal to TOKEN_COMMENT,",if t . token_type != TOKEN_COMMENT :
2763,"RemovedInDjango19Warning and stacklevel set to integer 2. if app_config.models_module is None,",if app_config . models_module is None :
2764,define the method __len__ with an argument self.,def __len__ ( self ) :
2765,"if title is an instance of list or tuple,","if isinstance ( title , ( list , tuple ) ) :"
2766,"substitute args, without the last element for args.",args = args [ : - 1 ]
2767,substitute name for new.,new = name
2768,"if first element of the url_fields is false,",if not url_fields [ 0 ] :
2769,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
2770,substitute package.__path__ for package_path.,package_path = package . __path__
2771,self.bcc is an empty list.,self . bcc = [ ]
2772,response.streaming_content is an empty list.,response . streaming_content = [ ]
2773,"if length of bits is lesser than integer 2,",if len ( bits ) < 2 :
2774,_mtimes is an empty dictionary.,_mtimes = { }
2775,"call the method media_property with an argument new_class, substitute the result for new_class.media.",new_class . media = media_property ( new_class )
2776,define the function abspathu with an argument path.,def abspathu ( path ) :
2777,define the method _delete with self and fname as arguments.,"def _delete ( self , fname ) :"
2778,"call the method self._css.keys, sort the result and substitute it for media.",media = sorted ( self . _css . keys ( ) )
2779,"call the method self.build_attrs with 2 arguments: attrs and name set to name, substitute the result for final_attrs.","final_attrs = self . build_attrs ( attrs , name = name )"
2780,substitute module for the value under the format key of the serializers dictionary.,serializers [ format ] = module
2781,import module warnings.,import warnings
2782,"name for base_name, top_dir for base_directory and docs_version for 'docs_version' and autoescape set to boolean False. from django.conf import settings into a default name space,",from django . conf import settings
2783,"raise an ValueError exception with an argument string ""dictionary doesn't specify a version"".","raise ValueError ( ""dictionary doesn't specify a version"" )"
2784,from django.forms.models import everything into default name space.,from django . forms . models import *
2785,import module re.,import re
2786,"define the function dec with an argument func,",def dec ( func ) :
2787,"if settings.USE_TZ is true,",if settings . USE_TZ :
2788,define the method __str__ with an argument self.,def __str__ ( self ) :
2789,return nothing.,return
2790,"define the method apply_response_fixes with self class instance, request and response as the arguments.","def apply_response_fixes ( self , request , response ) :"
2791,do nothing.,pass
2792,from logging import _checkLevel.,from logging import _checkLevel
2793,self._headers is an empty dictionary.,self . _headers = { }
2794,"define the method copy_plural_forms with arguments self, msgs and locale.","def copy_plural_forms ( self , msgs , locale ) :"
2795,"call the function force_bytes with an argument salt, substitute the result for salt.",salt = force_bytes ( salt )
2796,raise an ContextPopException.,raise ContextPopException
2797,"call the method build_request_repr with an argument self, return the result.",return build_request_repr ( self )
2798,"left justify value under the 'microsecond' key of the kw dictionary, in the field of width 6, fill the rest with '0',","kw [ 'microsecond' ] = kw [ 'microsecond' ] . ljust ( 6 , '0' )"
2799,"for every f in fields,",for f in fields :
2800,"created with arguments sys.stderr and self.style.ERROR. replace '%s' in string '%s: %s' with e.__class__.__name__ and e, respectively, write it to the stderr stream.","stderr . write ( '%s: %s' % ( e . __class__ . __name__ , e ) )"
2801,"call the method datetime.now, return the result.",return datetime . now ( )
2802,"substitute the result for self.literal. if ValueError exception is caught,",except ValueError :
2803,"get the value from META dictionary, under the 'HTTP_CONTENT_TYPE' key, if the key doesnt exist,","content_type = META . get ( 'HTTP_CONTENT_TYPE' , META . get ( 'CONTENT_TYPE' , '' ) )"
2804,"if las equals integer 1,",if last == 1 :
2805,"define the method __init__ with arguments self, argument list args and dictionary of arguments kwargs.","def __init__ ( self , * args , ** kwargs ) :"
2806,"return an string """".","return """""
2807,silent_variable_failure is an boolean True.,silent_variable_failure = True
2808,status_code is an integer 301.,status_code = 301
2809,"if data is not None or files is not None, self.is_bound is boolean True, otherwise it is boolean False.",self . is_bound = data is not None or files is not None
2810,"if self.match is not None,",if self . match is not None :
2811,"if not,",else :
2812,derive the class RenameMethodsBase from type base class.,class RenameMethodsBase ( type ) :
2813,import module time.,import time
2814,remove the first element from p_pattern.,p_pattern = p_pattern [ 1 : ]
2815,substitute char '0' for the value under the 'Content-Length' key of the response dictionary.,response [ 'Content-Length' ] = '0'
2816,define the function wrapped with 2 arguments: unpacked list args and unpacked dictionary kwargs.,"def wrapped ( * args , ** kwargs ) :"
2817,"and initial as a dictionary with 4 entries: result of self.total_form_count method for TOTAL_FORM_COUNT, result of self.initial_form_count method for INITIAL_FORM_COUNT, self.min_num for MIN_NUM_FORM_COUNT and self.max_num for MAX_NUM_FORM_COUNT. return form.",return form
2818,from django.conf import settings into default name space.,from django . conf import settings
2819,"join elements of base36 into a string, return it.",return '' . join ( base36 )
2820,"call the method token.split_contents, substitute the result without the first element for bits.",bits = token . split_contents ( ) [ 1 : ]
2821,"format the previous in a tuple, append the tuple to the response_headers. call the start_response function with force_str(status) method return value and response_headers as arguments.","start_response ( force_str ( status ) , response_headers )"
2822,define the function to_bytes with arguments val and encoding.,"def to_bytes ( val , encoding ) :"
2823,"if not,",else :
2824,"result of the call to the function _ with an argument string 'February' for 2, result of the call to the function _ with an argument string 'March' for 3, result of the call to the function _ with an argument string 'April' for 4, result of the call to the function _ with an argument string 'May' for 5, result of the call to the function _ with an argument string 'June' for 6, result of the call to the function _ with an argument string 'July' for 7, result of the call to the function _ with an argument string 'August' for 8, result of the call to the function _ with an argument string 'September' for 9, result of the call to the function _ with an argument string 'October' for 10, result of the call to the function _ with an argument string 'November' for 11, and result of the call to the function _ with an argument string 'December' for 12. MONTHS_3 is an dictionary with 12 entries: result of the call to the function _ with an argument string 'jan' for 1,","MONTHS_3 = { 1 : _ ( 'jan' ) , 2 : _ ( 'feb' ) , 3 : _ ( 'mar' ) , 4 : _ ( 'apr' ) , 5 : _ ( 'may' ) , 6 : _ ( 'jun' ) , 7 : _ ( 'jul' ) , 8 : _ ( 'aug' ) , 9 : _ ( 'sep' ) , 10 : _ ( 'oct' ) , 11 : _ ( 'nov' ) , 12 : _ ( 'dec' ) }"
2825,"if settings.USE_I18N is true,",if settings . USE_I18N :
2826,"if self.default_locale_path directory doesnt exists,",if not os . path . exists ( self . default_locale_path ) :
2827,call the method self.add_error with 2 arguments name and e.,"self . add_error ( name , e )"
2828,"if field_value is cotained in self.empty_values,",if field_value in self . empty_values :
2829,substitute space for end.,end = newline
2830,"if app_config.models_module is None,",if app_config . models_module is None :
2831,substitute link_prev for value under the PREV key of the link_next dictionary.,link_next [ PREV ] = link_prev
2832,"where string '%s' is replaced by mod_name and func_name, respectively. return view_func.",return view_func
2833,"if s is not an instance of the object six.string_types,","if not isinstance ( s , six . string_types ) :"
2834,"call the method self.add_truncation_text with 2 arguments: if end_index is greater than zero, first end_index elements of text,","return self . add_truncation_text ( text [ : end_index or 0 ] , truncate )"
2835,"call the method connection.introspection.table_names with an argument cursor, substitute the result for table_names.",table_names = connection . introspection . table_names ( cursor )
2836,return s.,return s
2837,"break from the loop execution,",break
2838,import module re.,import re
2839,"if not,",else :
2840,"if IndexError exception is caught,",except IndexError :
2841,"if num_loopvars is not equal to len_item,",if num_loopvars != len_item :
2842,"call the __init__ method from the base class of the class TemplateResponse, with 4 arguments: template, context, content_type, status.","super ( TemplateResponse , self ) . __init__ ( template , context , content_type , status )"
2843,"skip this loop iteration,",continue
2844,"define the method __new__ with 4 arguments: cls, name, bases and attrs.","def __new__ ( cls , name , bases , attrs ) :"
2845,"if app_name is an instance of BaseCommand,","if isinstance ( app_name , BaseCommand ) :"
2846,"if not,",else :
2847,"call the method text.encode with argument utf8_charset.output_charset, substitute the result for payload.",payload = text . encode ( utf8_charset . output_charset )
2848,"on the object under the db key of connections dictionary call the method ops.value_to_db_datetime with argument exp, substitute the result for the exp.",exp = connections [ db ] . ops . value_to_db_datetime ( exp )
2849,"define the method __init__ with 11 arguments: self, subject set to an empty string, body set to an empty string,","def __init__ ( self , subject = '' , body = '' , from_email = None , to = None , bcc = None , connection = None , attachments = None , headers = None , alternatives = None , cc = None ) :"
2850,"if not return boolean False. define the method add_fields with 3 arguments: self, form and index.","def add_fields ( self , form , index ) :"
2851,"if not,",else :
2852,"if ValidationError, renamed to e, exception is caught,",except ValidationError as e :
2853,"if not,",else :
2854,substitute value under the 'liveserver' key of the options dictionary for value under the 'DJANGO_LIVE_TEST_SERVER_ADDRESS' key of the os.environ dictionary.,os . environ [ 'DJANGO_LIVE_TEST_SERVER_ADDRESS' ] = options [ 'liveserver' ]
2855,args is a empty tuple.,args = ( )
2856,"call the method parser.parse with an argument tuple with an element string 'endverbatim', substitute the result for nodelist.","nodelist = parser . parse ( ( 'endverbatim' , ) )"
2857,define the method add_arguments with arguments self and parser.,"def add_arguments ( self , parser ) :"
2858,"call the method self._handle_object with an argument node, return the result.",return self . _handle_object ( node )
2859,"where '%s' is replaced with self.__class__.__name__. if self doesnt have an '_ordering' attribute,","if not hasattr ( self , '_ordering' ) :"
2860,convert settings.LOCALE_PATHS into a list and extend list self.locale_paths with it.,self . locale_paths . extend ( list ( settings . LOCALE_PATHS ) )
2861,"call the method popitem from the base class of the class QueryDict, return the result.","return super ( QueryDict , self ) . popitem ( )"
2862,define the function wrapper with 2 arguments: unpacked list args and unpacked dictionary kwargs.,"def wrapper ( * args , ** kwargs ) :"
2863,"evaluate self._is_expired method with f as argument, if the result is false,",if not self . _is_expired ( f ) :
2864,"if not,",else :
2865,"call the __getstate__ method from the base class of the class SimpleTemplateResponse, substitute the result for obj_dict.","obj_dict = super ( SimpleTemplateResponse , self ) . __getstate__ ( )"
2866,import module warnings.,import warnings
2867,call the method self.characters with an argument contents.,self . characters ( contents )
2868,"if data in self.empty_values is true,",if data in self . empty_values :
2869,"self._post is an instance of QueryDict class, created with an empty string and mutable set to boolean True.","self . _post = QueryDict ( '' , mutable = True )"
2870,derive the class ConvertingTuple from tuple base class.,class ConvertingTuple ( tuple ) :
2871,lock is an instance of RLock class.,lock = RLock ( )
2872,"if value under the 'liveserver' key of the options dictionary is not None,",if options . get ( 'liveserver' ) is not None :
2873,"define the function emit_pre_migrate_signal with 4 arguments: create_models, verbosity, interactive and db.","def emit_pre_migrate_signal ( create_models , verbosity , interactive , db ) :"
2874,"if not,",else :
2875,"substitute date_check elements to uclass, lookup, field and unique_for, respectively.","uclass , lookup , field , unique_for = date_check"
2876,import module time.,import time
2877,and unpacked dictionary kwargs. substitute queryset for self.queryset.,self . queryset = queryset
2878,substitute content for self.content.,self . content = content
2879,append tok to c.,c . append ( tok )
2880,continue with the next iteration of the for loop.,continue
2881,"put the results into a list, substitute self.locale_paths for it. substitute first element of self.locale_paths for self.default_locale_path.",self . default_locale_path = self . locale_paths [ 0 ]
2882,"if errors is True,",if errors :
2883,"call the method _format_modules_cache.setdefault with 2 arguments: lang and list created out of the results of the function,","modules = _format_modules_cache . setdefault ( lang , list ( iter_format_modules ( lang , settings . FORMAT_MODULE_PATH ) ) )"
2884,"if length of args is smaller than integer 2,",if len ( args ) < 2 :
2885,"call the function get_default_timezone, use the result as an argument for the call to the function _get_timezone_name, return the result.",return _get_timezone_name ( get_default_timezone ( ) )
2886,"use the result as the argument for the call to the messages.update function. update messages dictionary with error_messages, if it exists, if not don't update it.",messages . update ( error_messages or { } )
2887,substitute self for retval.,retval = self
2888,"substitute elements of middle from the beginning to the negative length of punctuation, for middle.",middle = middle [ : - len ( punctuation ) ]
2889,"call the function datetime with an argument unpacked list kw, return the result.",return datetime ( * kw )
2890,"for every fixture_label in fixture_labels,",for fixture_label in fixture_labels :
2891,"join the current working directory and name into a file path, substitute it for top_dir.","top_dir = path . join ( os . getcwd ( ) , name )"
2892,sign is a string '-'.,sign = '-'
2893,"concatenate path and string '.%s', append the result to format_module_path.",format_locations . append ( path + '.%s' )
2894,inner_result and inner_args are empty lists.,"inner_result , inner_args = [ ] , [ ]"
2895,"if value under the 'list_tags' key of options dictionay is true,",if options . get ( 'list_tags' ) :
2896,"WRAPPING_PUNCTUATION is a list with 6 elements: tuple with 2 elements: '(' and ')', tuple with 2 elements: '<' and '>',","WRAPPING_PUNCTUATION = [ ( '(' , ')' ) , ( '<' , '>' ) , ( '[' , ']' ) , ( '<' , '>' ) , ( '""' , '""' ) , ( '\'' , '\'' ) ]"
2897,from django.utils.crypto import constant_time_compare and salted_hmac into default name space.,"from django . utils . crypto import constant_time_compare , salted_hmac"
2898,"for every name in handlers,",for name in handlers :
2899,logger.handlers is an empty list.,logger . handlers = [ ]
2900,"if sublist_item is true,",if sublist_item :
2901,call the method self._cache.disconnect_all.,self . _cache . disconnect_all ( )
2902,do nothing.,pass
2903,from django.utils.synch import RWLock into default name space.,from django . utils . synch import RWLock
2904,"define the method led with 3 arguments self, left and parser.","def led ( self , left , parser ) :"
2905,"call the method self.validate_number with an argument number, substitute it for number.",number = self . validate_number ( number )
2906,"call the function warnings.warn with an argument string ""``--natural`` is deprecated; use ``--natural-foreign`` instead."",","warnings . warn ( ""``--natural`` is deprecated; use ``--natural-foreign`` instead."" , RemovedInDjango19Warning )"
2907,VARIABLE_TAG_END is a string '}}'.,VARIABLE_TAG_END = '}}'
2908,substitute c_void_p for PVOID.,PVOID = c_void_p
2909,return an empty string.,return ''
2910,substitute name for self.name.,self . name = name
2911,bytes_read is integer 0.,bytes_read = 0
2912,"if translators_comment_start is not None and lineno is greater than or equal to translators_comment_start,",if translators_comment_start is not None and lineno >= translators_comment_start :
2913,"call the method b64_decode with an argument base64, substitute the result for data.",data = b64_decode ( base64d )
2914,"convert fist p elements of locale to lowercase, append '_' to it,",return locale [ : p ] . lower ( ) + '-' + locale [ p + 1 : ] . lower ( )
2915,derive the class CallbackFilter from logging.Filter base class.,class CallbackFilter ( logging . Filter ) :
2916,output is an empty string.,output = ''
2917,define the method utcoffset with 2 arguments self and dt.,"def utcoffset ( self , dt ) :"
2918,"append string '_directory' to app_or_project, substitute it for base_directory.",base_directory = '%s_directory' % app_or_project
2919,define the method choice with 2 arguments: self and obj.,"def choice ( self , obj ) :"
2920,"format_html called with 3 arguments: string ' ', return value of the function self.absolute_path called with an argument path and medium, for every medium in media and for every path in value under the medium key of the self._css dictionary. define the method absolute_path with 3 arguments self, path and prefix set to None.","def absolute_path ( self , path , prefix = None ) :"
2921,"if not,",else :
2922,"remove config dictionary element under '()' key, substitute it for c.",c = config . pop ( '()' )
2923,"instantiate ValidationError class with an argument self.data, return its field error_list.",return ValidationError ( self . data ) . error_list
2924,define the method Y with an argument self.,def Y ( self ) :
2925,append a tuple containing 2 elements: model and deps to model_dependencies.,"model_dependencies . append ( ( model , deps ) )"
2926,"for every name in bits from the start index 1 to the end index negative 2,",for name in bits [ 1 : - 2 ] :
2927,"if queryset is None,",if queryset is None :
2928,"try,",try :
2929,"if dirname is true, return dirname converted to a string and surounded by single quotes, if not return string 'absolute path'.","return ""'%s'"" % dirname if dirname else 'absolute path'"
2930,"call the method self.main_help_text with an argument commands_only set to boolean True, append new line to it, write it to sys.stdout.",sys . stdout . write ( self . main_help_text ( commands_only = True ) + '\n' )
2931,"if name is contained in MEDIA_TYPES,",if name in MEDIA_TYPES :
2932,from collections import OrderedDict into default name space.,from collections import OrderedDict
2933,"if not,",else :
2934,"if found is true,",if found :
2935,substitute sys.maxsize for MAXSIZE.,MAXSIZE = sys . maxsize
2936,"call the method self.get_renderer with 4 arguments: name, value, attrs and choices, call the render method on the result, return the result.","return self . get_renderer ( name , value , attrs , choices ) . render ( )"
2937,element of data at the index last equals to newline bytes character.,if data [ last : last + 1 ] == b'\n' :
2938,"call the function format_html with 3 arguments: string ('', return value of the function flatatt,","return format_html ( '' , flatatt ( final_attrs ) , force_text ( value ) )"
2939,"decorator stringfilter,",@ stringfilter
2940,from django.conf import settings into default name space.,from django . conf import settings
2941,"substitute the result for self.event_stream. remove the 'using' key from the options dictionary, substitute the return value for self.db, if the key doesnt exists substitute","self . db = options . pop ( 'using' , DEFAULT_DB_ALIAS )"
2942,"try,",try :
2943,"call the method copy.copy with an argument self, return the result.",return copy . copy ( self )
2944,"if Resolver404 exception is caught,",except Resolver404 :
2945,"if auto_id is true and '%s' is contained in result of the call to the function smart_text with an argument auto_id,",if auto_id and '%s' in smart_text ( auto_id ) :
2946,"dest set to 'format' and help is a string 'Specifies the output serialization format for fixtures.'. call the method parser.add_argument with 5 arguments: string '--indent', default set to None, dest set to 'indent',","parser . add_argument ( '--indent' , default = None , dest = 'indent' , type = int , help = 'Specifies the indent level to use when pretty-printing output.' )"
2947,"interactive set to boolean False, database set to db, reset_sequences set to boolean False, inhibit_post_migrate set to boolean True. if self.verbosity is greater or equal to integer 1,",if self . verbosity >= 1 :
2948,substitute result for value under the id of self key of memo dictionary.,memo [ id ( self ) ] = result
2949,substitute result for value under key key of self dictionary.,self [ key ] = result
2950,substitute callable for callable.,callable = callable
2951,"if number is lesser than integer 1,",if number < 1 :
2952,from threading import Lock into default name space.,from threading import Lock
2953,substitute stream for self._stream.,self . _stream = stream
2954,raise an ValueError exception with an argument string 'No handler found with name %r' formated with name.,raise ValueError ( 'No handler found with ' 'name %r' % name )
2955,do nothing.,pass
2956,indent contain tabs number of tab character.,indent = '\t' * tabs
2957,"if self doesnt have an attribute '_fqdn',","if not hasattr ( self , '_fqdn' ) :"
2958,"append ext to the end of it, substitute the resulting list for name. substitute name for self._name.",self . _name = name
2959,define the method add_arguments with 2 arguments: self and parser.,"def add_arguments ( self , parser ) :"
2960,"if pattern.app_name is true,",if pattern . app_name :
2961,set k attribute of cls object to meth.,"setattr ( cls , k , meth )"
2962,"if widgets is true and f.name is contained in widgets,",if widgets and f . name in widgets :
2963,substitute _ for ret.,ret = _
2964,return boolean False.,return False
2965,self.registered_checks is an empty list.,self . registered_checks = [ ]
2966,"if value is false,",if not value :
2967,call the method handler.addQuickElement with 2 arguments: string 'subtitle' and value under the 'subtitle' key of the self.feed dictionary.,"handler . addQuickElement ( ""subtitle"" , self . feed [ 'subtitle' ] )"
2968,if key starts with self.prefix.,if key . startswith ( self . prefix ) :
2969,"decorator stringfilter,",@ stringfilter
2970,from django.utils.deprecation import RenameMethodsBase and RemovedInDjango19Warning into default name space.,"from django . utils . deprecation import RenameMethodsBase , RemovedInDjango19Warning"
2971,call the method self.write with 2 arguments: s and encoding.,"self . write ( s , encoding )"
2972,from datetime import date as real_date and datetime as real_datetime into default name space.,"from datetime import date as real_date , datetime as real_datetime"
2973,define the function Deserializer with arguments stream_or_string and unpacked dictionary options.,"def Deserializer ( stream_or_string , ** options ) :"
2974,return value under the key key of d dictionary.,return d [ key ]
2975,"increment i by integer 1,",i += 1
2976,return value under the name key of the sys.modules dictionary.,return sys . modules [ name ]
2977,"if count2 does not equals to integer 0,",if count2 != 0 :
2978,"if forms_valid is true and call to the method self.non_form_errors, evaluates to false, return boolean True, otherwise return False.",return forms_valid and not self . non_form_errors ( )
2979,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
2980,define the function unescape_entities with an argument text.,def unescape_entities ( text ) :
2981,"try,",try :
2982,"call the __init__ method of the base class of the class URLValidator, with unpacked dictionary kwargs as argument.","super ( URLValidator , self ) . __init__ ( ** kwargs )"
2983,"define the method delete with self class instance, key and version defaulting to None as arguments.","def delete ( self , key , version = None ) :"
2984,"from django.forms.widgets import Media, MediaDefiningClass, TextInput and Textarea into default name space.","from django . forms . widgets import Media , MediaDefiningClass , TextInput , Textarea"
2985,"define the method __init__ with 3 arguments: self, attrs set to None and render_value set to boolean False.","def __init__ ( self , attrs = None , render_value = False ) :"
2986,"sum the result of the method s.get_data and s.rawdata, return the result.",return s . get_data ( ) + s . rawdata
2987,break from the smallest enclosing loop.,break
2988,skip this loop iteration.,continue
2989,call the function import_module with an argument mod_name.,mod = import_module ( mod_name )
2990,substitute tuple with 2 elements: bz2.BZ2File and string 'r' for value under the 'bz2' key of the self.compression_formats dictionary.,"self . compression_formats [ 'bz2' ] = ( bz2 . BZ2File , 'r' )"
2991,"if self.object is not an instance of list type,","if not isinstance ( self . object_list , list ) :"
2992,"define the method set_many with arguments, self, data, timeout defaulting to DEFAULT_TIMEOUT and version set to None.","def set_many ( self , data , timeout = DEFAULT_TIMEOUT , version = None ) :"
2993,nodelist_empty is None.,nodelist_empty = None
2994,"call the method parser.next_token, substitute the result for token.",token = parser . next_token ( )
2995,define the method _resolve_lookup with 2 arguments: self and context.,"def _resolve_lookup ( self , context ) :"
2996,"if formfield_callback is None,",if formfield_callback is None :
2997,"define the function become_daemon with 4 arguments: our_home_dir set to '.', out_log set to a string '/dev/null',","def become_daemon ( our_home_dir = '.' , out_log = '/dev/null' , err_log = '/dev/null' , umask = 0o022 ) :"
2998,"compare is a lambda function with arguments self, a and b, return value is boolean true if a is lesser than b, otherwise is false.","compare = lambda self , a , b : a < b"
2999,define the function _load_serializers.,def _load_serializers ( ) :
3000,"if bytes_read is greater than rollback,",if bytes_read > rollback :
3001,"formated with string created by joining elements of result of the function re.escape with an argument x, with separator '|', for every x in DOTS, and re.DOTALL, substitute the result for hard_coded_bullets_re. call the function re.compile with raw string '(?:(?: |\s| )*?
\s*)+\Z', substitute the result for trailing_empty_content_re.",trailing_empty_content_re = re . compile ( r'(?:(?: |\s| )*?
\s*)+\Z' )
3002,return boolean True.,return True
3003,self.objects is an empty list.,self . objects = [ ]
3004,"if m and n are not None,",if m is not None and n is not None :
3005,call the function add_to_builtins with an argument string 'django.template.loader_tags'.,add_to_builtins ( 'django.template.loader_tags' )
3006,"for every filename in filenames,",for filename in filenames :
3007,do nothing.,pass
3008,substitute windll.kernel32.LockFileEx for LockFileEx.,LockFileEx = windll . kernel32 . LockFileEx
3009,define the method __getitem__ with 2 arguments: self and header.,"def __getitem__ ( self , header ) :"
3010,self._ordering is an empty list.,self . _ordering = [ ]
3011,append model to app_list_value.,app_list_value . append ( model )
3012,"if self.cmd._called_from_command_line is true,",if self . cmd . _called_from_command_line :
3013,"if self.dry_run is false,",if not self . dry_run :
3014,define the method __setstate__ with 2 arguments: self and obj_dict.,"def __setstate__ ( self , obj_dict ) :"
3015,"if name is contained in existing,",if name in existing :
3016,"try,",try :
3017,has_bz2 is boolean False.,has_bz2 = False
3018,substitute str_number and an empty string for int_part and dec_part.,"int_part , dec_part = str_number , ''"
3019,"if value under the 'language' key of the self.feed dictionary is not None,",if self . feed [ 'language' ] is not None :
3020,"define the method _has_changed with 3 arguments: self, initial and data.","def _has_changed ( self , initial , data ) :"
3021,"call the function get_internal_wsgi_application, return the result.",return get_internal_wsgi_application ( )
3022,"if commit is true,",if commit :
3023,is_localized is boolean False.,is_localized = False
3024,return None.,return None
3025,"return an empty string,",return ''
3026,"if self.fail_silently is boolean True,",if self . fail_silently :
3027,"return a string ""UTC"".","return ""UTC"""
3028,do nothing.,pass
3029,from django.utils.translation import ugettext_lazy into default name space.,from django . utils . translation import ugettext_lazy
3030,call the method self.validate with an argument value.,self . validate ( value )
3031,"use the result as an argument for the call to the function force_text, return the result. call the function allow_lazy with 2 arguments: urlunquote and six.text_type, substitute the result for urlunquote.","urlunquote = allow_lazy ( urlunquote , six . text_type )"
3032,do nothing.,pass
3033,"if settings.USE_L10N is true, substitute settings.USE_THOUSAND_SEPARATOR for use_grouping,",use_grouping = settings . USE_L10N and settings . USE_THOUSAND_SEPARATOR
3034,"if ImportError exception is caught,",except ImportError :
3035,delete _active.value.,del _active . value
3036,from inspect import getargspec and getcallargs into default name space.,"from inspect import getargspec , getcallargs"
3037,substitute schemes for self.schemes.,self . schemes = schemes
3038,define the method content with 2 arguments: self and value.,"def content ( self , value ) :"
3039,remove the old_file_name file.,os . remove ( old_file_name )
3040,"if OSError, renamed to e, exception is caught,",except OSError as e :
3041,call the method os._exit with an argument integer 1.,os . _exit ( 1 )
3042,"4 for 'h', 4 for 'i', 4 for 'j', 5 for 'k', 5 for 'l', 5 for 'm', 6 for 'n', 6 for 'o', 6 for 'p', 7 for 'q', 7 for 'r', 7 for 'r', 7 for 's', 7 for 't', 8 for 't', 8 for 'u', 8 for 'v', 9 for 'w', 9 for 'x', 9 for 'y' and 9 for 'z'. for every c in phone converted to lowercase, join the value under the c key of the char2number dictionary into a string, return it.","return '' . join ( char2number . get ( c , c ) for c in phone . lower ( ) )"
3043,call the method self.validate with an argument display_num_errors set to boolean True.,self . validate ( display_num_errors = True )
3044,trans_real._translations is an empty dictionary.,trans_real . _translations = { }
3045,"otherwise if ch equals a string '^',","elif ch == ""^"" :"
3046,"call the function os.path.basename with an argument fixture_file, use the result as an argument for the call to the method,","_ , ser_fmt , cmp_fmt = self . parse_name ( os . path . basename ( fixture_file ) )"
3047,define the initialization function __init__ with self class instance and params as arguments.,"def __init__ ( self , params ) :"
3048,if s is an instance of an object bytes.,"if isinstance ( s , bytes ) :"
3049,"call the function warnings.warn with 3 arguments: string ""get_declared_fields is deprecated and will be removed in Django 1.9."",","warnings . warn ( ""get_declared_fields is deprecated and will be removed in Django 1.9."" , RemovedInDjango19Warning , stacklevel = 2 , )"
3050,if o is an instance of datetime.datetime object.,"if isinstance ( o , datetime . datetime ) :"
3051,from django.utils import six into default name space.,from django . utils import six
3052,file_field_list is an empty list.,file_field_list = [ ]
3053,append f.name to exclude.,exclude . append ( f . name )
3054,create an iterator out of x.,iter ( x )
3055,"if o.microsecond is true,",if o . microsecond :
3056,substitute choices for self.choices.,self . choices = choices
3057,import module datetime.,import datetime
3058,return boolean False.,return False
3059,"join statements into a string, separated by newline characters, return it.",return '\n' . join ( statements )
3060,"and help='Raise on exception'. call the method parser.add_option with 5 arguments: string '--no-color', action set to a string 'store_true',","parser . add_option ( '--no-color' , action = 'store_true' , dest = 'no_color' , default = False , help = ""Don't colorize the command output."" )"
3061,define the method end_object with arguments self and obj.,"def end_object ( self , obj ) :"
3062,set attr.name attribute of the Module_six_moves_urllib_request object to attr.,"setattr ( Module_six_moves_urllib_request , attr . name , attr )"
3063,"call the method stat.S_IMODE with an argument st.st_mode, calculate binary OR with the result and stat.S_IWUSR, as operands,",new_permissions = stat . S_IMODE ( st . st_mode ) | stat . S_IWUSR
3064,"decorator method register.tag with an argument 'include',",@ register . tag ( 'include' )
3065,from django.core.management import call_command into default name space.,from django . core . management import call_command
3066,"if not,",else :
3067,define the method run_shell with an arguments self and shell set to None.,"def run_shell ( self , shell = None ) :"
3068,"substitute elements of middle from the beginning to the negative length of closing, for middle.",middle = middle [ : - len ( closing ) ]
3069,substitute first element of renamed_method for old_method_name.,old_method_name = renamed_method [ 0 ]
3070,yield value under key key of self dictionary.,yield self [ key ]
3071,skip this loop iteration.,continue
3072,"define the function model_to_dict with 3 arguments: instance, fields set to None and exclude set None.","def model_to_dict ( instance , fields = None , exclude = None ) :"
3073,substitute content for self.content.,self . content = content
3074,"and e.level is lesser than checks.CRITICAL. append e to criticals list for every e in all_issues, if checks.CRITICAL is lesser than or equal to e.level.",criticals = [ e for e in all_issues if checks . CRITICAL <= e . level ]
3075,"if ValueError exception is caught,",except ValueError :
3076,define the method _resolve with an argument self.,def _resolve ( self ) :
3077,substitute offset.seconds for offset.,offset = offset . seconds // 60
3078,"try,",try :
3079,"call the method self._archive_cls with an argument file, call the result with an argument file, substitute the result for self._archive.",self . _archive = self . _archive_cls ( file ) ( file )
3080,"call the function mark_safe with an argument value, return the result.",return mark_safe ( value )
3081,"for every val in value call the function smart_text with an argument val, return the results in a lit.",return [ smart_text ( val ) for val in value ]
3082,define the function iriencode with an argument value.,def iriencode ( value ) :
3083,call the function copystat with old_file_name and new_file_name as arguments.,"copystat ( old_file_name , new_file_name )"
3084,"if not, sself.empty_value is an empty string. call the method __init__ with 2 arguments: unpacked list args and unpacked dictionary kwargs,","super ( TypedChoiceField , self ) . __init__ ( * args , ** kwargs )"
3085,substitute flags for self.flags.,self . flags = flags
3086,"and sorted return value of the items of the attrs dictionary, and second time with 3 arguments: an empty string, string ' {0}', and sorted list of boolean_attrs elements, concatenate the results and return the resulting list. python_2_unicode_compatible decorator,",@ python_2_unicode_compatible
3087,substitute value under the name key of the toks dictionary for tok.,tok = toks [ name ]
3088,write it for self.stderr. exit the program with the integer 2 as exit code.,sys . exit ( 2 )
3089,"call the method self.style.NOTICE with string "" Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them."" as an argument, use the result as an argument for the call to the self.stdout.write method.","self . stdout . write ( self . style . NOTICE ( "" Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them."" ) )"
3090,"call the fastcgi_help function, return the result.",return fastcgi_help ( )
3091,"join app_config.path and string 'locale' into a file path, substitute it for localedir.","localedir = os . path . join ( app_config . path , 'locale' )"
3092,"call the function digest, substitute the filed digest_size of the result for hlen.",hlen = digest ( ) . digest_size
3093,"msg is a string ""Invalid HTTP_HOST header: %r."", replace '%r' with host.","msg = ""Invalid HTTP_HOST header: %r."" % host"
3094,call the method unhandled_params.remove with an argument param.,unhandled_params . remove ( param )
3095,define the method get_parent with 2 arguments self and context.,"def get_parent ( self , context ) :"
3096,"if not,",else :
3097,append string 'Field renamed to remove unsuitable characters.' to field_notes.,field_notes . append ( 'Field renamed to remove unsuitable characters.' )
3098,define the method get_data with an argument self.,def get_data ( self ) :
3099,"call the method field_stream.read, substitute the result for raw_data.",raw_data = field_stream . read ( )
3100,substitute conditional_escape for escaper.,escaper = conditional_escape
3101,"meta is an instance of a class named 'Meta', derived from the object base class, without any fields.","meta = type ( str ( 'Meta' ) , ( object , ) , { } )"
3102,"and return value of the field.get_internal_type method for 'type'. if field.name attribute of obj is not None,","if getattr ( obj , field . name ) is not None :"
3103,"if kwds is true,",if kwds :
3104,"call the method tf.format with an argument format_string, return the result.",return tf . format ( format_string )
3105,"or if current_version is greater than (3,0), but smaller than (3,2,3), otherwise set use_workaround to boolean False. substitute HTMLParseError from the module _html_parser for HTMLParseError.",HTMLParseError = _html_parser . HTMLParseError
3106,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
3107,"if ValidationError renamed to e, exception is caught,",except ValidationError as e :
3108,return nothing.,return
3109,"assign the result to the value under the string "".moves.urllib_request"" appended to __name__ key of the sys.modules dictionary, and to the value under the string "".moves.urllib.request"" appended to __name__ key of the sys.modules dictionary. derive class Module_six_moves_urllib_response from the _LazyModule base class.",class Module_six_moves_urllib_response ( _LazyModule ) :
3110,"get the value under the 'tags' key of the options dictionary, if it exists substitute it for tags, if not, tags is None.","tags = options . get ( 'tags' , None )"
3111,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
3112,"if arg is None,",if arg is None :
3113,"format self.month_field string with name, use it as the key for the data dictionary, substitute the result for m.",m = data . get ( self . month_field % name )
3114,call the method handler.addQuickElement with 2 arguments: string 'uri' and value under the 'author_link' key of the self.feed dictionary.,"handler . addQuickElement ( ""uri"" , self . feed [ 'author_link' ] )"
3115,write content to new_file file.,new_file . write ( content )
3116,"call the function debug.technical_404_response with request and e as arguments, assign the result to response.","response = debug . technical_404_response ( request , e )"
3117,"define the method __init__ with 7 arguments: self, regex, max_length set to None, min_length set to None, error_message set to None,","def __init__ ( self , regex , max_length = None , min_length = None , error_message = None , * args , ** kwargs ) :"
3118,return response.,return response
3119,"if self._delegate_bytes and six.PY2 are both true,",if self . _delegate_bytes and six . PY2 :
3120,"increment pos by one, substitute the result for last.",last = pos + 1
3121,"covert to lowercase locale elements from (p+1)-th index to the end, append it to the previous result, return it. if not,",else :
3122,from django.utils.safestring import mark_safe into default name space.,from django . utils . safestring import mark_safe
3123,substitute _itervalues for itervalues.,itervalues = _itervalues
3124,"return dictionary created with tuples with 2 elements: key and value under the key key of self dictionary, for every key in self.","return dict ( ( key , self [ key ] ) for key in self )"
3125,"raise an self.error with 2 arguments: None and string ""Unclosed tags: %s "",","raise self . error ( None , ""Unclosed tags: %s "" % ', ' . join ( parse_until ) )"
3126,substitute next for advance_iterator.,advance_iterator = next
3127,import module django.core.checks.model_checks.,import django . core . checks . model_checks
3128,"if s is the instance of the object six.text_type,","if isinstance ( s , six . text_type ) :"
3129,"try,",try :
3130,from django.utils.translation import ugettext as _ into default name space.,from django . utils . translation import ugettext as _
3131,delete first element of bits.,del bits [ : 1 ]
3132,"call the function allow_lazy with an argument words, substitute the result for words.",words = allow_lazy ( words )
3133,use_func is boolean True.,use_func = True
3134,"if prefix is true, substitute it for self.prefix, otherwise call the method self.get_default_prefix,",self . prefix = prefix or self . get_default_prefix ( )
3135,from django.utils import six into default name space.,from django . utils import six
3136,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3137,"call the function get_format with an argument string 'DECIMAL_SEPARATOR', substitute the result for decimal_separator.",decimal_separator = get_format ( 'DECIMAL_SEPARATOR' )
3138,"for every module_to_search in args,",for module_to_search in args :
3139,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3140,"join output into a string, separated by newline characters, use it as an argument for the call to the mark_safe, return the result.",return mark_safe ( '\n' . join ( output ) )
3141,"if field is contained in form.cleaned_data,",if field in form . cleaned_data :
3142,from django.conf import settings into default namespace.,from django . conf import settings
3143,"if not,",else :
3144,"call the method execute form the base class of the class Command, with 2 arguments: unpacked list args and unpacked dictionary options.","super ( Command , self ) . execute ( * args , ** options )"
3145,"raise an TemplateSyntaxError exception with an argument string ""Named cycle '%s' does not exist"", where '%s' is replaced with name.","raise TemplateSyntaxError ( ""Named cycle '%s' does not exist"" % name )"
3146,value is an empty string.,value = ''
3147,substitute sys.platform for plat.,plat = sys . platform
3148,"if exception OSError occurred,",except OSError :
3149,"if template has an attribute 'render',","if not hasattr ( template , 'render' ) :"
3150,"compare is a lambda function with arguments self, a and b, return value is boolean true if a is greater than b, otherwise is false.","compare = lambda self , a , b : a > b"
3151,"use the result as an argument for the call to the function iri_to_uri, return the result. call the function lazy with arguments reverse and str, substitute the results for reverse_lazy.","reverse_lazy = lazy ( reverse , str )"
3152,"raise an TemplateSyntaxError with an argument string ""'autoescape' tag requires exactly one argument."".","raise TemplateSyntaxError ( ""'autoescape' tag requires exactly one argument."" )"
3153,"if return value of the self.is_secure is false and server port is not equal to string '80', join host and server_port into a string, separated with ':', substitute the result for host.","host = '%s:%s' % ( host , server_port )"
3154,"decorator function receiver with an argument setting_changed,",@ receiver ( setting_changed )
3155,"if not,",else :
3156,all_date_checks is union of all_date_checks set and date_checks set.,all_date_checks = all_date_checks . union ( set ( date_checks ) )
3157,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3158,return ret.,return ret
3159,return the length of self.object_list.,return len ( self . object_list )
3160,call the method input with an argument msg and store the result in confirm.,confirm = input ( msg )
3161,skip this loop iteration.,continue
3162,return s.,return s
3163,"try,",try :
3164,return boolean False.,return False
3165,"from django.template.base import ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END, BLOCK_TAG_START, COMMENT_TAG_END, COMMENT_TAG_START,","from django . template . base import ( ALLOWED_VARIABLE_CHARS , BLOCK_TAG_END , BLOCK_TAG_START , COMMENT_TAG_END , COMMENT_TAG_START , FILTER_ARGUMENT_SEPARATOR , FILTER_SEPARATOR , SINGLE_BRACE_END , SINGLE_BRACE_START , TOKEN_BLOCK , TOKEN_COMMENT , TOKEN_TEXT , TOKEN_VAR , TRANSLATOR_COMMENT_MARK , UNKNOWN_SOURCE , VARIABLE_ATTRIBUTE_SEPARATOR , VARIABLE_TAG_END , VARIABLE_TAG_START , filter_re , tag_re )"
3166,define the method add_arguments with self and parser.,"def add_arguments ( self , parser ) :"
3167,"otherwise call the method table2model with second element of the i-th row of relations and substitute it for rel_to. if rel_to is contained in known_models,",if rel_to in known_models :
3168,define the method __getstate__ with an argument self.,def __getstate__ ( self ) :
3169,call the method handler.addQuickElement with 2 arguments: string 'copyright' and value under the 'feed_copyright' key of the self.feed dictionary.,"handler . addQuickElement ( ""copyright"" , self . feed [ 'feed_copyright' ] )"
3170,define the method accessed_time with arguments self and name.,"def accessed_time ( self , name ) :"
3171,"call the method objects.using with an argument using, call the method order_by on the result with an argument model._meta.pk.name,",queryset = objects . using ( using ) . order_by ( model . _meta . pk . name )
3172,"compile regex from a string '(?= 2 and value [ : 1 ] == value [ - 1 : ] == b'""' :"
3199,"evaluate next boolean expression, value of converter function with opts.db_table as argument is contained in tables,",return not ( ( converter ( opts . db_table ) in tables ) or ( opts . auto_created and converter ( opts . auto_created . _meta . db_table ) in tables ) )
3200,"initial set to None, help_text set to an empty string, error_messages set to None, show_hidden_initial set to boolean False, validators is an empty, localize set to boolean False, label_suffix set to None. substitute required, label and initial for self.required, self.label and self.initial.","self . required , self . label , self . initial = required , label , initial"
3201,"with 3 arguments: data, files and return value of the function self.clear_checkbox_name called with an argument name, evaluates to true, if upload is true,",if upload :
3202,if self._cull_frequency equals to integer 0.,if self . _cull_frequency == 0 :
3203,status_code is an integer 404.,status_code = 404
3204,"sort elements of kwds, substitute the result for sorted_items.",sorted_items = sorted ( kwds . items ( ) )
3205,remove idx-th element from self list.,"value = list . pop ( self , idx )"
3206,"read one line from self file stream, substitute the result for buf.",buf = self . readline ( )
3207,increment weight by integer 2.,weight += 2
3208,"if not,",else :
3209,"call the method copy.deepcopy with 2 arguments: self._wrapped and memo, return the result.","return copy . deepcopy ( self . _wrapped , memo )"
3210,"call the method cursor.execute with string ""SELECT cache_key, value, expires FROM %s WHERE cache_key = %%s"" as argument,","cursor . execute ( ""SELECT cache_key, value, expires FROM %s "" ""WHERE cache_key = %%s"" % table , [ key ] )"
3211,write it to self.stdout stream. replaces is an empty list.,replaces = [ ]
3212,"if options is true,",if options :
3213,"if not,",else :
3214,substitute type.__call__ for __call__.,__call__ = type . __call__
3215,root dictionary values under the KEY and RESULT keys are both None.,root [ KEY ] = root [ RESULT ] = None
3216,"finally perform,",finally :
3217,"define the __init__ method with 4 arguments: self, message set to None, code set to None and whitelist set to None.","def __init__ ( self , message = None , code = None , whitelist = None ) :"
3218,"call the method self.z, substitute the result for day_of_year.",day_of_year = self . z ( )
3219,"slice the list value with unpacked list bits as an argument, return the result.",return value [ slice ( * bits ) ]
3220,return an empty string.,"return """""
3221,"if not,",else :
3222,"if size is None,",if size is None :
3223,"if arg is not string 'on' or 'off',","if arg not in ( 'on' , 'off' ) :"
3224,define the function unordered_list with 2 arguments value and autoescape set to None.,"def unordered_list ( value , autoescape = None ) :"
3225,"if e.errno equals to errno.ENOENT,",if e . errno == errno . ENOENT :
3226,"if KeyError exception is caught,",except KeyError :
3227,"dependencies set to a list of tuples with 2 elements: app_label and migration.name for every migration in merge_migrations. call the method subsclass with 2 arguments: string ""%04i_merge"", replace '%04i' with biggest_number incremented by one,","new_migration = subclass ( ""%04i_merge"" % ( biggest_number + 1 ) , app_label )"
3228,call the function constant_time_compare with 2 arguments: val1 and val2.,"def constant_time_compare ( val1 , val2 ) :"
3229,"with all occurrences of '%s' replaced with app_name and model._meta.object_name and e, respectively. finally perform,",finally :
3230,"derive class FileProxyMixin from the base class object, making it a new-style class.",class FileProxyMixin ( object ) :
3231,substitute safe for value under the 'safe' key of kwargs dictionary.,kwargs [ 'safe' ] = safe
3232,substitute value under the KEY key of the root dictionary for oldkey.,oldkey = root [ KEY ]
3233,"for every f in fields,",for f in fields :
3234,append options to output.,output . append ( options )
3235,"call the function from_current_timezone with an argument, return the result.",return from_current_timezone ( result )
3236,"if six.PY3 is true,",if six . PY3 :
3237,"slit by whitespace the value under the 'COMP_WORDS' key of the os.environ dictionary, substitute the result without the first element for cwords.",cwords = os . environ [ 'COMP_WORDS' ] . split ( ) [ 1 : ]
3238,"call the method s.find with an argument bytes string ';', substitute the result for end.",end = s . find ( b';' )
3239,as_form is boolean False.,as_form = False
3240,define the function get_language_from_path with 2 arguments: path and strict set to boolean False.,"def get_language_from_path ( path , strict = False ) :"
3241,"if newretval is not None,",if newretval is not None :
3242,call the function signals.request_finished.connect with argument close_caches.,signals . request_finished . connect ( close_caches )
3243,"with the result renamed to fp, perform the following: read file fp and substitute the result for msgs.",msgs = fp . read ( )
3244,import module re.,import re
3245,"where '%s' is replaced with file_path. create an object TranslatableFile with arguments: dirpath, filename and locale_dir, append it to all_files.","all_files . append ( TranslatableFile ( dirpath , filename , locale_dir ) )"
3246,return from the function,return
3247,"define the function format with 6 arguments: number, decimal_sep, decimal_pos set to None, grouping set to integer 0,","def format ( number , decimal_sep , decimal_pos = None , grouping = 0 , thousand_sep = '' , force_grouping = False ) :"
3248,"substitute var1 and var2 for self.var1 and self.var2, respectively.","self . var1 , self . var2 = var1 , var2"
3249,substitute force_text for force_unicode.,force_unicode = force_text
3250,"call the function get_template with an argument file_name, substitute the result for t.",t = get_template ( file_name )
3251,"define the function m2m_convert with an argument n,",def m2m_convert ( n ) :
3252,self.deleted_objects is an empty list.,self . deleted_objects = [ ]
3253,define the method __next__ with an argument self.,def __next__ ( self ) :
3254,call the function func with 2 arguments: self._wrapped and unpacked list args.,"return func ( self . _wrapped , * args )"
3255,"convert _serializers into a list, return it.",return list ( _serializers )
3256,define the method list with an argument self.,def list ( self ) :
3257,"tuple with 2 elements: start and end and boolean False, append the result to result. substitute end for upto.",upto = end
3258,"if not,",else :
3259,define the method parse with an argument self.,def parse ( self ) :
3260,"call the method signing.get_cookie_signer with an argument salt set to sum of key and salt, call the method unsign on the result,","value = signing . get_cookie_signer ( salt = key + salt ) . unsign ( cookie_value , max_age = max_age )"
3261,substitute self.DEFAULT_CHUNK_SIZE for chunk_size.,chunk_size = self . DEFAULT_CHUNK_SIZE
3262,"call the function exc_type with an argument string ""Unsupported value: %r. You should install pytz."", replace '%s' with dt,","exc_value = exc_type ( ""Unsupported value: %r. You should install pytz."" % dt )"
3263,"if self.value equals self.choice_value, return boolean True, if not, return boolean False.",return self . value == self . choice_value
3264,import module zlib.,import zlib
3265,define the function write_pot_file with 2 arguments potfile and msgs.,"def write_pot_file ( potfile , msgs ) :"
3266,"with all occurrences of '%s' replaced with app_name and model._meta.object_name, respectively. try,",try :
3267,increment Tok.num with an integer 1.,Tok . num += 1
3268,substitute token.source for node.source.,node . source = token . source
3269,"if not,",else :
3270,"substitute the result for the value under the 'year' key of the html dictionary. call the function six.iteritems with an argument self.months, convert the result to a list and substitute it for choices.",choices = list ( six . iteritems ( self . months ) )
3271,"define the method get with 3 arguments: self, key and default set to None.","def get ( self , key , default = None ) :"
3272,append list containing string '--no-wrap' to self.msgattrib_options.,self . msgattrib_options = self . msgattrib_options [ : ] + [ '--no-wrap' ]
3273,"only if v.Serializer.internal_use_only is false, return the resulting list. define the function get_deserializer with an argument format.",def get_deserializer ( format ) :
3274,"help is a string ""Deprecated - use 'migrate' instead."".","help = ""Deprecated - use 'migrate' instead."""
3275,"encode is an lambda function with 2 arguments k and v, return value is the result of the function urlencode, called with an argument:","encode = lambda k , v : urlencode ( { k : v } )"
3276,from functools import wraps into default name space.,from functools import wraps
3277,define the method clean with arguments self and value.,"def clean ( self , value ) :"
3278,"remove 'LOCATION' key from kwargs dictionary and put it into location, or use an empty string if key doesnt exists.","location = kwargs . pop ( 'LOCATION' , '' )"
3279,"call the method self._set with key, pickled and timeout as arguments.","self . _set ( key , pickled , timeout )"
3280,"try,",try :
3281,"call the function _trans.check_for_language with an argument lang_code, return the result.",return _trans . check_for_language ( lang_code )
3282,"call the function _check_boolean_field_default_value with dictionary kwargs as argument, use the result as an argument for the call to the function errors.extend.",errors . extend ( _check_boolean_field_default_value ( ** kwargs ) )
3283,"sum max_num and DEFAULT_MAX_NUM, substitute the result for absolute_max.",absolute_max = max_num + DEFAULT_MAX_NUM
3284,"create a list out of open_tags elements form (i+1)-th index to the end, substitute it for open_tags.",open_tags = open_tags [ i + 1 : ]
3285,from django.db.migrations.optimizer import MigrationOptimizer into default name space.,from django . db . migrations . optimizer import MigrationOptimizer
3286,from django.utils.deprecation import RemovedInDjango20Warning into default name space.,from django . utils . deprecation import RemovedInDjango20Warning
3287,do nothing.,pass
3288,derive the class CacheClass from the DatabaseCache base class.,class CacheClass ( DatabaseCache ) :
3289,"if endpos is lesser than zero,",if endpos < 0 :
3290,"split string cc_delim_re by value of dictionary response under the key 'Vary' as a delimiter, substitute it for vary_headers.",vary_headers = cc_delim_re . split ( response [ 'Vary' ] )
3291,self._changed_data is None.,self . _changed_data = None
3292,import module datetime.,import datetime
3293,derive the class DjangoRuntimeWarning from the RuntimeWarning base class.,class DjangoRuntimeWarning ( RuntimeWarning ) :
3294,return boolean True.,return True
3295,from django.utils import six into default name space.,from django . utils import six
3296,derive class _LazyDescr from the object base class.,class _LazyDescr ( object ) :
3297,define the function _bin_to_long with an argument x.,def _bin_to_long ( x ) :
3298,"zip val1 and va2 into list of tuples, for every x and y in the result,","for x , y in zip ( val1 , val2 ) :"
3299,"if not,",else :
3300,substitute length of self.object_list for self._count.,self . _count = len ( self . object_list )
3301,compile a regular expression pattern string '([a-zA-Z][-.a-zA-Z0-9:_]*)(?:\s|/(?!>))*' into a regular expression object and assign it to tagfind.,tagfind = re . compile ( '([a-zA-Z][-.a-zA-Z0-9:_]*)(?:\s|/(?!>))*' )
3302,"define the method handle_fk_field with arguments self, obj and field.","def handle_fk_field ( self , obj , field ) :"
3303,locations is an empty list.,locations = [ ]
3304,lbp is an integer 0.,lbp = 0
3305,define the method filter with 2 arguments: self and record.,"def filter ( self , record ) :"
3306,"evaluate the function bytes with the argument s, and return the result.",return bytes ( s )
3307,"if self.initial is true and 'initial' key is not contained in kwargs,",if self . initial and 'initial' not in kwargs :
3308,"call the dict function with 2 arguments: final_attrs and id set to string '%s_%s', where '%s' is replaced with id_ and i,","final_attrs = dict ( final_attrs , id = '%s_%s' % ( id_ , i ) )"
3309,"split value into two parts by decimal_separator, assign the result to value and decimals.","value , decimals = value . split ( decimal_separator , 1 )"
3310,"if not,",else :
3311,"if file path of src and dst files are the same, return boolean True, otherwise return boolean False.",return ( os . path . normcase ( os . path . abspath ( src ) ) == os . path . normcase ( os . path . abspath ( dst ) ) )
3312,raise an exception.,raise
3313,define the function truncatechars_html with 2 arguments value and arg.,"def truncatechars_html ( value , arg ) :"
3314,define iterator method __iter__ with self as the argument.,def __iter__ ( self ) :
3315,import module time.,import time
3316,"call the function update_wrapper with 3 arguments: _dec, decorator and assigned as result of the function available_attrs,","update_wrapper ( _dec , decorator , assigned = available_attrs ( decorator ) )"
3317,"try,",try :
3318,"prefix set to None, current_app set to None. if urlconf is None,",if urlconf is None :
3319,"call the method json.__version__.split with an argument '.', if the result is respectively greater than list containing strings '2', '1' and '3',","if json . __version__ . split ( '.' ) >= [ '2' , '1' , '3' ] :"
3320,status_code is an integer 403.,status_code = 403
3321,"if value is an instance of datetime.datetime,","if isinstance ( value , datetime . datetime ) :"
3322,substitute context for self.context_data.,self . context_data = context
3323,from django.core.exceptions import ImproperlyConfigured into default name space.,from django . core . exceptions import ImproperlyConfigured
3324,"get 'nodelist' attribute from self object. if it doesnt exists return boolean False, if the result evaluates to false,","if not getattr ( self , 'nodelist' , False ) :"
3325,substitute the result for value. substitute tuple containing 2 elements: header and value for the value under the header converted to lowercase key of the self._headers dictionary.,"self . _headers [ header . lower ( ) ] = ( header , value )"
3326,"if any resulting element is true, return boolean True, otherwise return boolean False. convert os.sep into a string and append '*' to it, substitute the result for dir_suffix.",dir_suffix = '%s*' % os . sep
3327,args is a string '[fixture ...]'.,args = '[fixture ...]'
3328,define the method close with argument self.,def close ( self ) :
3329,"if self.timezone is true, call the method self.timezone.tzname with an argument self.data, substitute the result for name,",name = self . timezone . tzname ( self . data ) if self . timezone else None
3330,"call the method value.date, return the result.",return value . date ( )
3331,"try,",try :
3332,"loader is an instance of MigrationLoader class, created with an argument connection.",loader = MigrationLoader ( connection )
3333,if in_tag is true and token_string starts with BLOCK_TAG_START.,if in_tag and token_string . startswith ( BLOCK_TAG_START ) :
3334,"token is an instance of Token class, created with 2 arguments: TOKEN_TEXT and token_string.","token = Token ( TOKEN_TEXT , token_string )"
3335,return an empty string.,return ''
3336,"call the connection.cursor method, substitute the result for cursor.",cursor = connection . cursor ( )
3337,"substitute the value under the 'SERVER_NAME' key of the self.META dictionary, substitute it for host.",host = self . META [ 'SERVER_NAME' ]
3338,"get the value under the new_method_name key of the base.__dict__ dictionary, substitute it for new_method.",new_method = base . __dict__ . get ( new_method_name )
3339,raise an value.with_traceback exception with an argument tb.,raise value . with_traceback ( tb )
3340,incremental is boolean False. EMPTY_DICT is an empty dictionary.,EMPTY_DICT = { }
3341,"append list with 2 strings: '_request' and '_current_app' to SimpleTemplateResponse.rendering_attrs, substitute the result for rendering_attrs.","rendering_attrs = SimpleTemplateResponse . rendering_attrs + [ '_request' , '_current_app' ]"
3342,from django.utils.encoding import force_bytes into default name space.,from django . utils . encoding import force_bytes
3343,"call the method sys.stderr.write with an argument string "" installed flup, then make sure you have it in your PYTHONPATH.\n"".","sys . stderr . write ( "" installed flup, then make sure you have it in your PYTHONPATH.\n"" )"
3344,"substitute a tuple with 2 elements: characters ',' and ': ' for value under the 'separators' key of the self.json_kwargs dictionary.","self . json_kwargs [ 'separators' ] = ( ',' , ': ' )"
3345,"and instance of Name class created with an argument string 'python_2_unicode_compatible'. decorated is an instance of class Node, created with 3 arguments: syms.decorated, list with 2 arguments: decorator and klass,","decorated = Node ( syms . decorated , [ decorator , klass ] , prefix = node . prefix )"
3346,"RemovedInDjango19Warning and stacklevel as integer 2. try,",try :
3347,"if KeyboardInterrupt exception is caught,",except KeyboardInterrupt :
3348,"if not,",else :
3349,do nothing.,pass
3350,"for every v in list_ append to a list result of the function encode, called with arguments: k and result of the function force_bytes,","output . extend ( [ encode ( k , force_bytes ( v , self . encoding ) ) for v in list_ ] )"
3351,"parser is an instance of CommandParser class, created with 3 arguments: self, prog as a string created by joining:","parser = CommandParser ( self , prog = ""%s %s"" % ( os . path . basename ( prog_name ) , subcommand ) , description = self . help or None )"
3352,"if app_list_value is not None,",if app_list_value is not None :
3353,"call the method self.save_existing with 3 arguments: form, obj and commit as commit, append the result to saved_instances.","saved_instances . append ( self . save_existing ( form , obj , commit = commit ) )"
3354,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3355,"evaluate the member method of s, encode with the encoding and errors as the arguments, return the result.","return s . encode ( encoding , errors )"
3356,call the method handler.addQuickElement with 2 arguments: string 'title' and value under the 'title' key of the item dictionary.,"handler . addQuickElement ( ""title"" , item [ 'title' ] )"
3357,"substitute the resulting list for digits. while length of digits is smaller than or equal to absolute value of exponent,",while len ( digits ) <= abs ( exponent ) :
3358,"if VariableDoesNotExist exception is caught,",except VariableDoesNotExist :
3359,define the method _iter with an argument self.,def __iter__ ( self ) :
3360,"call the force_text function with 3 arguments: e.strerror, DEFAULT_LOCALE_ENCODING and strings_only set to boolean True.","strerror = force_text ( e . strerror , DEFAULT_LOCALE_ENCODING , strings_only = True )"
3361,"substitute self.input_type for self.input_type. call the method __init__ from the base class of the class TextInput, called with an argument attrs.","super ( TextInput , self ) . __init__ ( attrs )"
3362,"call the salted_hmac with 3 arguments: salt, value and key, call the digest method on the result,","return b64_encode ( salted_hmac ( salt , value , key ) . digest ( ) )"
3363,"replace '%s' in the string 'handler%s' with view_type, use it as an name of the attribute to get from the urls, substitute it for callback.","callback = getattr ( urls , 'handler%s' % view_type )"
3364,"define the method _has_changed with arguments self, initial and data.","def _has_changed ( self , initial , data ) :"
3365,"call the method m.group with an argument string 'min', convert the result into a string, substitute it for min.",min = int ( m . group ( 'min' ) )
3366,"if not,",else :
3367,"try,",try :
3368,substitute _urllib_parse_moved_attributes for Module_six_moves_urllib_parse._moved_attributes.,Module_six_moves_urllib_parse . _moved_attributes = _urllib_parse_moved_attributes
3369,"for every model in model_list,",for model in model_list :
3370,return result.,return result
3371,from django.utils import six into default name space.,from django . utils import six
3372,remove file tmp_path.,os . remove ( tmp_path )
3373,define the function parse_header with an argument line.,def parse_header ( line ) :
3374,substitute Rss201rev2Feed for DefaultFeed.,DefaultFeed = Rss201rev2Feed
3375,"d is an instance of class Decimal, created with result of the function force_text,",d = Decimal ( force_text ( float ( text ) ) )
3376,"if not append w to the list, substitute the resulting list for self.widgets. call the method __init__ from the base class of the class MultiWidget, with an argument attrs.","super ( MultiWidget , self ) . __init__ ( attrs )"
3377,"if self.encoding exists substitute it for encoding, if not substitute settings.DEFAULT_CHARSET for encoding.",encoding = self . encoding or settings . DEFAULT_CHARSET
3378,"define the function __init__ with 5 arguments: self, takes_context, args, kwargs and target_var.","def __init__ ( self , takes_context , args , kwargs , target_var ) :"
3379,from django.utils.timezone import is_aware and utc into default name space.,"from django . utils . timezone import is_aware , utc"
3380,"call the method form.save with an argument commit as commit, return the result.",return form . save ( commit = commit )
3381,substitute name and value for self.name and self.value.,"self . name , self . value = name , value"
3382,"call the method bytes_to_text with an arguments key and self.encoding, substitute the result for key.","key = bytes_to_text ( key , self . encoding )"
3383,substitute value for self.value.,self . value = value
3384,"if column_name is contained in indexes,",if column_name in indexes :
3385,from datetime import datetime into default name space.,from datetime import datetime
3386,"return value under the name key of the files dictionary, if it doesnt exists, return None.","return files . get ( name , None )"
3387,"call the function bytes with an argument tuple with an element i, return the result.","return bytes ( ( i , ) )"
3388,define the function prepend_token with 2 arguments: self and token.,"def prepend_token ( self , token ) :"
3389,substitute new_method_name for new_method_name.,self . new_method_name = new_method_name
3390,call the method parser.print_help.,parser . print_help ( )
3391,"if prefix is None,",if prefix is None :
3392,import module re.,import re
3393,call method sort on the headerlist.,headerlist . sort ( )
3394,"if e doesnt have an 'django_template_source' attribute,","if not hasattr ( e , 'django_template_source' ) :"
3395,"get the position in bytes from the start of the file, store it in file_pos.",file_pos = file . tell ( )
3396,substitute http_cookies.SimpleCookie for SimpleCookie.,SimpleCookie = http_cookies . SimpleCookie
3397,"if value is an instance of datetime and settings.USE_TZ if use_tz is None else use_tz and call to the function is_naive,","should_convert = ( isinstance ( value , datetime ) and ( settings . USE_TZ if use_tz is None else use_tz ) and not is_naive ( value ) and getattr ( value , 'convert_to_local_time' , True ) )"
3398,substitute content_type_extra for self.content_type_extra.,self . content_type_extra = content_type_extra
3399,"call the function os.stat with an argument filename, substitute the result for st.",st = os . stat ( filename )
3400,substitute current_app for self._current_app.,self . _current_app = current_app
3401,"try,",try :
3402,"call the method re.sub with 3 arguments: raw string '&(?:\w+|#\d+);', empty string and result of the function force_text,","return re . sub ( r'&(?:\w+|#\d+);' , '' , force_text ( value ) )"
3403,"for every cmatch in cmatches,",for cmatch in cmatches :
3404,substitute stream_or_string for stream.,stream = stream_or_string
3405,"if self.negated,",if self . negated :
3406,define the method d with an argument self.,def d ( self ) :
3407,format key is an empty string.,format_key = ''
3408,"call the function translation with an argument settings.LANGUAGE_CODE, substitute the result for _default.",_default = translation ( settings . LANGUAGE_CODE )
3409,"if self.can_order is true,",if self . can_order :
3410,substitute source for self.source.,self . source = source
3411,do nothing.,pass
3412,"format settings.TEMPLATE_STRING_IF_INVALID with self.var, return the result.",return settings . TEMPLATE_STRING_IF_INVALID % self . var
3413,"call the method __init__ from the base class of the BaseTemporalField class, with arguments: unpacked list args and unpacked dictionary kwargs.","super ( BaseTemporalField , self ) . __init__ ( * args , ** kwargs )"
3414,"register.tag decorator,",@ register . tag
3415,"if it exists return the second element of the result, if not, return alternate. define the method set_cookie with 9 arguments: self, key, value set to an empty string, max_age set to None, expires set to None,","def set_cookie ( self , key , value = '' , max_age = None , expires = None , path = '/' , domain = None , secure = False , httponly = False ) :"
3416,"if name is true,",if name :
3417,substitute self.template_with_initial for template.,template = self . template_with_initial
3418,"if self._wrapped is contained in empty,",if self . _wrapped is empty :
3419,"if result is true,",if result :
3420,self.META is an empty dictionary.,self . META = { }
3421,"and field _state.adding of value under the name key of self.cleaned_data dictionary is true, append name to construct_instance_exclude list.",construct_instance_exclude . append ( name )
3422,return self.data.year.,return self . data . year
3423,"item is a dictionary with 15 initial entries: result of the function to_unicode called with an argument title for 'title',","item = { 'title' : to_unicode ( title ) , 'link' : iri_to_uri ( link ) , 'description' : to_unicode ( description ) , 'author_email' : to_unicode ( author_email ) , 'author_name' : to_unicode ( author_name ) , 'author_link' : iri_to_uri ( author_link ) , 'pubdate' : pubdate , 'updateddate' : updateddate , 'comments' : to_unicode ( comments ) , 'unique_id' : to_unicode ( unique_id ) , 'unique_id_is_permalink' : unique_id_is_permalink , 'enclosure' : enclosure , 'categories' : categories or ( ) , 'item_copyright' : to_unicode ( item_copyright ) , 'ttl' : ttl , }"
3424,"call the function _add_doc with 2 arguments: b and string """"""Byte literal"""""".","_add_doc ( b , """"""Byte literal"""""" )"
3425,return media.,return media
3426,"if self.active_writers equals integer 0 and self.waiting_writers equals integer 0 and self.active_readers equals integer 0,",if self . active_writers == 0 and self . waiting_writers == 0 and self . active_readers == 0 :
3427,"call the method sign on the result with an argument value, substitute the result for value. call the method self.set_cookie with 3 arguments: key, value and unpacked dictionary kwargs, return the result.","return self . set_cookie ( key , value , ** kwargs )"
3428,substitute hint for self.hint.,self . hint = hint
3429,"self.charset and self.content_type_extra. define the method receive_data_chunk with arguments: self, raw_data and start.","def receive_data_chunk ( self , raw_data , start ) :"
3430,"call the method hashlib.sha1 with an argument secret appended to key_salt, call the method digest on the result, return the result.",key = hashlib . sha1 ( key_salt + secret ) . digest ( )
3431,admin is a string 'admin',admin = 'admin'
3432,"call the LockFileEx function with 6 arguments: hfile, flags, integer 0, integer 0, hexadecimal value FFFF0000, return value of the byref function called with argument overlapped, substitute the result for ret.","ret = LockFileEx ( hfile , flags , 0 , 0 , 0xFFFF0000 , byref ( overlapped ) )"
3433,"return an instance of Literal class, created with an argumen value.",return Literal ( value )
3434,"if 'filename' attribute of ev is None,","if getattr ( ev , 'filename' , None ) is None :"
3435,"for every key and value in items of other_dict dictionary,","for key , value in other_dict . items ( ) :"
3436,"for every node in self.nodelist_loop,",for node in self . nodelist_loop :
3437,from django.utils.translation import trans_null as trans.,from django . utils . translation import trans_null as trans
3438,call the method signals.request_finished.send with an argument sender set to self._handler_class.,signals . request_finished . send ( sender = self . _handler_class )
3439,"if ImportError exception is caught,",except ImportError :
3440,"call the method context.new with an argument values, use it as an argument for the call to the method template.render, return the result.",return template . render ( context . new ( values ) )
3441,"for every ch in input_iter,",for ch in input_iter :
3442,"raise an ImportError exception with an argument string ""Could not import '%s'. The path must be fully qualified."",","raise ImportError ( ""Could not import '%s'. The path must be fully qualified."" % lookup_view )"
3443,"if field_type is not equal to string 'TextField(' or string 'CharField(',","if field_type not in ( 'TextField(' , 'CharField(' ) :"
3444,"append rel_to to string 'ForeignKey(, append character ""'"" to it, substitute the result for field_type.","field_type = ""ForeignKey('%s'"" % rel_to"
3445,"call the method self.read_limited with length of self.buffer subtracted from size as argument, add result to self.buffer, store it in result.",result = self . buffer + self . _read_limited ( size - len ( self . buffer ) )
3446,call the method value.decode with an argument charset.,value . decode ( charset )
3447,"define lambda function that returns self.file.newlines field, use it as an argument for property function, put the result in newlines.",newlines = property ( lambda self : self . file . newlines )
3448,"define the method __init__ with 3 arguments: self, initlist set to None and error_class set to None.","def __init__ ( self , initlist = None , error_class = None ) :"
3449,"self._post is an instance of QueryDict created with arguments: an empty string and encoding set to self._encoding,","self . _post , self . _files = QueryDict ( '' , encoding = self . _encoding ) , MultiValueDict ( )"
3450,"if TypeError or ValueError exceptions are caught,","except ( ValueError , TypeError ) :"
3451,from django.utils._os import safe_join and abspathu into default name space.,"from django . utils . _os import safe_join , abspathu"
3452,"if value under the 'feed_copyright' key of the self.feed dictionary is not None,",if self . feed [ 'feed_copyright' ] is not None :
3453,"if inplural is true,",if inplural :
3454,"if TypeError exception is caught,",except TypeError :
3455,do nothing.,pass
3456,"define the method addQuickElement with 4 arguments: self, name, contents set to None and attrs set to None.","def addQuickElement ( self , name , contents = None , attrs = None ) :"
3457,"while remaining_bits is true,",while remaining_bits :
3458,do nothing.,pass
3459,args is an empty string.,args = ''
3460,"call the method self.copy, return the result.",return self . copy ( )
3461,do nothing.,pass
3462,"convert self.name into an boolean, return it.",return bool ( self . name )
3463,SINGLE_BRACE_START is a string '{'.,SINGLE_BRACE_START = '{'
3464,decrement factor by one.,factor -= 1
3465,"for every bit in bits. register.tag decorator function with an argument 'for',",@ register . tag ( 'for' )
3466,"return the list, containing 4 elements: an empty string, string "" class Meta:"", string "" managed = False"",","return [ """" , "" class Meta:"" , "" managed = False"" , "" db_table = '%s'"" % table_name ]"
3467,format_module_path is a list containing an element format_module_path.,format_module_path = [ format_module_path ]
3468,self._producer is an empty list.,self . _producer = [ ]
3469,"results is a tuple with 2 elements, 2 empty lists.","results = ( [ ] , [ ] )"
3470,"if sender is true and sender attribute 'handles_files' is also True,","if sender and getattr ( sender , 'handles_files' , False ) :"
3471,"call the function make_key with 3 arguments: args, kwds and typed, substitute the result for key.","key = make_key ( args , kwds , typed )"
3472,"otherwise if content is not an instance of Message class,","elif not isinstance ( content , Message ) :"
3473,"if six.PY3 is true,",if six . PY3 :
3474,"if ValueError, TypeError or ValidationError exception is caught,","except ( ValueError , TypeError , ValidationError ) :"
3475,"get the value under value key of a dictionary with 4 entries: '2' for boolean True, '3' for boolean False, '2' for '2',","value = { True : '2' , False : '3' , '2' : '2' , '3' : '3' } [ value ]"
3476,append a string 'This field type is a guess.' to field_notes.,field_notes . append ( 'This field type is a guess.' )
3477,define the method widget_attrs with arguments self and widget.,"def widget_attrs ( self , widget ) :"
3478,substitute i-th element of list for title.,title = list_ [ i ]
3479,"if name is true,",if name :
3480,"from django.core.files.uploadhandler import StopUpload, SkipFile and StopFutureHandlers into default name space.","from django . core . files . uploadhandler import StopUpload , SkipFile , StopFutureHandlers"
3481,"raise an TypeError exception with an argument sting ""can't delete _wrapped."".","raise TypeError ( ""can't delete _wrapped."" )"
3482,"if MiddlewareNotUsed exception is raised,",except MiddlewareNotUsed :
3483,substitute pubid for self.pubid.,self . pubid = pubid
3484,"call the method apps.get_app_configs, substitute the result for app_configs.",app_configs = apps . get_app_configs ( )
3485,"get the value 'reset_sequences' key of the options dictionary, if it exists substitute it for reset_sequences, otherwise reset_sequences is boolean True.","reset_sequences = options . get ( 'reset_sequences' , True )"
3486,"if UnicodeDecodeError exception is caught,",except UnicodeDecodeError :
3487,"for every d in last element of self.dicts,",for d in self . dicts [ - 1 ] :
3488,define the method create_nodelist with an argument self.,def create_nodelist ( self ) :
3489,"otherwise if self.verbosity is greater than integer 0,",elif self . verbosity > 0 :
3490,"substitute new_name, without the last 3 elements for new_name.",new_name = new_name [ : - 3 ]
3491,"try,",try :
3492,return kwargs.,return kwargs
3493,import module os.,import os
3494,call the method handler.endElement with an argument string 'feed'.,"handler . endElement ( ""feed"" )"
3495,define the method __init__ with an argument self.,def __init__ ( self ) :
3496,define the method start_object with arguments self and obj.,"def start_object ( self , obj ) :"
3497,"call the function token_kwargs with 3 arguments: remaining_bits, parser, support_legacy set to boolean False, substitute the result for value.","value = token_kwargs ( remaining_bits , parser , support_legacy = False )"
3498,from django.utils.encoding import smart_text into default name space.,from django . utils . encoding import smart_text
3499,"call the function decorator with 2 arugments: unpacked list args and unpacked dictionary kwargs, return the result.","return decorator ( * args , ** kwargs )"
3500,substitute self.choices for self.widget.choices.,self . widget . choices = self . choices
3501,"try,",try :
3502,"append value under k key of self dictionary to a list, for every k in self.keyOrder, return the result.",return [ self [ k ] for k in self . keyOrder ]
3503,define the next_space_index with 2 arguments: subject and i.,"def next_space_index ( subject , i ) :"
3504,"self.stderr is an OutputWrapper object instance, created with value under the 'stderr' key of the options dictionary as an argument,","self . stderr = OutputWrapper ( options . get ( 'stderr' , sys . stderr ) )"
3505,"get the value under the e.errno key of the ERRORS dictionary, substitute it for error_text.",error_text = ERRORS [ e . errno ]
3506,"call the function func with 2 arguments: context and self.first, return the result.","return func ( context , self . first )"
3507,"for every path in self.locale_paths,",for path in self . locale_paths :
3508,import module traceback.,import traceback
3509,self.path_info is an empty string.,self . path_info = ''
3510,define the function cycle with 2 arguments: parser and token.,"def cycle ( parser , token ) :"
3511,help is an string 'Installs the named fixture(s) in the database.'.,help = 'Installs the named fixture(s) in the database.'
3512,"if unicode_value is an instance of six.text_type,","if isinstance ( unicode_value , six . text_type ) :"
3513,derive the class Serializer from the object base class.,class Serializer ( object ) :
3514,define the function get_language_from_request with 2 arguments: request and check_path set to boolean False.,"def get_language_from_request ( request , check_path = False ) :"
3515,"otherwise html_message is None. call the method mail.mail_admins with 5 arguments: subject, message, fail_silently as boolean True, tml_message as html_message,","mail . mail_admins ( subject , message , fail_silently = True , html_message = html_message , connection = self . connection ( ) )"
3516,define the method tzname with 2 arguments self and dt.,"def tzname ( self , dt ) :"
3517,raise ValueError exception with string 'Sign character found in converter base digits.' as an argument.,raise ValueError ( 'Sign character found in converter base digits.' )
3518,substitute value under level key of logging._levelNames dictionary for rv.,rv = logging . _levelNames [ level ]
3519,return nothing.,return
3520,is_compressed is boolean False.,is_compressed = False
3521,if __name__ equals a string '__main__'.,if __name__ == '__main__' :
3522,substitute type for class_types.,"class_types = type ,"
3523,substitute producer for self._producer.,self . _producer = producer
3524,self._read_started is boolean True.,self . _read_started = True
3525,call the os.utime function with arguments dst and tuple containing 2 elements: st.st_atime and st.st_mtime.,"os . utime ( dst , ( st . st_atime , st . st_mtime ) )"
3526,define the function u with an argument s.,def u ( s ) :
3527,"if form has an attribute 'Meta',","if hasattr ( form , 'Meta' ) :"
3528,"define the function ungettext with 3 arguments: singular, plural and number.","def ungettext ( singular , plural , number ) :"
3529,"raise a ValidationError exception with 2 arguments: return value of the function _ called with an argument string 'Enter a valid IPv6 address.', and code set to string 'invalid'.","raise ValidationError ( _ ( 'Enter a valid IPv6 address.' ) , code = 'invalid' )"
3530,"call the sio.readline method, substitute the result for line.",line = sio . readline ( )
3531,"call the method self._get_validation_exclusions, substitute the result for exclude.",exclude = self . _get_validation_exclusions ( )
3532,if not.,else :
3533,"decorator stringfilter,",@ stringfilter
3534,"substitute the result for klass. if klass is a subclass of logging.handlers.MemoryHandler base class and string 'target' is contained in config,","if issubclass ( klass , logging . handlers . MemoryHandler ) and 'target' in config :"
3535,from django.utils.timezone import get_current_timezone_name to the default name space.,from django . utils . timezone import get_current_timezone_name
3536,"raise an CommandError exception with an argument string 'Unknown model in excludes: %s', where '%s' is replaced with exclude.",raise CommandError ( 'Unknown model in excludes: %s' % exclude )
3537,define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
3538,self._files is an instance of class MultiValueDict. return nothing.,return
3539,define the method end_serialization with an argument self.,def end_serialization ( self ) :
3540,"if not,",else :
3541,"if not,",else :
3542,"and fk.rel.to is not contained in result of the call to the method parent_model._meta.get_parent_list. raise an ValueError with an argument string ""fk_name '%s' is not a ForeignKey to '%s.%'."", where '%s' is replaced with,","raise ValueError ( ""fk_name '%s' is not a ForeignKey to '%s.%'."" % ( fk_name , parent_model . _meta . app_label , parent_model . _meta . object_name ) )"
3543,"return value of the function re.escape called with an argument BLOCK_TAG_START, return value of the function re.escape called with an argument BLOCK_TAG_END, return value of the function re.escape called with an argument VARIABLE_TAG_START, return value of the function re.escape called with an argument VARIABLE_TAG_END, return value of the function re.escape called with an argument COMMENT_TAG_START, and return value of the function re.escape called with an argument COMMENT_TAG_END, substitute the result for tag_re. libraries is an empty dictionary.",libraries = { }
3544,self.activated is boolean False.,self . activated = False
3545,"append to a list elements of the iterator self, return the resulting list.",return list ( iter ( self ) )
3546,derive the class SafeData from object base class.,class SafeData ( object ) :
3547,self._wrapped.,return inner
3548,"call the function importlib_find with 2 arguments: full_module_name and package_path, if the result is not None, return boolean True,","return importlib_find ( full_module_name , package_path ) is not None"
3549,"get the value under the 'error_messages' key of the kwargs dictionary, update errors dictionary with it.",errors . update ( kwargs [ 'error_messages' ] )
3550,"otherwise if sep is not an instance of string type,","elif not isinstance ( sep , str ) :"
3551,"if base has an 'declared_fields' attribute,","if hasattr ( base , 'declared_fields' ) :"
3552,"return value of the npath function with string '.mo' appended to the base_path as argument, and return value of the npath function with string '.po' appended to the base_path as argument, substitute it for args. call the popen_wrapper with args as the argument, assign the result to the output, errors and status, respectively.","output , errors , status = popen_wrapper ( args )"
3553,return result.,return result
3554,derive the class WidthRatioNode from Node base class.,class WidthRatioNode ( Node ) :
3555,return node.,return node
3556,"call the method __init__ from the base class of the class SortedDict, called with an argument data.","super ( SortedDict , self ) . __init__ ( data )"
3557,"divide 10 to the power of 400 by 10 to the power of 400, substitute the result for nan.",nan = ( 1e200 * 1e200 ) // ( 1e200 * 1e200 )
3558,"try,",try :
3559,"get the unicode representation of current working directory, join it and path into a string, substitute the result for path.","path = join ( os . getcwdu ( ) , path )"
3560,return None.,return None
3561,"define the method __init__ with 5 arguments: self, name, value, attrs and choices.","def __init__ ( self , name , value , attrs , choices ) :"
3562,"if object response has an attribute 'render' and if response.render is callable object,","if hasattr ( response , 'render' ) and callable ( response . render ) :"
3563,"if settings.USE_THOUSAND_SEPARATOR is true,",if settings . USE_THOUSAND_SEPARATOR :
3564,"if parse_until is None,",if parse_until is None :
3565,"if tuple current_version elements are greater or equal to (3, 4), respectively,","if current_version >= ( 3 , 4 ) :"
3566,"call the self.get_backend_timeout with argument timeout, substitute it for the value under the key key of self._expire_info dictionary.",self . _expire_info [ key ] = self . get_backend_timeout ( timeout )
3567,call the method g.flatten with arguments self and unixfrom set to unixfrom.,"g . flatten ( self , unixfrom = unixfrom )"
3568,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
3569,call the function file_move_safe with content.temporary_file_path function result and full_path.,"file_move_safe ( content . temporary_file_path ( ) , full_path )"
3570,"if Exception exception is caught,",except Exception :
3571,updates is an empty dictionary.,updates = dict ( )
3572,"substitute it for time_re. compile regex from raw string '(?P\d{4})-(?P\d{1,2})-(?P\d{1,2})[T ](?P\d{1,2}):(?P\d{1,2})'","datetime_re = re . compile ( r'(?P\d{4})-(?P\d{1,2})-(?P\d{1,2})' r'[T ](?P\d{1,2}):(?P\d{1,2})' r'(?::(?P\d{1,2})(?:\.(?P\d{1,6})\d{0,6})?)?' r'(?PZ|[+-]\d{2}(?::?\d{2})?)?$' )"
3573,define the method r with an argument self.,def r ( self ) :
3574,define the method validate with arguments self and value.,"def validate ( self , value ) :"
3575,delete first 3 elements of bits.,del bits [ : 3 ]
3576,return boolean True.,return True
3577,"call the function self.path with argument name, use the result as an argument for the call to the function os.path.getctime,",return datetime . fromtimestamp ( os . path . getctime ( self . path ( name ) ) )
3578,define the function random with an argument value.,def random ( value ) :
3579,"return a tuple with 3 elements: self.__newobj__, tuple with an element self.__class__ and result of the method self.__getstate__.","return ( self . __newobj__ , ( self . __class__ , ) , self . __getstate__ ( ) )"
3580,"call the method self._cache.decr with key and delta as arguments, substitute the result for val.","val = self . _cache . decr ( key , delta )"
3581,"if ignore is true and field_name is not contained in model_fields,",if ignore and field_name not in model_fields :
3582,"if value under the DEFAULT_CACHE_ALIAS key of caches dictionary is not equal to other, return boolean True, otherwise return False.",return caches [ DEFAULT_CACHE_ALIAS ] != other
3583,"get the unicode representation of the absolute path of base, substitute it for base_path.",base_path = abspathu ( base )
3584,"if attrs is not None substitute it for self.attrs, or if not self.attrs is an empty dictionary.",self . attrs = attrs or { }
3585,raise TemplateSyntaxError(,"raise TemplateSyntaxError ( ""'%s' did not receive value(s) for the argument(s): %s"" % ( name , "", "" . join ( ""'%s'"" % p for p in unhandled_params ) ) )"
3586,sort current_fields elements with key being a lambda function with argument x and return value creation_counter filed of first element of x.,current_fields . sort ( key = lambda x : x [ 1 ] . creation_counter )
3587,return context.render_context.,return context . render_context
3588,"get attr attribute of self object, if it exists substitute it for nodelist, if not nodelist is None.","nodelist = getattr ( self , attr , None )"
3589,"substitute '%s' in string '%s-%s-%s' with y,m and d, return the result.","return '%s-%s-%s' % ( y , m , d )"
3590,"if field equals NON_FIELD_ERRORS,",if field == NON_FIELD_ERRORS :
3591,"raise an CommandError exception with an argument string ""Error: %s"", with '%s' replaced by message.","raise CommandError ( ""Error: %s"" % message )"
3592,"if string 'django.middleware.clickjacking.XFrameOptionsMiddleware' is not contained in settings.MIDDLEWARE_CLASSES set,",if 'django.middleware.clickjacking.XFrameOptionsMiddleware' not in set ( settings . MIDDLEWARE_CLASSES ) :
3593,"join func.__class__.__module__ and func.__class__.__name__ into a string, separated by character '.', substitute it for self._func_path.","self . _func_path = '.' . join ( [ func . __class__ . __module__ , func . __class__ . __name__ ] )"
3594,"""as an app name. Please try another name."", where '%r' is replaced with app_name. call the method handle from the base class of Command class, with 4 arguments: string 'app', app_name, target and unpacked dictionary options.","super ( Command , self ) . handle ( 'app' , app_name , target , ** options )"
3595,derive the class AutoEscapeControlNode from Node base class.,class AutoEscapeControlNode ( Node ) :
3596,raise an EmptyPage exception with string 'That page contains no results' as an argument.,raise EmptyPage ( 'That page contains no results' )
3597,"or boolean False if not, substitute the result for boundary. if boundary is true,",if boundary :
3598,"call the method zbuf.getvalue, return the result.",return zbuf . getvalue ( )
3599,"bring integer 2 to the power of 31, subtract the result by 4, put the result into a list, append possible_sizes to it,",self . _chunk_size = min ( [ 2 ** 31 - 4 ] + possible_sizes )
3600,"if stream_or_string is an instance of the six.string_types,","if isinstance ( stream_or_string , six . string_types ) :"
3601,if self does not have an attribute named '_dimensions_cache'.,"if not hasattr ( self , '_dimensions_cache' ) :"
3602,"if propagate is not None,",if propagate is not None :
3603,"with '%s' substituted for app_label, as arguments. for every key in return vale of the method executor.loader.graph.leaf_nodes, check if the first element of key equals to app_label,",targets = [ key for key in executor . loader . graph . leaf_nodes ( ) if key [ 0 ] == app_label ]
3604,write errors to self.stdout.,self . stdout . write ( errors )
3605,"try,",try :
3606,"if obj is an instance of Field, append to a list a tuple with 2 elements: field_name, and poped value under the field_name key of the attrs dictionary, substitute the resulting list for fields. sort fields elements with key being a lambda function with argument x and return value creation_counter filed of first element of x.",fields . sort ( key = lambda x : x [ 1 ] . creation_counter )
3607,add state element to self.__dict__ dictionary.,self . __dict__ . update ( state )
3608,call the signals.request_started.send method with sender set to self.__class__ as argument.,signals . request_started . send ( sender = self . __class__ )
3609,define the method clear with argument self.,def clear ( self ) :
3610,"if get_git_changeset has an attribute 'cache',","if hasattr ( get_git_changeset , 'cache' ) :"
3611,define the method _create_attachments with arguments self and msg.,"def _create_attachments ( self , msg ) :"
3612,"if self.close_called is False,",if not self . close_called :
3613,"if not,",else :
3614,"define the method __new__ with 3 arguments: cls, unpacked list args and unpacked dictionary kwargs.","def __new__ ( cls , * args , ** kwargs ) :"
3615,"call the function get_language, substitute the result for lang.",lang = get_language ( )
3616,"call the method m.end, slice list rest from previous result as starting index to the end, substitute the result for rest.",rest = rest [ m . end ( ) : ]
3617,"if best_doublecolon_end equals length of hextets,",if best_doublecolon_end == len ( hextets ) :
3618,from django.utils import datetime_safe into default name space.,from django . utils import datetime_safe
3619,"get value under the 'propagate' key of the config dictioanry, if it exists substitute it for propagate, if not propagate is None.","propagate = config . get ( 'propagate' , None )"
3620,from django.utils.encoding import force_st into default name space.,from django . utils . encoding import force_str
3621,call the method self.add_arguments with an argument parser.,self . add_arguments ( parser )
3622,define the function cache_info.,def cache_info ( ) :
3623,"if self.interactive is true,",if self . interactive :
3624,"define the function become_daemon with 4 argument: our_home_dir set to '.', out_log set to None, err_log set to None,","def become_daemon ( our_home_dir = '.' , out_log = None , err_log = None , umask = 0o022 ) :"
3625,"call the method router.db_for_write with argument self.cache_model_class, substitute the result for db.",db = router . db_for_write ( self . cache_model_class )
3626,"try,",try :
3627,"where '%s' is replaced with result of the function humanize, called with an argument fixture_dir. fixture_files_in_dir is an empty list.",fixture_files_in_dir = [ ]
3628,and content_length. self._read_started is boolean False.,self . _read_started = False
3629,"if UnicodeDecodeError exception is caught,",except UnicodeDecodeError :
3630,if context is an instance of Context class.,"if isinstance ( context , Context ) :"
3631,"try,",try :
3632,"call the method parser.add_argument with 4 arguments: string 'args', metavar set to string 'table_name', nargs set to '*' character,","parser . add_argument ( 'args' , metavar = 'table_name' , nargs = '*' , help = 'Optional table names. Otherwise, settings.CACHES is used to ' 'find cache tables.' )"
3633,"TRAILING_PUNCTUATION is a list with 7 elements: '.', ',', ':', ';', '.)', '""' and '\''.","TRAILING_PUNCTUATION = [ '.' , ',' , ':' , ';' , '.)' , '""' , '\'' ]"
3634,derive class X from the object base class.,class X ( object ) :
3635,"raise an ValueError exception with an argument string 'Unable to set target handler %r: %s',","raise ValueError ( 'Unable to set target handler ' '%r: %s' % ( config [ 'target' ] , e ) )"
3636,import module operator.,import operator
3637,"instantiate a class Group with 2 arguments: string ""%%(%s)s"" formated with name, and name, append it to result.","result . append ( Group ( ( ( ""%%(%s)s"" % name ) , name ) ) )"
3638,define the method evalu with 2 arguments self and context.,"def eval ( self , context ) :"
3639,"join statements into a string, separated by white spaces, append it to statements.","statements . append ( "" "" . join ( statement ) )"
3640,"call the function mark_safe with an argument arg, append it to arg_vals.",arg_vals . append ( mark_safe ( arg ) )
3641,raise an NotImplementedError exception with argument string 'subclasses of Storage must provide a size() method'.,raise NotImplementedError ( 'subclasses of Storage must provide a size() method' )
3642,"if not,",else :
3643,"if self.to_field_name is true,",if self . to_field_name :
3644,"try,",try :
3645,from django.utils.functional import lazy into default name space.,from django . utils . functional import lazy
3646,return s.,return s
3647,"check if lowercase header_query exists is existing_headers, return the boolean result.",return header_query . lower ( ) in existing_headers
3648,"get the value 'allow_cascade' key of the options dictionary, if it exists substitute it for allow_cascade, otherwise allow_cascade is boolean False.","allow_cascade = options . get ( 'allow_cascade' , False )"
3649,derive the class CharField from the base class Field class.,class CharField ( Field ) :
3650,"where '%s' is replaced with app_label. try,",try :
3651,substitute params for self.params.,self . params = params
3652,substitute msg for self.msg.,self . msg = msg
3653,"if self has an attribute 'clean_%s', where '%s' is replaced with name,","if hasattr ( self , 'clean_%s' % name ) :"
3654,derive class TemporaryFile from the base class FileProxyMixin.,class TemporaryFile ( FileProxyMixin ) :
3655,substitute negate for self.negate.,self . negate = negate
3656,"if return value of the function normcase called with an argument final_path doesnt starts with result of the function normcase,",if ( not normcase ( final_path ) . startswith ( normcase ( base_path + sep ) ) and normcase ( final_path ) != normcase ( base_path ) and dirname ( normcase ( base_path ) ) != normcase ( base_path ) ) :
3657,substitute self.subject for subject.,subject = self . subject
3658,"try,",try :
3659,write item to zfile stream.,zfile . write ( item )
3660,"with all '%s' strings replaced with migration_name and app_label, respectively, as an argument. if KeyError exception is raised,",except KeyError :
3661,"call the method app_list.items, use the result as an argument for the call to the function sort_dependencies, for every model in result,",for model in sort_dependencies ( app_list . items ( ) ) :
3662,define the function pluralize with 2 arguments value and arg set to character 's'.,"def pluralize ( value , arg = 's' ) :"
3663,"if ImportError, renamed to e, exception is caught,",except ImportError as e :
3664,return valid.,return valid
3665,"call the method self.iterkeys, return the list of results.",return list ( self . iterkeys ( ) )
3666,substitute target_var for self.target_var.,self . target_var = target_var
3667,"if allow_overwrite is boolean False and call to the os.access function with arguments new_file_name and os.F_OK evaluates to boolean True,","if not allow_overwrite and os . access ( new_file_name , os . F_OK ) :"
3668,"if not,",else :
3669,"if value under the DEFAULT_CACHE_ALIAS key of caches dictionary equals to other, return boolean True, otherwise return False.",return caches [ DEFAULT_CACHE_ALIAS ] == other
3670,"return the result of the call to the function force_text, with s, encoding, string_only and errors as arguments.","return force_text ( s , encoding , strings_only , errors )"
3671,delete the _serializers dictionary entry at the format key.,del _serializers [ format ]
3672,"get the value under the field key of the html dictionary, append it to output.",output . append ( html [ field ] )
3673,"call the method self._handle_fk_field_node with field_node and field as arguments, substitute the result for the value under the","data [ field . attname ] = self . _handle_fk_field_node ( field_node , field )"
3674,raise an exception.,raise
3675,from django.conf import settings into default name space.,from django . conf import settings
3676,"return an string """", substitute '%s' with elements of self.loopvars joined into a string,","return """" % ( ', ' . join ( self . loopvars ) , self . sequence , len ( self . nodelist_loop ) , reversed_text )"
3677,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
3678,define the method tag_exists with self class instance and tag as arguments.,"def tag_exists ( self , tag ) :"
3679,call the method self.validate_name with 2 arguments name and app_or_project.,"self . validate_name ( name , app_or_project )"
3680,derive the TemporaryUploadedFile class from the UploadedFile base class.,class TemporaryUploadedFile ( UploadedFile ) :
3681,define the function dictsort with 2 arguments value and arg.,"def dictsort ( value , arg ) :"
3682,"if prefix is false, and self doesnt have '_callback_str' attribute,","if not prefix or not hasattr ( self , '_callback_str' ) :"
3683,do nothing.,pass
3684,raise an NotImplementedError with an argument string 'Subclasses must define this method.'.,raise NotImplementedError ( 'Subclasses must define this method.' )
3685,"join basedir, l and string 'LC_MESSAGES' into a path separated by '/' for every l in locales, assign the list to dirs.","dirs = [ os . path . join ( basedir , l , 'LC_MESSAGES' ) for l in locales ]"
3686,substitute self.regexes for regexes.,regexes = self . regexes
3687,"call the function trim_whitespace with an argument message, substitute the result for message.",message = trim_whitespace ( message )
3688,substitute value under the 'verbosity' key of the options dictionary for verbosity.,verbosity = options . get ( 'verbosity' )
3689,"__all__ is an list containing 6 elements: 'get_cache', 'cache', 'DEFAULT_CACHE_ALIAS', 'InvalidCacheBackendError',","__all__ = [ 'get_cache' , 'cache' , 'DEFAULT_CACHE_ALIAS' , 'InvalidCacheBackendError' , 'CacheKeyWarning' , 'BaseCache' , ]"
3690,define the method empty_block_tag with 2 arguments: self and token.,"def empty_block_tag ( self , token ) :"
3691,"basedirs is a list containing tuple with strings, 'conf/locale' and 'locale'.","basedirs = [ os . path . join ( 'conf' , 'locale' ) , 'locale' ]"
3692,"join first element of django.__path__, string 'conf' and subdir into a valid file path, return it.","return path . join ( django . __path__ [ 0 ] , 'conf' , subdir )"
3693,"if settings.configured is true,",if settings . configured :
3694,"if value under the 'indent' key of the self.options dictionary is true,","if self . options . get ( ""indent"" ) :"
3695,"try,",try :
3696,"if f is an instance of ManyToManyField,","if isinstance ( f , ManyToManyField ) :"
3697,define the method __eq__ with 2 arguments: self and other.,"def __eq__ ( self , other ) :"
3698,"raise SuspiciousMultipartForm exception with an argument string, ""The multipart parser got stuck, which shouldn't happen with""","raise SuspiciousMultipartForm ( ""The multipart parser got stuck, which shouldn't happen with"" "" normal uploaded files. Check for malicious upload activity;"" "" if there is none, report this to the Django developers."" )"
3699,pos and last are integer 0.,pos = last = 0
3700,"if klass is not contained in cls.__dispatch,",if klass not in cls . __dispatch :
3701,"is derived from the formset base class and with fields contained in attrs, return an instance of the obtained class. define the function all_valid with an argument formsets.",def all_valid ( formsets ) :
3702,"'%(label)s %(errors)s%(field)s%(help_text)s ', error_row set to a a string, '%s ', row_ender set to a string '', help_text_html set to a string, '%s ' and errors_on_separate_row set to boolean False. define the method as_ul with an argument self.",def as_ul ( self ) :
3703,"call the method apps.get_app_config with an argument exclude, substitute the result for app_config.",app_config = apps . get_app_config ( exclude )
3704,substitute connection.ops.quote_name for qn.,qn = connection . ops . quote_name
3705,substitute args for self.__args.,self . __args = args
3706,"try,",try :
3707,"get the value under the ext key of the extension_map dictionary, substitute it for cls.",cls = extension_map . get ( ext )
3708,yield buf as return value of the generator.,yield buf
3709,"if formatter is true,",if formatter :
3710,"if not,",else :
3711,new_args is an empty list.,new_args = [ ]
3712,substitute method for value under the funcname key of the dictionary under the klass key of the cls.__dispatch dictionary.,cls . __dispatch [ klass ] [ funcname ] = method
3713,return statements.,return statements
3714,"call the method node.getAttribute with an argument attr, substitute the result for model_identifier.",model_identifier = node . getAttribute ( attr )
3715,"while i is lesser than length of subject and i-th element of subject is not an empty space or tab character,","while i < len ( subject ) and subject [ i ] not in ( ' ' , '\t' ) :"
3716,"define validate_name with 3 arguments: self, name and app_or_project.","def validate_name ( self , name , app_or_project ) :"
3717,"call the self.style.HTTP_NOT_FOUND with an argument msg, substitute it for msg.",msg = self . style . HTTP_NOT_FOUND ( msg )
3718,"from django.utils import dateformat, numberformat and datetime_safe into default name space.","from django . utils import dateformat , numberformat , datetime_safe"
3719,"and result of the bitwise OR performed on the re.MULTILINE and re.DOTALL operands, substitute the result for plural_forms_re/ STATUS_OK is integer 0.",STATUS_OK = 0
3720,"call the method logging.getLogger with an argument name, substitute the result for logger.",logger = logging . getLogger ( name )
3721,"if new_name starts with a string '_',",if new_name . startswith ( '_' ) :
3722,define the method __repr__ with an argument self.,def __repr__ ( self ) :
3723,"from functools import wraps, update_wrapper and WRAPPER_ASSIGNMENTS into default name space.","from functools import wraps , update_wrapper , WRAPPER_ASSIGNMENTS"
3724,"if string '%(truncated_text)s' is contained in truncate,",if '%(truncated_text)s' in truncate :
3725,"define the method _wrapper with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def _wrapper ( self , * args , ** kwargs ) :"
3726,"call the function warnings.warn with an argument string ""Your TEMPLATE_LOADERS setting includes %r, but your Python installation","warnings . warn ( ""Your TEMPLATE_LOADERS setting includes %r, but your Python installation doesn't support that type of template loading. Consider removing that line from TEMPLATE_LOADERS."" % loader )"
3727,decorator function lru_cache.lru_cache with an argument maxsize set to integer 1000.,@ lru_cache . lru_cache ( maxsize = 1000 )
3728,from email.message import Message into default name space.,from email . message import Message
3729,"if item_type equals FIELD,",if item_type == FIELD :
3730,"call the function get_template_from_string with 3 arguments: template, origin and template_name, substitute the result for template.","template = get_template_from_string ( template , origin , template_name )"
3731,return an empty list.,return [ ]
3732,"if not,",else :
3733,"decorator stringfilter,",@ stringfilter
3734,"if self.timezone is None,",if self . timezone is None :
3735,"for every replacement in the resulting set, replace every occurrence of replacement in value for an empty string, substitute the result for value.","value = value . replace ( replacement , '' )"
3736,"join localpart and domain in a string separated by '@' character, substitute it for addr.","addr = '@' . join ( [ localpart , domain ] )"
3737,"define the method __init__ with 6 arguments: self, _subtype set to string 'mixed', boundary set to None, _subparts set to None,","def __init__ ( self , _subtype = 'mixed' , boundary = None , _subparts = None , encoding = None , ** _params ) :"
3738,"call the method error with an argument message, from the base class of the class CommandParser.","super ( CommandParser , self ) . error ( message )"
3739,"with call to the io.open function with fname and string 'rb' as arguments, renamed to f,","with io . open ( fname , 'rb' ) as f :"
3740,define the method tags_available with argument self.,def tags_available ( self ) :
3741,"if not,",else :
3742,return key_func.,return key_func
3743,"substitute bits, without the first two elements, substitute the result for remaining_bits.",remaining_bits = bits [ 2 : ]
3744,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
3745,substitute self.STDOFFSET for self.DSTOFFSET.,self . DSTOFFSET = self . STDOFFSET
3746,derive the class Loader from the BaseLoader base class.,class Loader ( BaseLoader ) :
3747,from django.utils.module_loading import import_string into default name space.,from django . utils . module_loading import import_string
3748,return self._urlconf_module.,return self . _urlconf_module
3749,"if self.localize is true,",if self . localize :
3750,"handler is an instance of SimplerXMLGenerator class, created with 2 arguments: outfile and encoding.","handler = SimplerXMLGenerator ( outfile , encoding )"
3751,"if length bits is smaller than intger 4,",if len ( bits ) < 4 :
3752,output_transaction is boolean True.,output_transaction = True
3753,"library set to memcache and value_not_found_exception set to ValueError. property decorator,",@ property
3754,"encoding.setter decorator,",@ encoding . setter
3755,"for every k in doomed,",for k in doomed :
3756,decorator function lru_cache.lru_cache with an argument maxsize set to integer 1000.,@ lru_cache . lru_cache ( maxsize = 1000 )
3757,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
3758,_mutable is boolean True.,_mutable = True
3759,_meta is class Options class instance initialized with table argument.,_meta = Options ( table )
3760,"if character ':' is not contained in template,",if ':' not in template :
3761,define the method __iter__ with an argument self.,def __iter__ ( self ) :
3762,"raise an ValidationError with 3 arguments: value under the 'invalid_choice' key of the self.error_messages dictionary,","raise ValidationError ( self . error_messages [ 'invalid_choice' ] , code = 'invalid_choice' , params = { 'value' : val } , )"
3763,return value.,return value
3764,call the function get_resolver.cache_clear.,get_resolver . cache_clear ( )
3765,"self.form.initial, if it exists, or self.field.initial if not, substitute the result for data. call the method self.field.prepare_value with an argument data, return the result.",return self . field . prepare_value ( data )
3766,define the function normalize_newlines with an argument text.,def normalize_newlines ( text ) :
3767,"raise and exception InvalidCacheBackendError with string ""Could not find backend '%s': %s"" as argument, replace '%s' with backend and e, respectively.","raise InvalidCacheBackendError ( ""Could not find backend '%s': %s"" % ( backend , e ) )"
3768,"if settings.USE_L10N is true and value is an instance of six.string_types,","if settings . USE_L10N and isinstance ( value , six . string_types ) :"
3769,"call the method six.moves.input with an argument string ""Do you wish to proceed? [yN] "", substitute the result for answer.","answer = six . moves . input ( ""Do you wish to proceed? [yN] "" )"
3770,define the method negate with an argument self.,def negate ( self ) :
3771,from django.conf import settings into default name space.,from django . conf import settings
3772,"if use_tls is None substitute settings.EMAIL_USE_TLS for self.username, if not substitute use_tls for self.use_tls.",self . use_tls = settings . EMAIL_USE_TLS if use_tls is None else use_tls
3773,"append e to debugs list for every e in all_issues, if e.level is lesser than checks.INFO and result of the method e.is_silenced in false.",debugs = [ e for e in all_issues if e . level < checks . INFO and not e . is_silenced ( ) ]
3774,"use its __file__ field as an argument for the call to the function upath, substitute the result for settingsfile. call the function os.path.dirname with an argument settingsfile, join the result an string 'locale' into a file path,","localedir = os . path . join ( os . path . dirname ( settingsfile ) , 'locale' )"
3775,"call the method date.tzinfo.utcoffset with an argument date, substitute the result for offset.",offset = date . tzinfo . utcoffset ( date )
3776,"call the function BytesIO with self.buffer as argument, store the result is sio.",sio = BytesIO ( self . buffer )
3777,"define the method __init__ with 5 arguments: self, var, name, nodelist and extra_context set to None.","def __init__ ( self , var , name , nodelist , extra_context = None ) :"
3778,"call the function starttag_re.sub with 2 arguments: an empty string and html, substitute the result for html.","html = starttag_re . sub ( '' , html )"
3779,call the method __init__ from the base class of the Deserializer class with arguments stream_or_string and unpacked dictionary options.,"super ( Deserializer , self ) . __init__ ( stream_or_string , ** options )"
3780,"call the method self.val_expr.resolve with an argument context, substitute the result for value.",value = self . val_expr . resolve ( context )
3781,from itertools import dropwhile into default name space.,from itertools import dropwhile
3782,define the method validate_unique with an argument self.,def validate_unique ( self ) :
3783,"if not self.to_field is None. if self.parent_instance is not None,",if self . parent_instance is not None :
3784,"use the result as an argument for the call to the mark_safe function, return the result. call the function func with 2 arguments: unpacked list args and unpacked dictionary kwargs, return the result.","return func ( * args , ** kwargs )"
3785,"if ValueError exception is caught,",except ValueError :
3786,"if field_type equals a string CharField' and fourth element of row is true,",if field_type == 'CharField' and row [ 3 ] :
3787,"if length of t is greater than integer 1,",if len ( t ) > 1 :
3788,"if error.params is true,",if error . params :
3789,"call the function quote with the result and with the safe set to bytes string ""/~!*()'"", return the function result. define the function get_system_encoding without the input arguments.",def get_system_encoding ( ) :
3790,"call the function import_string with an argument logging_config, substitute the result for logging_config_func.",logging_config_func = import_string ( logging_config )
3791,"if field_desc doesnt end with '(',",if not field_desc . endswith ( '(' ) :
3792,from django.utils.encoding import force_text into default name space.,from django . utils . encoding import force_text
3793,from django.core.management.base import BaseCommand and CommandError into default name space.,"from django . core . management . base import BaseCommand , CommandError"
3794,"if from_email exists substitute from_email for self.from_email, if not substitute settings.DEFAULT_FROM_EMAIL for self.from_email.",self . from_email = from_email or settings . DEFAULT_FROM_EMAIL
3795,"call the method self.next_token, substitute the result for self.current_token.",self . current_token = self . next_token ( )
3796,"use it as an argument for the call to the method self.style.MIGRATE_HEADING, write the result to self.stdout. call the method writer.as_string, append newline to the result, write it to self.stdout.","self . stdout . write ( ""%s\n"" % writer . as_string ( ) )"
3797,define the method encoding with arguments self and val.,"def encoding ( self , val ) :"
3798,"try,",try :
3799,define the method reverse_dict with an argument self.,def reverse_dict ( self ) :
3800,for every file in value under the 'files' key of the options dictionary.,for file in options [ 'files' ] :
3801,"'Nominates a database to print the SQL for. Defaults to the ""default"" database.' as the arguments. define method handle_app_config with self class instance, app_config and dictionary options as arguments.","def handle_app_config ( self , app_config , ** options ) :"
3802,"if ValidationError, renamed to e, is caught,",except ValidationError as e :
3803,define the function new_datetime with an argument d.,def new_datetime ( d ) :
3804,return obj.,return obj
3805,"if threading is true,",if threading :
3806,MAX_NUM_FORM_COUNT is a string 'MAX_NUM_FORMS'.,MAX_NUM_FORM_COUNT = 'MAX_NUM_FORMS'
3807,"call the Warning function with 3 arguments: hint tuple containing one string, Django 1.6 introduced a new default test runner.","return [ Warning ( ""Some project unittests may not execute as expected."" , hint = ( ""Django 1.6 introduced a new default test runner. It looks like "" ""this project was generated using Django 1.5 or earlier. You should "" ""ensure your tests are all running & behaving as expected. See "" ""https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner "" ""for more information."" ) , obj = None , id = '1_6.W001' , ) ]"
3808,define the function compare_ordering_key with an argument k.,def compare_ordering_key ( k ) :
3809,delete the value under the key key of self._cache dictionary.,del self . _cache [ key ]
3810,"previous result and filepath. if IOError exception is caught,",except IOError :
3811,"define the method __init__ with 5 arguments: self, protocol set to string 'both', unpack_ipv4 set to boolean False,","def __init__ ( self , protocol = 'both' , unpack_ipv4 = False , * args , ** kwargs ) :"
3812,"otherwise if t.token_type equals TOKEN_VAR,",elif t . token_type == TOKEN_VAR :
3813,define the method body with an argument self.,def body ( self ) :
3814,"raise an TemplateSyntaxError exception with an argument string ""'ssi' tag takes one argument: the path to the file to be included"".","raise TemplateSyntaxError ( ""'ssi' tag takes one argument: the path to"" "" the file to be included"" )"
3815,return self.position.,return self . position
3816,"increment self.active_writers by integer 1,",self . active_writers += 1
3817,from django.utils.deprecation import RemovedInDjango19Warning into default name space.,from django . utils . deprecation import RemovedInDjango19Warning
3818,"try,",try :
3819,"call the method connection.introspection.table_names, substitute the result for tables.",tables = connection . introspection . table_names ( )
3820,skip this loop iteration.,continue
3821,"call the method __init__ from the base class of the CommandParser class, with unpacked dictionary kwargs as argument.","super ( CommandParser , self ) . __init__ ( ** kwargs )"
3822,"if self.validate_max is true, and length of self.deleted_forms subtracted from the return value of the method self.total_form_count,",if ( self . validate_max and self . total_form_count ( ) - len ( self . deleted_forms ) > self . max_num ) or self . management_form . cleaned_data [ TOTAL_FORM_COUNT ] > self . absolute_max :
3823,"if not,",else :
3824,"convert value into a iterator, substitute the result for self._iterator.",self . _iterator = iter ( value )
3825,derive the class MemcachedCache from the BaseMemcachedCache base class.,class MemcachedCache ( BaseMemcachedCache ) :
3826,"evaluate the function bytes with the argument s, and return the result.",return bytes ( s )
3827,"raise an TemplateSyntaxError exception with an argument string ""widthratio final argument must be a number"".","raise TemplateSyntaxError ( ""widthratio final argument must be a number"" )"
3828,"call the function re.compile with an argument raw string '(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))', substitute the result for re_camel_case.",re_camel_case = re . compile ( r'(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))' )
3829,"call the add_argument method on parser object, use string '--database', default set to DEFAULT_DB_ALIAS and help set to string,","parser . add_argument ( '--database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to print the SQL for. Defaults to the ' '""default"" database.' )"
3830,derive the class Command from the BaseCommand base class.,class Command ( BaseCommand ) :
3831,"try,",try :
3832,"define the method combine with 3 arguments: cls, date and time.","def combine ( cls , date , time ) :"
3833,"if first element of e.args is not contained in not_found,",if e . args [ 0 ] not in not_found :
3834,substitute i-th element of self.data for error.,error = self . data [ i ]
3835,"if six.PY2 is true,",if six . PY2 :
3836,"and digestmod set to hashlib.sha1, return the result. define the function constant_time_compare with 2 arguments: length set to integer 12,","def get_random_string ( length = 12 , allowed_chars = 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' ) :"
3837,call the function get_ns_resolver.cache_clear.,get_ns_resolver . cache_clear ( )
3838,"if self.forms is true,",if self . forms :
3839,id is None.,id = None
3840,call the initialization method with argument params for the base class of the BaseMemcachedCache class.,"super ( BaseMemcachedCache , self ) . __init__ ( params )"
3841,define the method __enter__ with an argument self.,def __enter__ ( self ) :
3842,derive the class Tok from the object base class.,class Tok ( object ) :
3843,value under the 'null' key of the extra_params dictionary is boolean True.,extra_params [ 'null' ] = True
3844,"help is a string ""Checks the entire Django project for potential problems."".","help = ""Checks the entire Django project for potential problems."""
3845,"call the function is_protected_type with an argument value, if it evaluates to true,",if is_protected_type ( value ) :
3846,"use the result as an argument for the call to the b64_encode function, return the result. define the function get_cookie_signer with an argument salt set to string 'django.core.signing.get_cookie_signer'.",def get_cookie_signer ( salt = 'django.core.signing.get_cookie_signer' ) :
3847,"try,",try :
3848,derive the class ChoiceField from the base class Field class.,class ChoiceField ( Field ) :
3849,"if not,",else :
3850,"if value under the 'microsecond' key of the kw dictionary is true,",if kw [ 'microsecond' ] :
3851,"append '_' to string created from first p elements of languages converted to lowercase,",return language [ : p ] . lower ( ) + '_' + language [ p + 1 : ] . upper ( )
3852,"if ValueError exception is caught,",except ValueError :
3853,mime_type is a string 'application/atom+xml; charset=utf-8'.,mime_type = 'application/atom+xml; charset=utf-8'
3854,call the function walk_to_end with 2 arguments: ch and pattern_iter.,"walk_to_end ( ch , pattern_iter )"
3855,"if field.rel.to._default_manager has an atttribute 'get_by_natural_key',","if hasattr ( field . rel . to . _default_manager , 'get_by_natural_key' ) :"
3856,call the function locks.unlock with argument fd.,locks . unlock ( fd )
3857,"if UnicodeError exception is caught,",except UnicodeError :
3858,import module os.,import os
3859,"cache is an instance of BaseDatabaseCache class, created with arguments: tablename and an empty dictionary.","cache = BaseDatabaseCache ( tablename , { } )"
3860,"if widget is an instance of the NumberInput class, and string 'step' is not contained in widget.attrs,","if isinstance ( widget , NumberInput ) and 'step' not in widget . attrs :"
3861,"call the function localize with 2 arguments: value and use_l10n=context.use_l10n, substitute the result for value.","value = localize ( value , use_l10n = context . use_l10n )"
3862,"_fields_ is a list containing 2 tuples: first tuple contains: string 'Offset' and DWORD, second contains: string 'OffsetHigh' and DWORD.","_fields_ = [ ( 'Offset' , DWORD ) , ( 'OffsetHigh' , DWORD ) ]"
3863,return token.,return token
3864,"if keys is true,",if keys :
3865,"raise an ImproperlyConfigured exception with argument string '""%s"" is not a valid regular expression: %s',","raise ImproperlyConfigured ( '""%s"" is not a valid regular expression: %s' % ( regex , six . text_type ( e ) ) )"
3866,"with an argument self.data.year decremented by 1, evaluates to true, week_number is integer 53.",week_number = 53
3867,"for every node in return value of the graph.leaf_nodes method called with the app_name argument,",for node in graph . leaf_nodes ( app_name ) :
3868,"yield string 'from %s import models' % self.db_module as the result, where ""%s"" is replaced with result of the call to the function,",yield 'class %s(models.Model):' % table2model ( table_name )
3869,"autodetector is an instance of the MigrationAutodetector class, created with 3 arguments: result of the method loader.project_state,","autodetector = MigrationAutodetector ( loader . project_state ( ) , ProjectState . from_apps ( apps ) , InteractiveMigrationQuestioner ( specified_apps = app_labels , dry_run = self . dry_run ) , )"
3870,substitute self.start_doctype_decl for parser.StartDoctypeDeclHandler.,parser . StartDoctypeDeclHandler = self . start_doctype_decl
3871,import module re.,import re
3872,"call the BaseConverter function with BASE16_ALPHABET as argument, store the result in base16.",base16 = BaseConverter ( BASE16_ALPHABET )
3873,"get the value under the name key of self.blocks dictionary, insert to it block at the beginning.","self . blocks [ name ] . insert ( 0 , block )"
3874,"replace '%s' in string ""%s; charset=%s"" with settings.DEFAULT_CONTENT_TYPE and self._charset, substitute it for content_type.","content_type = ""%s; charset=%s"" % ( settings . DEFAULT_CONTENT_TYPE , self . _charset )"
3875,"if not,",else :
3876,define the method _get_choices with an argument self.,def _get_choices ( self ) :
3877,define the function autoescape with 2 arguments: parser and token.,"def autoescape ( parser , token ) :"
3878,define the method start_serialization with an argument self.,def start_serialization ( self ) :
3879,"try,",try :
3880,"if port exists substitute it for self.host, if not substitute settings.EMAIL_PORT for self.port.",self . port = port or settings . EMAIL_PORT
3881,"and list with results of the function force_str with an argument i, for every i in v, only if v is a list or a tuple, otherwise second element is result of the function force_str with an argument v, for every k and v in query, and doseq, return the result. define the function cookie_date with an argument epoch_seconds set to None.",def cookie_date ( epoch_seconds = None ) :
3882,"otherwise if ':' is not contained in middle and result of the function simple_email_re.match called with an argument middle,",elif ':' not in middle and simple_email_re . match ( middle ) :
3883,import module itertools.,import itertools
3884,"get the value under the 'HTTP_ACCEPT_LANGUAGE' key of the request.META dictionary, if it exists substitute it for accept,","accept = request . META . get ( 'HTTP_ACCEPT_LANGUAGE' , '' )"
3885,"where '%s' is replaced with taglib_module and e. try,",try :
3886,"define the __init__ method with arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
3887,"call the method six.reraise 3 with arguments: os_err_exc_type, return value of the function os_err_exc_type,","six . reraise ( os_err_exc_type , os_err_exc_type ( 'Error executing %s: %s' % ( args [ 0 ] , strerror ) ) , sys . exc_info ( ) [ 2 ] )"
3888,import module re.,import re
3889,"if smtplib.SMTPException exception is caught,",except smtplib . SMTPException :
3890,break from the loop execution.,break
3891,import module sys.,import sys
3892,"define lambda function that returns self.file.encoding field, use it as an argument for property function, put the result in encoding.",encoding = property ( lambda self : self . file . encoding )
3893,"return an instance of SafeBytes, created with an argument s.",return SafeBytes ( s )
3894,"call the function translation with an argument settings.LANGUAGE_CODE, substitute the result for _default.",_default = translation ( settings . LANGUAGE_CODE )
3895,define the method remove with 2 arguments: self and item.,"def remove ( self , item ) :"
3896,import module warnings.,import warnings
3897,try,try :
3898,"raise an CommandError exception, with an arguent: string ""App '%s' has migrations. Only the sqlmigrate and sqlflush commands can be used when an app has migrations."", where '%s' is replaced for app_config.label.","raise CommandError ( ""App '%s' has migrations. Only the sqlmigrate and sqlflush commands can be used when an app has migrations."" % app_config . label )"
3899,derive the class NodeList form the base class list.,class NodeList ( list ) :
3900,"call the method content.encode with an argument string 'utf-8', substitute it for content.",content = content . encode ( 'utf-8' )
3901,call the method self.merge with an argument translation.,self . merge ( translation )
3902,"try,",try :
3903,substitute stream for self._stream.,self . _stream = stream
3904,call the self._delete method with argument f.name.,self . _delete ( f . name )
3905,"for every i in range of integers from integer 0 to the length of pieces decremented by one, with step of integer 3,","for i in range ( 0 , len ( pieces ) - 1 , 3 ) :"
3906,field_type is a string 'NullBooleanField(',field_type = 'NullBooleanField('
3907,call the method handler.addQuickElement with 2 arguments: string 'description' and value under the 'description' key of item dictionary.,"handler . addQuickElement ( ""description"" , item [ 'description' ] )"
3908,call the function warnings.warn with 3 arguments:,"warnings . warn ( ""memoize wrapper is deprecated and will be removed in "" ""Django 1.9. Use django.utils.lru_cache instead."" , RemovedInDjango19Warning , stacklevel = 2 )"
3909,"raise an TemplateSyntaxError exception with an argument string 'The %r option was specified more than once.',",raise TemplateSyntaxError ( 'The %r option was specified more ' 'than once.' % option )
3910,"if to is true,",if to :
3911,define the method close with argument self.,def close ( self ) :
3912,"evaluate the function import_string with middleware_path as argument, substitute the result for my_class.",mw_class = import_string ( middleware_path )
3913,"get the value of dictionary cache under the key cache_key, if key is not available return None, substitute it for headerlist.","headerlist = cache . get ( cache_key , None )"
3914,base36 is an empty list.,base36 = [ ]
3915,self.settings_exception is None.,self . settings_exception = None
3916,"call the method connection.ops.sequence_reset_sql with 2 arguments: return value of the no_style and self.models,","sequence_sql = connection . ops . sequence_reset_sql ( no_style ( ) , self . models )"
3917,from django import http into default name space.,from django import http
3918,call the signals.got_request_exception.send method with sender set to type of the self class instance and request set to request.,"signals . got_request_exception . send ( sender = self . __class__ , request = request )"
3919,substitute self.none_value for self.month_none_value.,self . month_none_value = self . none_value
3920,"if git_changeset is true,",if git_changeset :
3921,"substitute the result for language_code_re. call the function re.compile with an argument raw string '^/([\w-]+)(/|$)', substitute the result for language_code_prefix_re.",language_code_prefix_re = re . compile ( r'^/([\w-]+)(/|$)' )
3922,"call the method __init__ from the base class of the class Select, with an argument attrs.","super ( Select , self ) . __init__ ( attrs )"
3923,"try,",try :
3924,"define the method render with 4 arguments: self, name, value and attrs set to None.","def value_from_datadict ( self , data , files , name ) :"
3925,"call the method datetime.datetime.combine with unpacked list data_list, substitute the result for result.",result = datetime . datetime . combine ( * data_list )
3926,return value.,return value
3927,"call the method popitem from the base class of the class SortedDict, substitute the result for result.","result = super ( SortedDict , self ) . popitem ( )"
3928,"if not,",else :
3929,call the method self.tag with 2 arguments: function_name and compile_func.,"self . tag ( function_name , compile_func )"
3930,"if pk.editable is true, or pk.auto_created is true or pk is an instance of AutoField class, or if pk.rel is true,","return ( ( not pk . editable ) or ( pk . auto_created or isinstance ( pk , AutoField ) ) or ( pk . rel and pk . rel . parent_link and pk_is_not_editable ( pk . rel . to . _meta . pk ) ) )"
3931,derive the class ForNode from Node base class.,class ForNode ( Node ) :
3932,from logging.config import dictConfig.,from logging . config import dictConfig
3933,from django.utils.six.moves.urllib.parse import quote into default name space.,from django . utils . six . moves . urllib . parse import quote
3934,"join it with app into a string, separated with string '; ', substitute it for name_str. substitute '%s\ in string ""Conflicting migrations detected (%s).\nTo fix them run 'python manage.py makemigrations --merge'"",","raise CommandError ( ""Conflicting migrations detected (%s).\nTo fix them run 'python manage.py makemigrations --merge'"" % name_str )"
3935,"if message is not an instance of the ValidationError class,","if not isinstance ( message , ValidationError ) :"
3936,'CacheKeyWarning' and 'BaseCache' DEFAULT_CACHE_ALIAS is a string 'default'.,DEFAULT_CACHE_ALIAS = 'default'
3937,substitute name for self.__name.,self . __name = name
3938,"if value under the index key of the hextets dictionary equals to string '0',",if hextets [ index ] == '0' :
3939,substitute prefix for self.prefix.,self . prefix = prefix
3940,"if not,",else :
3941,"raise an TemplateSyntaxError exception with an argument string ""'%s' received some positional argument(s) after some keyword argument(s)"", where '%s' is replaced with name.","raise TemplateSyntaxError ( ""'%s' received some positional argument(s) after some "" ""keyword argument(s)"" % name )"
3942,"if match is true and call to the method match.group with an argument integer 1 evaluates to true, kwarg_format is boolean True,",kwarg_format = match and match . group ( 1 )
3943,"call the method self.__class__ with 3 arguments: an empty string, mutable is boolean True, encoding is self.encoding, substitute the result for result.","result = self . __class__ ( '' , mutable = True , encoding = self . encoding )"
3944,derive the class FixUnicode from the base class fixer_base.BaseFix.,class FixUnicode ( fixer_base . BaseFix ) :
3945,substitute complain for __setslice__.,__setslice__ = complain
3946,call the formataddr function with argument tuple containing 2 elements nm and addr.,"return formataddr ( ( nm , addr ) )"
3947,"if not, self.coerce is an identity lambda function with an argument val. if 'empty_value' key of the kwargs dictionary exists remove it and substitute its value for self.empty_value,","self . empty_value = kwargs . pop ( 'empty_value' , [ ] )"
3948,chunk_size is an integer 1024.,chunk_size = 1024
3949,return ZERO.,return ZERO
3950,"call the method self.choice_input_class with 5 arguments: self.name, self.value, result of the method self.attrs.copy,","return self . choice_input_class ( self . name , self . value , self . attrs . copy ( ) , choice , idx )"
3951,indexes is an empty dictionary.,indexes = { }
3952,"call the method gettext_module.NullTranslations, substitute the result for _active.value.",_active . value = gettext_module . NullTranslations ( )
3953,define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
3954,substitute fields for new_class.base_fields.,new_class . base_fields = fields
3955,"call the method m.group with an argument integer 0, substitute the result for s.",s = m . group ( 0 )
3956,incomment is boolean False.,incomment = False
3957,define the method __getattr__ with arguments self and name.,"def __getattr__ ( self , name ) :"
3958,substitute registry.register for register.,register = registry . register
3959,"define the method args_check with 3 arguments: name, func and provided.","def args_check ( name , func , provided ) :"
3960,"if any element of self.dicts is true, return boolean True, otherwise return boolean False.",return any ( self . dicts )
3961,self._template_response_middleware is an empty list.,self . _template_response_middleware = [ ]
3962,"if latest_date is None or item_date is greater than latest_date,",if latest_date is None or item_date > latest_date :
3963,"if autoescape is true and safe_input is false,",if autoescape and not safe_input :
3964,"dest as a string 'interactive', default as boolean True help as a string 'Tells Django to NOT prompt the user for input of any kind.'. define the method handle with 3 arguments: self and unpacked dictionary options.","def handle ( self , ** options ) :"
3965,"if not,",else :
3966,append j to sites.,sites . append ( j )
3967,"call the method m.group with an argument string 'value', use the result as an argument for the call to the force_str,",plural_form_line = force_str ( m . group ( 'value' ) )
3968,"try,",try :
3969,self.current is an empty dictionary.,self . _current = { }
3970,models is an empty set.,models = set ( )
3971,define the method __init__ with 2 arguments: self and offset.,"def __init__ ( self , offset ) :"
3972,"define the method value_from_datadict with 4 arguments: self, data, files and name.","def value_from_datadict ( self , data , files , name ) :"
3973,from django.utils.encoding import force_st into default name space.,from django . utils . encoding import force_str
3974,params is a dictionary with 2 initial entries: self.max_length for 'max' and length of file_name for 'length'.,"params = { 'max' : self . max_length , 'length' : len ( file_name ) }"
3975,write migration_string to file fh.,fh . write ( migration_string )
3976,"if safe is true,",if safe :
3977,return integer 0.,return 0
3978,"call the method self.extend_nodelist with 3 arguments: nodelist, var_node and token.","self . extend_nodelist ( nodelist , var_node , token )"
3979,call the mail.attach_alternative method with html_message and string 'text/html' as arguments.,"mail . attach_alternative ( html_message , 'text/html' )"
3980,import module hashlib.,import hashlib
3981,"call the function is_aware with an argument date, if it evaluates to true,",if is_aware ( date ) :
3982,"convert self.literal into an integer, substitute it for self.literal.",self . literal = int ( self . literal )
3983,"call the datastructures.MergeDict with self.POST and self.GET as arguments, assign the result to self._request.","self . _request = datastructures . MergeDict ( self . POST , self . GET )"
3984,terminal_char is an string '>'.,terminal_char = '>'
3985,"call the function normalize_newlines with an argument value, substitute the result for value.",value = normalize_newlines ( value )
3986,call the method form.save_m2m.,form . save_m2m ( )
3987,do nothing.,pass
3988,"try,",try :
3989,"if self.use_natural_foreign_keys is true and field.rel.to has an 'natural_key' attribute,","if self . use_natural_foreign_keys and hasattr ( field . rel . to , 'natural_key' ) :"
3990,"while self.tokens is true,",while self . tokens :
3991,substitute first element of self.locale_paths for self.default_locale_path.,self . default_locale_path = self . locale_paths [ 0 ]
3992,"if 'step' attribute of attrs dictionary does not exists, set it to to string 'any'.","attrs . setdefault ( 'step' , 'any' )"
3993,"define the method __init__ with 4 arguments: self, content set to an empty list, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , content = b'' , * args , ** kwargs ) :"
3994,"split dotted_path into two parts from the right at the '.' character, assign the result to module_path and class_name, respectively.","module_path , class_name = dotted_path . rsplit ( '.' , 1 )"
3995,"call the method self.queryset.get with an argument, unpacked dictionary with an element: value for key, substitute the result for value.",value = self . queryset . get ( ** { key : value } )
3996,"if StopIteration exception,",except StopIteration :
3997,call the function _load_serializers.,_load_serializers ( )
3998,"help is a tuple containing a string: 'Removes ALL DATA from the database, including data added during '","help = ( 'Removes ALL DATA from the database, including data added during ' 'migrations. Unmigrated apps will also have their initial_data ' 'fixture reloaded. Does not achieve a ""fresh install"" state.' )"
3999,"call the function pickle.dumps with argument value, use the result and integer -1 as arguments for the call to the function zlib.compress, use the result as an argument for the call to the f.write method.","f . write ( zlib . compress ( pickle . dumps ( value ) , - 1 ) )"
4000,return inner.,return inner
4001,"call the function _trans.deactivate, return the result.",return _trans . deactivate ( )
4002,"fork a child process, if the result equals integer 0,",if os . fork ( ) > 0 :
4003,"raise an CommandError exception with an argument ""Database inspection isn't supported for the currently selected database backend."".","raise CommandError ( ""Database inspection isn't supported for the currently selected database backend."" )"
4004,"call the function template_localtime with 2 arguments: output and use_tz set to context.use_tz, substitute the result for output.","output = template_localtime ( output , use_tz = context . use_tz )"
4005,"call the method self.save_new with 2 arguments: form and commit as commit, append the result to self.new_objects.","self . new_objects . append ( self . save_new ( form , commit = commit ) )"
4006,define the method splitext with arguments self and the_path.,"def splitext ( self , the_path ) :"
4007,define the method exists with arguments self and name.,"def exists ( self , name ) :"
4008,substitute _iteritems for items.,items = _iteritems
4009,"if value is Nan, or value is contained in return value of the Decimal called twice with string 'Inf' and with string '-Inf',","if value != value or value in ( Decimal ( 'Inf' ) , Decimal ( '-Inf' ) ) :"
4010,"result of the function flatatt called with an argument final_attrs, return the result. derive the class TextInput from the Input base class.",class TextInput ( Input ) :
4011,"if characters '\n' or '\r' are contained in val,",if '\n' in val or '\r' in val :
4012,"concatenate name and string '_id', return it.",return name + '_id'
4013,"if ValueError or TypeError exceptions are caught,","except ( ValueError , TypeError ) :"
4014,"if app_name is not contained in loader.migrated_apps,",if app_name not in loader . migrated_apps :
4015,"""|^""([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*""$)"" and re.IGNORECASE, substitute the result for user_regex. call the re.compile function with 2 arguments: raw string '(?:[A-Z0-9](?:[A-Z0-9-]{0,247}[A-Z0-9])?\.)+(?:[A-Z]{2,6}|[A-Z0-9-]{2,}(?{0}{1}', tuple containing tuples with 2 elements: k and result of the function force_text with an argument v, for every k and v in items of the dictionary self, return the result. define the method as_text with an argument self.",def as_text ( self ) :
4171,define the method register with self ans unpacked list tags as arguments.,"def register ( self , * tags ) :"
4172,derive the class ModelChoiceIterator from object base class.,class ModelChoiceIterator ( object ) :
4173,"convert number to a string, truncate first element.",number = str ( number ) [ 1 : ]
4174,"decrement self.number by one, multiply it by self.paginator.per_page, increment the result by one, return it.",return ( self . paginator . per_page * ( self . number - 1 ) ) + 1
4175,"if escaped is true,",if escaped :
4176,"if self.id is contained in settings.SILENCED_SYSTEM_CHECKS return boolean True, False otherwise.",return self . id in settings . SILENCED_SYSTEM_CHECKS
4177,derive the class CacheClass from the base class FileBasedCache.,class CacheClass ( FileBasedCache ) :
4178,"if parser doesnt have an '_namedCycleNodes' attribute,","if not hasattr ( parser , '_namedCycleNodes' ) :"
4179,"join func.__module__ and func.__name__ into a string, separated by character '.', substitute it for self._func_path.","self . _func_path = '.' . join ( [ func . __module__ , func . __name__ ] )"
4180,substitute cache_info for wrapper.cache_info.,wrapper . cache_info = cache_info
4181,excluded_models is an empty set.,excluded_models = set ( )
4182,call the method g.flatten with arguments self and unixfrom set to unixfrom.,"g . flatten ( self , unixfrom = unixfrom )"
4183,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
4184,"if value is an instance of six.text_type class,","if isinstance ( value , six . text_type ) :"
4185,"if AttributeError exception is caught,",except AttributeError :
4186,"call the formatdate function, substitute it for value under the 'Date' key of msg dictionary.",msg [ 'Date' ] = formatdate ( )
4187,define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
4188,substitute cyclevars for self.cyclevars.,self . cyclevars = cyclevars
4189,"call the method _construct_form from the base class of the class BaseInlineFormSet, with 2 arguments: i,","form = super ( BaseInlineFormSet , self ) . _construct_form ( i , ** kwargs )"
4190,delete X.,del X
4191,"error_messages as an dictionary with an entry: value under the 'invalid_date' of errors dictionary for 'invalid', localize set to localize, and an instance of the class TimeField created with 3 arguments: input_formats set to input_time_formats, error_messages as an dictionary with an entry: value under the 'invalid_time' of errors dictionary for 'invalid', localize set to localize call the __init__ method with fields, unpacked list args and unpacked dictionary kwargs from the base class of the SplitDateTimeField class.","super ( SplitDateTimeField , self ) . __init__ ( fields , * args , ** kwargs )"
4192,"call the method lexer.lex with an arguments js, for every name and tok in the result,","for name , tok in lexer . lex ( js ) :"
4193,"if end is not None,",if end is not None :
4194,"call the method self.cache_key with 2 arguments name and dirs, substitute the result for key.","key = self . cache_key ( name , dirs )"
4195,templatetags_modules_candidates is an list with an argument string 'django.templatetags'.,templatetags_modules_candidates = [ 'django.templatetags' ]
4196,"call the method query.lists, substitute the result for query.",query = query . lists ( )
4197,from django.core.exceptions import ImproperlyConfigured and DjangoRuntimeWarning into default name space.,"from django . core . exceptions import ImproperlyConfigured , DjangoRuntimeWarning"
4198,"from io import BytesIO, StringIO and UnsupportedOperation into default name space.","from io import BytesIO , StringIO , UnsupportedOperation"
4199,substitute csrf_token for value under the 'csrf_token' key of new_context dictionary.,new_context [ 'csrf_token' ] = csrf_token
4200,self.paths_to_remove is an empty list.,self . paths_to_remove = [ ]
4201,substitute cls.__bytes_cast for cls.__str__.,cls . __str__ = cls . __bytes_cast
4202,"decorator stringfilter,",@ stringfilter
4203,"call the function warnings.warn with 3 arguments: string 'Reversing by dotted path is deprecated (%s).', with '%s' replaced with","warnings . warn ( 'Reversing by dotted path is deprecated (%s).' % original_lookup , RemovedInDjango20Warning , stacklevel = 3 )"
4204,substitute changeset for get_git_changeset.cache.,get_git_changeset . cache = changeset
4205,from django.utils import six into default name space.,from django . utils import six
4206,"call the function _trans.activate with an argument language, return the result.",return _trans . activate ( language )
4207,substitute self for result.parent.,result . parent = self
4208,"to_unicode is an lambda function with an argument s, result is the result of the function force_text,","to_unicode = lambda s : force_text ( s , strings_only = True )"
4209,"_win is a tuple containing 1 initial boolean: True is sys.platform equals to string ""win32"", False otherwise.","_win = ( sys . platform == ""win32"" )"
4210,"convert the result to a lowercase string, substitute it for step. if not,",else :
4211,return id_.,return id_
4212,"if lang_code is contained in _supported and lang_code is not None and result of the function check_for_language,",if lang_code in _supported and lang_code is not None and check_for_language ( lang_code ) :
4213,"define the method __setitem__ with arguments self, name and val.","def __setitem__ ( self , name , val ) :"
4214,return an empty dictionary.,return { }
4215,locales is relative complement of set exclude in set locales.,locales = set ( locales ) - set ( exclude )
4216,define the function deconstruct with an argument obj.,def deconstruct ( obj ) :
4217,help is string 'Compiles .po files to .mo files for use with builtin gettext support.'.,help = 'Compiles .po files to .mo files for use with builtin gettext support.'
4218,"get the value under the if iso_input not in val key of the ISO_INPUT_FORMATS dictionary, if it doesnt exists return an empty tuple,","for iso_input in ISO_INPUT_FORMATS . get ( format_type , ( ) ) :"
4219,"call the function _generate_cache_key with request, request.method, headerlist, key_prefix as arguments, return the result.","return _generate_cache_key ( request , request . method , headerlist , key_prefix )"
4220,from django.core.files import locks and File into default name space.,"from django . core . files import locks , File"
4221,return boolean True.,return True
4222,return result.,return result
4223,pop_context is boolean False.,pop_context = False
4224,"if NameError exception is caught,",except NameError :
4225,"if field_type is a tuple,",if type ( field_type ) is tuple :
4226,return self.empty_value.,return self . empty_value
4227,"if not,",else :
4228,self._num_pages and self._count are None.,self . _num_pages = self . _count = None
4229,return boolean True.,return True
4230,substitute message for self.message.,self . message = message
4231,default_error_messages is an dictionary with an entry: return value of the function _ called with an argument string 'Enter a valid date/time.' for 'invalid'.,"default_error_messages = { 'invalid' : _ ( 'Enter a valid date/time.' ) , }"
4232,"for every arg in self.args call the method arg.resolve with an argument context, substitute the results in a list for args.",args = [ arg . resolve ( context ) for arg in self . args ]
4233,"call the method netloc.encode with an argument string 'idna', on the return value call the decode method with string 'ascii' as argument, substitute the result for netloc.",netloc = netloc . encode ( 'idna' ) . decode ( 'ascii' )
4234,"if not,",else :
4235,"do nothing,",pass
4236,"if not,",else :
4237,"and dictionary with an entry: 'html' for 'type'. if value under the 'enclosure' key of the item dictionary is not None,",if item [ 'enclosure' ] is not None :
4238,"try,",try :
4239,"for every app_name is app_names,",for app_name in app_names :
4240,"classmethod decorator,",@ classmethod
4241,"if doublecolon_start equals integer -1,",if doublecolon_start == - 1 :
4242,return result.,return result
4243,substitute length of existing for num_existing.,num_existing = len ( existing )
4244,substitute newretval for retval.,retval = newretval
4245,self.render_context is a instance of RenderContext class.,self . render_context = RenderContext ( )
4246,"""project name in the current directory or optionally in the given directory."". missing_args_message is a string ""You must provide a project name."".","missing_args_message = ""You must provide a project name."""
4247,"call the method self.nodelist_true.render with an argument context, assign the result to compare_to and nodelist_true_output.",compare_to = nodelist_true_output = self . nodelist_true . render ( context )
4248,"raise an SystemRestart exception,",raise SystemRestart
4249,leave_locale_alone is boolean True.,leave_locale_alone = True
4250,define the method _create_alternatives with arguments self and msg.,"def _create_alternatives ( self , msg ) :"
4251,call the handle function with dictionary pair of elements options from the base class of the class Command.,"super ( Command , self ) . handle ( ** options )"
4252,"add to a list result of the method uploadhandler.load_handler called with arguments handler and self, substitute resulting list for self._upload_handlers. property decorator,",@ property
4253,call the method handler.endElement with an argument string 'entry'.,"handler . endElement ( ""entry"" )"
4254,substitute absolute seconds for seconds.,seconds = abs ( seconds )
4255,do nothing.,pass
4256,"try,",try :
4257,"if not,",else :
4258,"if varargs is None,",if varargs is None :
4259,"call the function codecs.open with 3 arguments: sql_file, string 'r' and encoding set to settings.FILE_CHARSET, with the result renamed to fp,","with codecs . open ( sql_file , 'r' , encoding = settings . FILE_CHARSET ) as fp :"
4260,"if field.rel.through._meta.auto_created is true,",if field . rel . through . _meta . auto_created :
4261,return nothing.,return
4262,"substitute the result for parsed. if parsed.scheme is true and parsed.scheme is not contained in self.allowed_schemes,",if parsed . scheme and parsed . scheme not in self . allowed_schemes :
4263,"call the method match.start, substitute the result for start.",start = match . start ( )
4264,"call the method value.astimezone with an argument timezone, substitute the result for value.",value = value . astimezone ( timezone )
4265,do nothing.,pass
4266,"if not_installed_models is true,",if not_installed_models :
4267,return boolean False.,return False
4268,from django.core.cache.backends.base import BaseCache and DEFAULT_TIMEOUT into default name space.,"from django . core . cache . backends . base import BaseCache , DEFAULT_TIMEOUT"
4269,skip this loop iteration.,continue
4270,"call the method self.g, return the result.",return self . g ( )
4271,"use the result as an argument for the call to the function force_text, return the result. call the function allow_lazy with 2 arguments: urlunquote_plus and six.text_type, substitute the result for urlunquote_plus.","urlunquote_plus = allow_lazy ( urlunquote_plus , six . text_type )"
4272,substitute value under name key of logging._handlers dictionary for handler.,handler = logging . _handlers [ name ]
4273,pk_value is None.,pk_value = None
4274,define function _to_tuple with s as an argument.,def _to_tuple ( s ) :
4275,"for every key and value in return value of the self._headers.values method, call the function to_bytes with 2 arguments: key,","headers = [ ( b': ' . join ( [ to_bytes ( key , 'ascii' ) , to_bytes ( value , 'latin-1' ) ] ) ) for key , value in self . _headers . values ( ) ]"
4276,self.proxy is boolean False.,self . proxy = False
4277,"define the method handle with 3 arguments: self, unpacked list test_labels and unpacked dictionary options.","def handle ( self , * test_labels , ** options ) :"
4278,substitute boundary for self.boundary.,self . _boundary = boundary
4279,"match regex date_re with value, substitute the result for match.",match = date_re . match ( value )
4280,"define the method migration_progress_callback with self class instance, action, migration and fake set to boolean False as arguments.","def migration_progress_callback ( self , action , migration , fake = False ) :"
4281,"if values under the 'app_label' and 'migration_name' keys of the options dictionary are True,",if options [ 'app_label' ] and options [ 'migration_name' ] :
4282,"call the function new_method_proxy with an argument bytes, substitute the result for __bytes__.",__bytes__ = new_method_proxy ( bytes )
4283,"for every module in templatetags_modules,",for module in templatetags_modules :
4284,"call the function number_format with an argument value, return the result.",return number_format ( value )
4285,"call the method context.push with an argument var set to output, with the result perform,",with context . push ( var = output ) :
4286,output is an empty list.,output = [ ]
4287,"call the method __init__ from the base class of the class MultiValueDict, with an argument key_to_list_mapping.","super ( MultiValueDict , self ) . __init__ ( key_to_list_mapping )"
4288,"if value is not equal self.empty_value,",if value != self . empty_value :
4289,args is an empty list.,args = [ ]
4290,from django.db.backends.utils import typecast_timestamp into default name space.,from django . db . backends . utils import typecast_timestamp
4291,from django.core.management.base import CommandError into default name space.,from django . core . management . base import CommandError
4292,"convert self.children into an boolean, return it.",return bool ( self . children )
4293,"call the function is_library_missing with an argument path, return the result.",return is_library_missing ( path )
4294,return integer 0.,return 0
4295,"if value under the 'verbosity' key of the options dictionary is greater than zero,",if options [ 'verbosity' ] > 0 :
4296,call the mail.send method with fail_silently set to fail_silently as argument.,mail . send ( fail_silently = fail_silently )
4297,"for every widget in self.widgets:,",for widget in self . widgets :
4298,"call the connection.cursor method, substitute it for cursor.",cursor = connection . cursor ( )
4299,define the function exhaust with an argument stream_or_iterable.,def exhaust ( stream_or_iterable ) :
4300,"define the function get_cache_key, with request key_prefix set to None, method set to 'GET' and cache set to None as arguments.","def get_cache_key ( request , key_prefix = None , method = 'GET' , cache = None ) :"
4301,substitute old_mod for self.mod.,self . mod = old_mod
4302,define the method close with an argument self.,def close ( self ) :
4303,"call the function lazy with 2 arguments: gettext and str, substitute gettext_lazy.","gettext_lazy = lazy ( gettext , str )"
4304,"call the method references_to_delete.setdefault with arguments: r.rel.to and an empty list, append to the result tuple with 2 entries: model and f.","references_to_delete . setdefault ( f . rel . to , [ ] ) . append ( ( model , f ) )"
4305,"if key is contained in last element of self.dicts, return boolean True, otherwise return boolean False.",return key in self . dicts [ - 1 ]
4306,"fks_to_parent is a list containing f for every f in opts.fields, only if f is an instance of ForeignKey,","fks_to_parent = [ f for f in opts . fields if isinstance ( f , ForeignKey ) and ( f . rel . to == parent_model or f . rel . to in parent_model . _meta . get_parent_list ( ) ) ]"
4307,"call the method self.target.resolve with 2 arguments: context and boolean True, substitute it for obj_list.","obj_list = self . target . resolve ( context , True )"
4308,"if self.activated is boolean True,",if self . activated :
4309,"try,",try :
4310,do nothing.,pass
4311,call the method self.full_clean.,self . full_clean ( )
4312,"call the self.request_class method with environ as an argument, substitute the result for request.",request = self . request_class ( environ )
4313,""" normal uploaded files. Check for malicious upload activity; if there is none, report this to the Django developers."". derive the class ChunkIter from the six.Iterator base class.",class ChunkIter ( six . Iterator ) :
4314,"call the method transaction.atomic with an argument using set to self.using, with the result,",with transaction . atomic ( using = self . using ) :
4315,val is None.,val = None
4316,"if result is not root,",if result is not root :
4317,"get translation_function attribute of the object _default, call the result with an argument eol_message, substitute the result for result.","result = getattr ( _default , translation_function ) ( eol_message )"
4318,"msg is a instance of a SafeMIMEText class created with arguments: self.body, self.content_subtype and encoding.","msg = SafeMIMEText ( self . body , self . content_subtype , encoding )"
4319,third element of url_fields is an empty string.,url_fields [ 2 ] = ''
4320,substitute the result for ASCTIME_DATE. define the function urlquote with 2 arguments: url and safe set to '/'.,"def urlquote ( url , safe = '/' ) :"
4321,"convert new_name to a string and append it to string 'field', substitute the result for new_name.",new_name = 'field%s' % new_name
4322,"if not,",else :
4323,derive the class SimpleNode form the base class TagHelperNode.,class SimpleNode ( TagHelperNode ) :
4324,import module codecs.,import codecs
4325,"if i is greater than sys.maxint,",if i > sys . maxint :
4326,"where '%s' is replaced with var. call the method var.split with an argument VARIABLE_ATTRIBUTE_SEPARATOR, convert the result to a tuple and substitute it for self.lookups.",self . lookups = tuple ( var . split ( VARIABLE_ATTRIBUTE_SEPARATOR ) )
4327,"append name to 'add_' use it as the name of the attribute to get from combined object , call the result with an argument:","getattr ( combined , 'add_' + name ) ( getattr ( self , '_' + name , None ) )"
4328,import module warnings.,import warnings
4329,"find the ending position of the regular expression match of the object match, substitute the result for k.",k = match . end ( )
4330,"for every dep in deps call the method apps.get_model with an argument dep, and append the result to the list, substitute it for deps.",deps = [ apps . get_model ( dep ) for dep in deps ]
4331,"try,",try :
4332,"define the method _handle_fk_field_node with arguments self, node and field.","def _handle_fk_field_node ( self , node , field ) :"
4333,"if TypeError exception is caught,",except TypeError :
4334,define the function get_language_from_path with an argument path.,def get_language_from_path ( path ) :
4335,self.dicts is an list with element builtins.,self . dicts = [ builtins ]
4336,call the cursor.close method.,cursor . close ( )
4337,"append string ""Field renamed because it contained more than one '_' in a row."" to field_notes.","field_notes . append ( ""Field renamed because it contained more than one '_' in a row."" )"
4338,substitute self._setupfunc for repr_attr.,repr_attr = self . _setupfunc
4339,fixture_name and result of the function humanize called with an argument fixture_dir. extend fixture_files list with fixture_files_in_dir.,fixture_files . extend ( fixture_files_in_dir )
4340,"for every name in filters,",for name in filters :
4341,"define the function ngettext with 3 arguments: singular, plural and number.","def ngettext ( singular , plural , number ) :"
4342,call the function params.update with argument kwargs.,params . update ( kwargs )
4343,"define the method __init__ with 4 arguments: self, attrs set to None, date_format set to None and time_format set to None.","def __init__ ( self , attrs = None , date_format = None , time_format = None ) :"
4344,write a newline character into self.stream file stream.,self . stream . write ( b'\n' )
4345,"if extensions is false, substitute it for exts, otherwise exts is a list containing string 'js'.",exts = extensions if extensions else [ 'js' ]
4346,"app_config, connection.alias and include_auto_created set to boolean True. call the method connection.creation.sql_create_model with arguments model, style and known_models, substitute the result for output and references.","output , references = connection . creation . sql_create_model ( model , style , known_models )"
4347,do nothing.,pass
4348,"if num_repl is greater than integer 0,",if num_repl > 0 :
4349,skip this loop iteration.,continue
4350,"strings ""addbase"", ""urllib"" and ""urllib.response"", result of the function MovedAttribute, called with 3 arguments: strings ""addclosehook"", ""urllib"", ""urllib.response"", result of the function MovedAttribute, called with 3 arguments: strings ""addinfo"", ""urllib"", ""urllib.response"" and result of the function MovedAttribute, called with 3 arguments: strings ""addinfourl"", ""urllib"", ""urllib.response"". for every attr in _urllib_response_moved_attributes,",for attr in _urllib_response_moved_attributes :
4351,"if e.errno does not equals to errno.ENOENT,",if e . errno != errno . ENOENT :
4352,"otherwise if ch equals a string '[',",elif ch == '[' :
4353,"if s is an instance of SafeData or EscapeData,","if isinstance ( s , ( SafeData , EscapeData ) ) :"
4354,return an empty string.,return ''
4355,"get the value of the values dictionary under the value converted to lowercase key, substitute it for value, if the key doesnt exists,","value = values . get ( value . lower ( ) , value )"
4356,"call the method datetime.datetime.strptime with 2 arguments: result of the function force_str called with an argument value,","return datetime . datetime . strptime ( force_str ( value ) , format ) . time ( )"
4357,"otherwise if first element of second row of args equals a string '4',",elif args [ 1 ] [ 0 ] == '4' :
4358,nesting is integer 1.,nesting = 1
4359,append ch to result.,result . append ( ch )
4360,"substitute the result for netloc. if UnicodeError exception is caught,",except UnicodeError :
4361,derive the class DebugVariableNode from the VariableNode base class.,class DebugVariableNode ( VariableNode ) :
4362,substitute return value of function no_style for style.,style = no_style ( )
4363,derive the class TemplateResponse from the SimpleTemplateResponse base class.,class TemplateResponse ( SimpleTemplateResponse ) :
4364,"append a tuple containing 2 elemetns: model and deps, to skipped.","skipped . append ( ( model , deps ) )"
4365,increment i-th element of result by piece.,result [ i ] += piece
4366,"root is a list with elements: root, root, None and None.","root [ : ] = [ root , root , None , None ]"
4367,call the function update_wrapper with 2 arguments: _wrapper and dummy.,"update_wrapper ( _wrapper , dummy )"
4368,return result.,return result
4369,define the method with reload with an argument self.,def reload ( self ) :
4370,define the method lists with an argument self.,def lists ( self ) :
4371,"if self.required is true and value is false,",if self . required and not value :
4372,define the function slugify with an argument value.,def slugify ( value ) :
4373,"parser.compile_filter, substitute the result for expression. return an instance of a RegroupNode class, created with 3 arguments target, expression and var_name.","return RegroupNode ( target , expression , var_name )"
4374,from django.core.management.commands.check import Command as CheckCommand into default name space.,from django . core . management . commands . check import Command as CheckCommand
4375,define the method expression with 2 arguments: self and rbp set to integer 0.,"def expression ( self , rbp = 0 ) :"
4376,define the function unlock with argument f.,def unlock ( f ) :
4377,"use the it as an argument for the call to the self.style.MIGRATE_LABEL method, use the result to cal the self.stdout.write method. if not,",else :
4378,use global variable _standard_context_processors.,global _standard_context_processors
4379,substitute self.__class__ for obj.__class__.,obj . __class__ = self . __class__
4380,define the function wrapper with 2 arguments: unpacked list args and unpacked dictionary kwds.,"def wrapper ( * args , ** kwds ) :"
4381,define the function check_all_models with app_configs defaulting to None and unpacked dictionary kwargs as arguments.,"def check_all_models ( app_configs = None , ** kwargs ) :"
4382,"get the value under the name key of the self.fields dictionary, substitute it for field.",field = self . fields [ name ]
4383,"if not,",else :
4384,"if field is an instance of models.TimeField and filed.name attribute of obj is not None,","if isinstance ( field , models . TimeField ) and getattr ( obj , field . name ) is not None :"
4385,define the method path with an argument self.,def path ( self ) :
4386,"append line to bytes string ';', use it as an argument for the call to the function _parse_header_params, substitute the result for plist.",plist = _parse_header_params ( b';' + line )
4387,python_2_unicode_compatible decorator,@ python_2_unicode_compatible
4388,"raise an ValidationError with 3 arguments: value under the 'invalid_choice' key of the self.error_messages dictionary,","raise ValidationError ( self . error_messages [ 'invalid_choice' ] , code = 'invalid_choice' , params = { 'value' : choice } , )"
4389,"return result of the f.fileno method if f has an 'fileno' attribute, otherwise return f.","return f . fileno ( ) if hasattr ( f , 'fileno' ) else f"
4390,call the function logging_config_func with an argument logging_settings.,logging_config_func ( logging_settings )
4391,"for every h in elements of logger.handlers list,",for h in logger . handlers [ : ] :
4392,"if sys.platform equals to string ""win32"",","if sys . platform == ""win32"" :"
4393,"property decorator,",@ property
4394,"define the method add_item_elements with 3 arguments: self, handler and item.","def add_item_elements ( self , handler , item ) :"
4395,"for every field_name and field_value in return value of the function six.iteritems called with value under the 'fields' key of dictionary d,","for ( field_name , field_value ) in six . iteritems ( d [ ""fields"" ] ) :"
4396,self.new_objects is an empty list.,self . new_objects = [ ]
4397,raise an ValidationError exception with 2 arguments: error_message and code as a string 'invalid'.,"raise ValidationError ( error_message , code = 'invalid' )"
4398,and store it in the value of the dictionary response under the key 'ETag'. return response,return response
4399,"m2m_value is a lambda function with an argument value, return value is the result of the function smart_text called with arguments:","m2m_value = lambda value : smart_text ( value . _get_pk_val ( ) , strings_only = True )"
4400,"if not, self.empty is boolean False. crate a set containing of app_labels elements, substitute it for app_labels.",app_labels = set ( app_labels )
4401,"if this_bases is None,",if this_bases is None :
4402,"evaluate the binary expression with 4 operands: os.O_WRONLY, binary or os.O_CREATE, binary or 'O_BINARY' attribute of object os,","fd = os . open ( new_file_name , ( os . O_WRONLY | os . O_CREAT | getattr ( os , 'O_BINARY' , 0 ) | ( os . O_EXCL if not allow_overwrite else 0 ) ) )"
4403,"get the value from the options dictionary under the key 'load_initial_data', substitute it for self.load_initial_data.",self . load_initial_data = options . get ( 'load_initial_data' )
4404,"call the force_text function with an argument value, return the result.",return force_text ( value )
4405,return ip_str.,return ip_str
4406,substitute value_not_found_exception for self.LibraryValueNotFoundException.,self . LibraryValueNotFoundException = value_not_found_exception
4407,raise a NotImplementedError with an argument string 'subclasses of Deserializer must provide a __next__() method'.,raise NotImplementedError ( 'subclasses of Deserializer must provide a __next__() method' )
4408,"call the function random.randrange with argument integer 100000, substitute the result for randint.",randint = random . randrange ( 100000 )
4409,define the method multiple_chunks with arguments self and hunk_size set to None.,"def multiple_chunks ( self , chunk_size = None ) :"
4410,from django.utils.encoding import force_bytes into default name space.,from django . utils . encoding import force_bytes
4411,import pytz.,import pytz
4412,"kwargs is an dictionary, populated for every k and v in result of the method self.kwargs.items with:","kwargs = dict ( ( smart_text ( k , 'ascii' ) , v . resolve ( context ) ) for k , v in self . kwargs . items ( ) )"
4413,call the method self.validate_key with argument key.,self . validate_key ( key )
4414,"if old_method is false and new_method is true,",if not old_method and new_method :
4415,"call the method sys.stderr.write with an argument string "" Unable to load the flup package. In order to run django\n"".","sys . stderr . write ( "" Unable to load the flup package. In order to run django\n"" )"
4416,define the method chunks with arguments self ad chunk_size set to None.,"def chunks ( self , chunk_size = None ) :"
4417,"if not,",else :
4418,"if self.settings_exception is not None,",if self . settings_exception is not None :
4419,"return an instance of FixedOffset class, created with 2 arguments: offset and name.","return FixedOffset ( offset , name )"
4420,"_func_code is a string ""func_code"".","_func_code = ""func_code"""
4421,"call the function localize with 2 arguments: output and use_l10n set to context.use_l10n, substitute the result for output.","output = localize ( output , use_l10n = context . use_l10n )"
4422,"return value under the key key of dictionary in last element of self.dicts,","return self . dicts [ - 1 ] . get ( key , otherwise )"
4423,from PIL import Image into default namespace.,from PIL import Image
4424,call the method self._lib.Client with argument self._servers.,client = self . _lib . Client ( self . _servers )
4425,"call the method hmac.new with 3 arguments: key, msg set to result of the function force_bytes with an argument value,","return hmac . new ( key , msg = force_bytes ( value ) , digestmod = hashlib . sha1 )"
4426,substitute var_obj for self.var.,self . var = var_obj
4427,"call the method parser.parse, return the result.",return parser . parse ( )
4428,"if exclude is not None,",if exclude is not None :
4429,"call the method models.signals.pre_migrate.send with 5 arguments: sender set to app_config, app_config set to app_config,","models . signals . pre_migrate . send ( sender = app_config , app_config = app_config , verbosity = verbosity , interactive = interactive , using = db )"
4430,decorator function register.filter with 2 arguments expects_localtime set to boolean True and is_safe set to boolean False.,"@ register . filter ( expects_localtime = True , is_safe = False )"
4431,parsed is boolean True.,parsed = True
4432,_mtimes is an empty dictionary.,_mtimes = { }
4433,"and unpacked dictionary kwargs, return the result. return wrapper.",return wrapper
4434,call the method self._start_relational_field with an argument field.,self . _start_relational_field ( field )
4435,derive the class WithNode from Node base class.,class WithNode ( Node ) :
4436,if base has an attribute 'base_fields'.,"if hasattr ( base , 'base_fields' ) :"
4437,substitute value for self.cookies dictionary value under the key key.,self . cookies [ key ] = value
4438,"call the self._lib.Client with argument self._servers, substitute the result for self._client.",self . _client = self . _lib . Client ( self . _servers )
4439,derive the class LoadNode from Node base class.,class LoadNode ( Node ) :
4440,return the length of self.content.,return len ( self . content )
4441,"for every filename in files,",for filename in files :
4442,"if self.use_natural_foreign_keys is true and field.rel.to has an attribute 'natural_key',","if self . use_natural_foreign_keys and hasattr ( field . rel . to , 'natural_key' ) :"
4443,"call the get_path_info function with environ as argument, substitute the result for path_info.",path_info = get_path_info ( environ )
4444,"otherwise if ch equals a string '|',",elif ch == '|' :
4445,return nothing.,return
4446,if mw_instance has an attribute named 'process_view'.,"if hasattr ( mw_instance , 'process_view' ) :"
4447,"define the method save_new with 3 arguments: self, form and commit set to boolean True.","def save_new ( self , form , commit = True ) :"
4448,"for every attr in self.rendering_attrs,",for attr in self . rendering_attrs :
4449,"for every e in self, append convert e to an string and append it to string '* ',",return '\n' . join ( '* %s' % e for e in self )
4450,import module opera.,import operator
4451,derive the class CheckboxFieldRenderer from the ChoiceFieldRenderer base class.,class CheckboxFieldRenderer ( ChoiceFieldRenderer ) :
4452,"call the method parser.parse with an argument tuple with an element string 'endspaceless', substitute the result for nodelist.","nodelist = parser . parse ( ( 'endspaceless' , ) )"
4453,call the method handler.addQuickElement with 2 arguments: string 'uri' and value under the 'author_link' key of the item dictionary.,"handler . addQuickElement ( ""uri"" , item [ 'author_link' ] )"
4454,"call the function get_library with an argument taglib, substitute the result for lib.",lib = get_library ( taglib )
4455,define the method is_silence with argument self.,def is_silenced ( self ) :
4456,"call the method logging.getLogger with an argument string 'py.warnings', substitute the result for logger.",logger = logging . getLogger ( 'py.warnings' )
4457,_translations is an empty dictionary.,_translations = { }
4458,"call the traceback.extract_tb method with argument tb, substitute the first element of last row of the result to filename.",filename = traceback . extract_tb ( tb ) [ - 1 ] [ 0 ]
4459,define the method exit_command with an argument self.,def exit_command ( self ) :
4460,use global variable _default.,global _default
4461,"call the method parser.parse with an argument tuple with an element string 'endif', substitute the result for nodelist.","nodelist = parser . parse ( ( 'endif' , ) )"
4462,"if not,",else :
4463,define the method __deepcopy__ with 2 arguments: self and memo.,"def __deepcopy__ ( self , memo ) :"
4464,"call the MigrationExecutor with the connection as the argument, substitute it for executor.",executor = MigrationExecutor ( connection )
4465,"append i_args to args, append new_args with the result.",new_args . append ( args [ : ] + i_args )
4466,"call the method self.data.weekday, use the result as an key for obtaining WEEKDAYS_ABBR dictionary value, return it.",return WEEKDAYS_ABBR [ self . data . weekday ( ) ]
4467,increment self.active_readers by 1.,self . active_readers += 1
4468,format_key is a string 'TIME_INPUT_FORMATS'.,format_key = 'TIME_INPUT_FORMATS'
4469,"call the method self.compress with an argument clean_data, substitute the result for out.",out = self . compress ( clean_data )
4470,"define the function ngettext_lazy with 3 arguments: singular, plural and number set to None.","def ngettext_lazy ( singular , plural , number = None ) :"
4471,output and hidden_fields are both empty lists.,"output , hidden_fields = [ ] , [ ]"
4472,"append a tuple with 2 elements: f and f with first occurrence of the path replaced with an empty string, to self.choices.","self . choices . append ( ( f , f . replace ( path , """" , 1 ) ) )"
4473,"otherwise if value is an instance of datetime.datetime,","elif isinstance ( value , datetime . datetime ) :"
4474,"call the function force_str with an argument self._tzname, return the result.",return force_str ( self . _tzname )
4475,define the method media with an argument self.,def media ( self ) :
4476,"call the method MIMEText.__init__ with 4 arguments: self, text, subtype and charset.","MIMEText . __init__ ( self , text , subtype , charset )"
4477,call the function validate_ipv4_address with an argument hextet.,validate_ipv4_address ( hextet )
4478,"if not,",else :
4479,"substitute it for d. while rest is true,",while rest :
4480,"""(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}(? length :
4491,from django.core.cache import caches to the default name space.,from django . core . cache import caches
4492,"if ch2 equals string '?',",if ch2 == '?' :
4493,return t.,return t
4494,define the method pop with 2 arguments: self and idx set to negative integer 1.,"def pop ( self , idx = - 1 ) :"
4495,"for model in self.models append model._meta.db_table to a list, substitute the resulting list for table_names.",table_names = [ model . _meta . db_table for model in self . models ]
4496,"get the value under the 'indent' key of the self.options dictionary, substitute it for indent.","indent = self . options . get ( ""indent"" )"
4497,"substitute self.to_field_name, if exists, for key, if not substitute string 'pk' for key.",key = self . to_field_name or 'pk'
4498,"replace every occurrence of '""' in s with '"'.","s = s . replace ( '""' , '"' )"
4499,from collections import OrderedDict into default name space.,from collections import OrderedDict
4500,"_iteritems is a string ""iteritems"".","_iteritems = ""iteritems"""
4501,"substitute '%s' in string ""%s_%s%s"" with: file_root, next(count) and file_ext, join the dir_name and previous string into a valid file path, substitute it for name.","name = os . path . join ( dir_name , ""%s_%s%s"" % ( file_root , next ( count ) , file_ext ) )"
4502,"if value is boolean True,",if value is True :
4503,"if role is contained in value under the NOCOLOR_PALETTE key of the PALETTES dictionary and definition is true,",if role in PALETTES [ NOCOLOR_PALETTE ] and definition :
4504,"try,",try :
4505,"filter_raw_string is a raw string ""^(?P%(constant)s)|^(?P[%(var_chars)s]+|%(num)s)| (?:\s*%(filter_sep)s\s*","filter_raw_string = r"""""" ^(?P%(constant)s)| ^(?P[%(var_chars)s]+|%(num)s)| (?:\s*%(filter_sep)s\s* (?P\w+) (?:%(arg_sep)s (?: (?P%(constant)s)| (?P[%(var_chars)s]+|%(num)s) ) )? )"""""" % { 'constant' : constant_string , 'num' : r'[-+\.]?\d[\d\.e]*' , 'var_chars' : ""\w\."" , 'filter_sep' : re . escape ( FILTER_SEPARATOR ) , 'arg_sep' : re . escape ( FILTER_ARGUMENT_SEPARATOR ) , }"
4506,"if value is an instance of six.text_type class,","if isinstance ( value , six . text_type ) :"
4507,call the method parser.delete_first_token.,parser . delete_first_token ( )
4508,return wrapper.,return wrapper
4509,from django.utils import six into default name space.,from django . utils import six
4510,"if data is true, substitute it for self.files, otherwise self.files is an empty dictionary.",self . files = files or { }
4511,define the function now with 2 arguments: parser and token.,"def now ( parser , token ) :"
4512,"for every tablename in tablenames,",for tablename in tablenames :
4513,"call the executor.migrate method with, targets, plan and fake set to the value under the 'fake' key of options dictionary,","executor . migrate ( targets , plan , fake = options . get ( ""fake"" , False ) )"
4514,"if self.language is not None,",if self . language is not None :
4515,append a tuple with 2 elements: condition and nodelist to conditions_nodelists.,"conditions_nodelists . append ( ( condition , nodelist ) )"
4516,"string '' and absolute file path of the path, for every path is self._js. define the method render_css with an argument self.",def render_css ( self ) :
4517,define the method get_available_name with arguments self and name.,"def get_available_name ( self , name ) :"
4518,do nothing.,pass
4519,return self.connection.,return self . connection
4520,"if value is contained in self.empty_values,",if value in self . empty_values :
4521,"if key is not contained in self,",if key not in self :
4522,define the function get_valid_filename with an argument s.,def get_valid_filename ( s ) :
4523,from django.core.management.color import color_style and no_style into default name space.,"from django . core . management . color import color_style , no_style"
4524,substitute hlen for dklen.,dklen = hlen
4525,"tuple with 2 elements: '[' and ']', tuple with 2 elements: '<' and '>', tuple with 2 elements: '""' and '""', and tuple with 2 elements: '\'' and '\''. DOTS is a list with 6 elements: strings '·', '*', '\u2022', '', '•' and '•'.","DOTS = [ '·' , '*' , '\u2022' , '' , '•' , '•' ]"
4526,return None.,return None
4527,"if LookupError exception is caught,",except LookupError :
4528,substitute self.toks for toks.,toks = self . toks
4529,substitute instance._meta for opts.,opts = instance . _meta
4530,"raise an TemplateSyntaxError exception with an argument string ""'%s' takes at least one argument (path to a view)"",","raise TemplateSyntaxError ( ""'%s' takes at least one argument"" "" (path to a view)"" % bits [ 0 ] )"
4531,import module pickle.,import pickle
4532,"if migration.replaces is true,",if migration . replaces :
4533,"call the BaseConverter function with BASE56_ALPHABET as argument, store the result in base56.",base56 = BaseConverter ( BASE56_ALPHABET )
4534,"if unpack_ipv4 is true,",if unpack_ipv4 :
4535,"call the method self.make_key with key and version set to version as arguments, substitute the result for key.","key = self . make_key ( key , version = version )"
4536,do nothing.,pass
4537,"invert the ordering of elements of int_part_gd, substitute it for int_part.",int_part = int_part_gd [ : : - 1 ]
4538,"write it to self.stdout. if not,",else :
4539,"if token is None,",if token is None :
4540,raise an NotImplementedError with an argument string 'subclasses of Widget must provide a render() method'.,raise NotImplementedError ( 'subclasses of Widget must provide a render() method' )
4541,"define the method setdefault with 3 arguments: self, key and default set to None.","def setdefault ( self , key , default = None ) :"
4542,from django.utils import six into default name space.,from django . utils import six
4543,"for every f in files,",for f in files :
4544,"call the method self.fields.values, for every field in result,",for field in self . fields . values ( ) :
4545,"call the function re.compile with 2 arguments: string '^([a-z]):' and re.I, substitute the result for _drive_re.","_drive_re = re . compile ( '^([a-z]):' , re . I )"
4546,"call the function six.reraise with 3 arguments: ValueError, instance of a class ValueError, created with an argument string,","six . reraise ( ValueError , ValueError ( ""%r is not a valid date"" % date ) , sys . exc_info ( ) [ 2 ] )"
4547,field.rel.__class__.__name__ for 'rel' and return value of the function smart_text with an argument field.rel.to._meta for 'to'. derive the class Deserializer from the base.Deserializer base class.,class Deserializer ( base . Deserializer ) :
4548,"dest set to string 'verbosity', default set to string '1', type set to string 'choice', choices is a list containing elements: '0', '1', '2', '3', and help as a string 'Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output'. call the method parser.add_option with 2 arguments: string '--settings' and help as a string 'The Python path to a settings module, e.g. ""myproject.settings.main"". If this isn\'t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.'.","parser . add_option ( '--settings' , help = 'The Python path to a settings module, e.g. ""myproject.settings.main"". If this isn\'t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.' )"
4549,define the method __str__ with an argument self.,def __str__ ( self ) :
4550,define the method __reduce_ex__ with 2 arguments self and proto.,"def __reduce_ex__ ( self , proto ) :"
4551,"if data is false,",if not data :
4552,"find first index of whitespace occurrence in line, add integer 1 to it, substitute the result for space.",space = line . find ( ' ' ) + 1
4553,"for key and value in return value of the six.iterlists function called with an argument self,","for key , value in six . iterlists ( self ) :"
4554,"mark_safe function, return the result. call the function allow_lazy with 2 arguments: slugify and six.text_type, substitute the result slugify.","slugify = allow_lazy ( slugify , six . text_type )"
4555,call the method unifunc.replace with an argument strfunc.,unifunc . replace ( strfunc )
4556,return error_dict.,return error_dict
4557,"result is an instance of SimpleLazyObject class, created with an argument self._setupfunc.",result = SimpleLazyObject ( self . _setupfunc )
4558,call the method self.write_po_file with 2 arguments: potfile and locale.,"self . write_po_file ( potfile , locale )"
4559,from django.core.management import call_command into default name space.,from django . core . management import call_command
4560,"for every lib in builtins,",for lib in builtins :
4561,"if field equals NON_FIELD_ERRORS and opts.error_messages is true and NON_FIELD_ERRORS is contained in opts.error_messages,",if ( field == NON_FIELD_ERRORS and opts . error_messages and NON_FIELD_ERRORS in opts . error_messages ) :
4562,define the function iter_format_modules with 2 arguments: lang and format_module_path set to None.,"def iter_format_modules ( lang , format_module_path = None ) :"
4563,"call the method states.items, for every state and rules in the result,","for state , rules in states . items ( ) :"
4564,substitute url for display_url.,display_url = url
4565,"replace every occurrence of whitespaces in the previous result for '_', substitute the result for s. call the function re.sub with 3 arguments: raw string '(?u)[^-\w.]', an empty string and s, return the result.","return re . sub ( r'(?u)[^-\w.]' , '' , s )"
4566,"if truncate is None,",if truncate is None :
4567,substitute key for result.key.,result . key = key
4568,"if self.max_digits is not None and digits is grater than self.max_digits,",if self . max_digits is not None and digits > self . max_digits :
4569,"get the value under the 'cookies' key of the state dictionary,",state [ 'cookies' ] = str ( state [ 'cookies' ] )
4570,"append value to the self.sign, return the result.",return self . sign + value
4571,call the method self.validate_key with key as argument.,self . validate_key ( key )
4572,"for every fixture_file, fixture_dir and fixture_name in return value of the method self.find_fixtures called with an argument fixture_label,","for fixture_file , fixture_dir , fixture_name in self . find_fixtures ( fixture_label ) :"
4573,define the method handle with self class instance and dictionary pair of elements options as arguments.,"def handle ( self , ** options ) :"
4574,call the method match.groups with 2 arguments: key and value.,"key , value = match . groups ( )"
4575,derive the class ClearableFileInput from the FileInput base class.,class ClearableFileInput ( FileInput ) :
4576,"if weight is greater or equal to integer 6,",if weight >= 6 :
4577,return the instance of DefusedExpatParser class.,return DefusedExpatParser ( )
4578,"raise an ValueError exception with an argument string ""%r is not in a valid HTTP date format"" formated with date.","raise ValueError ( ""%r is not in a valid HTTP date format"" % date )"
4579,call the method self.remove_potfiles.,self . remove_potfiles ( )
4580,"result of the function literals called with an argument string ""/= /"" and next as a string 'reg', to the both_before, appended both_after to the previous result, for 'div' and appended list with an element instance of a class Tok, created with 3 arguments: string ""regex"", raw string '/([^*\\/[]|\\.|\[( [^\]\\]| \\.)*\])( [^\\/[]| \\.| \[( [^\]\\]| \\.)*\])*/[a-zA-Z0-9]*', and next as a string 'div', to the both_before, appended both_after to the previous result for 'div'. define the method __init__ with an argument self.",def __init__ ( self ) :
4581,"if self.connection_reset is true,",if self . connection_reset :
4582,__all__is an tuple with 2 elements: strings 'BaseForm' and 'Form'.,"__all__ = ( 'BaseForm' , 'Form' )"
4583,define the function verbatim with 2 arguments: parser and token.,"def verbatim ( parser , token ) :"
4584,substitute i for end_index.,end_index = i
4585,"call the method self.choice with an argument obj, yield the result.",yield self . choice ( obj )
4586,kwargs is a dictionary with boolean True for 'pk_field'.,kwargs = { 'pk_field' : True }
4587,"params is an empty list,",params = [ ]
4588,"call the method self.paginator.validate_number with self.number decremented by 1 as argument, return the result.",return self . paginator . validate_number ( self . number - 1 )
4589,content is a File object instance created with content argument.,content = File ( content )
4590,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
4591,"call the function m.group, if the result evaluates to true,",if m . group ( 1 ) :
4592,substitute base for self.base.,self . base = base
4593,"get the value under the template_name key of the self.cache_key dictionary, if it exists, substitute it for key,","key = self . cache_key ( template_name , template_dirs )"
4594,"raise an exception ImproperlyConfigured with string ""You must define a '%s' cache"" as argument, with '%s' replaced with DEFAULT_CACHE_ALIAS converted into a string.","raise ImproperlyConfigured ( ""You must define a '%s' cache"" % DEFAULT_CACHE_ALIAS )"
4595,"if not,",else :
4596,"call the function sanitize_address with arguments addr and encoding, for every addr in return value of the getadresses function with tuple containing val as argument, join all the results into a string separated by ', ', substitute the result for val.","val = ', ' . join ( sanitize_address ( addr , encoding ) for addr in getaddresses ( ( val , ) ) )"
4597,"if i is greater or equal to the result of the method self.initial_form_count and self.initial_extra is true,",if i >= self . initial_form_count ( ) and self . initial_extra :
4598,call the method handler.addQuickElement with 2 arguments: string 'language' and value under the 'language' key of the self.feed dictionary.,"handler . addQuickElement ( ""language"" , self . feed [ 'language' ] )"
4599,define the function _check_boolean_field_default_value with app_config set to None and kwargs dictionary as arguments.,"def _check_boolean_field_default_value ( app_configs = None , ** kwargs ) :"
4600,"call the method token.split_contents, substitute results without the first element for bits.",bits = token . split_contents ( ) [ 1 : ]
4601,"return an instance of EscapeBytes, created with an argument, reuslt of the call to the function bytes with an argument s.",return EscapeBytes ( bytes ( s ) )
4602,define the method __init__ with 2 arguments self and func.,"def __init__ ( self , func ) :"
4603,"call the method parser.find_filter with an argument filter_name, substitute the result for filter_func.",filter_func = parser . find_filter ( filter_name )
4604,substitute memoryview for memoryview.,memoryview = memoryview
4605,from django.forms.fields import Field and ChoiceField into default name space.,"from django . forms . fields import Field , ChoiceField"
4606,for every header in list of strings compiled by splitting string cc_delim_re with value under the key 'Vary' of response dictionary as a delimiter.,for header in cc_delim_re . split ( response [ 'Vary' ] ) :
4607,"call the function linebreaks with 2 arguments value and autoescape, use the result as an argument for the call to the mark_safe,","return mark_safe ( linebreaks ( value , autoescape ) )"
4608,call the method self.setlist with 2 arguments: k and v.,"self . setlist ( k , v )"
4609,"if ValueError exception is caught,",except ValueError :
4610,import module gzip.,import gzip
4611,increment year by integer 2000.,year += 2000
4612,"call the method UnicodeDecodeError.__str__, with self as the argument, substitute the result for original.",original = UnicodeDecodeError . __str__ ( self )
4613,"call the self._lock.writer method, with the result perform the following,",with self . _lock . writer ( ) :
4614,"call the function get_language_from_path with an argument request.path_info, substitute it for lang_code.",lang_code = get_language_from_path ( request . path_info )
4615,unpacked dictionary kwargs. call the method self._set_regex with an argument regex.,self . _set_regex ( regex )
4616,"call the self.style.HTTP_SERVER_ERROR with an argument msg, substitute it for msg.",msg = self . style . HTTP_SERVER_ERROR ( msg )
4617,define the method render with 2 arguments self and context.,"def render ( self , context ) :"
4618,substitute cwords element at the cword decremented by 1 index for curr.,curr = cwords [ cword - 1 ]
4619,"append string '_template' to app_or_project, substitute it for base_subdir.",base_subdir = '%s_template' % app_or_project
4620,and to value under the '.moves' appended to __name__ key of the sys.modules dictionary. derive class Module_six_moves_urllib_parse from the _LazyModule base class.,class Module_six_moves_urllib_parse ( _LazyModule ) :
4621,define the method __init__ with 2 arguments: self and nodelist.,"def __init__ ( self , nodelist ) :"
4622,return unbound.im_func.,return unbound . im_func
4623,"for every field, initial and data in list of tuples tuple containing elements of self.fields, initial and data, respectively,","for field , initial , data in zip ( self . fields , initial , data ) :"
4624,alter_sql is an empty list.,alter_sql = [ ]
4625,from django.utils.module_loading import module_has_submodule into default name space.,from django . utils . module_loading import module_has_submodule
4626,"if LookupError exception is caught,",except LookupError :
4627,self.locale_paths is an empty list.,self . locale_paths = [ ]
4628,"call the initialization method UnicodeDecodeError.__init__, with self instance of this class and *args as arguments.","UnicodeDecodeError . __init__ ( self , * args )"
4629,"call the function zlib.decompress with an argument data, substitute the result for data.",data = zlib . decompress ( data )
4630,import module warnings.,import warnings
4631,from django.core.exceptions import ImproperlyConfigured into default name space.,from django . core . exceptions import ImproperlyConfigured
4632,"if six.PY3 is true,",if six . PY3 :
4633,"define the method _create_attachment with 4 arguments: self, filename, content and mimetype set to None.","def _create_attachment ( self , filename , content , mimetype = None ) :"
4634,"call parse.add_argument method, with string '--database', default set to DEFAULT_DB_ALIAS,","parser . add_argument ( '--database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to print the SQL for. Defaults to the ' '""default"" database.' )"
4635,return FILE_INPUT_CONTRADICTION.,return FILE_INPUT_CONTRADICTION
4636,"get the value from the options dictionary under the key 'test_database', or False if the key dont exists, substitute it for self.test_database.","self . test_database = options . get ( 'test_database' , False )"
4637,return value under the 'forloop' key of the context dictionary.,return context [ 'forloop' ]
4638,"substitute the result for context_match. call the method context_match.group with an argument integer 1, substitute the result for message_context.",message_context = context_match . group ( 1 )
4639,return self.paginator.count.,return self . paginator . count
4640,"call the function escape with an argument value, substitute it for value.",value = escape ( value )
4641,from django.utils import translation into default name space.,from django . utils import translation
4642,"raise TemplateSyntaxError(""%r must be the first tag in the template."", where '%s' is replaced with node.","raise TemplateSyntaxError ( ""%r must be the first tag "" ""in the template."" % node )"
4643,"if self.verbosity is greater than integer 0,",if self . verbosity > 0 :
4644,"and number set to number, return the result. define the function npgettext_lazy with 4 arguments: context, singular, plural and number set to None.","def npgettext_lazy ( context , singular , plural , number = None ) :"
4645,increment year by integer 1900.,year += 1900
4646,"files and string created with concatenation of: name, string '_' and i converted into a string, return the results in a list. define the method format_output with 2 arguments: self and rendered_widgets.","def format_output ( self , rendered_widgets ) :"
4647,convert orphans into an integer and substitute it for self.orphans.,self . orphans = int ( orphans )
4648,"otherwise if obj is an instance of EscapeData,","elif isinstance ( obj , EscapeData ) :"
4649,"call the method self._archive.namelist, substitute the result for namelist.",namelist = self . _archive . namelist ( )
4650,"call the function force_text with an argument text, replace every occurrence of '&' in the result with '&',","return mark_safe ( force_text ( text ) . replace ( '&' , '&' ) . replace ( '<' , '<' ) . replace ( '>' , '>' ) . replace ( '""' , '"' ) . replace ( ""'"" , ''' ) )"
4651,"if field.rel.to._default_manager has an 'get_by_natural_key' attribute,","if hasattr ( field . rel . to . _default_manager , 'get_by_natural_key' ) :"
4652,define method load_middleware with class instance self as the argument.,def load_middleware ( self ) :
4653,"raise an CommandError exception with an argument string 'You appear not to have the %r program installed or on your path.',",raise CommandError ( 'You appear not to have the %r program installed or on your path.' % connection . client . executable_name )
4654,"try,",try :
4655,"if msgs is true,",if msgs :
4656,"get 'WSGI_APPLICATION' attribute from the settings, substitute it for app_path.","app_path = getattr ( settings , 'WSGI_APPLICATION' )"
4657,insert options.pythonpath at the beginning of sys.path.,"sys . path . insert ( 0 , options . pythonpath )"
4658,"for every i in self.years append tuple containing i and i elements into a list, substitute the resulting string for choices.","choices = [ ( i , i ) for i in self . years ]"
4659,"if IndexError, TypeError or ValueError exception is caught,","except ( IndexError , TypeError , ValueError ) :"
4660,derive the class Storage from the object base class.,class Storage ( object ) :
4661,define the function deactivate_all.,def deactivate_all ( ) :
4662,"if value under the 'socket' key of the options dictionary is false and values under the 'host' and 'port' keys of the options dictionary are true,","if options [ ""host"" ] and options [ ""port"" ] and not options [ ""socket"" ] :"
4663,if upto is not equal to start.,if upto != start :
4664,if length of empty_label is not equal to integer 3.,if not len ( empty_label ) == 3 :
4665,return the value under the is_dst key of the _time.tzname dictionary.,return _time . tzname [ is_dst ]
4666,"define lambda function that returns self.file.readlines field, use it as an argument for property function, put the result in readlines.",readlines = property ( lambda self : self . file . readlines )
4667,"substitute loader, name and dirs for self.loader, self.loadname and self.dirs, respectively.","self . loader , self . loadname , self . dirs = loader , name , dirs"
4668,"define the method has_key with self class instance, key and version defaulting to None as arguments.","def has_key ( self , key , version = None ) :"
4669,"call the method bad_app_labels with an argument app_label,",bad_app_labels . add ( app_label )
4670,"define the method complain with 3 arguments: self, unpacked dictionary wargs and unpacked dictionary kwargs.","def complain ( self , * wargs , ** kwargs ) :"
4671,"if errors is true,",if errors :
4672,"values is an dictionary created with result of the method val.resolve called with an argument context, for key,","values = dict ( ( key , val . resolve ( context ) ) for key , val in six . iteritems ( self . extra_context ) )"
4673,do nothing.,pass
4674,"raise an NoReverseMatch exception with an argument string ""Error importing '%s': %s."", where '%s' is replaced with lookup_view and e, respectively.","raise NoReverseMatch ( ""Error importing '%s': %s."" % ( lookup_view , e ) )"
4675,"call the function socket.getfqdn, substitute the result for self._fqdn.",self . _fqdn = socket . getfqdn ( )
4676,"replace '%r' from string '\nServer stopped.\nNote that the test database, %r, has not been deleted. You can explore it on your own.', with db_name, substitute it for shutdown_message.","shutdown_message = '\nServer stopped.\nNote that the test database, %r, has not been deleted. You can explore it on your own.' % db_name"
4677,"call the method self.create_variable_node with an argument filter_expression, substitute the result for var_node.",var_node = self . create_variable_node ( filter_expression )
4678,"name set to function_name, and takes_context set to takes_context and node_class set to SimpleNode. substitute func.__doc__ for compile_func.__doc__.",compile_func . __doc__ = func . __doc__
4679,"for every i and line in enumerated iterable lines,","for i , line in enumerate ( lines ) :"
4680,put the double qoutes around encoded.,"encoded = '""' + encoded + '""'"
4681,define the method urlconf_module with an argument self.,def urlconf_module ( self ) :
4682,substitute self._upload_handlers for handlers.,handlers = self . _upload_handlers
4683,requires_system_checks is boolean False.,requires_system_checks = False
4684,"if mode equals to string 'add' and current_expires is lesser than now, or mode equals to string 'set', and result is true,",if result and ( mode == 'set' or ( mode == 'add' and current_expires < now ) ) :
4685,define the method __deepcopy__ with arguments self and memo.,"def __deepcopy__ ( self , memo ) :"
4686,"if AttributeError exception is caught,",except AttributeError :
4687,"call the function to_current_timezone with an argument value, substitute the result for value.",value = to_current_timezone ( value )
4688,return boolean True.,return True
4689,"msg is an instance of a class SafeMIMEMultipart, created with arguments: _subtype set to self.mixed_subtype and encoding set to encoding.","msg = SafeMIMEMultipart ( _subtype = self . mixed_subtype , encoding = encoding )"
4690,substitute file.name for filename.,filename = file . name
4691,"tpl is an string ""EntitiesForbidden(name='{}', system_id={!r}, public_id={!r})"".","tpl = ""EntitiesForbidden(name='{}', system_id={!r}, public_id={!r})"""
4692,define the method add_css with arguments self and data.,"def add_css ( self , data ) :"
4693,"convert x into a string for every x in list of version elements up to the parts index, join the previous into a string separated by '.', assign the result to major.",major = '.' . join ( str ( x ) for x in version [ : parts ] )
4694,"default_error_messages is an dictionary with 3 entries: return value of the function _ called with an argument,","default_error_messages = { 'list' : _ ( 'Enter a list of values.' ) , 'invalid_choice' : _ ( 'Select a valid choice. %(value)s is not one of the' ' available choices.' ) , 'invalid_pk_value' : _ ( '""%(pk)s"" is not a valid value for a primary key.' ) }"
4695,"if not,",else :
4696,"write a string ""Resetting sequences\n"" to self.stdout stream.","self . stdout . write ( ""Resetting sequences\n"" )"
4697,append an empty string to dirs list.,dirs . append ( '' )
4698,"from decimal import Decimal, InvalidOperation, Context and ROUND_HALF_UP into default name space.","from decimal import Decimal , InvalidOperation , Context , ROUND_HALF_UP"
4699,"call the function timedelta with an argument minutes set to offset, substitute the result for self.__offset.",self . __offset = timedelta ( minutes = offset )
4700,"call a function _ with a string 'Enter a valid value.' as an argument, substitute the result for message.",message = _ ( 'Enter a valid value.' )
4701,"call the function ugettext_lazy with an argument string 'Currently', substitute the result for initial_text.",initial_text = ugettext_lazy ( 'Currently' )
4702,"call the method self.add_initial_prefix with an argument name, substitute the result for initial_prefixed_name.",initial_prefixed_name = self . add_initial_prefix ( name )
4703,"if second element of data_list is contained in self.empty_values,",if data_list [ 1 ] in self . empty_values :
4704,define the method num_items with an argument self.,def num_items ( self ) :
4705,return integer 0.,return 0
4706,"if fift element of bits is not equal to a string 'as',",if bits [ 4 ] != 'as' :
4707,convert it to a string and substitute it for value under the 'cookies' key of the state dictionary. return state.,return state
4708,"convert ip_str to lowercase, if it doesnt start with a string '0000:0000:0000:0000:0000:ffff:',",if not ip_str . lower ( ) . startswith ( '0000:0000:0000:0000:0000:ffff:' ) :
4709,"if six.PY2,",if six . PY2 :
4710,"call the function self.format_subject with an argument subject, substitute the result for subject.",subject = self . format_subject ( subject )
4711,define the method loaders with an argument self.,def loaders ( self ) :
4712,return a string '%s...' formated with elements of x up to the index equal to the maximum value between integer 0 and 3 subtracted from limit.,"return '%s...' % x [ : max ( 0 , limit - 3 ) ]"
4713,import module os.,import os
4714,do nothing.,pass
4715,from django.utils.ipv6 import clean_ipv6_address into default name space.,from django . utils . ipv6 import clean_ipv6_address
4716,"if template_dirs is false,",if not template_dirs :
4717,"if KeyError exception is caught,",except KeyError :
4718,"define the function reraise with 3 arguments: tp, value and tb set to None.","def reraise ( tp , value , tb = None ) :"
4719,"skip this loop iteration,",continue
4720,"raise an InvalidTemplateLibrary exception with an argument string ""ImportError raised loading %s: %s"",","raise InvalidTemplateLibrary ( ""ImportError raised loading %s: %s"" % ( taglib_module , e ) )"
4721,"try,",try :
4722,"call the function mark_safe with an argument result, return it.",return mark_safe ( result )
4723,"value under the ""RUN_MAIN"" key of new_environ dictionary is a string 'true'.","new_environ [ ""RUN_MAIN"" ] = 'true'"
4724,"call the self.stderr.write method with string "" Failed to install index for %s.%s model: %s\n"" as argument,","self . stderr . write ( "" Failed to install index for %s.%s model: %s\n"" % ( app_name , model . _meta . object_name , e ) )"
4725,"define the method render with 4 arguments: self, attrs set to None, date_format set to None and time_format set to None.","def __init__ ( self , attrs = None , date_format = None , time_format = None ) :"
4726,return form.,return form
4727,"call the method self.compression_formats.keys, convert it to list, substitute it for cmp_fmts if cmp_fmt is None,",cmp_fmts = list ( self . compression_formats . keys ( ) ) if cmp_fmt is None else [ cmp_fmt ]
4728,"define lambda function that returns self.file.read field, use it as an argument for property function, put the result in read.",read = property ( lambda self : self . file . read )
4729,"if not,",else :
4730,"if file_obj is true,",if file_obj :
4731,do nothing.,pass
4732,substitute length for truncate_len.,truncate_len = length
4733,"call the function six.unichr with value under the text key of the html_entities.name2codepoint dictionary, return the result.",return six . unichr ( html_entities . name2codepoint [ text ] )
4734,"return value of the value._get_pk_val method and strings_only set to boolean True. call the function m2m_value with the argument related, for every related in itterator object generated from the attribute field.name,","self . _current [ field . name ] = [ m2m_value ( related ) for related in getattr ( obj , field . name ) . iterator ( ) ]"
4735,if Exception exception is caught.,except Exception :
4736,messages is an empty dictionary.,messages = { }
4737,"strip message_context of '""' characters from both ends, substitute the result for message_context.","message_context = message_context . strip ( '""' )"
4738,return integer 0.,return 0
4739,define the function get_language_from_request with 2 arguments: request and check_path set to boolean False.,"def get_language_from_request ( request , check_path = False ) :"
4740,output_transaction is boolean True.,output_transaction = True
4741,from django.core import signals into default name space.,from django . core import signals
4742,"call the function find_command with an argument program, if it evaluates to None,",if find_command ( program ) is None :
4743,import module sys.,import sys
4744,"call the function strftime with 2 arguments: self and fmt, return the result.","return strftime ( self , fmt )"
4745,"for every i and item in enumerated iterable values,","for i , item in enumerate ( values ) :"
4746,return name and tuple containing 2 elements value and params.,"return name , ( value , params )"
4747,"define the method add_item with 17 arguments: self, title, link, description, author_email set to None, author_name set to None,","def add_item ( self , title , link , description , author_email = None , author_name = None , author_link = None , pubdate = None , comments = None , unique_id = None , unique_id_is_permalink = None , enclosure = None , categories = ( ) , item_copyright = None , ttl = None , updateddate = None , ** kwargs ) :"
4748,"if chunk is empty,",if not chunk :
4749,"import_module function, substitute the result for module. return an instance of the module.Command class.",return module . Command ( )
4750,"raise an RuntimeError exception with an argument string ""The method to extend accepted command-line arguments by the ""","raise RuntimeError ( ""The method to extend accepted command-line arguments by the "" ""test management command has changed in Django 1.8. Please "" ""create an add_arguments class method to achieve this."" )"
4751,"raise an IOError exception with string ""Destination file %s exists and allow_overwrite is False"" as argument, where '%s' is replaced by new_file_name.","raise IOError ( ""Destination file %s exists and allow_overwrite is False"" % new_file_name )"
4752,"if field.rel.to._meta.pk.rel is true,",if field . rel . to . _meta . pk . rel :
4753,"if not,",else :
4754,"decorator deconstructible,",@ deconstructible
4755,"if not,",else :
4756,"convert value under the 'HTTP_CONTENT_LENGTH' key of the META dictionary to an integer of base of value under the 'CONTENT_LENGTH' key of META dictionary, if the key doesnt exists use 0 as the base, substitute the result for content_length.","content_length = int ( META . get ( 'HTTP_CONTENT_LENGTH' , META . get ( 'CONTENT_LENGTH' , 0 ) ) )"
4757,"for every f in self.instance._meta.fields,",for f in self . instance . _meta . fields :
4758,"property decorator,",@ property
4759,"value under the ORDERING_FIELD_NAME key of the form.fields is an instance of IntegerField class, created with 3 arguments:","form . fields [ ORDERING_FIELD_NAME ] = IntegerField ( label = _ ( 'Order' ) , initial = index + 1 , required = False )"
4760,"if ValueError exception is caught,",except ValueError :
4761,substitute namespace for self.namespace.,self . namespace = namespace
4762,"append 'Z' to time_str, return the result.",return time_str + 'Z'
4763,"call the method connection.cursor, substitute the result for cursor.",cursor = connection . cursor ( )
4764,"for every loc in locales,",for loc in locales :
4765,"call the method handler.receive_data_chunk with 2 arguments: chunk and i-th element of counters, substitute the result for chunk.","chunk = handler . receive_data_chunk ( chunk , counters [ i ] )"
4766,"define the method set with 5 arguments, self class instance, key, value, timeout set to DEFAULT_TIMEOUT and version set to None.","def set ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :"
4767,"for every middleware_method in self._template_response_middleware,",for middleware_method in self . _template_response_middleware :
4768,neg is integer 0.,neg = 0
4769,"substitute the result for year. call the method dt.timetuple, substitute the result for timetuple.",timetuple = dt . timetuple ( )
4770,"msg is a tuple containing string ""\nYou have installed Django's auth system, and don't have any superusers defined.\nWould you like to create one now? (yes/no): "".","msg = ( ""\nYou have installed Django's auth system, and "" ""don't have any superusers defined.\nWould you like to create one "" ""now? (yes/no): "" )"
4771,"if signal has an attribute 'SIGTTOU',","if hasattr ( signal , 'SIGTTOU' ) :"
4772,"if six.PY3 is true,",if six . PY3 :
4773,"count occurrences of '\n' in t.contents, add the result to t.lineno, substitute the result for cur_lineno.",cur_lineno = t . lineno + t . contents . count ( '\n' )
4774,define the function _get_model with an argument model_identifier.,def _get_model ( model_identifier ) :
4775,"use the result as an key to get the value of the form.data dictionary, assign it value None. call the method form.add_prefix with an argument self.fk.name,",form . data [ form . add_prefix ( self . fk . name ) ] = None
4776,"get the index name, of the parser._namedCycleNodes, return the result.",return parser . _namedCycleNodes [ name ]
4777,define the function get_language_from_path with an argument request.,def get_language_from_path ( request ) :
4778,"define the method __init__ with 3 arguments: self, include_html set to boolean False and email_backend set to None.","def __init__ ( self , include_html = False , email_backend = None ) :"
4779,"for every k in config, only if result of the function valid_ident called with an argument k evaluates to true. try,",try :
4780,return self._dimensions_cache.,return self . _dimensions_cache
4781,return self._client.,return self . _client
4782,call the method f.seek with an argument integer 0.,f . seek ( 0 )
4783,"if data is boolean False,",if data is False :
4784,substitute __import__ for importer.,importer = __import__
4785,derive the class ModelFormOptions from object base class.,class ModelFormOptions ( object ) :
4786,"get the value under the date_key key of the item dictionary, substitute it for item_date.",item_date = item . get ( date_key )
4787,TEMPLATE_FRAGMENT_KEY_TEMPLATE is a string 'template.cache.%s.%s'.,TEMPLATE_FRAGMENT_KEY_TEMPLATE = 'template.cache.%s.%s'
4788,"if definition is true,",if definition :
4789,yield nothing.,yield
4790,"call the __init__ method with 3 arguments: INFO, unpacked list args and unpacked dictionary kwargs from the base class of Info.","return super ( Info , self ) . __init__ ( INFO , * args , ** kwargs )"
4791,"host ends with '.' and host ends with pattern or host is equal to all but first elements of pattern, substitute boolean true for match, otherwise substitute boolean False for match. if match is true,",if match :
4792,call the method self._setup.,self . _setup ( )
4793,"if not,",else :
4794,"if errors is true,",if errors :
4795,return new_context.,return new_context
4796,"reverse the order of modules elements, put them into a list, return it.",return list ( reversed ( modules ) )
4797,"call the function os.spawnve with os.P_WAIT, sys.executable, args and new_environ as arguments, substitute the result for exit_code.","exit_code = os . spawnve ( os . P_WAIT , sys . executable , args , new_environ )"
4798,try,try :
4799,define the function urlencode with 2 arguments value and safe set to None.,"def urlencode ( value , safe = None ) :"
4800,call the method self.setFeature with 2 arguments: handler.feature_external_ges and boolean False.,"self . setFeature ( handler . feature_external_ges , False )"
4801,set move.name attribute of the _MovedItems to move.,"setattr ( _MovedItems , move . name , move )"
4802,"call the function smart_text with an argument value, return the result.",return smart_text ( value )
4803,if ret is true.,if ret :
4804,return self.__language.,return self . __language
4805,"call the function func with 2 arguments: unpacked list resolved_args and unpacked dictionary resolved_kwargs, return it.","return func ( * resolved_args , ** resolved_kwargs )"
4806,substitute settings.TEMPLATE_STRING_IF_INVALID with obj.,obj = settings . TEMPLATE_STRING_IF_INVALID
4807,"define function _generate_cache_key, with request, method, headerlist and key_prefix as arguments.","def _generate_cache_key ( request , method , headerlist , key_prefix ) :"
4808,derive the class SuspiciousFileOperation from the SuspiciousOperation base class.,class SuspiciousFileOperation ( SuspiciousOperation ) :
4809,define the initialization method __init__ with self class instance and environ as arguments.,"def __init__ ( self , environ ) :"
4810,return string 'initial-%s' where '%s' is replaced with return value of the self.add_prefix method called with an argument field_name.,return 'initial-%s' % self . add_prefix ( field_name )
4811,"call the function self.filepath.resolve with an argument context, substitute the result for filepath.",filepath = self . filepath . resolve ( context )
4812,"if self.is_required is false,",if not self . is_required :
4813,call the function f.process with 2 arguments: self and self.domain.,"f . process ( self , self . domain )"
4814,"if space equals integer 0,",if space == 0 :
4815,define the method has_header with 2 arguments: self and header.,"def has_header ( self , header ) :"
4816,"if confirm is not equal to string 'yes' or string 'no',","if confirm not in ( 'yes' , 'no' ) :"
4817,"or if it doesnt exists if exclude is None. raise an ImproperlyConfigured with an argument string ""Calling modelformset_factory without defining 'fields' or 'exclude',","raise ImproperlyConfigured ( ""Calling modelformset_factory without defining 'fields' or "" ""'exclude' explicitly is prohibited."" )"
4818,substitute root for oldroot.,oldroot = root
4819,"if e doesnt have an 'django_template_source' attribute,","if not hasattr ( e , 'django_template_source' ) :"
4820,"return a string """".","return """""
4821,"if use_func is true,",if use_func :
4822,define the method css_classes with 2 arguments: self and extra_classes set to None.,"def css_classes ( self , extra_classes = None ) :"
4823,"if TypeError or VariableDoesNotExist exceptions are caught,","except ( TypeError , VariableDoesNotExist ) :"
4824,invalid_var_format_string is None.,invalid_var_format_string = None
4825,"append check.tags into a list for every check in self.registered_checks if check has 'tags' attribute, put the elements into a set and return it.","return set ( chain ( * [ check . tags for check in self . registered_checks if hasattr ( check , 'tags' ) ] ) )"
4826,import module datetime.,import datetime
4827,asvar is None.,asvar = None
4828,boolean_attrs is an empty list.,boolean_attrs = [ ]
4829,append f.name to exclude.,exclude . append ( f . name )
4830,derive the class Media from the object base class.,class Media ( object ) :
4831,"if over_bytes is true,",if over_bytes :
4832,"and csrf_token, return the result. if not,",else :
4833,"renamed methods is a tuple containing 3 elements: '_get_memcache_timeout', 'get_backend_timeout' and RemovedInDjango19Warning.","renamed_methods = ( ( '_get_memcache_timeout' , 'get_backend_timeout' , RemovedInDjango19Warning ) , )"
4834,"get greater value between integer 1 and result of subtraction of self.orphans from self.count, substitute it for hits.","hits = max ( 1 , self . count - self . orphans )"
4835,derive the class Info from base class CheckMessage.,class Info ( CheckMessage ) :
4836,"model._meta.app_label and model._meta.object_name joined into a string, with separator '.', result joined into a string, separated by string ', ' for every model and deps in sorted list of elements skipped sorted by key: return value of the lambda function with an argument obj, and result the __name__ field of the first element of obj. substitute skipped for model_dependencies.",model_dependencies = skipped
4837,from django.db import models and DEFAULT_DB_ALIAS into default name space.,"from django . db import models , DEFAULT_DB_ALIAS"
4838,"define the method common_logger_config with 4 arguments: self, logger, config and incremental set to boolean False.","def common_logger_config ( self , logger , config , incremental = False ) :"
4839,"call the function to_locale with an argument language, substitute it for self.__locale.",self . __locale = to_locale ( language )
4840,"if not,",else :
4841,"that occupies minimum 4 places within a string, and app_label, substitute the result for new_migration. writer is instance of MigrationWriter class, created with new_migration argument.",writer = MigrationWriter ( new_migration )
4842,import module cgi.,import cgi
4843,"date_data is a tuple with 3 elements: date.year, date.month and date.day.","date_data = ( date . year , date . month , date . day )"
4844,from django.core.mail.backends.base import BaseEmailBackend into default name space.,from django . core . mail . backends . base import BaseEmailBackend
4845,return result.,return result
4846,"_assertRegex is a strnig ""assertRegexpMatches"".","_assertRegex = ""assertRegexpMatches"""
4847,substitute new_mod for self.mod.,self . mod = new_mod
4848,"try,",try :
4849,self.empty_label is None.,self . empty_label = None
4850,append iso_input to val.,val . append ( iso_input )
4851,substitute the location for self.base_location.,self . base_location = location
4852,"call the check function with argument app_config set to app_config, substitute the result for new_errors.",new_errors = check ( app_configs = app_configs )
4853,"if not,",else :
4854,"called with sep appended to base_path as an argument and results of the function normcase called twice with final_path, and base_pah are not equal and directory name of the result of the function normcase called with an argument base_path, if not equal to the result of the function normcase called with an argument base_path. raise an ValueError with an argument string 'The joined path (%s) is located outside of the base path component (%s)',","raise ValueError ( 'The joined path (%s) is located outside of the base ' 'path component (%s)' % ( final_path , base_path ) )"
4855,import module time.,import time
4856,from django.conf import settings into default namespace.,from django . conf import settings
4857,"try,",try :
4858,"do not perform the following only if bits.scheme and bits.netloc are both true,",if not ( bits . scheme and bits . netloc ) :
4859,"otherwise if closing_tag is true,",elif closing_tag :
4860,"for every obj in result of the method queryset.iterator,",for obj in queryset . iterator ( ) :
4861,from django.utils import six into default name space.,from django . utils import six
4862,"property decorator,",@ property
4863,"with '%s' substituted for migration_name and app_label, respectively, as arguments. targets is a list containing tuple with two elements, app_label and migration.name.","targets = [ ( app_label , migration . name ) ]"
4864,close the process with an argument 0.,sys . exit ( 0 )
4865,"call the function force_str with an argument string '<%s\npath:%s,\nGET:%s,\nPOST:%s,\nCOOKIES:%s,\nMETA:%s>',","return force_str ( '<%s\npath:%s,\nGET:%s,\nPOST:%s,\nCOOKIES:%s,\nMETA:%s>' % ( request . __class__ . __name__ , path , six . text_type ( get ) , six . text_type ( post ) , six . text_type ( cookies ) , six . text_type ( meta ) ) )"
4866,return it. define the function iteritems with 2 arguments: d and unpacked dictionary kw.,"def iteritems ( d , ** kw ) :"
4867,"call the function get_templatetags_modules, substitute the result for templatetags_modules.",templatetags_modules = get_templatetags_modules ( )
4868,define the method _iteritems with an argument self.,def _iteritems ( self ) :
4869,"call the function six.text_type with s as an argument, substitute the result for s.",s = six . text_type ( s )
4870,best_doublecolon_len is an integer 0.,best_doublecolon_len = 0
4871,"if part is contained in PALETTES,",if part in PALETTES :
4872,"call the function format_html with 2 arguments: string ' ' and result of the function flatatt,","return format_html ( ' ' , flatatt ( final_attrs ) )"
4873,return boolean False.,return False
4874,"try,",try :
4875,"use the result as an argument for the call to the function binascii.unhexlify, return the result. if hashlib had an instance ""pbkdf2_hmac"",","if hasattr ( hashlib , ""pbkdf2_hmac"" ) :"
4876,"get attribute ""urlpatterns"" form the self.urlconf_module, substitute it for patterns, if the attribute doesnt exist,","patterns = getattr ( self . urlconf_module , ""urlpatterns"" , self . urlconf_module )"
4877,"where '%r' is replaced with options. if option equals a string 'with',",if option == 'with' :
4878,substitute number for self.number.,self . number = number
4879,"if not,",else :
4880,"if Exception, renamed to e, exception is caught,",except Exception as e :
4881,from django.utils.six.moves import input into default name space.,from django . utils . six . moves import input
4882,"call the method validators.MaxValueValidator with max_value converted into an integer, append the result to list self.validators.",self . validators . append ( validators . MaxValueValidator ( max_value ) )
4883,"if self has an attribute '_object_dict',","if not hasattr ( self , '_object_dict' ) :"
4884,_format_modules_cache is an empty dictionary.,_format_modules_cache = { }
4885,substitute limit_choices_to for self.limit_choices_to.,self . limit_choices_to = limit_choices_to
4886,"if name is None and filter_func is None,",if name is None and filter_func is None :
4887,"call the method node.getElementsByTagName with an argument string 'None', if it evaluates to true,",if node . getElementsByTagName ( 'None' ) :
4888,title is an empty string.,title = ''
4889,increment self.position by length of output.,self . position += len ( output )
4890,"if can_fail is true,",if can_fail :
4891,"call the function self.path with argument name, use it and mode as arguments for the call to the function open, use it as an argument for creatinon of a File object instance, return it.","return File ( open ( self . path ( name ) , mode ) )"
4892,"define the method __init__ with 4 arguments: self, name, content and content_type defaulting to a string 'text/plain'.","def __init__ ( self , name , content , content_type = 'text/plain' ) :"
4893,from django.forms.forms import DeclarativeFieldsMetaclass and BaseForm into default name space.,"from django . forms . forms import DeclarativeFieldsMetaclass , BaseForm"
4894,"raise a ValidationError exception with arguments self.message, code set to self.code and params set to params.","raise ValidationError ( self . message , code = self . code , params = params )"
4895,"assign the bits elements to tag, this_value_expr, max_value_expr, max_width, as_ and asvar.","tag , this_value_expr , max_value_expr , max_width , as_ , asvar = bits"
4896,from IPython import start_ipython into default namespace.,from IPython import start_ipython
4897,"if bytes is false,",if not bytes :
4898,"get config dictionary element under 'handlers' key, if it exists substitute it for handlers, if not, handlers is EMPTY_DICT.","handlers = config . get ( 'handlers' , EMPTY_DICT )"
4899,if mw_instance has an attribute named 'process_request'.,"if hasattr ( mw_instance , 'process_request' ) :"
4900,"if not,",else :
4901,"otherwise substitute self.form.label_suffix for label_suffix. if label_suffix and contents are both true and last element of contents is not contained in the result of the function _,",if label_suffix and contents and contents [ - 1 ] not in _ ( ':?.!' ) :
4902,"if not,",else :
4903,"call the function warnings.warn with 3 arguments: string ""django.utils.tzinfo will be removed in Django 1.9. ""","warnings . warn ( ""django.utils.tzinfo will be removed in Django 1.9. "" ""Use django.utils.timezone instead."" , RemovedInDjango19Warning , stacklevel = 2 )"
4904,"for every key in self.keyOrder,",for key in self . keyOrder :
4905,substitute self._leftover for output.,output = self . _leftover
4906,"define the method _construct_form with 3 arguments: self, i and unpacked dictionary kwargs.","def _construct_form ( self , i , ** kwargs ) :"
4907,"convert protocol to lowercase, use it as a key to get a value from the ip_address_validator_map dictionary, return it.",return ip_address_validator_map [ protocol . lower ( ) ]
4908,define the method _delete with arguments self and key.,"def _delete ( self , key ) :"
4909,"read data from buf, yield the result.",yield buf . read ( )
4910,import module copy.,import copy
4911,"if self.invoked_for_django is false,",if not self . invoked_for_django :
4912,write errors to self.stdout.,self . stdout . write ( errors )
4913,"call the function resource_string with 2 arguments app_config.name and pkg_name, substitute the result for resource.","resource = resource_string ( app_config . name , pkg_name )"
4914,do nothing.,pass
4915,"if self._is_rendered is false,",if not self . _is_rendered :
4916,"if f is not None append it to a list for every f in tuple containing 3 elements: style_func, self.style_func,","style_func = [ f for f in ( style_func , self . style_func , lambda x : x ) if f is not None ] [ 0 ]"
4917,"call the self.get method with k and version set to version as arguments, substitute the result for val.","val = self . get ( k , version = version )"
4918,substitute bits without last two elements for bits.,bits = bits [ : - 2 ]
4919,substitute code for self.code.,self . code = code
4920,from django.core.checks.registry import registry into default name space.,from django . core . checks . registry import registry
4921,"FASTCGI_OPTIONS is a dictionary containing 16 initial entries: 'fcgi' for 'protocol', None for 'host', None for 'port',","FASTCGI_OPTIONS = { 'protocol' : 'fcgi' , 'host' : None , 'port' : None , 'socket' : None , 'method' : 'fork' , 'daemonize' : None , 'workdir' : '/' , 'pidfile' : None , 'maxspare' : 5 , 'minspare' : 2 , 'maxchildren' : 50 , 'maxrequests' : 0 , 'debug' : None , 'outlog' : None , 'errlog' : None , 'umask' : None , }"
4922,return an empty string.,return ''
4923,from django.core.management.sql import check_for_migrations into default name space.,from django . core . management . sql import check_for_migrations
4924,call the decode function with argument string 'ascii' on the return value of the method domain.encode with argument string 'idna' substitute the result for domain.,domain = domain . encode ( 'idna' ) . decode ( 'ascii' )
4925,"otherwise if self._delegate_text is true,",elif self . _delegate_text :
4926,"assign bits elements to yes, no and maybe, respectively.","yes , no , maybe = bits"
4927,"split string s once, with '=' as delimiter, substitute the result for t.","t = s . split ( '=' , 1 )"
4928,"decorator function register.filter with 3 arguments string ""slice"", is_safe set to boolean True and needs_autoescape set to True.","@ register . filter ( ""linebreaks"" , is_safe = True , needs_autoescape = True )"
4929,_response_middleware is an empty list.,self . _response_middleware = [ ]
4930,define the function module_has_submodule with 2 arguments: package and module_name.,"def module_has_submodule ( package , module_name ) :"
4931,"get executor.loader.graph.nodes list item at the index of the first element of targets list, get the value under the 'backwards' key of options dictionary, put previous two elements is a tuple, tuple is contained in a plan list.","plan = [ ( executor . loader . graph . nodes [ targets [ 0 ] ] , options [ 'backwards' ] ) ]"
4932,"if field.help_text is true,",if field . help_text :
4933,return an empty string.,return ''
4934,define the function iterkeys with 2 arguments: d and unpacked dictionary kw.,"def iterkeys ( d , ** kw ) :"
4935,make a directory named original_path.,os . makedirs ( original_path )
4936,"raise an AttributeError with an argument string ""no such move, %r"", formated with a tuple with an element name.","raise AttributeError ( ""no such move, %r"" % ( name , ) )"
4937,s is an instance of StringIO class.,s = StringIO ( )
4938,define the method _setup with an argument self.,def _setup ( self ) :
4939,return modules.s,return modules
4940,"add value and delta together, substitute the result for new_value.",new_value = value + delta
4941,call the method self.close.,self . close ( )
4942,"evaluate the method connections[db].ops.cache_key_culling_sql, evaluate the result by table modulus, call the method cursor.execute,","cursor . execute ( connections [ db ] . ops . cache_key_culling_sql ( ) % table , [ cull_num ] )"
4943,define the method find_fixtures with arguments: self and fixture_label.,"def find_fixtures ( self , fixture_label ) :"
4944,"define the method render_node with 3 arguments: self, node and context.","def render_node ( self , node , context ) :"
4945,define the method usage with arguments self and subcommand.,"def usage ( self , subcommand ) :"
4946,"with an argument: value under the name key of the media_attrs dictionary, if it exists, if not use None as an argument. define the method __str__ with an argument self.",def __str__ ( self ) :
4947,"if text is true format with it and RESET a string '%s\x1b[%sm', if not format it with an empty string and RESET, substitute the result for text.","text = '%s\x1b[%sm' % ( text or '' , RESET )"
4948,"called with an argument decorator. if decorator has an attribute 'process_view',","if hasattr ( decorator , '__name__' ) :"
4949,"if node is not an instance of TextNode,","if not isinstance ( node , TextNode ) :"
4950,define the function advance_iterator with an argument it.,def advance_iterator ( it ) :
4951,"arg_vals is an empty list,",arg_vals = [ ]
4952,define the method main_help_text with arguments: self class instance and commands_only set to boolean False.,"def main_help_text ( self , commands_only = False ) :"
4953,"substitute the result for args and kwargs, respectively. call the function node_class with 3 arguments: takes_context, args and kwargs.","return node_class ( takes_context , args , kwargs )"
4954,"if settings.configured is false,",if not settings . configured :
4955,"call the function format_html with 2 arguments: string ' ', return value of the function flatatt, called with an argument,","inputs . append ( format_html ( ' ' , flatatt ( input_attrs ) ) )"
4956,"define the method create_parser with 3 arguments: self, prog_name and subcommand.","def create_parser ( self , prog_name , subcommand ) :"
4957,"call the method self.get_queryset, substitute i-th element of the result for value under the 'instance' key of kwargs dictionary.",kwargs [ 'instance' ] = self . get_queryset ( ) [ i ]
4958,"for every i and field in enumerated iterable self.fields,","for i , field in enumerate ( self . fields ) :"
4959,"read data from buf, yield the result.",yield buf . read ( )
4960,"define function patch_vary_headers, with response and newheaders as arguments.","def patch_vary_headers ( response , newheaders ) :"
4961,"skip this loop iteration,",continue
4962,"if val is None,",if val is None :
4963,"call the method model_to_dict with 3 arguments: instance, opts.fields, opts.exclude and substitute the result for object_data.","object_data = model_to_dict ( instance , opts . fields , opts . exclude )"
4964,remove the first occurrence of the filename value in the _error_files list.,del _error_files [ _error_files . index ( filename ) ]
4965,"call the method dig2.digest, substitute the result for u.",u = dig2 . digest ( )
4966,call the method self.validate_name with 2 arguments: app_name and string 'app'.,"self . validate_name ( app_name , ""app"" )"
4967,"sum sign, int_part and dec_part, return the result.",return sign + int_part + dec_part
4968,define the method to_python with arguments self and value.,"def to_python ( self , value ) :"
4969,"call the method loader.get_migration with arguments app_label and migration_name, substitute the result for migration.","migration = loader . get_migration ( app_label , migration_name )"
4970,import module random as random_module.,import random as random_module
4971,derive the class FilterNode from Node base class.,class FilterNode ( Node ) :
4972,"define the method _text_chars with 5 arguments: self, length, truncate, text and truncate_len.","def _text_chars ( self , length , truncate , text , truncate_len ) :"
4973,"pyinotify.IN_MOVED_FROM, pyinotify.IN_MOVED_TO and pyinotify.IN_CREATE, store the result in mask. for every path in return value of the call to the function gen_filenames with argument only_new set to boolean True,",for path in gen_filenames ( only_new = True ) :
4974,"""is deprecated, use ArgumentParser instead"" and RemovedInDjango20Warning. parser is an instance of the object OptionParser, created with arguments: prog set to prog_name,","parser = OptionParser ( prog = prog_name , usage = self . usage ( subcommand ) , version = self . get_version ( ) )"
4975,"call os.path.splitext function with po_path as argument, substitute the first element of the result for base_path.",base_path = os . path . splitext ( po_path ) [ 0 ]
4976,substitute s for self.s.,self . s = s
4977,"call the function dec with an argument func, return the result.",return dec ( func )
4978,inplural is boolean False.,inplural = False
4979,self.template_cache is an empty dictionary.,self . template_cache = { }
4980,"if trim is true,",if trim :
4981,"errors is a string ""strict"".","errors = ""strict"""
4982,return i.,return i
4983,return self.__offset.,return self . __offset
4984,return self.,return self
4985,"default string value, substitute it for value. return value if six.PY2 is true, if not return value.encode(ISO_8859_1).",return value if six . PY2 else value . encode ( ISO_8859_1 )
4986,"if ValueError or TypeError exceptions are caught,","except ( ValueError , TypeError ) :"
4987,"for every line in chunk_buffer,",for line in chunk_buffer :
4988,"call the method dict.__getitem__ with 2 arguments self and key, substitute the result for value.","value = dict . __getitem__ ( self , key )"
4989,derive the class MemoryFileUploadHandler from the FileUploadHandler base class.,class MemoryFileUploadHandler ( FileUploadHandler ) :
4990,return output.,return output
4991,"and help set to a string 'Nominates a database to print the SQL for. Defaults to the ""default"" database.'. define the method handle_app_config with 3 arguments: self, app_config and unpacked dictionary options.","def handle_app_config ( self , app_config , ** options ) :"
4992,define the method _media with an argument self.,def _media ( self ) :
4993,"call the function timedelta with an argument integer 0, return the result.",return timedelta ( 0 )
4994,derive the class TemplateIfParser from IfParser base class.,class TemplateIfParser ( IfParser ) :
4995,call the os.makedirs function with directory and self.directory_permissions_mode as arguments.,"os . makedirs ( directory , self . directory_permissions_mode )"
4996,"if support_legacy is false,",if not support_legacy :
4997,define the method errors with an argument self.,def errors ( self ) :
4998,"otherwise if first element of g equals a string ""'"",","elif g [ 0 ] == ""'"" :"
4999,derive the class SafeBytes from bytes and SafeData base classes.,"class SafeBytes ( bytes , SafeData ) :"
5000,"msgs_with_ctxt is a tuple containing 2 elements: string created by concatenating context, CONTEXT_SEPARATOR and singular,","msgs_with_ctxt = ( ""%s%s%s"" % ( context , CONTEXT_SEPARATOR , singular ) , ""%s%s%s"" % ( context , CONTEXT_SEPARATOR , plural ) , number )"
5001,"call the method pending_references.setdefault with 2 arguments: refto and an empty list, extend the result with refs.","pending_references . setdefault ( refto , [ ] ) . extend ( refs )"
5002,"try,",try :
5003,self.connection is None.,self . connection = None
5004,output is an empty list.,output = [ ]
5005,"nargs set to '*' and help is a string 'Restricts dumped data to the specified app_label or app_label.ModelName.'. call the method parser.add_argument with 4 arguments: string '--format', default set to string 'json',","parser . add_argument ( '--format' , default = 'json' , dest = 'format' , help = 'Specifies the output serialization format for fixtures.' )"
5006,"append e to infos list for every e in all_issues, if checks.INFO is lesser or equal to e.level,",infos = [ e for e in all_issues if checks . INFO <= e . level < checks . WARNING and not e . is_silenced ( ) ]
5007,"if f equals to string '__pycache__',",if f == '__pycache__' :
5008,"and result of bitwise OR performed on 2 operands: re.MULTILINE and re.VERBOSE, substitute the result for value under the state key of the self.regexes dictionary. substitute first for self.state.",self . state = first
5009,"if result is true,",if result :
5010,"substitute '%s' in string ""Extracting %s\n"" with filename, write it to self.stdout stream.","self . stdout . write ( ""Extracting %s\n"" % filename )"
5011,call the function _load_serializers.,_load_serializers ( )
5012,"call the method self.invalid_block_tag with 3 arguments: token, command and parse_until.","self . invalid_block_tag ( token , command , parse_until )"
5013,"call the method condition.eval with an argument context, substitute the result for match.",match = condition . eval ( context )
5014,"strip path of all leading '/' and '\\' characters, substitute the result for path.",path = path . lstrip ( '/' ) . lstrip ( '\\' )
5015,"if field.rel is true, and field.rel is an instance of models.ManyToManyRel,","if field . rel and isinstance ( field . rel , models . ManyToManyRel ) :"
5016,derive the class lazy_property from the property base class.,class lazy_property ( property ) :
5017,define the method handle with arguments self and unpacked dictionary options.,"def handle ( self , ** options ) :"
5018,self.filters is an empty dictionary.,self . filters = { }
5019,"call the method self.stdout.write with an argument: string ""%(started_at)s\nDjango version %(version)s, using settings %(settings)r\n""","self . stdout . write ( ( ""%(started_at)s\n"" ""Django version %(version)s, using settings %(settings)r\n"" ""Starting development server at http://%(addr)s:%(port)s/\n"" ""Quit the server with %(quit_command)s.\n"" ) % { ""started_at"" : now , ""version"" : self . get_version ( ) , ""settings"" : settings . SETTINGS_MODULE , ""addr"" : '[%s]' % self . addr if self . _raw_ipv6 else self . addr , ""port"" : self . port , ""quit_command"" : quit_command , } )"
5020,import module base64.,import base64
5021,return result.,return result
5022,call the addr.encode method with string 'ascii' as an argument.,addr . encode ( 'ascii' )
5023,"if other is contained in self.children, return boolean True, otherwise return boolean False.",return other in self . children
5024,import module time.,import time
5025,"try,",try :
5026,"define the method _has_changed with arguments self, initial and data.","def _has_changed ( self , initial , data ) :"
5027,supports_microseconds is boolean False.,supports_microseconds = False
5028,substitute if _locs_ is None for _locs_.,_locs_ = frame . f_locals
5029,"call the function _curried_func with 2 arguments: list moreargs appended to args and unpacked,","return _curried_func ( * ( args + moreargs ) , ** dict ( kwargs , ** morekwargs ) )"
5030,"try,",try :
5031,"call the method translation._catalog.copy, substitute the result for self._catalog.",self . _catalog = translation . _catalog . copy ( )
5032,"raise an ValidationError with 3 arguments: value under the 'invalid_choice' key of the self.error_messages dictionary,","raise ValidationError ( self . error_messages [ 'invalid_choice' ] , code = 'invalid_choice' , params = { 'value' : value } , )"
5033,return value.,return value
5034,if self.verbosity is greater or equals to integer 2.,if self . verbosity >= 2 :
5035,"dest as a string 'no_startup' and help as a string 'When using plain Python, ignore the PYTHONSTARTUP environment variable and ~/.pythonrc.py script.'. call the method parser.add_argument with 5 arguments: string '-i', string '--interface', choices set to string self.shells,","parser . add_argument ( '-i' , '--interface' , choices = self . shells , dest = 'interface' , help = 'Specify an interactive interpreter interface. Available options: ""ipython"" and ""bpython""' )"
5036,"if path is not contained in self._js,",if path not in self . _js :
5037,import module sys.,import sys
5038,from django.utils.crypto import get_random_string into default name space.,from django . utils . crypto import get_random_string
5039,from django.core.mail import get_connection into default name space.,from django . core . mail import get_connection
5040,"cal the method operator.attrgetter with an argument string ""__class__"", use the result as an argument for the call to the function,","__class__ = property ( new_method_proxy ( operator . attrgetter ( ""__class__"" ) ) )"
5041,"join elements of lines into a string, separated by newline characters, substitute it for msgs.",msgs = '\n' . join ( lines )
5042,define the function add with 2 arguments value and arg.,"def add ( value , arg ) :"
5043,from django.core.management.sql import sql_all into default name space.,from django . core . management . sql import sql_all
5044,"instantiate class Module_six_moves_urllib_robotparser with an argument, string "".moves.urllib.robotparser"" appended to __name__,","sys . modules [ __name__ + "".moves.urllib_robotparser"" ] = sys . modules [ __name__ + "".moves.urllib.robotparser"" ] = Module_six_moves_urllib_robotparser ( __name__ + "".moves.urllib.robotparser"" )"
5045,"otherwise if cahr equals a string '\\',",elif char == '\\' :
5046,define ensure_echo_on function.,def ensure_echo_on ( ) :
5047,yield and empty string as the result.,yield ''
5048,derive the class TimeInput from the DateTimeBaseInput base class.,class TimeInput ( DateTimeBaseInput ) :
5049,derive the class Formatter from object base class.,class Formatter ( object ) :
5050,"raise an ValueError with an argument string ""Could not find common ancestor of %s"", where '%s' is replaced with migration_names.","raise ValueError ( ""Could not find common ancestor of %s"" % migration_names )"
5051,import module os.,import os
5052,"__all__ is a list of strings, 'SimpleCookie', 'parse_cookie', 'HttpRequest', 'QueryDict', 'RawPostDataException',","__all__ = [ 'SimpleCookie' , 'parse_cookie' , 'HttpRequest' , 'QueryDict' , 'RawPostDataException' , 'UnreadablePostError' , 'build_request_repr' , 'HttpResponse' , 'StreamingHttpResponse' , 'HttpResponseRedirect' , 'HttpResponsePermanentRedirect' , 'HttpResponseNotModified' , 'HttpResponseBadRequest' , 'HttpResponseForbidden' , 'HttpResponseNotFound' , 'HttpResponseNotAllowed' , 'HttpResponseGone' , 'HttpResponseServerError' , 'Http404' , 'BadHeaderError' , 'fix_location_header' , 'JsonResponse' , 'conditional_content_removal' , ]"
5053,"and '8' for 'conceal'. define the method colorize with 3 arguments: text set to an empty string, opts set to an empty tuple and unpacked dictionary kwargs.","def colorize ( text = '' , opts = ( ) , ** kwargs ) :"
5054,"for every base in reversed order of bases,",for base in bases [ : : - 1 ] :
5055,"substitute 3 successive elements starting from the i-th index of pieces for first, lang and priority, respectively.","first , lang , priority = pieces [ i : i + 3 ]"
5056,"if i is smaller than integer 0,",if i < 0 :
5057,"strip trailing '/' from the script_name string, remove first occurrence of '/' in path_info string, append second result to the first, separated with '/', assign the result to self.path.","self . path = '%s/%s' % ( script_name . rstrip ( '/' ) , path_info . replace ( '/' , '' , 1 ) )"
5058,"previous result and filepath. if IOError exception is caught,",except IOError :
5059,"match rest string with self.DOT_PATTERN regex, substitute the result for m.",m = self . DOT_PATTERN . match ( rest )
5060,self._files is an instance of MultiValueDict class.,self . _files = MultiValueDict ( )
5061,"call the function _trans.get_language_from_request with 2 arguments: request and check_path, return the result.","return _trans . get_language_from_request ( request , check_path )"
5062,"if new_mod is None,",if new_mod is None :
5063,"call the method self.__bytes_cast, return the result.",return self . __bytes_cast ( )
5064,"evaluate the function debug.technical_500_response with request, evaluated value of function sys.exc_info as a list,","return debug . technical_500_response ( request , * sys . exc_info ( ) , status_code = 400 )"
5065,"if cmatch is true,",if cmatch :
5066,"help is an string ""Prints the DROP INDEX SQL statements for the given model module name(s)."".","help = ""Prints the DROP INDEX SQL statements for the given model module name(s)."""
5067,create a directory self.default_locale_path.,os . makedirs ( self . default_locale_path )
5068,"if ValidationError, renamed to e, exception is caught,",except ValidationError as e :
5069,internal_use_only is boolean False.,internal_use_only = False
5070,substitute DateInput for widget.,widget = DateInput
5071,define the function get_format_modules with 2 arguments: lang set to None and reverse set to boolean False.,"def get_format_modules ( lang = None , reverse = False ) :"
5072,BASE2_ALPHABET is a string '01'.,BASE2_ALPHABET = '01'
5073,call the method sys.stdin.close.,sys . stdin . close ( )
5074,"define the method set_many with 4 arguments: self, data, timeout set to DEFAULT_TIMEOUT and version set to None.","def set_many ( self , data , timeout = DEFAULT_TIMEOUT , version = None ) :"
5075,"endless loop,",while True :
5076,"if not,",else :
5077,if arg is None,if arg is None :
5078,"if cache_timeout is lesser than integer 0,",if cache_timeout < 0 :
5079,from django.conf import settings.,from django . conf import settings
5080,"if 'expects_localtime' attribute of func object exists and is true,","if getattr ( func , 'expects_localtime' , False ) :"
5081,"if sep is not None,",if sep is not None :
5082,define the method language with an argument self.,def language ( self ) :
5083,return message.,return message
5084,substitute bits without the first element for remaining_bits.,remaining_bits = bits [ 1 : ]
5085,substitute value under the 'use_ipv6' key of the options dictionary for self.use_ipv6.,self . use_ipv6 = options . get ( 'use_ipv6' )
5086,"call the method initial_form_count from the base class of the class BaseInlineFormSet, return the result.","return super ( BaseInlineFormSet , self ) . initial_form_count ( )"
5087,substitute text_kwargs for candidate_subs.,candidate_subs = text_kwargs
5088,substitute sysid for self.sysid.,self . sysid = sysid
5089,"called with 2 arguments: value and memo, for every key and value in result for the method self.items, return the result. define the method __copy__ with an argument self.",def __copy__ ( self ) :
5090,"if settings.DEBUG is true and value of the request.META dictionary under the 'REMOTE_ADDR' key is contained in settings.INTERNAL_IPS,",if settings . DEBUG and request . META . get ( 'REMOTE_ADDR' ) in settings . INTERNAL_IPS :
5091,"substitute the result for value under the 'isPermaLink' key of the guid_attrs dictionary. call the method handler.addQuickElement with 3 arguments: string 'guid', value under the 'unique_id' key of the item dictionary,","handler . addQuickElement ( ""guid"" , item [ 'unique_id' ] , guid_attrs )"
5092,"if self.asvar is true,",if self . asvar :
5093,"substitute the result for final_attrs. get the value under the 'id' key of final_attrs dictionary, substitute if for id_ if the key doesnt exists, id_ is None.","id_ = final_attrs . get ( 'id' , None )"
5094,define the function _helper with 2 arguments list and tabs set to integer 1.,"def _helper ( list_ , tabs = 1 ) :"
5095,"if string '()' is contained in config,",if '()' in config :
5096,"substitute the result for trail. call the function escape with an argument url, substitute the result for url, call the function escape with an argument trimmed,","url , trimmed = escape ( url ) , escape ( trimmed )"
5097,"if commit is false,",if not commit :
5098,"attribute of the self object for name converted into a string. raise an KeyError with an argument string 'Unknown media type ""%s""', where '%s' is replaced with name.","raise KeyError ( 'Unknown media type ""%s""' % name )"
5099,"call the self.stdout.write method with string "" Processing %s.%s model\n"" as argument, with all occurrences of '%s' replaced with,","self . stdout . write ( "" Processing %s.%s model\n"" % ( app_name , model . _meta . object_name ) )"
5100,define the method __enter__ with an argument self.,def __enter__ ( self ) :
5101,"if type of result is ConvertingDict, ConvertingList or ConvertingTuple,","if type ( result ) in ( ConvertingDict , ConvertingList , ConvertingTuple ) :"
5102,"dest is 'use_natural_primary_keys', default is boolean False and help is a string 'Use natural primary keys if they are available.'. call the method parser.add_argument with 6 arguments: string '-a', string '--all', action set to 'store_true',","parser . add_argument ( '-a' , '--all' , action = 'store_true' , dest = 'use_base_manager' , default = False , help = ""Use Django's base manager to dump all models stored in the database, "" ""including those that would otherwise be filtered or modified by a custom manager."" )"
5103,define COOKIES method with self as the argument.,def COOKIES ( self ) :
5104,"substitute the result input_attrs. if id_,",if id_ :
5105,"from the connections list, substitute it for connection. call the method connection.ops.start_transaction_sql, if it evaluates to true,",if connection . ops . start_transaction_sql ( ) :
5106,substitute fifth element of row for value under the 'max_digits' key of the field_params.,field_params [ 'max_digits' ] = row [ 4 ]
5107,"try,",try :
5108,"call the function formset.is_valid, if it evaluates to false,",if not formset . is_valid ( ) :
5109,"ignore is a lambda function with pattern as an argument, return value is the return value of the function fnmatch.fnmatchcase,","ignore = lambda pattern : fnmatch . fnmatchcase ( filename , pattern )"
5110,return version,return version
5111,"iterations and dklen, return the result. if not,",else :
5112,for every c in self.children. define the method __repr__ with an argument self.,def __repr__ ( self ) :
5113,"if LookupError or ImportError, renamed to e, exceptions are caught,","except ( LookupError , ImportError ) as e :"
5114,fill_to is an integer 8.,fill_to = 8
5115,"__all__ is a tuple containing strings: 'UploadedFile', 'TemporaryUploadedFile', 'InMemoryUploadedFile' and 'SimpleUploadedFile'.","__all__ = ( 'UploadedFile' , 'TemporaryUploadedFile' , 'InMemoryUploadedFile' , 'SimpleUploadedFile' )"
5116,"call the executor.loader.get_migration_by_prefix with app_label and migration_name, substitute the result for migration.","migration = executor . loader . get_migration_by_prefix ( app_label , migration_name )"
5117,"substitute message.message, message.code, message.params for message, code and params, respectively.","message , code , params = message . message , message . code , message . params"
5118,define the function tz with an argument request.,def tz ( request ) :
5119,"field_dict is an instance of OrderedDict class, created with an argument field_list.",field_dict = OrderedDict ( field_list )
5120,"call the method self._create_mime_attachment with unpacked list alternative as an argument, use the result as an argument for the call to the msg.attach method.",msg . attach ( self . _create_mime_attachment ( * alternative ) )
5121,"_func_code is a string ""__code__"".","_func_code = ""__code__"""
5122,option is a string '--testrunner='.,option = '--testrunner='
5123,define the method close with an argument self.,def close ( self ) :
5124,"for every app_name and model_list in return value of manifest.items method,","for app_name , model_list in manifest . items ( ) :"
5125,from django.utils import lru_cache into default name space.,from django . utils import lru_cache
5126,"if comment_lineno_cache is not None,",if comment_lineno_cache is not None :
5127,"call the method widget.render with 3 arguments: name, return value of the method self.value, attrs set to attrs,","return force_text ( widget . render ( name , self . value ( ) , attrs = attrs ) )"
5128,substitute DEFAULT_ATTACHMENT_MIME_TYPE for mimetype.,mimetype = DEFAULT_ATTACHMENT_MIME_TYPE
5129,"get handler_config dictionary element under 'level' key, if it exists substitute it for level, if not, level is None.","level = handler_config . get ( 'level' , None )"
5130,"if not,",else :
5131,append ch to result.,result . append ( ch )
5132,"for every lineno and line is enumerated result of the method content.splitlines, called with an argument boolean True,","for lineno , line in enumerate ( content . splitlines ( True ) ) :"
5133,"exception in Django 2.0."" formated with num_loopvars and len_item, respectively, and RemovedInDjango20Warning. try,",try :
5134,"call the method simple_url_re.match with an argument middle, if it evaluates to true,",if simple_url_re . match ( middle ) :
5135,counters is a list containing length of handlers number of zeros.,counters = [ 0 ] * len ( handlers )
5136,"ERRORS is a dictionary with 3 initial entries: string ""You don't have permission to access that port."" for errno.EACCES,","ERRORS = { errno . EACCES : ""You don't have permission to access that port."" , errno . EADDRINUSE : ""That port is already in use."" , errno . EADDRNOTAVAIL : ""That IP address can't be assigned-to."" , }"
5137,"otherwise if pluralmatch is true,",elif pluralmatch :
5138,"if original_lookup and lookup_view are not callable objects,",if not callable ( original_lookup ) and callable ( lookup_view ) :
5139,"replace the result for tz_name. call the method tz_name.encode with the arguments 'ascii' and 'ignore', call the method decode on the result with 'ascii' as argument,","cache_key += '.%s' % tz_name . encode ( 'ascii' , 'ignore' ) . decode ( 'ascii' ) . replace ( ' ' , '_' )"
5140,"if value under the 'debug' key of options dictionary is not None, substitute it for value under the 'debug' key of wsgi_opts dictionary.",wsgi_opts [ 'debug' ] = options [ 'debug' ] is not None
5141,"return a string '%s:%s' formated with the results of the functions self.g and self.i, respectivley.","return '%s:%s' % ( self . g ( ) , self . i ( ) )"
5142,"if errors is true,",if errors :
5143,return field.to_python.,return field . to_python
5144,define the function length_is with 2 arguments value and arg.,"def length_is ( value , arg ) :"
5145,derive the WSGIHandler class from the base class base.BaseHandler.,class WSGIHandler ( base . BaseHandler ) :
5146,"define the method add_error with 3 arguments: self, field and errors.","def add_error ( self , field , error ) :"
5147,alternative_subtype is a string 'alternative'.,alternative_subtype = 'alternative'
5148,call the method self._clean_fields.,self . _clean_fields ( )
5149,call the method self.can_write.release.,self . can_write . release ( )
5150,"if AmbiguityError exception is raised,",except AmbiguityError :
5151,substitute Lexer and Parser for lexer_class and parser_class.,"lexer_class , parser_class = Lexer , Parser"
5152,size is a property object with _get_size as getter method and _set_size as setter method.,"size = property ( _get_size , _set_size )"
5153,"get _assertRaisesRegex attribute of the self object, call the result with 2 arguments: unpacked list args,","return getattr ( self , _assertRaisesRegex ) ( * args , ** kwargs )"
5154,"if value equals k2 or text_value equals return value of the function force_text called with argument k2,",if value == k2 or text_value == force_text ( k2 ) :
5155,"call the function self.filter_expr.resolve with an argument context, return the result.",return self . filter_expr . resolve ( context )
5156,"if self.connection is false,",if not self . connection :
5157,"convert param to a string, use it as a key to get the value from kwargs dictionary, assign it value.",kwargs [ str ( param ) ] = value
5158,"if value under the 'enclosure' key of the item dictionary is not None,",if item [ 'enclosure' ] is not None :
5159,"call the function language_code_prefix_re.match with an argument path, substitute it for regex_match.",regex_match = language_code_prefix_re . match ( path )
5160,"if UnicodeDecodeError exception is caught,",except UnicodeDecodeError :
5161,"all the method field.rel.to._meta.get_field with field.rel.field_name as argument, call the to_python method on the result with,",value = field . rel . to . _meta . get_field ( field . rel . field_name ) . to_python ( field_value )
5162,define the method clear with argument self.,def clear ( self ) :
5163,"get the value under ch key of the ESCAPE_MAPPINGS dictionary, if it exists substitute it for representative, if not substitute ch for representative.","representative = ESCAPE_MAPPINGS . get ( ch , ch )"
5164,"last element of result is an instance of Choice class, created with an argument list with 2 elements: None and last element of result.","result [ - 1 ] = Choice ( [ None , result [ - 1 ] ] )"
5165,substitute oldroot for value under the key key of the cache dictionary.,cache [ key ] = oldroot
5166,return self._name.,return self . _name
5167,"call the method Model._meta.get_field with an argument field_name, substitute it for field.",field = Model . _meta . get_field ( field_name )
5168,substitute handler for value under name key of handlers dictionary.,handlers [ name ] = handler
5169,"get the next element of the iterable pattern_iter, assign the result for ch and escaped, respectively.","ch , escaped = next ( pattern_iter )"
5170,"if AttributeError exception is caught,",except AttributeError :
5171,invalid_apps is an empty list.,invalid_apps = [ ]
5172,"define the method chars with 4 arguments: self, num, truncate set to None, html set to boolean False.","def chars ( self , num , truncate = None , html = False ) :"
5173,from django.db import connections and DEFAULT_DB_ALIAS into default name space.,"from django . db import connections , DEFAULT_DB_ALIAS"
5174,LIGHT_PALETTE is a string 'light'.,LIGHT_PALETTE = 'light'
5175,remove first element of text.,text = text [ 1 : ]
5176,"calculate the length of args, substitute it for alen.",alen = len ( args )
5177,"and version set to result of the method self.get_version. call the method parser.add_option with 8 arguments: string '-v', string '--verbosity', action set to string 'store',","parser . add_argument ( '-v' , '--verbosity' , action = 'store' , dest = 'verbosity' , default = '1' , type = int , choices = [ 0 , 1 , 2 , 3 ] , help = 'Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output' )"
5178,"define the function file_move_safe with 4 arguments: old_file_name, new_file_name, chunk_size set to multiple of integers 1024 and 64,","def file_move_safe ( old_file_name , new_file_name , chunk_size = 1024 * 64 , allow_overwrite = False ) :"
5179,derive the class EmailValidator form the object base class.,class EmailValidator ( object ) :
5180,define the method full_clean with an argument self.,def full_clean ( self ) :
5181,"if self.verbosity is greater of equal to integer 1,",if self . verbosity >= 1 :
5182,return dec.,return dec
5183,raise an AttributeError exception.,raise AttributeError
5184,self.year_none_value is a tuple containing 2 elements: integer 0 and first element of empty_label.,"self . year_none_value = ( 0 , empty_label [ 0 ] )"
5185,"if data is an instance of MultiValueDict or MergeDict,","if isinstance ( data , ( MultiValueDict , MergeDict ) ) :"
5186,from decimal import Decimal into default name space.,from decimal import Decimal
5187,call the function check_programs with an argument string 'xgettext'.,check_programs ( 'xgettext' )
5188,args is an empty list.,args = [ ]
5189,"otherwise if func is callable,",elif callable ( func ) :
5190,self._namespace_dict is an empty dictionary.,self . _namespace_dict = { }
5191,from django.core.management.color import no_style into default name space.,from django . core . management . color import no_style
5192,"define the method new_file with arguments: self, field_name, file_name, content_type, content_length, charset set to None,","def new_file ( self , field_name , file_name , content_type , content_length , charset = None , content_type_extra = None ) :"
5193,return s.,return s
5194,"call the method self.loader with 2 arguments: self.loadname and self.dirs, return the first element of the result.","return self . loader ( self . loadname , self . dirs ) [ 0 ]"
5195,"call the method loader.graph.forwards_plan with argument a tuple, with 2 elements: app_label and migration_name,","migration . ancestry = loader . graph . forwards_plan ( ( app_label , migration_name ) )"
5196,"for every subject, message, sender and recipient in datatuple, store the results in the messages list. return evaluated result of the method connection.send_messages with messages as argument.",return connection . send_messages ( messages )
5197,"call the function copy.deepcopy with an argument self.base_fields, substitute the result for self.fields.",self . fields = copy . deepcopy ( self . base_fields )
5198,"return string ""(%s %r)"", replace '%s' with self.if and '%r' with self.value.","return ""(%s %r)"" % ( self . id , self . value )"
5199,"if other is an instance of self.__class__ and, self.limit_value equals to other.limit_value, and self.message equals to other.message,","return isinstance ( other , self . __class__ ) and ( self . limit_value == other . limit_value ) and ( self . message == other . message ) and ( self . code == other . code )"
5200,"if cleaned_data is not None,",if cleaned_data is not None :
5201,"call the function force_str with an argument url, use the result as an argument for the call to the function unquote, substitute the result for url.",url = unquote ( force_str ( url ) )
5202,from importlib import import_module into default name space.,from importlib import import_module
5203,define the method add_post_render_callback with 2 arguments: self and callback.,"def add_post_render_callback ( self , callback ) :"
5204,"token is an instance of Token class, created with 2 arguments: TOKEN_BLOCK and block_content.","token = Token ( TOKEN_BLOCK , block_content )"
5205,"if KeyError exception is caught,",except KeyError :
5206,"remove kwargs dictionary element under the 'method' key, substitute it for method.",method = kwargs . pop ( 'method' )
5207,call the method django.setup.,django . setup ( )
5208,"append newline to plural_form_line, substitute the result for line.",line = '%s\n' % plural_form_line
5209,from django.core.exceptions import ValidationError into default name space.,from django . core . exceptions import ValidationError
5210,"define the method subwidgets with 5 arguments: self, name, value, attrs set to None and choices set to an empty tuple.","def subwidgets ( self , name , value , attrs = None , choices = ( ) ) :"
5211,from django.utils.deprecation import RemovedInDjango20Warning into default name space.,from django . utils . deprecation import RemovedInDjango20Warning
5212,"decode with an argument string 'ascii', substitute the result for name. take elements of p from index i incremented by 1 to the end, strip the result of the whitespaces, substitute it for value.",value = p [ i + 1 : ] . strip ( )
5213,substitute dirpath for self.dirpath.,self . dirpath = dirpath
5214,"and obj.__class__.__name__, first element of obj._constructor_args and second element of obj._constructor_args. klass.__new__ is a static method of the function __new__.",klass . __new__ = staticmethod ( __new__ )
5215,define the method to_python with arguments self and value.,"def validate ( self , value ) :"
5216,"call the function func with 3 arguments: context, self.first and self.second, return the result.","return func ( context , self . first , self . second )"
5217,raise an ValidationError with 2 arguments: value under the 'invalid' key of the self.error_messages dictionary and code set to 'invalid'.,"raise ValidationError ( self . error_messages [ 'invalid' ] , code = 'invalid' )"
5218,"take a tuple with 2 elements: boolean False and method resolve called with an empty dictionary on the instance of Variable class,","args . append ( ( False , Variable ( constant_arg ) . resolve ( { } ) ) )"
5219,define the method add_arguments with 2 arguments self and parser.,"def add_arguments ( self , parser ) :"
5220,from django.utils.html import conditional_escape and format_html into default name space.,"from django . utils . html import conditional_escape , format_html"
5221,"if self.verbosity is greater than integer 0,",if self . verbosity > 0 :
5222,"if invalid_var_format_string is None,",if invalid_var_format_string is None :
5223,"if IndexError exception is caught,",except IndexError :
5224,"if not,",else :
5225,for meta_line in return value of the method self.get_meta called with an argument table_name.,for meta_line in self . get_meta ( table_name ) :
5226,"if ValueError exception is caught,",except ValueError :
5227,substitute value under the field key of the self.fields dictionary for form_field.,form_field = self . fields [ field ]
5228,call the method _trans.gettext with an argument message.,return _trans . gettext ( message )
5229,substitute context for self.context.,self . context = context
5230,"call the method self._create_mime_attachment with the arguments content and mimetype, substitute the result for attachment.","attachment = self . _create_mime_attachment ( content , mimetype )"
5231,"evaluate function force_bytes with path as the argument, replace all of the occurancies of the ""\\"" with ""/"" in the resulting string,","return quote ( force_bytes ( path ) . replace ( b""\\"" , b""/"" ) , safe = b""/~!*()'"" )"
5232,"sub_match.url_name, self.app_name if it exists or if not sub_match.app_name and sub_match.namespaces list appended to self.name. append pattern to tried list.",tried . append ( [ pattern ] )
5233,from django.utils.six.moves import copyreg into default name space.,from django . utils . six . moves import copyreg
5234,from django.core import mail into default name space.,from django . core import mail
5235,substitute _urllib_request_moved_attributes for Module_six_moves_urllib_request._moved_attributes.,Module_six_moves_urllib_request . _moved_attributes = _urllib_request_moved_attributes
5236,"if ImportError exception is caught,",except ImportError :
5237,"if self.cdata_tag is not None,",if self . cdata_tag is not None :
5238,"if ext doesnt start with '.' character,",if not ext . startswith ( '.' ) :
5239,append self._regex_validator to self.validators.,self . validators . append ( self . _regex_validator )
5240,"append tuple containing two entries: app_config.label and integer 0 to options, for every app_config in app_configs.","options += [ ( app_config . label , 0 ) for app_config in app_configs ]"
5241,"if timeout is None,",if timeout is None :
5242,"join to_path and name into a file path, substitute the result for filename.","filename = os . path . join ( to_path , name )"
5243,substitute tok for value under the groupid key of the self.toks dictionary.,self . toks [ groupid ] = tok
5244,"call the self.path with argument name, substitute it for name.",name = self . path ( name )
5245,"call the method _trans.ungettext with 3 arguments singular, plural and number.","return _trans . ungettext ( singular , plural , number )"
5246,"if fifth element of row is not None, substitute it for value under the 'max_digits' key of the field_params,",field_params [ 'max_digits' ] = row [ 4 ] if row [ 4 ] is not None else 10
5247,"call the method match.group with 2 arguments: strings ""constant_arg"" and ""var_arg"", substitute the result for constant_arg,","constant_arg , var_arg = match . group ( ""constant_arg"" , ""var_arg"" )"
5248,convert language to lowercase and return it.,return language . lower ( )
5249,define the function do_extends with 2 arguments parser and token.,"def do_extends ( parser , token ) :"
5250,return self.STDOFFSET.,return self . STDOFFSET
5251,sub is an empty string.,sub = ''
5252,return name converted to a string and val.,"return str ( name ) , val"
5253,call the os.makedirs with argument self.file_path.,os . makedirs ( self . file_path )
5254,second element of l for every l in return value of the self._files.lists call the method f.close.,f . close ( )
5255,"if s is not an instance of the object six/string_types,","if not isinstance ( s , six . string_types ) :"
5256,"for every i and char in enumerated text,","for i , char in enumerate ( text ) :"
5257,"if not,",else :
5258,"find the first subgroup of the matched string from the match object, strip the whitespaces from the begging and end, replace it for tag.",tag = match . group ( 1 ) . strip ( )
5259,"call the method self.has_header with string 'Content-Encoding' as an argument, if it evaluates to true,",if self . has_header ( 'Content-Encoding' ) :
5260,__all__ is an list with an element 'luhn'.,__all__ = [ 'luhn' ]
5261,do nothing.,pass
5262,"try,",try :
5263,"if value under the 'subtitle' key of the self.feed dictionary is not None,",if self . feed [ 'subtitle' ] is not None :
5264,if self.verbosity is greater or equal to integer 1.,if self . verbosity >= 1 :
5265,break the loop execution.,break
5266,"if only_new is True,",if only_new :
5267,"raise an AttributeError exception with an argument string: ""'%s' object has no attribute 'cleaned_data'"",","raise AttributeError ( ""'%s' object has no attribute 'cleaned_data'"" % self . __class__ . __name__ )"
5268,for every k and v in result of method the self.lists. define the method __deepcopy__ with 2 arguments: self and memo set to None.,"def __deepcopy__ ( self , memo = None ) :"
5269,inplural is boolean False.,inplural = False
5270,"call the function escape with an argument value, return the result.",return escape ( value )
5271,return nothing.,return
5272,"get the value under the 'all' key of the options dictionary, substitute it for process_all.",process_all = options . get ( 'all' )
5273,"call the method self._new_instance with 3 arguments: self.children, self.connector and self.negated, substitute the result for obj.","obj = self . _new_instance ( self . children , self . connector , self . negated )"
5274,"call the function t.render with an argument context_instance, return the result.",return t . render ( context_instance )
5275,"call the function six.reraise with 3 arguments: ImproperlyConfigured, instance of ImproperlyConfigured class created with msg,","six . reraise ( ImproperlyConfigured , ImproperlyConfigured ( msg ) , sys . exc_info ( ) [ 2 ] )"
5276,"callback is an lambda function with an argument response and with return value result of the method middleware.process_response,","callback = lambda response : middleware . process_response ( request , response )"
5277,return boolean False.,return False
5278,"append string ""PRIMARY KEY"" to field_output.","field_output . append ( ""PRIMARY KEY"" )"
5279,"get field.name attribute of the obj, substitute it for related.","related = getattr ( obj , field . name )"
5280,"if not,",else :
5281,"if resolved_path is true,",if resolved_path :
5282,"get the value under the 'id' key of the attrs dictionary, substitute the return value field of the self object for id_.",id_ = self . attrs [ 'id' ]
5283,call the method handler.addQuickElement with 2 arguments: string 'title' and value under the 'title' key of the item dictionary.,"handler . addQuickElement ( ""title"" , item [ 'title' ] )"
5284,"if i is greater than length of subject,",if i >= len ( subject ) :
5285,"get the value from the options dictionary under the key 'verbosity', substitute it for self.verbosity.",self . verbosity = options . get ( 'verbosity' )
5286,import module datetime.,import datetime
5287,from django.utils.six.moves.urllib.request import urlretrieve into default name space.,from django . utils . six . moves . urllib . request import urlretrieve
5288,define the function load with 2 arguments: parser and token.,"def load ( parser , token ) :"
5289,"substitute value.year, value.month and value.day for year_val, month_val and day_val, respectively.","year_val , month_val , day_val = value . year , value . month , value . day"
5290,call the method self.xml.startElement with argument string 'natural' and an empty dictionary.,"self . xml . startElement ( ""natural"" , { } )"
5291,"if not,",else :
5292,"call the method self.nodelist.render with an argument context, return the result.",return self . nodelist . render ( context )
5293,"if Exception, renamed to e, exception is caught,",except Exception as e :
5294,"split arg by ',', substitute the result for bits.","bits = arg . split ( ',' )"
5295,"with the result renamed to fp, perform the following: read data from file fp, use the result as an argument for the call to the function plural_forms_re.search, substitute it for m.",m = plural_forms_re . search ( fp . read ( ) )
5296,"if '.' is not contained in str_number,",if '.' in str_number :
5297,define the method utcoffset with 2 arguments: self and dt.,"def utcoffset ( self , dt ) :"
5298,"get the hash value of the tup, substitute it for self.hashvalue.",self . hashvalue = hash ( tup )
5299,substitute prefix for _prefixes.values.,_prefixes . value = prefix
5300,"call the method self.items, for every field and errors in the result.","for field , errors in self . items ( ) :"
5301,"if not,",else :
5302,"try,",try :
5303,return value.,return value
5304,"if app_label is not contained in executor.loader.migrated_apps,",if app_label not in executor . loader . migrated_apps :
5305,"for every i and line in enumerated iterable table_output,","for i , line in enumerate ( table_output ) :"
5306,call the msg.attach with an argument body_msg.,msg . attach ( body_msg )
5307,define the method management_form with an argument self.,def management_form ( self ) :
5308,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
5309,"call the function EmailMultiAlternatives with settings.EMAIL_SUBJECT_PREFIX and subject converted to strings and concatenated,","mail = EmailMultiAlternatives ( '%s%s' % ( settings . EMAIL_SUBJECT_PREFIX , subject ) , message , settings . SERVER_EMAIL , [ a [ 1 ] for a in settings . ADMINS ] , connection = connection )"
5310,"call the function force_text with first element of choice as an argument, substitute the result for self.choice_value.",self . choice_value = force_text ( choice [ 0 ] )
5311,substitute table for self.db_table.,self . db_table = table
5312,"if data has an 'temporary_file_path' attribute,","if hasattr ( data , 'temporary_file_path' ) :"
5313,"call the self.read method with argument chunk_size, substitute the result for data.",data = self . read ( chunk_size )
5314,insert '.' to digits at negative exponent index.,"digits . insert ( - exponent , '.' )"
5315,delete self entry under the key key.,del self [ key ]
5316,substitute msg for body_msg.,body_msg = msg
5317,update attrs dictionary with entry: self.max_length converted into a string for 'maxlength'.,attrs . update ( { 'maxlength' : str ( self . max_length ) } )
5318,call the function save_m2m.,save_m2m ( )
5319,"call the method parser.add_argument with 6 arguments: string '--locale', string '-l', default as an empty list,","parser . add_argument ( '--locale' , '-l' , default = [ ] , dest = 'locale' , action = 'append' , help = 'Creates or updates the message files for the given locale(s) (e.g. pt_BR). ' 'Can be used multiple times.' )"
5320,"make basedir directory,",os . makedirs ( basedir )
5321,"call the executor.loader.get_migration_by_prefix with app_label and migration_name with arguments, substitute the result fr migration.","migration = executor . loader . get_migration_by_prefix ( app_label , migration_name )"
5322,"call the method constant_re.match with first element of parts as an argument, substitute the result for cmatch.",cmatch = constant_re . match ( parts [ 0 ] )
5323,define the method validate_host with 2 arguments: host and allowed_hosts.,"def validate_host ( host , allowed_hosts ) :"
5324,"method lru_cache.lru_cache with an argument maxsize set to None, as a decorator,",@ lru_cache . lru_cache ( maxsize = None )
5325,from wsgiref import simple_server into default name space.,from wsgiref import simple_server
5326,"call the method self.template.resolve with an argument context, substitute the result for template.",template = self . template . resolve ( context )
5327,"call the function escapejs with an argument value, return the result.",return escapejs ( value )
5328,result is a list containing an empty string.,result = [ '' ]
5329,"call the method field_stream.read with an argument: over_bytes subtracted from integer 4, substitute the result for over_chunk.",over_chunk = field_stream . read ( 4 - over_bytes )
5330,"call the function six.reraise with 3 arguments: ImportError, instance of ImportError class created with an argument msg,","six . reraise ( ImportError , ImportError ( msg ) , sys . exc_info ( ) [ 2 ] )"
5331,"call the method cursor.execute with string ""DELETE FROM %s WHERE cache_key = %%s"" as argument,","cursor . execute ( ""DELETE FROM %s "" ""WHERE cache_key = %%s"" % table , [ key ] )"
5332,code is a string 'min_value',code = 'min_value'
5333,"call the function self._key_to_file with key and version as arguments, substitute it for fname.","fname = self . _key_to_file ( key , version )"
5334,optimizer is an instance of MigrationOptimizer class.,optimizer = MigrationOptimizer ( )
5335,return new_class.,return new_class
5336,"for every f in filters,",for f in filters :
5337,return boolean False.,return False
5338,load_template_source.is_usable is boolean True.,load_template_source . is_usable = True
5339,define the function _check_test_runner with app_config set to None and kwargs dictionary as arguments.,"def _check_test_runner ( app_configs = None , ** kwargs ) :"
5340,substitute context for block.context.,block . context = context
5341,self.bad_cookies is an empty set.,self . bad_cookies = set ( )
5342,"if offset is lesser than integer 0, sign is set to '-', otherwise sign is '+',",sign = '-' if offset < 0 else '+'
5343,"months is a tuple with 12 elements: strings 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov' and 'Dec'.","months = ( 'Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sep' , 'Oct' , 'Nov' , 'Dec' , )"
5344,"dest as a string 'keep_pot', default as boolean False and help as a string ""Keep .pot file after making messages. Useful when debugging."" define the method handle with 3 arguments: self, unpacked list args and unpacked dictionary options.","def handle ( self , * args , ** options ) :"
5345,do nothing.,pass
5346,substitute key for value under the KEY key of the oldroot dictionary.,oldroot [ KEY ] = key
5347,"call the translation.get_language_bidi function, substitute the result for the value under the 'LANGUAGE_BIDI' key of the context_extras dictionary.",context_extras [ 'LANGUAGE_BIDI' ] = translation . get_language_bidi ( )
5348,define the method validate with 2 arguments: self and value.,"def validate ( self , value ) :"
5349,"call the method __new__ from the base class of the class MediaDefiningClass, called with 4 arguments: mcs, name, bases and attrs.","new_class = ( super ( MediaDefiningClass , mcs ) . __new__ ( mcs , name , bases , attrs ) )"
5350,do nothing.,pass
5351,"convert to k and v to strings for every k and v in return value of the response.item method, response_headers is a list containing all the above iteration elements.","response_headers = [ ( str ( k ) , str ( v ) ) for k , v in response . items ( ) ]"
5352,"call the method self.get_resolved_arguments with an argument context, substitute the result for resolved_args and resolved_kwargs.","resolved_args , resolved_kwargs = self . get_resolved_arguments ( context )"
5353,"for every key in self.keyOrder,",for key in self . keyOrder :
5354,from django.utils import six into default name space.,from django . utils import six
5355,substitute instance._meta for opts.,opts = instance . _meta
5356,import module os.,import os
5357,"if option is contained in options,",if option in options :
5358,"verbosity set to verbosity, interactive set to interactive and using set to db. call the method models.signals.post_syncdb.send with 6 arguments: sender set to app_config.models_module,","models . signals . post_syncdb . send ( sender = app_config . models_module , app = app_config . models_module , created_models = created_models , verbosity = verbosity , interactive = interactive , db = db )"
5359,call the method router.get_migratable_models with arguments app_config and connection.alias.,"app_models = router . get_migratable_models ( app_config , connection . alias )"
5360,"try,",try :
5361,"call the function _ with an argument string 'Ensure this value is greater than or equal to %(limit_value)s.', substitute the result for message.",message = _ ( 'Ensure this value is greater than or equal to %(limit_value)s.' )
5362,return nothing.,return
5363,"otherwise if bmatch is true,",elif bmatch :
5364,"if first and second elements of value are contained in self.empty_values,",if value [ 0 ] in self . empty_values and value [ 1 ] in self . empty_values :
5365,"for every loader in template_source_loaders,",for loader in template_source_loaders :
5366,"concatenate var_name, VARIABLE_ATTRIBUTE_SEPARATOR and fourth element of bits, use the result as an argument for the call the method,",expression = parser . compile_filter ( var_name + VARIABLE_ATTRIBUTE_SEPARATOR + bits [ 3 ] )
5367,"covert to uppercase language elements from (p+1)-th index to the end, append it to the previous result, return it. if not,",else :
5368,return string 'form'.,return 'form'
5369,"unique_check is a list with elements field, for every field in unique_check if field is not equal to self.fk.name.",unique_check = [ field for field in unique_check if field != self . fk . name ]
5370,raise an v exception.,raise v
5371,call the method self._populate.,self . _populate ( )
5372,"formated with t.contents, filemsg and t.lineno. otherwise if t.token_type equals TOKEN_VAR,",elif t . token_type == TOKEN_VAR :
5373,"if not,",else :
5374,define the method __contains__ with self and key as arguments.,"def __contains__ ( self , key ) :"
5375,"substitute the result for result. try,",try :
5376,if end is None,if end is None :
5377,"if os has an attribute 'chmod',","if hasattr ( os , 'chmod' ) :"
5378,"sum length of self.quertset and integer 1 if self.field.empty_label is not None, or integer 0 if not, return the result.",return ( len ( self . queryset ) + ( 1 if self . field . empty_label is not None else 0 ) )
5379,renderer is None.,renderer = None
5380,"create a list out of fist end_text_pos text elemnts, substitue it for out.",out = text [ : end_text_pos ]
5381,"call the method field._get_val_from_obj with obj argument, substitute the result for value.",value = field . _get_val_from_obj ( obj )
5382,"split msgs by newline characters, for every line in result,",for line in msgs . split ( '\n' ) :
5383,"define the method get_many with self class instance, keys and version defaulting to None as arguments.","def get_many ( self , keys , version = None ) :"
5384,"try,",try :
5385,"split p into two parts at the first ':', use the second element of the result to format string ' _(%s) ', write it to out.","out . write ( ' %s ' % p . split ( ':' , 1 ) [ 1 ] )"
5386,"url is a property of the class, lambda function is getter attribute with an argument self and return value is the value under the 'Location' key of the self dictionary.",url = property ( lambda self : self [ 'Location' ] )
5387,"if fist and second element of sys.version_info equals to integer 3 and 2, respectively,","if sys . version_info [ : 2 ] == ( 3 , 2 ) :"
5388,"call the method signals.got_request_exception.send with the sender set to the type of this class, and request set to request as the arguments.","signals . got_request_exception . send ( sender = self . __class__ , request = request )"
5389,"call the self.compile_messages with locations as argument,",self . compile_messages ( locations )
5390,return self.id.,return self . id
5391,"call the function import_string with backend if exists or settings.EMAIL_BACKEND if not, store the result into klass.",klass = import_string ( backend or settings . EMAIL_BACKEND )
5392,"if other_dict doesnt have an '__getitem__' attribute,","if not hasattr ( other_dict , '__getitem__' ) :"
5393,"join hidden_fields elements into a string, without separation, substitute the result for str_hidden.",str_hidden = '' . join ( hidden_fields )
5394,compatibility is a string 'compatibility'.,compatibility = 'compatibility'
5395,return None.,return None
5396,define the method widget_attrs with arguments self and widget.,"def widget_attrs ( self , widget ) :"
5397,call the function locks.unlock with fd as argument.,locks . unlock ( fd )
5398,requires_system_checks is boolean False.,requires_system_checks = False
5399,"if values is None,",values = [ ]
5400,params is a list with second element of source as a element.,params = [ source [ 1 ] ]
5401,"remove entry under the 'formfield_callback' key of the attrs dictionary, if it exists substitute if for formfield_callback,","formfield_callback = attrs . pop ( 'formfield_callback' , None )"
5402,singular is an empty list.,singular = [ ]
5403,substitute third element of row list for expires.,expires = row [ 2 ]
5404,"call the method os.path.abspath with an argument dirpath, join the result and dirname into a file path, inset it at the beggining of self.locale_paths.","self . locale_paths . insert ( 0 , os . path . join ( os . path . abspath ( dirpath ) , dirname ) )"
5405,"table2model with an argument table_name. call the function table2model with an argument table_name, append the result to known_models.",known_models . append ( table2model ( table_name ) )
5406,"otherwise if name is not None and compile_function is not None,",elif name is not None and compile_function is not None :
5407,return value.,return value
5408,substitute value under idx key of dictionary d for d.,d = d [ idx ]
5409,"call the function original_urlencode with 2 arguments: list with 2 elements: result of the function force_str with an argument k,","return original_urlencode ( [ ( force_str ( k ) , [ force_str ( i ) for i in v ] if isinstance ( v , ( list , tuple ) ) else force_str ( v ) ) for k , v in query ] , doseq )"
5410,"split second element of hextet into parts by ':', append them to new_ip.",new_ip += hextet [ 1 ] . split ( ':' )
5411,append self.pointer to self.backout.,self . backout . append ( self . pointer )
5412,call the function escape with an argument output.,return escape ( output )
5413,replace hextets list from the best_doublecolon_start index to best_doublecolon_end index with an empty string.,hextets [ best_doublecolon_start : best_doublecolon_end ] = [ '' ]
5414,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
5415,"and unpacked dictionary kwargs. join into a string permitted_methods, separated by string ', ', substitute it for value under the 'Allow' key of the self dictionary.","self [ 'Allow' ] = ', ' . join ( permitted_methods )"
5416,from django.utils import six into default name space.,from django . utils import six
5417,define the function b64_decode with an argument s.,def b64_decode ( s ) :
5418,"if http_cookies.CookieError exception is caught,",except http_cookies . CookieError :
5419,return nodelist.,return nodelist
5420,define the method _get_closed with argument self.,def _get_closed ( self ) :
5421,substitute self.closed for close.,close = self . closed
5422,call the self._delete method with argument fname.,self . _delete ( fname )
5423,"instantiate RelatedObject class with 3 arguments: cls.fk.rel.to, cls.model and cls.fk,","return RelatedObject ( cls . fk . rel . to , cls . model , cls . fk ) . get_accessor_name ( ) . replace ( '+' , '' )"
5424,import module decimal.,import decimal
5425,"call the method self._is_expired with argument f, invert the boolean result and return it.",return not self . _is_expired ( f )
5426,call the method settings.configure.,settings . configure ( )
5427,"use it and the re.I as the input arguments for function re.compile, put the result in the self.interesting. evaluate function tag.lower, without the arguments, put the result in the self.cdata_tag.",self . cdata_tag = tag . lower ( )
5428,substitute TemplateSyntaxError for error_class.,error_class = TemplateSyntaxError
5429,define the method z with an argument self.,def z ( self ) :
5430,"substitute the result for final_attrs. call the method self.is_checked, if it evaluates to true,",if self . is_checked ( ) :
5431,"call the function format_html with 2 arguments: string '', and return value of the function,","return format_html ( '' , format_html_join ( '' , '{0}{1} ' , ( ( k , force_text ( v ) ) for k , v in self . items ( ) ) ) )"
5432,delete entry under the attr key of the attrs dictionary.,del attrs [ attr ]
5433,"if not,",else :
5434,substitute val for self._encoding.,self . _encoding = val
5435,"try,",try :
5436,substitute next_item for sublist_item.,sublist_item = next_item
5437,post is a string ''.,post = ''
5438,"call the callback function with request and dictionary argument param_dict as the arguments, substitute it for response.","response = callback ( request , ** param_dict )"
5439,"raise a CommandError exception, with string ""No migrations present for: %s"" as argument, substitute '%s' in previous string with,","raise CommandError ( ""No migrations present for: %s"" % ( "", "" . join ( invalid_apps ) ) )"
5440,return None.,return None
5441,"join elements of parts into a string, separated with '.', substitute it for name.",name = '.' . join ( parts )
5442,"call the method parser.add_argument with 3 arguments: string 'args', nargs set to argparse.REMAINDER and help as a string 'Various KEY=val options.'","parser . add_argument ( 'args' , nargs = argparse . REMAINDER , help = 'Various KEY=val options.' )"
5443,return an empty list.,return [ ]
5444,convert timeout into an integer.,timeout = int ( timeout )
5445,"for value of dictionary response under the key 'Last-Modified'. if call to the function response.has_header with 'Expires' as argument returns boolean False,",if not response . has_header ( 'Expires' ) :
5446,derive the class MultiWidget from the Widget base class.,class MultiWidget ( Widget ) :
5447,add plan_node to the shown set.,shown . add ( plan_node )
5448,"if value under the 'description' key of the item dictionary is not None,",if item [ 'description' ] is not None :
5449,trimmed is boolean False.,trimmed = False
5450,from django.apps import apps into default name space.,from django . apps import apps
5451,"if function form.has_changed evaluates to false,",if not form . has_changed ( ) :
5452,"raise an exception,",raise
5453,"if file object has an attribute 'mode',","if hasattr ( file , 'mode' ) :"
5454,"call the function new_method_proxy with an argument operator.setitem, substitute the result for __setitem__.",__setitem__ = new_method_proxy ( operator . setitem )
5455,"call the method self.regex.search with an argument path, substitute the result for match.",match = self . regex . search ( path )
5456,"try,",try :
5457,"call the method timezone.make_naive with arguments: expires, timezone.utc, substitute the result for expires.","expires = timezone . make_naive ( expires , timezone . utc )"
5458,"called with an argument final_attrs, return the result. property decorator,",@ property
5459,"property decorator,",@ property
5460,import module warnings.,import warnings
5461,sites is an empty list.,sites = [ ]
5462,"call the method parser.invalid_block_tag with 3 arguments: endblock, 'endblock' and acceptable_endblocks.","parser . invalid_block_tag ( endblock , 'endblock' , acceptable_endblocks )"
5463,"extend self.program list with self.program_options, string '-o',","args = [ self . program ] + self . program_options + [ '-o' , npath ( base_path + '.mo' ) , npath ( base_path + '.po' ) ]"
5464,append f.name to exclude.,exclude . append ( f . name )
5465,substitute self for result.parent.,result . parent = self
5466,set field interesting for this class instance to interesting_cdata from module _html_parser.,self . interesting = _html_parser . interesting_cdata
5467,context_extras is an empty dictionary.,context_extras = { }
5468,"call the method self.empty_variable with an argument token,",self . empty_variable ( token )
5469,substitute self._options for client.behaviors.,client . behaviors = self . _options
5470,return self.content,return self . content
5471,"if words is not empty and length is smaller than or equal to integer 0,",if words and length <= 0 :
5472,raise an ValidationError with 2 arguments: value under the 'invalid_list' key of the self.error_messages dictionary and code set to 'invalid_list'.,"raise ValidationError ( self . error_messages [ 'invalid_list' ] , code = 'invalid_list' )"
5473,"instantiate a class Group with 2 arguments: string ""%%(%s)s"" formated with param, and None, append it to result.","result . append ( Group ( ( ( ""%%(%s)s"" % param ) , None ) ) )"
5474,call the function v with an argument value.,v ( value )
5475,"yield string ""# Feel free to rename the models, but don't rename db_table values or field names."" as the result.","yield ""# Feel free to rename the models, but don't rename db_table values or field names."""
5476,"if not,",else :
5477,define the method tag with an argument self.,def tag ( self ) :
5478,"if not,",else :
5479,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
5480,if i is greater than or equal to length of subject.,if i >= len ( subject ) :
5481,define the method __init__ with arguments self and request defaulting to None.,"def __init__ ( self , request = None ) :"
5482,"call the method self._iteritems, for every k and v in the result,","for k , v in self . _iteritems ( ) :"
5483,"call the function django.get_version, return the result.",return django . get_version ( )
5484,import module os.,import os
5485,if mimetype is not None raise an error.,assert mimetype is None
5486,"call the function new_method_proxy with an argument operator.getitem, substitute the result for __getitem__.",__getitem__ = new_method_proxy ( operator . getitem )
5487,"if self.argv, without the first element is contained in a tuple with 2 entries: a list containing a string '--help',","elif self . argv [ 1 : ] in ( [ '--help' ] , [ '-h' ] ) :"
5488,increment int_part_gd by thousand_sep.,int_part_gd += thousand_sep
5489,"raise an ValueError with an argument string ""attempted relative import beyond top-level package"".","raise ValueError ( ""attempted relative import beyond top-level package"" )"
5490,"call the method self.validate_name with arguments project_name and string ""project"".","self . validate_name ( project_name , ""project"" )"
5491,i is integer 366.,i = 366
5492,"and help as a string 'Specify the app label(s) to create migrations for.'. call the method parser.add_argument with 5 arguments: string '--dry-run', action as a string 'store_true', dest as string 'dry_run',","parser . add_argument ( '--dry-run' , action = 'store_true' , dest = 'dry_run' , default = False , help = ""Just show what migrations would be made; don't actually write them."" )"
5493,call the method parser.add_option with an argument opt.,parser . add_option ( opt )
5494,"raise an CommandError exception with an argument string, ""Incompatible values of 'leave_locale_alone' ""","raise CommandError ( ""Incompatible values of 'leave_locale_alone' "" ""(%s) and 'can_import_settings' (%s) command "" ""options."" % ( self . leave_locale_alone , self . can_import_settings ) )"
5495,modified_code is None.,modified_code = None
5496,"and unpacked dictionary kwargs. python_2_unicode_compatible decorator,",@ python_2_unicode_compatible
5497,"otherwise, value under the 'max_digits' key of the field_params is integer 10. if sixth element of row is not None, substitute it for value under the 'decimal_places' key of the field_params,",field_params [ 'decimal_places' ] = row [ 5 ] if row [ 5 ] is not None else 5
5498,call the method notifier.stop.,notifier . stop ( )
5499,"try,",try :
5500,convert value into an integer.,int ( value )
5501,"define the method has_key with 3 arguments: self, key, and version set to None.","def has_key ( self , key , version = None ) :"
5502,"define the function fget with 3 arguments: instance, instance_type set to None and name set to fget.__name__.","def fget ( instance , instance_type = None , name = fget . __name__ ) :"
5503,"define the method _new_instance with 4 arguments: (cls, children set to None, connector set to None and negated set to boolean False.","def _new_instance ( cls , children = None , connector = None , negated = False ) :"
5504,"find the last index of newline occurrence in self.__starttag_text, subtract it from total length of self.__starttag_text,","offset = ( len ( self . __starttag_text ) - self . __starttag_text . rfind ( ""\n"" ) )"
5505,"define the method write with 4 arguments: self, msg, style_func with None and ending set None.","def write ( self , msg , style_func = None , ending = None ) :"
5506,COMMENT_TAG_START is a string '{#'.,COMMENT_TAG_START = '{#'
5507,"must be 'as'"", where '%s' is replaced with function_name. substitute last element of bits for target_var.",target_var = bits [ - 1 ]
5508,define the method urlencode with 3 arguments: self and safe set to None.,"def urlencode ( self , safe = None ) :"
5509,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
5510,"if namespaces is true,",if namespaces :
5511,"get the value under formatter key of dictionary under 'formatters' key of self.config dictionary, substitute the result for formatter.",formatter = self . config [ 'formatters' ] [ formatter ]
5512,"call the method lookups.appendlist with 2 arguments: pattern.name and a tuple containing 3 elements: bits, p_pattern,","lookups . appendlist ( pattern . name , ( bits , p_pattern , pattern . default_args ) )"
5513,"get the value under the 'no_wrap' key of the options dictionary, if it is true,",if options . get ( 'no_wrap' ) :
5514,define the method _get_media with an argument self.,def _get_media ( self ) :
5515,from django.core.management.templates import TemplateCommand into default name space.,from django . core . management . templates import TemplateCommand
5516,"if self.require_all_fields is boolean true,",if self . require_all_fields :
5517,"required set to required, widget set to widget, label set to label, initial st to initial, help_text set to help_text, unpacked list args, unpacked dictionary kwargs. if self.required is true,",if self . required :
5518,substitute node.source for e.django_template_source.,e . django_template_source = node . source
5519,define the function npath with an argument path.,def npath ( path ) :
5520,"for every opening and closing in WRAPPING_PUNCTUATION,","for opening , closing in WRAPPING_PUNCTUATION :"
5521,substitute _templatetags_modules for templatetags_modules.,templatetags_modules = _templatetags_modules
5522,"and help set to string 'Nominates a database to synchronize. Defaults to the ""default"" database.'. define the method handle with 2 arguments: self and unpacked dictionary options.","def handle ( self , ** options ) :"
5523,return default.,return default
5524,"call the load method on the c class instance, with the cookie argument.",c . load ( cookie )
5525,self._cull_frequency is integer 3.,self . _cull_frequency = 3
5526,derive the class EntitiesForbidden from the DefusedXmlException base class.,class EntitiesForbidden ( DefusedXmlException ) :
5527,"substitute '%s' in a string ""Migrations for '%s':"" with app_label, append newline to it,","self . stdout . write ( self . style . MIGRATE_HEADING ( ""Migrations for '%s':"" % app_label ) + ""\n"" )"
5528,output_transaction is boolean True.,output_transaction = True
5529,do nothing.,pass
5530,"value is an instance of ConvertingDict class, created with an argument value.",value = ConvertingDict ( value )
5531,substitute code for self.code.,self . code = code
5532,define the function get_language.,def get_language ( ) :
5533,"if TypeError exception is caught,",except TypeError :
5534,"call the function get_supported_language_variant with 2 arguments: lang_code and strict set to strict, return the result.","return get_supported_language_variant ( lang_code , strict = strict )"
5535,"if not,",else :
5536,"call the method o.isoformat, return the result.",return o . isoformat ( )
5537,"try,",try :
5538,daemonize is boolean True.,daemonize = True
5539,"call the method self.as_hidden with an argument only_initial set to boolean True,",return self . as_widget ( ) + self . as_hidden ( only_initial = True )
5540,"call the method extend with refs as argument, on the result call the pending_references.setdefault method with refto and empty list as arguments.","pending_references . setdefault ( refto , [ ] ) . extend ( refs )"
5541,"if content is empty, substitute it for an empty string.",content = content or b''
5542,help is a string 'Discover and run tests in the specified modules or the current directory.'.,help = 'Discover and run tests in the specified modules or the current directory.'
5543,"append to errors list a dictionary created with 2 etries, if escape_html is true, return value of the function escape","errors . append ( { 'message' : escape ( message ) if escape_html else message , 'code' : error . code or '' , } )"
5544,append child.data to the inner_text list.,inner_text . append ( child . data )
5545,import module traceback.,import traceback
5546,"define the method __init__ with 4 arguments: self, message, code set to None and params set to None.","def __init__ ( self , message , code = None , params = None ) :"
5547,"if literal_match is true,",if literal_match :
5548,from django.conf import settings into default name space.,from django . conf import settings
5549,"call the method date_value.strftime with an argument input_format, return the result.",return date_value . strftime ( input_format )
5550,"if not,",else :
5551,"if self has an attribute 'error_dict',","if hasattr ( self , 'error_dict' ) :"
5552,return usage.,return usage
5553,"append '-' to generic_lang_code, if supported_code starts with it,",if supported_code . startswith ( generic_lang_code + '-' ) :
5554,"define the method save with arguments self, name and content.","def save ( self , name , content ) :"
5555,"return an string """".","return """""
5556,confirm is a string 'yes'.,confirm = 'yes'
5557,define the method getvalue with an argument self.,def getvalue ( self ) :
5558,"for every chunk in return value of the method self.chunks,",for chunk in self . chunks ( ) :
5559,substitute model._default_manager for objects.,objects = model . _default_manager
5560,"get the value under the 'id' key of the self.attrs dictionary, substitute it for id_ if the key exists, if not id_ is None.","id_ = self . attrs . get ( 'id' , None )"
5561,"if current_len equals truncate_len,",if current_len == truncate_len :
5562,return other_dict.,return other_dict
5563,"call the self.convert method with s, self.decimal, self.decimal_digits and self.sign as arguments, assign the result to the neg and value, respectively.","neg , value = self . convert ( s , self . digits , self . decimal_digits , self . sign )"
5564,"decrement self.waiting_writers by integer 1,",self . waiting_writers -= 1
5565,"char2number is an dictionary, with 26 elements: 2 for 'a', 2 for 'b', 2 for 'c', 3 for 'd', 3 for 'e', 3 for 'f', 4 for 'g',","char2number = { 'a' : '2' , 'b' : '2' , 'c' : '2' , 'd' : '3' , 'e' : '3' , 'f' : '3' , 'g' : '4' , 'h' : '4' , 'i' : '4' , 'j' : '5' , 'k' : '5' , 'l' : '5' , 'm' : '6' , 'n' : '6' , 'o' : '6' , 'p' : '7' , 'q' : '7' , 'r' : '7' , 's' : '7' , 't' : '8' , 'u' : '8' , 'v' : '8' , 'w' : '9' , 'x' : '9' , 'y' : '9' , 'z' : '9' }"
5566,"call the method n.getElementsByTagName with string 'natural' as argument, substitute result for keys.",keys = n . getElementsByTagName ( 'natural' )
5567,delete _urlconfs.value.,del _urlconfs . value
5568,"if both cursor and close_connection are true,",if cursor and close_connection :
5569,"if filename path doesnt exists,",if not os . path . exists ( filename ) :
5570,from django.template import Template and Context into default name space.,"from django . template import Template , Context"
5571,call the method self.add_fields with arguments form and i).,"self . add_fields ( form , i )"
5572,"if not,",else :
5573,call the method HTMLParser.__init__ with 2 arguments: self and strict set to boolean False.,"HTMLParser . __init__ ( self , strict = False )"
5574,if submod is true and return value of the function module_has_submodule called with 2 arguments: result of the function:,"if submod and not module_has_submodule ( import_module ( parentmod ) , submod ) :"
5575,"try,",try :
5576,"and _, respectively. if file_ is true,",if file_ :
5577,BASE16_ALPHABET is a string '0123456789ABCDEF'.,BASE16_ALPHABET = '0123456789ABCDEF'
5578,from django.conf import settings object to the default name space.,from django . conf import settings
5579,define the messages with an argument self.,def messages ( self ) :
5580,derive the class HttpResponsePermanentRedirect from the HttpResponseRedirectBase base class.,class HttpResponsePermanentRedirect ( HttpResponseRedirectBase ) :
5581,"try,",try :
5582,"if os.path.exists function with argument name, evaluates to boolean True,",if os . path . exists ( name ) :
5583,"raise an BadHeaderError exception with an argument string ""Header values can't contain newlines (got %r)"", where '%r' is replaced with value.","raise BadHeaderError ( ""Header values can't contain newlines (got %r)"" % value )"
5584,define the method __ne__ with an argument self.,"def __ne__ ( self , other ) :"
5585,call the function call_command with 2 arguments: string migrate and unpacked dictionary options.,"call_command ( ""migrate"" , ** options )"
5586,define the method timestamp with an argument self.,def timestamp ( self ) :
5587,"if not,",else :
5588,"if PY3 field of six is boolean True,",if six . PY3 :
5589,"remove element under 'stream' key of kwargs dictionary, substitute the result for value under 'strm' key of kwargs dictionary.",kwargs [ 'strm' ] = kwargs . pop ( 'stream' )
5590,value under the all_label key of the directory_created dictionary is boolean True.,directory_created [ app_label ] = True
5591,"map elements of value through mapping function force_text, substitute the result for value.","value = map ( force_text , value )"
5592,"call the method self.create_parser with first and second element of argv, substitute the result for parser.","parser = self . create_parser ( argv [ 0 ] , argv [ 1 ] )"
5593,return an instance of DebugNodeList class.,return DebugNodeList ( )
5594,substitute empty for self._wrapped.,self . _wrapped = empty
5595,return kwargs.,return kwargs
5596,i is integer 0.,i = 0
5597,return nothing.,return
5598,"raise an TypeError exception with an argument: result of the method illegal_formatting.group called with an argument,","raise TypeError ( ""strftime of dates before 1900 does not handle"" + illegal_formatting . group ( 0 ) )"
5599,use global variable invalid_var_format_string.,global invalid_var_format_string
5600,template_with_initial is a string '%(initial_text)s: %(initial)s %(clear_template)s %(input_text)s: %(input)s'.,template_with_initial = '%(initial_text)s: %(initial)s %(clear_template)s %(input_text)s: %(input)s'
5601,define the method discard with 2 arguments: self and item.,"def discard ( self , item ) :"
5602,"if value is None,",if value is None :
5603,"for every program in programs,",for program in programs :
5604,"call the method self.tag_function with an argument name, return the result.",return self . tag_function ( name )
5605,"if self.verbosity is greater than integer 0,",if self . verbosity > 0 :
5606,"substitute initial for initial_value, if initial is not None, if not, initial_value is an empty string.",initial_value = initial if initial is not None else ''
5607,"call the function smart_text with an argument auto_id, format the result with self.html_name, return it.",return smart_text ( auto_id ) % self . html_name
5608,from django.conf import settings into default name space.,from django . conf import settings
5609,"call the function iri_to_uri with an argument url, substitute the result for self.url.",self . url = iri_to_uri ( url )
5610,"default_error_messages is an dictionary with an entry: return value of the function _ called with an argument string,","default_error_messages = { 'invalid_choice' : _ ( 'Select a valid choice. %(value)s is not one of the available choices.' ) , }"
5611,"call the method self.handle_merge with 2 arguments: loader and conflicts, return the result.","return self . handle_merge ( loader , conflicts )"
5612,substitute greater element between integer 0 and end decremented by one for last.,"last = max ( 0 , end - 1 )"
5613,"get the value under the 'database' key of the options dictionary,",connection = connections [ options . get ( 'database' ) ]
5614,"call the method self.resolve with an argument value, return the result.",return self . resolve ( value )
5615,substitute m2m_data for self.m2m_data.,self . m2m_data = m2m_data
5616,"get the value under the 'use_default_ignore_patterns' key of the options dictionary, if it is true,",if options . get ( 'use_default_ignore_patterns' ) :
5617,append list containing string '--no-wrap' to self.msguniq_options.,self . msguniq_options = self . msguniq_options [ : ] + [ '--no-wrap' ]
5618,"if data is true,",if data :
5619,call the function get_connection with 2 arguments: backend set to self.email_backend and fail_silently set to boolean True.,"return get_connection ( backend = self . email_backend , fail_silently = True )"
5620,return an empty string.,return ''
5621,"call the self.style.HTTP_BAD_REQUEST with an argument msg, substitute it for msg.",msg = self . style . HTTP_BAD_REQUEST ( msg )
5622,append ext to guessed_filename.,guessed_filename += ext
5623,"if UnicodeError, renamed to e, exception is caught,",except UnicodeError as e :
5624,write the chunk to the file _file.,_file . write ( chunk )
5625,"call the method Module_six_moves_urllib_request with an argument: string "".moves.urllib_parse"" appended to __name__,","sys . modules [ __name__ + "".moves.urllib_parse"" ] = sys . modules [ __name__ + "".moves.urllib.parse"" ] = Module_six_moves_urllib_parse ( __name__ + "".moves.urllib_parse"" )"
5626,"define the method __init__ with 15 elements: self, title, link, description, language set to None, author_email set to None,","def __init__ ( self , title , link , description , language = None , author_email = None , author_name = None , author_link = None , subtitle = None , categories = None , feed_url = None , feed_copyright = None , feed_guid = None , ttl = None , ** kwargs ) :"
5627,substitute self.external_entity_ref_handler for parser.ExternalEntityRefHandler.,parser . ExternalEntityRefHandler = self . external_entity_ref_handler
5628,"otherwise cmp_fmts is a list containing cmp_fmt. call the method serializers.get_public_serializer_formats, substitute the result for ser_fmts if ser_fmt is None,",ser_fmts = serializers . get_public_serializer_formats ( ) if ser_fmt is None else [ ser_fmt ]
5629,"try,",try :
5630,"raise an CommandError with an argument string ""AppCommand cannot handle app '%s' in legacy mode because it doesn't have a models module."", where '%s' is replaced by app_config.label.","raise CommandError ( ""AppCommand cannot handle app '%s' in legacy mode "" ""because it doesn't have a models module."" % app_config . label )"
5631,substitute CheckboxInput for widget.,widget = CheckboxInput
5632,"if TypeError or ValueError exceptions are caught,","except ( ValueError , TypeError ) :"
5633,"if self.waiting_writers is not equal to integer 0,",if self . waiting_writers != 0 :
5634,"split str_number by '.', substitute the result for int_part and dec_part, respectively.","int_part , dec_part = str_number . split ( '.' )"
5635,"for every basedir in basedirs,",for basedir in basedirs :
5636,"where '%s' is replaced with token.contents. call the method re.split with 2 arguments: raw string ' *, *' and elements of bits from 1 index to in_index index,","loopvars = re . split ( r' *, *' , ' ' . join ( bits [ 1 : in_index ] ) )"
5637,"if bits is false,",if not bits :
5638,"define lambda function that returns self.file.flush field, use it as an argument for property function, put the result in flush.",flush = property ( lambda self : self . file . flush )
5639,"if table_name_filter is not None and table_name_filter is callable object,",if table_name_filter is not None and callable ( table_name_filter ) :
5640,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
5641,"if not,",else :
5642,"define the method get with 4 arguments, self class instance, key, default set to None and version set to None.","def get ( self , key , default = None , version = None ) :"
5643,call the method self._reset_dicts with an argument dict_.,self . _reset_dicts ( dict_ )
5644,"return the element at the index index of the tuple containing 3 elements: self.func, self.args and self.kwargs.","return ( self . func , self . args , self . kwargs ) [ index ]"
5645,"call the method self.stdout.write with an argument string ""Installing %s fixture '%s' from %s."",","self . stdout . write ( ""Installing %s fixture '%s' from %s."" % ( ser_fmt , fixture_name , humanize ( fixture_dir ) ) )"
5646,raise an StopIteration exception.,raise StopIteration
5647,return result converted into an integer. define the method w with an argument self.,def w ( self ) :
5648,"call the method parser.parse with an argument tuple with an element string 'endautoescape', substitute the result for nodelist.","nodelist = parser . parse ( ( 'endautoescape' , ) )"
5649,"if length of bits is lesser than integer 2,",if len ( bits ) < 2 :
5650,"if related_att is not None,",if related_att is not None :
5651,"append string '.moves' to __name__, use it as an argument to instantiate _MovedItems class, assign it to moves,","moves = sys . modules [ __name__ + "".moves"" ] = _MovedItems ( __name__ + "".moves"" )"
5652,"call the method self.handle_uncaught_exception with request, resolver and return value of the function sys.exec_info as the arguments.","response = self . handle_uncaught_exception ( request , resolver , sys . exc_info ( ) )"
5653,"return string ""[Didn't have permission to include file]"".","return ""[Didn't have permission to include file]"""
5654,define the function dictConfig with an argument config.,def dictConfig ( config ) :
5655,self._errors is an instance of ErrorDict.,self . _errors = ErrorDict ( )
5656,self.verbose_name_plural is a string 'cache entries'.,self . verbose_name_plural = 'cache entries'
5657,"from django.utils.text import smart_split, unescape_string_literal and get_text_list into default namespace.","from django . utils . text import ( smart_split , unescape_string_literal , get_text_list )"
5658,from django.utils import six into default name space.,from django . utils import six
5659,"format the string '{scheme}://{host}{path}' by replacing scheme with self.scheme, host with return value of the self.get_host method,","current_uri = '{scheme}://{host}{path}' . format ( scheme = self . scheme , host = self . get_host ( ) , path = self . path )"
5660,"try,",try :
5661,"if value under the 'microsecond' key of the kw dictionary is true,",if kw [ 'microsecond' ] :
5662,help is a string 'Prints the SQL statements for resetting sequences for the given app name(s).'.,help = 'Prints the SQL statements for resetting sequences for the given app name(s).'
5663,"if s is an instance of bytes or Promise and s._delegate_bytes is true,","if isinstance ( s , bytes ) or ( isinstance ( s , Promise ) and s . _delegate_bytes ) :"
5664,derive the class StopUpload from the UploadFileException base class.,class StopUpload ( UploadFileException ) :
5665,"label set to return value of the function _ called with an string 'Order', initial set to index incremented by 1, and required as boolean False. if not,",else :
5666,"call the method self.field.bound_data with 2 arguments: self.data and value under the self.name key of the dictionary,","data = self . field . bound_data ( self . data , self . form . initial . get ( self . name , self . field . initial ) )"
5667,return nothing.,return
5668,"if not,",else :
5669,derive the class DjangoSafeDumper from the SafeDumper base class.,class DjangoSafeDumper ( SafeDumper ) :
5670,"if id_for_label is true,",if id_for_label :
5671,"call the method instance of TerminalIPythonApp class, substitute the result for app.",app = TerminalIPythonApp . instance ( )
5672,break from the loop execution.,break
5673,media is an instance of Media class.,media = Media ( )
5674,"raise an ValueError exception with an argument string ""make_aware expects a naive datetime, got %s"", where '%s' is replaced with value.","raise ValueError ( ""make_aware expects a naive datetime, got %s"" % value )"
5675,s_len is integer 0.,s_len = 0
5676,"if self.match is None or call to the method self.match_re.search with an argument f, evaluated to true,",if self . match is None or self . match_re . search ( f ) :
5677,"call the os.stat function with argument filename, store the return value in stat.",stat = os . stat ( filename )
5678,"append truncate to text, return the result.","return '%s%s' % ( text , truncate )"
5679,"call the function force_bytes with an argument salt, substitute the result for salt.",salt = force_bytes ( salt )
5680,widget.is_localized is boolean True.,widget . is_localized = True
5681,"if not,",else :
5682,"dest set to string 'domain' and help as a string 'The domain of the message files (default: ""django"").'. call the method parser.add_argument with 6 arguments: string '--all', string '-a', action as a string'store_true',","parser . add_argument ( '--all' , '-a' , action = 'store_true' , dest = 'all' , default = False , help = 'Updates the message files for all existing locales.' )"
5683,define the method add_arguments with 2 arguments self and parser.,"def add_arguments ( self , parser ) :"
5684,"set class fields _request_middleware, _view_middleware, _template_response_middleware, _response_middleware and _exception_middleware to None.",self . _request_middleware = self . _view_middleware = self . _template_response_middleware = self . _response_middleware = self . _exception_middleware = None
5685,child_nodelists is an tuple with an element 'nodelist'.,"child_nodelists = ( 'nodelist' , )"
5686,"substitute the result for value under the f.name key of data dictionary. if not,",else :
5687,define the method get_meta with arguments self and table_name.,"def get_meta ( self , table_name ) :"
5688,derive the class ValidationError from the Exception base class.,class ValidationError ( Exception ) :
5689,"get shell attribute of the self object, call it and return the result.","return getattr ( self , shell ) ( )"
5690,return boolean True.,return True
5691,define the function get_serializer_formats.,def get_serializer_formats ( ) :
5692,"try,",try :
5693,"if not,",else :
5694,"return the result. define the method value_from_datadict with 4 arguments: self, data, files and name.","def value_from_datadict ( self , data , files , name ) :"
5695,"decorator classmethod,",@ classmethod
5696,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
5697,append self.pointer to self.backout.,self . backout . append ( self . pointer )
5698,"if context_instance is false,",if not context_instance :
5699,"return a string '%s %s %s' formated with 3 elements: result of the function force_text called with an argument i,","return '%s %s %s' % ( _ ( ', ' ) . join ( force_text ( i ) for i in list_ [ : - 1 ] ) , force_text ( last_word ) , force_text ( list_ [ - 1 ] ) )"
5700,decrement end by one.,end -= 1
5701,do nothing.,pass
5702,do nothing.,pass
5703,"if self.silent is true,",if self . silent :
5704,"if attribute '_client' of the self object is None,","if getattr ( self , '_client' , None ) is None :"
5705,self._populated is boolean True.,self . _populated = True
5706,"call the method migration.ancestry.index with an argument common_ancestor, increment the result by one,",migration . branch = migration . ancestry [ ( migration . ancestry . index ( common_ancestor ) + 1 ) : ]
5707,"call the method nodelist.render with an argument, an instance of Context class, use the result as an argument for the creation of,",return VerbatimNode ( nodelist . render ( Context ( ) ) )
5708,from django.utils import six into default name space.,from django . utils import six
5709,return self._encoding.,return self . _encoding
5710,substitute self.html_name for name.,name = self . html_name
5711,"from django.template.base import Node, NodeList, Template, Context, Library, TemplateSyntaxError, VariableDoesNotExist,","from django . template . base import ( Node , NodeList , Template , Context , Library , TemplateSyntaxError , VariableDoesNotExist , InvalidTemplateLibrary , BLOCK_TAG_START , BLOCK_TAG_END , VARIABLE_TAG_START , VARIABLE_TAG_END , SINGLE_BRACE_START , SINGLE_BRACE_END , COMMENT_TAG_START , COMMENT_TAG_END , VARIABLE_ATTRIBUTE_SEPARATOR , get_library , token_kwargs , kwarg_re , render_value_in_context )"
5712,"call the function _ with an argument string 'Ensure this value is less than or equal to %(limit_value)s.', substitute the result for message.",message = _ ( 'Ensure this value is less than or equal to %(limit_value)s.' )
5713,"join elements of c into a string, return it.",return '' . join ( c )
5714,"call the function settings.is_overridden with argument string 'ADMINS', if it evaluates to boolean True,",if settings . is_overridden ( 'ADMINS' ) :
5715,call the function _create_cache with argument alias.,cache = _create_cache ( alias )
5716,substitute func for self.func.,self . func = func
5717,"call the __init__ method with 3 arguments: DEBUG, unpacked list args and unpacked dictionary kwargs from the base class of Debug.","return super ( Debug , self ) . __init__ ( DEBUG , * args , ** kwargs )"
5718,"call the method connections.all(), perform the following for every db in the result,",for db in connections . all ( ) :
5719,"property decorator,",@ property
5720,"if config dictionary value under 'version' key is not equal to integer 1,",if config [ 'version' ] != 1 :
5721,append filename to the self.attachments list.,self . attachments . append ( filename )
5722,define the function check_errors with argument fn.,def check_errors ( fn ) :
5723,"with the name of the type of the self class instance of the middleware_method, raise the ValueError with the previous as the argument. call the method self.apply_response_fixes with the request and response as the arguments, substitute the result for response.","response = self . apply_response_fixes ( request , response )"
5724,"join into a string: md5 hash sum of force_bytes(key) and self.cache_suffix, compose root file path out of self._dir and previous result, return it.","return os . path . join ( self . _dir , '' . join ( [ hashlib . md5 ( force_bytes ( key ) ) . hexdigest ( ) , self . cache_suffix ] ) )"
5725,"convert new_name to a string and append it to string 'number_', substitute the result for new_name.",new_name = 'number_%s' % new_name
5726,"write string ""Cleaning up temporary files.\n"" to self.stdout stream.","self . stdout . write ( ""Cleaning up temporary files.\n"" )"
5727,"call the method self.make_key with key and version set to version as arguments, substitute it for key.","key = self . make_key ( key , version = version )"
5728,define the method exists with arguments self and name.,"def exists ( self , name ) :"
5729,"if first element of cwords equals a string 'runfcgi',",if cwords [ 0 ] == 'runfcgi' :
5730,"called with 2 arguments: s and string_only as boolean True. if categories is true,",if categories :
5731,"if not,",else :
5732,convert value to an string and substitute it for value.,value = str ( value )
5733,return boolean True.,return True
5734,import module warnings.,import warnings
5735,"try,",try :
5736,"call the method self.xml.startElement with 2 arguments, string ""django-objects"" and a dictionary containing 1 element: ""1.0"" for ""version"".","self . xml . startElement ( ""django-objects"" , { ""version"" : ""1.0"" } )"
5737,from django.core.management.base import AppCommand into default name space.,from django . core . management . base import AppCommand
5738,"if meta is None,",if meta is None :
5739,define the method __getitem__ with arguments self and index.,"def __getitem__ ( self , index ) :"
5740,"if not,",else :
5741,define the function localtime with 2 arguments: value and timezone set to None.,"def localtime ( value , timezone = None ) :"
5742,"unpacked list exc_info. if self.include_html is true, call the method reporter.get_traceback_html and substitute the result for html_message,",html_message = reporter . get_traceback_html ( ) if self . include_html else None
5743,return boolean True.,return True
5744,"if item is contained in the list of the elements of self, return boolean True, otherwise return boolean False.",return item in list ( self )
5745,substitute settings.CACHE_MIDDLEWARE_SECONDS for cache_timeout.,cache_timeout = settings . CACHE_MIDDLEWARE_SECONDS
5746,define the function autodiscover_modules with 2 arguments unpacked list args and unpacked dictionary kwargs.,"def autodiscover_modules ( * args , ** kwargs ) :"
5747,"get format_type attribute of the settings object, return it.","return getattr ( settings , format_type )"
5748,"if resource_string is not None, is_usable is boolean True, otherwise is_usable is boolean False.",is_usable = resource_string is not None
5749,"call the cursor method on the value under the db key of connections dictionary, preform following with return value named cursor,",with connections [ db ] . cursor ( ) as cursor :
5750,"for every app in sorted return value of the commands_dict.keys function,",for app in sorted ( commands_dict . keys ( ) ) :
5751,"if ImportError exception is caught,",except ImportError :
5752,"call the method self.itervalues, return list of results.",return list ( self . itervalues ( ) )
5753,"bring intger 2 to integer 32, decrement the result by 1, multiply it with hlen, if dklen is greater than the previous result,",if dklen > ( 2 ** 32 - 1 ) * hlen :
5754,"raise an ValueError exception with an argument string ""Base36 input too large"".","raise ValueError ( ""Base36 input too large"" )"
5755,"if ValueError, OverflowError or InvalidOperation exceptions are caught,","except ( ValueError , OverflowError , InvalidOperation ) :"
5756,"for every role in termcolors.PALETTES list at the index termcolors.NOCOLOR_PALETTE,",for role in termcolors . PALETTES [ termcolors . NOCOLOR_PALETTE ] :
5757,set attr.name attribute of the _MovedItemst object to attr.,"setattr ( _MovedItems , attr . name , attr )"
5758,"try,",try :
5759,"call the sign method from the base class of the TimestampSigner class with an argument value, return the result","return super ( TimestampSigner , self ) . sign ( value )"
5760,"call the function lazy with arguments _get_val and six.text_type, substitute the result for _get_val.","_get_val = lazy ( _get_val , six . text_type )"
5761,"if not,",else :
5762,self.pos is integer 0.,self . pos = 0
5763,"if autoescape is true and value is not an instance of SafeData, autoescape is boolean True, otherwise it is boolean False.","autoescape = autoescape and not isinstance ( value , SafeData )"
5764,args is a list containing arg surrounded by double quotes for every arg in args.,"args = [ '""%s""' % arg for arg in args ]"
5765,return value.,return value
5766,from django.utils.six.moves import html_parser as _html_parse into default name space.,from django . utils . six . moves import html_parser as _html_parser
5767,define the function phone2numeric with an argument phone.,def phone2numeric ( phone ) :
5768,"raise an ValueError exception with an argument string ""Don't mix *args and **kwargs in call to reverse()!"".","raise ValueError ( ""Don't mix *args and **kwargs in call to reverse()!"" )"
5769,use global variable template_source_loaders.,global template_source_loaders
5770,substitute apps for the value under language_code key of the self._app_dict dictionary.,self . _app_dict [ language_code ] = apps
5771,"call the function runfastcgi with an argument all the elements, except the first from the sys.argv list.",runfastcgi ( sys . argv [ 1 : ] )
5772,"compile the regex ""^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9:]+\])(:\d+)?$"", substitute it for host_validation_re.","host_validation_re = re . compile ( r""^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9:]+\])(:\d+)?$"" )"
5773,"call the method connection.ops.start_transaction_sql, use the result as an argument for the call to the method self.style.SQL_KEYWORD,",self . stdout . write ( self . style . SQL_KEYWORD ( connection . ops . start_transaction_sql ( ) ) )
5774,"raise an CommandError with an argument string ""errors happened while running msgmerge\n%s"", where '%s' is replaced with errors.","raise CommandError ( ""errors happened while running msgmerge\n%s"" % errors )"
5775,where '%s' is replaced with taglib and e. return an instance of a LoadNode class.,return LoadNode ( )
5776,TOTAL_FORM_COUNT is a string 'TOTAL_FORMS'.,TOTAL_FORM_COUNT = 'TOTAL_FORMS'
5777,"define the method incr with self class instance, key, delta set to integer 1 and version set to None, as arguments.","def incr ( self , key , delta = 1 , version = None ) :"
5778,"call the _expire_info.setdefault method with name and empty dictionary as arguments, substitute the result for self_expire_info.","self . _expire_info = _expire_info . setdefault ( name , { } )"
5779,derive the class RemovedInDjango20Warning from PendingDeprecationWarning base class.,class RemovedInDjango20Warning ( PendingDeprecationWarning ) :
5780,define function get_max_age with response as an argument.,def get_max_age ( response ) :
5781,raise a CommandError exception with an argument:,"raise CommandError ( ""%s already exists, overlaying a "" ""project or app into an existing "" ""directory won't replace conflicting "" ""files"" % new_path )"
5782,call the function validate_ipv4_address with an argument value.,validate_ipv4_address ( value )
5783,decrement truncate_len by integer 1.,truncate_len -= 1
5784,"call the function middleware_class with 2 arguments: unpacked list m_args and unpacked dictionary m_kwargs,","middleware = middleware_class ( * m_args , ** m_kwargs )"
5785,where '%r' is replaced with first element of bits. options is an empty dictionary.,options = { }
5786,"define the method __init__ with 3 arguments: self, attrs set to None and choices set to an empty tuple.","def __init__ ( self , attrs = None , choices = ( ) ) :"
5787,call the method self.set_charset with utf8_charset as an argument.,self . set_charset ( utf8_charset )
5788,"compile a regex from raw string '^\[\s*(\w+)\s*\]\s*', substitute it for INDEX_PATTERN.",INDEX_PATTERN = re . compile ( r'^\[\s*(\w+)\s*\]\s*' )
5789,import module signal.,import signal
5790,substitute default for value under the key key of self dictionary.,self [ key ] = default
5791,increment num_args by one.,num_args += 1
5792,"try,",try :
5793,skip this loop execution.,continue
5794,"and format, call the method time on the result, return the result. derive the class DateTimeField from the base class BaseTemporalField class.",class DateTimeField ( BaseTemporalField ) :
5795,from django.utils import six into default name space.,from django . utils import six
5796,"convert elements of error into a list, substitute the first element for message.",message = list ( error ) [ 0 ]
5797,"if file path top_dir doesnt exists,",if not os . path . exists ( top_dir ) :
5798,"call the method __init__ from the base class of the class TemplateIfParser, with 2 arguments: unpacked list args and unpacked dictionary.","super ( TemplateIfParser , self ) . __init__ ( * args , ** kwargs )"
5799,"define the method __init__ with 3 arguments: self, attrs set to None and format is None.","def __init__ ( self , attrs = None , format = None ) :"
5800,"increment i by integer 1,",i += 1
5801,return fext.,return fext
5802,skip this loop iteration.,continue
5803,trans_real._default is None.,trans_real . _default = None
5804,"if regex_match is false,",if not regex_match :
5805,"if length of args is greater than integer 1,",if len ( args ) > 1 :
5806,"call the method self.non_field_errors, substitute the result for top_errors.",top_errors = self . non_field_errors ( )
5807,"_meth_func is a string ""im_func"".","_meth_func = ""im_func"""
5808,call the method self._ordering.sort with an argument key as compare_ordering_key.,self . _ordering . sort ( key = compare_ordering_key )
5809,"try,",try :
5810,"call the function io.open with 3 arguments: self.dirpath and thefile joined into a file path, string 'w',","with io . open ( os . path . join ( self . dirpath , thefile ) , ""w"" , encoding = 'utf-8' ) as fp :"
5811,"define the method open with arguments self, name and mode defaulting to string 'rb'.","def open ( self , name , mode = 'rb' ) :"
5812,define the function parse_cookie with cookie as the argument.,def parse_cookie ( cookie ) :
5813,"define the method attach_alternative with arguments self, content and mimetype.","def attach_alternative ( self , content , mimetype ) :"
5814,return boolean True.,return True
5815,"if errors is true,",if errors :
5816,substitute self.field.widget for widget.,widget = self . field . widget
5817,"""pulls out all strings marked for translation. It creates (or updates) a message "" ""file in the conf/locale (in the django tree) or locale (for projects and "" ""applications) directory.\n\nYou must run this command with one of either the "" ""--locale, --exclude or --all options."". requires_system_checks is boolean False.",requires_system_checks = False
5818,call the __init__ method of the base class of the QueryDict class.,"super ( QueryDict , self ) . __init__ ( )"
5819,if the key doesnt exists substitute boolean False for self.use_natural_primary_keys. call the method self.start_serialization,self . start_serialization ( )
5820,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
5821,if ValueError exception is caught.,except ValueError :
5822,"decorator deconstructible,",@ deconstructible
5823,"convert key and default to strings, get the value under the key string key of the environ dictionary, if it does not exists use the,","value = environ . get ( str ( key ) , str ( default ) )"
5824,substitute complain for __imul__.,__imul__ = complain
5825,define the method __reversed__ with an argument self.,def __reversed__ ( self ) :
5826,"if action equals to string ""apply_start"",","if action == ""apply_start"" :"
5827,extend list inner_result with res.,inner_result . extend ( res )
5828,"call the method self.expression.resolve with 2 arguments: context and boolean True, return the result.","return self . expression . resolve ( context , True )"
5829,define the method __iter__ with an argument self.,def __iter__ ( self ) :
5830,"if ValueError exception is caught,",except ValueError :
5831,"return tuple, consisting of first element of t converted to lowercase and True.","return t [ 0 ] . lower ( ) , True"
5832,"raise an AttributeError with an argument string ""This %s instance has no `content` attribute. ""Use `streaming_content` instead."",","raise AttributeError ( ""This %s instance has no `content` attribute. "" ""Use `streaming_content` instead."" % self . __class__ . __name__ )"
5833,"for p in self.ignore_patterns if p ends with dir_suffix take sliced list p from the start,",norm_patterns = [ p [ : - len ( dir_suffix ) ] if p . endswith ( dir_suffix ) else p for p in self . ignore_patterns ]
5834,"substitute gettext for gettext_noop, gettext_lazy and _.",gettext_noop = gettext_lazy = _ = gettext
5835,"call the method self._create_attachment with an unpacked list attachment as an argument, use the result as an argument for the call to the msg.attach method.",msg . attach ( self . _create_attachment ( * attachment ) )
5836,define the method get_unique_error_message with 2 arguments: self and unique_check.,"def get_unique_error_message ( self , unique_check ) :"
5837,"if re.error, renamed to e, is caught,",except re . error as e :
5838,"try,",try :
5839,"if param is contained in unhandled_params,",if param in unhandled_params :
5840,return self._callback.,return self . _callback
5841,"remove the 'stream' key from the options dictionary and substitute it for self.stream,","self . stream = options . pop ( ""stream"" , six . StringIO ( ) )"
5842,"call the models.Model.save_base method with arguments self.object, using as using and raw set to boolean True.","models . Model . save_base ( self . object , using = using , raw = True )"
5843,"call the method self.extra_headers.get with string 'From' and self.from_email as arguments, substitute the result for value under the 'From' key of msg dictionary.","msg [ 'From' ] = self . extra_headers . get ( 'From' , self . from_email )"
5844,"raise an ImproperlyConfigured exception with an argument string ""Creating a ModelForm without either the 'fields' attribute,","raise ImproperlyConfigured ( ""Creating a ModelForm without either the 'fields' attribute "" ""or the 'exclude' attribute is prohibited; form %s "" ""needs updating."" % name )"
5845,"define the method __init__ with 3 arguments: self, filter_expr and nodelist).","def __init__ ( self , filter_expr , nodelist ) :"
5846,"if third element of bits equals a string 'parsed',",if bits [ 2 ] == 'parsed' :
5847,"if not,",else :
5848,"raise a ValueError exception with an argument ""The protocol '%s' is unknown. Supported: %s"", replace '%s' with protocol,","raise ValueError ( ""The protocol '%s' is unknown. Supported: %s"" % ( protocol , list ( ip_address_validator_map ) ) )"
5849,"call the method parser.compile_filter with an argument value, substitute the result for value under the key key of kwargs dictionary.",kwargs [ key ] = parser . compile_filter ( value )
5850,define the method render with 2 arguments: self and context.,"def render ( self , context ) :"
5851,"substitute tuple containing 2 elements: sum of p_pattern and prefix, and sub_pattern for value under the namespace key of the namespace dictionary.","namespaces [ namespace ] = ( p_pattern + prefix , sub_pattern )"
5852,from django.utils.encoding import force_str and force_text into default name space.,"from django . utils . encoding import force_str , force_text"
5853,derive the class datetime from the real_datetime base class.,class datetime ( real_datetime ) :
5854,"define the method _set with 4 arguments, self class instance, key, value and timeout set to DEFAULT_TIMEOUT.","def _set ( self , key , value , timeout = DEFAULT_TIMEOUT ) :"
5855,"if length of bits is not zero,",if len ( bits ) :
5856,"raise an CommandError with an argument string ""More than one migration matches '%s' in app '%s'. Please be more specific."",","raise CommandError ( ""More than one migration matches '%s' in app '%s'. Please be more specific."" % ( migration_name , app_label ) )"
5857,"if the key doesnt exists substitute boolean False for self.use_natural_keys. if self.use_natural_keys is true,",if self . use_natural_keys :
5858,substitute declared_fields for new_class.declared_fields.,new_class . declared_fields = declared_fields
5859,"call the method zipfile.ZipFile.__init___ with the arguments self, unpacked list args and unpacked dictionary kwargs.","zipfile . ZipFile . __init__ ( self , * args , ** kwargs )"
5860,return None.,return None
5861,"get the name key of the data dictionary, if the key exists return it, if not return None.","return data . get ( name , None )"
5862,"convert keys of dictionary self.dict into a iterable, return it.",return iter ( self . dict . keys ( ) )
5863,"call the __init__ method from the base class of the class SimpleTemplateResponse, with 3 arguments: an empty string, content_type and status.","super ( SimpleTemplateResponse , self ) . __init__ ( '' , content_type , status )"
5864,from django.utils import six into default name space.,from django . utils import six
5865,call the self.indent method with integer 0 as an argument.,self . indent ( 0 )
5866,"if value under the 'setting' key of the kwargs dictionary is equal to string 'LANGUAGES' or strnig 'LANGUAGE_CODE',","if kwargs [ 'setting' ] in ( 'LANGUAGES' , 'LANGUAGE_CODE' ) :"
5867,import module os.,import os
5868,"if token.contents doesn not equals a string 'endif', raise an AssertionError exception,",assert token . contents == 'endif'
5869,define the method url_patterns with an argument self.,def url_patterns ( self ) :
5870,changeset is None.,changeset = None
5871,default_error_messages is an dictionary with an entry: return value of the function _ called with an argument string 'Enter a valid date.' for 'invalid'.,"default_error_messages = { 'invalid' : _ ( 'Enter a valid date.' ) , }"
5872,substitute type.__init__ for __init__.,__init__ = type . __init__
5873,"try,",try :
5874,"get func_name attribute from the mod object, substitute it for view_func.","view_func = getattr ( mod , func_name )"
5875,"get the value under the key key of the self.cookies dictionary, substitute expires for 'expires' key of the returned dictionary.",self . cookies [ key ] [ 'expires' ] = expires
5876,"if value has an attribute '_meta',","if hasattr ( value , '_meta' ) :"
5877,"return boolean True, otherwise return boolean False. define the function make_aware with 2 arguments: value and timezone.","def make_aware ( value , timezone ) :"
5878,"if e doesnt have an 'django_template_source' attribute,","if not hasattr ( e , 'django_template_source' ) :"
5879,from django.utils.http import http_date to the default name space.,from django . utils . http import http_date
5880,derive the class CacheClass from the base class LocMemCache.,class CacheClass ( LocMemCache ) :
5881,"default set to False and help set to string'Creates SQL to unapply the migration, rather than to apply it' as arguments. define the method handle with self class instance, list of arguments args and options dictionary as the arguments.","def handle ( self , * args , ** options ) :"
5882,from functools import lru_cache.,from functools import lru_cache
5883,define the method validate with arguments self and value.,"def validate ( self , value ) :"
5884,skip this loop iteration.,continue
5885,derive the class Command from the base class AppCommand.,class Command ( AppCommand ) :
5886,"if six.PY3 is true,",if six . PY3 :
5887,"mode is a string 'wb' is chunk is instance of the type bytes, otherwise mode is a string 'wt'.","mode = 'wb' if isinstance ( chunk , bytes ) else 'wt'"
5888,substitute next for self.next.,self . next = next
5889,define the method clear_checkbox_id with 2 arguments: self and name.,"def clear_checkbox_id ( self , name ) :"
5890,define the function do_with with 2 arguments: parser and token.,"def do_with ( parser , token ) :"
5891,define _get_files method with self class instance as the argument.,def _get_files ( self ) :
5892,define the method __init__ with self and limit_value as arguments.,"def __init__ ( self , limit_value ) :"
5893,return boolean False.,return False
5894,define the method ipython with an argument self.,def ipython ( self ) :
5895,"append self.form.required_css_class to a whitespace character, append it to the value under the 'class' key of the attrs dictionary.",attrs [ 'class' ] += ' ' + self . form . required_css_class
5896,"with the result renamed to fp, perform the following: call the method fp.write with an arguments src_data.",fp . write ( src_data )
5897,"call the function reverse with 4 arguments: concatenated project_name, character '.' and view_name, args as args, kwargs as kwargs,","url = reverse ( project_name + '.' + view_name , args = args , kwargs = kwargs , current_app = context . current_app )"
5898,"replace every occurrence of raw string '\\' in the result with string '\\', return the result. call the function allow_lazy with an argument unescape_string_literal, substitute the result for unescape_string_literal.",unescape_string_literal = allow_lazy ( unescape_string_literal )
5899,"if self.verbosity is greater or equal to integer 2,",if self . verbosity >= 2 :
5900,call the method shell.mainloop.,shell . mainloop ( )
5901,"if value under the 'ENGINE' key of the connection.settings_dict dictionary equals a string 'django.db.backends.dummy',",if connection . settings_dict [ 'ENGINE' ] == 'django.db.backends.dummy' :
5902,"call the function ungettext_lazy with 3 arguments: string 'Ensure this value has at least %(limit_value)d character (it has %(show_value)d),","message = ungettext_lazy ( 'Ensure this value has at least %(limit_value)d character (it has %(show_value)d).' , 'Ensure this value has at least %(limit_value)d characters (it has %(show_value)d).' , 'limit_value' )"
5903,raise an NotImplementedError exception with argument string 'subclasses of Storage must provide an exists() method'.,raise NotImplementedError ( 'subclasses of Storage must provide an exists() method' )
5904,derive the class HttpResponseRedirectBase from the HttpResponse base class.,class HttpResponseRedirectBase ( HttpResponse ) :
5905,"call the method resolver._reverse_with_prefix with 4 arguments: view, prefix, unpacked list args, unpacked dictionary kwargs,","return iri_to_uri ( resolver . _reverse_with_prefix ( view , prefix , * args , ** kwargs ) )"
5906,from django.utils.timezone import is_aware into default name space.,from django . utils . timezone import is_aware
5907,"if rest is not False, None is considered False,",if not rest :
5908,return plural.,return plural
5909,"if not,",else :
5910,import module os.,import os
5911,"commands is an dictionary containing elements: string 'django.core' for every name in the function find_commands return value, called with first element of __path__ as an argument.",commands = { name : 'django.core' for name in find_commands ( __path__ [ 0 ] ) }
5912,"if in_index-th element of bits equals to string 'in',",if bits [ in_index ] != 'in' :
5913,call the method self.validate_key with argument key.,self . validate_key ( key )
5914,"can_order as can_order, can_delete as can_delete, validate_min as validate_min, validate_max as validate_max, substitute the result for form. substitute model for FormSet.model.",FormSet . model = model
5915,import module hashlib.,import hashlib
5916,"for every subwidget in the result, yield subwidget, as the result of the generator.",yield subwidget
5917,raise an NotImplementedError exception with argument string 'subclasses of Storage must provide a delete() method'.,raise NotImplementedError ( 'subclasses of Storage must provide a delete() method' )
5918,"call the method timezone.get_current_timezone, substitute the result for current_timezone.",current_timezone = timezone . get_current_timezone ( )
5919,"if f is an instance of ModelFiled, for every f in opts.virtual_fields, append f to a list, substitute the resulting list for sortable_virtual_fields.","sortable_virtual_fields = [ f for f in opts . virtual_fields if isinstance ( f , ModelField ) ]"
5920,define the function gen_filenames with an argument only_new defaulting to boolean False.,def gen_filenames ( only_new = False ) :
5921,"substitute the result for time_str. if six.PY2 is true,",if six . PY2 :
5922,substitute NullBooleanSelect for widget.,widget = NullBooleanSelect
5923,"get the value under the key key of the self.cookies dictionary, substitute boolean True for 'secure' key of the returned dictionary.",self . cookies [ key ] [ 'secure' ] = True
5924,"raise an MultiPartParserError with an argument string ""Invalid content length: %r"", where '%r' is replaced with content_length.","raise MultiPartParserError ( ""Invalid content length: %r"" % content_length )"
5925,"sum best_doublecolon_start and best_doublecolon_len, substitute the result for best_doublecolon_end,",best_doublecolon_end = ( best_doublecolon_start + best_doublecolon_len )
5926,"call the function re.compile with 2 arguments: elements of parts joined into a string, separated with '|',","self . regexes [ state ] = re . compile ( ""|"" . join ( parts ) , re . MULTILINE | re . VERBOSE )"
5927,return an dictionary containing 1 entry: return value of the function timezone.get_current_timezone_name for 'TIME_ZONE'.,return { 'TIME_ZONE' : timezone . get_current_timezone_name ( ) }
5928,define the method __init__ with 2 arguments: self and content.,"def __init__ ( self , content ) :"
5929,"call the method t.nud with an argument self, substitute the result for left.",left = t . nud ( self )
5930,"for every x in sequence of integers from 0 to 7. background is a dictionary created with elements: x appended to a string '4' for value under the key x of color_names dictionary,","background = dict ( ( color_names [ x ] , '4%s' % x ) for x in range ( 8 ) )"
5931,"and result of the function force_bytes called with an argument val2, return the result. if not,",else :
5932,substitute _moved_attributes for _MovedItems._moved_attributes.,_MovedItems . _moved_attributes = _moved_attributes
5933,"python_2_unicode_compatible decorator,",@ python_2_unicode_compatible
5934,"if Exception exception is caught,",except Exception :
5935,"define the method __init__ with 3 arguments: self, unpacked list args and unpacked dictionary kwargs.","def __init__ ( self , * args , ** kwargs ) :"
5936,from django.utils.safestring import mark_safe into default name space.,from django . utils . safestring import mark_safe
5937,define the function decorator with an argument klass.,def decorator ( klass ) :
5938,"subtract year from integer 2000, substitute the result for delta.",delta = 2000 - year
5939,"call the method self._cache.add with key, value, self.get_backend_timeout(timeout) as arguments.","return self . _cache . add ( key , value , self . get_backend_timeout ( timeout ) )"
5940,return otherwise.,return otherwise
5941,from django.utils.itercompat import is_iterable into default name space.,from django . utils . itercompat import is_iterable
5942,"call the function six.reraise with 3 arguments: ImportError, instance of ImportError class created with an argument msg,","six . reraise ( ImportError , ImportError ( msg ) , sys . exc_info ( ) [ 2 ] )"
5943,from __future__ import unicode_literals into default name space.,from __future__ import unicode_literals
5944,"if formfield has an attribute 'queryset',","if hasattr ( formfield , 'queryset' ) :"
5945,"call the function local, substitute the result for _prefixes.",_prefixes = local ( )
5946,regex is an empty string.,regex = ''
5947,"call the method threading.RLock, substitute the result for self.mutex.",self . mutex = threading . RLock ( )
5948,mapped_tokens is an empty list.,mapped_tokens = [ ]
5949,"string ""resolve_variable() is deprecated. Use django.template. Variable(path).resolve(context) instead"", RemovedInDjango20Warning, and stacklevel set to integer 2. call the method resolve with an argument context, from the instance of Variable class, created with an argument path.",return Variable ( path ) . resolve ( context )
5950,if self._is_rendered is false.,if not self . _is_rendered :
5951,define the function media_property with an argument cls.,def media_property ( cls ) :
5952,"call the method fp.write with an argument string '%d\n"", with '%d' replaced by os.getpid function return value.","fp . write ( ""%d\n"" % os . getpid ( ) )"
5953,return result.,return result
5954,call the function mark_safe with an argument output.,return mark_safe ( output )
5955,self._validate_unique is boolean True.,self . _validate_unique = True
5956,"call the method chunk.find with an argument bytes string '\r\n\r\n', substitute the result for header_end.",header_end = chunk . find ( b'\r\n\r\n' )
5957,from django.utils.ipv6 import is_valid_ipv6_address into default name space.,from django . utils . ipv6 import is_valid_ipv6_address
5958,"if safe is true and arg is not equal to string ';',",if safe and arg != ';' :
5959,"if best_doublecolon_start equals integer 0,",if best_doublecolon_start == 0 :
5960,"obj is a string ""?"".","obj = ""?"""
5961,substitute token.source for e.django_template_source.,e . django_template_source = token . source
5962,import module warnings.,import warnings
5963,substitute result.queryset for result.queryset.,result . queryset = result . queryset
5964,define the method clean with an argument self.,def clean ( self ) :
5965,"if value under the 'author_email' key of the item dictionary is not None,",if item [ 'author_email' ] is not None :
5966,return initial.,return initial
5967,"if CONTEXT_SEPARATOR is contained in result,",if CONTEXT_SEPARATOR in result :
5968,raise an TemplateDoesNotExist exception with an argument name.,raise TemplateDoesNotExist ( name )
5969,"substitute '%s' in the string '\n%s:\n%s\n', with group_name and formatted, substitute the result for msg.","msg += '\n%s:\n%s\n' % ( group_name , formatted )"
5970,define the method start_serialization with an argument self.,def start_serialization ( self ) :
5971,code_list is an empty list.,code_list = [ ]
5972,call the method handler.startElement with 2 arguments: string 'author' and an empty dictionary.,"handler . startElement ( ""author"" , { } )"
5973,"use it as an argument for the call to the method self.style.MIGRATE_HEADING, write the result to self.stdout. for every operation in migration.merged_operations,",for operation in migration . merged_operations :
5974,define the method W with an argument self.,def W ( self ) :
5975,"got_request_exception is a instance of a Signal class, created with an argument providing_args as the list containing string 'request'.","got_request_exception = Signal ( providing_args = [ ""request"" ] )"
5976,"if self.to_field is true,",if self . to_field :
5977,from django.db.migrations.state import ProjectState into default name space.,from django . db . migrations . state import ProjectState
5978,"call the method match.groups, substitute the result for args.",args = match . groups ( )
5979,"otherwise if t.token_type equals TOKEN_COMMENT,",elif t . token_type == TOKEN_COMMENT :
5980,decorator function register.filter with an argument is_safe set to boolean True.,@ register . filter ( is_safe = True )
5981,"call the method sys.stderr.write with an argument string "" as a FastCGI application, you will need to get flup from\n"".","sys . stderr . write ( "" as a FastCGI application, you will need to get flup from\n"" )"
5982,"raise an ValueError with an argument string ""'%s.%s' has no field named '%s'."", where '%s' is replaced with,","raise ValueError ( ""'%s.%s' has no field named '%s'."" % ( model . _meta . app_label , model . _meta . object_name , fk_name ) )"
5983,if ':' is not contained in ip_str.,if ':' not in ip_str :
5984,"raise an TemplateEncodingError exception with an argument ""Templates can only be constructed from unicode or UTF-8 strings."".","raise TemplateEncodingError ( ""Templates can only be constructed "" ""from unicode or UTF-8 strings."" )"
5985,"and format, return the result. derive the class RegexField from the base class CharField class.",class RegexField ( CharField ) :
5986,_anonymous_ is a list containing one string: '_offset'.,_anonymous_ = [ '_offset' ]
5987,"if s is not an instance of the object Exception,","if not isinstance ( s , Exception ) :"
5988,"return the result. call the function force_bytes with arguments value and self._charset, return the result.","return force_bytes ( value , self . _charset )"
5989,"if media is true,",if media :
5990,from django import http into default name space.,from django import http
5991,return a string '%02d' formated with self.data.month.,return '%02d' % self . data . month
5992,"substitute value under the ""_wrapped"" key of the self.__dict__ dictionary.","self . __dict__ [ ""_wrapped"" ] = value"
5993,for every middleware_path in settings.MIDDLEWARE_CLASSES:,for middleware_path in settings . MIDDLEWARE_CLASSES :
5994,return left.,return left
5995,"if _cookie_encodes_correctly and _cookie_allows_colon_in_names are boolean True,",if _cookie_encodes_correctly and _cookie_allows_colon_in_names :
5996,return kwargs.,return kwargs
5997,substitute value under the backend key of settings.CACHES dictionary for conf.,conf = settings . CACHES [ backend ]
5998,"define the method get with 5 arguments, self class instance, key, default set to None and version set to None.","def get ( self , key , default = None , version = None ) :"
5999,"call the function calculate_app_template_dirs, substitute the result for app_template_dirs.",app_template_dirs = calculate_app_template_dirs ( )