<commit_before><?php
/**
 * Created by IntelliJ IDEA.
 * User: alex
 * Date: 22.07.17
 * Time: 18:38
 */

namespace microapi\dto;

use Psr\Http\Message\StreamInterface;

interface DtoFactory {
    public function createFromStream(string $class, StreamInterface $stream): DTO;
}<commit_msg>- added method to interface<commit_after><?php
/**
 * Created by IntelliJ IDEA.
 * User: alex
 * Date: 22.07.17
 * Time: 18:38
 */

namespace microapi\dto;

use Psr\Http\Message\StreamInterface;

interface DtoFactory {
    public function createFromStream(string $class, StreamInterface $stream): DTO;

    public function createFromData(string $class, array $data): DTO;
}
{'fraction_non_alphanumeric': 0.12084592145015106, 'fraction_numerical': 0.030211480362537766, 'mean_word_length': 4.434426229508197, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6237436', 'n_tokens_mistral': 233, 'n_tokens_neox': 215, 'n_words': 59}