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
### TODO: Define your architecture. | |
from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D | |
from keras.layers import Dropout, Flatten, Dense | |
from keras.models import Sequential | |
vgg19_model = Sequential() | |
vgg19_model.add(GlobalAveragePooling2D(input_shape=train_vgg19.shape[1:])) | |
vgg19_model.add(Dense(512, activation='relu')) | |
vgg19_model.add(Dropout(0.5)) | |
vgg19_model.add(Dense(512, activation='relu')) |
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
@Controller @RequestMapping("/abastecimento") | |
class AbastecimentoController { | |
private AbastecerVeiculo abastecerVeiculo; | |
public void abastecerVeiculo(int veiculoId, int bombaDeCombustivelId, double litros){ | |
try{ | |
// valida os parâmetros de entrada | |
// inicia uma transação com o banco de dados | |
abastecerVeiculo.execute(veiculoId, bombaDeCombustivelId, litros); | |
} catch(AbastecimentoException e){ |
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
class AbastecerVeiculo { | |
private VeiculoRepositorio todosOsVeiculos; | |
private BombasRepositorio todasAsBombas; | |
public void executar(int veiculoId, int bombaDeCombustivelId, double litros){ | |
Veiculo veiculo = todosOsVeiculos.obterPorId(veiculoId); | |
BombaDeCombustivel bomba = todasAsBombas.obterPorId(bombaDeCombustivelId); | |
bomba.abastecer(veiculo); | |
todosOsVeiculos.atualizar(veiculo); | |
todasAsBombas.atualizar(bomba); |
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
class Veiculo { | |
private double capacidadeDoTanque; | |
private double quantidadeCombustivel; | |
public boolean tanquePossuiEspacoDisponivel(double litros){ | |
return this.capacidadeDoTanque > (this.quantidadeDeCombustivel + litros); | |
} | |
public void encherOTanque(double litros){ | |
if (! this.tanquePossuiEspacoDisponivel(litros)) new VeiculoComTanqueCheioException(.....); |
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
class BombaDeCombustivel{ | |
private double quantidadeDeCombustivel; | |
public void abastecer(double litros, Veiculo veiculo){ | |
if (litros <= 0) new BombaDeCombustivelVaziaException(....); | |
if (! this.temCombustivelSuficiente(litros)) new QuantidadeInsuficienteException(....); | |
veiculo.encherOTanque(litros); | |
this.quantidadeDeCombustivel -= litros; | |
} | |
public boolean temCombustivelSuficiente(double litros){ | |
return this.quantidadeDeCombustivel >= litros; |
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
{ | |
"name": "atendimento lecom", | |
"variavelDependente": "Avaliação", | |
"variavelIndependentes": ["Gerente de Projeto", "Area"], | |
"dataInicioVariavel": "DataInicio", | |
"dataFimVariavel": "DAtaFime", | |
"Instances": [ | |
{ | |
"id":35271, | |
"dataInicio":"29/01/2014", |
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 br.com.elogroup.analytics.process.usecases; | |
import java.util.List; | |
import br.com.elogroup.analytics.process.domain.AllProcesses; | |
import br.com.elogroup.analytics.process.domain.Process; | |
public class ConfigureProcess { | |
private AllProcesses allProcesses; |
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
class BrmedExtensionPoint | |
def get_students_list | |
end | |
def xpto | |
end | |
end | |
class ElgroupExtensionPoint |
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
<arquillian xmlns="http://jboss.org/schema/arquillian" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://jboss.org/schema/arquillian | |
http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> | |
<container qualifier="jbossas-managed" default="true"> | |
<configuration> | |
<property name="jbossHome">${JBOSS_HOME}</property> | |
</configuration> | |
</container> |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>br.com.innvent.mcti.empresa</groupId> | |
<artifactId>empresa-ws</artifactId> | |
<packaging>ejb</packaging> | |
<version>1.0</version> | |
<name>Empresa WS</name> |
NewerOlder