<commit_before>#!/usr/bin/env python
# =============================================================================
# file = filesystem.py
# description = Gets file system data
# author = GR <https://github.com/shortdudey123>
# create_date = 2014-07-29
# mod_date = 2014-07-29
# version = 0.1
# usage = 
# notes =
# python_ver = 2.7.6
# =============================================================================

import subprocess
import platform

def getFilesystemData():
    retData = {}
    sys = platform.system()

    if sys == 'Linux':
        proc = subprocess.Popen(["df"], stdout=subprocess.PIPE)
        rawData = proc.communicate()
        print rawData
    return retData

if __name__ == '__main__':
    getFilesystemData()<commit_msg>fix syntax<commit_after>#!/usr/bin/env python
# =============================================================================
# file = filesystem.py
# description = Gets file system data
# author = GR <https://github.com/shortdudey123>
# create_date = 2014-07-29
# mod_date = 2014-07-29
# version = 0.1
# usage = 
# notes =
# python_ver = 2.7.6
# =============================================================================

import subprocess
import platform

def getFilesystemData():
    retData = {}
    sys = platform.system()

    if sys == 'Linux':
        proc = subprocess.Popen(["df"], stdout=subprocess.PIPE)
        rawData = proc.communicate()
        rawDataLines = rawData[0].split('\n')
        print rawDataLines
    return retData

if __name__ == '__main__':
    getFilesystemData()
{'fraction_non_alphanumeric': 0.30774193548387097, 'fraction_numerical': 0.031612903225806455, 'mean_word_length': 4.152823920265781, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4466486', 'n_tokens_mistral': 484, 'n_tokens_neox': 428, 'n_words': 96}