<commit_before><?php
/**
 * Created by PhpStorm.
 * User: chris
 * Date: 07.11.14
 * Time: 09:41
 */

namespace Productsup\Platform;


class DataModel {
    public $id;
    /**
     * @param null|array $data data to initialise
     */
    public function __construct($data = null) {
        if(is_array($data)) {
            return $this->fromArray($data);
        }
        return $this;
    }
<commit_msg>update comment<commit_after><?php
/**
 * Parent for all data models, with abstraction for mutually used functions
 */
namespace Productsup\Platform;
class DataModel {
    public $id;
    /**
     * @param null|array $data data to initialise
     */
    public function __construct($data = null) {
        if(is_array($data)) {
            return $this->fromArray($data);
        }
        return $this;
    }

{'fraction_non_alphanumeric': 0.12867647058823528, 'fraction_numerical': 0.012254901960784314, 'mean_word_length': 2.37603305785124, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5270263', 'n_tokens_mistral': 256, 'n_tokens_neox': 246, 'n_words': 65}