<commit_before><template>
    <div id="weather">
        <h1 class="pull-right"><i class="fa fa-thermometer-three-quarters"></i>&nbsp; {{ temperature }} °</h1>
        <h4><i class="owf owf-lg" v-bind:class="icon"></i> {{ description }}</h4>
    </div>
</template>

<script>
    import ApiRequest from '../ApiRequest.js';
    import DataUpdater from '../DataUpdater.js';

    export default {
        mixins: [ApiRequest, DataUpdater],
        data() {
            return {
                api_url: '/api.php/weather',
                api_update_interval: 5,

                temperature: null,
                description: null,
                icon: null,
            }
        },
        methods: {
            process(data) {
                this.temperature = data.temperature;
                this.description = data.description;
                this.icon = 'owf-' + data.icon_code;
            }
        }
    }
</script>

<style scoped>

    h4 {
        position: relative;
    }

    H4>i {
        position: absolute;
        top: 87px;
        left: -42px;
    }
</style>

<commit_msg>Weather: Better formatting<commit_after><template>
    <div id="weather">
        <h1 class="pull-right"><i class="fa fa-thermometer-three-quarters"></i>&nbsp; {{ temperature }} °</h1>
        <h4>
            <span>
                <i class="owf owf-lg" v-bind:class="icon"></i> {{ description }}
            </span>
        </h4>
    </div>
</template>

<script>
    import ApiRequest from '../ApiRequest.js';
    import DataUpdater from '../DataUpdater.js';

    export default {
        mixins: [ApiRequest, DataUpdater],
        data() {
            return {
                api_url: '/api.php/weather',
                api_update_interval: 5,

                temperature: null,
                description: null,
                icon: null,
            }
        },
        methods: {
            process(data) {
                this.temperature = data.temperature;
                this.description = data.description;
                this.icon = 'owf-' + data.icon_code;
            }
        }
    }
</script>

<style scoped>

    h4 {
        position: relative;
    }

    H4>span {
        position: absolute;
        top: 85px;
        right: 47px;
    }

</style>


{'fraction_non_alphanumeric': 0.13927943760984182, 'fraction_numerical': 0.009666080843585237, 'mean_word_length': 1.4803921568627452, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, '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': '5976043', 'n_tokens_mistral': 711, 'n_tokens_neox': 670, 'n_words': 137}