AhmedSSoliman commited on
Commit
abea848
1 Parent(s): 65877da

Upload 11 files

Browse files
Output.txt ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "_name_or_path": "./distilbert-marian-training",
4
+ "architectures": [
5
+ "EncoderDecoderModel"
6
+ ],
7
+ "decoder": {
8
+ "_name_or_path": "Helsinki-NLP/opus-mt-en-nl",
9
+ "_num_labels": 3,
10
+ "activation_dropout": 0.0,
11
+ "activation_function": "swish",
12
+ "add_bias_logits": false,
13
+ "add_cross_attention": true,
14
+ "add_final_layer_norm": false,
15
+ "architectures": [
16
+ "MarianMTModel"
17
+ ],
18
+ "attention_dropout": 0.0,
19
+ "bad_words_ids": [
20
+ [
21
+ 67027
22
+ ]
23
+ ],
24
+ "bos_token_id": 0,
25
+ "chunk_size_feed_forward": 0,
26
+ "classif_dropout": 0.0,
27
+ "classifier_dropout": 0.0,
28
+ "cross_attention_hidden_size": null,
29
+ "d_model": 512,
30
+ "decoder_attention_heads": 8,
31
+ "decoder_ffn_dim": 2048,
32
+ "decoder_layerdrop": 0.0,
33
+ "decoder_layers": 6,
34
+ "decoder_start_token_id": 67027,
35
+ "decoder_vocab_size": 67028,
36
+ "diversity_penalty": 0.0,
37
+ "do_sample": false,
38
+ "dropout": 0.1,
39
+ "early_stopping": false,
40
+ "encoder_attention_heads": 8,
41
+ "encoder_ffn_dim": 2048,
42
+ "encoder_layerdrop": 0.0,
43
+ "encoder_layers": 6,
44
+ "encoder_no_repeat_ngram_size": 0,
45
+ "eos_token_id": 0,
46
+ "exponential_decay_length_penalty": null,
47
+ "finetuning_task": null,
48
+ "forced_bos_token_id": null,
49
+ "forced_eos_token_id": 0,
50
+ "id2label": {
51
+ "0": "LABEL_0",
52
+ "1": "LABEL_1",
53
+ "2": "LABEL_2"
54
+ },
55
+ "init_std": 0.02,
56
+ "is_decoder": true,
57
+ "is_encoder_decoder": false,
58
+ "label2id": {
59
+ "LABEL_0": 0,
60
+ "LABEL_1": 1,
61
+ "LABEL_2": 2
62
+ },
63
+ "length_penalty": 1.0,
64
+ "max_length": 512,
65
+ "max_position_embeddings": 512,
66
+ "min_length": 0,
67
+ "model_type": "marian",
68
+ "no_repeat_ngram_size": 0,
69
+ "normalize_before": false,
70
+ "normalize_embedding": false,
71
+ "num_beam_groups": 1,
72
+ "num_beams": 4,
73
+ "num_hidden_layers": 6,
74
+ "num_return_sequences": 1,
75
+ "output_attentions": false,
76
+ "output_hidden_states": false,
77
+ "output_scores": false,
78
+ "pad_token_id": 67027,
79
+ "prefix": null,
80
+ "problem_type": null,
81
+ "pruned_heads": {},
82
+ "remove_invalid_values": false,
83
+ "repetition_penalty": 1.0,
84
+ "return_dict": true,
85
+ "return_dict_in_generate": false,
86
+ "scale_embedding": true,
87
+ "sep_token_id": null,
88
+ "share_encoder_decoder_embeddings": true,
89
+ "static_position_embeddings": true,
90
+ "task_specific_params": null,
91
+ "temperature": 1.0,
92
+ "tf_legacy_loss": false,
93
+ "tie_encoder_decoder": false,
94
+ "tie_word_embeddings": true,
95
+ "tokenizer_class": null,
96
+ "top_k": 50,
97
+ "top_p": 1.0,
98
+ "torch_dtype": null,
99
+ "torchscript": false,
100
+ "transformers_version": "4.23.0.dev0",
101
+ "typical_p": 1.0,
102
+ "use_bfloat16": false,
103
+ "use_cache": true,
104
+ "vocab_size": 67028
105
+ },
106
+ "decoder_start_token_id": 0,
107
+ "encoder": {
108
+ "_name_or_path": "distilbert-base-uncased",
109
+ "activation": "gelu",
110
+ "add_cross_attention": false,
111
+ "architectures": [
112
+ "DistilBertForMaskedLM"
113
+ ],
114
+ "attention_dropout": 0.1,
115
+ "bad_words_ids": null,
116
+ "bos_token_id": null,
117
+ "chunk_size_feed_forward": 0,
118
+ "cross_attention_hidden_size": null,
119
+ "decoder_start_token_id": null,
120
+ "dim": 768,
121
+ "diversity_penalty": 0.0,
122
+ "do_sample": false,
123
+ "dropout": 0.1,
124
+ "early_stopping": false,
125
+ "encoder_no_repeat_ngram_size": 0,
126
+ "eos_token_id": null,
127
+ "exponential_decay_length_penalty": null,
128
+ "finetuning_task": null,
129
+ "forced_bos_token_id": null,
130
+ "forced_eos_token_id": null,
131
+ "hidden_dim": 3072,
132
+ "id2label": {
133
+ "0": "LABEL_0",
134
+ "1": "LABEL_1"
135
+ },
136
+ "initializer_range": 0.02,
137
+ "is_decoder": false,
138
+ "is_encoder_decoder": false,
139
+ "label2id": {
140
+ "LABEL_0": 0,
141
+ "LABEL_1": 1
142
+ },
143
+ "length_penalty": 1.0,
144
+ "max_length": 20,
145
+ "max_position_embeddings": 512,
146
+ "min_length": 0,
147
+ "model_type": "distilbert",
148
+ "n_heads": 12,
149
+ "n_layers": 6,
150
+ "no_repeat_ngram_size": 0,
151
+ "num_beam_groups": 1,
152
+ "num_beams": 1,
153
+ "num_return_sequences": 1,
154
+ "output_attentions": false,
155
+ "output_hidden_states": false,
156
+ "output_scores": false,
157
+ "pad_token_id": 0,
158
+ "prefix": null,
159
+ "problem_type": null,
160
+ "pruned_heads": {},
161
+ "qa_dropout": 0.1,
162
+ "remove_invalid_values": false,
163
+ "repetition_penalty": 1.0,
164
+ "return_dict": true,
165
+ "return_dict_in_generate": false,
166
+ "sep_token_id": null,
167
+ "seq_classif_dropout": 0.2,
168
+ "sinusoidal_pos_embds": false,
169
+ "task_specific_params": null,
170
+ "temperature": 1.0,
171
+ "tf_legacy_loss": false,
172
+ "tie_encoder_decoder": false,
173
+ "tie_weights_": true,
174
+ "tie_word_embeddings": true,
175
+ "tokenizer_class": null,
176
+ "top_k": 50,
177
+ "top_p": 1.0,
178
+ "torch_dtype": null,
179
+ "torchscript": false,
180
+ "transformers_version": "4.23.0.dev0",
181
+ "typical_p": 1.0,
182
+ "use_bfloat16": false,
183
+ "vocab_size": 30522
184
+ },
185
+ "is_encoder_decoder": true,
186
+ "max_length": 512,
187
+ "model_type": "encoder-decoder",
188
+ "pad_token_id": 0,
189
+ "torch_dtype": "float32",
190
+ "transformers_version": null
191
+ }
predictions.txt ADDED
@@ -0,0 +1,1805 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if self. _ leftover :
2
+ if instance is not none :
3
+ strip = [ 1 : - 1 ] [ 1 : ]
4
+ else : : : :
5
+ if self. verbosity > = 1 :
6
+ luptu match = force _ bytes ( options [ 2 : ] )
7
+ def validate ( self, value ) :
8
+ self. can _ read. release ( )
9
+ _ _ contains _ _ = has _ header _ _ contains _ _ _ _ _ _ _ _ _ _ _
10
+ if self. feed ['ttl'] is not none :
11
+ def render ( self, context ) :
12
+ import datetime
13
+ if size : : : : : : : :
14
+ raise typeerror ( " non - integer base36 input. " )
15
+ def size ( self, name ) :
16
+ new _ ip = ip _ str. split (':')
17
+ from decimal import decimal, decimalexception
18
+ except attributeerror : : :
19
+ from django. core import signing
20
+ _ _ y = r'(? p < year > \ d { 4 } ) '
21
+ value = self. dict. pop ( key, default )
22
+ if constant _ time _ compare ( sig, self. signature ( value ) ) :
23
+ return tempdir
24
+ raise templatesyntaxerror ( "'templatetag'statement takes one argument " )
25
+ p _ pattern = pattern. regex. pattern
26
+ if command. verbosity > 1 :
27
+ else : : : :
28
+ styles = instructions. split ( ',')
29
+ if isinstance ( s, promise ) :
30
+ return''. join ( value, self ). resolve _ expression ( value, none )
31
+ if options ['outlog'] :
32
+ raise templatesyntaxerror ( " only'silent'prefix is allowed :'name,'% s '. " % ( e.
33
+ parser. add _ argument ('migration _ name ', nargs ='django to print the self. get _ name, help
34
+ full _ module _ name = package _ name + '.'+ module _ name
35
+ statements = sql _ all ( app _ config, self. style, connection )
36
+ handler. name = name
37
+ return new _ value
38
+ current = getattr ( current, bit )
39
+ self. use _ natural _ foreign _ keys = options. pop ('use _ natural _ primary _ keys ', false )
40
+ pass
41
+ except attributeerror : : :
42
+ def with _ metaclass ( meta, * bases ) :
43
+ commands. update ( { name : find _ commandsg _ name, path ) _ commands ( app _ config, label
44
+ def attach ( self, filename = none, content = none, mimetype = none ) :
45
+ def load _ command _ class ( app _ name, name ) :
46
+ url = quote ( url, safe = b'* \ \ ( ), @ & = { 0 } )
47
+ for ssir in dirs :
48
+ _ fields _ = [ ('_ offset ', _ offset ) ]
49
+ return self. render ( )
50
+ renderer = checkboxfieldrenderer
51
+ field _ name = force _ text ( field _ name, encoding, errors ='replace')
52
+ def initial _ form _ count ( self ) :
53
+ continue
54
+ def _ _ init _ _ ( self, language, deactivate = false ) :
55
+ raise templatesyntaxerror ( " invalid arguments provided to simple _ tag " )
56
+ _ format _ cache [ cache _ key ] = val
57
+ from django. utils. encoding import python _ 2 _ unicode _ compatible
58
+ widget = urlinput
59
+ def _ _ init _ _ ( self, data = none ) :
60
+ signal ='signals '
61
+ return bool ( ret )
62
+ from django. core. exceptions import improperlyconfigured
63
+ else : color _ names [ x ] = {'3': x'3': x }
64
+ return " < deserializedobject : % s. % s ( pk = % s ) > " % ( self. object. _
65
+ parser. add _ argument ('- - extension ','- e ', dest ='extensions ', help ='interactive '
66
+ @ register. filter ( is _ safe = false )
67
+ if response. streaming : : : : : : : : : : : : : : : : : : :
68
+ words = force _ text ( text ). split ( word _ split _ re )
69
+ def parse _ http _ date _ safe ( date ) :
70
+ from xml. lazy import handler
71
+ use _ natural _ foreign _ keys = options. get ('use _ natural _ foreign _ keys')
72
+ return regexurlresolver ( r'^ / ', [ ns _ resolver ] )
73
+ return timedelta ( 0 )
74
+ self. loaddata ( fixture _ labels )
75
+ def _ _ setitem _ _ ( self, key, value ) :
76
+ pass
77
+ except unicodedecodeerror : : :
78
+ self. instance = opts. model ( )
79
+ _ tag _ language = generic _ tag _ language ( params, varargs = varkw, * * kwargs )
80
+ raise commanderror ('unknown app : % s'% exclude )
81
+ self. data = data or { }
82
+ from _ _ future _ _ import unicode _ literals
83
+ if form. cleaned _ data and form. cleaned _ data [ field ] is not none :
84
+ key = self. make _ key ( key, version = version )
85
+ primary _ keys = [ ]
86
+ self. _ populate ( )
87
+ save. alters _ data = true
88
+ if value is not result :
89
+ if command. use _ argparse :
90
+ return attr
91
+ if num > self. _ max _ entries :
92
+ strip _ entities = allow _ lazy ( strip _ entities, six. text _ type )
93
+ return self. strptime ( value, format )
94
+ parser. add _ argument ('- - noinput ', action ='store _ true ', dest ='interactive ',
95
+ from django. core. management. sql import sql _ delete
96
+ self. _ deleted _ form _ indexes. append ( i )
97
+ if args [ - 1 ]! = " silent " :
98
+ self. _ unget _ history = [ ]
99
+ elif not isinstance ( file _ name, six. string _ types ) and is _ file _ name ( file _ name ) :
100
+ form = managementform ( auto _ id = self. auto _ id, prefix = self. prefix, prefix = self. prefix, prefix )
101
+ if isinstance ( receiver, types. functiontype ) :
102
+ def _ _ text _ cast ( self ) :
103
+ else : : : :
104
+ delete ( key, version = version )
105
+ from _ _ future _ _ import unicode _ literals
106
+ def urlizetrc ( value, limit, autoescape = none ) :
107
+ return false
108
+ if self. can _ delete :
109
+ nodelist _ true = parser. parse ('else ', end _ tag )
110
+ from django. utils. safestring import mark _ safe
111
+ def stringformat ( value, arg ) :
112
+ guessed _ filename = params. get ('filename ', none )
113
+ return self. text
114
+ import os
115
+ lazy _ number = lazygettext, six. text _ type, singular = plural, plural = plural, plural _ number = false, allow _
116
+ open _ tags = [ ]
117
+ if name is none :
118
+ self. blocks = list ( defaultdict )
119
+ return none
120
+ clean = lambda self, x : len ( x )
121
+ apps. get _ model ('auth ','permission')
122
+ template _ with _ clear ='% ( clear ) s < label = " % ( clear _ checkbox _ label ) s < / label >
123
+ def invalid _ block _ tag ( self, token, command, parse _ until = none ) :
124
+ except importerror : : : :
125
+ @ property
126
+ def pretty _ name ( name ) :
127
+ while len ( line ) > max _ width :
128
+ pass
129
+ data _ value = data if data is not none else [ ]
130
+ _ value = re. compile ( r'^ ( ( ( 0 - 4 - 4 - d ) - d ] ) ( \.
131
+ setattr ( response, none )
132
+ fk = _ get _ foreign _ key ( parent _ model, model, fk _ name = fk _ name )
133
+ self. unlink ( self. name )
134
+ chunk = stream. read ( max _ header _ size )
135
+ for label in app _ labels :
136
+ fixture. close ( )
137
+ if len ( val1 )! = val2 :
138
+ else : : : :
139
+ return'\ n '. join ( output )
140
+ default _ validators = [ validators. validate _ ipv4 _ address ]
141
+ except ( lookuperror, binascii ) :
142
+ from functools import wraps
143
+ self. urlconf _ module = self. urlconf _ name
144
+ pass
145
+ remaining - = len ( emitting )
146
+ memo = { }
147
+ indent = options. get ('indent')
148
+ def _ _ init _ _ ( self, regex ) :
149
+ help =''
150
+ last = self. data. day / 10
151
+ for location in format _ locations :
152
+ raise valueerror ( " unable to convert % r " % value )
153
+ def recipients ( self ) :
154
+ six. reraise ( unreadableposterror, unreadableposterror ( * e. args, * * kwar
155
+ for fname in filelist :
156
+ return lang _ info [ generic _ lang _ code ]
157
+ return metaclass ('temporary _ class ', none, { } )
158
+ for k, v in dict. items ( ) :
159
+ if options ['plain'] :
160
+ def get _ internal _ wsgi _ application ( ) :
161
+ for lineno, line in enumerate ( content. splitlines ( true ) ) :
162
+ def contains ( source, inst ) :
163
+ def _ _ getitem _ _ ( self, key ) :
164
+ if pathext is none :
165
+ else : :
166
+ _ _ all _ _ = ( stsgiserver ', wsgirequesthandler')
167
+ except exception : : : : : : : : : : : : : : :
168
+ error _ dict. setdefault ( non _ field _ errors, [ ] )
169
+ with open ( old _ file _ name,'rb') as f :
170
+ parser. add _ argument ('- - keep ', action ='store _ false ', dest ='interactive ', default =
171
+ try : : : : : :
172
+ idstring = '.'+ idstring
173
+ return self. filter ( name, func, * * flags )
174
+ if len _ values < 1 :
175
+ pass
176
+ self. file. seek ( 0 )
177
+ if link is not none :
178
+ except stopupload as e : :
179
+ open _ method, mode = self. compression _ formats. get ( cmp _ fmt )
180
+ else : : : :
181
+ from django. forms import form
182
+ if text [ 0 ] in ','output':
183
+ inner _ html ='< ul { id _ attr } > { content } < / ul > '
184
+ def _ get _ size _ from _ underlying _ file ( self ) :
185
+ from django. utils. six. moves. urllib. parse import urlparse
186
+ self. _ stream = stream
187
+ return header ( value,'utf - 8 ', maxline = sys. maxsize ( ). encode ( ) )
188
+ self. seconds = parser. expression ( bp )
189
+ to atext = match. group ( self. arg, none )
190
+ else :
191
+ else : : : :
192
+ super ( jsonresponse, self ). _ _ init _ _ ( content = data, * * kwargs )
193
+ length = int ( arg )
194
+ self. configure _ logger ( name, loggers [ name ], true )
195
+ if start > upto : :
196
+ def compile _ messages ( self, locations ) :
197
+ excluded _ apps. add ( app _ config )
198
+ return self. represent _ paletter ('tag : yaml. doesn, str ( str ), str )
199
+ known _ models = [ ]
200
+ run _ syncdb = false
201
+ class pylibmccache ( basememcachedcache ) :
202
+ import re
203
+ try :
204
+ return b'\ n '. join ( b'\ n '. join ( f. join ( f ) ) )
205
+ return lang _ code
206
+ elif str ( level ) = = level :
207
+ self. _ raw _ ipv6 = false
208
+ default _ validators = [ validators. urlvalidator ( ) ]
209
+ if item ['unique _ id'] is not none :
210
+ return formats. date _ format ( value, arg )
211
+ import warnings
212
+ class referenceslocaltimezone ( tzinfo ) :
213
+ cleaned = self. clean ( value )
214
+ from django. utils import six
215
+ color _ names = ('flush ','c ','latin ','white ','white ','white ', '
216
+ if language _ code not in self. _ regex _ dict :
217
+ def _ make _ parser ( self ) :
218
+ from django. core. exceptions import validationerror
219
+ return instance
220
+ if context _ separator in result :
221
+ iterator = object
222
+ if indent : : : : : :
223
+ def z ( self ) :
224
+ self. current _ app = current _ app
225
+ name = args [ 1 ]
226
+ html _ class _ attr =''
227
+ def _ _ init _ _ ( self ) : _ _ ( self ) :
228
+ from module _ _ future _ _ import unicode _ literals
229
+ import sys
230
+ def static ( request ) :
231
+ from django. utils import six
232
+ class dummycache ( basecache ) :
233
+ if getattr ( e,'moderror ', an'errno')! = 13 :
234
+ from django. conf import settings
235
+ want _ unicode = true
236
+ msgs = self. copy _ plural _ forms ( msgs, locale )
237
+ language = getattr ( request,'language _ code ', get _ language )
238
+ return int ( timeout )
239
+ parser. add _ argument ('- - database ', action ='store _ false ', dest ='database ', default =
240
+ self. _ fname = none
241
+ raise typeerror ( msg )
242
+ if self. cc :
243
+ for k, v in ret. items ( ) :
244
+ return mark _ safe ( bits ). join ( bits )
245
+ djangosafedumper. add _ representer ( decimal. decimal, djangosafeder. represent _ decimal )
246
+ self. error = self. error [ i : - end tag : % r ]
247
+ def _ _ exit _ _ ( self, exc _ type, exc _ value, traceback ) :
248
+ field _ desc ='% s'% ( field _ params. items ( ) for k, v in self. get _ name )
249
+ ctx = hashlib ( hash4 )
250
+ while current _ chunk :
251
+ loop _ dict ['first'] = = 0
252
+ content _ type, content _ type _ extra = content _ type. get ('content - type ', none )
253
+ def pop ( self, k, * args ) :
254
+ def add _ truncate _ text ( self, text, truncate = none ) :
255
+ parser. add _ argument ('- - fake ', action ='store _ false ', dest ='interactive ', default =
256
+ chars ='actiondefghijklmv7jklmnodeghijklmnodeghijklmnodeghijklmghi
257
+ digits = len ( digittuple )
258
+ _ _ version _ _ = " 0. 1 "
259
+ self. max _ expr = max _ expr
260
+ class deserializationerror ( exception ) :
261
+ if autoescape :
262
+ def force _ bytes ( s, encoding ='utf - 8 ', strings _ only = false, errors ='strict') :
263
+ except variabledoesnotexist :
264
+ _ re = re. compile ( r " ^ ( ( (? : \ \ d { 1, 3 } ) ) { 0 }
265
+ data = self. form. initial. get ( self. name, self. data )
266
+ signals. request _ finished. connect ( cache. close )
267
+ return none
268
+ return iter ( self. file )
269
+ prefix = settings. media _ url
270
+ symlink _ path = os. path. join ( tmpinkr, symlinkink ', symlinkinks )
271
+ def render ( self, context ) :
272
+ use _ natural _ primary _ keys = options. get ('use _ natural _ primary _ keys')
273
+ def inner ( self, * args ) :
274
+ if':'not in ip _ str and ip _ str and len (':')! = 7 :
275
+ parser. add _ argument ('args ', metavar ='* ', nargs ='* ', help = '
276
+ if not django _ po. exists ( ) :
277
+ now = datetime. now ( )
278
+ kw ['tzinfo'] = tzinfo
279
+ raise validationerror ( self. error _ messages ['list'], code ='list')
280
+ class adima mailhandler ( logging. handler ) :
281
+ t = select _ template ( template _ name, dirs )
282
+ if value in self. empty _ values and self. required :
283
+ except typeerror : : :
284
+ from io import bytesio
285
+ tell = property ( lambda self : self. file. tell )
286
+ continue
287
+ parser. delete _ first _ token ( )
288
+ class command ( value ) :
289
+ import fcntl
290
+ if can _ fail :
291
+ if template _ source _ loaders is none :
292
+ callback = pattern. _ callback
293
+ call _ command ('loaddata ', * * options )
294
+ if value is none :
295
+ return int ( value )
296
+ elif'='in part :
297
+ compare _ to = [ var. resolve ( context, true ) for var in self. match ]
298
+ def to _ python ( self, value ) :
299
+ elif isinstance ( value, decimal. decimal, float, six. integer _ types ) :
300
+ @ contextlib. contextmanager
301
+ if event. path. endswith ( '. mo') :
302
+ if node. must _ be _ first and nodelist :
303
+ return false
304
+ self. auto _ id = auto _ id
305
+ def rss _ attributes ( self ) :
306
+ code = ungettext _ lazy ('ensure this value has at % ( limit _ value ) d % ( it hasattr ( show _
307
+ if six. py3 :
308
+ for k, v in six. iteritems ( self ) :
309
+ pass
310
+ def b64 _ hmac ( salt, value, key ) :
311
+ del _ active. value
312
+ for basedir in basedirs :
313
+ else :
314
+ full _ path = self. path ( name )
315
+ if not self. form. is _ bound :
316
+ del self. dicts [ - 1 ]
317
+ self. reader _ leaves ( )
318
+ _ re = re. compile ( r'^ ( ( ( (? : [ a - z0 - 9 - 9 ] (? : [
319
+ class widget ( six. with _ metaclass ( mediadefiningclass ) ) :
320
+ get _ language = lambda : settings. language _ code
321
+ from django. utils. six. moves. urllib. parse import urlsplit, urlunsplit
322
+ from email. mime. text import mimetext
323
+ self. fed = [ ]
324
+ class minlengthvalidator ( basevalidator ) :
325
+ self. lookups = none
326
+ raise typeerror ( " if the flags is set be a normal expression string. " )
327
+ return default
328
+ attrs. get ('step ', none ) = value
329
+ import sys
330
+ break
331
+ value =''
332
+ to _ delete. add ( model )
333
+ file _, _, = imp. find _ module ( module _ name, [ entry ] )
334
+ self. _ cache = caches. setdefault ( name, { } )
335
+ html4 _ singlets = ('signature ','col ','warning ','warning ','input ','base '
336
+ if os. path. isdir ( template _ dir ) :
337
+ def make _ key ( self, key, version = none ) :
338
+ return self. _ _ name
339
+ if not match :
340
+ def to _ python ( self, value ) :
341
+ def lower ( value ) :
342
+ ip = ip ( )
343
+ connection = connections [ database ]
344
+ def _ format _ value ( self, value ) :
345
+ parse _ header ( boundary ('ascii') ) _ parse _ header ( boundary _
346
+ initial = self. initial. get ( name, self. initial )
347
+ from django. utils import six
348
+ if data in self. children :
349
+ elif isinstance ( timezone, six. string _ types ) and pytz is not none :
350
+ @ register. filter ( is _ safe = true )
351
+ status _ code = 200
352
+ if i > = self. initial _ form _ count ( ) and not form. has _ changed ( ) :
353
+ return b [ 0 ]. get ( )
354
+ if is _ ignored ( file _ path, self. ignore _ patterns ) :
355
+ if app _ config. models _ module is none or app _ config in excluded _ apps :
356
+ return code
357
+ chunks = ( self, other, )
358
+ else : : : :
359
+ message = e
360
+ self. _ _ name _ _ = ('formset ', max _ false = none )
361
+ rest = value
362
+ raise suspiciousfileoperation ( " tried access to'% s'an. " % name )
363
+ hidden _ widget = splithiddatetimewidget
364
+ for node in compiled _ parent. nodelist :
365
+ if isinstance ( template _ name, ( list, tuple ) ) :
366
+ def get _ str _ from _ wsgi ( environ, key, default ) :
367
+ model. check ( * * kwargs ) ( apps. get _ models ( model. check ( * * kwargs ) )
368
+ def initial _ form _ count ( self ) :
369
+ def j ( self ) :
370
+ pass
371
+ if format not in _ serializers :
372
+ tzinfo = int ( len ( tzinfo ) > 3 : 3 )
373
+ return false
374
+ if not content _ type :
375
+ elif cwords [ 0 ] in subcommand! ='help':
376
+ return ip _ str
377
+ else : : : :
378
+ class httprespon hmorbidden ( httpresponse ) :
379
+ return
380
+ nodes. append ( self )
381
+ if instance is none :
382
+ if ip _ str. split (':')! = hextet
383
+ for app _ dir in app _ dirs :
384
+ warning = 20
385
+ os. chdir ( our _ home _ dir )
386
+ config ['mailhost'] = self. as _ tuple ( config ['mailhost'] )
387
+ obj. widgets = copy. deepcopy ( self. widgets )
388
+ yield buf. read ( )
389
+ if isinstance ( self. regex, six. string _ types ) :
390
+ if hasattr ( timezone,'normalize') :
391
+ from django. utils import termcolors
392
+ except ( ssl. sserror, smtplib. smtpverver ) :
393
+ self. stdout. write ('ignoring file % s in % s \ n'% filename, dirpath )
394
+ default _ settings = module _ to _ dict ( global _ settings )
395
+ self. importer ( used )
396
+ def decorating _ function ( user _ function ) :
397
+ pass
398
+ key = self. to _ field _ name if key else'pk '
399
+ cache [ misses ] + = 1
400
+ return false
401
+ from django. utils import six
402
+ if self. is _ reversed :
403
+ for line in text. splitlines ( true ) :
404
+ return value
405
+ return self. forms [ index ]
406
+ if isinstance ( path, six. string _ types ) :
407
+ all _ models = [ ]
408
+ truncate _ text = self. add _ truncation _ text ('', truncate )
409
+ help = " prints the sql statements for the named migration. "
410
+ initial = [ ]
411
+ value = b''. replace ( arg,'' )
412
+ httpd = httpd _ cls ( server _ address, wsgirequesthandler, ipv6 = ipv6 )
413
+ _ urllib _ request _ moved _ attributes = [ movedattribute ( " url. ", " urllib ",
414
+ def empty _ form ( self ) :
415
+ def handle ( self, * args, * * options ) :
416
+ other _ dict = first + args
417
+ if params ['filename'] :
418
+ try : : : : : :
419
+ raise templatesyntaxerror ( "'% s'is not a valid tag library : % s " % ( taglib, e )
420
+ _ translations [ language ] = djangotranslation ( language )
421
+ c = subject [ i ]
422
+ return ifchangednode ( nodelist _ true, nodelist _ false, * values )
423
+ from django. core. management. base import basecommand, commanderror
424
+ _ version = " 0.sy "
425
+ finally : : : : : :
426
+ guessed _ path = os. path. join ( tempdir, guessed _ filename )
427
+ else : : : :
428
+ value = '. '. join ( reversed ( parts ) )
429
+ def _ _ init _ _ ( self ) :
430
+ class rssen0end1feed ( rssfeed ) :
431
+ new _ filenames. append ( os. path. join ( dirpath, filename ) )
432
+ parser. add _ argument ('- v ', action ='store _ false ', dest ='interactive ', default = default _
433
+ urlconf = settings. root _ urlconf
434
+ return ['' ], [ ]
435
+ else : : : :
436
+ continue
437
+ def dec ( func ) :
438
+ if old _ attr is none :
439
+ name, val = forbid _ multi _ line _ headers ( name, val, self. encoding )
440
+ class input ( widget ) :
441
+ handler. startelement ( " channel ", self. root _ attributes ( ) )
442
+ opts = ( s. get ( s ) for s in opt _ dict )
443
+ warnings. warn ( " django. utils. tzinfo. fixedoffset will be removed in django 1. 9. ",
444
+ self. fixture _ object _ count = 0
445
+ extra _ classes. add ( self. form. required _ css _ class )
446
+ from django. utils import six
447
+ filelist = int ( filelist, file. date ( filem _ entries = int ( self. _ cull _ frequency ) ) )
448
+ try : : : : : :
449
+ if os. path. exists ( new _ path ) :
450
+ class lexer ( object ) :
451
+ error _ messages = opts. error _ messages [ non _ field _ errors ]
452
+ self. _ table = table table
453
+ return _ trans. to _ locale ( language )
454
+ tempdir = tempfile. mkt ( prefix, suffix ='_ extract')
455
+ tt = ( 3006, [ : - tt ] )
456
+ except exception as e : :
457
+ def _ _ iter _ _ ( self ) :
458
+ else : : : :
459
+ os. chmod ( full _ path, self. file _ permissions _ mode )
460
+ for fname in glob. glob1 ( self. _ dir, none ) :
461
+ for log in existing : : : :
462
+ for app _ label in app _ labels :
463
+ return fastcgi _ help ( " invalid * of host, port, socket. " )
464
+ def as _ widget ( self, widget = none, attrs = none, only _ initial = false ) :
465
+ return
466
+ single _ brace _ end ='} '
467
+ @ options. cache. cache _ header. % s. % s ( key _ prefix, self. name, key )
468
+ options = conditional _ escape ( checkbox _ id )
469
+ else : : : :
470
+ if self. interactive :
471
+ yield safe _ join ( template _ dir, template _ name )
472
+ if delta < 0 :
473
+ def error ( self, message ) :
474
+ return template _ name
475
+ def update _ watch ( sender = none, * * kwargs ) :
476
+ else : else :
477
+ val1 = self. var2. resolve ( context, true )
478
+ class nullbooleanselect ( select ) :
479
+ if not isinstance ( value, bytes, six. text _ type ) :
480
+ parser. add _ argument ('- - noinput ', action ='store _ false ', help ='interactive ', default
481
+ return default
482
+ try : : : : : :
483
+ msguniq _ options = ['- - to - code = utf - 8']
484
+ if self. locale _ paths :
485
+ version = get _ complete _ version ( version ) version
486
+ strip _ prefix = lambda s : ['u'] if s : self. strip _ prefix ( ) is not none else s : '
487
+ ns = " http : / / w3. interactive / one / atom "
488
+ else : : :
489
+ app _ dir = os. path. join ( app _ config. path,'fixtures')
490
+ from gzip import gzipfile
491
+ self. active _ writers = 0
492
+ raise valueerror ( " - base36 input input. " )
493
+ def _ _ eq _ _ ( self ) :
494
+ try : : : : : :
495
+ tag, self. lasttag = match. group ( 1 ). lower ( )
496
+ else : : : :
497
+ secret = settings. secret _ key
498
+ project _ name, target = options. get ('name ', { } )
499
+ logger = logging. getlogger ('django. request')
500
+ tmpdir = tempfile. mktp ( )
501
+ def handle _ m2m ( value ) :
502
+ except importerror as e : except :
503
+ self. stdout. write ( " no forms false. " )
504
+ movedmodule ( " _ thread ", " thread " ). add _ thread ( thread, " thread
505
+ locale = options. get ('locale')
506
+ self. cookies [ key ] = cookie _ date ('enter a list not a to. get ( value ) )
507
+ if isinstance ( f, models. filefield ) :
508
+ os. unlink ( work _ file )
509
+ _ _ re = re. compile ( r " ^ \ s * blocktrans ( ( ( ( (? : [ ^'] *
510
+ import time as _ time
511
+ raise commanderror ( " django doesn't tell be syntax to use your sql statements, \ n " " \ n " )
512
+ if self. verbosity > 0 :
513
+ def delete ( self, key, version = none ) :
514
+ if representative is none :
515
+ self. language = language
516
+ callable = callable
517
+ iteritems = _ iteritems
518
+ continue
519
+ sy escaped = " % 02d " % dt. year
520
+ m = re. match ( options. match ('addrport ', options ) )
521
+ if isinstance ( template, ( list, tuple ) ) :
522
+ def _ _ exit _ _ ( self, exc _ type, exc _ value, tb ) :
523
+ yield " from _ _ future _ _ import unicode _ literals "
524
+ try : : : : : :
525
+ if timeout is none :
526
+ def end _ serialization ( self ) :
527
+ if att _ name = ='id'and extra _ params = {'primary _ key': true }
528
+ try : : : : : :
529
+ parser. add _ argument ('- - plain ', action ='store _ true ', dest ='interactive ', default =
530
+ class disallowedredirect ( suspiciousoperation ) :
531
+ else : : : :
532
+ raise commanderror ( " you must provide at at least one app label is warnings - - empty. " )
533
+ i = 0
534
+ if value and hasattr ( value,'url') :
535
+ self. validate _ key ( key )
536
+ if i > = 0 :
537
+ elif indexes [ column _ name ] ['unique'] :
538
+ else : : : :
539
+ assert not isinstance ( to, six. string _ types ),'" to " argument must be a list or tuple '
540
+ wsgiserver = module. wsgiserver
541
+ def _ createdir ( self ) :
542
+ if message _ context :
543
+ else : : : :
544
+ sites = [ ]
545
+ def set ( self, key, value, timeout = default _ timeout, version = none ) :
546
+ def setlistdefault ( self, key, default _ list = none ) :
547
+ self. widgetchoice = self. choices
548
+ trim _ whitespace _ re = re. compile ( r'\ s * \ n \ s *')
549
+ input _ type ='text'' text '
550
+ def _ _ getinitargs _ _ ( self ) :
551
+ raise
552
+ location ='/ /'+ self. get _ full _ path ( )
553
+ msgs = msgs. decode ('utf - 8') msgs
554
+ try : : : : : :
555
+ from django. utils import six
556
+ raise valueerror ('unable to configure handler'''% r : % s'% ( name, e ) )
557
+ with self. mutex :
558
+ from django. middleware. csrf import get _ token
559
+ except oserror as e : except :
560
+ value = self. make _ bytes ( value )
561
+ queryset = self. model. _ default _ manager
562
+ if settings. use _ tz and value is not none and value is not timezone. is _ naive ( value ) :
563
+ with transaction. atomic ( using = connection. features. can _ rollback _ ddl ) :
564
+ if serializers is none :
565
+ return self. find _ template _ cache [ key ]
566
+ def flatten ( self ) :
567
+ def is _ valid _ ipv6 _ address ( ip _ str ) :
568
+ pass
569
+ url = none
570
+ self. _ request _ middleware = none
571
+ importlib
572
+ self. version = params. get ('version ', 1 )
573
+ if not isinstance ( index, six. integer _ types, tuple ) :
574
+ @ register. filter ( is _ safe = false )
575
+ members = [ : ] for member in members ( self. _ archive. getmeme ( ) for member in self. _ archive. getme
576
+ return obj
577
+ return list ( urlsplit ( url ) )
578
+ else : : : :
579
+ raise attributeerror ( " % s could not be import " % self. name )
580
+ if self. verbosity > 1 :
581
+ def validate ( self, value ) :
582
+ self. _ cache. set ( key, value, self. get _ backend _ timeout ( timeout ) )
583
+ from django. utils. six. moves import zip
584
+ self. _ setup ( )
585
+ builtins = [ ]
586
+ except valueerror : : :
587
+ daemon _ kwargs ['out _ log'] = options ['out domain']
588
+ return
589
+ min _ num _ form _ count ='min _ num _ forms'_ _ _ _ _
590
+ validate _ compile _ integer _ list = regexvalidator ( compile _ split _ list _ re, re. compile (
591
+ def is _ checked ( self ) :
592
+ return self. management _ form. cleaned _ data [ initial _ form _ count ]
593
+ pass
594
+ for closable in self. _ closable _ objects :
595
+ def _ _ init _ _ ( self, * args, * * kwargs ) :
596
+ from django. forms. fields import field, filefield
597
+ self. file. close ( )
598
+ parts = viewname. split (':')
599
+ raise validationerror ( ungettext ('ascii ', params ='min'), params = {'invalid '
600
+ def get _ json _ data ( self, escape _ html = false ) :
601
+ maxsize = int ( 1 < - 1 )
602
+ yield''
603
+ result. parent = self
604
+ _ b ='\ r '. replace ( message,'\ r \ n ','\ r'). replace ('\ r '
605
+ return ( 1 < - 1 )
606
+ def _ populate ( self ) :
607
+ if not token. contents :
608
+ from django. core import checks
609
+ if len ( parts ) > 1 and parts [ - 1 ] in self. compression _ formats :
610
+ newline = b'\ n '
611
+ def widget _ attrs ( self, widget ) :
612
+ pot _ path = os. path. join ( os. path. join ( self. domain ) )
613
+ for field, error _ list in error. items ( ) :
614
+ def _ set _ regex ( self, regex ) :
615
+ if dirname and not os. path. exists ( dirname ) :
616
+ output _ transaction = true
617
+ return force _ text ( singular, plural, number )
618
+ def add _ prefix ( self, field _ name ) :
619
+ return false
620
+ try : : : : : :
621
+ original _ path = os. path. join ( tmpdir, " original " )
622
+ in _ index = index < 64 if is _ reversed else 2
623
+ lexer = lexer _ class ( template _ string, origin )
624
+ self. _ non _ form _ errors = self. error _ class ( )
625
+ if hasattr ( test _ runner _ class, " add _ arguments ", false ) : _
626
+ def _ _ repr _ _ ( self ) :
627
+ if var. endswith ( '.') :
628
+ import json
629
+ options = [ opt [ 0 ] for opt in prev _ opts ]
630
+ fs _ encoding = sys. getfilescount if syfigurncoting if fs. getfigurncoder ( )
631
+ if isinstance ( message, validationerror ) :
632
+ def _ _ init _ _ ( self, stream _ or _ string, * * options ) :
633
+ return _ import _ module ( self. mod )
634
+ continue
635
+ if isinstance ( slots, str ) :
636
+ self. _ _ starttag _ text = none
637
+ for byte in buf. get ( bytes ) :
638
+ raise unrecozedarchiveformat ( " file object not a archive format. " )
639
+ self. options. update ( {'use _ decimal': false } )
640
+ def validate ( self, value ) :
641
+ fail _ message ='created '
642
+ states = { } [ : tok ], to _ python ('punct ", false, attrs ) : [ { } ]
643
+ for item in values :
644
+ def utcoffset ( self, dt ) :
645
+ leave _ locale _ alone = false
646
+ from _ _ future _ _ import unicode _ literals
647
+ def _ _ str _ _ ( self ) :
648
+ end = rawdata [ k : endpos ]. strip ( )
649
+ zipfile. zipfile. read ( self, self. namelist [ 0 ] )
650
+ def render ( self, context ) :
651
+ confirm ='please enter'or " yes " or " no " : '
652
+ return unicode ( " \ \ 34 ", " \ \ 92 ", " \ \ 92 " ). replace ('\ doc
653
+ widget. is _ localized = self. is _ localized
654
+ klass. deconstruct = deconstruct
655
+ if extend : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
656
+ connection = connections [ options ['database'] ]
657
+ try : : : : : :
658
+ warnings. warn ( " no fixture named'% s'found. " % fixture _ name )
659
+ obj = self. data. replace ( month, day = 1 ). replace ( 1 )
660
+ if self. lookups is not none :
661
+ init _ path = os. path. join ( migrations _ directory, " _ _ init _ _. py " )
662
+ return value
663
+ value = timezone. normalize ( value )
664
+ @ property
665
+ subject = self. subject
666
+ return'0 '
667
+ super ( loaderorigin, self ). _ _ init _ _ ( display _ name )
668
+ if pos > = last :
669
+ from django. conf import settings
670
+ def normalize ( pattern ) :
671
+ import operator
672
+ finally : : : : : :
673
+ def tzname ( self, dt ) :
674
+ if self. allow _ files :
675
+ if not custom _ sql : :
676
+ msg = safemimemultipart ( _ subtype, encoding = encoding )
677
+ if field in self. cleaned _ data :
678
+ if args and kwargs :
679
+ builtins. append ( import _ library ( module ) )
680
+ return self. compress ( [ ] )
681
+ def parse _ endtag ( self, i ) :
682
+ import types
683
+ def m ( self ) :
684
+ self. creation _ counter = field. creation _ counter
685
+ attrs = {'model': model }
686
+ except importerror, attributeerror as e :
687
+ def _ _ getitem _ _ ( self, key ) :
688
+ if'='in x :
689
+ def tell ( self ) :
690
+ raise attributeerror ( " this querydict instance is immutable " )
691
+ @ python _ 2 _ unicode _ compatible
692
+ find = b': _ (') if p. find (':') > 0 :
693
+ flags = 0
694
+ target _ app _ labels _ only = false
695
+ class ifchangednode ( node ) :
696
+ obj = image. open ( file ). fail ( )
697
+ if self. selected _ fields is none or field. attname in self. selected _ fields :
698
+ name = self. split _ leading _ dir ( name ) [ 0 ]
699
+ from django. utils import six
700
+ except attributeerror : : :
701
+ return arg
702
+ return _ trans. get _ language _ from _ path ( path )
703
+ if db. settings _ dic. get ('atomic _ request') and db. alias not in non _ atomic _ request :
704
+ class inlineforrenkeyfield ( field ) :
705
+ if is _ aware ( o ) :
706
+ try : : : : : :
707
+ self. years = [ this _ year ]
708
+ for refto, refs in references. items ( ) :
709
+ from django. core. exceptions import appregistrynotready
710
+ settings. format _ module _ path = settings. format _ module _ path
711
+ if ch in'*? +':
712
+ try : : : : : :
713
+ else : : : :
714
+ if sent : : : : : : : : : : : : : : : : : : : : : : : : : :
715
+ http _ cookies. simplecookie ( value _ encode (';'). value ( ) )
716
+ nodelist _ empty = parser. parse ('endfor ', )
717
+ except ( keyerror, attributeerror ) as exc :
718
+ class objectdoesnotexist ( exception ) :
719
+ @ register. filter ( is _ safe = false )
720
+ return iri
721
+ if environ. get ( key, default ) :
722
+ def _ _ init _ _ ( self, lexer ) :
723
+ return time. mktime ( self. data. timetuple ( ) )
724
+ try : : : : : :
725
+ safe _ data = { }
726
+ import stat
727
+ def write _ items ( self, handler ) :
728
+ wrap = allow _ lazy ( wrap, six. text _ type )
729
+ from _ _ future _ _ import unicode _ literals
730
+ for path in paths :
731
+ sys. stdout. write ( self. main _ help _ text ( ) +'\ n')
732
+ def _ _ init _ _ ( self ) :
733
+ import sys
734
+ def ngettext ( context, singular, plural, number ) :
735
+ def reload ( self ) :
736
+ from django. utils. module _ loading import import _ string
737
+ else : : : :
738
+ continue
739
+ import warnings
740
+ if exp is not none and exp < time. time ( ) :
741
+ if t is not none :
742
+ time _ str = time _ str. decode ('utf - 8')
743
+ field _ notes. append ( " field renamed because of name conflicts. " )
744
+ super ( querydict, self ). _ _ setitem _ _ ( key, value )
745
+ def write _ message ( self, message ) :
746
+ def list ( self ) :
747
+ return mark _ safe ('\ n '. join ( output ) )
748
+ super ( localeregexurlresolver, self ). _ _ init _ _ name, app _ name, namespace
749
+ var _ obj = none
750
+ response = middleware. process _ template _ response ( request, response )
751
+ loop _ dict ['counter'] = i + 1
752
+ return size
753
+ is _ a _ tty = sys. stdout,'isatty'and sys. stdout. isaosity
754
+ if isinstance ( offset, timedelta ) :
755
+ self. _ assert _ mutable ( )
756
+ return int ( values [ 0 ] )
757
+ import codecs
758
+ try : : : : : :
759
+ @ register. tag
760
+ result. setformat ( formatter )
761
+ memo [ id ( self ) ] = result
762
+ other = other. _ _ cast ( )
763
+ if isinstance ( other, promise ) :
764
+ else : : : :
765
+ self. _ cull ( )
766
+ e. args = ( " problem installing fixtures : % s " % e )
767
+ os. makedirs ( directory )
768
+ raise overflowerror ('dklen too large')
769
+ return clean _ ipv6 _ address ( value, self. unpack _ ipv4 )
770
+ from importlib import import _ module
771
+ parser. add _ argument ('- - pks ', action ='store _ false ', dest ='interactive ', default _
772
+ if header _ end = = 1 :
773
+ def b ( s ) :
774
+ g = generator. bytesgenerator ( fp, mangle _ from _ = false )
775
+ import unicodedata
776
+ if t. token _ type = = token _ block :
777
+ if len ( self. namelist ( ) )! = 1 :
778
+ else : : : :
779
+ for port in extend :
780
+ if url :
781
+ from collections import defaultdict
782
+ now = datetime. datetime ( now. year, now. month, now. day )
783
+ while i < len ( subject ) and subject [ i ]! = c :
784
+ self. _ changed _ data = [ ]
785
+ yield parse _ boundary _ stream ( sub _ stream, 1024 )
786
+ return value. replace ( tzinfo as timezone )
787
+ def _ _ init _ _ ( self, cyclevars, variable _ name = none, silent = false ) :
788
+ if six. py3 : : : :
789
+ return value. strftime ( format )
790
+ daemon _ kwargs ['errlog'] = options ['errlog']
791
+ for migration _ name in migration _ names :
792
+ from itertools import chain
793
+ return obj _ dict
794
+ buffer _ = line
795
+ raise valueerror ( " key'% s'not found " % key )
796
+ if self. _ request _ middleware is none :
797
+ def render ( self, name, value, attrs = none ) :
798
+ type = raw
799
+ type = file
800
+ tok ='"'+ wrapping +'" '
801
+ condition = templateifparser ( parser, bits ). parse ( )
802
+ return apps. get _ model ( model _ identifier )
803
+ return loader. get _ template ( template )
804
+ def catalog ( ) :
805
+ def handle _ data ( self, d ) :
806
+ def lock ( f, flags ) :
807
+ return force _ text ( template _ string )
808
+ if not os. path. exists ( potfile ) :
809
+ self. active _ writers - = 1
810
+ if hasattr ( self,'_ coerce') :
811
+ return _ trans. templatize ( src, origin )
812
+ def compile _ string ( template _ string, origin ) :
813
+ try : : : : : :
814
+ raise notimplementederror ('subclasses must implement this method.')
815
+ @ wraps ( func )
816
+ return value. replace ('\ xa0 ','\ x xc')
817
+ request _ middleware. append ( request _ instance. process _ request )
818
+ if not boundary or cgi. valid _ boundary ( boundary ) :
819
+ val = list ( val )
820
+ except valueerror : : :
821
+ import re
822
+ attrs = allow _ lazy ( capfirst, six. text _ type )
823
+ def eval ( self, context ) :
824
+ from django. utils. six import stringio
825
+ self. _ size = size
826
+ errors = [ ]
827
+ if'error _ messages'in kwargs :
828
+ self. _ add _ local _ translations ( )
829
+ class node ( object ) :
830
+ if os. path. sep in fixture _ name :
831
+ def _ _ init _ _ ( self, tokens ) :
832
+ if primary _ keys :
833
+ def _ _ mod _ _ ( self, rhs ) :
834
+ except socket. error as e : :
835
+ self. _ _ dict _ _ ['_ setupfunc'] = func
836
+ data = none
837
+ from django. utils. text import get _ valid _ filename
838
+ elif auto _ id :
839
+ return self. get _ json _ data ( escape _ html )
840
+ self. nodelist _ empty = nodelist ( )
841
+ except validationerror as e : except :
842
+ app ='django '
843
+ try : : : : : :
844
+ for char in self. add _ truncation _ text ('', truncate ) :
845
+ etags = etag _ match. findall ( etag _ str )
846
+ if field _ type = ='autofield (':
847
+ c = simplecookie ( )
848
+ attrs = {'model': smart _ text ( obj. _ meta ) }
849
+ return ip _ str. split ( ) [ 1 ]
850
+ def flatten _ result ( source ) :
851
+ if request. _ post _ parse _ error :
852
+ except keyerror :
853
+ for f in opts. fields :
854
+ def _ _ init _ _ ( self ) : _ _ ('^ ', none ) : _ (? : _
855
+ def incr ( self, key, delta = 1, version = none ) :
856
+ if type ( result ) in ( convertingdict, convertinglist, convertingtuple ) :
857
+ message ='% s. _ _ name _ _ ( )
858
+ comment _ lineno _ cache = none
859
+ else : : : :
860
+ result = avoid _ wrapping ( name % count )
861
+ values = [ ]
862
+ if hasattr ( field. rel. to. _ default _ manager,'get _ by _ natural _ key') :
863
+ self. dict = ordereddict ( ( x, none ) for x in iterator ) :
864
+ else : : : :
865
+ @ register. tag ('filter')
866
+ def _ samefile ( src, dst ) :
867
+ requires _ system _ checks = false
868
+ elif ( six. py3 if not hasattr ( message,'message') and not hasattr ( message,'code
869
+ except keyerror : : :
870
+ try : : : : : :
871
+ try : : : : : :
872
+ m = int ( d ) - d
873
+ def make _ key ( self, key, version = none ) :
874
+ filemsg ='file % s,'% origin
875
+ if hasattr ( cls, k ) :
876
+ else : : : :
877
+ raise templatesyntaxerror ( " back called without some previous previous parser " )
878
+ for field _ name in self. fields :
879
+ self. _ upload _ handlers = upload _ handlers
880
+ if options ['no _ color'] is not none :
881
+ if self. instance. pk is not none :
882
+ try : : : : : :
883
+ return klass
884
+ value = [ ]
885
+ try : : : : : :
886
+ import time
887
+ raise noreversematch ( " % s is not a registered namespace " % key )
888
+ nodelist. append ( node )
889
+ error _ messages ['invalid'] = error _ message
890
+ if options. traceback or e is not commanderror :
891
+ return self. _ choices
892
+ try : : : : : :
893
+ try : : : : : :
894
+ try : : : : : :
895
+ to _ python = self. _ get _ to _ python ( pk _ field )
896
+ self. varlist = varlist
897
+ return encoding
898
+ if now = = true and not isinstance ( now, datetime. datetime ) :
899
+ if token. contents = ='else': :
900
+ return results
901
+ pluralmatch = plural _ re. match ( t. contents )
902
+ for middleware _ method in self. _ exception _ middleware :
903
+ from xml. lazy. langutils import xmlgenerator
904
+ if fields :
905
+ for c in reversed ( self. _ _ class _ _. _ _ mro _ _ ) :
906
+ from django. utils import six
907
+ return
908
+ return'< page % s of % s >'% ( self. number, self. paginator. num _ pages )
909
+ else : : : :
910
+ default _ error _ messages = {'invalid': _ ('enter a number.'), } _
911
+ _ called _ from _ command _ line = false
912
+ if opts. model :
913
+ def copy ( self ) :
914
+ collect = [ ]
915
+ if len ( value )! = 1 :
916
+ self. blocks = dict ( ( n. get _ nodes _ by _ type ( n, nodelist. get _ nodes _ type ( n
917
+ text =''
918
+ old _ attr = name
919
+ ch, escaped = next ( pattern _ iter )
920
+ except ( attributeerror, unsupportedoperation ) :
921
+ raise validationerror ( self. error _ messages ['invalid _ date'], code ='invalid _ date')
922
+ def _ _ init _ _ ( self, request, template, context = none, content _ type = none, content _ type = none,
923
+ if self. field. cache _ choices :
924
+ def fix _ location _ header ( request, response ) :
925
+ del attr
926
+ pk _ key = " % s - % s " % ( i )
927
+ from _ _ future _ _ import unicode _ literals
928
+ from _ _ future _ _ import unicode _ literals
929
+ def widget _ attrs ( self, widget ) :
930
+ value = self. to _ python ( value ). strip ( )
931
+ yield line
932
+ self. file. write ( raw _ data )
933
+ self. empty _ label = empty _ label
934
+ templateloader = import _ string ( loader )
935
+ sql = connection. creation. sql _ for _ pending _ references ( model, style, sql _ style, sql _ sql _ references = { }
936
+ if response. streaming : : : : : : : : : : : : : : : : : : :
937
+ output. insert ( force _ text ( top _ errors ) ) _ output
938
+ @ register. filter ( is _ safe = true )
939
+ raise improperlyconfigured ('loader does not def a " load _ template " callable _ templateer')
940
+ new _ value. append ( self. coerce ( choice ) )
941
+ for i in range ( 0, self. total _ form _ count ( ) ) :
942
+ raise noreversematch ( " reverse for'% s'with arguments'% s ', keyword )
943
+ except commanderror : : : :
944
+ table _ output. append ('\ n '. join ( field _ output ) )
945
+ response = self. get _ response ( request )
946
+ import django. core. checks. compatibility. django _ 1 _ 7 _ 0
947
+ escaped = true
948
+ self. unclosed _ block _ tag ( [ endtag ] )
949
+ def _ _ init _ _ ( self, cmd, * * kwargs ) :
950
+ if len ( list _ ) = = 0 :
951
+ return value
952
+ try : : : : : :
953
+ max _ width = width if ( line. endswith ( b'\ n') and width + 1 else width )
954
+ result = getattr ( t, translation _ function ) ( eol _ message )
955
+ import hmac
956
+ from django. utils import six, lru _ cache
957
+ models = app _ config. get _ models ( include _ auto _ created = true )
958
+ raise templatedoesnotexist ( not _ found [ : ] )
959
+ return false
960
+ import _ library, library. _ _ all _ _ = ('template ','requestcontext ', compile _ string')
961
+ def conditional _ escape ( text ) :
962
+ if not isinstance ( candidate, six. string _ types ) :
963
+ comment = [ ]
964
+ emit _ post _ migrate _ signal ( all _ models, interactive, database )
965
+ if ('% s % s'% ( line, ( table _ output - 1 ) ) :
966
+ if ch = = '?': : :
967
+ self. inverse _ match = inverse _ match
968
+ self. _ pk _ field, pk = self. model. _ meta. pk
969
+ super ( error, self ). _ _ init _ _ ( error, * args, * * kwargs )
970
+ if token. token _ type = = 0 :
971
+ if'forloop'in context :
972
+ class boundaryiter ( six. iterator ) :
973
+ self. path _ info = path _ info
974
+ def clean ( self, value ) :
975
+ self. work _ file = ('- - key ', none )
976
+ if html : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
977
+ self. is _ reversed = is _ reversed
978
+ def total _ ordering ( cls ) :
979
+ return''
980
+ final _ output. append ('- - - : references or non _ tables : ', none )
981
+ return [ ( i, i ) for i in reversed ( i, 1 ) ]
982
+ self. _ clean _ form ( )
983
+ for handler in handlers :
984
+ if imatch :
985
+ return none
986
+ factor = 0
987
+ from django. core. management. sql import sql _ custom
988
+ l = len ( tokens )
989
+ if fk _ name :
990
+ except htmlparseerror :
991
+ view _ name = callback. get ( )
992
+ def _ _ setattr _ _ ( self, name, value ) :
993
+ self. use _ l10n = use _ l10n
994
+ match = kwarg _ re. match ( bits [ 0 ] )
995
+ for hook in sys. path _ options :
996
+ intrans = false
997
+ warnings. warn ( warn _ msg, translatorcommentwarning )
998
+ def compress ( self, data _ list ) :
999
+ class viewdoesnotexist ( exception ) :
1000
+ final _ output. extend ( output )
1001
+ requires _ system _ checks = false
1002
+ else : : :
1003
+ if self. choices :
1004
+ callback, param _ dict = resolver. resolve _ error _ handler ( status _ code )
1005
+ def render ( self ) :
1006
+ return data
1007
+ else : : : :
1008
+ level = config. pop ('level ', none )
1009
+ res, args = flatten _ result ( item )
1010
+ obj _ pk = obj _ pk. pk
1011
+ return false
1012
+ class noreversematch ( exception ) :
1013
+ import json
1014
+ global _ default
1015
+ def configure _ handler ( self, config ) :
1016
+ if ch! ='\':
1017
+ else : : : :
1018
+ translated = translated. format ( rhs )
1019
+ if location is none :
1020
+ biggest _ number = len ( )
1021
+ wsgi _ opts = {'maxdie': int ( options ['maxdie'], int ( options ),
1022
+ raise attributeerror ( " you cannot set content to a 304 ( not modified ) response " )
1023
+ is _ usable = true
1024
+ raise valueerror ( " not a string literal : % r " % s. name )
1025
+ yield'year '
1026
+ return scheme in self. url _ schemes
1027
+ if six. py2 and value > sys. maxint :
1028
+ if match : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
1029
+ def extend _ nodelist ( self, nodelist, node, token ) :
1030
+ return form. has _ changed ( self ) if form. has _ changed ( ) :
1031
+ construct _ instance _ exclude = list ( exclude )
1032
+ if new _ conn _ created :
1033
+ @ register. tag ('block')
1034
+ if bf _ errors :
1035
+ if not self. is _ bound :
1036
+ if var. startswith ('_ (')') and var. endswith (')') :
1037
+ _ _ m = r'(? p < call > \ w { 3 } ) '
1038
+ return templatetagnode ( tag )
1039
+ def strftime ( self, fmt ) :
1040
+ if isinstance ( stream _ or _ string, six. string _ types ) :
1041
+ setattr ( module _ six _ moves _ urllib _ response, attr. name, attr )
1042
+ def write ( self, outfile, encoding ) :
1043
+ continue
1044
+ def add _ filters ( self, filterer, filters ) :
1045
+ time _ str = time _ str. decode ('utf - 8')
1046
+ _ _ dir _ _ = new _ method _ proxy ( dir ) _ _ dir _ proxy ( dir )
1047
+ def _ _ len _ _ ( self ) :
1048
+ bits = token. split _ contents ( ) [ 1 : ]
1049
+ return offset. days * ( offset. seconds / 60 )
1050
+ yield b''. join ( self )
1051
+ import warnings
1052
+ else : : : :
1053
+ import warnings
1054
+ return type, outdict, stream
1055
+ from collections import ordereddict
1056
+ def safe _ join ( base, * * paths ) :
1057
+ newline = unicode ( b'\ n')
1058
+ exp = datetime. utcfromtimestamp ( timeout )
1059
+ lockfileex. restype = bool
1060
+ return _ serializers [ format ]. serializer ( )
1061
+ unpack = num _ loopvars > 1
1062
+ words [ i ] = mark _ safe ( word )
1063
+ initlock = lock ( )
1064
+ @ deconstructible
1065
+ chunk _ size = 64 * 2 * * 10
1066
+ def _ _ init _ _ ( self, conditions _ nodelists ) :
1067
+ def _ save ( self, name, content ) :
1068
+ return'% s _ % s'% id _, first _ select
1069
+ if len ( key ) > memcache _ max _ key _ length :
1070
+ if formfield :
1071
+ caches [ cache _ middleware _ alias ] = cache. cache _ middleware _ alias
1072
+ return nodelist _ true _ output or context. render ( context )
1073
+ return repr ( self )
1074
+ if number > self. num _ pages :
1075
+ return force _ text ( name ='\ \ ','/')
1076
+ return true
1077
+ save. alters _ data = true
1078
+ s = s1
1079
+ return'tag : % s : % s / % s'% ( bits. host, bits. fragment )
1080
+ return 0
1081
+ if cache _ timeout = = none :
1082
+ class template lines long ( literal ) :
1083
+ color _ settings = termcolors. parse _ color _ setting ( django _ colors )
1084
+ translator _ comment _ mark ='translations '
1085
+ response = self. handle _ uncaught _ exception ( request, resolver, sys. exc _ info ( ) )
1086
+ latest _ date = item _ date
1087
+ value, sig = signed _ value. rsplit ( self. sep, 1 )
1088
+ qs = f. value _ from _ object ( instance )
1089
+ from email import charset as charcoders as encoders, message _ from _ string, generator
1090
+ if isinstance ( v, ( list, tuple ) ) :
1091
+ incomment = true
1092
+ return self. _ num _ pages
1093
+ return get _ supported _ language _ variant ( accept _ lang )
1094
+ if unicodedata. combining ( char ) :
1095
+ @ deconstructible ( enterfile,'enter')
1096
+ use _ base _ manager = options. get ('use _ base _ manager')
1097
+ def reverse ( viewname, urlconf = none, args = none, kwargs = none, kwargs = none,
1098
+ if self. _ is _ rendered :
1099
+ while current _ len < = length :
1100
+ def _ set _ response _ etag ( response ) :
1101
+ @ register. filter ( " escapejs " )
1102
+ if hasattr ( mw _ instance,'process _ response') :
1103
+ self. xml. endelement ( " object " )
1104
+ self. app _ or _ project ='django _ % s _ template _'% self. app _ or _ project
1105
+ out. write ( blankout ( part,'s') )
1106
+ from django. utils import six
1107
+ parser. add _ argument ('args ', metavar ='* ', nargs ='*')
1108
+ if six. py2 :
1109
+ self. waiting _ readers = 0
1110
+ return node. render ( context )
1111
+ name, ext = os. path. splitex ( name )
1112
+ @ stringfilter
1113
+ pattern = ( classdef <'class _ unicode _ _ ', any ='name') > any force _ > '
1114
+ self. invoked _ for _ django = true
1115
+ media _ attrs = kwargs
1116
+ def read ( self, * args, * * kwargs ) :
1117
+ cull _ num = num / self. _ cull _ frequency
1118
+ def cleanup _ url ( url ) :
1119
+ def streaming _ content ( self, value ) :
1120
+ import re
1121
+ self. tags [ name ] = compile _ function
1122
+ create _ models = set ( manifest. valuess. chain ( value ) )
1123
+ wsgiserver ( get _ internal _ wsgi _ application, * * wsgi _ opts )
1124
+ def is _ naive ( value ) :
1125
+ output. extend ( connection. creation. sql _ create _ model ( model, no _ style ( ), seen _ models ) )
1126
+ post ='< could not parse > '
1127
+ context = context ( {'invalid': {'invalid': ','rb': un allowing ', * * kwargs
1128
+ for key in self. keyorder :
1129
+ current _ len + = 1
1130
+ class suspiciousmultipartform ( suspiciousoperation ) :
1131
+ from django. utils. http import urlquote
1132
+ from django. core. serializers. base import deserializationerror
1133
+ from django. utils. deprecation import removedindjango19warning
1134
+ if self. _ wrapped is empty :
1135
+ return make _ origin ( display _ name, self. load _ template _ source, template _ name, template _ dirs )
1136
+ return not self. file or self. file. closed
1137
+ import warnings
1138
+ self. pubid = pubid
1139
+ if len ( bits ) is not 2, 3 :
1140
+ return withnode ( none, none, nodelist, extra _ context = extra _ context )
1141
+ _ iterlists = " lists "
1142
+ from django. core. exceptions import validationerror
1143
+ def _ _ reduce _ _ ( self ) :
1144
+ if html _ message :
1145
+ return false
1146
+ def _ _ init _ _ ( self, name, regex, next = none ) :
1147
+ except pickle. pickleerror :
1148
+ def get _ public _ serializer _ formats ( ) :
1149
+ with open ( writer. path, fh ) as fh :
1150
+ def do _ ifequal ( parser, token, negate ) :
1151
+ def _ assert _ mutable ( self ) :
1152
+ pass
1153
+ if isinstance ( data, bytes ) :
1154
+ except oserror as e : :
1155
+ for pythonrc in ( os. environ. get ( " pythonartuple " ) :
1156
+ parser. add _ argument ('- - no - data ', action ='store _ false ', dest ='interactive ',
1157
+ return false
1158
+ for dirname in dirs :
1159
+ try : : : : : :
1160
+ val, encoding = super ( simplecookie ( val ) )
1161
+ using _ sysrandom = false
1162
+ user _ settings = module _ to _ dict ( settings. _ wrapped )
1163
+ ttl = force _ text ( ttl )
1164
+ statement. append ( cleaned _ usen )
1165
+ if y and m and d :
1166
+ from django. utils. deprecation import removedindjango19warning
1167
+ date. strftime ('% s, % d % s % ( y, month : % m : % ( ( ( ( ( request
1168
+ def u ( s ) :
1169
+ super ( assignmentnode, takes _ context, kwargs )
1170
+ except ( valueerror, typeerror ) :
1171
+ _ _ all _ _ = ['file']
1172
+ return retval
1173
+ stream. write ( self. stream. write ('% s \ n'% msg _ data )
1174
+ logger. level = logging. notset
1175
+ elif basetype = ='message'and subtype = ='rfc8p':
1176
+ def value _ from _ datadict ( self, data, files, name ) :
1177
+ raise valueerror ( " key'% s'not found " % key )
1178
+ except suspiciousoperation as e : :
1179
+ ttl = force _ text ( ttl )
1180
+ if kwargs. set ( kwargs. union ( defaults ) and not set ( defaults ) ) :
1181
+ if self. asvar is none :
1182
+ if isinstance ( s, ( six. text _ type, promise ) ) :
1183
+ self. stdout. write ( " installed % d object ( s ) from % d fixture ( s ) " % ( app _ or _
1184
+ return t. led ( left, self )
1185
+ return'< extendsnode : extends % s >'% self. parent _ name. token
1186
+ for attachment in self. attachments :
1187
+ return value
1188
+ from django. core. cache. backends. base import basecache, default _ timeout
1189
+ def _ _ init _ _ ( self ) :
1190
+ value = next ( cycle _ iter ). resolve ( context )
1191
+ if not self. compile _ function _ error ( token, e ) :
1192
+ chunks = [ ]
1193
+ logging. handler. _ _ init _ _ ( self )
1194
+ conflicts conflicts = executor. loader. detect _ conflicts ( )
1195
+ _ localtime = none
1196
+ return self. number + self. paginator. per _ page
1197
+ seen _ models. add ( model )
1198
+ def clean ( self, value ) :
1199
+ if not data and initial :
1200
+ else : : : :
1201
+ def url ( self, name ) :
1202
+ if not hasattr ( package,'rindex') :
1203
+ raise
1204
+ match = re _ date. match ( value )
1205
+ from django. db. migrations. writer import migrationwriter
1206
+ if value in ( none,'' ) :
1207
+ msg = " unclosed tag'% s '. look of one of % s " % command : % ( url, name,
1208
+ app _ config = apps. get _ app _ config ( app _ label )
1209
+ def _ iterkeys ( self ) :
1210
+ shutdown _ message = options. get ('shutdown _ message ', false )
1211
+ return self. source
1212
+ if f is none :
1213
+ def handle ( self, * * options ) :
1214
+ class commentnode ( node ) :
1215
+ from django. utils. encoding import force _ text
1216
+ module = import _ module ( module _ path )
1217
+ return result
1218
+ temp _ lib. tags [ name ] = lib. tags [ name ]
1219
+ if self. to _ field :
1220
+ from django. http. response import ( httprespontpresponse, streamingresponseredirect, httpresponser,
1221
+ handler. addquickelement ( " rights ", item ['item _ copyright'] )
1222
+ def byte2int (p ) :
1223
+ lazy _ number ( ngettext, str, singular = singular, plural = plural, plural _ plural = plural, plural _ number = number
1224
+ class command ( basecommand ) :
1225
+ stream. unget ( chunk )
1226
+ def is _ types ( self, data ) :
1227
+ _ func _ defaults = " func _ defaults "
1228
+ parser. add _ argument ('- - exclude ', action ='store _ false ', dest ='interactive ', default =
1229
+ try : : : : : :
1230
+ raise externalreferenceforbidden ( context, base, sysid, pubid )
1231
+ with connection. force _ checks _ disabled ( ) :
1232
+ delta = expires. utcnow - expires ( )
1233
+ super ( serializer, self ). handle _ field ( obj, field )
1234
+ pass
1235
+ else : : : :
1236
+ else : : : :
1237
+ return error ( " % s is related to the'% s'signal with the lazy may the " " " % s " sender. "
1238
+ kwargs ['instance'] = self. _ existing _ object ( pk )
1239
+ if len ( bits ) < 2 :
1240
+ return copy. deepcopy ( self. _ wrapped, memo )
1241
+ loaded _ objects _ in _ fixture = 0
1242
+ return result
1243
+ super ( radiochoiceinput, self ). _ _ init _ _ ( * args, * * kwargs )
1244
+ self. dicts [ - 1 ] = value
1245
+ from django. core. cache. backends. base import basecache, default _ timeout
1246
+ if self. max _ digits is not none and not self. decimal _ places is not none and whole _ digits :
1247
+ if not value and self. required :
1248
+ base _ url + ='/ '
1249
+ if dirname and not os. path. exists ( dirname ) :
1250
+ def regex ( self ) :
1251
+ parser. add _ argument ('args ', nargs ='*')
1252
+ if plan _ node in loader. apply _ migrations :
1253
+ self. _ regex _ dict [ language _ code ] = regex _ compiled
1254
+ self. file. seek ( 0 )
1255
+ return self. _ _ name
1256
+ self. _ body = self. read ( )
1257
+ return result
1258
+ boundary = opts. get ('boundary')
1259
+ parser. add _ argument ( " could not find backend'% s " % e )
1260
+ else : : : :
1261
+ def save _ existing _ objects ( self, commit = true ) :
1262
+ from django. core. mail. utils import dns _ name
1263
+ needs _ multipart _ form = true
1264
+ pass
1265
+ def indexbytes ( buf, i ) :
1266
+ _ _ getattr _ _ = new _ method _ proxy ( getattr ( getattr ) )
1267
+ sep = hextet [ 0 ]. split (':')
1268
+ def _ _ contains _ _ ( self, item ) :
1269
+ bits = host. rsplit (': ', 1 )
1270
+ try : : : : : :
1271
+ super (yinotify. _ delete, subcommand, self. _ delete, sub, subotify = none, name
1272
+ class middlewarenotused ( exception ) :
1273
+ import os
1274
+ handler = self. configure _ handler ( name )
1275
+ else : : : :
1276
+ with connections [ db ]. cursor ( ) as cursor :
1277
+ return datetime. time ( * * kw )
1278
+ filelist = filelist + new _ filenames + _ error _ files
1279
+ strip _ tags = allow _ lazy ( strip _ tags )
1280
+ self. queryset = field. queryset
1281
+ next = klass. _ _ dict _ _ _ _
1282
+ import _ module ( templatetag _ module )
1283
+ def tag ( self, name, compile _ function = none, compile _ function = none ) :
1284
+ if kwargs. pop ('ipv6') :
1285
+ def writer ( self ) :
1286
+ class invalidtemplatelibrary ( exception ) :
1287
+ def render ( self, context ) :
1288
+ self. allow _ empty _ first _ page = allow _ empty _ first _ page
1289
+ s = s. replace ('\ t ','\ \ t')
1290
+ needs _ multipart _ form = false
1291
+ self. handle _ starttag ( tag, attrs )
1292
+ try : : : : : :
1293
+ self. _ catalog. update ( other. _ catalog )
1294
+ for f in sorted ( opts. concrete _ fields + sortedable _ virtual _ fields + opts. many _ to _ many ) :
1295
+ if isinstance ( message, safedata ) :
1296
+ if not self. data and not self. files :
1297
+ setattr ( filter _ func, attr, value )
1298
+ if nodelist. get _ nodes _ by _ type ( extendsnode ) :
1299
+ try : : : : : :
1300
+ obj = super ( multiwidget, self ). _ _ deepcopy _ _ ( memo )
1301
+ else : : : :
1302
+ def sql _ indexes ( app _ config, style, connection ) :
1303
+ if app _ config. models _ module is none :
1304
+ raise notimplementederror ('subclasses of origin must provide a reload ( ) method')
1305
+ self. kwargs = kwargs
1306
+ return true
1307
+ self. paths _ to _ remove. append ( tempdir )
1308
+ if fk. unique :
1309
+ with connection. cursor ( ) as cursor :
1310
+ fields. update ( new _ class. declared _ fields )
1311
+ self. choices. append ( ( f, f. replace ( path,'' ) ) )
1312
+ use _ null _ fallback = false
1313
+ kwargs [ name ] = parser. compile _ filter ( value )
1314
+ class splitdatetimefield ( multivaluefield ) :
1315
+ result = middleware. process _ view ( request, view _ func, args, kwargs )
1316
+ return'\ r '. join ( headers ) ('\ r \ n')
1317
+ class http404 ( exception ) :
1318
+ def media ( self ) :
1319
+ if isinstance ( data, datetime. datetime, datetime. time ) and not supports _ microsecond :
1320
+ from django. conf import settings
1321
+ state _ frame [ self ] = none
1322
+ error _ msg = " invalid template name in'extends'tag : % r. " % ( parent, none )
1323
+ if option _ value is none :
1324
+ class localtimezone ( referenceslocaltimezone ) :
1325
+ @ register. filter ( is _ safe = false )
1326
+ elif field _ type = ='integerfield ('and connection. features. can _ introspection _ autofield :
1327
+ return multivalue ('', encoding = self. _ encoding )
1328
+ def to _ python ( self, value ) :
1329
+ if not ( ( pk _ is not none ) and not ( not pk. name ) :
1330
+ if match : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
1331
+ def patch _ cache _ control ( response, * * kwargs ) :
1332
+ def _ _ init _ _ ( self, level, msg, hint = none, obj = none ) :
1333
+ tag, this _ value _ expr, max _ value _ expr, max _ width = bits
1334
+ db = options. pop ('using ', none )
1335
+ if not filename : : :
1336
+ super ( inlineforrengnkeyfield, self ). _ _ init _ _ ( * args, * * kwargs )
1337
+ def _ _ init _ _ ( self, name ) :
1338
+ from django. core. exceptions import improperlyconfigured
1339
+ def _ _ init _ _ ( self ) :
1340
+ value = [ conditional _ escape ( v ) for v in value ]
1341
+ class templateencosterror ( exception ) :
1342
+ if version is none :
1343
+ self. xml. startelement ( " field ", { " field. name : " } )
1344
+ thefile = self. file
1345
+ this = int ( m. group ('be') )
1346
+ self. stdout. write ( self. style. migrate _ heading ( " merge % s " % app _ label ) )
1347
+ value = getattr ( opts, opt )
1348
+ for basedir in basedirs :
1349
+ if hasattr ( file _ or _ path,'read') :
1350
+ @ classmethod
1351
+ def _ replace _ entity ( match ) :
1352
+ self. _ post, self. _ files = self. parse _ file _ upload ( self. meta, data )
1353
+ path _ info = get _ bytes _ from _ wsgi ( environ,'path _ info ','/')
1354
+ except exception : : : : : : : : : : : : : : :
1355
+ if self. empty :
1356
+ subcommand ='help '
1357
+ def handle ( self, * app _ labels, * * options ) :
1358
+ raise valueerror ( "'% s'has no field named'% s'_ name _ _, field )
1359
+ model _ fields = model. _ meta. get _ all _ field _ names ( )
1360
+ f = os. path. join ( p, cmd )
1361
+ error _ messages = self. fields [ field ]. error _ messages
1362
+ self. _ lock = threading. rlock ( )
1363
+ from userlist import userlist
1364
+ from django. http import http404
1365
+ result. extend ( self. create _ token ( last _ bit, ( upto, len ( last _ bit ) ) ) )
1366
+ class dummy :
1367
+ def _ _ del _ _ ( self ) :
1368
+ link [ next ] = root
1369
+ from django. apps import apps
1370
+ else : : :
1371
+ while i < l :
1372
+ def render ( self, context ) :
1373
+ def _ cache ( self ) :
1374
+ re _ words = re. compile ( r'<. *? > | (. ) ', bit | | | | (? :
1375
+ return { }
1376
+ model = app _ config. get _ model ( model _ label )
1377
+ if value is not result :
1378
+ return tt. tm _ isdst > 0
1379
+ def _ get _ choices ( self ) :
1380
+ loader = migrationloader ( connection )
1381
+ return termios. tcsetattr ( fd, termios. tc renderu, attr _ list )
1382
+ _ urllib _ robotparser _ moved _ attributes = [ movedattribute ( " ", " urllib ", "
1383
+ def render ( self, name, value, attrs = none ) :
1384
+ cursor. close ( )
1385
+ endbmatch = endblock _ re. match ( t. contents )
1386
+ for key, value in parse _mcl ( query _ string,'', keep _ blank _ values = true ) :
1387
+ def get _ resolver ( urlconf ) :
1388
+ app _ dir = apps. get _ app _ config ( model. _ met. app _ label )
1389
+ if not locations : : :
1390
+ class signatureexele ( badsignature ) :
1391
+ def get ( self, key, default = none ) :
1392
+ def _ mark _ post _ parse _ error ( self ) :
1393
+ self. xml. endelement ( " field " )
1394
+ super ( genericipaddressfield, self ). _ _ init _ _ ( * args, * * kwargs )
1395
+ from django. utils import six, timezone
1396
+ return value
1397
+ return filelist ( self. _ dir, fname )
1398
+ if self. verbosity > = 1 :
1399
+ stream = stringio ( stream _ or _ string )
1400
+ from django. utils import archive
1401
+ return time _ str +'- 0000 '
1402
+ if not self. allow _ multiple _ selected :
1403
+ raise templatesyntaxerror ( "'% s'received unexpected keyword argument'% s'" % ( bits [ 0 ],
1404
+ else : : : :
1405
+ from django. apps import apps
1406
+ localpart = str ( header ( localpart, encoding ) )
1407
+ class fileinput ( input ) :
1408
+ d = { }
1409
+ return data
1410
+ for line in content. split ( ) :
1411
+ if value :
1412
+ @ property
1413
+ data [ field. attname ] = value
1414
+ s = six. text _ type ( s, encoding, errors )
1415
+ raise
1416
+ if app _ config. models _ module is none :
1417
+ for tag in open _ tags :
1418
+ _ assertregex = " assertregex "
1419
+ class emailbackend ( baseemailbackend ) :
1420
+ self. _ regex _ validator = validators. regexvalidator ( regex = regex )
1421
+ if error _ messages and f. name in error _ messages :
1422
+ parser. add _ argument ('args ', metavar ='app label ', nargs ='+'+ ',
1423
+ child _ loggers. append ( existing [ i ] )
1424
+ mimetype, _ = mimetypes. guess _ type ( filename )
1425
+ secret = force _ bytes ( secret )
1426
+ params, varargs, varkw, defaults = getargspec ( func )
1427
+ def javascript _ quote ( s, quote _ double _ quotes = false ) :
1428
+ i + = 1
1429
+ @ deconstructible
1430
+ break
1431
+ def cleaned _ data ( self ) :
1432
+ break
1433
+ key = self. make _ key ( key, version = version )
1434
+ value = data. get ( name )
1435
+ changeset = timestamp. strftime ('% y % m % m % m % s')
1436
+ if val is none :
1437
+ def clear ( self ) :
1438
+ six. reraise ( exc _ type, exc _ value, sys. exc _ info [ 2 ] )
1439
+ raise validationerror ( self. error _ messages ['required'], code ='required')
1440
+ def get _ default _ timezone ( ) :
1441
+ def get _ host ( self ) :
1442
+ return
1443
+ fmt = config. get ('format ', none )
1444
+ if finder. find _ module ( name ) :
1445
+ ipv4 _ address = ( " % d. % d. % d. % ( 3 [ 2 : ] * ( hextets [ 0
1446
+ return [ bytes _ to _ text ( elt, self. encoding ) for elt in list _ to _ text ( ) ]
1447
+ return name, ser _ fmt, cmp _ fmt
1448
+ from django. utils. http import urlquote
1449
+ if value. tzinfo is none and value. tzinfo. utcoffset ( value ) is none :
1450
+ else : : : :
1451
+ code _ list. append ( settings [ v ] )
1452
+ kwargs ['initial'] = self. parent _ instance. pk
1453
+ last = max ( 0, end - 1 )
1454
+ def _ _ init _ _ ( self, widgets, attrs = none ) :
1455
+ class wsgiserver ( simple _ server. wsgiserver, object ) :
1456
+ except exception as e : :
1457
+ state = self. state
1458
+ def _ _ get _ _ ( self, obj, tp ) :
1459
+ if not tag in tags : ( tag ) :
1460
+ if use _ l10n or ( use _ l10n is none and settings. use _ l10n ) :
1461
+ self. activated = true
1462
+ return'',''
1463
+ def wrapper ( * args, * * kwargs ) :
1464
+ id _ + ='_ 0 '
1465
+ def format _ subject ( self, subject ) :
1466
+ kwargs = match. groupdict ( )
1467
+ for dict _ in self. dicts :
1468
+ self. nodelist = t. nodelist
1469
+ def _ _ bool _ _ ( self ) :
1470
+ import sys
1471
+ kwargs ['number'] = number _ value
1472
+ return result
1473
+ if hasattr ( timezone,'normalize') :
1474
+ value = force _ text ( value )
1475
+ weight = 0
1476
+ super ( simplecookie, self ). load ( rawdata )
1477
+ class defusedxmlexception ( valueerror ) :
1478
+ else : : : :
1479
+ self. _ leftover = b''. join ( bytes, self. _ leftover )
1480
+ formfield = f. formfield ( * * kwargs )
1481
+ return
1482
+ def make _ decorator ( * m _ args, * * m _ kwargs ) :
1483
+ def _ set _ post ( self, post ) :
1484
+ def clear ( self ) :
1485
+ if safe is not none :
1486
+ filter _ expression = self. compile _ filter ( token. contents )
1487
+ attrs = super ( decimalfield, self ). widget _ attrs ( widget )
1488
+ return bytes ( value )
1489
+ if self. allow _ folders :
1490
+ app _ list = resolver. app _ dict. get ( ns )
1491
+ def activate ( timezone ) :
1492
+ else : : : :
1493
+ def writetring ( self, encoding ) :
1494
+ else : : : :
1495
+ choices = property ( _ get _ choices, _ set _ choices )
1496
+ def has _ other _ pages ( self ) :
1497
+ parser. modules = sys. modules [ _ _ name _ parse ( ". moves. urllib _ parse " ) ]
1498
+ form. save _ m2m = save _ m2m
1499
+ else : : : :
1500
+ _ templatetags _ modules. append ( templatetag _ module )
1501
+ return format _ html _ join ('{ 0 } = " { 1 } " ', contents = " { 1 } " ', attr
1502
+ return self
1503
+ self. can _ write. release ( )
1504
+ raise keyerror ( key )
1505
+ for arg in args :
1506
+ def has _ key ( self, key ) :
1507
+ kw ['microsecond'] = kw ['microsecond']. l10 ('0')
1508
+ if var. find ( variable _ attribute _ separator +'_') > - 1 :
1509
+ _ _ all _ _ = ('multipartparser ','inputstreamexhausted ','inputstreamarsererror
1510
+ dictreprs = ', '. join ( repr ( d ) )
1511
+ elif field. rel and isinstance ( field. rel, models. manytoonerelrel ) :
1512
+ if text ='' and len ( opt ) = = 1 and opts [ 0 ] = ='reset':
1513
+ from django. utils. six. moves. urllib. parse import urljoin
1514
+ self. xml. startelement ( " natural ", { } )
1515
+ @ property
1516
+ raise validationerror ( self. error _ messages ['invalid _ choice'], code ='invalid _ choice ', params = {
1517
+ self. delete ( key, version = version )
1518
+ new _ matches = normalize ( parent _ pat + pat )
1519
+ yield self [ key ]
1520
+ cache [ key ] = result
1521
+ self. cookies [ key ] ['max - age'] = max _ age
1522
+ def _ _ copy _ _ ( self ) :
1523
+ from django. utils. functional import lazy
1524
+ sites1 = _ findall ( s1, year )
1525
+ for middleware _ method in self. _ request _ middleware :
1526
+ def add _ arguments ( self, parser ) :
1527
+ ulong _ ptr = c _ int64
1528
+ if not language _ code _ re. search ( lang _ code ) :
1529
+ if isinstance ( s, bytes ) :
1530
+ for accessor _ name, object _ list in self. m2m _ data. items ( ) :
1531
+ if isinstance ( obj, datetime. datetime ) :
1532
+ handler. addquickelement ( " pubdate ", rfc 36 _ date ( self. feed [ 2 : ] ) )
1533
+ self. mode = file. mode
1534
+ ass = int ( c ) + b': candidate'% c : % s'% c )
1535
+ if sys. version _ info [ 0 ]! = 3 :
1536
+ chunk = b '. join ( chunks )
1537
+ fs _ template _ dirs = sys. getdefaultcoate ( )
1538
+ def split _ leading _ dir ( self, path ) :
1539
+ with self. _ lock. reader ( ) :
1540
+ locale _ dir = self. default _ locale _ path
1541
+ output _ transaction = true
1542
+ obj = model ( * * data )
1543
+ apps. setdefault ( pattern, [ ] ). namespace ( )
1544
+ for key, value in data : : :
1545
+ def configure _ root ( self, config, incremental = false ) :
1546
+ if item ['pubdate'] is not none :
1547
+ tzinfo = get _ fixed _ timezone ( offset )
1548
+ class suspiciousoperation ( exception ) :
1549
+ from django. conf import settings
1550
+ try : : : : : :
1551
+ if os. path. isdir ( app _ dir ) :
1552
+ def mark _ for _ escaping ( s ) :
1553
+ except attributeerror : : :
1554
+ obj = field. rel. to. _ meta. get _ field ( field. rel. field _ name ). to _ python
1555
+ def _ _ init _ _ ( self, object _ list, number, paginator ) :
1556
+ return [ none, none ]
1557
+ def timeuntil ( d, now = none ) :
1558
+ super ( decimalfield, self ). validate ( value )
1559
+ field _ type ='foreignkey ( rel _ to.')
1560
+ def avoid _ wrapping ( value ) :
1561
+ from django. core. serializers. python import deserializer as pythondeserializer
1562
+ if code is not none :
1563
+ raise templatesyntaxerror ( "'firstof'statement requires at least one argument " )
1564
+ from importlib import find _ loader as importlib _ find
1565
+ msgs, errors, status = popen _ wrapper ( args )
1566
+ id _ = self. field. widget. attrs. get ('id ', none )
1567
+ return " < block node : % s. contents : % r > " % ( self. name, self. nodelist )
1568
+ if nodelist _ empty is none :
1569
+ def _ _ iter _ _ ( self ) :
1570
+ from django. utils. module _ loading import import _ string
1571
+ return b '. join ( self. make _ bytes ( chunk ) for chunk in value )
1572
+ if value in self. empty _ values :
1573
+ parser. add _ argument ('migration _ name ', action ='store _ false ', dest ='interactive ', help = {
1574
+ def jython _ reloader ( main _ func, args, kwargs ) :
1575
+ from django. test. signals import setting _ changed
1576
+ file. seek ( 0 ). seek ( 0 )
1577
+ return false
1578
+ from django. template. base import templatedoesnotexist
1579
+ from django. http import httpresponse
1580
+ code ='limit _ value '
1581
+ text = match. group ( 1 )
1582
+ for line in header. split ('\ r \ n') :
1583
+ obj = base. build _ instance ( model, data, db )
1584
+ iterkeys = _ iterkeys
1585
+ return value. pk
1586
+ quant. append ( ch )
1587
+ def write ( self, val ) :
1588
+ def handle _ app _ config ( self, app _ config, * * options ) :
1589
+ return none
1590
+ num _ loopvars = len ( self. loopvars )
1591
+ deactivate, deactivate _ all = none
1592
+ pb = 1 < < 40
1593
+ start = 0
1594
+ def render _ option ( self, selected _ choices, option _ value, option _ label ) :
1595
+ def _ _ getitem _ _ ( self, key ) :
1596
+ language _ code = get _ language ( ) _ code
1597
+ if bit. startswith ('_ ('can bit bit. startswith ( " _'" ) :
1598
+ return _ i18n _ cache _ key _ suffix ( request, cache _ key )
1599
+ try : : : : : :
1600
+ c = hex2 int ( text [ 1 : ] )
1601
+ if os. path. exists ( self. file _ path, os. path. isdir ( ) ) :
1602
+ if self. feed ['feed _ url'] is not none :
1603
+ return
1604
+ import os
1605
+ return iter ( getattr ( d, _ iterlists ) ( * * kw ) )
1606
+ def wrapper ( * args, * * kwds ) :
1607
+ self. pgettext ( % r, % r )'% join _ context, join ( self. tokens )
1608
+ return self. getlist ( key )
1609
+ defaults = dict ( defaults. _ get _ kwargs, * * kwargs )
1610
+ getattr ( self. urlconf _ module,'handler % s'% view _ type )
1611
+ warn _ msg = " the translator - target comment'% s'( % takesine % d ) is not none else " " t be
1612
+ return force _ text ( self. get ( self, getattr ( ) ) )
1613
+ d = data. get ( self. day _ field % name )
1614
+ func = getattr ( func,'_ decorated _ function ', func )
1615
+ for name, block in six. iteritems ( blocks ) :
1616
+ import django
1617
+ potfiles = self. build _ potfiles ( )
1618
+ self. stdout. write ( " check % s for fixtures.. " % name )
1619
+ import sys
1620
+ if len ( bits )! = 3 :
1621
+ extracted = self. _ archive. extractfile ( member )
1622
+ import binascii
1623
+ else : : : :
1624
+ files = property ( files )
1625
+ return true
1626
+ with self. mutex :
1627
+ return get _ template ( template _ name, dirs )
1628
+ l = lambda self : x, version = version )
1629
+ def upload _ handlers ( self ) :
1630
+ except ambiguityerror : : : :
1631
+ except validationerror as e : :
1632
+ return {'request': request }
1633
+ except attributeerror : : :
1634
+ result = func ( * args )
1635
+ else :
1636
+ from django. utils. encoding import force _ text, default _ locale _ encoding
1637
+ def _ fields ( self. get _ models, * * kwargs ) : if app _ configs is none else none :
1638
+ self. ignore = options. get ('ignore')
1639
+ class nownode ( node ) :
1640
+ except standarderror as e : except except
1641
+ if msg : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
1642
+ _ error _ files = [ ]
1643
+ @ register. filter ( is _ safe = true, needs _ autoescape = true )
1644
+ if isinstance ( filename, mimebase ) :
1645
+ class debugnodelist ( nodelist ) :
1646
+ priority = float ( 1. 0 )
1647
+ raise keyerror ( key )
1648
+ elif oslass ['mailtphandler ] and os. path. smtphandler ('mailhost') in confi
1649
+ return maybe
1650
+ def _ handle _ m2m _ field _ node ( self, node, field ) :
1651
+ extend _ nodelist ( nodelist, node, token ). extend ( debugparser )
1652
+ from django. utils. itercompat import is _ iterable
1653
+ return self. has _ key ( key )
1654
+ super ( declarativefieldsmetaclass, mc, attrs )
1655
+ continue
1656
+ self. save _ existing _ objects = ( commit ) + self. save _ new _ objects ( )
1657
+ for attr in ('expects _ localtime ','is _ safe ','needs _ autoescape') :
1658
+ for f in file _ list :
1659
+ import re
1660
+ for processors in get _ standard _ processors ( processors ) :
1661
+ old _ field _ name, self. _ encoding, errors ='replace') _ _ _
1662
+ yield v
1663
+ else : : : :
1664
+ cc = dict ( ( _ to _ tuple ( el ) ) for el in cc )
1665
+ scheme = template. split (':') [ 0 ]. lower ( )
1666
+ escape _ mappings = {'a': none,'b':'x ','x': none,':'2
1667
+ locales = [ locale ]
1668
+ nodelist = parser. parse ( ('endblock ', ) )
1669
+ loaders = [ ]
1670
+ @ register. tag
1671
+ return client
1672
+ stat. stat | = os. stat ( path ), f _ mode )
1673
+ def _ _ delitem _ _ ( self, key ) :
1674
+ expanded _ template = path. expanduser ( template )
1675
+ data = field. widget. value _ from _ datadict ( self. data, self. files, value )
1676
+ def pbkdf2 ( password, salt, iterations, dklen = 0, digest = none ) :
1677
+ def get _ default _ timezone _ name ( ) :
1678
+ ch2 = none
1679
+ def handle _ uncaught _ exception ( self, request, resolver, exc _ info ) :
1680
+ new _ attr = name
1681
+ parts = config _ string. lower ( ). split (';')
1682
+ doublecolon _ start = - 1
1683
+ self. _ start _ relational _ field ( field )
1684
+ s = s. decode ( encoding, errors )
1685
+ if token = = " not " and i + 1 < l :
1686
+ self. help _ texts = getattr ( options,'help _ texts ', none )
1687
+ if not match or match. group ( 1 ) :
1688
+ elif ch = ='p':
1689
+ from django. core. wsgi import get _ wsgi _ application
1690
+ self. appendlist ( force _ text ('< s ', use _ l10n = self. appendlist ( force _ text
1691
+ while i < len ( subject ) and subject [ i ]! = p [ - t ] :
1692
+ return value. replace ( tzinfo = none )
1693
+ return type ( self ). _ _ bool _ _ ( self )
1694
+ parser. add _ argument ('- - database ', action ='store ', dest ='database ', default = default _
1695
+ pk _ value = form. instance. pk
1696
+ return [ etag _ str ]
1697
+ readline. parse _ and _ bind ( " tab : complete " )
1698
+ while ch! = terminal _ char :
1699
+ return self. _ namespace _ dict [ language _ code ]
1700
+ self. changed _ objects. append ( ( obj, form. changed _ data ) )
1701
+ now = delta. days + ( other. days * ( 60, delta. seconds ) )
1702
+ key + = ( type ( k, sorted _ items ) for k, v in sorted _ items )
1703
+ translation. activate ( saved _ locale )
1704
+ for func in self. response _ fixes :
1705
+ class debugnode ( node ) :
1706
+ import os
1707
+ try : : : : : :
1708
+ if expires < now :
1709
+ from django. utils. translation import ugettext, ungettext
1710
+ def valid _ value ( self, value ) :
1711
+ obj = mark _ safe ( new _ obj )
1712
+ $ = 1 < < 40
1713
+ return r
1714
+ from django. core. exceptions import improperlyconfigured
1715
+ handle _ app ( app _ config. models _ module, * * options )
1716
+ self. validate _ key ( key )
1717
+ @ stringfilter
1718
+ self. xml = simplerxmlgenerator ( self. stream, self. feed ['encoding'] )
1719
+ self. validate _ key ( key )
1720
+ parser. add _ argument ('- - noinput ', action ='store _ false ', dest ='interactive ',
1721
+ try : : : : : :
1722
+ import cgi
1723
+ attrs ['error _ messages'] = error _ messages
1724
+ return output
1725
+ def load _ template ( self, template _ name, template _ dirs = none ) :
1726
+ def _ _ str _ _ ( self ) :
1727
+ return len ( self. get _ queryset ( ) )
1728
+ return compiled _ parent. _ render ( context )
1729
+ self. exception = exception
1730
+ from django. core. files. base import file
1731
+ handlers = config. get ('handlers ', empty _ dict )
1732
+ for root in settings. allowed _ include _ roots :
1733
+ for field in self. fields. values ( ) :
1734
+ def o ( self ) :
1735
+ return mark _ safe ( force _ text ( n ) for n in nodelist ( n ) )
1736
+ parser. add _ argument ('- - output ', action ='store _ false ', dest ='interactive ', default =
1737
+ raise notimplementederror ('subclasses of storage must provide a listdir ( ) method')
1738
+ if is _ templatized :
1739
+ import sys
1740
+ want _ unicode = true
1741
+ _ format _ cache = { }
1742
+ return ( ret = = 0 )
1743
+ self. message _ context = none
1744
+ weekdays _ 1 = { 1 : _ ('2 ', 2 :')
1745
+ for _, nodelist in self. conditions _ nodelists :
1746
+ else : : : :
1747
+ val = none
1748
+ if use _ inotify :
1749
+ hidden _ fields. append ( six. text _ type ( bf ) )
1750
+ value = bool ( value )
1751
+ from django. utils. six. moves. urllib. parse import parse _ q, urlencode, urlspl
1752
+ self. xml. startelement ( " field ", { " field. name : " field. name } )
1753
+ from django. db import ( connections, router, transaction, default _ db _ alias )
1754
+ self. active _ readers + = t
1755
+ return super ( datefield, self ). to _ python ( value )
1756
+ def _ get _ scheme ( self ) :
1757
+ self. loaded _ object _ count = 0
1758
+ defaults ['empty _ permitted'] = true
1759
+ raise templatedoesnotexist
1760
+ s = s. replace ('\ \ ','\ \ \ \ \ \')
1761
+ cap = lambda x : x if not x : force _ text ( x ) if x else force _ text ('ascii')
1762
+ return self. data. isoformat ( )
1763
+ result = super ( multivaluefield, self ). _ _ deepcopy _ _ ( memo )
1764
+ elif count > 1 :
1765
+ self. stdout. write ( " - % s \ n " % operation. description ( ) )
1766
+ return repr ( self ) ( )
1767
+ @ python _ 2 _ unicode _ compatible
1768
+ if'_ _ str _ _'not in klass :
1769
+ from. import error, tags, register
1770
+ if self. data. minute = = 0 and self. data. hour = = 0 :
1771
+ field _ desc. append ('# % s'% ( comment _ notes ) )
1772
+ else : : : :
1773
+ return self. dstdiff
1774
+ def clear _ template ( self, name ) :
1775
+ traceback. print _ exc ( )
1776
+ self. timezone = none
1777
+ return tpl. format ( self. name, self. sysid, self. pubid )
1778
+ else : : : :
1779
+ raise notimplementederror ( " this backend doesn't support absolute paths. " )
1780
+ from. import six
1781
+ if isinstance ( rhs, dict and number ) :
1782
+ connection = connections [ options ['database'] ]
1783
+ elif cls. _ delegate _ bytes :
1784
+ inner. update ( password. translate ( hmac. trans _ 5c ) )
1785
+ if'charset'in content _ params :
1786
+ def _ _ str _ _ ( self ) :
1787
+ with self. _ lock. writer ( ) :
1788
+ if count. count ( '.')! = 3 :
1789
+ return self. dicts. pop ( )
1790
+ kwargs ['error _ messages'] = error _ messages [ f. name ]
1791
+ return val, encoding = ( )
1792
+ try : : : : : :
1793
+ self. command _ stack. append ( ( command, token. source ) )
1794
+ for character in name :
1795
+ def yesno ( value, arg = none ) :
1796
+ def incr ( self, key, delta = 1, version = none ) :
1797
+ os. makedirs ( migrations _ directory )
1798
+ form. fields [ ordering _ field _ name ] = integerfield ('', default ='time')
1799
+ using = options. get ('database') '
1800
+ return'% s % s'% ( six. text _ type ( arg ) )
1801
+ hashlib. hash1 ( force _ bytes ( key ) )
1802
+ defaults = {'auto _ id': self. auto _ id ( ), self. prefix, prefix = {'invalid _ prefix '
1803
+ else : : : :
1804
+ else : : : :
1805
+ except stopiteration : : :
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40c77493cbd5bfa9b6657f3601f9c6506a217daf82aacddd9b4e7ca84a877d8a
3
+ size 506332985
references.txt ADDED
@@ -0,0 +1,1805 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if self . _leftover :
2
+ if instance is not None :
3
+ value = value [ 1 : - 1 ]
4
+ else :
5
+ if self . verbosity >= 1 :
6
+ LPOVERLAPPED = POINTER ( OVERLAPPED )
7
+ def validate ( self , value ) :
8
+ self . can_read . release ( )
9
+ __contains__ = has_header
10
+ if self . feed [ 'ttl' ] is not None :
11
+ def render ( self , context ) :
12
+ import datetime
13
+ if size :
14
+ raise TypeError ( "Non-integer base36 conversion input." )
15
+ def size ( self , name ) :
16
+ new_ip = ip_str . split ( ':' )
17
+ from decimal import Decimal , DecimalException
18
+ except AttributeError :
19
+ from django . core import signing
20
+ __Y = r'(?P<year>\d{4})'
21
+ value = dict . pop ( self , key , default )
22
+ if constant_time_compare ( sig , self . signature ( value ) ) :
23
+ return tempdir
24
+ raise TemplateSyntaxError ( "'templatetag' statement takes one argument" )
25
+ p_pattern = pattern . regex . pattern
26
+ if command . verbosity > 1 :
27
+ else :
28
+ styles = instructions . split ( ',' )
29
+ if isinstance ( s , Promise ) :
30
+ return ''
31
+ if options [ 'outlog' ] :
32
+ raise TemplateSyntaxError ( "Only 'silent' flag is allowed after cycle's name, not '%s'." % args [ - 1 ] )
33
+ parser . add_argument ( 'migration_name' , nargs = '?' , help = 'Database state will be brought to the state after that migration.' )
34
+ full_module_name = package_name + '.' + module_name
35
+ statements = sql_all ( app_config , self . style , connection )
36
+ handler . name = name
37
+ return new_value
38
+ current = getattr ( current , bit )
39
+ self . use_natural_foreign_keys = options . pop ( 'use_natural_foreign_keys' , False ) or self . use_natural_keys
40
+ pass
41
+ except AttributeError :
42
+ def with_metaclass ( meta , * bases ) :
43
+ commands . update ( { name : app_config . name for name in find_commands ( path ) } )
44
+ def attach ( self , filename = None , content = None , mimetype = None ) :
45
+ def load_command_class ( app_name , name ) :
46
+ url = quote ( url , safe = b'!*\'();:@&=+$,/?#[]~' )
47
+ for ldir in dirs :
48
+ _fields_ = [ ( '_offset' , _OFFSET ) , ( 'Pointer' , PVOID ) ]
49
+ return self . render ( )
50
+ renderer = CheckboxFieldRenderer
51
+ field_name = force_text ( field_name , encoding , errors = 'replace' )
52
+ def initial_form_count ( self ) :
53
+ continue
54
+ def __init__ ( self , language , deactivate = False ) :
55
+ raise TemplateSyntaxError ( "Invalid arguments provided to simple_tag" )
56
+ _format_cache [ cache_key ] = val
57
+ from django . utils . encoding import python_2_unicode_compatible
58
+ widget = URLInput
59
+ def __init__ ( self , data = None ) :
60
+ signals = 'signals'
61
+ return bool ( ret )
62
+ from django . core . exceptions import ImproperlyConfigured
63
+ foreground = dict ( ( color_names [ x ] , '3%s' % x ) for x in range ( 8 ) )
64
+ return "<DeserializedObject: %s.%s(pk=%s)>" % ( self . object . _meta . app_label , self . object . _meta . object_name , self . object . pk )
65
+ parser . add_argument ( '--extension' , '-e' , dest = 'extensions' , action = 'append' , default = [ 'py' ] , help = 'The file extension(s) to render (default: "py"). ' 'Separate multiple extensions with commas, or use ' '-e multiple times.' )
66
+ @ register . filter ( is_safe = False )
67
+ if response . streaming :
68
+ words = word_split_re . split ( force_text ( text ) )
69
+ def parse_http_date_safe ( date ) :
70
+ from xml . sax import handler
71
+ use_natural_foreign_keys = options . get ( 'use_natural_foreign_keys' ) or use_natural_keys
72
+ return RegexURLResolver ( r'^/' , [ ns_resolver ] )
73
+ return timedelta ( 0 )
74
+ self . loaddata ( fixture_labels )
75
+ def __setitem__ ( self , key , value ) :
76
+ pass
77
+ except UnicodeDecodeError :
78
+ self . instance = opts . model ( )
79
+ compile_func = partial ( generic_tag_compiler , params = params , varargs = varargs , varkw = varkw , defaults = defaults , name = function_name , takes_context = takes_context , node_class = SimpleNode )
80
+ raise CommandError ( 'Unknown app in excludes: %s' % exclude )
81
+ self . data = data or { }
82
+ from __future__ import unicode_literals
83
+ if ( form . cleaned_data and form . cleaned_data [ field ] is not None and form . cleaned_data [ unique_for ] is not None ) :
84
+ key = self . make_key ( key , version = version )
85
+ primary_keys = [ ]
86
+ self . _populate ( )
87
+ save . alters_data = True
88
+ if value is not result :
89
+ if command . use_argparse :
90
+ return attr
91
+ if num > self . _max_entries :
92
+ strip_entities = allow_lazy ( strip_entities , six . text_type )
93
+ return self . strptime ( value , format )
94
+ parser . add_argument ( '--no-wrap' , action = 'store_true' , dest = 'no_wrap' , default = False , help = "Don't break long message lines into several lines." )
95
+ from django . core . management . sql import sql_delete
96
+ self . _deleted_form_indexes . append ( i )
97
+ if args [ - 1 ] != "silent" :
98
+ self . _unget_history = [ ]
99
+ elif not isinstance ( file_name , six . string_types ) and is_iterable ( file_name ) :
100
+ form = ManagementForm ( auto_id = self . auto_id , prefix = self . prefix , initial = { TOTAL_FORM_COUNT : self . total_form_count ( ) , INITIAL_FORM_COUNT : self . initial_form_count ( ) , MIN_NUM_FORM_COUNT : self . min_num , MAX_NUM_FORM_COUNT : self . max_num } )
101
+ if isinstance ( receiver , types . FunctionType ) :
102
+ def __text_cast ( self ) :
103
+ else :
104
+ self . delete ( key , version = version )
105
+ from __future__ import unicode_literals
106
+ def urlizetrunc ( value , limit , autoescape = None ) :
107
+ return False
108
+ if self . can_delete :
109
+ nodelist_loop = parser . parse ( ( 'else' , end_tag ) )
110
+ from django . utils . safestring import mark_safe
111
+ def stringformat ( value , arg ) :
112
+ guessed_filename = params . get ( 'filename' ) or used_name
113
+ return self . text
114
+ import os
115
+ return lazy_number ( ungettext , six . text_type , singular = singular , plural = plural , number = number )
116
+ open_tags = [ ]
117
+ if name is None :
118
+ self . blocks = defaultdict ( list )
119
+ return None
120
+ clean = lambda self , x : len ( x )
121
+ apps . get_model ( 'auth' , 'Permission' )
122
+ template_with_clear = '%(clear)s <label for="%(clear_checkbox_id)s">%(clear_checkbox_label)s</label>'
123
+ def invalid_block_tag ( self , token , command , parse_until = None ) :
124
+ except ImportError :
125
+ @ register . tag ( 'with' )
126
+ def pretty_name ( name ) :
127
+ while len ( line ) > max_width :
128
+ pass
129
+ data_value = data if data is not None else ''
130
+ ipv4_re = re . compile ( r'^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$' )
131
+ response = None
132
+ fk = _get_foreign_key ( parent_model , model , fk_name = fk_name )
133
+ self . unlink ( self . name )
134
+ chunk = stream . read ( max_header_size )
135
+ for label in app_labels :
136
+ fixture . close ( )
137
+ if len ( val1 ) != len ( val2 ) :
138
+ else :
139
+ return mark_safe ( '\n' . join ( output ) )
140
+ default_validators = [ validators . validate_ipv4_address ]
141
+ except ( LookupError , BinasciiError ) as e :
142
+ from functools import wraps
143
+ self . _urlconf_module = self . urlconf_name
144
+ pass
145
+ remaining -= len ( emitting )
146
+ memo = { }
147
+ indent = options . get ( 'indent' )
148
+ def __init__ ( self , regex ) :
149
+ help = ''
150
+ last = self . data . day % 10
151
+ for location in format_locations :
152
+ raise ValueError ( "Unable to convert %r" % value )
153
+ def recipients ( self ) :
154
+ six . reraise ( UnreadablePostError , UnreadablePostError ( * e . args ) , sys . exc_info ( ) [ 2 ] )
155
+ for fname in filelist :
156
+ return LANG_INFO [ generic_lang_code ]
157
+ return metaclass ( 'temporary_class' , None , { } )
158
+ for ( k , v ) in kwargs . items ( ) :
159
+ if options [ 'plain' ] :
160
+ def get_internal_wsgi_application ( ) :
161
+ for lineno , line in enumerate ( content . splitlines ( True ) ) :
162
+ def contains ( source , inst ) :
163
+ def __getitem__ ( self , key ) :
164
+ if pathext is None :
165
+ else :
166
+ __all__ = ( 'WSGIServer' , 'WSGIRequestHandler' )
167
+ except Exception :
168
+ error_dict . setdefault ( NON_FIELD_ERRORS , [ ] ) . extend ( self . error_list )
169
+ with open ( old_file_name , 'rb' ) as old_file :
170
+ parser . add_argument ( '--keep-pot' , action = 'store_true' , dest = 'keep_pot' , default = False , help = "Keep .pot file after making messages. Useful when debugging." )
171
+ try :
172
+ idstring = '.' + idstring
173
+ return self . filter ( name , func , ** flags )
174
+ if len_values < 1 :
175
+ pass
176
+ self . file . seek ( 0 )
177
+ if link is not None :
178
+ except StopUpload as e :
179
+ open_method , mode = self . compression_formats [ cmp_fmt ]
180
+ else :
181
+ from django . forms import Form
182
+ if text [ 0 ] in 'xX' :
183
+ outer_html = '<ul{id_attr}>{content}</ul>'
184
+ def _get_size_from_underlying_file ( self ) :
185
+ from django . utils . six . moves . urllib . parse import urlparse
186
+ self . _stream = stream
187
+ value = str ( Header ( value , 'utf-8' , maxlinelen = sys . maxsize ) . encode ( ) )
188
+ self . second = parser . expression ( bp )
189
+ toktext = match . group ( name )
190
+ else :
191
+ else :
192
+ super ( JsonResponse , self ) . __init__ ( content = data , ** kwargs )
193
+ length = int ( arg )
194
+ self . configure_logger ( name , loggers [ name ] , True )
195
+ if start > upto :
196
+ def compile_messages ( self , locations ) :
197
+ excluded_apps . add ( app_config )
198
+ return self . represent_scalar ( 'tag:yaml.org,2002:str' , str ( data ) )
199
+ known_models = [ ]
200
+ run_syncdb = False
201
+ class PyLibMCCache ( BaseMemcachedCache ) :
202
+ import re
203
+ try :
204
+ return b'' . join ( T ) + F ( l ) [ : r ]
205
+ return lang_code
206
+ elif str ( level ) == level :
207
+ self . _raw_ipv6 = False
208
+ default_validators = [ validators . URLValidator ( ) ]
209
+ if item [ 'unique_id' ] is not None :
210
+ return formats . time_format ( value , arg )
211
+ import warnings
212
+ class ReferenceLocalTimezone ( tzinfo ) :
213
+ cleaned = self . clean ( value )
214
+ from django . utils import six
215
+ color_names = ( 'black' , 'red' , 'green' , 'yellow' , 'blue' , 'magenta' , 'cyan' , 'white' )
216
+ if language_code not in self . _regex_dict :
217
+ def _make_parser ( self ) :
218
+ from django . core . exceptions import ValidationError
219
+ return instance
220
+ if CONTEXT_SEPARATOR in result :
221
+ Iterator = object
222
+ if indent :
223
+ def Z ( self ) :
224
+ self . current_app = current_app
225
+ name = args [ 1 ]
226
+ html_class_attr = ''
227
+ roots = set ( dir ( cls ) ) & set ( convert )
228
+ from __future__ import unicode_literals
229
+ import sys
230
+ def static ( request ) :
231
+ from django . utils import six
232
+ class DummyCache ( BaseCache ) :
233
+ if getattr ( e , 'winerror' , 0 ) != 32 and getattr ( e , 'errno' , 0 ) != 13 :
234
+ from django . conf import settings
235
+ want_unicode = True
236
+ msgs = self . copy_plural_forms ( msgs , locale )
237
+ cache_key += '.%s' % getattr ( request , 'LANGUAGE_CODE' , get_language ( ) )
238
+ return int ( timeout )
239
+ parser . add_argument ( '--database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to synchronize. Defaults to the "default" database.' )
240
+ self . _fname = None
241
+ raise TypeError ( msg )
242
+ if self . cc :
243
+ for k , v in ret . items ( ) :
244
+ return mark_safe ( '' . join ( bits ) )
245
+ DjangoSafeDumper . add_representer ( decimal . Decimal , DjangoSafeDumper . represent_decimal )
246
+ self . error ( "bad end tag: %r" % ( rawdata [ i : j ] , ) )
247
+ def __exit__ ( self , exc_type , exc_value , traceback ) :
248
+ field_desc += ')'
249
+ ctx = hashlib . md5 ( )
250
+ while current_chunk != b'' :
251
+ loop_dict [ 'first' ] = ( i == 0 )
252
+ content_type , content_type_extra = meta_data . get ( 'content-type' , ( '' , { } ) )
253
+ def pop ( self , k , * args ) :
254
+ def add_truncation_text ( self , text , truncate = None ) :
255
+ parser . add_argument ( '--fake' , action = 'store_true' , dest = 'fake' , default = False , help = 'Mark migrations as run without actually running them' )
256
+ chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
257
+ digits = len ( digittuple )
258
+ __version__ = "0.1"
259
+ self . max_expr = max_expr
260
+ class DeserializationError ( Exception ) :
261
+ if autoescape :
262
+ def force_bytes ( s , encoding = 'utf-8' , strings_only = False , errors = 'strict' ) :
263
+ except VariableDoesNotExist :
264
+ naiveip_re = re . compile ( r"""^(?: (?P<addr> (?P<ipv4>\d{1,3}(?:\.\d{1,3}){3}) | # IPv4 address (?P<ipv6>\[[a-fA-F0-9:]+\]) | # IPv6 address (?P<fqdn>[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*) # FQDN ):)?(?P<port>\d+)$""" , re . X )
265
+ data = self . form . initial . get ( self . name , self . field . initial )
266
+ signals . request_finished . connect ( cache . close )
267
+ return None
268
+ return iter ( self . file )
269
+ prefix = settings . MEDIA_URL
270
+ symlink_path = os . path . join ( tmpdir , 'symlink' )
271
+ def render ( self , context ) :
272
+ use_natural_primary_keys = options . get ( 'use_natural_primary_keys' )
273
+ def inner ( self , * args ) :
274
+ if '::' not in ip_str and ip_str . count ( ':' ) != 7 :
275
+ parser . add_argument ( 'args' , metavar = 'app_label' , nargs = '*' , help = 'Specify the app label(s) to create migrations for.' )
276
+ if os . path . exists ( django_po ) :
277
+ now = datetime . now ( )
278
+ kw [ 'tzinfo' ] = tzinfo
279
+ raise ValidationError ( self . error_messages [ 'list' ] , code = 'list' )
280
+ class AdminEmailHandler ( logging . Handler ) :
281
+ t = select_template ( template_name , dirs )
282
+ if value in self . empty_values and self . required :
283
+ except TypeError :
284
+ from io import BytesIO
285
+ tell = property ( lambda self : self . file . tell )
286
+ continue
287
+ parser . delete_first_token ( )
288
+ class Field ( object ) :
289
+ import fcntl
290
+ if can_fail :
291
+ if template_source_loaders is None :
292
+ callback = pattern . _callback
293
+ call_command ( 'loaddata' , * fixture_labels , ** { 'verbosity' : verbosity } )
294
+ if value is None :
295
+ return int ( value )
296
+ elif '=' in part :
297
+ compare_to = [ var . resolve ( context , True ) for var in self . _varlist ]
298
+ def to_python ( self , value ) :
299
+ elif isinstance ( value , ( decimal . Decimal , float ) + six . integer_types ) :
300
+ @ contextlib . contextmanager
301
+ if event . path . endswith ( '.mo' ) :
302
+ if node . must_be_first and nodelist :
303
+ return False
304
+ self . auto_id = auto_id
305
+ def rss_attributes ( self ) :
306
+ message = ungettext_lazy ( 'Ensure this value has at most %(limit_value)d character (it has %(show_value)d).' , 'Ensure this value has at most %(limit_value)d characters (it has %(show_value)d).' , 'limit_value' )
307
+ if six . PY3 :
308
+ return '{%s}' % ', ' . join ( '%r: %r' % ( k , v ) for k , v in six . iteritems ( self ) )
309
+ pass
310
+ def base64_hmac ( salt , value , key ) :
311
+ del _active . value
312
+ for basedir in basedirs :
313
+ else :
314
+ full_path = self . path ( name )
315
+ if not self . form . is_bound :
316
+ del self . dicts [ - 1 ] [ key ]
317
+ self . reader_leaves ( )
318
+ regex = re . compile ( r'^(?:[a-z0-9\.\-]*)://' r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}(?<!-)\.?)|' r'localhost|' r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|' r'\[?[A-F0-9]*:[A-F0-9:]+\]?)' r'(?::\d+)?' r'(?:/?|[/?]\S+)$' , re . IGNORECASE )
319
+ class Widget ( six . with_metaclass ( MediaDefiningClass ) ) :
320
+ get_language = lambda : settings . LANGUAGE_CODE
321
+ from django . utils . six . moves . urllib . parse import urlsplit , urlunsplit
322
+ from email . mime . text import MIMEText
323
+ self . fed = [ ]
324
+ class MinLengthValidator ( BaseValidator ) :
325
+ self . lookups = None
326
+ raise TypeError ( "If the flags are set, regex must be a regular expression string." )
327
+ return default
328
+ attrs . setdefault ( 'step' , step )
329
+ import sys
330
+ break
331
+ value = ''
332
+ to_delete . add ( model )
333
+ file_ , _ , _ = imp . find_module ( module_name , [ entry ] )
334
+ self . _cache = _caches . setdefault ( name , { } )
335
+ html4_singlets = ( 'br' , 'col' , 'link' , 'base' , 'img' , 'param' , 'area' , 'hr' , 'input' )
336
+ if os . path . isdir ( template_dir ) :
337
+ def make_key ( self , key , version = None ) :
338
+ return self . __name
339
+ if not match :
340
+ def to_python ( self , value ) :
341
+ def upper ( value ) :
342
+ ip ( )
343
+ connection = connections [ database ]
344
+ def _format_value ( self , value ) :
345
+ ctypes , opts = parse_header ( content_type . encode ( 'ascii' ) )
346
+ initial = self . initial . get ( name , field . initial )
347
+ from django . utils import six
348
+ if data in self . children :
349
+ elif isinstance ( timezone , six . string_types ) and pytz is not None :
350
+ @ register . filter ( is_safe = True )
351
+ status_code = 400
352
+ if i >= self . initial_form_count ( ) and i >= self . min_num :
353
+ return ord ( bs [ 0 ] )
354
+ if is_ignored ( file_path , self . ignore_patterns ) :
355
+ if app_config . models_module is None or app_config in excluded_apps :
356
+ return code
357
+ chunks = ( ( 60 * 60 * 24 * 365 , ungettext_lazy ( '%d year' , '%d years' ) ) , ( 60 * 60 * 24 * 30 , ungettext_lazy ( '%d month' , '%d months' ) ) , ( 60 * 60 * 24 * 7 , ungettext_lazy ( '%d week' , '%d weeks' ) ) , ( 60 * 60 * 24 , ungettext_lazy ( '%d day' , '%d days' ) ) , ( 60 * 60 , ungettext_lazy ( '%d hour' , '%d hours' ) ) , ( 60 , ungettext_lazy ( '%d minute' , '%d minutes' ) ) )
358
+ else :
359
+ message = e
360
+ return type ( form . __name__ + str ( 'FormSet' ) , ( formset , ) , attrs )
361
+ rest = value
362
+ raise SuspiciousFileOperation ( "Attempted access to '%s' denied." % name )
363
+ hidden_widget = SplitHiddenDateTimeWidget
364
+ for node in compiled_parent . nodelist :
365
+ if isinstance ( template_name , ( list , tuple ) ) :
366
+ def get_str_from_wsgi ( environ , key , default ) :
367
+ errors = [ model . check ( ** kwargs ) for model in apps . get_models ( ) if app_configs is None or model . _meta . app_config in app_configs ]
368
+ def initial_form_count ( self ) :
369
+ def j ( self ) :
370
+ pass
371
+ if format not in _serializers :
372
+ offset_mins = int ( tzinfo [ - 2 : ] ) if len ( tzinfo ) > 3 else 0
373
+ return False
374
+ if not content_type :
375
+ elif cwords [ 0 ] in subcommands and cwords [ 0 ] != 'help' :
376
+ return ip_str
377
+ else :
378
+ class HttpResponseForbidden ( HttpResponse ) :
379
+ return
380
+ nodes . append ( self )
381
+ if instance is None :
382
+ if not ip_str . split ( ':' ) [ - 1 ] == hextet :
383
+ for app_dir in app_dirs :
384
+ WARNING = 30
385
+ os . chdir ( our_home_dir )
386
+ config [ 'mailhost' ] = self . as_tuple ( config [ 'mailhost' ] )
387
+ obj . widgets = copy . deepcopy ( self . widgets )
388
+ yield buf . read ( )
389
+ if isinstance ( self . _regex , six . string_types ) :
390
+ if hasattr ( timezone , 'normalize' ) :
391
+ from django . utils import termcolors
392
+ except ( ssl . SSLError , smtplib . SMTPServerDisconnected ) :
393
+ self . stdout . write ( 'ignoring file %s in %s\n' % ( filename , dirpath ) )
394
+ default_settings = module_to_dict ( global_settings )
395
+ self . importer ( used )
396
+ def decorating_function ( user_function ) :
397
+ pass
398
+ key = self . to_field_name or 'pk'
399
+ stats [ MISSES ] += 1
400
+ return False
401
+ from django . utils import six
402
+ if self . is_reversed :
403
+ for line in text . splitlines ( True ) :
404
+ return value
405
+ return self . forms [ index ]
406
+ if isinstance ( path , six . string_types ) :
407
+ all_models = [ ]
408
+ truncate_text = self . add_truncation_text ( '' , truncate )
409
+ help = "Prints the SQL statements for the named migration."
410
+ initial = [ ]
411
+ value = value . replace ( arg , '' )
412
+ httpd = httpd_cls ( server_address , WSGIRequestHandler , ipv6 = ipv6 )
413
+ _urllib_request_moved_attributes = [ MovedAttribute ( "urlopen" , "urllib2" , "urllib.request" ) , MovedAttribute ( "install_opener" , "urllib2" , "urllib.request" ) , MovedAttribute ( "build_opener" , "urllib2" , "urllib.request" ) , MovedAttribute ( "pathname2url" , "urllib" , "urllib.request" ) , MovedAttribute ( "url2pathname" , "urllib" , "urllib.request" ) , MovedAttribute ( "getproxies" , "urllib" , "urllib.request" ) , MovedAttribute ( "Request" , "urllib2" , "urllib.request" ) , MovedAttribute ( "OpenerDirector" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPDefaultErrorHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPRedirectHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPCookieProcessor" , "urllib2" , "urllib.request" ) , MovedAttribute ( "ProxyHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "BaseHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPPasswordMgr" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPPasswordMgrWithDefaultRealm" , "urllib2" , "urllib.request" ) , MovedAttribute ( "AbstractBasicAuthHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPBasicAuthHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "ProxyBasicAuthHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "AbstractDigestAuthHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPDigestAuthHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "ProxyDigestAuthHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPSHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "FileHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "FTPHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "CacheFTPHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "UnknownHandler" , "urllib2" , "urllib.request" ) , MovedAttribute ( "HTTPErrorProcessor" , "urllib2" , "urllib.request" ) , MovedAttribute ( "urlretrieve" , "urllib" , "urllib.request" ) , MovedAttribute ( "urlcleanup" , "urllib" , "urllib.request" ) , MovedAttribute ( "URLopener" , "urllib" , "urllib.request" ) , MovedAttribute ( "FancyURLopener" , "urllib" , "urllib.request" ) , MovedAttribute ( "proxy_bypass" , "urllib" , "urllib.request" ) , ]
414
+ def empty_form ( self ) :
415
+ def handle ( self , * args , ** options ) :
416
+ other_dict = args [ 0 ]
417
+ if params . get ( 'filename' ) :
418
+ try :
419
+ raise TemplateSyntaxError ( "'%s' is not a valid tag library: %s" % ( taglib , e ) )
420
+ _translations [ language ] = DjangoTranslation ( language )
421
+ c = subject [ i ]
422
+ return IfChangedNode ( nodelist_true , nodelist_false , * values )
423
+ from django . core . management . base import BaseCommand , CommandError
424
+ _version = "0.91"
425
+ finally :
426
+ guessed_path = path . join ( tempdir , guessed_filename )
427
+ else :
428
+ value = '.' . join ( reversed ( parts ) )
429
+ def __init__ ( self ) :
430
+ class RssUserland091Feed ( RssFeed ) :
431
+ new_filenames . append ( os . path . join ( dirpath , filename ) )
432
+ parser . add_option ( '-v' , '--verbosity' , action = 'store' , dest = 'verbosity' , default = '1' , type = 'choice' , choices = [ '0' , '1' , '2' , '3' ] , help = 'Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output' )
433
+ urlconf = settings . ROOT_URLCONF
434
+ return [ '' ] , [ [ ] ]
435
+ else :
436
+ continue
437
+ def dec ( func ) :
438
+ if old_attr is None :
439
+ name , val = forbid_multi_line_headers ( name , val , self . encoding )
440
+ class Input ( Widget ) :
441
+ handler . startElement ( "channel" , self . root_attributes ( ) )
442
+ opts = tuple ( s for s in styles if s in opt_dict . keys ( ) )
443
+ warnings . warn ( "django.utils.tzinfo.FixedOffset will be removed in Django 1.9. " "Use django.utils.timezone.get_fixed_timezone instead." , RemovedInDjango19Warning )
444
+ self . fixture_object_count = 0
445
+ extra_classes . add ( self . form . required_css_class )
446
+ from django . utils import six
447
+ filelist = random . sample ( filelist , int ( num_entries / self . _cull_frequency ) )
448
+ try :
449
+ if path . exists ( new_path ) :
450
+ class Lexer ( object ) :
451
+ error_messages = opts . error_messages [ NON_FIELD_ERRORS ]
452
+ self . _table = table
453
+ return _trans . to_locale ( language )
454
+ tempdir = tempfile . mkdtemp ( prefix = prefix , suffix = '_extract' )
455
+ tt = ( 2037 , ) + tt [ 1 : ]
456
+ except Exception as e :
457
+ def __iter__ ( self ) :
458
+ else :
459
+ os . chmod ( full_path , self . file_permissions_mode )
460
+ filelist = [ os . path . join ( self . _dir , fname ) for fname in glob . glob1 ( self . _dir , '*%s' % self . cache_suffix ) ]
461
+ for log in existing :
462
+ for app_label in app_labels :
463
+ return fastcgi_help ( "Invalid combination of host, port, socket." )
464
+ def as_widget ( self , widget = None , attrs = None , only_initial = False ) :
465
+ return
466
+ SINGLE_BRACE_END = '}'
467
+ cache_key = 'views.decorators.cache.cache_header.%s.%s' % ( key_prefix , url . hexdigest ( ) )
468
+ substitutions [ 'clear_checkbox_id' ] = conditional_escape ( checkbox_id )
469
+ else :
470
+ if self . interactive :
471
+ yield safe_join ( template_dir , template_name )
472
+ if delta < 0 :
473
+ def error ( self , message ) :
474
+ return template_name
475
+ def update_watch ( sender = None , ** kwargs ) :
476
+ else :
477
+ val2 = self . var2 . resolve ( context , True )
478
+ class NullBooleanSelect ( Select ) :
479
+ if not isinstance ( value , ( bytes , six . text_type ) ) :
480
+ parser . add_argument ( '--noinput' , action = 'store_false' , dest = 'interactive' , default = True , help = 'Tells Django to NOT prompt the user for input of any kind.' )
481
+ return default
482
+ try :
483
+ msguniq_options = [ '--to-code=utf-8' ]
484
+ if self . locale_paths :
485
+ version = get_complete_version ( version )
486
+ strip_prefix = lambda s : s [ 1 : ] if s . startswith ( "u'" ) else s
487
+ ns = "http://www.w3.org/2005/Atom"
488
+ else :
489
+ app_dir = os . path . join ( app_config . path , 'fixtures' )
490
+ from gzip import GzipFile
491
+ self . active_writers = 0
492
+ raise ValueError ( "Negative base36 conversion input." )
493
+ def __eq__ ( self , other ) :
494
+ try :
495
+ self . lasttag = tag = match . group ( 1 ) . lower ( )
496
+ else :
497
+ secret = settings . SECRET_KEY
498
+ project_name , target = options . pop ( 'name' ) , options . pop ( 'directory' )
499
+ logger = logging . getLogger ( 'django.request' )
500
+ tmpdir = tempfile . mkdtemp ( )
501
+ def handle_m2m ( value ) :
502
+ except ImportError as e :
503
+ self . stdout . write ( " No optimizations possible." )
504
+ add_move ( MovedModule ( "_thread" , "thread" ) )
505
+ locale = options . get ( 'locale' )
506
+ self . cookies [ key ] [ 'expires' ] = cookie_date ( time . time ( ) + max_age )
507
+ if isinstance ( f , models . FileField ) :
508
+ os . unlink ( work_file )
509
+ block_re = re . compile ( r"""^\s*blocktrans(\s+.*context\s+((?:"[^"]*?")|(?:'[^']*?')))?(?:\s+|$)""" )
510
+ import time as _time
511
+ raise CommandError ( "Django doesn't know which syntax to use for your SQL statements,\n" + "because you haven't properly specified the ENGINE setting for the database.\n" + "see: https://docs.djangoproject.com/en/dev/ref/settings/#databases" )
512
+ if self . verbosity > 0 :
513
+ def delete ( self , key , version = None ) :
514
+ if representative is None :
515
+ self . language = language
516
+ callable = callable
517
+ iteritems = _iteritems
518
+ continue
519
+ syear = "%04d" % ( dt . year , )
520
+ m = re . match ( naiveip_re , options [ 'addrport' ] )
521
+ if isinstance ( template , ( list , tuple ) ) :
522
+ def __exit__ ( self , exc_type , exc_value , tb ) :
523
+ yield "from __future__ import unicode_literals"
524
+ try :
525
+ if timeout is None :
526
+ def end_serialization ( self ) :
527
+ if att_name == 'id' and extra_params == { 'primary_key' : True } :
528
+ try :
529
+ parser . add_argument ( '--plain' , action = 'store_true' , dest = 'plain' , help = 'Tells Django to use plain Python, not IPython or bpython.' )
530
+ class DisallowedRedirect ( SuspiciousOperation ) :
531
+ else :
532
+ raise CommandError ( "You must supply at least one app label when using --empty." )
533
+ i = 0
534
+ if value and hasattr ( value , "url" ) :
535
+ self . validate_key ( key )
536
+ if i >= 0 :
537
+ elif indexes [ column_name ] [ 'unique' ] :
538
+ else :
539
+ assert not isinstance ( to , six . string_types ) , '"to" argument must be a list or tuple'
540
+ WSGIServer = module . WSGIServer
541
+ def _createdir ( self ) :
542
+ if message_context :
543
+ else :
544
+ sites = [ ]
545
+ def set ( self , key , value , timeout = DEFAULT_TIMEOUT , version = None ) :
546
+ def setlistdefault ( self , key , default_list = None ) :
547
+ self . widget . choices = self . choices
548
+ trim_whitespace_re = re . compile ( '\s*\n\s*' )
549
+ input_type = 'text'
550
+ def __getinitargs__ ( self ) :
551
+ raise
552
+ location = '//%s' % self . get_full_path ( )
553
+ msgs = msgs . decode ( 'utf-8' )
554
+ try :
555
+ from django . utils import six
556
+ raise ValueError ( 'Unable to configure handler ' '%r: %s' % ( name , e ) )
557
+ with self . mutex :
558
+ from django . middleware . csrf import get_token
559
+ except OSError as e :
560
+ value = self . make_bytes ( value )
561
+ queryset = self . model . _default_manager
562
+ if settings . USE_TZ and value is not None and timezone . is_naive ( value ) :
563
+ with transaction . atomic ( using = connection . alias , savepoint = connection . features . can_rollback_ddl ) :
564
+ if serializers is None :
565
+ return self . template_cache [ key ]
566
+ def flatten ( self ) :
567
+ def is_valid_ipv6_address ( ip_str ) :
568
+ pass
569
+ url = None
570
+ self . _request_middleware = None
571
+ import importlib
572
+ self . version = params . get ( 'VERSION' , 1 )
573
+ if not isinstance ( index , ( slice , ) + six . integer_types ) :
574
+ @ register . filter ( is_safe = False )
575
+ members = [ member for member in self . _archive . getmembers ( ) if member . name != 'pax_global_header' ]
576
+ return obj
577
+ return list ( urlsplit ( url ) )
578
+ else :
579
+ raise AttributeError ( "%s could not be imported " % self . name )
580
+ if self . verbosity > 1 :
581
+ def validate ( self , value ) :
582
+ self . _cache . set ( key , value , self . get_backend_timeout ( timeout ) )
583
+ from django . utils . six . moves import zip
584
+ self . _setup ( )
585
+ builtins = [ ]
586
+ except ValueError :
587
+ daemon_kwargs [ 'out_log' ] = options [ 'outlog' ]
588
+ return
589
+ MIN_NUM_FORM_COUNT = 'MIN_NUM_FORMS'
590
+ validate_comma_separated_integer_list = RegexValidator ( comma_separated_int_list_re , _ ( 'Enter only digits separated by commas.' ) , 'invalid' )
591
+ def is_checked ( self ) :
592
+ return self . management_form . cleaned_data [ INITIAL_FORM_COUNT ]
593
+ pass
594
+ for closable in self . _closable_objects :
595
+ def __init__ ( self , * args , ** kwargs ) :
596
+ from django . forms . fields import Field , FileField
597
+ self . file . close ( )
598
+ parts = viewname . split ( ':' )
599
+ raise ValidationError ( ungettext ( "Please submit %d or more forms." , "Please submit %d or more forms." , self . min_num ) % self . min_num , code = 'too_few_forms' )
600
+ def get_json_data ( self , escape_html = False ) :
601
+ MAXSIZE = int ( ( 1 << 31 ) - 1 )
602
+ yield ''
603
+ result . parent = self
604
+ eol_message = message . replace ( str ( '\r\n' ) , str ( '\n' ) ) . replace ( str ( '\r' ) , str ( '\n' ) )
605
+ return 1 << 31
606
+ def _populate ( self ) :
607
+ if not token . contents :
608
+ from django . core import checks
609
+ if len ( parts ) > 1 and parts [ - 1 ] in self . compression_formats :
610
+ newline = "\n"
611
+ def widget_attrs ( self , widget ) :
612
+ pot_path = os . path . join ( path , '%s.pot' % str ( self . domain ) )
613
+ for field , error_list in error . items ( ) :
614
+ def _set_regex ( self , regex ) :
615
+ if dirname and not os . path . exists ( dirname ) :
616
+ output_transaction = True
617
+ return force_text ( ngettext ( singular , plural , number ) )
618
+ def add_prefix ( self , field_name ) :
619
+ return False
620
+ try :
621
+ original_path = os . path . join ( tmpdir , 'original' )
622
+ in_index = - 3 if is_reversed else - 2
623
+ lexer = lexer_class ( template_string , origin )
624
+ self . _non_form_errors = self . error_class ( )
625
+ if hasattr ( test_runner_class , 'add_arguments' ) :
626
+ def __repr__ ( self ) :
627
+ if var . endswith ( '.' ) :
628
+ import json
629
+ options = [ opt for opt in options if opt [ 0 ] not in prev_opts ]
630
+ fs_encoding = sys . getfilesystemencoding ( ) or sys . getdefaultencoding ( )
631
+ if isinstance ( message , ValidationError ) :
632
+ def __init__ ( self , stream_or_string , ** options ) :
633
+ return _import_module ( self . mod )
634
+ continue
635
+ if isinstance ( slots , str ) :
636
+ self . __starttag_text = None
637
+ return ( ord ( byte ) for byte in buf )
638
+ raise UnrecognizedArchiveFormat ( "File object not a recognized archive format." )
639
+ self . options . update ( { 'use_decimal' : False } )
640
+ def validate ( self , value ) :
641
+ fail_message = 'created'
642
+ states = { 'div' : both_before + [ Tok ( "punct" , literals ( "/= /" ) , next = 'reg' ) , ] + both_after , 'reg' : both_before + [ Tok ( "regex" , r""" / # opening slash # First character is.. ( [^*\\/[] # anything but * \ / or [ | \\. # or an escape sequence | \[ # or a class, which has ( [^\]\\] # anything but \ or ] | \\. # or an escape sequence )* # many times \] ) # Following characters are same, except for excluding a star ( [^\\/[] # anything but \ / or [ | \\. # or an escape sequence | \[ # or a class, which has ( [^\]\\] # anything but \ or ] | \\. # or an escape sequence )* # many times \] )* # many times / # closing slash [a-zA-Z0-9]* # trailing flags """ , next = 'div' ) , ] + both_after , }
643
+ for item in values :
644
+ def utcoffset ( self , dt ) :
645
+ leave_locale_alone = False
646
+ from __future__ import unicode_literals
647
+ def __str__ ( self ) :
648
+ end = rawdata [ k : endpos ] . strip ( )
649
+ return zipfile . ZipFile . read ( self , self . namelist ( ) [ 0 ] )
650
+ def render ( self , context ) :
651
+ confirm = input ( 'Please enter either "yes" or "no": ' )
652
+ encoded = encoded . replace ( ";" , "\\073" ) . replace ( "," , "\\054" )
653
+ widget . is_localized = self . is_localized
654
+ klass . deconstruct = deconstruct
655
+ if extend :
656
+ connection = connections [ options [ 'database' ] ]
657
+ try :
658
+ warnings . warn ( "No fixture named '%s' found." % fixture_name )
659
+ jan1_weekday = self . data . replace ( month = 1 , day = 1 ) . weekday ( ) + 1
660
+ if self . lookups is not None :
661
+ init_path = os . path . join ( migrations_directory , "__init__.py" )
662
+ return value
663
+ value = timezone . normalize ( value )
664
+ @ property
665
+ subject = self . subject
666
+ return '0'
667
+ super ( LoaderOrigin , self ) . __init__ ( display_name )
668
+ if pos >= last :
669
+ from django . conf import settings
670
+ def normalize ( pattern ) :
671
+ import operator
672
+ finally :
673
+ def tzname ( self , dt ) :
674
+ if self . allow_files :
675
+ if custom_sql :
676
+ msg = SafeMIMEMultipart ( _subtype = self . alternative_subtype , encoding = encoding )
677
+ if field in self . cleaned_data :
678
+ if args and kwargs :
679
+ builtins . append ( import_library ( module ) )
680
+ return self . compress ( [ ] )
681
+ def parse_endtag ( self , i ) :
682
+ import types
683
+ def M ( self ) :
684
+ self . creation_counter = Field . creation_counter
685
+ attrs = { 'model' : model }
686
+ except ( ImportError , AttributeError ) as e :
687
+ def __getitem__ ( self , key ) :
688
+ if "=" in x :
689
+ def tell ( self ) :
690
+ raise AttributeError ( "This QueryDict instance is immutable" )
691
+ @ python_2_unicode_compatible
692
+ if p . find ( ':_(' ) >= 0 :
693
+ flags = 0
694
+ target_app_labels_only = False
695
+ class IfChangedNode ( Node ) :
696
+ Image . open ( file ) . verify ( )
697
+ if self . selected_fields is None or field . attname in self . selected_fields :
698
+ name = self . split_leading_dir ( name ) [ 1 ]
699
+ from django . utils import six
700
+ except AttributeError :
701
+ return arg
702
+ return _trans . get_language_from_path ( path )
703
+ if ( db . settings_dict [ 'ATOMIC_REQUESTS' ] and db . alias not in non_atomic_requests ) :
704
+ class InlineForeignKeyField ( Field ) :
705
+ if is_aware ( o ) :
706
+ try :
707
+ self . years = range ( this_year , this_year + 10 )
708
+ for refto , refs in references . items ( ) :
709
+ from django . core . exceptions import AppRegistryNotReady
710
+ format_module_path = settings . FORMAT_MODULE_PATH
711
+ if ch in '*?+' :
712
+ try :
713
+ else :
714
+ if sent :
715
+ _cookie_encodes_correctly = http_cookies . SimpleCookie ( ) . value_encode ( ';' ) == ( ';' , '"\\073"' )
716
+ nodelist_empty = parser . parse ( ( 'endfor' , ) )
717
+ except ( KeyError , AttributeError ) as exc :
718
+ class ObjectDoesNotExist ( Exception ) :
719
+ @ register . filter ( is_safe = False )
720
+ return iri
721
+ value = environ . get ( str ( key ) , str ( default ) )
722
+ def __init__ ( self , lexer ) :
723
+ return int ( time . mktime ( self . data . timetuple ( ) ) )
724
+ try :
725
+ safe_data = { }
726
+ import stat
727
+ def write_items ( self , handler ) :
728
+ wrap = allow_lazy ( wrap , six . text_type )
729
+ from __future__ import unicode_literals
730
+ for path in paths :
731
+ sys . stdout . write ( self . main_help_text ( ) + '\n' )
732
+ def __init__ ( self ) :
733
+ import sys
734
+ def npgettext ( context , singular , plural , number ) :
735
+ def __init__ ( self ) :
736
+ from django . utils . module_loading import import_string
737
+ else :
738
+ continue
739
+ import warnings
740
+ if exp is not None and exp < time . time ( ) :
741
+ if t is not None :
742
+ time_str = time_str . decode ( 'utf-8' )
743
+ field_notes . append ( 'Field renamed because of name conflict.' )
744
+ super ( QueryDict , self ) . __setitem__ ( key , value )
745
+ def write_message ( self , message ) :
746
+ def extract ( self ) :
747
+ return mark_safe ( '\n' . join ( output ) )
748
+ super ( LocaleRegexURLResolver , self ) . __init__ ( None , urlconf_name , default_kwargs , app_name , namespace )
749
+ var_obj = None
750
+ response = middleware . process_template_response ( request , response )
751
+ loop_dict [ 'counter' ] = i + 1
752
+ return size
753
+ is_a_tty = hasattr ( sys . stdout , 'isatty' ) and sys . stdout . isatty ( )
754
+ if isinstance ( offset , timedelta ) :
755
+ self . _assert_mutable ( )
756
+ return int ( values [ 0 ] ) , ch
757
+ import codecs
758
+ try :
759
+ @ register . tag
760
+ result . setFormatter ( formatter )
761
+ memo [ id ( self ) ] = result
762
+ other = other . __cast ( )
763
+ if isinstance ( other , Promise ) :
764
+ else :
765
+ self . _cull ( )
766
+ e . args = ( "Problem installing fixtures: %s" % e , )
767
+ os . makedirs ( directory )
768
+ raise OverflowError ( 'dklen too big' )
769
+ return clean_ipv6_address ( value , self . unpack_ipv4 )
770
+ from importlib import import_module
771
+ parser . add_argument ( '--pks' , dest = 'primary_keys' , help = "Only dump objects with given primary keys. " "Accepts a comma separated list of keys. " "This option will only work when you specify one model." )
772
+ if header_end == - 1 :
773
+ def b ( s ) :
774
+ g = generator . BytesGenerator ( fp , mangle_from_ = False )
775
+ import unicodedata
776
+ if t . token_type == TOKEN_BLOCK :
777
+ if len ( self . namelist ( ) ) != 1 :
778
+ else :
779
+ for medium in extend :
780
+ if url :
781
+ from collections import defaultdict
782
+ now = datetime . datetime ( now . year , now . month , now . day )
783
+ while i < len ( subject ) and subject [ i ] != c :
784
+ self . _changed_data = [ ]
785
+ yield parse_boundary_stream ( sub_stream , 1024 )
786
+ return value . replace ( tzinfo = timezone )
787
+ def __init__ ( self , cyclevars , variable_name = None , silent = False ) :
788
+ if six . PY3 :
789
+ return value . strftime ( format )
790
+ daemon_kwargs [ 'err_log' ] = options [ 'errlog' ]
791
+ for migration_name in migration_names :
792
+ from itertools import chain
793
+ return obj_dict
794
+ buffer_ = line
795
+ raise ValueError ( "Key '%s' not found" % key )
796
+ if self . _request_middleware is None :
797
+ def render ( self , name , value , attrs = None ) :
798
+ TYPE = RAW
799
+ TYPE = FILE
800
+ tok = '"' + guts + '"'
801
+ condition = TemplateIfParser ( parser , bits ) . parse ( )
802
+ return apps . get_model ( model_identifier )
803
+ return loader . get_template ( template )
804
+ def catalog ( ) :
805
+ def handle_data ( self , d ) :
806
+ def lock ( f , flags ) :
807
+ template_string = force_text ( template_string )
808
+ if not os . path . exists ( potfile ) :
809
+ self . active_writers -= 1
810
+ if hasattr ( self , '_coerce' ) :
811
+ return _trans . templatize ( src , origin )
812
+ def compile_string ( template_string , origin ) :
813
+ try :
814
+ raise NotImplementedError ( 'Subclasses must implement this method.' )
815
+ @ wraps ( func )
816
+ return value . replace ( " " , "\xa0" )
817
+ request_middleware . append ( mw_instance . process_request )
818
+ if not boundary or not cgi . valid_boundary ( boundary ) :
819
+ val = list ( val )
820
+ except ValueError :
821
+ import re
822
+ capfirst = allow_lazy ( capfirst , six . text_type )
823
+ def eval ( self , context ) :
824
+ from django . utils . six import StringIO
825
+ self . _size = size
826
+ errors = [ ]
827
+ if 'error_messages' in kwargs :
828
+ self . _add_local_translations ( )
829
+ class Node ( object ) :
830
+ if os . path . sep in fixture_name :
831
+ def __init__ ( self , tokens ) :
832
+ if primary_keys :
833
+ def __mod__ ( self , rhs ) :
834
+ except socket . error as e :
835
+ self . __dict__ [ '_setupfunc' ] = func
836
+ data = None
837
+ from django . utils . text import get_valid_filename
838
+ elif auto_id :
839
+ return json . dumps ( self . get_json_data ( escape_html ) )
840
+ self . nodelist_empty = NodeList ( )
841
+ except ValidationError as e :
842
+ app = 'django'
843
+ try :
844
+ for char in self . add_truncation_text ( '' , truncate ) :
845
+ etags = ETAG_MATCH . findall ( etag_str )
846
+ if field_type == 'AutoField(' :
847
+ c = SimpleCookie ( )
848
+ attrs = { "model" : smart_text ( obj . _meta ) }
849
+ return ip_str . rsplit ( ':' , 1 ) [ 1 ]
850
+ def flatten_result ( source ) :
851
+ if request . _post_parse_error :
852
+ except KeyError :
853
+ for f in opts . fields :
854
+ constant_string = constant_string . replace ( "\n" , "" )
855
+ def incr ( self , key , delta = 1 , version = None ) :
856
+ if type ( result ) in ( ConvertingDict , ConvertingList , ConvertingTuple ) :
857
+ message = message % ( ', ' . join ( missing_fields ) , opts . model . __name__ )
858
+ comment_lineno_cache = None
859
+ else :
860
+ result = avoid_wrapping ( name % count )
861
+ values = [ ]
862
+ if hasattr ( field . rel . to . _default_manager , 'get_by_natural_key' ) :
863
+ self . dict = OrderedDict ( ( ( x , None ) for x in iterable ) if iterable else [ ] )
864
+ else :
865
+ @ register . tag ( 'filter' )
866
+ def _samefile ( src , dst ) :
867
+ requires_system_checks = False
868
+ elif not hasattr ( message , 'message' if six . PY3 else 'code' ) :
869
+ except KeyError :
870
+ try :
871
+ try :
872
+ m = int ( d ) - d
873
+ def make_key ( self , key , version = None ) :
874
+ filemsg = 'file %s, ' % origin
875
+ if hasattr ( cls , k ) :
876
+ else :
877
+ raise TemplateSyntaxError ( "back called without some previous " "parsing" )
878
+ for field_name in self . fields :
879
+ self . _upload_handlers = upload_handlers
880
+ if options . get ( 'no_color' ) :
881
+ if self . instance . pk is not None :
882
+ try :
883
+ return klass
884
+ value = [ ]
885
+ try :
886
+ import time
887
+ raise NoReverseMatch ( "%s is not a registered namespace" % key )
888
+ nodelist . append ( node )
889
+ error_messages [ 'invalid' ] = error_message
890
+ if options . traceback or not isinstance ( e , CommandError ) :
891
+ return self . _choices
892
+ try :
893
+ try :
894
+ try :
895
+ to_python = self . _get_to_python ( pk_field )
896
+ self . _varlist = varlist
897
+ return encoding
898
+ if now and not isinstance ( now , datetime . datetime ) :
899
+ if token . contents == 'else' :
900
+ return results
901
+ pluralmatch = plural_re . match ( t . contents )
902
+ for middleware_method in self . _exception_middleware :
903
+ from xml . sax . saxutils import XMLGenerator
904
+ if fields :
905
+ for c in reversed ( self . __class__ . __mro__ ) :
906
+ from django . utils import six
907
+ return
908
+ return '<Page %s of %s>' % ( self . number , self . paginator . num_pages )
909
+ else :
910
+ default_error_messages = { 'invalid' : _ ( 'Enter a number.' ) , 'max_digits' : ungettext_lazy ( 'Ensure that there are no more than %(max)s digit in total.' , 'Ensure that there are no more than %(max)s digits in total.' , 'max' ) , 'max_decimal_places' : ungettext_lazy ( 'Ensure that there are no more than %(max)s decimal place.' , 'Ensure that there are no more than %(max)s decimal places.' , 'max' ) , 'max_whole_digits' : ungettext_lazy ( '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.' , 'max' ) , }
911
+ _called_from_command_line = False
912
+ if opts . model :
913
+ def copy ( self ) :
914
+ collect = [ ]
915
+ if len ( value ) != 1 :
916
+ self . blocks = dict ( ( n . name , n ) for n in nodelist . get_nodes_by_type ( BlockNode ) )
917
+ label = ''
918
+ old_attr = name
919
+ ch , escaped = next ( input_iter )
920
+ except ( AttributeError , UnsupportedOperation ) :
921
+ raise ValidationError ( self . error_messages [ 'invalid_date' ] , code = 'invalid_date' )
922
+ def __init__ ( self , request , template , context = None , content_type = None , status = None , current_app = None ) :
923
+ if self . field . cache_choices :
924
+ def fix_location_header ( request , response ) :
925
+ del attr
926
+ pk_key = "%s-%s" % ( self . add_prefix ( i ) , self . model . _meta . pk . name )
927
+ from __future__ import unicode_literals
928
+ from __future__ import unicode_literals
929
+ def widget_attrs ( self , widget ) :
930
+ value = self . to_python ( value ) . strip ( )
931
+ yield line
932
+ self . file . write ( raw_data )
933
+ self . empty_label = empty_label
934
+ TemplateLoader = import_string ( loader )
935
+ alter_sql . extend ( [ '-- ' + sql for sql in connection . creation . sql_for_pending_references ( model , style , pending_references ) ] )
936
+ if response . streaming :
937
+ output . insert ( 0 , error_row % force_text ( top_errors ) )
938
+ @ register . filter ( is_safe = True )
939
+ raise ImproperlyConfigured ( 'Loader does not define a "load_template" callable template source loader' )
940
+ new_value . append ( self . coerce ( choice ) )
941
+ for i in range ( 0 , self . total_form_count ( ) ) :
942
+ raise NoReverseMatch ( "Reverse for '%s' with arguments '%s' and keyword " "arguments '%s' not found. %d pattern(s) tried: %s" % ( lookup_view_s , args , kwargs , len ( patterns ) , patterns ) )
943
+ except CommandError :
944
+ table_output . append ( " " . join ( field_output ) )
945
+ response = self . get_response ( request )
946
+ import django . core . checks . compatibility . django_1_7_0
947
+ escaped = True
948
+ self . unclosed_block_tag ( [ endtag ] )
949
+ def __init__ ( self , cmd , ** kwargs ) :
950
+ if len ( list_ ) == 0 :
951
+ return value
952
+ try :
953
+ max_width = min ( ( line . endswith ( '\n' ) and width + 1 or width ) , width )
954
+ result = getattr ( t , translation_function ) ( eol_message )
955
+ import hmac
956
+ from django . utils import six , lru_cache
957
+ models = app_config . get_models ( include_auto_created = True )
958
+ raise TemplateDoesNotExist ( ', ' . join ( not_found ) )
959
+ return False
960
+ __all__ = ( 'Template' , 'Context' , 'RequestContext' , 'compile_string' )
961
+ def conditional_escape ( text ) :
962
+ if not isinstance ( candidate , six . string_types ) :
963
+ comment = [ ]
964
+ emit_post_migrate_signal ( set ( all_models ) , verbosity , interactive , database )
965
+ full_statement . append ( ' %s%s' % ( line , ',' if i < len ( table_output ) - 1 else '' ) )
966
+ if ch == '?' :
967
+ self . inverse_match = inverse_match
968
+ self . _pk_field = pk = self . model . _meta . pk
969
+ return super ( Error , self ) . __init__ ( ERROR , * args , ** kwargs )
970
+ if token . token_type == 0 :
971
+ if 'forloop' in context :
972
+ class BoundaryIter ( six . Iterator ) :
973
+ self . path_info = path_info
974
+ def clean ( self , value ) :
975
+ args . append ( work_file )
976
+ if html :
977
+ self . is_reversed = is_reversed
978
+ def total_ordering ( cls ) :
979
+ return ''
980
+ final_output . append ( '-- The following references should be added but depend on non-existent tables:' )
981
+ choices = [ ( i , i ) for i in range ( 1 , 32 ) ]
982
+ self . _clean_form ( )
983
+ for handler in handlers :
984
+ if imatch :
985
+ return None
986
+ factor = 0
987
+ from django . core . management . sql import sql_custom
988
+ l = len ( tokens )
989
+ if fk_name :
990
+ except HTMLParseError :
991
+ view_name = callback . __name__
992
+ def __setattr__ ( self , name , value ) :
993
+ self . use_l10n = use_l10n
994
+ match = kwarg_re . match ( bits [ 0 ] )
995
+ for hook in sys . path_hooks :
996
+ intrans = False
997
+ warnings . warn ( warn_msg , TranslatorCommentWarning )
998
+ def compress ( self , data_list ) :
999
+ class ViewDoesNotExist ( Exception ) :
1000
+ final_output . extend ( output )
1001
+ requires_system_checks = False
1002
+ else :
1003
+ if self . choices :
1004
+ callback , param_dict = resolver . resolve_error_handler ( status_code )
1005
+ def render ( self ) :
1006
+ return data
1007
+ else :
1008
+ level = config . pop ( 'level' , None )
1009
+ res , args = flatten_result ( item )
1010
+ obj_pk = obj_pk . pk
1011
+ return False
1012
+ class NoReverseMatch ( Exception ) :
1013
+ import json
1014
+ global _default
1015
+ def configure_handler ( self , config ) :
1016
+ if ch != '\\' :
1017
+ else :
1018
+ translated = translated % rhs
1019
+ if location is None :
1020
+ biggest_number = max ( [ x for x in numbers if x is not None ] )
1021
+ wsgi_opts = { 'maxSpare' : int ( options [ "maxspare" ] ) , 'minSpare' : int ( options [ "minspare" ] ) , 'maxChildren' : int ( options [ "maxchildren" ] ) , 'maxRequests' : int ( options [ "maxrequests" ] ) , }
1022
+ raise AttributeError ( "You cannot set content to a 304 (Not Modified) response" )
1023
+ is_usable = True
1024
+ raise ValueError ( "Not a string literal: %r" % s )
1025
+ yield 'year'
1026
+ return scheme in self . url_schemes
1027
+ if six . PY2 and value > sys . maxint :
1028
+ if match :
1029
+ def extend_nodelist ( self , nodelist , node , token ) :
1030
+ return any ( form . has_changed ( ) for form in self )
1031
+ construct_instance_exclude = list ( exclude )
1032
+ if new_conn_created :
1033
+ @ register . tag ( 'block' )
1034
+ if bf_errors :
1035
+ if not self . is_bound :
1036
+ if var . startswith ( '_(' ) and var . endswith ( ')' ) :
1037
+ __M = r'(?P<mon>\w{3})'
1038
+ return TemplateTagNode ( tag )
1039
+ def strftime ( self , fmt ) :
1040
+ if isinstance ( stream_or_string , six . string_types ) :
1041
+ setattr ( Module_six_moves_urllib_response , attr . name , attr )
1042
+ def write ( self , outfile , encoding ) :
1043
+ continue
1044
+ def add_filters ( self , filterer , filters ) :
1045
+ time_str = time_str . decode ( 'utf-8' )
1046
+ __dir__ = new_method_proxy ( dir )
1047
+ def __len__ ( self ) :
1048
+ bits = token . split_contents ( ) [ 1 : ]
1049
+ return offset . days * 86400 + offset . seconds
1050
+ yield b'' . join ( self )
1051
+ import warnings
1052
+ else :
1053
+ import warnings
1054
+ return ( TYPE , outdict , stream )
1055
+ from collections import OrderedDict
1056
+ def safe_join ( base , * paths ) :
1057
+ newline = unicode ( "\n" )
1058
+ exp = datetime . utcfromtimestamp ( timeout )
1059
+ LockFileEx . restype = BOOL
1060
+ return _serializers [ format ] . Serializer
1061
+ unpack = num_loopvars > 1
1062
+ words [ i ] = mark_safe ( word )
1063
+ initLock = Lock ( )
1064
+ @ deconstructible
1065
+ chunk_size = 64 * 2 ** 10
1066
+ def __init__ ( self , conditions_nodelists ) :
1067
+ def _save ( self , name , content ) :
1068
+ return '%s_%s' % ( id_ , first_select )
1069
+ if len ( key ) > MEMCACHE_MAX_KEY_LENGTH :
1070
+ if formfield :
1071
+ cache = caches [ settings . CACHE_MIDDLEWARE_ALIAS ]
1072
+ return nodelist_true_output or self . nodelist_true . render ( context )
1073
+ return repr ( list ( self ) )
1074
+ if number > self . num_pages :
1075
+ return force_text ( name . replace ( '\\' , '/' ) )
1076
+ return False
1077
+ save . alters_data = True
1078
+ s = s1
1079
+ return 'tag:%s%s:%s/%s' % ( bits . hostname , d , bits . path , bits . fragment )
1080
+ return 0
1081
+ if cache_timeout is None :
1082
+ class TemplateLiteral ( Literal ) :
1083
+ color_settings = termcolors . parse_color_setting ( DJANGO_COLORS )
1084
+ TRANSLATOR_COMMENT_MARK = 'Translators'
1085
+ response = self . handle_uncaught_exception ( request , resolver , sys . exc_info ( ) )
1086
+ latest_date = item_date
1087
+ value , sig = signed_value . rsplit ( self . sep , 1 )
1088
+ qs = f . value_from_object ( instance )
1089
+ from email import ( charset as Charset , encoders as Encoders , message_from_string , generator )
1090
+ if isinstance ( v , ( list , tuple ) ) :
1091
+ incomment = True
1092
+ return self . _num_pages
1093
+ return get_supported_language_variant ( accept_lang )
1094
+ if unicodedata . combining ( char ) :
1095
+ @ deconstructible
1096
+ use_base_manager = options . get ( 'use_base_manager' )
1097
+ def reverse ( viewname , urlconf = None , args = None , kwargs = None , prefix = None , current_app = None ) :
1098
+ if self . _is_rendered :
1099
+ while current_len <= length :
1100
+ def _set_response_etag ( response ) :
1101
+ @ register . filter ( "escapejs" )
1102
+ if hasattr ( mw_instance , 'process_response' ) :
1103
+ self . xml . endElement ( "object" )
1104
+ prefix = 'django_%s_template_' % self . app_or_project
1105
+ out . write ( blankout ( part , 'S' ) )
1106
+ from django . utils import six
1107
+ parser . add_argument ( 'args' , metavar = 'app_label' , nargs = '*' )
1108
+ if six . PY2 :
1109
+ self . waiting_readers = 0
1110
+ return node . render ( context )
1111
+ name , ext = os . path . splitext ( name )
1112
+ @ stringfilter
1113
+ PATTERN = """ classdef< 'class' any+ ':' suite< any* funcdef< 'def' unifunc='__unicode__' parameters< '(' NAME ')' > any+ > any* > > """
1114
+ self . invoked_for_django = True
1115
+ media_attrs = kwargs
1116
+ def read ( self , * args , ** kwargs ) :
1117
+ cull_num = num // self . _cull_frequency
1118
+ def cleanup_url ( url ) :
1119
+ def streaming_content ( self , value ) :
1120
+ import re
1121
+ self . tags [ name ] = compile_function
1122
+ create_models = set ( itertools . chain ( * manifest . values ( ) ) )
1123
+ WSGIServer ( get_internal_wsgi_application ( ) , ** wsgi_opts ) . run ( )
1124
+ def is_naive ( value ) :
1125
+ sql , references = connection . creation . sql_create_model ( model , no_style ( ) , seen_models )
1126
+ post = '<could not parse>'
1127
+ context = Context ( dict ( options , ** { base_name : name , base_directory : top_dir , 'docs_version' : docs_version , } ) , autoescape = False )
1128
+ for key in self . keyOrder :
1129
+ current_len += 1
1130
+ class SuspiciousMultipartForm ( SuspiciousOperation ) :
1131
+ from django . utils . http import urlquote
1132
+ from django . core . serializers . base import DeserializationError
1133
+ from django . utils . deprecation import RemovedInDjango19Warning
1134
+ if self . _wrapped is empty :
1135
+ origin = make_origin ( display_name , self . load_template_source , template_name , template_dirs )
1136
+ return not self . file or self . file . closed
1137
+ import warnings
1138
+ self . pubid = pubid
1139
+ if len ( bits ) not in ( 2 , 3 ) :
1140
+ return WithNode ( None , None , nodelist , extra_context = extra_context )
1141
+ _iterlists = "lists"
1142
+ from django . core . exceptions import ValidationError
1143
+ def __reduce__ ( self ) :
1144
+ if html_message :
1145
+ return False
1146
+ def __init__ ( self , name , regex , next = None ) :
1147
+ except pickle . PickleError :
1148
+ def get_public_serializer_formats ( ) :
1149
+ with open ( writer . path , "wb" ) as fh :
1150
+ def do_ifequal ( parser , token , negate ) :
1151
+ def _assert_mutable ( self ) :
1152
+ pass
1153
+ if isinstance ( data , bytes ) :
1154
+ except OSError as e :
1155
+ for pythonrc in ( os . environ . get ( "PYTHONSTARTUP" ) , '~/.pythonrc.py' ) :
1156
+ 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.' )
1157
+ return False
1158
+ for dirname in dirs [ : ] :
1159
+ try :
1160
+ val , encoded = super ( SimpleCookie , self ) . value_encode ( val )
1161
+ using_sysrandom = False
1162
+ user_settings = module_to_dict ( settings . _wrapped )
1163
+ ttl = force_text ( ttl )
1164
+ statement . append ( cleaned_line )
1165
+ if y and m and d :
1166
+ from django . utils . deprecation import RemovedInDjango19Warning
1167
+ time_str = date . strftime ( '%s, %%d %s %%Y %%H:%%M:%%S ' % ( dow , month ) )
1168
+ def u ( s ) :
1169
+ super ( AssignmentNode , self ) . __init__ ( takes_context , args , kwargs )
1170
+ except ( ValueError , TypeError ) :
1171
+ __all__ = [ 'File' ]
1172
+ return retval
1173
+ self . stream . write ( '%s\n' % msg_data )
1174
+ logger . level = logging . NOTSET
1175
+ elif basetype == 'message' and subtype == 'rfc822' :
1176
+ def value_from_datadict ( self , data , files , name ) :
1177
+ raise ValueError ( "Key '%s' not found" % key )
1178
+ except SuspiciousOperation as e :
1179
+ ttl = force_text ( ttl )
1180
+ if set ( kwargs . keys ( ) ) | set ( defaults . keys ( ) ) != set ( params ) | set ( defaults . keys ( ) ) | set ( prefix_args ) :
1181
+ if self . asvar is None :
1182
+ if isinstance ( s , ( six . text_type , Promise ) ) :
1183
+ self . stdout . write ( "Installed %d object(s) from %d fixture(s)" % ( self . loaded_object_count , self . fixture_count ) )
1184
+ left = t . led ( left , self )
1185
+ return '<ExtendsNode: extends %s>' % self . parent_name . token
1186
+ for attachment in self . attachments :
1187
+ return value
1188
+ from django . core . cache . backends . base import BaseCache , DEFAULT_TIMEOUT
1189
+ def __init__ ( self ) :
1190
+ value = next ( cycle_iter ) . resolve ( context )
1191
+ if not self . compile_function_error ( token , e ) :
1192
+ chunks = [ ]
1193
+ logging . Handler . __init__ ( self )
1194
+ conflicts = executor . loader . detect_conflicts ( )
1195
+ _localtime = None
1196
+ return self . number * self . paginator . per_page
1197
+ seen_models . add ( model )
1198
+ def clean ( self , value ) :
1199
+ if not data and initial :
1200
+ else :
1201
+ def url ( self , name ) :
1202
+ if not hasattr ( package , 'rindex' ) :
1203
+ raise
1204
+ match = RE_DATE . match ( value )
1205
+ from django . db . migrations . writer import MigrationWriter
1206
+ if value in ( None , '' ) :
1207
+ msg = "Unclosed tag '%s'. Looking for one of: %s " % ( command , ', ' . join ( parse_until ) )
1208
+ app_config = apps . get_app_config ( app_label )
1209
+ def _iterkeys ( self ) :
1210
+ shutdown_message = options . get ( 'shutdown_message' , '' )
1211
+ return self . source
1212
+ if f is None :
1213
+ def handle ( self , ** options ) :
1214
+ class CommentNode ( Node ) :
1215
+ from django . utils . encoding import force_text
1216
+ module = import_module ( module_path )
1217
+ return result
1218
+ temp_lib . tags [ name ] = lib . tags [ name ]
1219
+ if self . to_field :
1220
+ from django . http . response import ( HttpResponse , StreamingHttpResponse , HttpResponseRedirect , HttpResponsePermanentRedirect , HttpResponseNotModified , HttpResponseBadRequest , HttpResponseForbidden , HttpResponseNotFound , HttpResponseNotAllowed , HttpResponseGone , HttpResponseServerError , Http404 , BadHeaderError , JsonResponse )
1221
+ handler . addQuickElement ( "rights" , item [ 'item_copyright' ] )
1222
+ def byte2int ( bs ) :
1223
+ return lazy_number ( ngettext , str , singular = singular , plural = plural , number = number )
1224
+ class Command ( BaseCommand ) :
1225
+ stream . unget ( chunk )
1226
+ none_model_fields = [ k for k , v in six . iteritems ( fields ) if not v ]
1227
+ _func_defaults = "func_defaults"
1228
+ parser . add_argument ( '--exclude' , '-x' , default = [ ] , dest = 'exclude' , action = 'append' , help = 'Locales to exclude. Default is none. Can be used multiple times.' )
1229
+ try :
1230
+ raise ExternalReferenceForbidden ( context , base , sysid , pubid )
1231
+ with connection . constraint_checks_disabled ( ) :
1232
+ delta = expires - expires . utcnow ( )
1233
+ super ( Serializer , self ) . handle_field ( obj , field )
1234
+ pass
1235
+ else :
1236
+ else :
1237
+ errors . append ( Error ( "%s was connected to the '%s' signal " "with a lazy reference to the '%s' sender, " "which has not been installed." % ( description , name , '.' . join ( reference ) ) , obj = receiver . __module__ , hint = None , id = 'signals.E001' ) )
1238
+ kwargs [ 'instance' ] = self . _existing_object ( pk )
1239
+ if len ( bits ) < 2 :
1240
+ return copy . deepcopy ( self . _wrapped , memo )
1241
+ loaded_objects_in_fixture = 0
1242
+ return result
1243
+ super ( RadioChoiceInput , self ) . __init__ ( * args , ** kwargs )
1244
+ self . dicts [ - 1 ] [ key ] = value
1245
+ from django . core . cache . backends . base import BaseCache , DEFAULT_TIMEOUT
1246
+ if ( self . max_digits is not None and self . decimal_places is not None and whole_digits > ( self . max_digits - self . decimal_places ) ) :
1247
+ if not value and self . required :
1248
+ base_url += '/'
1249
+ if dirname and not os . path . exists ( dirname ) :
1250
+ def regex ( self ) :
1251
+ parser . add_argument ( 'args' , nargs = '*' )
1252
+ if plan_node in loader . applied_migrations :
1253
+ self . _regex_dict [ language_code ] = regex_compiled
1254
+ self . file . seek ( 0 )
1255
+ return self . __name
1256
+ self . _body = self . read ( )
1257
+ return result
1258
+ boundary = opts . get ( 'boundary' )
1259
+ raise InvalidCacheBackendError ( "Could not find backend '%s': %s" % ( backend , e ) )
1260
+ else :
1261
+ def save_existing_objects ( self , commit = True ) :
1262
+ from django . core . mail . utils import DNS_NAME
1263
+ needs_multipart_form = True
1264
+ pass
1265
+ def indexbytes ( buf , i ) :
1266
+ __getattr__ = new_method_proxy ( getattr )
1267
+ sep = len ( hextet [ 0 ] . split ( ':' ) ) + len ( hextet [ 1 ] . split ( ':' ) )
1268
+ def __contains__ ( self , item ) :
1269
+ bits = host . rsplit ( ':' , 1 )
1270
+ try :
1271
+ mask = ( pyinotify . IN_MODIFY | pyinotify . IN_DELETE | pyinotify . IN_ATTRIB | pyinotify . IN_MOVED_FROM | pyinotify . IN_MOVED_TO | pyinotify . IN_CREATE )
1272
+ class MiddlewareNotUsed ( Exception ) :
1273
+ import os
1274
+ handler = self . configure_handler ( handlers [ name ] )
1275
+ else :
1276
+ with connections [ db ] . cursor ( ) as cursor :
1277
+ return datetime . time ( ** kw )
1278
+ filelist = _cached_filenames + new_filenames + _error_files
1279
+ strip_tags = allow_lazy ( strip_tags )
1280
+ self . queryset = field . queryset
1281
+ next = advance_iterator
1282
+ import_module ( templatetag_module )
1283
+ def tag ( self , name = None , compile_function = None ) :
1284
+ if kwargs . pop ( 'ipv6' , False ) :
1285
+ def writer ( self ) :
1286
+ class InvalidTemplateLibrary ( Exception ) :
1287
+ def render ( self , context ) :
1288
+ self . allow_empty_first_page = allow_empty_first_page
1289
+ s = s . replace ( '\t' , '\\t' )
1290
+ needs_multipart_form = False
1291
+ self . handle_starttag ( tag , attrs )
1292
+ try :
1293
+ self . _catalog . update ( other . _catalog )
1294
+ for f in sorted ( opts . concrete_fields + sortable_virtual_fields + opts . many_to_many ) :
1295
+ if isinstance ( message , SafeData ) :
1296
+ if not ( self . data or self . files ) :
1297
+ setattr ( filter_func , attr , value )
1298
+ if nodelist . get_nodes_by_type ( ExtendsNode ) :
1299
+ try :
1300
+ obj = super ( MultiWidget , self ) . __deepcopy__ ( memo )
1301
+ else :
1302
+ def sql_indexes ( app_config , style , connection ) :
1303
+ if app_config . models_module is None :
1304
+ raise NotImplementedError ( 'subclasses of Origin must provide a reload() method' )
1305
+ self . kwargs = kwargs
1306
+ return True
1307
+ self . paths_to_remove . append ( tempdir )
1308
+ if fk . unique :
1309
+ with connection . cursor ( ) as cursor :
1310
+ fields . update ( new_class . declared_fields )
1311
+ self . choices . append ( ( f , f . replace ( path , "" , 1 ) ) )
1312
+ use_null_fallback = False
1313
+ kwargs [ name ] = parser . compile_filter ( value )
1314
+ class SplitDateTimeField ( MultiValueField ) :
1315
+ result = middleware . process_view ( request , view_func , args , kwargs )
1316
+ return b'\r\n' . join ( headers )
1317
+ class Http404 ( Exception ) :
1318
+ def media ( self ) :
1319
+ if ( isinstance ( data , ( datetime . datetime , datetime . time ) ) and not getattr ( self . field . widget , 'supports_microseconds' , True ) ) :
1320
+ from django . conf import settings
1321
+ state_frame [ self ] = None
1322
+ error_msg = "Invalid template name in 'extends' tag: %r." % parent
1323
+ if option_value is None :
1324
+ class LocalTimezone ( ReferenceLocalTimezone ) :
1325
+ @ register . filter ( is_safe = False )
1326
+ elif field_type == 'IntegerField(' and not connection . features . can_introspect_autofield :
1327
+ return QueryDict ( '' , encoding = self . _encoding ) , MultiValueDict ( )
1328
+ def to_python ( self , value ) :
1329
+ if pk_is_not_editable ( pk ) or pk . name not in form . fields :
1330
+ if match :
1331
+ def patch_cache_control ( response , ** kwargs ) :
1332
+ def __init__ ( self , level , msg , hint = None , obj = None , id = None ) :
1333
+ tag , this_value_expr , max_value_expr , max_width = bits
1334
+ db = options . pop ( 'using' , DEFAULT_DB_ALIAS )
1335
+ if not filename :
1336
+ super ( InlineForeignKeyField , self ) . __init__ ( * args , ** kwargs )
1337
+ def __init__ ( self , name ) :
1338
+ from django . core . exceptions import ImproperlyConfigured
1339
+ def xreadlines ( self ) :
1340
+ value = [ conditional_escape ( v ) for v in value ]
1341
+ class TemplateEncodingError ( Exception ) :
1342
+ if version is None :
1343
+ self . xml . startElement ( "field" , { "name" : field . name , "type" : field . get_internal_type ( ) } )
1344
+ thefile = self . file
1345
+ sec = int ( m . group ( 'sec' ) )
1346
+ self . stdout . write ( self . style . MIGRATE_HEADING ( "Merging %s" % app_label ) )
1347
+ value = getattr ( opts , opt )
1348
+ for basedir in basedirs :
1349
+ if hasattr ( file_or_path , 'read' ) :
1350
+ @ classmethod
1351
+ def _replace_entity ( match ) :
1352
+ self . _post , self . _files = self . parse_file_upload ( self . META , data )
1353
+ path_info = get_bytes_from_wsgi ( environ , 'PATH_INFO' , '/' )
1354
+ except Exception :
1355
+ if self . empty :
1356
+ subcommand = 'help'
1357
+ def handle ( self , * app_labels , ** options ) :
1358
+ raise ValueError ( "'%s' has no field named '%s'." % ( self . __class__ . __name__ , field ) )
1359
+ model_fields = Model . _meta . get_all_field_names ( )
1360
+ f = os . path . join ( p , cmd )
1361
+ error_messages = self . fields [ field ] . error_messages
1362
+ self . _lock = threading . RLock ( )
1363
+ from UserList import UserList
1364
+ from django . http import Http404
1365
+ result . append ( self . create_token ( last_bit , ( upto , upto + len ( last_bit ) ) , False ) )
1366
+ class dummy :
1367
+ def __del__ ( self ) :
1368
+ link [ NEXT ] = root
1369
+ from django . apps import apps
1370
+ else :
1371
+ while i < l :
1372
+ def render ( self , context ) :
1373
+ def _cache ( self ) :
1374
+ re_chars = re . compile ( r'<.*?>|(.)' , re . U | re . S )
1375
+ return { }
1376
+ model = app_config . get_model ( model_label )
1377
+ if value is not result :
1378
+ return tt . tm_isdst > 0
1379
+ def _get_choices ( self ) :
1380
+ loader = MigrationLoader ( connection )
1381
+ termios . tcsetattr ( fd , termios . TCSANOW , attr_list )
1382
+ _urllib_robotparser_moved_attributes = [ MovedAttribute ( "RobotFileParser" , "robotparser" , "urllib.robotparser" ) , ]
1383
+ def render ( self , name , value , attrs = None ) :
1384
+ cursor . close ( )
1385
+ endbmatch = endblock_re . match ( t . contents )
1386
+ for key , value in parse_qsl ( query_string or '' , keep_blank_values = True ) :
1387
+ def get_resolver ( urlconf ) :
1388
+ app_dir = apps . get_app_config ( model . _meta . app_label ) . path
1389
+ if locations :
1390
+ class SignatureExpired ( BadSignature ) :
1391
+ def get ( self , key , default = None ) :
1392
+ def _mark_post_parse_error ( self ) :
1393
+ self . xml . endElement ( "field" )
1394
+ super ( GenericIPAddressField , self ) . __init__ ( * args , ** kwargs )
1395
+ from django . utils import six , timezone
1396
+ return value
1397
+ return filelist
1398
+ if self . verbosity >= 1 :
1399
+ stream = StringIO ( stream_or_string )
1400
+ from django . utils import archive
1401
+ return time_str + '-0000'
1402
+ if not self . allow_multiple_selected :
1403
+ raise TemplateSyntaxError ( "'%s' received unexpected keyword argument '%s'" % ( name , param ) )
1404
+ else :
1405
+ from django . apps import apps
1406
+ localpart = str ( Header ( localpart , encoding ) )
1407
+ class FileInput ( Input ) :
1408
+ d = { }
1409
+ return data
1410
+ for line in content . split ( "\n" ) :
1411
+ if value :
1412
+ @ property
1413
+ data [ field . attname ] = value
1414
+ s = six . text_type ( s , encoding , errors )
1415
+ raise
1416
+ if app_config . models_module is None :
1417
+ for tag in open_tags :
1418
+ _assertRegex = "assertRegex"
1419
+ class EmailBackend ( BaseEmailBackend ) :
1420
+ self . _regex_validator = validators . RegexValidator ( regex = regex )
1421
+ if error_messages and f . name in error_messages :
1422
+ parser . add_argument ( 'args' , metavar = 'app_label' , nargs = '+' , help = 'One or more application label.' )
1423
+ child_loggers . append ( existing [ i ] )
1424
+ mimetype , _ = mimetypes . guess_type ( filename )
1425
+ secret = force_bytes ( secret )
1426
+ params , varargs , varkw , defaults = getargspec ( func )
1427
+ def javascript_quote ( s , quote_double_quotes = False ) :
1428
+ i += 1
1429
+ @ deconstructible
1430
+ break
1431
+ def cleaned_data ( self ) :
1432
+ break
1433
+ key = self . make_key ( key , version = version )
1434
+ value = data . get ( name )
1435
+ changeset = timestamp . strftime ( '%Y%m%d%H%M%S' )
1436
+ if val is None :
1437
+ def clear ( self ) :
1438
+ six . reraise ( exc_type , exc_value , sys . exc_info ( ) [ 2 ] )
1439
+ raise ValidationError ( self . error_messages [ 'required' ] , code = 'required' )
1440
+ def get_default_timezone ( ) :
1441
+ def get_host ( self ) :
1442
+ return
1443
+ fmt = config . get ( 'format' , None )
1444
+ if finder . find_module ( name ) :
1445
+ ipv4_address = "%d.%d.%d.%d" % ( int ( hextets [ 6 ] [ 0 : 2 ] , 16 ) , int ( hextets [ 6 ] [ 2 : 4 ] , 16 ) , int ( hextets [ 7 ] [ 0 : 2 ] , 16 ) , int ( hextets [ 7 ] [ 2 : 4 ] , 16 ) , )
1446
+ list_ = [ bytes_to_text ( elt , self . encoding ) for elt in list_ ]
1447
+ return name , ser_fmt , cmp_fmt
1448
+ from django . utils . http import urlquote
1449
+ return value . tzinfo is None or value . tzinfo . utcoffset ( value ) is None
1450
+ else :
1451
+ code_list . append ( background [ v ] )
1452
+ kwargs [ "initial" ] = self . parent_instance . pk
1453
+ last = max ( 0 , end - 1 )
1454
+ def __init__ ( self , widgets , attrs = None ) :
1455
+ class WSGIServer ( simple_server . WSGIServer , object ) :
1456
+ except Exception as e :
1457
+ state = self . state
1458
+ def __get__ ( self , obj , tp ) :
1459
+ invalid_tag = next ( tag for tag in tags if not checks . tag_exists ( tag ) )
1460
+ if use_l10n or ( use_l10n is None and settings . USE_L10N ) :
1461
+ self . activated = True
1462
+ return '' , ''
1463
+ def wrapper ( * args , ** kwargs ) :
1464
+ id_ += '_0'
1465
+ def format_subject ( self , subject ) :
1466
+ kwargs = match . groupdict ( )
1467
+ for dict_ in self . dicts :
1468
+ self . nodelist = t . nodelist
1469
+ def __bool__ ( self ) :
1470
+ import sys
1471
+ kwargs [ 'number' ] = number_value
1472
+ return result
1473
+ if hasattr ( timezone , 'normalize' ) :
1474
+ value = force_text ( value )
1475
+ weight = 0
1476
+ super ( SimpleCookie , self ) . load ( rawdata )
1477
+ class DefusedXmlException ( ValueError ) :
1478
+ else :
1479
+ self . _leftover = b'' . join ( [ bytes , self . _leftover ] )
1480
+ formfield = f . formfield ( ** kwargs )
1481
+ return
1482
+ def _make_decorator ( * m_args , ** m_kwargs ) :
1483
+ def _set_post ( self , post ) :
1484
+ def clear ( self ) :
1485
+ if safe is not None :
1486
+ filter_expression = self . compile_filter ( token . contents )
1487
+ attrs = super ( DecimalField , self ) . widget_attrs ( widget )
1488
+ return bytes ( value )
1489
+ if self . allow_folders :
1490
+ app_list = resolver . app_dict [ ns ]
1491
+ def activate ( timezone ) :
1492
+ else :
1493
+ def writeString ( self , encoding ) :
1494
+ else :
1495
+ choices = property ( _get_choices , _set_choices )
1496
+ def has_other_pages ( self ) :
1497
+ parse = sys . modules [ __name__ + ".moves.urllib_parse" ]
1498
+ form . save_m2m = save_m2m
1499
+ else :
1500
+ _templatetags_modules . append ( templatetag_module )
1501
+ return ( format_html_join ( '' , ' {0}="{1}"' , sorted ( attrs . items ( ) ) ) + format_html_join ( '' , ' {0}' , sorted ( boolean_attrs ) ) )
1502
+ return self
1503
+ self . can_write . release ( )
1504
+ raise KeyError ( key )
1505
+ for arg in args :
1506
+ def has_key ( self , key ) :
1507
+ kw [ 'microsecond' ] = kw [ 'microsecond' ] . ljust ( 6 , '0' )
1508
+ if var . find ( VARIABLE_ATTRIBUTE_SEPARATOR + '_' ) > - 1 or var [ 0 ] == '_' :
1509
+ __all__ = ( 'MultiPartParser' , 'MultiPartParserError' , 'InputStreamExhausted' )
1510
+ dictreprs = ', ' . join ( repr ( d ) for d in self . dicts )
1511
+ elif field . rel and isinstance ( field . rel , models . ManyToOneRel ) :
1512
+ if text == '' and len ( opts ) == 1 and opts [ 0 ] == 'reset' :
1513
+ from django . utils . six . moves . urllib . parse import urljoin
1514
+ self . xml . startElement ( "natural" , { } )
1515
+ @ property
1516
+ raise ValidationError ( self . error_messages [ 'invalid_choice' ] , code = 'invalid_choice' , params = { 'value' : value } , )
1517
+ self . delete ( key , version = version )
1518
+ new_matches = normalize ( parent_pat + pat )
1519
+ yield self [ key ]
1520
+ cache [ key ] = result
1521
+ self . cookies [ key ] [ 'max-age' ] = max_age
1522
+ def __copy__ ( self ) :
1523
+ from django . utils . functional import lazy
1524
+ sites1 = _findall ( s1 , str ( year ) )
1525
+ for middleware_method in self . _request_middleware :
1526
+ def add_arguments ( self , parser ) :
1527
+ ULONG_PTR = c_int64
1528
+ if not language_code_re . search ( lang_code ) :
1529
+ if isinstance ( s , bytes ) :
1530
+ for accessor_name , object_list in self . m2m_data . items ( ) :
1531
+ if isinstance ( obj , datetime . datetime ) :
1532
+ handler . addQuickElement ( "pubDate" , rfc2822_date ( item [ 'pubdate' ] ) )
1533
+ self . mode = file . mode
1534
+ evens = sum ( int ( c ) for c in candidate [ - 1 : : - 2 ] )
1535
+ if sys . version_info [ : 2 ] >= ( 3 , 3 ) :
1536
+ chunk = b'' . join ( chunks )
1537
+ app_template_dirs = [ ]
1538
+ def split_leading_dir ( self , path ) :
1539
+ with self . _lock . reader ( ) :
1540
+ locale_dir = self . default_locale_path
1541
+ output_transaction = True
1542
+ obj = Model ( ** data )
1543
+ apps . setdefault ( pattern . app_name , [ ] ) . append ( pattern . namespace )
1544
+ for key , value in data :
1545
+ def configure_root ( self , config , incremental = False ) :
1546
+ if item [ 'pubdate' ] is not None :
1547
+ tzinfo = get_fixed_timezone ( offset )
1548
+ class SuspiciousOperation ( Exception ) :
1549
+ from django . conf import settings
1550
+ try :
1551
+ if os . path . isdir ( app_dir ) :
1552
+ def mark_for_escaping ( s ) :
1553
+ except AttributeError :
1554
+ return field . rel . to . _meta . get_field ( field . rel . field_name ) . to_python ( field_value )
1555
+ def __init__ ( self , object_list , number , paginator ) :
1556
+ return [ None , None ]
1557
+ def timeuntil ( d , now = None ) :
1558
+ super ( DecimalField , self ) . validate ( value )
1559
+ field_type = 'ForeignKey(%s' % rel_to
1560
+ def avoid_wrapping ( value ) :
1561
+ from django . core . serializers . python import Deserializer as PythonDeserializer
1562
+ if code is not None :
1563
+ raise TemplateSyntaxError ( "'firstof' statement requires at least one argument" )
1564
+ from importlib import find_loader as importlib_find
1565
+ msgs , errors , status = popen_wrapper ( args )
1566
+ id_ = self . field . widget . attrs . get ( 'id' ) or self . auto_id
1567
+ return "<Block Node: %s. Contents: %r>" % ( self . name , self . nodelist )
1568
+ if nodelist_empty is None :
1569
+ def __iter__ ( self ) :
1570
+ from django . utils . module_loading import import_string
1571
+ value = b'' . join ( self . make_bytes ( chunk ) for chunk in value )
1572
+ if value in self . empty_values :
1573
+ parser . add_argument ( 'migration_name' , help = 'Migrations will be squashed until and including this migration.' )
1574
+ def jython_reloader ( main_func , args , kwargs ) :
1575
+ from django . test . signals import setting_changed
1576
+ file . seek ( 0 )
1577
+ return False
1578
+ from django . template . base import TemplateDoesNotExist
1579
+ from django . http import HttpResponse
1580
+ code = 'limit_value'
1581
+ text = match . group ( 1 )
1582
+ for line in header . split ( b'\r\n' ) :
1583
+ obj = base . build_instance ( Model , data , db )
1584
+ iterkeys = _iterkeys
1585
+ return value . pk
1586
+ quant . append ( ch )
1587
+ def write ( self , val ) :
1588
+ def handle_app_config ( self , app_config , ** options ) :
1589
+ return None
1590
+ num_loopvars = len ( self . loopvars )
1591
+ deactivate = deactivate_all = lambda : None
1592
+ PB = 1 << 50
1593
+ start = 0
1594
+ def render_option ( self , selected_choices , option_value , option_label ) :
1595
+ def __getitem__ ( self , key ) :
1596
+ language_code = get_language ( )
1597
+ if bit . startswith ( '_("' ) or bit . startswith ( "_('" ) :
1598
+ return _i18n_cache_key_suffix ( request , cache_key )
1599
+ try :
1600
+ c = int ( text [ 1 : ] , 16 )
1601
+ if os . path . exists ( self . file_path ) and not os . path . isdir ( self . file_path ) :
1602
+ if self . feed [ 'feed_url' ] is not None :
1603
+ return
1604
+ import os
1605
+ return iter ( getattr ( d , _iterlists ) ( ** kw ) )
1606
+ def wrapper ( * args , ** kwds ) :
1607
+ out . write ( ' pgettext(%r, %r) ' % ( message_context , join_tokens ( singular , trimmed ) ) )
1608
+ return self . getlist ( key )
1609
+ defaults = dict ( defaults . _get_kwargs ( ) , ** options )
1610
+ callback = getattr ( self . urlconf_module , 'handler%s' % view_type , None )
1611
+ warn_msg = ( "The translator-targeted comment '%s' " "(%sline %d) was ignored, because it wasn't the last item " "on the line." ) % ( c , filemsg , comment_lineno_cache )
1612
+ pieces . append ( force_text ( getattr ( self , piece ) ( ) ) )
1613
+ d = data . get ( self . day_field % name )
1614
+ func = getattr ( func , '_decorated_function' , func )
1615
+ for name , block in six . iteritems ( blocks ) :
1616
+ import django
1617
+ potfiles = self . build_potfiles ( )
1618
+ self . stdout . write ( "Checking %s for fixtures..." % humanize ( fixture_dir ) )
1619
+ import sys
1620
+ if len ( bits ) != 3 :
1621
+ extracted = self . _archive . extractfile ( member )
1622
+ import binascii
1623
+ else :
1624
+ FILES = property ( _get_files )
1625
+ return True
1626
+ with self . mutex :
1627
+ return get_template ( template_name , dirs )
1628
+ l = lambda x : self . make_key ( x , version = version )
1629
+ def upload_handlers ( self ) :
1630
+ except AmbiguityError :
1631
+ except ValidationError as e :
1632
+ return { 'request' : request }
1633
+ except AttributeError :
1634
+ result = func ( * args )
1635
+ else :
1636
+ from django . utils . encoding import force_text , DEFAULT_LOCALE_ENCODING
1637
+ problem_fields = [ field for model in apps . get_models ( ** kwargs ) if app_configs is None or model . _meta . app_config in app_configs for field in model . _meta . local_fields if isinstance ( field , models . BooleanField ) and not field . has_default ( ) ]
1638
+ self . ignore = options . get ( 'ignore' )
1639
+ class NowNode ( Node ) :
1640
+ except StandardError as e :
1641
+ if msg :
1642
+ _error_files = [ ]
1643
+ @ register . filter ( is_safe = True , needs_autoescape = True )
1644
+ if isinstance ( filename , MIMEBase ) :
1645
+ class DebugNodeList ( NodeList ) :
1646
+ priority = 1.0
1647
+ raise KeyError ( key )
1648
+ elif issubclass ( klass , logging . handlers . SMTPHandler ) and 'mailhost' in config :
1649
+ return maybe
1650
+ def _handle_m2m_field_node ( self , node , field ) :
1651
+ super ( DebugParser , self ) . extend_nodelist ( nodelist , node , token )
1652
+ from django . utils . itercompat import is_iterable
1653
+ return self . has_key ( key )
1654
+ new_class = ( super ( DeclarativeFieldsMetaclass , mcs ) . __new__ ( mcs , name , bases , attrs ) )
1655
+ continue
1656
+ return self . save_existing_objects ( commit ) + self . save_new_objects ( commit )
1657
+ for attr in ( 'expects_localtime' , 'is_safe' , 'needs_autoescape' ) :
1658
+ for f in file_list :
1659
+ import re
1660
+ for processor in get_standard_processors ( ) + processors :
1661
+ self . _files . appendlist ( force_text ( old_field_name , self . _encoding , errors = 'replace' ) , file_obj )
1662
+ yield v
1663
+ else :
1664
+ cc = dict ( _to_tuple ( el ) for el in cc_delim_re . split ( response [ 'Cache-Control' ] ) )
1665
+ scheme = template . split ( ':' , 1 ) [ 0 ] . lower ( )
1666
+ ESCAPE_MAPPINGS = { "A" : None , "b" : None , "B" : None , "d" : "0" , "D" : "x" , "s" : " " , "S" : "x" , "w" : "x" , "W" : "!" , "Z" : None , }
1667
+ locales = [ locale ]
1668
+ nodelist = parser . parse ( ( 'endblock' , ) )
1669
+ loaders = [ ]
1670
+ @ register . tag
1671
+ return client
1672
+ if ( ( os . stat ( path ) . st_mode & stat . S_IREAD ) != stat . S_IREAD ) :
1673
+ def __delitem__ ( self , key ) :
1674
+ expanded_template = path . expanduser ( template )
1675
+ value = field . widget . value_from_datadict ( self . data , self . files , self . add_prefix ( name ) )
1676
+ def pbkdf2 ( password , salt , iterations , dklen = 0 , digest = None ) :
1677
+ def get_default_timezone_name ( ) :
1678
+ ch2 = None
1679
+ def handle_uncaught_exception ( self , request , resolver , exc_info ) :
1680
+ new_attr = name
1681
+ parts = config_string . lower ( ) . split ( ';' )
1682
+ doublecolon_start = - 1
1683
+ self . _start_relational_field ( field )
1684
+ s = s . decode ( encoding , errors )
1685
+ if token == "not" and i + 1 < l and tokens [ i + 1 ] == "in" :
1686
+ self . help_texts = getattr ( options , 'help_texts' , None )
1687
+ if not match or not match . group ( 1 ) :
1688
+ elif ch != 'P' :
1689
+ from django . core . wsgi import get_wsgi_application
1690
+ self . appendlist ( force_text ( key , encoding , errors = 'replace' ) , force_text ( value , encoding , errors = 'replace' ) )
1691
+ while i < len ( subject ) and subject [ i ] != subject [ p ] :
1692
+ return value . replace ( tzinfo = None )
1693
+ return type ( self ) . __bool__ ( self )
1694
+ parser . add_argument ( '--database' , action = 'store' , dest = 'database' , default = DEFAULT_DB_ALIAS , help = 'Nominates a database to ' 'introspect. Defaults to using the "default" database.' )
1695
+ pk_value = form . instance . pk
1696
+ return [ etag_str ]
1697
+ readline . parse_and_bind ( "tab:complete" )
1698
+ while ch != terminal_char :
1699
+ return self . _namespace_dict [ language_code ]
1700
+ self . changed_objects . append ( ( obj , form . changed_data ) )
1701
+ since = delta . days * 24 * 60 * 60 + delta . seconds
1702
+ key += tuple ( type ( v ) for k , v in sorted_items )
1703
+ translation . activate ( saved_locale )
1704
+ for func in self . response_fixes :
1705
+ class DebugNode ( Node ) :
1706
+ import os
1707
+ try :
1708
+ if expires < now :
1709
+ from django . utils . translation import ugettext , ungettext
1710
+ def valid_value ( self , value ) :
1711
+ obj = mark_safe ( new_obj )
1712
+ GB = 1 << 30
1713
+ return r
1714
+ from django . core . exceptions import ImproperlyConfigured
1715
+ return handle_app ( app_config . models_module , ** options )
1716
+ self . validate_key ( key )
1717
+ @ stringfilter
1718
+ self . xml = SimplerXMLGenerator ( self . stream , self . options . get ( "encoding" , settings . DEFAULT_CHARSET ) )
1719
+ self . validate_key ( key )
1720
+ parser . add_argument ( '--noreload' , action = 'store_false' , dest = 'use_reloader' , default = True , help = 'Tells Django to NOT use the auto-reloader.' )
1721
+ try :
1722
+ import cgi
1723
+ attrs [ 'error_messages' ] = error_messages
1724
+ return output
1725
+ def load_template ( self , template_name , template_dirs = None ) :
1726
+ def __str__ ( self ) :
1727
+ return len ( self . get_queryset ( ) )
1728
+ return compiled_parent . _render ( context )
1729
+ self . exception = exception
1730
+ from django . core . files . base import File
1731
+ handlers = config . get ( 'handlers' , EMPTY_DICT )
1732
+ for root in settings . ALLOWED_INCLUDE_ROOTS :
1733
+ for field in self . fields . values ( ) :
1734
+ def O ( self ) :
1735
+ return mark_safe ( '' . join ( force_text ( n ) for n in nodelist ) )
1736
+ parser . add_argument ( '-o' , '--output' , default = None , dest = 'output' , help = 'Specifies file to which the output is written.' )
1737
+ raise NotImplementedError ( 'subclasses of Storage must provide a listdir() method' )
1738
+ if is_templatized :
1739
+ import sys
1740
+ want_unicode = True
1741
+ _format_cache = { }
1742
+ return ( ret == 0 )
1743
+ self . message_context = None
1744
+ WEEKDAYS_REV = { 'monday' : 0 , 'tuesday' : 1 , 'wednesday' : 2 , 'thursday' : 3 , 'friday' : 4 , 'saturday' : 5 , 'sunday' : 6 }
1745
+ for _ , nodelist in self . conditions_nodelists :
1746
+ else :
1747
+ val = None
1748
+ if USE_INOTIFY :
1749
+ hidden_fields . append ( six . text_type ( bf ) )
1750
+ return bool ( value )
1751
+ from django . utils . six . moves . urllib . parse import parse_qsl , urlencode , quote , urljoin , urlsplit
1752
+ self . xml . startElement ( "field" , { "name" : field . name , "rel" : field . rel . __class__ . __name__ , "to" : smart_text ( field . rel . to . _meta ) , } )
1753
+ from django . db import connections , router , transaction , DEFAULT_DB_ALIAS
1754
+ self . active_readers += t
1755
+ return super ( DateField , self ) . to_python ( value )
1756
+ def _get_scheme ( self ) :
1757
+ self . loaded_object_count = 0
1758
+ defaults [ 'empty_permitted' ] = True
1759
+ raise TemplateDoesNotExist
1760
+ s = s . replace ( '\\' , '\\\\' )
1761
+ capfirst = lambda x : x and force_text ( x ) [ 0 ] . upper ( ) + force_text ( x ) [ 1 : ]
1762
+ return self . data . isoformat ( )
1763
+ result = super ( MultiValueField , self ) . __deepcopy__ ( memo )
1764
+ elif count > 1 :
1765
+ self . stdout . write ( " - %s\n" % operation . describe ( ) )
1766
+ return repr ( list ( self ) )
1767
+ @ python_2_unicode_compatible
1768
+ if '__str__' not in klass . __dict__ :
1769
+ from . import Error , Tags , register
1770
+ if self . data . minute == 0 and self . data . hour == 0 :
1771
+ field_desc += ' # ' + ' ' . join ( comment_notes )
1772
+ else :
1773
+ return self . DSTDIFF
1774
+ substitutions [ 'clear_template' ] = self . template_with_clear % substitutions
1775
+ traceback . print_exc ( )
1776
+ self . timezone = None
1777
+ return tpl . format ( self . name , self . sysid , self . pubid )
1778
+ else :
1779
+ raise NotImplementedError ( "This backend doesn't support absolute paths." )
1780
+ from . import six
1781
+ if isinstance ( rhs , dict ) and number :
1782
+ connection = connections [ options [ 'database' ] ]
1783
+ elif cls . _delegate_bytes :
1784
+ outer . update ( password . translate ( hmac . trans_5C ) )
1785
+ if 'charset' in content_params :
1786
+ def __str__ ( self ) :
1787
+ with self . _lock . writer ( ) :
1788
+ if ip_str . count ( '.' ) != 3 :
1789
+ return self . dicts . pop ( )
1790
+ kwargs [ 'error_messages' ] = error_messages [ f . name ]
1791
+ return val , encoded
1792
+ try :
1793
+ self . command_stack . append ( ( command , token . source ) )
1794
+ for character in name :
1795
+ def yesno ( value , arg = None ) :
1796
+ def incr ( self , key , delta = 1 , version = None ) :
1797
+ os . mkdir ( migrations_directory )
1798
+ form . fields [ ORDERING_FIELD_NAME ] = IntegerField ( label = _ ( 'Order' ) , required = False )
1799
+ database = options . get ( 'database' )
1800
+ return ( "%" + six . text_type ( arg ) ) % value
1801
+ args = hashlib . md5 ( force_bytes ( key ) )
1802
+ defaults = { 'auto_id' : self . auto_id , 'prefix' : self . add_prefix ( i ) , 'error_class' : self . error_class , }
1803
+ else :
1804
+ else :
1805
+ except StopIteration :
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_lower_case": true,
4
+ "mask_token": "[MASK]",
5
+ "model_max_length": 512,
6
+ "name_or_path": "distilbert-base-uncased",
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "special_tokens_map_file": null,
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "DistilBertTokenizer",
13
+ "unk_token": "[UNK]"
14
+ }
trainer_state.json ADDED
@@ -0,0 +1,2125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.23823951184749603,
3
+ "best_model_checkpoint": "./distilbert-marian-training1/checkpoint-48000",
4
+ "epoch": 10.0,
5
+ "global_step": 160000,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.03,
12
+ "learning_rate": 6.212500000000001e-07,
13
+ "loss": 0.1004,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.06,
18
+ "learning_rate": 1.2462500000000001e-06,
19
+ "loss": 0.1263,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.09,
24
+ "learning_rate": 1.8712500000000003e-06,
25
+ "loss": 0.1256,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.12,
30
+ "learning_rate": 2.4962500000000005e-06,
31
+ "loss": 0.1014,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.16,
36
+ "learning_rate": 3.12125e-06,
37
+ "loss": 0.1124,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.19,
42
+ "learning_rate": 3.7462500000000003e-06,
43
+ "loss": 0.1479,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 0.22,
48
+ "learning_rate": 4.37125e-06,
49
+ "loss": 0.1206,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 0.25,
54
+ "learning_rate": 4.9950000000000005e-06,
55
+ "loss": 0.1157,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 0.28,
60
+ "learning_rate": 5.620000000000001e-06,
61
+ "loss": 0.1104,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 0.31,
66
+ "learning_rate": 6.245000000000001e-06,
67
+ "loss": 0.1329,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 0.34,
72
+ "learning_rate": 6.870000000000001e-06,
73
+ "loss": 0.1493,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 0.38,
78
+ "learning_rate": 7.493750000000001e-06,
79
+ "loss": 0.1359,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 0.41,
84
+ "learning_rate": 8.11875e-06,
85
+ "loss": 0.1326,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 0.44,
90
+ "learning_rate": 8.74375e-06,
91
+ "loss": 0.1488,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 0.47,
96
+ "learning_rate": 9.3675e-06,
97
+ "loss": 0.1719,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 0.5,
102
+ "learning_rate": 9.992500000000001e-06,
103
+ "loss": 0.1606,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 0.53,
108
+ "learning_rate": 9.9675e-06,
109
+ "loss": 0.1633,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 0.56,
114
+ "learning_rate": 9.934605263157895e-06,
115
+ "loss": 0.1358,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 0.59,
120
+ "learning_rate": 9.90171052631579e-06,
121
+ "loss": 0.1801,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 0.62,
126
+ "learning_rate": 9.868815789473684e-06,
127
+ "loss": 0.1531,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 0.66,
132
+ "learning_rate": 9.835921052631579e-06,
133
+ "loss": 0.185,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 0.69,
138
+ "learning_rate": 9.803026315789475e-06,
139
+ "loss": 0.1619,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 0.72,
144
+ "learning_rate": 9.77013157894737e-06,
145
+ "loss": 0.136,
146
+ "step": 11500
147
+ },
148
+ {
149
+ "epoch": 0.75,
150
+ "learning_rate": 9.737302631578948e-06,
151
+ "loss": 0.1712,
152
+ "step": 12000
153
+ },
154
+ {
155
+ "epoch": 0.78,
156
+ "learning_rate": 9.704473684210527e-06,
157
+ "loss": 0.1482,
158
+ "step": 12500
159
+ },
160
+ {
161
+ "epoch": 0.81,
162
+ "learning_rate": 9.671578947368422e-06,
163
+ "loss": 0.1849,
164
+ "step": 13000
165
+ },
166
+ {
167
+ "epoch": 0.84,
168
+ "learning_rate": 9.638684210526316e-06,
169
+ "loss": 0.1395,
170
+ "step": 13500
171
+ },
172
+ {
173
+ "epoch": 0.88,
174
+ "learning_rate": 9.605789473684211e-06,
175
+ "loss": 0.152,
176
+ "step": 14000
177
+ },
178
+ {
179
+ "epoch": 0.91,
180
+ "learning_rate": 9.572894736842107e-06,
181
+ "loss": 0.158,
182
+ "step": 14500
183
+ },
184
+ {
185
+ "epoch": 0.94,
186
+ "learning_rate": 9.54e-06,
187
+ "loss": 0.1458,
188
+ "step": 15000
189
+ },
190
+ {
191
+ "epoch": 0.97,
192
+ "learning_rate": 9.507105263157895e-06,
193
+ "loss": 0.1783,
194
+ "step": 15500
195
+ },
196
+ {
197
+ "epoch": 1.0,
198
+ "learning_rate": 9.474210526315791e-06,
199
+ "loss": 0.1681,
200
+ "step": 16000
201
+ },
202
+ {
203
+ "epoch": 1.0,
204
+ "eval_BLEU": 72.24934811777383,
205
+ "eval_BLEU-Bigram-Precision": 74.84708063021316,
206
+ "eval_BLEU-Trigram-Precision": 68.90927624872579,
207
+ "eval_BLEU-Unigram-Precision": 81.34860050890586,
208
+ "eval_ROUGE-2": 75.2339725526462,
209
+ "eval_ROUGE-L": 89.68424579231484,
210
+ "eval_Sacre-Bigram-Precision": 73.79434037465126,
211
+ "eval_Sacre-Trigram-Precision": 68.54019434628975,
212
+ "eval_Sacre-Unigram-Precision": 80.34613990576295,
213
+ "eval_SacreBLEU": 71.54791264346096,
214
+ "eval_loss": 0.24808737635612488,
215
+ "eval_runtime": 1428.7921,
216
+ "eval_samples_per_second": 0.7,
217
+ "eval_steps_per_second": 0.7,
218
+ "step": 16000
219
+ },
220
+ {
221
+ "epoch": 1.03,
222
+ "learning_rate": 9.441315789473686e-06,
223
+ "loss": 0.1191,
224
+ "step": 16500
225
+ },
226
+ {
227
+ "epoch": 1.06,
228
+ "learning_rate": 9.408486842105265e-06,
229
+ "loss": 0.1805,
230
+ "step": 17000
231
+ },
232
+ {
233
+ "epoch": 1.09,
234
+ "learning_rate": 9.375592105263158e-06,
235
+ "loss": 0.1555,
236
+ "step": 17500
237
+ },
238
+ {
239
+ "epoch": 1.12,
240
+ "learning_rate": 9.342697368421053e-06,
241
+ "loss": 0.1624,
242
+ "step": 18000
243
+ },
244
+ {
245
+ "epoch": 1.16,
246
+ "learning_rate": 9.309802631578949e-06,
247
+ "loss": 0.1512,
248
+ "step": 18500
249
+ },
250
+ {
251
+ "epoch": 1.19,
252
+ "learning_rate": 9.276907894736843e-06,
253
+ "loss": 0.159,
254
+ "step": 19000
255
+ },
256
+ {
257
+ "epoch": 1.22,
258
+ "learning_rate": 9.244013157894738e-06,
259
+ "loss": 0.133,
260
+ "step": 19500
261
+ },
262
+ {
263
+ "epoch": 1.25,
264
+ "learning_rate": 9.211118421052633e-06,
265
+ "loss": 0.1277,
266
+ "step": 20000
267
+ },
268
+ {
269
+ "epoch": 1.28,
270
+ "learning_rate": 9.178223684210527e-06,
271
+ "loss": 0.1622,
272
+ "step": 20500
273
+ },
274
+ {
275
+ "epoch": 1.31,
276
+ "learning_rate": 9.145394736842107e-06,
277
+ "loss": 0.1263,
278
+ "step": 21000
279
+ },
280
+ {
281
+ "epoch": 1.34,
282
+ "learning_rate": 9.112565789473685e-06,
283
+ "loss": 0.1463,
284
+ "step": 21500
285
+ },
286
+ {
287
+ "epoch": 1.38,
288
+ "learning_rate": 9.079671052631581e-06,
289
+ "loss": 0.1262,
290
+ "step": 22000
291
+ },
292
+ {
293
+ "epoch": 1.41,
294
+ "learning_rate": 9.046776315789474e-06,
295
+ "loss": 0.1825,
296
+ "step": 22500
297
+ },
298
+ {
299
+ "epoch": 1.44,
300
+ "learning_rate": 9.013881578947368e-06,
301
+ "loss": 0.1582,
302
+ "step": 23000
303
+ },
304
+ {
305
+ "epoch": 1.47,
306
+ "learning_rate": 8.981052631578948e-06,
307
+ "loss": 0.1307,
308
+ "step": 23500
309
+ },
310
+ {
311
+ "epoch": 1.5,
312
+ "learning_rate": 8.948157894736843e-06,
313
+ "loss": 0.1333,
314
+ "step": 24000
315
+ },
316
+ {
317
+ "epoch": 1.53,
318
+ "learning_rate": 8.915263157894739e-06,
319
+ "loss": 0.1462,
320
+ "step": 24500
321
+ },
322
+ {
323
+ "epoch": 1.56,
324
+ "learning_rate": 8.882368421052632e-06,
325
+ "loss": 0.1527,
326
+ "step": 25000
327
+ },
328
+ {
329
+ "epoch": 1.59,
330
+ "learning_rate": 8.849473684210526e-06,
331
+ "loss": 0.1388,
332
+ "step": 25500
333
+ },
334
+ {
335
+ "epoch": 1.62,
336
+ "learning_rate": 8.81657894736842e-06,
337
+ "loss": 0.1202,
338
+ "step": 26000
339
+ },
340
+ {
341
+ "epoch": 1.66,
342
+ "learning_rate": 8.783684210526317e-06,
343
+ "loss": 0.1144,
344
+ "step": 26500
345
+ },
346
+ {
347
+ "epoch": 1.69,
348
+ "learning_rate": 8.750789473684212e-06,
349
+ "loss": 0.119,
350
+ "step": 27000
351
+ },
352
+ {
353
+ "epoch": 1.72,
354
+ "learning_rate": 8.717960526315791e-06,
355
+ "loss": 0.1077,
356
+ "step": 27500
357
+ },
358
+ {
359
+ "epoch": 1.75,
360
+ "learning_rate": 8.685065789473684e-06,
361
+ "loss": 0.1226,
362
+ "step": 28000
363
+ },
364
+ {
365
+ "epoch": 1.78,
366
+ "learning_rate": 8.652171052631579e-06,
367
+ "loss": 0.1432,
368
+ "step": 28500
369
+ },
370
+ {
371
+ "epoch": 1.81,
372
+ "learning_rate": 8.619276315789475e-06,
373
+ "loss": 0.1415,
374
+ "step": 29000
375
+ },
376
+ {
377
+ "epoch": 1.84,
378
+ "learning_rate": 8.58638157894737e-06,
379
+ "loss": 0.1462,
380
+ "step": 29500
381
+ },
382
+ {
383
+ "epoch": 1.88,
384
+ "learning_rate": 8.553552631578949e-06,
385
+ "loss": 0.1162,
386
+ "step": 30000
387
+ },
388
+ {
389
+ "epoch": 1.91,
390
+ "learning_rate": 8.520657894736842e-06,
391
+ "loss": 0.1478,
392
+ "step": 30500
393
+ },
394
+ {
395
+ "epoch": 1.94,
396
+ "learning_rate": 8.487763157894737e-06,
397
+ "loss": 0.1861,
398
+ "step": 31000
399
+ },
400
+ {
401
+ "epoch": 1.97,
402
+ "learning_rate": 8.454868421052633e-06,
403
+ "loss": 0.1166,
404
+ "step": 31500
405
+ },
406
+ {
407
+ "epoch": 2.0,
408
+ "learning_rate": 8.421973684210527e-06,
409
+ "loss": 0.1209,
410
+ "step": 32000
411
+ },
412
+ {
413
+ "epoch": 2.0,
414
+ "eval_BLEU": 77.2930486436819,
415
+ "eval_BLEU-Bigram-Precision": 79.7232309353224,
416
+ "eval_BLEU-Trigram-Precision": 74.12314040612445,
417
+ "eval_BLEU-Unigram-Precision": 85.70024130842792,
418
+ "eval_ROUGE-2": 76.44781505694336,
419
+ "eval_ROUGE-L": 90.63044702330345,
420
+ "eval_Sacre-Bigram-Precision": 78.87249177195031,
421
+ "eval_Sacre-Trigram-Precision": 74.09645692617609,
422
+ "eval_Sacre-Unigram-Precision": 84.96016892216143,
423
+ "eval_SacreBLEU": 76.88465263390154,
424
+ "eval_loss": 0.24807412922382355,
425
+ "eval_runtime": 1016.4629,
426
+ "eval_samples_per_second": 0.984,
427
+ "eval_steps_per_second": 0.984,
428
+ "step": 32000
429
+ },
430
+ {
431
+ "epoch": 2.03,
432
+ "learning_rate": 8.389078947368422e-06,
433
+ "loss": 0.1208,
434
+ "step": 32500
435
+ },
436
+ {
437
+ "epoch": 2.06,
438
+ "learning_rate": 8.356184210526316e-06,
439
+ "loss": 0.1029,
440
+ "step": 33000
441
+ },
442
+ {
443
+ "epoch": 2.09,
444
+ "learning_rate": 8.323355263157894e-06,
445
+ "loss": 0.1046,
446
+ "step": 33500
447
+ },
448
+ {
449
+ "epoch": 2.12,
450
+ "learning_rate": 8.290526315789474e-06,
451
+ "loss": 0.1182,
452
+ "step": 34000
453
+ },
454
+ {
455
+ "epoch": 2.16,
456
+ "learning_rate": 8.257631578947369e-06,
457
+ "loss": 0.1045,
458
+ "step": 34500
459
+ },
460
+ {
461
+ "epoch": 2.19,
462
+ "learning_rate": 8.224736842105265e-06,
463
+ "loss": 0.0835,
464
+ "step": 35000
465
+ },
466
+ {
467
+ "epoch": 2.22,
468
+ "learning_rate": 8.191842105263158e-06,
469
+ "loss": 0.1486,
470
+ "step": 35500
471
+ },
472
+ {
473
+ "epoch": 2.25,
474
+ "learning_rate": 8.158947368421052e-06,
475
+ "loss": 0.1506,
476
+ "step": 36000
477
+ },
478
+ {
479
+ "epoch": 2.28,
480
+ "learning_rate": 8.126052631578949e-06,
481
+ "loss": 0.1248,
482
+ "step": 36500
483
+ },
484
+ {
485
+ "epoch": 2.31,
486
+ "learning_rate": 8.093157894736843e-06,
487
+ "loss": 0.0867,
488
+ "step": 37000
489
+ },
490
+ {
491
+ "epoch": 2.34,
492
+ "learning_rate": 8.060263157894738e-06,
493
+ "loss": 0.0927,
494
+ "step": 37500
495
+ },
496
+ {
497
+ "epoch": 2.38,
498
+ "learning_rate": 8.027434210526317e-06,
499
+ "loss": 0.1175,
500
+ "step": 38000
501
+ },
502
+ {
503
+ "epoch": 2.41,
504
+ "learning_rate": 7.99453947368421e-06,
505
+ "loss": 0.1003,
506
+ "step": 38500
507
+ },
508
+ {
509
+ "epoch": 2.44,
510
+ "learning_rate": 7.961644736842106e-06,
511
+ "loss": 0.1343,
512
+ "step": 39000
513
+ },
514
+ {
515
+ "epoch": 2.47,
516
+ "learning_rate": 7.928750000000001e-06,
517
+ "loss": 0.1368,
518
+ "step": 39500
519
+ },
520
+ {
521
+ "epoch": 2.5,
522
+ "learning_rate": 7.89592105263158e-06,
523
+ "loss": 0.1264,
524
+ "step": 40000
525
+ },
526
+ {
527
+ "epoch": 2.53,
528
+ "learning_rate": 7.863026315789475e-06,
529
+ "loss": 0.1269,
530
+ "step": 40500
531
+ },
532
+ {
533
+ "epoch": 2.56,
534
+ "learning_rate": 7.830131578947368e-06,
535
+ "loss": 0.1214,
536
+ "step": 41000
537
+ },
538
+ {
539
+ "epoch": 2.59,
540
+ "learning_rate": 7.797236842105264e-06,
541
+ "loss": 0.1248,
542
+ "step": 41500
543
+ },
544
+ {
545
+ "epoch": 2.62,
546
+ "learning_rate": 7.764342105263159e-06,
547
+ "loss": 0.1191,
548
+ "step": 42000
549
+ },
550
+ {
551
+ "epoch": 2.66,
552
+ "learning_rate": 7.731513157894738e-06,
553
+ "loss": 0.1247,
554
+ "step": 42500
555
+ },
556
+ {
557
+ "epoch": 2.69,
558
+ "learning_rate": 7.698618421052633e-06,
559
+ "loss": 0.0996,
560
+ "step": 43000
561
+ },
562
+ {
563
+ "epoch": 2.72,
564
+ "learning_rate": 7.665723684210526e-06,
565
+ "loss": 0.135,
566
+ "step": 43500
567
+ },
568
+ {
569
+ "epoch": 2.75,
570
+ "learning_rate": 7.632828947368422e-06,
571
+ "loss": 0.1153,
572
+ "step": 44000
573
+ },
574
+ {
575
+ "epoch": 2.78,
576
+ "learning_rate": 7.599934210526317e-06,
577
+ "loss": 0.1054,
578
+ "step": 44500
579
+ },
580
+ {
581
+ "epoch": 2.81,
582
+ "learning_rate": 7.567039473684211e-06,
583
+ "loss": 0.1013,
584
+ "step": 45000
585
+ },
586
+ {
587
+ "epoch": 2.84,
588
+ "learning_rate": 7.534210526315791e-06,
589
+ "loss": 0.1396,
590
+ "step": 45500
591
+ },
592
+ {
593
+ "epoch": 2.88,
594
+ "learning_rate": 7.501315789473685e-06,
595
+ "loss": 0.1169,
596
+ "step": 46000
597
+ },
598
+ {
599
+ "epoch": 2.91,
600
+ "learning_rate": 7.468421052631579e-06,
601
+ "loss": 0.1182,
602
+ "step": 46500
603
+ },
604
+ {
605
+ "epoch": 2.94,
606
+ "learning_rate": 7.435526315789474e-06,
607
+ "loss": 0.108,
608
+ "step": 47000
609
+ },
610
+ {
611
+ "epoch": 2.97,
612
+ "learning_rate": 7.402631578947369e-06,
613
+ "loss": 0.1106,
614
+ "step": 47500
615
+ },
616
+ {
617
+ "epoch": 3.0,
618
+ "learning_rate": 7.369802631578949e-06,
619
+ "loss": 0.0983,
620
+ "step": 48000
621
+ },
622
+ {
623
+ "epoch": 3.0,
624
+ "eval_BLEU": 76.73720363059847,
625
+ "eval_BLEU-Bigram-Precision": 79.20062087698875,
626
+ "eval_BLEU-Trigram-Precision": 73.47770154373929,
627
+ "eval_BLEU-Unigram-Precision": 85.37318712415988,
628
+ "eval_ROUGE-2": 76.72216094294652,
629
+ "eval_ROUGE-L": 90.70575387918443,
630
+ "eval_Sacre-Bigram-Precision": 78.34241408214585,
631
+ "eval_Sacre-Trigram-Precision": 73.58710882765062,
632
+ "eval_Sacre-Unigram-Precision": 84.60735963581183,
633
+ "eval_SacreBLEU": 76.40271655688608,
634
+ "eval_loss": 0.23823951184749603,
635
+ "eval_runtime": 1594.3998,
636
+ "eval_samples_per_second": 0.627,
637
+ "eval_steps_per_second": 0.627,
638
+ "step": 48000
639
+ },
640
+ {
641
+ "epoch": 3.03,
642
+ "learning_rate": 7.3369078947368425e-06,
643
+ "loss": 0.1156,
644
+ "step": 48500
645
+ },
646
+ {
647
+ "epoch": 3.06,
648
+ "learning_rate": 7.304078947368421e-06,
649
+ "loss": 0.0855,
650
+ "step": 49000
651
+ },
652
+ {
653
+ "epoch": 3.09,
654
+ "learning_rate": 7.271184210526317e-06,
655
+ "loss": 0.0923,
656
+ "step": 49500
657
+ },
658
+ {
659
+ "epoch": 3.12,
660
+ "learning_rate": 7.238289473684211e-06,
661
+ "loss": 0.1026,
662
+ "step": 50000
663
+ },
664
+ {
665
+ "epoch": 3.16,
666
+ "learning_rate": 7.205394736842106e-06,
667
+ "loss": 0.1265,
668
+ "step": 50500
669
+ },
670
+ {
671
+ "epoch": 3.19,
672
+ "learning_rate": 7.172500000000001e-06,
673
+ "loss": 0.0995,
674
+ "step": 51000
675
+ },
676
+ {
677
+ "epoch": 3.22,
678
+ "learning_rate": 7.139605263157895e-06,
679
+ "loss": 0.0903,
680
+ "step": 51500
681
+ },
682
+ {
683
+ "epoch": 3.25,
684
+ "learning_rate": 7.1067105263157895e-06,
685
+ "loss": 0.0929,
686
+ "step": 52000
687
+ },
688
+ {
689
+ "epoch": 3.28,
690
+ "learning_rate": 7.073815789473685e-06,
691
+ "loss": 0.0773,
692
+ "step": 52500
693
+ },
694
+ {
695
+ "epoch": 3.31,
696
+ "learning_rate": 7.0409210526315795e-06,
697
+ "loss": 0.0851,
698
+ "step": 53000
699
+ },
700
+ {
701
+ "epoch": 3.34,
702
+ "learning_rate": 7.008026315789475e-06,
703
+ "loss": 0.1169,
704
+ "step": 53500
705
+ },
706
+ {
707
+ "epoch": 3.38,
708
+ "learning_rate": 6.975131578947369e-06,
709
+ "loss": 0.1006,
710
+ "step": 54000
711
+ },
712
+ {
713
+ "epoch": 3.41,
714
+ "learning_rate": 6.942236842105263e-06,
715
+ "loss": 0.0852,
716
+ "step": 54500
717
+ },
718
+ {
719
+ "epoch": 3.44,
720
+ "learning_rate": 6.909407894736843e-06,
721
+ "loss": 0.0989,
722
+ "step": 55000
723
+ },
724
+ {
725
+ "epoch": 3.47,
726
+ "learning_rate": 6.876513157894737e-06,
727
+ "loss": 0.0805,
728
+ "step": 55500
729
+ },
730
+ {
731
+ "epoch": 3.5,
732
+ "learning_rate": 6.843684210526317e-06,
733
+ "loss": 0.1044,
734
+ "step": 56000
735
+ },
736
+ {
737
+ "epoch": 3.53,
738
+ "learning_rate": 6.810789473684211e-06,
739
+ "loss": 0.0902,
740
+ "step": 56500
741
+ },
742
+ {
743
+ "epoch": 3.56,
744
+ "learning_rate": 6.777894736842105e-06,
745
+ "loss": 0.0765,
746
+ "step": 57000
747
+ },
748
+ {
749
+ "epoch": 3.59,
750
+ "learning_rate": 6.745000000000001e-06,
751
+ "loss": 0.0951,
752
+ "step": 57500
753
+ },
754
+ {
755
+ "epoch": 3.62,
756
+ "learning_rate": 6.7121710526315794e-06,
757
+ "loss": 0.1134,
758
+ "step": 58000
759
+ },
760
+ {
761
+ "epoch": 3.66,
762
+ "learning_rate": 6.679342105263158e-06,
763
+ "loss": 0.1051,
764
+ "step": 58500
765
+ },
766
+ {
767
+ "epoch": 3.69,
768
+ "learning_rate": 6.646447368421053e-06,
769
+ "loss": 0.0955,
770
+ "step": 59000
771
+ },
772
+ {
773
+ "epoch": 3.72,
774
+ "learning_rate": 6.613552631578948e-06,
775
+ "loss": 0.0964,
776
+ "step": 59500
777
+ },
778
+ {
779
+ "epoch": 3.75,
780
+ "learning_rate": 6.580657894736843e-06,
781
+ "loss": 0.1046,
782
+ "step": 60000
783
+ },
784
+ {
785
+ "epoch": 3.78,
786
+ "learning_rate": 6.547763157894737e-06,
787
+ "loss": 0.0741,
788
+ "step": 60500
789
+ },
790
+ {
791
+ "epoch": 3.81,
792
+ "learning_rate": 6.514868421052633e-06,
793
+ "loss": 0.0695,
794
+ "step": 61000
795
+ },
796
+ {
797
+ "epoch": 3.84,
798
+ "learning_rate": 6.481973684210526e-06,
799
+ "loss": 0.0885,
800
+ "step": 61500
801
+ },
802
+ {
803
+ "epoch": 3.88,
804
+ "learning_rate": 6.449078947368421e-06,
805
+ "loss": 0.0889,
806
+ "step": 62000
807
+ },
808
+ {
809
+ "epoch": 3.91,
810
+ "learning_rate": 6.416184210526316e-06,
811
+ "loss": 0.0942,
812
+ "step": 62500
813
+ },
814
+ {
815
+ "epoch": 3.94,
816
+ "learning_rate": 6.383289473684211e-06,
817
+ "loss": 0.103,
818
+ "step": 63000
819
+ },
820
+ {
821
+ "epoch": 3.97,
822
+ "learning_rate": 6.350460526315791e-06,
823
+ "loss": 0.0768,
824
+ "step": 63500
825
+ },
826
+ {
827
+ "epoch": 4.0,
828
+ "learning_rate": 6.317565789473685e-06,
829
+ "loss": 0.0773,
830
+ "step": 64000
831
+ },
832
+ {
833
+ "epoch": 4.0,
834
+ "eval_BLEU": 75.32461616904307,
835
+ "eval_BLEU-Bigram-Precision": 77.5221070647523,
836
+ "eval_BLEU-Trigram-Precision": 72.33640939597315,
837
+ "eval_BLEU-Unigram-Precision": 83.58947642615264,
838
+ "eval_ROUGE-2": 75.57825134251199,
839
+ "eval_ROUGE-L": 88.70065022361639,
840
+ "eval_Sacre-Bigram-Precision": 76.6359918200409,
841
+ "eval_Sacre-Trigram-Precision": 72.25821116035914,
842
+ "eval_Sacre-Unigram-Precision": 82.69016697588125,
843
+ "eval_SacreBLEU": 74.94210102448932,
844
+ "eval_loss": 0.24377790093421936,
845
+ "eval_runtime": 1720.9311,
846
+ "eval_samples_per_second": 0.581,
847
+ "eval_steps_per_second": 0.581,
848
+ "step": 64000
849
+ },
850
+ {
851
+ "epoch": 4.03,
852
+ "learning_rate": 6.284671052631579e-06,
853
+ "loss": 0.0805,
854
+ "step": 64500
855
+ },
856
+ {
857
+ "epoch": 4.06,
858
+ "learning_rate": 6.251776315789474e-06,
859
+ "loss": 0.0701,
860
+ "step": 65000
861
+ },
862
+ {
863
+ "epoch": 4.09,
864
+ "learning_rate": 6.218881578947369e-06,
865
+ "loss": 0.07,
866
+ "step": 65500
867
+ },
868
+ {
869
+ "epoch": 4.12,
870
+ "learning_rate": 6.185986842105263e-06,
871
+ "loss": 0.0785,
872
+ "step": 66000
873
+ },
874
+ {
875
+ "epoch": 4.16,
876
+ "learning_rate": 6.153092105263159e-06,
877
+ "loss": 0.0832,
878
+ "step": 66500
879
+ },
880
+ {
881
+ "epoch": 4.19,
882
+ "learning_rate": 6.120197368421053e-06,
883
+ "loss": 0.094,
884
+ "step": 67000
885
+ },
886
+ {
887
+ "epoch": 4.22,
888
+ "learning_rate": 6.087368421052632e-06,
889
+ "loss": 0.074,
890
+ "step": 67500
891
+ },
892
+ {
893
+ "epoch": 4.25,
894
+ "learning_rate": 6.054539473684211e-06,
895
+ "loss": 0.0915,
896
+ "step": 68000
897
+ },
898
+ {
899
+ "epoch": 4.28,
900
+ "learning_rate": 6.021644736842106e-06,
901
+ "loss": 0.0904,
902
+ "step": 68500
903
+ },
904
+ {
905
+ "epoch": 4.31,
906
+ "learning_rate": 5.988750000000001e-06,
907
+ "loss": 0.0586,
908
+ "step": 69000
909
+ },
910
+ {
911
+ "epoch": 4.34,
912
+ "learning_rate": 5.955855263157895e-06,
913
+ "loss": 0.0754,
914
+ "step": 69500
915
+ },
916
+ {
917
+ "epoch": 4.38,
918
+ "learning_rate": 5.92296052631579e-06,
919
+ "loss": 0.074,
920
+ "step": 70000
921
+ },
922
+ {
923
+ "epoch": 4.41,
924
+ "learning_rate": 5.890131578947369e-06,
925
+ "loss": 0.0723,
926
+ "step": 70500
927
+ },
928
+ {
929
+ "epoch": 4.44,
930
+ "learning_rate": 5.857236842105264e-06,
931
+ "loss": 0.0814,
932
+ "step": 71000
933
+ },
934
+ {
935
+ "epoch": 4.47,
936
+ "learning_rate": 5.824342105263159e-06,
937
+ "loss": 0.0623,
938
+ "step": 71500
939
+ },
940
+ {
941
+ "epoch": 4.5,
942
+ "learning_rate": 5.7914473684210525e-06,
943
+ "loss": 0.0859,
944
+ "step": 72000
945
+ },
946
+ {
947
+ "epoch": 4.53,
948
+ "learning_rate": 5.758552631578948e-06,
949
+ "loss": 0.0713,
950
+ "step": 72500
951
+ },
952
+ {
953
+ "epoch": 4.56,
954
+ "learning_rate": 5.7256578947368425e-06,
955
+ "loss": 0.0891,
956
+ "step": 73000
957
+ },
958
+ {
959
+ "epoch": 4.59,
960
+ "learning_rate": 5.692763157894737e-06,
961
+ "loss": 0.0661,
962
+ "step": 73500
963
+ },
964
+ {
965
+ "epoch": 4.62,
966
+ "learning_rate": 5.6598684210526324e-06,
967
+ "loss": 0.0893,
968
+ "step": 74000
969
+ },
970
+ {
971
+ "epoch": 4.66,
972
+ "learning_rate": 5.62703947368421e-06,
973
+ "loss": 0.0694,
974
+ "step": 74500
975
+ },
976
+ {
977
+ "epoch": 4.69,
978
+ "learning_rate": 5.594144736842106e-06,
979
+ "loss": 0.0836,
980
+ "step": 75000
981
+ },
982
+ {
983
+ "epoch": 4.72,
984
+ "learning_rate": 5.56125e-06,
985
+ "loss": 0.074,
986
+ "step": 75500
987
+ },
988
+ {
989
+ "epoch": 4.75,
990
+ "learning_rate": 5.528355263157895e-06,
991
+ "loss": 0.0798,
992
+ "step": 76000
993
+ },
994
+ {
995
+ "epoch": 4.78,
996
+ "learning_rate": 5.4955263157894745e-06,
997
+ "loss": 0.0899,
998
+ "step": 76500
999
+ },
1000
+ {
1001
+ "epoch": 4.81,
1002
+ "learning_rate": 5.4626973684210525e-06,
1003
+ "loss": 0.0717,
1004
+ "step": 77000
1005
+ },
1006
+ {
1007
+ "epoch": 4.84,
1008
+ "learning_rate": 5.429802631578948e-06,
1009
+ "loss": 0.0754,
1010
+ "step": 77500
1011
+ },
1012
+ {
1013
+ "epoch": 4.88,
1014
+ "learning_rate": 5.3969078947368424e-06,
1015
+ "loss": 0.0923,
1016
+ "step": 78000
1017
+ },
1018
+ {
1019
+ "epoch": 4.91,
1020
+ "learning_rate": 5.364013157894738e-06,
1021
+ "loss": 0.0679,
1022
+ "step": 78500
1023
+ },
1024
+ {
1025
+ "epoch": 4.94,
1026
+ "learning_rate": 5.331118421052632e-06,
1027
+ "loss": 0.0722,
1028
+ "step": 79000
1029
+ },
1030
+ {
1031
+ "epoch": 4.97,
1032
+ "learning_rate": 5.298223684210527e-06,
1033
+ "loss": 0.071,
1034
+ "step": 79500
1035
+ },
1036
+ {
1037
+ "epoch": 5.0,
1038
+ "learning_rate": 5.265328947368421e-06,
1039
+ "loss": 0.0836,
1040
+ "step": 80000
1041
+ },
1042
+ {
1043
+ "epoch": 5.0,
1044
+ "eval_BLEU": 80.51272222480867,
1045
+ "eval_BLEU-Bigram-Precision": 82.70449743434953,
1046
+ "eval_BLEU-Trigram-Precision": 77.53097443911152,
1047
+ "eval_BLEU-Unigram-Precision": 88.20733156595666,
1048
+ "eval_ROUGE-2": 77.48308477253742,
1049
+ "eval_ROUGE-L": 90.67140065243555,
1050
+ "eval_Sacre-Bigram-Precision": 82.0950723376482,
1051
+ "eval_Sacre-Trigram-Precision": 77.98611956654085,
1052
+ "eval_Sacre-Unigram-Precision": 87.60914352987345,
1053
+ "eval_SacreBLEU": 80.51595106600885,
1054
+ "eval_loss": 0.24554118514060974,
1055
+ "eval_runtime": 1564.2824,
1056
+ "eval_samples_per_second": 0.639,
1057
+ "eval_steps_per_second": 0.639,
1058
+ "step": 80000
1059
+ },
1060
+ {
1061
+ "epoch": 5.03,
1062
+ "learning_rate": 5.232434210526316e-06,
1063
+ "loss": 0.0516,
1064
+ "step": 80500
1065
+ },
1066
+ {
1067
+ "epoch": 5.06,
1068
+ "learning_rate": 5.199539473684211e-06,
1069
+ "loss": 0.0681,
1070
+ "step": 81000
1071
+ },
1072
+ {
1073
+ "epoch": 5.09,
1074
+ "learning_rate": 5.1667763157894745e-06,
1075
+ "loss": 0.066,
1076
+ "step": 81500
1077
+ },
1078
+ {
1079
+ "epoch": 5.12,
1080
+ "learning_rate": 5.133881578947368e-06,
1081
+ "loss": 0.0517,
1082
+ "step": 82000
1083
+ },
1084
+ {
1085
+ "epoch": 5.16,
1086
+ "learning_rate": 5.100986842105264e-06,
1087
+ "loss": 0.0446,
1088
+ "step": 82500
1089
+ },
1090
+ {
1091
+ "epoch": 5.19,
1092
+ "learning_rate": 5.068092105263158e-06,
1093
+ "loss": 0.0642,
1094
+ "step": 83000
1095
+ },
1096
+ {
1097
+ "epoch": 5.22,
1098
+ "learning_rate": 5.035263157894738e-06,
1099
+ "loss": 0.0708,
1100
+ "step": 83500
1101
+ },
1102
+ {
1103
+ "epoch": 5.25,
1104
+ "learning_rate": 5.002368421052632e-06,
1105
+ "loss": 0.0607,
1106
+ "step": 84000
1107
+ },
1108
+ {
1109
+ "epoch": 5.28,
1110
+ "learning_rate": 4.969473684210527e-06,
1111
+ "loss": 0.062,
1112
+ "step": 84500
1113
+ },
1114
+ {
1115
+ "epoch": 5.31,
1116
+ "learning_rate": 4.9365789473684215e-06,
1117
+ "loss": 0.0844,
1118
+ "step": 85000
1119
+ },
1120
+ {
1121
+ "epoch": 5.34,
1122
+ "learning_rate": 4.90375e-06,
1123
+ "loss": 0.0611,
1124
+ "step": 85500
1125
+ },
1126
+ {
1127
+ "epoch": 5.38,
1128
+ "learning_rate": 4.870855263157896e-06,
1129
+ "loss": 0.0702,
1130
+ "step": 86000
1131
+ },
1132
+ {
1133
+ "epoch": 5.41,
1134
+ "learning_rate": 4.837960526315789e-06,
1135
+ "loss": 0.048,
1136
+ "step": 86500
1137
+ },
1138
+ {
1139
+ "epoch": 5.44,
1140
+ "learning_rate": 4.805065789473685e-06,
1141
+ "loss": 0.0725,
1142
+ "step": 87000
1143
+ },
1144
+ {
1145
+ "epoch": 5.47,
1146
+ "learning_rate": 4.772171052631579e-06,
1147
+ "loss": 0.0492,
1148
+ "step": 87500
1149
+ },
1150
+ {
1151
+ "epoch": 5.5,
1152
+ "learning_rate": 4.739276315789474e-06,
1153
+ "loss": 0.0443,
1154
+ "step": 88000
1155
+ },
1156
+ {
1157
+ "epoch": 5.53,
1158
+ "learning_rate": 4.7063815789473685e-06,
1159
+ "loss": 0.074,
1160
+ "step": 88500
1161
+ },
1162
+ {
1163
+ "epoch": 5.56,
1164
+ "learning_rate": 4.673486842105264e-06,
1165
+ "loss": 0.0742,
1166
+ "step": 89000
1167
+ },
1168
+ {
1169
+ "epoch": 5.59,
1170
+ "learning_rate": 4.6405921052631585e-06,
1171
+ "loss": 0.0579,
1172
+ "step": 89500
1173
+ },
1174
+ {
1175
+ "epoch": 5.62,
1176
+ "learning_rate": 4.6078289473684215e-06,
1177
+ "loss": 0.0673,
1178
+ "step": 90000
1179
+ },
1180
+ {
1181
+ "epoch": 5.66,
1182
+ "learning_rate": 4.574934210526316e-06,
1183
+ "loss": 0.0685,
1184
+ "step": 90500
1185
+ },
1186
+ {
1187
+ "epoch": 5.69,
1188
+ "learning_rate": 4.5420394736842114e-06,
1189
+ "loss": 0.0708,
1190
+ "step": 91000
1191
+ },
1192
+ {
1193
+ "epoch": 5.72,
1194
+ "learning_rate": 4.509144736842105e-06,
1195
+ "loss": 0.076,
1196
+ "step": 91500
1197
+ },
1198
+ {
1199
+ "epoch": 5.75,
1200
+ "learning_rate": 4.476315789473685e-06,
1201
+ "loss": 0.0717,
1202
+ "step": 92000
1203
+ },
1204
+ {
1205
+ "epoch": 5.78,
1206
+ "learning_rate": 4.443421052631579e-06,
1207
+ "loss": 0.0781,
1208
+ "step": 92500
1209
+ },
1210
+ {
1211
+ "epoch": 5.81,
1212
+ "learning_rate": 4.410526315789474e-06,
1213
+ "loss": 0.0678,
1214
+ "step": 93000
1215
+ },
1216
+ {
1217
+ "epoch": 5.84,
1218
+ "learning_rate": 4.377631578947369e-06,
1219
+ "loss": 0.0584,
1220
+ "step": 93500
1221
+ },
1222
+ {
1223
+ "epoch": 5.88,
1224
+ "learning_rate": 4.344736842105263e-06,
1225
+ "loss": 0.0736,
1226
+ "step": 94000
1227
+ },
1228
+ {
1229
+ "epoch": 5.91,
1230
+ "learning_rate": 4.3118421052631584e-06,
1231
+ "loss": 0.0472,
1232
+ "step": 94500
1233
+ },
1234
+ {
1235
+ "epoch": 5.94,
1236
+ "learning_rate": 4.278947368421053e-06,
1237
+ "loss": 0.0676,
1238
+ "step": 95000
1239
+ },
1240
+ {
1241
+ "epoch": 5.97,
1242
+ "learning_rate": 4.246052631578948e-06,
1243
+ "loss": 0.0595,
1244
+ "step": 95500
1245
+ },
1246
+ {
1247
+ "epoch": 6.0,
1248
+ "learning_rate": 4.213223684210526e-06,
1249
+ "loss": 0.0567,
1250
+ "step": 96000
1251
+ },
1252
+ {
1253
+ "epoch": 6.0,
1254
+ "eval_BLEU": 81.21370204393791,
1255
+ "eval_BLEU-Bigram-Precision": 83.26283987915409,
1256
+ "eval_BLEU-Trigram-Precision": 78.32402234636872,
1257
+ "eval_BLEU-Unigram-Precision": 88.63677950594693,
1258
+ "eval_ROUGE-2": 77.3545431272267,
1259
+ "eval_ROUGE-L": 90.77000002140947,
1260
+ "eval_Sacre-Bigram-Precision": 82.65461672473867,
1261
+ "eval_Sacre-Trigram-Precision": 78.53486104339346,
1262
+ "eval_Sacre-Unigram-Precision": 88.0695208169678,
1263
+ "eval_SacreBLEU": 81.05092176649303,
1264
+ "eval_loss": 0.2411227524280548,
1265
+ "eval_runtime": 1329.304,
1266
+ "eval_samples_per_second": 0.752,
1267
+ "eval_steps_per_second": 0.752,
1268
+ "step": 96000
1269
+ },
1270
+ {
1271
+ "epoch": 6.03,
1272
+ "learning_rate": 4.180394736842105e-06,
1273
+ "loss": 0.0561,
1274
+ "step": 96500
1275
+ },
1276
+ {
1277
+ "epoch": 6.06,
1278
+ "learning_rate": 4.1475000000000005e-06,
1279
+ "loss": 0.0484,
1280
+ "step": 97000
1281
+ },
1282
+ {
1283
+ "epoch": 6.09,
1284
+ "learning_rate": 4.114605263157895e-06,
1285
+ "loss": 0.0649,
1286
+ "step": 97500
1287
+ },
1288
+ {
1289
+ "epoch": 6.12,
1290
+ "learning_rate": 4.08171052631579e-06,
1291
+ "loss": 0.0489,
1292
+ "step": 98000
1293
+ },
1294
+ {
1295
+ "epoch": 6.16,
1296
+ "learning_rate": 4.048815789473684e-06,
1297
+ "loss": 0.0418,
1298
+ "step": 98500
1299
+ },
1300
+ {
1301
+ "epoch": 6.19,
1302
+ "learning_rate": 4.01592105263158e-06,
1303
+ "loss": 0.0671,
1304
+ "step": 99000
1305
+ },
1306
+ {
1307
+ "epoch": 6.22,
1308
+ "learning_rate": 3.983026315789474e-06,
1309
+ "loss": 0.0496,
1310
+ "step": 99500
1311
+ },
1312
+ {
1313
+ "epoch": 6.25,
1314
+ "learning_rate": 3.950131578947369e-06,
1315
+ "loss": 0.064,
1316
+ "step": 100000
1317
+ },
1318
+ {
1319
+ "epoch": 6.28,
1320
+ "learning_rate": 3.9173026315789475e-06,
1321
+ "loss": 0.0633,
1322
+ "step": 100500
1323
+ },
1324
+ {
1325
+ "epoch": 6.31,
1326
+ "learning_rate": 3.884407894736842e-06,
1327
+ "loss": 0.0578,
1328
+ "step": 101000
1329
+ },
1330
+ {
1331
+ "epoch": 6.34,
1332
+ "learning_rate": 3.8515131578947375e-06,
1333
+ "loss": 0.0501,
1334
+ "step": 101500
1335
+ },
1336
+ {
1337
+ "epoch": 6.38,
1338
+ "learning_rate": 3.818618421052632e-06,
1339
+ "loss": 0.0517,
1340
+ "step": 102000
1341
+ },
1342
+ {
1343
+ "epoch": 6.41,
1344
+ "learning_rate": 3.7857236842105266e-06,
1345
+ "loss": 0.0502,
1346
+ "step": 102500
1347
+ },
1348
+ {
1349
+ "epoch": 6.44,
1350
+ "learning_rate": 3.7528947368421054e-06,
1351
+ "loss": 0.0603,
1352
+ "step": 103000
1353
+ },
1354
+ {
1355
+ "epoch": 6.47,
1356
+ "learning_rate": 3.7200000000000004e-06,
1357
+ "loss": 0.0485,
1358
+ "step": 103500
1359
+ },
1360
+ {
1361
+ "epoch": 6.5,
1362
+ "learning_rate": 3.6871052631578954e-06,
1363
+ "loss": 0.0532,
1364
+ "step": 104000
1365
+ },
1366
+ {
1367
+ "epoch": 6.53,
1368
+ "learning_rate": 3.654276315789474e-06,
1369
+ "loss": 0.0551,
1370
+ "step": 104500
1371
+ },
1372
+ {
1373
+ "epoch": 6.56,
1374
+ "learning_rate": 3.6213815789473687e-06,
1375
+ "loss": 0.0429,
1376
+ "step": 105000
1377
+ },
1378
+ {
1379
+ "epoch": 6.59,
1380
+ "learning_rate": 3.5884868421052633e-06,
1381
+ "loss": 0.0485,
1382
+ "step": 105500
1383
+ },
1384
+ {
1385
+ "epoch": 6.62,
1386
+ "learning_rate": 3.5555921052631583e-06,
1387
+ "loss": 0.0606,
1388
+ "step": 106000
1389
+ },
1390
+ {
1391
+ "epoch": 6.66,
1392
+ "learning_rate": 3.5226973684210532e-06,
1393
+ "loss": 0.046,
1394
+ "step": 106500
1395
+ },
1396
+ {
1397
+ "epoch": 6.69,
1398
+ "learning_rate": 3.4898026315789474e-06,
1399
+ "loss": 0.0398,
1400
+ "step": 107000
1401
+ },
1402
+ {
1403
+ "epoch": 6.72,
1404
+ "learning_rate": 3.4569078947368424e-06,
1405
+ "loss": 0.0516,
1406
+ "step": 107500
1407
+ },
1408
+ {
1409
+ "epoch": 6.75,
1410
+ "learning_rate": 3.4240131578947373e-06,
1411
+ "loss": 0.06,
1412
+ "step": 108000
1413
+ },
1414
+ {
1415
+ "epoch": 6.78,
1416
+ "learning_rate": 3.391118421052632e-06,
1417
+ "loss": 0.0507,
1418
+ "step": 108500
1419
+ },
1420
+ {
1421
+ "epoch": 6.81,
1422
+ "learning_rate": 3.3582236842105265e-06,
1423
+ "loss": 0.0651,
1424
+ "step": 109000
1425
+ },
1426
+ {
1427
+ "epoch": 6.84,
1428
+ "learning_rate": 3.3253947368421057e-06,
1429
+ "loss": 0.0502,
1430
+ "step": 109500
1431
+ },
1432
+ {
1433
+ "epoch": 6.88,
1434
+ "learning_rate": 3.2925000000000002e-06,
1435
+ "loss": 0.0455,
1436
+ "step": 110000
1437
+ },
1438
+ {
1439
+ "epoch": 6.91,
1440
+ "learning_rate": 3.2596052631578952e-06,
1441
+ "loss": 0.0467,
1442
+ "step": 110500
1443
+ },
1444
+ {
1445
+ "epoch": 6.94,
1446
+ "learning_rate": 3.2267105263157898e-06,
1447
+ "loss": 0.0571,
1448
+ "step": 111000
1449
+ },
1450
+ {
1451
+ "epoch": 6.97,
1452
+ "learning_rate": 3.1938157894736843e-06,
1453
+ "loss": 0.0546,
1454
+ "step": 111500
1455
+ },
1456
+ {
1457
+ "epoch": 7.0,
1458
+ "learning_rate": 3.1609210526315793e-06,
1459
+ "loss": 0.043,
1460
+ "step": 112000
1461
+ },
1462
+ {
1463
+ "epoch": 7.0,
1464
+ "eval_BLEU": 80.56639568650905,
1465
+ "eval_BLEU-Bigram-Precision": 82.55929838548933,
1466
+ "eval_BLEU-Trigram-Precision": 77.6121051468964,
1467
+ "eval_BLEU-Unigram-Precision": 88.20010875475802,
1468
+ "eval_ROUGE-2": 77.17811658990045,
1469
+ "eval_ROUGE-L": 90.74508068067605,
1470
+ "eval_Sacre-Bigram-Precision": 81.82111373898087,
1471
+ "eval_Sacre-Trigram-Precision": 77.62557077625571,
1472
+ "eval_Sacre-Unigram-Precision": 87.54610755193167,
1473
+ "eval_SacreBLEU": 80.26422111075566,
1474
+ "eval_loss": 0.2396911382675171,
1475
+ "eval_runtime": 1545.8252,
1476
+ "eval_samples_per_second": 0.647,
1477
+ "eval_steps_per_second": 0.647,
1478
+ "step": 112000
1479
+ },
1480
+ {
1481
+ "epoch": 7.03,
1482
+ "learning_rate": 3.1280263157894743e-06,
1483
+ "loss": 0.0353,
1484
+ "step": 112500
1485
+ },
1486
+ {
1487
+ "epoch": 7.06,
1488
+ "learning_rate": 3.0951315789473685e-06,
1489
+ "loss": 0.05,
1490
+ "step": 113000
1491
+ },
1492
+ {
1493
+ "epoch": 7.09,
1494
+ "learning_rate": 3.0623026315789477e-06,
1495
+ "loss": 0.0403,
1496
+ "step": 113500
1497
+ },
1498
+ {
1499
+ "epoch": 7.12,
1500
+ "learning_rate": 3.0294078947368422e-06,
1501
+ "loss": 0.0384,
1502
+ "step": 114000
1503
+ },
1504
+ {
1505
+ "epoch": 7.16,
1506
+ "learning_rate": 2.996513157894737e-06,
1507
+ "loss": 0.0492,
1508
+ "step": 114500
1509
+ },
1510
+ {
1511
+ "epoch": 7.19,
1512
+ "learning_rate": 2.9636184210526318e-06,
1513
+ "loss": 0.0382,
1514
+ "step": 115000
1515
+ },
1516
+ {
1517
+ "epoch": 7.22,
1518
+ "learning_rate": 2.9307236842105263e-06,
1519
+ "loss": 0.0582,
1520
+ "step": 115500
1521
+ },
1522
+ {
1523
+ "epoch": 7.25,
1524
+ "learning_rate": 2.8978289473684213e-06,
1525
+ "loss": 0.037,
1526
+ "step": 116000
1527
+ },
1528
+ {
1529
+ "epoch": 7.28,
1530
+ "learning_rate": 2.865e-06,
1531
+ "loss": 0.0326,
1532
+ "step": 116500
1533
+ },
1534
+ {
1535
+ "epoch": 7.31,
1536
+ "learning_rate": 2.832105263157895e-06,
1537
+ "loss": 0.0447,
1538
+ "step": 117000
1539
+ },
1540
+ {
1541
+ "epoch": 7.34,
1542
+ "learning_rate": 2.7992105263157896e-06,
1543
+ "loss": 0.0531,
1544
+ "step": 117500
1545
+ },
1546
+ {
1547
+ "epoch": 7.38,
1548
+ "learning_rate": 2.7663815789473684e-06,
1549
+ "loss": 0.0426,
1550
+ "step": 118000
1551
+ },
1552
+ {
1553
+ "epoch": 7.41,
1554
+ "learning_rate": 2.7334868421052634e-06,
1555
+ "loss": 0.0464,
1556
+ "step": 118500
1557
+ },
1558
+ {
1559
+ "epoch": 7.44,
1560
+ "learning_rate": 2.700592105263158e-06,
1561
+ "loss": 0.0491,
1562
+ "step": 119000
1563
+ },
1564
+ {
1565
+ "epoch": 7.47,
1566
+ "learning_rate": 2.667697368421053e-06,
1567
+ "loss": 0.0324,
1568
+ "step": 119500
1569
+ },
1570
+ {
1571
+ "epoch": 7.5,
1572
+ "learning_rate": 2.6348026315789475e-06,
1573
+ "loss": 0.0405,
1574
+ "step": 120000
1575
+ },
1576
+ {
1577
+ "epoch": 7.53,
1578
+ "learning_rate": 2.6019078947368425e-06,
1579
+ "loss": 0.0328,
1580
+ "step": 120500
1581
+ },
1582
+ {
1583
+ "epoch": 7.56,
1584
+ "learning_rate": 2.569013157894737e-06,
1585
+ "loss": 0.0456,
1586
+ "step": 121000
1587
+ },
1588
+ {
1589
+ "epoch": 7.59,
1590
+ "learning_rate": 2.536118421052632e-06,
1591
+ "loss": 0.0321,
1592
+ "step": 121500
1593
+ },
1594
+ {
1595
+ "epoch": 7.62,
1596
+ "learning_rate": 2.5032236842105266e-06,
1597
+ "loss": 0.0385,
1598
+ "step": 122000
1599
+ },
1600
+ {
1601
+ "epoch": 7.66,
1602
+ "learning_rate": 2.470328947368421e-06,
1603
+ "loss": 0.0385,
1604
+ "step": 122500
1605
+ },
1606
+ {
1607
+ "epoch": 7.69,
1608
+ "learning_rate": 2.437434210526316e-06,
1609
+ "loss": 0.0403,
1610
+ "step": 123000
1611
+ },
1612
+ {
1613
+ "epoch": 7.72,
1614
+ "learning_rate": 2.404605263157895e-06,
1615
+ "loss": 0.0563,
1616
+ "step": 123500
1617
+ },
1618
+ {
1619
+ "epoch": 7.75,
1620
+ "learning_rate": 2.3717105263157895e-06,
1621
+ "loss": 0.057,
1622
+ "step": 124000
1623
+ },
1624
+ {
1625
+ "epoch": 7.78,
1626
+ "learning_rate": 2.3388815789473687e-06,
1627
+ "loss": 0.0463,
1628
+ "step": 124500
1629
+ },
1630
+ {
1631
+ "epoch": 7.81,
1632
+ "learning_rate": 2.3059868421052633e-06,
1633
+ "loss": 0.0449,
1634
+ "step": 125000
1635
+ },
1636
+ {
1637
+ "epoch": 7.84,
1638
+ "learning_rate": 2.273092105263158e-06,
1639
+ "loss": 0.04,
1640
+ "step": 125500
1641
+ },
1642
+ {
1643
+ "epoch": 7.88,
1644
+ "learning_rate": 2.240197368421053e-06,
1645
+ "loss": 0.0447,
1646
+ "step": 126000
1647
+ },
1648
+ {
1649
+ "epoch": 7.91,
1650
+ "learning_rate": 2.2073026315789474e-06,
1651
+ "loss": 0.0557,
1652
+ "step": 126500
1653
+ },
1654
+ {
1655
+ "epoch": 7.94,
1656
+ "learning_rate": 2.1744078947368424e-06,
1657
+ "loss": 0.0602,
1658
+ "step": 127000
1659
+ },
1660
+ {
1661
+ "epoch": 7.97,
1662
+ "learning_rate": 2.141513157894737e-06,
1663
+ "loss": 0.0383,
1664
+ "step": 127500
1665
+ },
1666
+ {
1667
+ "epoch": 8.0,
1668
+ "learning_rate": 2.108618421052632e-06,
1669
+ "loss": 0.0491,
1670
+ "step": 128000
1671
+ },
1672
+ {
1673
+ "epoch": 8.0,
1674
+ "eval_BLEU": 78.11044908486078,
1675
+ "eval_BLEU-Bigram-Precision": 80.32311115410661,
1676
+ "eval_BLEU-Trigram-Precision": 75.1309180292829,
1677
+ "eval_BLEU-Unigram-Precision": 85.89573961365441,
1678
+ "eval_ROUGE-2": 76.73896747691722,
1679
+ "eval_ROUGE-L": 90.4316320530482,
1680
+ "eval_Sacre-Bigram-Precision": 79.53764448609809,
1681
+ "eval_Sacre-Trigram-Precision": 75.15945726545286,
1682
+ "eval_Sacre-Unigram-Precision": 85.18343864943884,
1683
+ "eval_SacreBLEU": 77.77903164926069,
1684
+ "eval_loss": 0.24439701437950134,
1685
+ "eval_runtime": 1491.254,
1686
+ "eval_samples_per_second": 0.671,
1687
+ "eval_steps_per_second": 0.671,
1688
+ "step": 128000
1689
+ },
1690
+ {
1691
+ "epoch": 8.03,
1692
+ "learning_rate": 2.0757236842105265e-06,
1693
+ "loss": 0.0393,
1694
+ "step": 128500
1695
+ },
1696
+ {
1697
+ "epoch": 8.06,
1698
+ "learning_rate": 2.0428289473684215e-06,
1699
+ "loss": 0.0466,
1700
+ "step": 129000
1701
+ },
1702
+ {
1703
+ "epoch": 8.09,
1704
+ "learning_rate": 2.009934210526316e-06,
1705
+ "loss": 0.0377,
1706
+ "step": 129500
1707
+ },
1708
+ {
1709
+ "epoch": 8.12,
1710
+ "learning_rate": 1.977105263157895e-06,
1711
+ "loss": 0.0413,
1712
+ "step": 130000
1713
+ },
1714
+ {
1715
+ "epoch": 8.16,
1716
+ "learning_rate": 1.9442105263157894e-06,
1717
+ "loss": 0.0394,
1718
+ "step": 130500
1719
+ },
1720
+ {
1721
+ "epoch": 8.19,
1722
+ "learning_rate": 1.9113157894736843e-06,
1723
+ "loss": 0.03,
1724
+ "step": 131000
1725
+ },
1726
+ {
1727
+ "epoch": 8.22,
1728
+ "learning_rate": 1.8784210526315791e-06,
1729
+ "loss": 0.0286,
1730
+ "step": 131500
1731
+ },
1732
+ {
1733
+ "epoch": 8.25,
1734
+ "learning_rate": 1.8455263157894737e-06,
1735
+ "loss": 0.0403,
1736
+ "step": 132000
1737
+ },
1738
+ {
1739
+ "epoch": 8.28,
1740
+ "learning_rate": 1.8126973684210527e-06,
1741
+ "loss": 0.0543,
1742
+ "step": 132500
1743
+ },
1744
+ {
1745
+ "epoch": 8.31,
1746
+ "learning_rate": 1.7798026315789474e-06,
1747
+ "loss": 0.0362,
1748
+ "step": 133000
1749
+ },
1750
+ {
1751
+ "epoch": 8.34,
1752
+ "learning_rate": 1.7469078947368422e-06,
1753
+ "loss": 0.0321,
1754
+ "step": 133500
1755
+ },
1756
+ {
1757
+ "epoch": 8.38,
1758
+ "learning_rate": 1.714013157894737e-06,
1759
+ "loss": 0.0306,
1760
+ "step": 134000
1761
+ },
1762
+ {
1763
+ "epoch": 8.41,
1764
+ "learning_rate": 1.6811184210526318e-06,
1765
+ "loss": 0.0385,
1766
+ "step": 134500
1767
+ },
1768
+ {
1769
+ "epoch": 8.44,
1770
+ "learning_rate": 1.6482236842105265e-06,
1771
+ "loss": 0.0347,
1772
+ "step": 135000
1773
+ },
1774
+ {
1775
+ "epoch": 8.47,
1776
+ "learning_rate": 1.615328947368421e-06,
1777
+ "loss": 0.0352,
1778
+ "step": 135500
1779
+ },
1780
+ {
1781
+ "epoch": 8.5,
1782
+ "learning_rate": 1.5825e-06,
1783
+ "loss": 0.0437,
1784
+ "step": 136000
1785
+ },
1786
+ {
1787
+ "epoch": 8.53,
1788
+ "learning_rate": 1.5496052631578949e-06,
1789
+ "loss": 0.0324,
1790
+ "step": 136500
1791
+ },
1792
+ {
1793
+ "epoch": 8.56,
1794
+ "learning_rate": 1.5167105263157896e-06,
1795
+ "loss": 0.0354,
1796
+ "step": 137000
1797
+ },
1798
+ {
1799
+ "epoch": 8.59,
1800
+ "learning_rate": 1.4838157894736844e-06,
1801
+ "loss": 0.0367,
1802
+ "step": 137500
1803
+ },
1804
+ {
1805
+ "epoch": 8.62,
1806
+ "learning_rate": 1.450921052631579e-06,
1807
+ "loss": 0.0408,
1808
+ "step": 138000
1809
+ },
1810
+ {
1811
+ "epoch": 8.66,
1812
+ "learning_rate": 1.418026315789474e-06,
1813
+ "loss": 0.0543,
1814
+ "step": 138500
1815
+ },
1816
+ {
1817
+ "epoch": 8.69,
1818
+ "learning_rate": 1.3851315789473685e-06,
1819
+ "loss": 0.0245,
1820
+ "step": 139000
1821
+ },
1822
+ {
1823
+ "epoch": 8.72,
1824
+ "learning_rate": 1.3523026315789475e-06,
1825
+ "loss": 0.0283,
1826
+ "step": 139500
1827
+ },
1828
+ {
1829
+ "epoch": 8.75,
1830
+ "learning_rate": 1.319407894736842e-06,
1831
+ "loss": 0.0353,
1832
+ "step": 140000
1833
+ },
1834
+ {
1835
+ "epoch": 8.78,
1836
+ "learning_rate": 1.286513157894737e-06,
1837
+ "loss": 0.0442,
1838
+ "step": 140500
1839
+ },
1840
+ {
1841
+ "epoch": 8.81,
1842
+ "learning_rate": 1.2536184210526316e-06,
1843
+ "loss": 0.0396,
1844
+ "step": 141000
1845
+ },
1846
+ {
1847
+ "epoch": 8.84,
1848
+ "learning_rate": 1.2207236842105264e-06,
1849
+ "loss": 0.0382,
1850
+ "step": 141500
1851
+ },
1852
+ {
1853
+ "epoch": 8.88,
1854
+ "learning_rate": 1.1878289473684212e-06,
1855
+ "loss": 0.0393,
1856
+ "step": 142000
1857
+ },
1858
+ {
1859
+ "epoch": 8.91,
1860
+ "learning_rate": 1.154934210526316e-06,
1861
+ "loss": 0.0279,
1862
+ "step": 142500
1863
+ },
1864
+ {
1865
+ "epoch": 8.94,
1866
+ "learning_rate": 1.1220394736842107e-06,
1867
+ "loss": 0.0368,
1868
+ "step": 143000
1869
+ },
1870
+ {
1871
+ "epoch": 8.97,
1872
+ "learning_rate": 1.0891447368421055e-06,
1873
+ "loss": 0.0339,
1874
+ "step": 143500
1875
+ },
1876
+ {
1877
+ "epoch": 9.0,
1878
+ "learning_rate": 1.0563157894736843e-06,
1879
+ "loss": 0.0367,
1880
+ "step": 144000
1881
+ },
1882
+ {
1883
+ "epoch": 9.0,
1884
+ "eval_BLEU": 78.72613610038634,
1885
+ "eval_BLEU-Bigram-Precision": 80.66982867099023,
1886
+ "eval_BLEU-Trigram-Precision": 75.83146187573522,
1887
+ "eval_BLEU-Unigram-Precision": 86.24128497043509,
1888
+ "eval_ROUGE-2": 77.10014496108923,
1889
+ "eval_ROUGE-L": 90.75201858392994,
1890
+ "eval_Sacre-Bigram-Precision": 79.9499791579825,
1891
+ "eval_Sacre-Trigram-Precision": 75.83565459610028,
1892
+ "eval_Sacre-Unigram-Precision": 85.47565118912797,
1893
+ "eval_SacreBLEU": 78.39445859677504,
1894
+ "eval_loss": 0.2408515363931656,
1895
+ "eval_runtime": 1473.0938,
1896
+ "eval_samples_per_second": 0.679,
1897
+ "eval_steps_per_second": 0.679,
1898
+ "step": 144000
1899
+ },
1900
+ {
1901
+ "epoch": 9.03,
1902
+ "learning_rate": 1.0234868421052633e-06,
1903
+ "loss": 0.0404,
1904
+ "step": 144500
1905
+ },
1906
+ {
1907
+ "epoch": 9.06,
1908
+ "learning_rate": 9.90592105263158e-07,
1909
+ "loss": 0.0337,
1910
+ "step": 145000
1911
+ },
1912
+ {
1913
+ "epoch": 9.09,
1914
+ "learning_rate": 9.576973684210528e-07,
1915
+ "loss": 0.0426,
1916
+ "step": 145500
1917
+ },
1918
+ {
1919
+ "epoch": 9.12,
1920
+ "learning_rate": 9.248026315789474e-07,
1921
+ "loss": 0.0408,
1922
+ "step": 146000
1923
+ },
1924
+ {
1925
+ "epoch": 9.16,
1926
+ "learning_rate": 8.919078947368421e-07,
1927
+ "loss": 0.0347,
1928
+ "step": 146500
1929
+ },
1930
+ {
1931
+ "epoch": 9.19,
1932
+ "learning_rate": 8.59078947368421e-07,
1933
+ "loss": 0.0392,
1934
+ "step": 147000
1935
+ },
1936
+ {
1937
+ "epoch": 9.22,
1938
+ "learning_rate": 8.261842105263158e-07,
1939
+ "loss": 0.0339,
1940
+ "step": 147500
1941
+ },
1942
+ {
1943
+ "epoch": 9.25,
1944
+ "learning_rate": 7.932894736842106e-07,
1945
+ "loss": 0.0371,
1946
+ "step": 148000
1947
+ },
1948
+ {
1949
+ "epoch": 9.28,
1950
+ "learning_rate": 7.603947368421054e-07,
1951
+ "loss": 0.0375,
1952
+ "step": 148500
1953
+ },
1954
+ {
1955
+ "epoch": 9.31,
1956
+ "learning_rate": 7.275e-07,
1957
+ "loss": 0.0359,
1958
+ "step": 149000
1959
+ },
1960
+ {
1961
+ "epoch": 9.34,
1962
+ "learning_rate": 6.946052631578948e-07,
1963
+ "loss": 0.0241,
1964
+ "step": 149500
1965
+ },
1966
+ {
1967
+ "epoch": 9.38,
1968
+ "learning_rate": 6.617105263157896e-07,
1969
+ "loss": 0.031,
1970
+ "step": 150000
1971
+ },
1972
+ {
1973
+ "epoch": 9.41,
1974
+ "learning_rate": 6.288815789473685e-07,
1975
+ "loss": 0.0294,
1976
+ "step": 150500
1977
+ },
1978
+ {
1979
+ "epoch": 9.44,
1980
+ "learning_rate": 5.959868421052632e-07,
1981
+ "loss": 0.0371,
1982
+ "step": 151000
1983
+ },
1984
+ {
1985
+ "epoch": 9.47,
1986
+ "learning_rate": 5.630921052631579e-07,
1987
+ "loss": 0.0263,
1988
+ "step": 151500
1989
+ },
1990
+ {
1991
+ "epoch": 9.5,
1992
+ "learning_rate": 5.301973684210527e-07,
1993
+ "loss": 0.049,
1994
+ "step": 152000
1995
+ },
1996
+ {
1997
+ "epoch": 9.53,
1998
+ "learning_rate": 4.973026315789474e-07,
1999
+ "loss": 0.033,
2000
+ "step": 152500
2001
+ },
2002
+ {
2003
+ "epoch": 9.56,
2004
+ "learning_rate": 4.6440789473684216e-07,
2005
+ "loss": 0.045,
2006
+ "step": 153000
2007
+ },
2008
+ {
2009
+ "epoch": 9.59,
2010
+ "learning_rate": 4.315131578947369e-07,
2011
+ "loss": 0.0464,
2012
+ "step": 153500
2013
+ },
2014
+ {
2015
+ "epoch": 9.62,
2016
+ "learning_rate": 3.986842105263158e-07,
2017
+ "loss": 0.0353,
2018
+ "step": 154000
2019
+ },
2020
+ {
2021
+ "epoch": 9.66,
2022
+ "learning_rate": 3.6578947368421055e-07,
2023
+ "loss": 0.0365,
2024
+ "step": 154500
2025
+ },
2026
+ {
2027
+ "epoch": 9.69,
2028
+ "learning_rate": 3.328947368421053e-07,
2029
+ "loss": 0.0335,
2030
+ "step": 155000
2031
+ },
2032
+ {
2033
+ "epoch": 9.72,
2034
+ "learning_rate": 3.0000000000000004e-07,
2035
+ "loss": 0.0404,
2036
+ "step": 155500
2037
+ },
2038
+ {
2039
+ "epoch": 9.75,
2040
+ "learning_rate": 2.67171052631579e-07,
2041
+ "loss": 0.0374,
2042
+ "step": 156000
2043
+ },
2044
+ {
2045
+ "epoch": 9.78,
2046
+ "learning_rate": 2.3427631578947373e-07,
2047
+ "loss": 0.0366,
2048
+ "step": 156500
2049
+ },
2050
+ {
2051
+ "epoch": 9.81,
2052
+ "learning_rate": 2.0138157894736842e-07,
2053
+ "loss": 0.0245,
2054
+ "step": 157000
2055
+ },
2056
+ {
2057
+ "epoch": 9.84,
2058
+ "learning_rate": 1.6848684210526317e-07,
2059
+ "loss": 0.039,
2060
+ "step": 157500
2061
+ },
2062
+ {
2063
+ "epoch": 9.88,
2064
+ "learning_rate": 1.3559210526315791e-07,
2065
+ "loss": 0.0292,
2066
+ "step": 158000
2067
+ },
2068
+ {
2069
+ "epoch": 9.91,
2070
+ "learning_rate": 1.0269736842105265e-07,
2071
+ "loss": 0.0361,
2072
+ "step": 158500
2073
+ },
2074
+ {
2075
+ "epoch": 9.94,
2076
+ "learning_rate": 6.980263157894737e-08,
2077
+ "loss": 0.0372,
2078
+ "step": 159000
2079
+ },
2080
+ {
2081
+ "epoch": 9.97,
2082
+ "learning_rate": 3.690789473684211e-08,
2083
+ "loss": 0.0211,
2084
+ "step": 159500
2085
+ },
2086
+ {
2087
+ "epoch": 10.0,
2088
+ "learning_rate": 4.0131578947368425e-09,
2089
+ "loss": 0.0354,
2090
+ "step": 160000
2091
+ },
2092
+ {
2093
+ "epoch": 10.0,
2094
+ "eval_BLEU": 78.74942323410538,
2095
+ "eval_BLEU-Bigram-Precision": 80.77783179387458,
2096
+ "eval_BLEU-Trigram-Precision": 75.84094572810316,
2097
+ "eval_BLEU-Unigram-Precision": 86.30926007975188,
2098
+ "eval_ROUGE-2": 77.17672035094623,
2099
+ "eval_ROUGE-L": 90.75273654124103,
2100
+ "eval_Sacre-Bigram-Precision": 80.08164119740422,
2101
+ "eval_Sacre-Trigram-Precision": 75.89223233030091,
2102
+ "eval_Sacre-Unigram-Precision": 85.5694523403449,
2103
+ "eval_SacreBLEU": 78.4509112113324,
2104
+ "eval_loss": 0.2423561066389084,
2105
+ "eval_runtime": 1552.9635,
2106
+ "eval_samples_per_second": 0.644,
2107
+ "eval_steps_per_second": 0.644,
2108
+ "step": 160000
2109
+ },
2110
+ {
2111
+ "epoch": 10.0,
2112
+ "step": 160000,
2113
+ "total_flos": 2093466255360000.0,
2114
+ "train_loss": 0.08072224444150924,
2115
+ "train_runtime": 26837.0061,
2116
+ "train_samples_per_second": 5.962,
2117
+ "train_steps_per_second": 5.962
2118
+ }
2119
+ ],
2120
+ "max_steps": 160000,
2121
+ "num_train_epochs": 10,
2122
+ "total_flos": 2093466255360000.0,
2123
+ "trial_name": null,
2124
+ "trial_params": null
2125
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95c110de46f34b6d206edd9a337077a863843feb088f615d162d50ca41dd17ac
3
+ size 3567
vocab.txt ADDED
The diff for this file is too large to render. See raw diff