<commit_before># -*- coding: utf-8 -*-
'''
Created on Oct 3, 2013

@author: <NAME>
'''
import time
from urlparse import urlparse, parse_qs


from google.appengine.ext import ndb
from google.appengine.ext import blobstore

from webapp2 import uri_for
from webapp2_extras.appengine.auth.models import User as GAEUser
from webapp2_extras import security

from core.base import BaseModel
from core import util

class Estado(BaseModel):
	estado_id = ndb.IntegerProperty()
	sigla = ndb.StringProperty()
	nome = ndb.StringProperty()

	

<commit_msg>add base models<commit_after># -*- coding: utf-8 -*-
'''
Created on Oct 3, 2013

@author: <NAME>
'''
import time
from urlparse import urlparse, parse_qs


from google.appengine.ext import ndb
from google.appengine.ext import blobstore

from webapp2 import uri_for
from webapp2_extras.appengine.auth.models import User as GAEUser
from webapp2_extras import security

from core.base import BaseModel
from core import util

class Estado(BaseModel):
	estado_id = ndb.IntegerProperty()
	sigla = ndb.StringProperty()
	nome = ndb.StringProperty()
	
class Partido(BaseModel):
	partido_id = ndb.IntegerProperty()
	sigla = ndb.StringProperty()
	
class Cargo(BaseModel):
	cargo_id = ndb.IntegerProperty()
	nome = ndb.StringProperty()
	
class Candidato(BaseModel):
	id = ndb.IntegerProperty()
	apelido = ndb.StringProperty()
	nome = ndb.StringProperty()
	numero = ndb.IntegerProperty()
	titulo = ndb.IntegerProperty()
	cpf = ndb.IntegerProperty()
	matricula = ndb.IntegerProperty()
	cargo = ndb.StringProperty()
	estado = ndb.StringProperty()
	partido = ndb.StringProperty()
	idade = ndb.IntegerProperty()
	instrucao = ndb.StringProperty()
	ocupacao = ndb.StringProperty()
	mini_bio = ndb.StringProperty()
	cargos = ndb.StringProperty()
	previsao = ndb.FloatProperty()
	bancadas = ndb.StringProperty()
	processos = ndb.StringProperty()
	casa_atual = ndb.IntegerProperty()
	reeleicao = ndb.BooleanProperty()
	foto = ndb.StringProperty()
	
	#candidaturas
	candidaturas = ndb.IntegerProperty()
	
	#estatisticas
	faltas_plenario = ndb.FloatProperty()
	media_plenario = ndb.FloatProperty()
	faltas_comissoes = ndb.FloatProperty()
	media_comissoes = ndb.FloatProperty()
	evolucao = ndb.FloatProperty()
	ano_referencia = ndb.IntegerProperty()
	emendas = ndb.FloatProperty()
	media_emendas = ndb.FloatProperty()
{'fraction_non_alphanumeric': 0.10330047149592798, 'fraction_numerical': 0.007715387912558937, 'mean_word_length': 5.308108108108108, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2303244', 'n_tokens_mistral': 826, 'n_tokens_neox': 802, 'n_words': 188}