<commit_before><?php
/******************************************************************************
 * An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
 *
 * Copyright (c) 2016, 2015 <NAME> <<EMAIL>>
 *
 * This software is licensed under The MIT License. You should have received
 * a copy of the license along with the code.
 */

namespace Lechimp\Dicto\App;

use Lechimp\Dicto\Graph;
use Lechimp\Dicto\Indexer\Insert;
use Doctrine\DBAL\Schema;
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Schema\Synchronizer\SingleDatabaseSynchronizer;
use Doctrine\DBAL\Statement;

class IndexDB extends DB implements Insert {
    protected $nodes_per_insert = 200;

    /**
     * @var array[]
     */
    protected $files = [];

    /**
     * @var array[]
     */
    protected $namespaces = [];

    /**
     * @var array[]
     */
    protected $classes = [];

    /**
     * @var array[]
     */
    protected $interfaces = [];
<commit_msg>put info about tables in an array<commit_after><?php
/******************************************************************************
 * An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
 *
 * Copyright (c) 2016, 2015 <NAME> <<EMAIL>>
 *
 * This software is licensed under The MIT License. You should have received
 * a copy of the license along with the code.
 */

namespace Lechimp\Dicto\App;

use Lechimp\Dicto\Graph;
use Lechimp\Dicto\Indexer\Insert;
use Doctrine\DBAL\Schema;
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Schema\Synchronizer\SingleDatabaseSynchronizer;
use Doctrine\DBAL\Statement;

class IndexDB extends DB implements Insert {
    protected $nodes_per_insert = 200;

    /**
     * @var array
     */
    protected $tables =
        [ "files" => ["id", "path", "source"]
        , "namespaces" => ["id", "name"]
        , "classes" => ["id", "name", "file_id", "start_line", "end_line", "namespace_id"]
        , "interfaces" => ["id", "name", "file_id", "start_line", "end_line", "namespace_id"]
        , "traits" => ["id", "name", "file_id", "start_line", "end_line", "namespace_id"]
        , "method" => ["id", "name", "class_id", "file_id", "start_line", "end_line"]
        , "function" => ["id", "name", "file_id", "start_line", "end_line", "namespace_id"]
        , "globals" => ["id", "name"]
        , "language_constructs" => ["id", "name"]
        , "method_references" => ["id", "name", "file_id", "line", "column"]
        , "function_references" => ["id", "name", "file_id", "line", "column"]
        , "relations" => ["left_id", "relation", "right_id", "file_id", "line"]
        ];

    /**
     * @var array[]
     */
    protected $files = [];

    /**
     * @var array[]
     */
    protected $namespaces = [];

    /**
     * @var array[]
     */
    protected $classes = [];

    /**
     * @var array[]
     */
    protected $interfaces = [];

{'fraction_non_alphanumeric': 0.22148355493351995, 'fraction_numerical': 0.007697690692792162, 'mean_word_length': 3.137481910274964, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '2442701', 'n_tokens_mistral': 945, 'n_tokens_neox': 899, 'n_words': 228}