<commit_before>from flask import Flask, render_template, jsonify
import os, sys
import ConfigParser
import json
from distutils.util import strtobool

# current dir
dirname, filename = os.path.split(os.path.abspath(__file__))

# py-asterisk
sys.path.append(os.path.join(dirname,  'libs','py-asterisk'))
from Asterisk.Manager import *


app = Flask(__name__)

# config file
cfg_file = 'config.ini'
cfg = ConfigParser.ConfigParser()
cfg.read(os.path.join(dirname, cfg_file))

def __connect_manager():
    host = cfg.get('manager', 'host')
    port = int(cfg.get('manager', 'port'))
    user = cfg.get('manager', 'user')
    password = cfg.get('manager', 'password')
    return Manager((host, port), user, password)
manager = __connect_manager()

def is_debug():
    try:<commit_msg>change comment for dir and file names on code<commit_after>from flask import Flask, render_template, jsonify
import os, sys
import ConfigParser
import json
from distutils.util import strtobool

# get current names for directory and file
dirname, filename = os.path.split(os.path.abspath(__file__))

# py-asterisk
sys.path.append(os.path.join(dirname,  'libs','py-asterisk'))
from Asterisk.Manager import *


app = Flask(__name__)

# config file
cfg_file = 'config.ini'
cfg = ConfigParser.ConfigParser()
cfg.read(os.path.join(dirname, cfg_file))

def __connect_manager():
    host = cfg.get('manager', 'host')
    port = int(cfg.get('manager', 'port'))
    user = cfg.get('manager', 'user')
    password = cfg.get('manager', 'password')
    return Manager((host, port), user, password)
manager = __connect_manager()

def is_debug():
    try:
{'fraction_non_alphanumeric': 0.13835701050030882, 'fraction_numerical': 0.0, 'mean_word_length': 5.044776119402985, 'pattern_counts': {'":': 0, '<': 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': '7596497', 'n_tokens_mistral': 526, 'n_tokens_neox': 519, 'n_words': 136}