<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: efourrier

Purpose : Get temperature of your rpi cluster via python
"""

import subprocess
import re


def get_temperature():
    """ Get the temperature in Celsius of your pi, execute it on the pi """
    cmd = "/opt/vc/bin/vcgencmd measure_temp"
    output = subprocess.check_output(cmd, shell=True)
    regex_number = re.compile("\d+\.\d+")
    return float(re.search(regex_number, output).group())

if __name__ == "__main__":
    get_temperature()
<commit_msg>Add print<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: efourrier

Purpose : Get temperature of your rpi cluster via python
"""

import subprocess
import re


def get_temperature():
    """ Get the temperature in Celsius of your pi, execute it on the pi """
    cmd = "/opt/vc/bin/vcgencmd measure_temp"
    output = subprocess.check_output(cmd, shell=True)
    regex_number = re.compile("\d+\.\d+")
    return float(re.search(regex_number, output).group())

if __name__ == "__main__":
    print("Temperature in Celsius :{}".format(get_temperature()))

{'fraction_non_alphanumeric': 0.14695340501792115, 'fraction_numerical': 0.0017921146953405018, 'mean_word_length': 3.9424778761061945, 'pattern_counts': {'":': 2, '<': 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': '5467796', 'n_tokens_mistral': 369, 'n_tokens_neox': 358, 'n_words': 102}