This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.s03.ex4; | |
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.api.Test; | |
import org.mockito.Mock; | |
import org.mockito.MockitoAnnotations; | |
import java.util.ArrayList; | |
import static org.junit.jupiter.api.Assertions.assertEquals; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.s03.ex3; | |
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.extension.ExtendWith; | |
import org.mockito.Mock; | |
import org.mockito.junit.jupiter.MockitoExtension; | |
import static org.junit.jupiter.api.Assertions.assertEquals; | |
import static org.mockito.Mockito.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.s03.ex2; | |
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.api.Test; | |
import org.mockito.Mock; | |
import org.mockito.MockitoAnnotations; | |
import static org.junit.jupiter.api.Assertions.assertEquals; | |
import static org.mockito.Mockito.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import mimetypes | |
from typing import Optional | |
import os | |
from urllib.parse import urlencode, quote | |
# ==== Exceptions ==== | |
class TokenExchangeError(Exception): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.s01.ex5; | |
import org.junit.jupiter.api.Test; | |
import java.util.ArrayList; | |
import static org.junit.jupiter.api.Assertions.*; | |
public class AnalisadorTest { | |
@Test | |
public void testAnalisarComListaNulaOuVazia() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.s01.ex4; | |
import org.junit.jupiter.api.Test; | |
import static org.junit.jupiter.api.Assertions.*; | |
public class ClassificadorTest { | |
@Test | |
public void testDefinirFaixaEtariaComIdadeInvalida() { | |
Classificador classificador = new Classificador(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import org.example.s01.ex3.IMCCalculadora; | |
import org.example.s01.ex3.IMCStatus; | |
import org.example.s01.ex3.Pessoa; | |
import org.junit.jupiter.api.Test; | |
import static org.junit.jupiter.api.Assertions.*; | |
public class IMCCalculadoraTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import pandas as pd | |
# Dados simulados baseados no artigo: "An Experimental Analysis on Different Pivot Selection Approaches for the Quicksort Algorithm" | |
data = { | |
'Estratégia': ['MOT', 'MO5', 'MO7'], | |
'Média de Tempo (s)': [0.0124, 0.0139, 0.0112], | |
'Desvio Padrão': [0.001, 0.002, 0.0008] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ================================================================ | |
-- 1. Criação do Banco de Dados e Implementação de Restrições | |
-- ================================================================ | |
-- Drop e criação do banco de dados | |
DROP DATABASE IF EXISTS portal_cidadao; | |
CREATE DATABASE portal_cidadao; | |
\c portal_cidadao; | |
-- Tabela: Cidadão |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Thomas Edison", | |
"label": "Inventor and Businessman", | |
"picture": "https://example.com/photo.jpg", | |
"email": "[email protected]", | |
"phone": "(123) 456-7890", | |
"website": "https://thomasedison.com", | |
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.", | |
"location": { |
NewerOlder