<commit_before><?php
namespace GDPR\PersonalData;

use Database;
use StringHelper;
use GDPR\PersonalData\Response\ResponseBlock;
use GDPR\PersonalData\Response\BlockData;

class CorePersonalDataResponder implements Responder
{

    protected $profileFields = array(
        "username",
        "lastname",
        "firstname",
        "email",
        "skype_id",
        "twitter",
        "homepage",
        "about_me"
    );

    public function getData($query)
    {
        $person = new \Person();
        
        $userQuery = Database::pQuery("select * from `{prefix}users` where email = ?", array(
            trim($query)
        ), true);
        if (Database::getNumRows($userQuery)) {
            $row = Database::fetchObject($userQuery);
            $person->email = $row->email;
            if (StringHelper::IsNotNullOrWhitespace($row->lastname) and StringHelper::IsNotNullOrWhitespace($row->firstname)) {
                $person->name = "{$row->lastname}, {$row->firstname}";
            } else if (StringHelper::IsNotNullOrWhitespace($row->lastname)) {
                $person->name = $row->lastname;
            } else {<commit_msg>notice<commit_after><?php
namespace GDPR\PersonalData;

use Database;
use StringHelper;
use GDPR\PersonalData\Response\ResponseBlock;
use GDPR\PersonalData\Response\BlockData;

class CorePersonalDataResponder implements Responder
{

    protected $profileFields = array(
        "username",
        "lastname",
        "firstname",
        "email",
        "skype_id",
        "twitter",
        "homepage",
        "about_me",
        "notice"
    );

    public function getData($query)
    {
        $person = new \Person();
        
        $userQuery = Database::pQuery("select * from `{prefix}users` where email = ?", array(
            trim($query)
        ), true);
        if (Database::getNumRows($userQuery)) {
            $row = Database::fetchObject($userQuery);
            $person->email = $row->email;
            if (StringHelper::IsNotNullOrWhitespace($row->lastname) and StringHelper::IsNotNullOrWhitespace($row->firstname)) {
                $person->name = "{$row->lastname}, {$row->firstname}";
            } else if (StringHelper::IsNotNullOrWhitespace($row->lastname)) {
                $person->name = $row->lastname;
            } else {
{'fraction_non_alphanumeric': 0.13866090712742982, 'fraction_numerical': 0.0, 'mean_word_length': 2.498489425981873, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '3639198', 'n_tokens_mistral': 672, 'n_tokens_neox': 653, 'n_words': 121}