Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

primeira versão #1

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 146 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,149 @@ vignettes/*.pdf

# R Environment Variables
.Renviron

/.quarto/
docs/tasks/view-remuneracao-base/src/02-dashboard.html
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/ConselhosdeJustiçaCJF-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/ConselhosdeJustiçaCNJ-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-1-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-2-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-3-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-4-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-5-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-6-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-7-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-8-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-9-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-10-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-11-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-12-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-13-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-14-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-15-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-16-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-17-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-18-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-19-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-20-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-21-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-22-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-23-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçadoTrabalhoTRT-24-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-AC-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-AL-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-AM-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-AP-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-BA-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-CE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-DF-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-ES-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-GO-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-MA-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-MG-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-MS-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-MT-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-PA-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-PB-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-PE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-PI-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-PR-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-RJ-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-RN-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-RO-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-RR-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-RS-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-SC-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-SE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-SP-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEleitoralTRE-TO-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-AC-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-AL-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-AM-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-AP-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-BA-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-CE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-DFT-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-ES-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-GO-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-MA-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-MG-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-MS-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-MT-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-PA-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-PB-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-PE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-PI-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-PR-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-RJ-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-RN-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-RO-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-RR-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-RS-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-SC-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-SE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-SP-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaEstadualTJ-TO-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaFederalTRF-1-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaFederalTRF-2-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaFederalTRF-3-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaFederalTRF-4-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaFederalTRF-5-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaFederalTRF-6-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaMilitarTJM-MG-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaMilitarTJM-RS-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaMilitarTJM-SP-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaSuperiorSTF-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaSuperiorSTJ-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaSuperiorSTM-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaSuperiorTSE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/JustiçaSuperiorTST-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-AC-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-AL-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-AM-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-AP-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-BA-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-CE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-DFT-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-ES-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-GO-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-MA-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-MG-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-MS-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-MT-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-PA-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-PB-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-PE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-PI-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-PR-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-RJ-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-RN-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-RO-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-RR-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-RS-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-SC-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-SE-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-SP-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMP-TO-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMPF-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMPM-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/figure-html/MinistériosPúblicosMPT-1.png
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/bootstrap/bootstrap-a23d63ef1abe7d502b9940799573d78b.min.css
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/bootstrap/bootstrap-icons.css
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/bootstrap/bootstrap-icons.woff
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/bootstrap/bootstrap.min.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/clipboard/clipboard.min.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-dashboard/components.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-dashboard/datatables.min.css
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-dashboard/datatables.min.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-dashboard/pdfmake.min.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-dashboard/quarto-dashboard.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-dashboard/stickythead.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-dashboard/vfs_fonts.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-dashboard/web-components.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-html/anchor.min.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-html/popper.min.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-html/quarto-syntax-highlighting-549806ee2085284f45b00abea8c6df48.css
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-html/quarto.js
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-html/tippy.css
docs/tasks/view-remuneracao-base/src/02-dashboard_files/libs/quarto-html/tippy.umd.min.js
92 changes: 4 additions & 88 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,92 +1,8 @@

# Objetivo
# Objetivo

Descrever o objetivo do projeto sendo versionado neste repositório (qual o produto final do repo?).
Alertas semânticos para checar sanidade dos dados armazenados no projeto DadosJusBR.

# Replicação

Escrever aqui anotações importantes para replicação do projeto. Incluindo a ordem em que as tasks devem ser executadas.

* Task1 - Descrição breve.
* Task2 - Descrição breve.

# Responsável

Deixar o link para o perfil no git do responsável principal pelo projeto.

---

# repo-template-tb

A estrutura de pastas proposta nesse repositório segue o conceito de modularização.

* Modularizar o código significa dividir um programa em partes menores e independentes, chamadas módulos. Cada módulo é responsável por uma função específica ou conjunto de funcionalidades relacionadas. Essa abordagem de design de software facilita a manutenção, o desenvolvimento e a compreensão do código, pois torna o programa mais organizado e coeso.

* No nosso caso, os módulos são as tasks. "Tasks should be small enough to understand easily, without having to trace too many different scripts. Transparency is facilitated by standard task naming and task organization so that any analyst can assist any project, with minimal time learning where each piece should be."

## Organização do repositório

* Setup: Contém arquivos que definem configurações no projeto. Além do setup para o R pode conter um arquivo yaml também que defina macros do projeto, entre outros exemplos que se mostrem necessários.

* Tasks

* Pastas para execução de tarefas específicas.

* Cada pasta `task` possui necessariamente a pasta `src` e a pasta `outputs`. Ela utiliza o código em `src` para executar a tarefa e salvar o objeto modificado em `outputs`.

* A pasta `inputs` não é obrigatória, pois a tarefa pode puxar dados de uma outra tarefa executada anteriormente ou puxar dados da pasta `data`.

* A pasta `tmp` não é obrigatória, mas pode ser útil dependendo da tarefa executada.

* Cada pasta `task` pode conter subpastas que executam tasks menores, conforme a necessidade do projeto. Por exemplo, uma pasta que executa a task `data wrangling` pode ser composta por subpastas como `clean`, `filter`, `join`. Nesse caso, a pasta de cada subtarefa também conterá as pastas `src` e `outputs`.

* Data

* Dados que vieram de fora do projeto, não foram processados por scripts nossos. Esses dados podem ser usados em diferentes tasks do projeto.

* Crie subdiretórios dentro de `/data` a fim de facilitar a organização. Por exemplo, se o projeto usa um arquivo de mapa dos estados brasileiros, use uma pasta `source` para armazenar tais arquivos.

* Cada pasta `source` contém necessariamente um arquivo `info.md` indicando a fonte do arquivo. Isso é essencial já que os arquivos em `data` não são criados pelo projeto.

* Docs: coloque o html de versões para publicação em `docs/` e eles estarão disponíveis na página do projeto que terá endereço em https://transparencia-brasil.github.io/nome-do-projeto/. A pasta contém templates para arquivos `rmd` e `qmd` para facilitar.

```
.
├── setup -> Contém arquivos que definem configurações, dependências, e macros no projeto.
├── data/ -> Armeza dados de uma fonte externa que não foi processada por script do projeto
│ ├── source1
│ └── source2
├── tasks/
│ ├── task1/ -> Executa uma tarefa específica
│ │ ├── inputs -> Não é obrigatório
│ │ ├── outputs -> Objeto resultado da execução da tarefa
│ │ ├── src -> Códigos que executam a tarefa
│ │ └── tmp -> Não é obrigatório
│ ├── task2/
│ │ ├── inputs
│ │ ├── outputs
│ │ ├── src
│ │ └── tmp
├── docs -> Contém html de relatórios para que fiquem disponíveis no github.io
├── project.rproj -> Indica a raiz do projeto e informações prévias
├── .gitignore -> Arquivos ou extensões a serem ignoradas no envio ao GitHub
├── LICENSE -> Licença utilizada para o repositório
└── README -> Info sobre o projeto e guia para sua replicação
```

## Dicas para desenvolver

* Não é aconselhável numerar arquivos e pastas, pois conforme o projeto acontece pode ser necessário criar um script ou pasta no meio de outros e será preciso renumerar todos os subsequentes. Isso pode ser trabalhoso em projetos grandes além de gerar quebras em comandos de source dentro de scripts.

* Lembre sempre de refatorar o seu código antes de todo commit, pois cada código precisará ser revisado por outras pessoas do time. Refatorar inclui fazer melhorias específicas no código existente, tornando-o mais legível, mais eficiente e mais fácil de manter, sem alterar sua funcionalidade.

### Referências

https://github.com/vm-wylbur/pdp-poc

https://web.stanford.edu/~gentzkow/research/CodeAndData.pdf

https://hrdag.org/2016/06/14/the-task-is-a-quantum-of-workflow/

https://www.amazon.com.br/Software-Engineering-Data-Scientists-Notebooks/dp/1098136209
# Relatórios e dashboards

[NESTE LINK](https://dadosjusbr.github.io/alertas-semanticos/)
Loading