<commit_before>#!/usr/bin/python

import datetime
import subprocess

current_time = datetime.datetime.now()
apps = []
out = ""
err = ""
proc = ""


def running_apps(appid):
    command = "yarn application -status " + appid
    proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    out, err = proc.communicate()
    lines = out.split("\n")
    app_time = datetime.datetime.fromtimestamp(lines[4] / 1e3)
    print  lines[1].split(":")[1], lines[2].split(":")[1], lines[4].split(":")[1], lines[6].split(":")[1], \
        lines[8].split(":")[1], lines[9].split(":")[1], app_time, (current_time - app_time)


def accepted_apps(appid):
    command = "yarn application -status " + appid<commit_msg>First Commit<commit_after>#!/usr/bin/python

import datetime
import subprocess

current_time = datetime.datetime.now()
apps = []
out = ""
err = ""
proc = ""
 

def running_apps(appid):
    command = "yarn application -status " + appid
    proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    out, err = proc.communicate()
    lines = out.split("\n")
    app_time = datetime.datetime.fromtimestamp(lines[4] / 1e3)
    print  lines[1].split(":")[1], lines[2].split(":")[1], lines[4].split(":")[1], lines[6].split(":")[1], \
        lines[8].split(":")[1], lines[9].split(":")[1], app_time, (current_time - app_time)


def accepted_apps(appid):
    command = "yarn application -status " + appid
{'fraction_non_alphanumeric': 0.19591836734693877, 'fraction_numerical': 0.02040816326530612, 'mean_word_length': 4.349090909090909, 'pattern_counts': {'":': 12, '<': 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': '2598637', 'n_tokens_mistral': 535, 'n_tokens_neox': 525, 'n_words': 96}