<commit_before>import sys
sys.path.append('../../')
from lib.cilok import urlEncode16,tokenuri,setTTL,keyuri
from lib.sampeu import getWMTS
from apps.models import calendar
from apps.templates import batik

class Controller(object):
	def home(self,uridt='null'):
		provinsi = 'yogya'
		provloc = '110.384671, -7.828832'
		mapzoom = '9'
		kabkotcord = [
		'110.170217, -7.771697',
		'110.349696, -7.897486',
		'110.616720, -8.030678',
		'110.332540, -7.716233',
		'110.365231, -7.795085'
		]
		listkabkot = [
		'%3401%','%3402%','%3403%','%3404%',
		'%3471%'
		]
		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
		cal = calendar.Calendar()
		dt = {}
		for kabkot in listkabkot:
			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
		cal.close()
		dt['%WMTS%']=getWMTS()
		dt['%PERIODE%']=uridt
		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))<commit_msg>34,03,DAERAH ISTIMEWA YOGYAKARTA,GUNUNG KIDUL Controller<commit_after>import sys
sys.path.append('../../')
from lib.cilok import urlEncode16,tokenuri,setTTL,keyuri
from lib.sampeu import getWMTS
from apps.models import calendar
from apps.templates import batik

class Controller(object):
	def home(self,uridt='null'):
		provinsi = 'yogya'
		provloc = '110.384671, -7.828832'
		mapzoom = '9'
		kabkotcord = [
		'110.170217, -7.771697',
		'110.349696, -7.897486',
		'110.611403, -7.987651',
		'110.332540, -7.716233',
		'110.365231, -7.795085'
		]
		listkabkot = [
		'%3401%','%3402%','%3403%','%3404%',
		'%3471%'
		]
		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
		cal = calendar.Calendar()
		dt = {}
		for kabkot in listkabkot:
			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
		cal.close()
		dt['%WMTS%']=getWMTS()
		dt['%PERIODE%']=uridt
		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
{'fraction_non_alphanumeric': 0.2061805890873974, 'fraction_numerical': 0.12554321583775954, 'mean_word_length': 5.495297805642633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4088242', 'n_tokens_mistral': 1164, 'n_tokens_neox': 962, 'n_words': 123}