<commit_before>from os import path
from javadoc_parser import *
from wikibuilder import *

APPNAME = 'testapp'
REPODIR = ''

def buildWiki():
    wikidir = REPODIR + '\\' + APPNAME + '.wiki\\'
    wiki = Wiki(wikidir)
    wiki.create()
    wiki.setTag('title', 'TEST TITLE')
    wiki.setTag('subtitle', 'test subtitle')

def collateData(repodir):
    javadocs = getJavadocText(open(path.join(repodir, 'Test.java'), 'r'))
    for javadoc in javadocs:
        print JavadocComment(javadoc)

if __name__ == '__main__':
    REPODIR = path.join(path.dirname(path.realpath(__file__)), APPNAME)
    #collateData()
    buildWiki()<commit_msg>Added wiki tags<commit_after>from os import path
from javadoc_parser import *
from wikibuilder import *

APPNAME = 'testapp'
REPODIR = ''

def buildWiki():
    wikidir = REPODIR + '\\' + APPNAME + '.wiki\\'
    wiki = Wiki(wikidir)
    wiki.create()
    wiki.setTag('title', 'TEST TITLE')
    wiki.setTag('subtitle', 'test subtitle')
    contribs = ['me', 'you', 'bob']
    wiki.setTag('contribs', contribs)
    wiki.setTag('readme', getReadme())

def getReadme():
    readmeFile = open(path.join(REPODIR, 'README.md'))
    readme = readmeFile.read()
    return readme

def collateData(repodir):
    javadocs = getJavadocText(open(path.join(repodir, 'Test.java'), 'r'))
    for javadoc in javadocs:
        print JavadocComment(javadoc)

if __name__ == '__main__':
    REPODIR = path.join(path.dirname(path.realpath(__file__)), APPNAME)
    #collateData()
    buildWiki()
{'fraction_non_alphanumeric': 0.14883720930232558, 'fraction_numerical': 0.0, 'mean_word_length': 3.9377049180327868, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7336515', 'n_tokens_mistral': 598, 'n_tokens_neox': 553, 'n_words': 114}