<commit_before><?php

declare(strict_types=1);

namespace App\Services;
use Log;
use App\{Media, Note, Place};
use App\Jobs\{SendWebMentions, SyndicateToFacebook, SyndicateToTwitter};

class NoteService
{
    /**
     * Create a new note.
     *
     * @param  array $data
     * @return \App\Note $note
     */
    public function createNote(array $data): Note
    {
        Log::info($data);
        //check the input
        if (array_key_exists('content', $data) === false) {
            throw new \Exception('No content defined'); //we can’t fudge the data
        }
        if (array_key_exists('in-reply-to', $data) === false) {
            $data['in-reply-to'] = null;
        }
        if (array_key_exists('client-id', $data) === false) {
            $data['client-id'] = null;
        }
        $note = Note::create(
            [
                'note' => $data['content'],
                'in_reply_to' => $data['in-reply-to'],
                'client_id' => $data['client-id'],
            ]
        );
<commit_msg>Remove un-needed Log statements<commit_after><?php

declare(strict_types=1);

namespace App\Services;

use App\{Media, Note, Place};
use App\Jobs\{SendWebMentions, SyndicateToFacebook, SyndicateToTwitter};

class NoteService
{
    /**
     * Create a new note.
     *
     * @param  array $data
     * @return \App\Note $note
     */
    public function createNote(array $data): Note
    {

        //check the input
        if (array_key_exists('content', $data) === false) {
            throw new \Exception('No content defined'); //we can’t fudge the data
        }
        if (array_key_exists('in-reply-to', $data) === false) {
            $data['in-reply-to'] = null;
        }
        if (array_key_exists('client-id', $data) === false) {
            $data['client-id'] = null;
        }
        $note = Note::create(
            [
                'note' => $data['content'],
                'in_reply_to' => $data['in-reply-to'],
                'client_id' => $data['client-id'],
            ]
        );

{'fraction_non_alphanumeric': 0.15859030837004406, 'fraction_numerical': 0.0009789525208027412, 'mean_word_length': 1.96231884057971, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6172961', 'n_tokens_mistral': 649, 'n_tokens_neox': 632, 'n_words': 138}