#!/usr/bin/env python

from psutil import *
import json

def getEngineInfo():
	return json.dumps({'name': '<string>', 'usedmemory': '<string>', 'activesessions': '<int>'})

def getQuestionMetadata(base, qid, version):
	return json.dumps({'scoring': {'marks':'<int>'}, 'plainmode': '<bool>'})

def start(base, qid, version):
	return json.dumps({'questionSession': '<sid>', 'XHTML': '<string>', 'CSS': '<string>', 'progressInfo': '<string>', 'resources': '[{content:<base64>,encoding:<string>,filename:<string>,mimetype:<string>}, ... ]'})

def process(sid):
	return json.dumps({'XHTML': '<string>', 'CSS': '<string>', 'progressInfo': '<string>', 'questionEnd': '<bool>', 'resources': '[{content: <base64>, encoding: <string>, filename: <string>, mimetype: <string>}, ... ]',
      'results': '[{questionLine: <string>, answerLine: <string>, actionSummary: <string>, attempts: <int>, scores: {<string>: <float>, ... }, customResults: {<string>: <string>, ... } }]'})

def stop(sid):
	return none

a5a677ef4f62038528b6b77449c7865bf374348a
<mask token>


def getQuestionMetadata(base, qid, version):
    return json.dumps({'scoring': {'marks': '<int>'}, 'plainmode': '<bool>'})


<mask token>


def process(sid):
    return json.dumps({'XHTML': '<string>', 'CSS': '<string>',
        'progressInfo': '<string>', 'questionEnd': '<bool>', 'resources':
        '[{content: <base64>, encoding: <string>, filename: <string>, mimetype: <string>}, ... ]'
        , 'results':
        '[{questionLine: <string>, answerLine: <string>, actionSummary: <string>, attempts: <int>, scores: {<string>: <float>, ... }, customResults: {<string>: <string>, ... } }]'
        })


def stop(sid):
    return none

<mask token>


def getEngineInfo():
    return json.dumps({'name': '<string>', 'usedmemory': '<string>',
        'activesessions': '<int>'})


def getQuestionMetadata(base, qid, version):
    return json.dumps({'scoring': {'marks': '<int>'}, 'plainmode': '<bool>'})


<mask token>


def process(sid):
    return json.dumps({'XHTML': '<string>', 'CSS': '<string>',
        'progressInfo': '<string>', 'questionEnd': '<bool>', 'resources':
        '[{content: <base64>, encoding: <string>, filename: <string>, mimetype: <string>}, ... ]'
        , 'results':
        '[{questionLine: <string>, answerLine: <string>, actionSummary: <string>, attempts: <int>, scores: {<string>: <float>, ... }, customResults: {<string>: <string>, ... } }]'
        })


def stop(sid):
    return none

<mask token>


def getEngineInfo():
    return json.dumps({'name': '<string>', 'usedmemory': '<string>',
        'activesessions': '<int>'})


def getQuestionMetadata(base, qid, version):
    return json.dumps({'scoring': {'marks': '<int>'}, 'plainmode': '<bool>'})


def start(base, qid, version):
    return json.dumps({'questionSession': '<sid>', 'XHTML': '<string>',
        'CSS': '<string>', 'progressInfo': '<string>', 'resources':
        '[{content:<base64>,encoding:<string>,filename:<string>,mimetype:<string>}, ... ]'
        })


def process(sid):
    return json.dumps({'XHTML': '<string>', 'CSS': '<string>',
        'progressInfo': '<string>', 'questionEnd': '<bool>', 'resources':
        '[{content: <base64>, encoding: <string>, filename: <string>, mimetype: <string>}, ... ]'
        , 'results':
        '[{questionLine: <string>, answerLine: <string>, actionSummary: <string>, attempts: <int>, scores: {<string>: <float>, ... }, customResults: {<string>: <string>, ... } }]'
        })


def stop(sid):
    return none

from psutil import *
import json


def getEngineInfo():
    return json.dumps({'name': '<string>', 'usedmemory': '<string>',
        'activesessions': '<int>'})


def getQuestionMetadata(base, qid, version):
    return json.dumps({'scoring': {'marks': '<int>'}, 'plainmode': '<bool>'})


def start(base, qid, version):
    return json.dumps({'questionSession': '<sid>', 'XHTML': '<string>',
        'CSS': '<string>', 'progressInfo': '<string>', 'resources':
        '[{content:<base64>,encoding:<string>,filename:<string>,mimetype:<string>}, ... ]'
        })


def process(sid):
    return json.dumps({'XHTML': '<string>', 'CSS': '<string>',
        'progressInfo': '<string>', 'questionEnd': '<bool>', 'resources':
        '[{content: <base64>, encoding: <string>, filename: <string>, mimetype: <string>}, ... ]'
        , 'results':
        '[{questionLine: <string>, answerLine: <string>, actionSummary: <string>, attempts: <int>, scores: {<string>: <float>, ... }, customResults: {<string>: <string>, ... } }]'
        })


def stop(sid):
    return none

#!/usr/bin/env python

from psutil import *
import json

def getEngineInfo():
	return json.dumps({'name': '<string>', 'usedmemory': '<string>', 'activesessions': '<int>'})

def getQuestionMetadata(base, qid, version):
	return json.dumps({'scoring': {'marks':'<int>'}, 'plainmode': '<bool>'})

def start(base, qid, version):
	return json.dumps({'questionSession': '<sid>', 'XHTML': '<string>', 'CSS': '<string>', 'progressInfo': '<string>', 'resources': '[{content:<base64>,encoding:<string>,filename:<string>,mimetype:<string>}, ... ]'})

def process(sid):
	return json.dumps({'XHTML': '<string>', 'CSS': '<string>', 'progressInfo': '<string>', 'questionEnd': '<bool>', 'resources': '[{content: <base64>, encoding: <string>, filename: <string>, mimetype: <string>}, ... ]',
      'results': '[{questionLine: <string>, answerLine: <string>, actionSummary: <string>, attempts: <int>, scores: {<string>: <float>, ... }, customResults: {<string>: <string>, ... } }]'})

def stop(sid):
	return none
