def config(self, what='<STR_LIT>', params=None):
if what == '<STR_LIT>':<EOL><INDENT>return {<EOL>'<STR_LIT:name>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': [],<EOL>}<EOL><DEDENT>elif what == '<STR_LIT>':<EOL><INDENT>self.workspace = params['<STR_LIT>']['<STR_LIT>']<EOL>self.workspace = os.path.abspath(self.workspace)<EOL>self.username = params['<STR_LIT>']['<STR_LIT>']<EOL>self.fullname = params['<STR_LIT>']['<STR_LIT>']<EOL>self.email = params['<STR_LIT>']['<STR_LIT>']<EOL>repodir = os.path.join(self.workspace, '<STR_LIT>')<EOL>if not os.path.exists(repodir):<EOL><INDENT>return<EOL><DEDENT>for username in os.listdir(repodir):<EOL><INDENT>for reponame in os.listdir(os.path.join(repodir, username)):<EOL><INDENT>if self.is_my_repo(username, reponame):<EOL><INDENT>r = Repo(username, reponame)<EOL>r.rootdir = os.path.join(repodir, username, reponame)<EOL>package = os.path.join(r.rootdir, '<STR_LIT>')<EOL>if not os.path.exists(package):<EOL><INDENT>print("<STR_LIT>")<EOL>print("<STR_LIT>".format(username, reponame))<EOL>continue<EOL><DEDENT>packagedata = open(package).read()<EOL>r.package = json.JSONDecoder(object_pairs_hook=collections.OrderedDict).decode(packagedata)<EOL>r.manager = self<EOL>self.add(r)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Paramers:
---------

workspace: Directory to store the dataset repositories
email: