from include import include
import config
import os
class Handler:
    pass
include(Handler, "./handler/")
urls = [
    ('/', Handler.Index),
    ('/api/contest/', Handler.api.Contest),
    ('/api/languages/', Handler.api.Languages),
    ('/api/users/', Handler.api.Users),
    ('/api/users/(\d+)/', Handler.api.User),
    ('/api/users/me/', Handler.api.UsersMe),
    ('/api/users/csv/', Handler.api.UsersCSV),
    ('/api/users/signin/', Handler.api.UserSignIn),
    ('/api/problems/', Handler.api.Problems),
    ('/api/problems/meta/', Handler.api.ProblemsMeta),
    ('/api/problems/(\d+)/', Handler.api.Problem),
    ('/api/problems/(\d+)/pdf/', Handler.api.ProblemPdf, {'path': os.path.join(config.DATA_ROOT, 'data/problems')}),
    ('/api/problems/(\d+)/meta/', Handler.api.ProblemMeta),
    ('/api/problems/(\d+)/executes/', Handler.api.ProblemExecutes),
    #('/api/problems/(\d+)/rejudge/', Handler.api.ProblemRejudge),
    ('/api/problems/(\d+)/testdata/', Handler.api.Testdata),
    ('/api/problems/(\d+)/testdata/(\d+)/', Handler.api.Testdatum),
    ('/api/problems/(\d+)/testdata/(\d+)/(\w+)/', Handler.api.TestdatumFile, {'path': os.path.join(config.DATA_ROOT, 'data/testdata')}),
    ('/api/problems/(\d+)/verdict/', Handler.api.ProblemVerdict),
    ('/api/problems/(\d+)/verdict/file/', Handler.api.ProblemVerdictFile, {'path': os.path.join(config.DATA_ROOT, 'data/verdicts')}),
    ('/api/submissions/', Handler.api.Submissions),
    ('/api/submissions/(\d+)/', Handler.api.Submission),
    ('/api/submissions/(\d+)/file/', Handler.api.SubmissionFile, {'path': os.path.join(config.DATA_ROOT, 'data/submissions')}),
    #('/api/submissions/(\d+)/rejudge/', Handler.api.SubmissionRejudge),
    ('/api/clarifications/', Handler.api.Clarifications),
    ('/api/clarifications/(\d+)/', Handler.api.Clarification),
    ('/api/executes/', Handler.api.Executes),
    ('/api/executes/(\d+)/', Handler.api.Execute),
    ('/api/verdicts/', Handler.api.Verdicts),
    ('/api/system/(\w*)/', Handler.api.System),
    ('/api/system/', Handler.api.System),
    ('/api/scoreboard/', Handler.api.Scoreboard),
    ('/api/judge/', Handler.api.JudgeSubmission),
    ('/api/judge/testdata/', Handler.api.JudgeSubmissionTestdata),
]
"""
    ('/api/users/(\d+)/', Handler.api.User),
    ('/api/problems/meta/', Handler.api.ProblemsMeta),
    ('/api/problems/(\d+)/', Handler.api.Problem),
    ('/api/problems/(\d+)/pdf/', Handler.api.ProblemPdf, {'path': '/mnt/oj/data/problems'}),
    ('/api/problems/(\d+)/meta/', Handler.api.ProblemMeta),
    ('/api/problems/(\d+)/executes/', Handler.api.ProblemExecutes),
    #('/api/problems/(\d+)/rejudge/', Handler.api.ProblemRejudge),
    ('/api/problems/(\d+)/testdata/', Handler.api.Testdata),
    ('/api/problems/(\d+)/testdata/(\d+)/', Handler.api.Testdatum),
    ('/api/problems/(\d+)/testdata/(\d+)/(\w+)/', Handler.api.TestdatumFile, {'path': '/mnt/oj/data/testdata'}),
    ('/api/problems/(\d+)/verdict/', Handler.api.ProblemVerdict),
    ('/api/problems/(\d+)/verdict/file/', Handler.api.ProblemVerdictFile, {'path': '/mnt/oj/data/verdicts'}),
    #('/api/problems/(\d+)/testdata/(\d+)/(\w*)/', Handler.api.TestdatumFile),
    ('/api/submissions/', Handler.api.Submissions),
    ('/api/submissions/(\d+)/', Handler.api.Submission),
    #('/api/submissions/(\d+)/rejudge/', Handler.api.SubmissionRejudge),
    ('/api/scoreboard/', Handler.api.Scoreboard),
"""

@@ -2223,1180 +2223,4 @@
 ,%0A%5D%0A
-%22%22%22%0A    ('/api/users/(%5Cd+)/', Handler.api.User),%0A    ('/api/problems/meta/', Handler.api.ProblemsMeta),%0A    ('/api/problems/(%5Cd+)/', Handler.api.Problem),%0A    ('/api/problems/(%5Cd+)/pdf/', Handler.api.ProblemPdf, %7B'path': '/mnt/oj/data/problems'%7D),%0A    ('/api/problems/(%5Cd+)/meta/', Handler.api.ProblemMeta),%0A    ('/api/problems/(%5Cd+)/executes/', Handler.api.ProblemExecutes),%0A    #('/api/problems/(%5Cd+)/rejudge/', Handler.api.ProblemRejudge),%0A    ('/api/problems/(%5Cd+)/testdata/', Handler.api.Testdata),%0A    ('/api/problems/(%5Cd+)/testdata/(%5Cd+)/', Handler.api.Testdatum),%0A    ('/api/problems/(%5Cd+)/testdata/(%5Cd+)/(%5Cw+)/', Handler.api.TestdatumFile, %7B'path': '/mnt/oj/data/testdata'%7D),%0A    ('/api/problems/(%5Cd+)/verdict/', Handler.api.ProblemVerdict),%0A    ('/api/problems/(%5Cd+)/verdict/file/', Handler.api.ProblemVerdictFile, %7B'path': '/mnt/oj/data/verdicts'%7D),%0A    #('/api/problems/(%5Cd+)/testdata/(%5Cd+)/(%5Cw*)/', Handler.api.TestdatumFile),%0A    ('/api/submissions/', Handler.api.Submissions),%0A    ('/api/submissions/(%5Cd+)/', Handler.api.Submission),%0A    #('/api/submissions/(%5Cd+)/rejudge/', Handler.api.SubmissionRejudge),%0A    ('/api/scoreboard/', Handler.api.Scoreboard),%0A%22%22%22%0A

remove unused data