Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 482e498

Browse files
do not add editor name to the end of a submission
1 parent c4620c9 commit 482e498

File tree

4 files changed

+16
-21
lines changed

4 files changed

+16
-21
lines changed

‎src/com/dogcows/Editor.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ public class Editor
5858
private static final Map<String,String> languageExtension = new HashMap<String,String>();
5959
static
6060
{
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");
6565
languageExtension.put("Python", "py");
6666
}
6767

@@ -115,16 +115,17 @@ else if (VimCoder.isContestDirNames())
115115

116116
// Set up the terms used for the template expansion.
117117
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(),
122122
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(), " >> "));
125125
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);
128129

129130
// Write the problem statement as an HTML file in the problem directory.
130131
File problemFile = new File(directory, "Problem.html");
@@ -217,8 +218,7 @@ public void setSource(String source) throws Exception
217218
*/
218219
public String getSource() throws IOException
219220
{
220-
return Util.readFile(sourceFile) + "\n// Edited by " +
221-
VimCoder.version + "\n// " + VimCoder.website + "\n\n";
221+
return Util.readFile(sourceFile);
222222
}
223223

224224

‎src/com/dogcows/VimCoder.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ public class VimCoder
2929
*/
3030
public final static String version = "VimCoder 0.3.5";
3131

32-
/**
33-
* The website of the plugin project.
34-
*/
35-
public final static String website = "http://github.com/chazmcgarvey/vimcoder";
36-
3732

3833
/**
3934
* The first part of the command used to invoke the Vim server.

‎src/com/dogcows/resources/C++Template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
// {{{ Boilerplate Code <--------------------------------------------------
2+
// {{{ $VIMCODER$ <-----------------------------------------------------
33
// vim:filetype=cpp:foldmethod=marker:foldmarker={{{,}}}
44

55
#include <algorithm>

‎src/com/dogcows/resources/JavaTemplate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
// {{{ Boilerplate Code <--------------------------------------------------
2+
// {{{ $VIMCODER$ <-----------------------------------------------------
33
// vim:filetype=java:foldmethod=marker:foldmarker={{{,}}}
44

55
import static java.lang.Math.*;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /