@@ -58,10 +58,10 @@ public class Editor
58
58
private static final Map <String ,String > languageExtension = new HashMap <String ,String >();
59
59
static
60
60
{
61
- languageExtension .put ("Java" , "java" );
62
- languageExtension .put ("C++" , "cc" );
63
- languageExtension .put ("C#" , "cs" );
64
- languageExtension .put ("VB" , "vb" );
61
+ languageExtension .put ("Java" , "java" );
62
+ languageExtension .put ("C++" , "cc" );
63
+ languageExtension .put ("C#" , "cs" );
64
+ languageExtension .put ("VB" , "vb" );
65
65
languageExtension .put ("Python" , "py" );
66
66
}
67
67
@@ -115,16 +115,17 @@ else if (VimCoder.isContestDirNames())
115
115
116
116
// Set up the terms used for the template expansion.
117
117
HashMap <String ,String > terms = new HashMap <String ,String >();
118
- terms .put ("RETURNTYPE" , component .getReturnType ().getDescriptor (language ));
119
- terms .put ("CLASSNAME" , name );
120
- terms .put ("METHODNAME" , component .getMethodName ());
121
- terms .put ("METHODPARAMS" , getMethodParams (component .getParamTypes (),
118
+ terms .put ("RETURNTYPE" , component .getReturnType ().getDescriptor (language ));
119
+ terms .put ("CLASSNAME" , name );
120
+ terms .put ("METHODNAME" , component .getMethodName ());
121
+ terms .put ("METHODPARAMS" , getMethodParams (component .getParamTypes (),
122
122
component .getParamNames (), language ));
123
- terms .put ("METHODPARAMNAMES" , Util .join (component .getParamNames (), ", " ));
124
- terms .put ("METHODPARAMSTREAMIN" , Util .join (component .getParamNames (), " >> " ));
123
+ terms .put ("METHODPARAMNAMES" , Util .join (component .getParamNames (), ", " ));
124
+ terms .put ("METHODPARAMSTREAMIN" , Util .join (component .getParamNames (), " >> " ));
125
125
terms .put ("METHODPARAMSTREAMOUT" , Util .join (component .getParamNames (), " << \" , \" << " ));
126
- terms .put ("METHODPARAMDECLARES" , getMethodParamDeclarations (component .getParamTypes (),
127
- component .getParamNames (), language ));
126
+ terms .put ("METHODPARAMDECLARES" , getMethodParamDeclarations (component .getParamTypes (),
127
+ component .getParamNames (), language ));
128
+ terms .put ("VIMCODER" , VimCoder .version );
128
129
129
130
// Write the problem statement as an HTML file in the problem directory.
130
131
File problemFile = new File (directory , "Problem.html" );
@@ -217,8 +218,7 @@ public void setSource(String source) throws Exception
217
218
*/
218
219
public String getSource () throws IOException
219
220
{
220
- return Util .readFile (sourceFile ) + "\n // Edited by " +
221
- VimCoder .version + "\n // " + VimCoder .website + "\n \n " ;
221
+ return Util .readFile (sourceFile );
222
222
}
223
223
224
224
0 commit comments