<commit_before># -*- coding: utf-8 -*-

"""
    Synchronisation - Controllers
"""

module = "admin"
log_table = "sync_log"
conflict_table = "sync_conflict"
sync_peer = None

# Options Menu (available in all Functions' Views)
# - can Insert/Delete items from default menus within a function, if required.
response.menu_options = admin_menu_options

# Web2Py Tools functions
def call():
    "Call an XMLRPC, JSONRPC or RSS service"
    # Sync webservices don't use sessions, so avoid cluttering up the storage
    session.forget()
    return service()

# S3 framework functions
def index():
    "Module's Home Page"
    
    module_name = s3.modules[module]["name_nice"]
    
    return dict(module_name=module_name)

@auth.requires_login()
def now():
    "Manual syncing"
    
    module_name = "Synchronisation"
    final_status = ""
    
    # retrieve sync partners from DB
    peers = db().select(db.sync_partner.ALL)
    
    # for eden instances
    final_status = ""
    modules = s3.modules
    _db_tables = db.tables
    db_tables = []<commit_msg>- fixed a minor issue in sync controller<commit_after># -*- coding: utf-8 -*-

"""
    Synchronisation - Controllers
"""

module = "admin"
log_table = "sync_log"
conflict_table = "sync_conflict"
sync_peer = None

# Options Menu (available in all Functions' Views)
# - can Insert/Delete items from default menus within a function, if required.
response.menu_options = admin_menu_options

# Web2Py Tools functions
def call():
    "Call an XMLRPC, JSONRPC or RSS service"
    # Sync webservices don't use sessions, so avoid cluttering up the storage
    session.forget()
    return service()

# S3 framework functions
def index():
    "Module's Home Page"
    
    module_name = "Synchronisation"
    
    return dict(module_name=module_name)

@auth.requires_login()
def now():
    "Manual syncing"
    
    module_name = "Synchronisation"
    final_status = ""
    
    # retrieve sync partners from DB
    peers = db().select(db.sync_partner.ALL)
    
    # for eden instances
    final_status = ""
    modules = s3.modules
    _db_tables = db.tables
    db_tables = []
{'fraction_non_alphanumeric': 0.09985869053226566, 'fraction_numerical': 0.004239284032030146, 'mean_word_length': 3.282258064516129, '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': '2441666', 'n_tokens_mistral': 671, 'n_tokens_neox': 657, 'n_words': 197}