<commit_before><?php
/*
 * Copyright (C) 2016 <NAME> <<EMAIL>>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

namespace Documents\Model;

use fpdf\FPDF;

/**
 * Description of StudentIdCardPdf
 *
 * @author <NAME> <<EMAIL>>
 */
class StudentIdCardPdf
{
    
    const BASE_PATH = __DIR__ . '/../../../../..';    
    const MONTHS = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho",
        "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
    
    /* Configurações da página */
    // Dimensões da margem (mm)
    const VERTICAL_MARGIN   = 12;
    const HORIZONTAL_MARGIN = 17;
    
    /* Configurações da carteirinha */
    // Dimensões da carteirinha (mm)
    const CARD_PADDING      = 3.6;
    const CARD_WIDTH        = 88;
    const CARD_HEIGHT       = 54;
    const GAP_BETWEEN_CARDS = 0.5;
    // Texto
    const TITLE = "Curso Assistencial Theodomiro Santiago";
    const SIGNATURE = "Assinatura do Presidente";
    const FONT  = 'Arial';
    // Tamanho do texto (pt)
    const TITLE_TEXT_SIZE   = 9.5;  // Nome do cursinho
    const LABEL_TEXT_SIZE   = 7.5;  // Campo do nome e do RG
    const PHRASE_TEXT_SIZE  = 7.0;  // Frase e autor
    const REGULAR_TEXT_SIZE = 6.5;  // Nome, RG e assinatura
    const EXPIRY_TEXT_SIZE  = 6.0;  // Data de validade
    // Dimensões do logo (mm)
    const LOGO_WIDTH    = 16;
    const LOGO_HEIGHT   = 0; // 0 = automático
    // Dimensões dos campos da frente da carteirinha (mm)
    const FRONT_FIELDS_WIDTH   = 54.5;
    const FRONT_FIELDS_HEIGHT   = 3.9;
    // Dimensões do campo da frase (mm)
    const PHRASE_FIELD_HEIGHT = 22.12;
    const PHRASE_FIELD_PADDING = 3;
    const PHRASE_FIELD_ROW_HEIGHT = 4;
    
    
    private $config;
    private $students;
    
    public function __construct($config, $students)
    {           
        $this->config = $config;
        $this->students = $students;exit;
    }

    /**
     * Monta as carteirinhas de acordo em $config e $students
     * @return FPDF
     */
    public function generatePdf()
    {
        $pdf = new FPDF('P', 'mm', 'A4');
        
        // Variáveis auxiliares
        $yCoordinate = self::VERTICAL_MARGIN;
        $cardVerseX = self::HORIZONTAL_MARGIN + self::GAP_BETWEEN_CARDS + self::CARD_WIDTH;<commit_msg>Retirado o "exit", deixado por engano na classe StudentIdCardPdf.<commit_after><?php
/*
 * Copyright (C) 2016 <NAME> <<EMAIL>>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

namespace Documents\Model;

use fpdf\FPDF;

/**
 * Description of StudentIdCardPdf
 *
 * @author <NAME> <<EMAIL>>
 */
class StudentIdCardPdf
{
    
    const BASE_PATH = __DIR__ . '/../../../../..';    
    const MONTHS = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho",
        "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
    
    /* Configurações da página */
    // Dimensões da margem (mm)
    const VERTICAL_MARGIN   = 12;
    const HORIZONTAL_MARGIN = 17;
    
    /* Configurações da carteirinha */
    // Dimensões da carteirinha (mm)
    const CARD_PADDING      = 3.6;
    const CARD_WIDTH        = 88;
    const CARD_HEIGHT       = 54;
    const GAP_BETWEEN_CARDS = 0.5;
    // Texto
    const TITLE = "Curso Assistencial Theodomiro Santiago";
    const SIGNATURE = "Assinatura do Presidente";
    const FONT  = 'Arial';
    // Tamanho do texto (pt)
    const TITLE_TEXT_SIZE   = 9.5;  // Nome do cursinho
    const LABEL_TEXT_SIZE   = 7.5;  // Campo do nome e do RG
    const PHRASE_TEXT_SIZE  = 7.0;  // Frase e autor
    const REGULAR_TEXT_SIZE = 6.5;  // Nome, RG e assinatura
    const EXPIRY_TEXT_SIZE  = 6.0;  // Data de validade
    // Dimensões do logo (mm)
    const LOGO_WIDTH    = 16;
    const LOGO_HEIGHT   = 0; // 0 = automático
    // Dimensões dos campos da frente da carteirinha (mm)
    const FRONT_FIELDS_WIDTH   = 54.5;
    const FRONT_FIELDS_HEIGHT   = 3.9;
    // Dimensões do campo da frase (mm)
    const PHRASE_FIELD_HEIGHT = 22.12;
    const PHRASE_FIELD_PADDING = 3;
    const PHRASE_FIELD_ROW_HEIGHT = 4;
    
    
    private $config;
    private $students;
    
    public function __construct($config, $students)
    {           
        $this->config = $config;
        $this->students = $students;
    }

    /**
     * Monta as carteirinhas de acordo em $config e $students
     * @return FPDF
     */
    public function generatePdf()
    {
        $pdf = new FPDF('P', 'mm', 'A4');
        
        // Variáveis auxiliares
        $yCoordinate = self::VERTICAL_MARGIN;
        $cardVerseX = self::HORIZONTAL_MARGIN + self::GAP_BETWEEN_CARDS + self::CARD_WIDTH;
{'fraction_non_alphanumeric': 0.10643436260134552, 'fraction_numerical': 0.014835259617043298, 'mean_word_length': 2.5614250614250613, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '370749', 'n_tokens_mistral': 2075, 'n_tokens_neox': 1974, 'n_words': 605}