<commit_before>import toga

def do_sync(widget):
    print('Sync', widget)

def build(app):
    container = toga.Container()
    button = toga.Button('Syncronise', on_press=do_sync)
    container.add(button)
    #container.constrain(button.TOP == container.TOP + 50)
    #container.constrain(button.LEADING == container.LEADING + 50)
    container.constrain(button.TRAILING + 50 == container.TRAILING)
    container.constrain(button.BOTTOM + 50 < container.BOTTOM)
    return container


if __name__=='__main__':
    app = toga.App('Simple file sync', 'org.anglicarets.filesync', startup=build)
    app.main_loop()
<commit_msg>Toga app which just opens a web browser window<commit_after>#!/usr/bin/env python
from __future__ import print_function, unicode_literals, absolute_import


import toga

class Swim(toga.App):

    def startup(self):
        container = toga.Container()
        self.webview = toga.WebView()
        container.add(self.webview)
        container.constrain(self.webview.TOP == container.TOP)
        container.constrain(self.webview.BOTTOM == container.BOTTOM)
        container.constrain(self.webview.RIGHT == container.RIGHT)
        container.constrain(self.webview.LEFT == container.LEFT)
        self.main_window.content = container
        self.webview.url = 'http://google.com.au'


if __name__=='__main__':
    app = Swim('SyncSwim', 'org.anglicaretas.syncswim')
    app.main_loop()

{'fraction_non_alphanumeric': 0.12429378531073447, 'fraction_numerical': 0.005649717514124294, 'mean_word_length': 3.7871621621621623, 'pattern_counts': {'":': 0, '<': 4, '<?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': '1241402', 'n_tokens_mistral': 479, 'n_tokens_neox': 454, 'n_words': 82}