<commit_before>#!/usr/bin/env php
<?php

$loader = require_once __DIR__ . '/../vendor/autoload.php';

use PHPWorldWide\FacebookBot\Bot;
use PHPWorldWide\FacebookBot\Connection\ConnectionParameters;

use Symfony\Component\Yaml\Yaml;

// parse parameters.yml file
$yaml = Yaml::parse(file_get_contents('./parameters.yml'));

try {
    $email = $yaml['facebookbot']['email'];
    $password = $yaml['facebookbot']['password'];

    $appId = $yaml['facebookbot']['app_id'];
    $appSecret = $yaml['facebookbot']['app_secret'];
    $accessToken = $yaml['facebookbot']['access_token'];
    
    $groupId = $yaml['facebookbot']['group_id'];
    $debug = $yaml['facebookbot']['debug'];

    $connectionParameters = new ConnectionParameters($email, $password, $appId, $appSecret, $accessToken, $groupId);

    $bot = new Bot($connectionParameters);
    $bot->getModuleManager()->loadModule('MemberRequest');
    $bot->getModuleManager()->loadModule('NewPost');
} catch (\Exception $e) {<commit_msg>Removed hard-coded time settings<commit_after>#!/usr/bin/env php
<?php

$loader = require_once __DIR__ . '/../vendor/autoload.php';

use PHPWorldWide\FacebookBot\Bot;
use PHPWorldWide\FacebookBot\Connection\ConnectionParameters;

use Symfony\Component\Yaml\Yaml;

// parse parameters.yml file
$yaml = Yaml::parse(file_get_contents('./parameters.yml'));

try {
    $email = $yaml['facebookbot']['email'];
    $password = $yaml['facebookbot']['password'];

    $appId = $yaml['facebookbot']['app_id'];
    $appSecret = $yaml['facebookbot']['app_secret'];
    $accessToken = $yaml['facebookbot']['access_token'];

    $groupId = $yaml['facebookbot']['group_id'];
    $debug = $yaml['facebookbot']['debug'];

    $connectionParameters = new ConnectionParameters($email, $password, $appId, $appSecret, $accessToken, $groupId);

    $bot = new Bot($connectionParameters);
    $bot->getModuleManager()->loadModule('MemberRequest');
    $bot->getModuleManager()->loadModule('NewPost');
} catch (\Exception $e) {
{'fraction_non_alphanumeric': 0.18834756403817177, 'fraction_numerical': 0.0, 'mean_word_length': 5.617940199335548, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3039165', 'n_tokens_mistral': 625, 'n_tokens_neox': 600, 'n_words': 101}