text
stringlengths
3
1.05M
# ======================================================================== # # Imports # # ======================================================================== import os import sys import argparse import pickle from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines import PPO2 sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))) import mprl.engines as engines import mprl.agents as agents import mprl.utilities as utilities import mprl.inputs as inputs import mprl.reward as rw # ======================================================================== # # Main # # ======================================================================== if __name__ == "__main__": # Parse arguments parser = argparse.ArgumentParser(description="Plot agents") parser.add_argument( "-a", "--agents", help="Agents to plot", type=str, required=True, nargs="+" ) parser.add_argument( "-l", "--labels", help="Labels for plot", type=str, nargs="+", default=None ) parser.add_argument( "-w", "--weights", help="Weights for rewards", type=float, nargs="+", action="append", default=None, ) parser.add_argument( "--legends", help="Figure titles where legend should appear", type=str, nargs="+", default=["p"], ) parser.add_argument("--exp", help="Plot exp data", action="store_true") args = parser.parse_args() for k, fname in enumerate(args.agents): fdir = os.path.dirname(os.path.abspath(fname)) run_args = pickle.load(open(os.path.join(fdir, "args.pkl"), "rb")) # Read input parameters params = inputs.Input() params.from_toml(os.path.join(fdir, os.path.basename(run_args.fname))) # Initialize the reward rwd_params = params.inputs["reward"] if args.weights is None: weights = rwd_params["weights"].value randomize = rwd_params["randomize"].value else: weights = args.weights[k] randomize = False if len(weights) != len(rwd_params["weights"].value): sys.exit("Wrong weights input length") reward = rw.Reward( names=rwd_params["names"].value, norms=rwd_params["norms"].value, weights=weights, negative_reward=rwd_params["negative_reward"].value, EOC_reward=rwd_params["EOC_reward"].value, randomize=randomize, random_updates=rwd_params["random_updates"].value, ) # Initialize the engine eng_params = params.inputs["engine"] if eng_params["engine"].value == "reactor-engine": eng = engines.ReactorEngine( Tinj=eng_params["Tinj"].value, nsteps=eng_params["nsteps"].value, mdot=eng_params["mdot"].value, max_minj=eng_params["max_minj"].value, injection_delay=eng_params["injection_delay"].value, max_pressure=eng_params["max_pressure"].value, ename=eng_params["ename"].value, reward=reward, fuel=eng_params["fuel"].value, rxnmech=eng_params["rxnmech"].value, observables=eng_params["observables"].value, use_qdot=eng_params["use_qdot"].value, ) elif eng_params["engine"].value == "EQ-engine": eng = engines.EquilibrateEngine( Tinj=eng_params["Tinj"].value, nsteps=eng_params["nsteps"].value, mdot=eng_params["mdot"].value, max_minj=eng_params["max_minj"].value, injection_delay=eng_params["injection_delay"].value, max_pressure=eng_params["max_pressure"].value, ename=eng_params["ename"].value, reward=reward, fuel=eng_params["fuel"].value, rxnmech=eng_params["rxnmech"].value, observables=eng_params["observables"].value, use_qdot=eng_params["use_qdot"].value, ) elif eng_params["engine"].value == "twozone-engine": if eng_params["use_continuous"].value: eng = engines.ContinuousTwoZoneEngine( nsteps=eng_params["nsteps"].value, max_pressure=eng_params["max_pressure"].value, ename=eng_params["ename"].value, reward=reward, fuel=eng_params["fuel"].value, rxnmech=eng_params["rxnmech"].value, use_qdot=eng_params["use_qdot"].value, twozone_phi=eng_params["twozone_phi"].value, ) else: eng = engines.DiscreteTwoZoneEngine( nsteps=eng_params["nsteps"].value, mdot=eng_params["mdot"].value, max_minj=eng_params["max_minj"].value, injection_delay=eng_params["injection_delay"].value, max_pressure=eng_params["max_pressure"].value, ename=eng_params["ename"].value, reward=reward, fuel=eng_params["fuel"].value, rxnmech=eng_params["rxnmech"].value, observables=eng_params["observables"].value, twozone_phi=eng_params["twozone_phi"].value, use_qdot=eng_params["use_qdot"].value, ) env = DummyVecEnv([lambda: eng]) agent_params = params.inputs["agent"] if agent_params["agent"].value == "calibrated": agent = agents.CalibratedAgent(env) agent.learn() elif agent_params["agent"].value == "exhaustive": agent = agents.ExhaustiveAgent(env) agent.load(fname, env) elif agent_params["agent"].value == "ppo": agent = PPO2.load(fname, env=env) elif agent_params["agent"].value == "manual": agent = agents.ManualAgent(env=env) agent.load(fname, env) df, total_reward = utilities.evaluate_agent(env, agent) print(f"The total reward for {fname} is {total_reward}.") print(f"The total work for {fname} is {df.work.iloc[-1]}.") if "nox" in df.columns: print(f"The EOC NOx for {fname} is {df.nox.iloc[-1]}.") name = agent_params["agent"].value if args.labels is None else args.labels[k] utilities.plot_df(env, df, idx=k, name=name, plot_exp=args.exp) utilities.save_plots("compare.pdf", legends=args.legends)
var transparent=!0,transparentDemo=!0,fixedTop=!1,navbar_initialized=!1,backgroundOrange=!1,sidebar_mini_active=!1,toggle_initialized=!1,$html=$("html"),$body=$("body"),$navbar_minimize_fixed=$(".navbar-minimize-fixed"),$collapse=$(".collapse"),$navbar=$(".navbar"),$tagsinput=$(".tagsinput"),$selectpicker=$(".selectpicker"),$navbar_color=$(".navbar[color-on-scroll]"),$full_screen_map=$(".full-screen-map"),$datetimepicker=$(".datetimepicker"),$datepicker=$(".datepicker"),$timepicker=$(".timepicker"),seq=0,delays=80,durations=500,seq2=0,delays2=80,durations2=500;function hexToRGB(a,e){var i=parseInt(a.slice(1,3),16),n=parseInt(a.slice(3,5),16),o=parseInt(a.slice(5,7),16);return e?"rgba("+i+", "+n+", "+o+", "+e+")":"rgb("+i+", "+n+", "+o+")"}!function(){if(navigator.platform.indexOf("Win")>-1){if(0!=$(".main-panel").length)new PerfectScrollbar(".main-panel",{wheelSpeed:2,wheelPropagation:!0,minScrollbarLength:20,suppressScrollX:!0});if(0!=$(".sidebar .sidebar-wrapper").length){new PerfectScrollbar(".sidebar .sidebar-wrapper");$(".table-responsive").each(function(){new PerfectScrollbar($(this)[0])})}$html.addClass("perfect-scrollbar-on")}else $html.addClass("perfect-scrollbar-off")}(),$(document).ready(function(){var a=$(".row").offset();(navigator.platform.indexOf("Win")>-1?$(".ps"):$(window)).scroll(function(){$(this).scrollTop()>50?$(".navbar-minimize-fixed").css("opacity","1"):$(".navbar-minimize-fixed").css("opacity","0")}),$(document).scroll(function(){$(this).scrollTop()>a.top?$(".navbar-minimize-fixed").css("opacity","1"):$(".navbar-minimize-fixed").css("opacity","0")}),0==$(".full-screen-map").length&&0==$(".bd-docs").length&&$(".collapse").on("show.bs.collapse",function(){$(this).closest(".navbar").removeClass("navbar-transparent"),console.log("1")}).on("hide.bs.collapse",function(){$(this).closest(".navbar").addClass("navbar-transparent")}),blackDashboard.initMinimizeSidebar(),$navbar=$(".navbar[color-on-scroll]"),scroll_distance=$navbar.attr("color-on-scroll")||500,0!=$(".navbar[color-on-scroll]").length&&(blackDashboard.checkScrollForTransparentNavbar(),$(window).on("scroll",blackDashboard.checkScrollForTransparentNavbar)),$(".form-control").on("focus",function(){$(this).parent(".input-group").addClass("input-group-focus")}).on("blur",function(){$(this).parent(".input-group").removeClass("input-group-focus")}),$(".bootstrap-switch").each(function(){$this=$(this),data_on_label=$this.data("on-label")||"",data_off_label=$this.data("off-label")||"",$this.bootstrapSwitch({onText:data_on_label,offText:data_off_label})})}),$(document).on("click",".navbar-toggle",function(){var a=$(this);if(1==blackDashboard.misc.navbar_menu_visible)$html.removeClass("nav-open"),blackDashboard.misc.navbar_menu_visible=0,setTimeout(function(){a.removeClass("toggled"),$(".bodyClick").remove()},550);else{setTimeout(function(){a.addClass("toggled")},580);$('<div class="bodyClick"></div>').appendTo("body").click(function(){$html.removeClass("nav-open"),blackDashboard.misc.navbar_menu_visible=0,setTimeout(function(){a.removeClass("toggled"),$(".bodyClick").remove()},550)}),$html.addClass("nav-open"),blackDashboard.misc.navbar_menu_visible=1}}),blackDashboard={misc:{navbar_menu_visible:0},initMinimizeSidebar:function(){0!=$(".sidebar-mini").length&&(sidebar_mini_active=!0),$("#minimizeSidebar").click(function(){$(this);1==sidebar_mini_active?($("body").removeClass("sidebar-mini"),sidebar_mini_active=!1,blackDashboard.showSidebarMessage("Sidebar mini deactivated...")):($("body").addClass("sidebar-mini"),sidebar_mini_active=!0,blackDashboard.showSidebarMessage("Sidebar mini activated..."));var a=setInterval(function(){window.dispatchEvent(new Event("resize"))},180);setTimeout(function(){clearInterval(a)},1e3)})},showSidebarMessage:function(a){try{$.notify({icon:"tim-icons ui-1_bell-53",message:a},{type:"info",timer:4e3,placement:{from:"top",align:"right"}})}catch(a){console.log("Notify library is missing, please make sure you have the notifications library added.")}}};
// DATABASE const mongoose = require('mongoose') const connection = mongoose.connection const Promise = require('bluebird') const autoIncrement = require('mongoose-auto-increment') autoIncrement.initialize(connection) mongoose.Promise = Promise module.exports = (config) => { const db_connection_url = config.url const connectDb = new Promise((resolve, reject) => { if (connection.readyState === 1) return resolve({ status:'connected', connection: connection, err:undefined }) mongoose.connect(db_connection_url) connection.on('error', (err) => { reject({ status: 'error', connection: connection, err: err }) }) connection.once('open', () => { resolve({ status: 'connected', connection: connection, err: undefined }) }) }) const db = { connect: connectDb, mongoose: mongoose, autoIncrement: autoIncrement } return db }
// A suite of tests to run on two browsers at once. var env = require('./environment.js'); exports.config = { seleniumAddress: env.seleniumAddress, framework: 'jasmine2', // Spec patterns are relative to this directory. specs: [ 'basic/lib_spec.js' ], multiCapabilities: [{ 'browserName': 'chrome' }, { 'browserName': 'firefox' }], baseUrl: env.baseUrl, params: { login: { user: 'Jane', password: '1234' } } };
import os from andes.shared import np def dump_data(text, header, rowname, data, file, width=14, precision=5): out = '' os.makedirs(os.path.abspath(os.path.dirname(file)), exist_ok=True) with open(file, 'w') as fid: for Text, Header, Rowname, Data in zip(text, header, rowname, data): # Write Text if Text: fid.writelines(Text) # Write Header if Header: ncol = len(Header) s = ' ' * width s += '{:>{width}s}' * ncol + '\n' fid.writelines(s.format(*Header, width=width)) # Mind the asterisk fid.write('\n') # Append Rowname to Data # Data is a list of column lists if Rowname is not None: ncol = 0 for idx, item in enumerate(Rowname): # write by row as always if not Data: out = '' elif isinstance(Data, (int, float)): out = [Data] elif isinstance(Data[0], (int, float)): # is a list of numbers out = [Data[idx]] elif isinstance(Data[0], (list, np.ndarray)): # list of list in Data ncol = len(Data) out = [Data[i][idx] for i in range(ncol)] else: print(Data) print('Unexpected Data during output, in formats/txt.py') s = '{:{width}s}' # for row header for ii, col in enumerate(out): if isinstance(col, (int, float)): s += '{:>{width}.{precision}g}' elif isinstance(col, str): if len(col) > width: out[ii] = col[:width] s += '{:>{width}s}' elif col is None: out[ii] = 'None' s += '{:>{width}s}' else: pass s += '\n' fid.write( s.format( str(item), *out, width=width, precision=precision)) fid.write('\n')
import DataSearch from './DataSearch' export default { path: 'dataSearch', component: DataSearch }
from mpfmc.tests.MpfIntegrationTestCase import MpfIntegrationTestCase from mpfmc.tests.MpfSlideTestCase import MpfSlideTestCase class TestService(MpfIntegrationTestCase, MpfSlideTestCase): def get_config_file(self): return 'config.yaml' def get_machine_path(self): return 'integration/machine_files/service_mode/' def test_service_slides(self): # open door self.hit_switch_and_run("s_door_open", 1) self.assertModeRunning("attract") self.assertSlideOnTop("service_door_open") self.assertTextOnTopSlide("Coil Power Off") # enter self.hit_and_release_switch("s_service_enter") self.advance_time_and_run() self.assertSlideOnTop("service_menu") self.assertTextOnTopSlide("Switch Test") # check software update self.hit_and_release_switch("s_service_down") self.advance_time_and_run() self.assertTextOnTopSlide("Software Update") # Back to switch test self.hit_and_release_switch("s_service_up") self.advance_time_and_run() self.assertTextOnTopSlide("Switch Test") # enter switch test self.hit_and_release_switch("s_service_enter") self.advance_time_and_run() self.assertSlideOnTop("service_switch_test") self.hit_and_release_switch("s_test") self.advance_time_and_run() self.assertTextOnTopSlide("s_test") self.assertTextOnTopSlide("The test switch label") # exit self.hit_and_release_switch("s_service_esc") self.advance_time_and_run() self.assertSlideOnTop("service_menu") self.hit_and_release_switch("s_service_up") self.advance_time_and_run() self.assertTextOnTopSlide("Coil Test") # enter coil test self.hit_and_release_switch("s_service_enter") self.advance_time_and_run() self.assertSlideOnTop("service_coil_test") self.assertTextOnTopSlide("c_test") self.assertTextOnTopSlide("First coil") self.assertTextOnTopSlide("Coil Power Off") # exit self.hit_and_release_switch("s_service_esc") self.advance_time_and_run() self.assertSlideOnTop("service_menu") self.hit_and_release_switch("s_service_up") self.advance_time_and_run() # enter light test self.hit_and_release_switch("s_service_enter") self.advance_time_and_run() self.assertSlideOnTop("service_light_test") self.assertTextOnTopSlide("l_light1") self.assertTextOnTopSlide("First light") self.assertTextOnTopSlide("1/white") # close door self.release_switch_and_run("s_door_open", 1) self.assertTextNotOnTopSlide("Coil Power Off") # exit self.hit_and_release_switch("s_service_esc") self.advance_time_and_run() self.assertSlideOnTop("service_menu") self.hit_and_release_switch("s_service_up") self.advance_time_and_run() self.assertTextOnTopSlide("Settings") # exit service menu self.hit_and_release_switch("s_service_esc") self.advance_time_and_run() if not self.mc.sound_system or not self.mc.sound_system.audio_interface: return # test volume self.assertEqual(0.8, self.machine.variables.get_machine_var("master_volume")) self.hit_and_release_switch("s_service_up") self.advance_time_and_run() self.assertEqual(0.84, self.machine.variables.get_machine_var("master_volume"))
import argparse from time import time import torch from torchvision import datasets, transforms import utility import model_helper import os def get_input_args(): parser = argparse.ArgumentParser() parser.add_argument('data_dir', type=str, help='Set directory to training images') parser.add_argument('--save_dir', type=str, default='checkpoints', help='Set directory to save checkpoints') parser.add_argument('--arch', dest='arch', default='vgg16', action='store', choices=['vgg16', 'densenet121'], help='Model architecture to use for training') parser.add_argument('--learning_rate', type=float, default=0.001, help='Set learning rate hyperparameter') parser.add_argument('--hidden_units', type=int, default=512, help='Set number of hidden units hyperparameter') parser.add_argument('--epochs', type=int, default=3, help='Number of epochs used to train model') parser.add_argument('--gpu', dest='gpu', action='store_true', help='Use GPU for training') parser.set_defaults(gpu=False) return parser.parse_args() def main(): start_time = time() in_args = get_input_args() use_gpu = torch.cuda.is_available() and in_args.gpu print("Training on {} using {}".format( "GPU" if use_gpu else "CPU", in_args.arch)) print("Learning rate:{}, Hidden Units:{}, Epochs:{}".format( in_args.learning_rate, in_args.hidden_units, in_args.epochs)) if not os.path.exists(in_args.save_dir): os.makedirs(in_args.save_dir) training_dir = in_args.data_dir + '/train' validation_dir = in_args.data_dir + '/valid' testing_dir = in_args.data_dir + '/test' data_transforms = { 'training' : transforms.Compose([transforms.RandomRotation(30), transforms.RandomResizedCrop(224), transforms.RandomHorizontalFlip(), transforms.ToTensor(), transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])]), 'validation' : transforms.Compose([transforms.Scale(256), transforms.CenterCrop(224), transforms.ToTensor(), transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])]), 'testing' : transforms.Compose([transforms.Scale(256), transforms.CenterCrop(224), transforms.ToTensor(), transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])]) } dirs = {'training': training_dir, 'validation': validation_dir, 'testing': testing_dir} image_datasets = {x: datasets.ImageFolder(dirs[x], transform=data_transforms[x]) for x in ['training', 'validation', 'testing']} dataloaders = {x: torch.utils.data.DataLoader(image_datasets[x], batch_size=64, shuffle=True) for x in ['training', 'validation', 'testing']} model, optimizer, criterion = model_helper.create_model(in_args.arch, in_args.hidden_units, in_args.learning_rate, image_datasets['training'].class_to_idx) if use_gpu: model.cuda() criterion.cuda() model_helper.train(model, criterion, optimizer, in_args.epochs, dataloaders['training'], dataloaders['validation'], use_gpu) file_path = in_args.save_dir + '/' + in_args.arch + \ '_epoch' + str(in_args.epochs) + '.pth' model_helper.save_checkpoint(file_path, model, optimizer, in_args.arch, in_args.hidden_units, in_args.epochs) test_loss, accuracy = model_helper.validate( model, criterion, dataloaders['testing'], use_gpu) print("Post load Validation Accuracy: {:.3f}".format(accuracy)) image_path = 'flowers/test/28/image_05230.jpg' print("Predication for: {}".format(image_path)) probs, classes = model_helper.predict(image_path, model, use_gpu) print(probs) print(classes) end_time = time() utility.print_elapsed_time(end_time - start_time) if __name__ == "__main__": main()
/** * @license * Copyright 2020 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============================================================================= */ export const STUBBED_IMAGE_VALS = [ 178, 179, 183, 151, 152, 156, 121, 122, 126, 106, 107, 111, 63, 62, 67, 5, 4, 9, 17, 17, 19, 13, 13, 15, 19, 19, 21, 13, 13, 15, 18, 16, 17, 23, 21, 22, 20, 18, 19, 15, 13, 14, 16, 15, 13, 19, 15, 12, 33, 23, 21, 54, 43, 39, 56, 43, 37, 63, 50, 44, 83, 68, 61, 55, 40, 33, 58, 41, 33, 77, 60, 52, 56, 39, 31, 52, 35, 27, 61, 44, 36, 60, 43, 35, 53, 36, 28, 69, 52, 44, 78, 63, 56, 62, 48, 39, 30, 11, 4, 48, 31, 23, 57, 42, 37, 46, 35, 31, 38, 26, 26, 39, 29, 27, 46, 32, 29, 47, 32, 25, 40, 20, 11, 57, 35, 22, 50, 26, 14, 60, 38, 25, 85, 67, 57, 56, 41, 34, 30, 19, 17, 63, 55, 53, 40, 31, 32, 12, 4, 2, 16, 6, 4, 20, 7, 1, 21, 6, 0, 18, 1, 0, 26, 9, 1, 24, 10, 1, 28, 13, 8, 32, 19, 13, 37, 26, 22, 27, 16, 12, 18, 7, 1, 28, 17, 11, 36, 21, 14, 47, 32, 25, 34, 20, 11, 39, 25, 16, 48, 31, 21, 20, 3, 0, 62, 42, 31, 58, 38, 27, 68, 44, 32, 73, 49, 37, 73, 47, 34, 80, 54, 41, 65, 37, 25, 51, 23, 11, 56, 26, 16, 70, 40, 30, 84, 54, 44, 78, 51, 40, 70, 47, 39, 44, 26, 16, 55, 38, 30, 63, 46, 38, 60, 45, 38, 22, 7, 0, 26, 13, 7, 31, 18, 12, 22, 9, 3, 23, 10, 4, 38, 23, 16, 29, 15, 6, 58, 39, 32, 70, 52, 42, 68, 48, 37, 84, 70, 61, 65, 60, 57, 82, 82, 82, 77, 77, 79, 72, 72, 74, 63, 64, 69, 59, 60, 65, 47, 50, 57, 58, 61, 68, 56, 56, 64, 56, 56, 64, 55, 56, 61, 55, 56, 61, 56, 55, 60, 57, 57, 59, 59, 57, 60, 59, 57, 58, 58, 57, 62, 57, 56, 61, 56, 55, 60, 55, 54, 59, 55, 54, 59, 55, 54, 59, 55, 54, 59, 55, 54, 59, 54, 53, 58, 53, 52, 57, 53, 52, 57, 54, 53, 58, 55, 54, 59, 55, 54, 59, 54, 53, 58, 54, 53, 58, 193, 194, 198, 162, 163, 167, 127, 128, 132, 114, 115, 119, 81, 80, 85, 25, 24, 29, 15, 15, 17, 12, 12, 14, 11, 11, 13, 23, 23, 23, 16, 14, 15, 10, 8, 9, 22, 20, 21, 19, 18, 16, 14, 13, 11, 30, 25, 22, 29, 19, 17, 29, 18, 12, 65, 52, 46, 84, 71, 63, 74, 59, 52, 27, 13, 4, 56, 39, 31, 54, 37, 29, 45, 28, 20, 60, 43, 35, 73, 56, 48, 68, 51, 43, 67, 50, 42, 82, 65, 57, 61, 46, 39, 11, 0, 0, 64, 47, 39, 57, 40, 32, 46, 31, 26, 38, 27, 25, 39, 29, 28, 46, 36, 34, 51, 40, 36, 56, 41, 34, 61, 41, 32, 65, 43, 32, 59, 35, 23, 71, 49, 36, 71, 53, 43, 50, 35, 28, 45, 34, 32, 44, 34, 33, 32, 23, 24, 15, 7, 5, 14, 3, 1, 15, 2, 0, 15, 0, 0, 18, 1, 0, 28, 11, 3, 32, 18, 9, 36, 21, 16, 30, 17, 11, 33, 22, 18, 42, 31, 27, 33, 22, 16, 16, 5, 0, 53, 38, 31, 34, 19, 12, 25, 11, 2, 47, 30, 20, 42, 25, 15, 61, 43, 31, 67, 47, 36, 64, 42, 29, 77, 53, 41, 76, 52, 40, 82, 56, 43, 59, 33, 20, 50, 22, 10, 67, 39, 27, 76, 46, 36, 75, 45, 35, 80, 50, 40, 72, 45, 34, 54, 32, 21, 36, 18, 8, 59, 40, 33, 47, 30, 22, 56, 41, 34, 38, 23, 16, 18, 5, 0, 29, 16, 10, 12, 0, 0, 36, 23, 15, 32, 17, 10, 43, 26, 18, 55, 37, 27, 68, 50, 38, 70, 50, 39, 85, 68, 60, 86, 81, 77, 70, 70, 70, 75, 75, 75, 86, 86, 88, 70, 69, 74, 57, 58, 63, 55, 56, 61, 56, 56, 64, 55, 55, 63, 56, 56, 64, 57, 58, 63, 58, 59, 64, 59, 58, 63, 58, 57, 62, 58, 56, 59, 57, 55, 58, 57, 56, 61, 57, 56, 61, 56, 55, 60, 55, 54, 59, 55, 54, 59, 54, 53, 58, 55, 54, 59, 55, 54, 59, 54, 53, 58, 54, 53, 58, 53, 52, 57, 53, 52, 57, 54, 53, 58, 54, 53, 58, 53, 52, 57, 52, 51, 56, 199, 202, 207, 171, 174, 179, 134, 137, 142, 120, 123, 128, 96, 97, 101, 44, 45, 49, 8, 8, 10, 13, 13, 15, 16, 14, 15, 20, 18, 19, 24, 20, 21, 21, 17, 16, 19, 15, 14, 26, 22, 21, 29, 25, 24, 27, 19, 16, 38, 27, 23, 51, 38, 32, 72, 57, 52, 78, 63, 56, 63, 46, 39, 35, 18, 10, 55, 36, 29, 46, 28, 18, 36, 18, 8, 47, 29, 19, 44, 27, 19, 60, 43, 35, 81, 66, 59, 60, 45, 38, 41, 26, 19, 65, 50, 43, 70, 53, 46, 50, 35, 28, 36, 22, 19, 39, 28, 26, 45, 35, 34, 46, 36, 34, 45, 34, 30, 50, 35, 30, 62, 43, 36, 58, 38, 27, 69, 47, 34, 94, 74, 63, 75, 57, 47, 50, 35, 28, 49, 38, 34, 13, 3, 1, 22, 14, 12, 22, 14, 11, 16, 5, 1, 15, 2, 0, 15, 0, 0, 27, 10, 2, 39, 22, 14, 51, 37, 28, 43, 28, 23, 40, 27, 21, 33, 22, 18, 51, 40, 36, 47, 36, 32, 26, 15, 9, 53, 38, 31, 25, 10, 3, 40, 23, 15, 58, 40, 30, 54, 36, 26, 81, 61, 50, 69, 47, 36, 74, 50, 38, 86, 62, 50, 80, 54, 41, 76, 48, 36, 80, 52, 40, 70, 42, 30, 78, 50, 38, 95, 67, 55, 88, 60, 48, 76, 48, 37, 70, 43, 32, 35, 13, 2, 34, 16, 4, 53, 35, 25, 37, 20, 12, 53, 38, 31, 42, 27, 20, 17, 4, 0, 20, 7, 1, 24, 9, 2, 15, 0, 0, 52, 35, 28, 71, 54, 46, 73, 55, 45, 63, 43, 32, 75, 53, 42, 72, 55, 45, 70, 63, 57, 80, 79, 77, 87, 86, 84, 79, 79, 79, 78, 78, 80, 65, 64, 69, 57, 56, 62, 54, 55, 60, 55, 56, 61, 56, 57, 62, 57, 58, 63, 57, 58, 63, 58, 57, 62, 57, 56, 61, 57, 57, 59, 56, 56, 58, 56, 55, 60, 56, 55, 60, 55, 54, 59, 55, 54, 59, 54, 53, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 53, 52, 57, 53, 52, 57, 53, 52, 57, 52, 51, 56, 51, 50, 55, 50, 49, 54, 198, 201, 206, 178, 181, 186, 145, 148, 153, 127, 130, 135, 105, 106, 111, 60, 61, 65, 6, 6, 8, 17, 17, 19, 14, 12, 13, 8, 7, 5, 19, 15, 14, 25, 21, 20, 23, 19, 18, 39, 34, 31, 53, 48, 45, 47, 37, 35, 82, 69, 63, 91, 76, 69, 80, 65, 58, 77, 60, 52, 52, 35, 27, 53, 36, 26, 35, 17, 7, 31, 13, 3, 34, 16, 6, 41, 23, 13, 62, 45, 37, 69, 52, 44, 55, 40, 33, 62, 47, 40, 75, 60, 53, 70, 55, 48, 33, 18, 11, 27, 12, 7, 28, 17, 15, 38, 28, 26, 43, 35, 33, 40, 30, 28, 41, 30, 28, 50, 35, 30, 64, 45, 38, 64, 44, 35, 81, 59, 48, 92, 72, 61, 61, 42, 35, 35, 20, 13, 35, 24, 20, 17, 7, 5, 14, 4, 3, 33, 23, 21, 26, 12, 9, 25, 10, 3, 28, 11, 3, 43, 26, 18, 55, 38, 30, 71, 57, 48, 46, 31, 26, 56, 43, 37, 42, 31, 27, 54, 43, 39, 52, 41, 37, 47, 36, 32, 32, 19, 13, 30, 15, 8, 56, 38, 28, 63, 43, 32, 78, 58, 47, 70, 48, 35, 73, 49, 37, 84, 60, 48, 87, 61, 48, 75, 49, 36, 74, 46, 34, 82, 54, 42, 91, 63, 51, 89, 61, 49, 74, 46, 34, 73, 47, 34, 73, 45, 34, 41, 14, 3, 28, 6, 0, 37, 19, 7, 41, 23, 13, 43, 26, 18, 49, 34, 27, 28, 13, 6, 25, 12, 6, 12, 0, 0, 20, 5, 0, 25, 10, 3, 59, 42, 34, 57, 39, 29, 94, 74, 63, 85, 66, 52, 50, 28, 15, 80, 62, 52, 45, 36, 29, 76, 73, 68, 91, 87, 84, 74, 73, 71, 81, 79, 80, 68, 66, 69, 57, 56, 61, 55, 54, 60, 57, 56, 62, 56, 57, 62, 55, 56, 61, 54, 55, 60, 55, 54, 59, 56, 55, 60, 57, 57, 59, 58, 58, 60, 55, 54, 59, 55, 54, 59, 55, 54, 59, 54, 53, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 53, 52, 57, 52, 51, 56, 52, 51, 56, 52, 51, 56, 52, 51, 56, 51, 50, 55, 49, 48, 53, 200, 205, 211, 185, 190, 196, 155, 160, 166, 132, 137, 141, 113, 116, 121, 78, 79, 83, 17, 17, 19, 18, 18, 20, 18, 16, 17, 21, 17, 16, 17, 11, 11, 21, 16, 13, 36, 31, 28, 48, 40, 37, 55, 47, 44, 67, 56, 52, 87, 72, 65, 78, 61, 53, 85, 68, 60, 88, 70, 60, 56, 38, 28, 60, 42, 32, 27, 7, 0, 33, 13, 2, 55, 37, 27, 69, 51, 41, 78, 61, 53, 67, 50, 42, 61, 46, 39, 85, 70, 63, 79, 66, 60, 37, 24, 18, 35, 22, 16, 36, 25, 21, 42, 31, 29, 43, 33, 32, 39, 31, 29, 38, 28, 26, 47, 36, 34, 60, 47, 41, 61, 44, 37, 79, 61, 51, 93, 73, 64, 73, 53, 44, 48, 29, 22, 31, 16, 9, 16, 2, 0, 21, 12, 7, 8, 0, 0, 39, 30, 25, 33, 20, 14, 34, 19, 12, 41, 24, 16, 56, 38, 28, 66, 49, 41, 78, 64, 55, 50, 35, 30, 58, 45, 39, 57, 46, 42, 65, 55, 53, 51, 40, 36, 37, 26, 22, 32, 19, 13, 46, 31, 24, 59, 41, 31, 71, 49, 38, 85, 63, 52, 68, 44, 32, 80, 56, 44, 81, 55, 42, 81, 53, 41, 75, 47, 35, 79, 51, 39, 92, 64, 52, 81, 55, 42, 77, 51, 38, 75, 48, 37, 49, 25, 13, 34, 7, 0, 32, 8, 0, 32, 12, 3, 30, 12, 2, 40, 21, 14, 54, 37, 29, 41, 26, 19, 18, 3, 0, 28, 15, 9, 14, 1, 0, 17, 2, 0, 39, 24, 17, 38, 21, 13, 37, 19, 9, 51, 31, 20, 102, 80, 67, 59, 35, 23, 71, 51, 40, 56, 46, 37, 43, 36, 28, 64, 57, 51, 80, 75, 71, 84, 78, 78, 64, 60, 61, 61, 59, 62, 55, 54, 59, 55, 54, 59, 55, 54, 59, 55, 54, 60, 55, 54, 60, 56, 55, 60, 56, 55, 60, 56, 56, 58, 56, 56, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 54, 53, 58, 53, 52, 57, 53, 52, 57, 52, 51, 56, 51, 50, 55, 51, 50, 55, 51, 50, 55, 52, 51, 56, 52, 51, 56, 51, 50, 55, 50, 49, 54, 203, 208, 214, 190, 195, 201, 164, 169, 175, 135, 140, 146, 120, 123, 128, 93, 97, 100, 37, 36, 41, 12, 12, 12, 23, 19, 20, 20, 16, 15, 29, 24, 21, 41, 33, 30, 44, 36, 33, 50, 41, 36, 57, 48, 43, 60, 47, 41, 47, 30, 22, 64, 46, 36, 88, 70, 60, 71, 53, 43, 66, 48, 38, 59, 41, 31, 35, 15, 4, 58, 38, 27, 83, 65, 55, 74, 56, 46, 53, 36, 28, 68, 51, 43, 92, 77, 70, 63, 50, 42, 30, 17, 11, 43, 32, 28, 37, 26, 22, 40, 30, 28, 43, 33, 32, 39, 29, 28, 33, 25, 23, 37, 27, 25, 49, 38, 36, 62, 49, 43, 65, 48, 41, 80, 61, 54, 80, 61, 54, 47, 28, 21, 51, 34, 27, 55, 40, 33, 17, 4, 0, 8, 0, 0, 8, 0, 0, 40, 29, 25, 39, 24, 19, 42, 25, 17, 52, 33, 26, 62, 44, 34, 73, 56, 48, 76, 61, 54, 57, 42, 37, 44, 33, 29, 69, 58, 56, 78, 68, 66, 51, 40, 36, 10, 0, 0, 56, 43, 37, 61, 46, 39, 76, 56, 47, 89, 67, 56, 71, 47, 37, 78, 54, 42, 78, 51, 40, 65, 39, 26, 77, 49, 37, 82, 54, 42, 87, 59, 47, 80, 54, 41, 82, 56, 43, 80, 56, 44, 52, 28, 16, 29, 7, 0, 34, 12, 1, 28, 8, 0, 37, 19, 9, 22, 5, 0, 47, 30, 22, 52, 38, 29, 30, 15, 8, 21, 8, 0, 25, 12, 6, 21, 8, 2, 27, 14, 8, 22, 7, 0, 21, 4, 0, 35, 17, 7, 17, 0, 0, 63, 41, 28, 77, 55, 42, 35, 16, 2, 71, 59, 47, 38, 29, 20, 32, 23, 16, 58, 51, 45, 85, 77, 75, 72, 66, 66, 59, 55, 56, 55, 53, 56, 55, 53, 56, 55, 54, 59, 57, 56, 62, 58, 57, 63, 58, 57, 62, 56, 55, 60, 54, 54, 56, 52, 52, 54, 53, 52, 57, 53, 52, 57, 53, 52, 57, 54, 53, 58, 53, 52, 57, 53, 52, 57, 53, 52, 57, 53, 52, 57, 51, 50, 55, 50, 49, 54, 50, 49, 54, 50, 49, 54, 51, 50, 55, 51, 50, 55, 50, 49, 54, 49, 48, 53, 198, 205, 213, 190, 197, 205, 173, 180, 186, 141, 146, 152, 123, 126, 131, 103, 107, 110, 60, 59, 64, 11, 11, 11, 18, 14, 15, 15, 11, 10, 43, 38, 35, 59, 51, 48, 44, 35, 30, 54, 43, 37, 69, 58, 52, 56, 41, 34, 43, 25, 15, 82, 62, 51, 84, 64, 53, 57, 37, 26, 66, 46, 35, 54, 34, 23, 40, 20, 9, 62, 42, 31, 74, 56, 46, 52, 34, 24, 62, 45, 37, 82, 65, 57, 61, 46, 39, 29, 16, 10, 20, 6, 3, 20, 9, 5, 14, 4, 3, 17, 9, 7, 22, 14, 12, 24, 16, 14, 25, 15, 14, 31, 21, 19, 46, 35, 33, 61, 48, 42, 75, 60, 53, 65, 48, 40, 54, 37, 29, 37, 20, 12, 49, 32, 25, 64, 49, 42, 37, 24, 18, 10, 0, 0, 17, 3, 0, 44, 30, 27, 44, 29, 24, 49, 32, 24, 65, 46, 39, 70, 52, 42, 85, 68, 60, 79, 64, 57, 60, 45, 40, 35, 24, 20, 74, 63, 61, 71, 61, 59, 49, 38, 34, 21, 10, 6, 72, 59, 53, 74, 57, 50, 94, 74, 65, 88, 66, 55, 58, 34, 24, 76, 52, 42, 64, 37, 28, 62, 35, 24, 74, 47, 36, 75, 48, 37, 70, 43, 32, 82, 55, 44, 70, 46, 34, 56, 34, 23, 43, 21, 10, 27, 7, 0, 27, 9, 0, 34, 16, 6, 31, 14, 6, 32, 15, 7, 49, 32, 25, 44, 29, 22, 25, 10, 5, 24, 11, 5, 27, 13, 10, 19, 8, 4, 20, 9, 5, 20, 7, 1, 21, 6, 0, 24, 7, 0, 34, 16, 6, 25, 5, 0, 51, 31, 20, 24, 6, 0, 61, 47, 34, 56, 44, 32, 32, 19, 10, 36, 26, 17, 69, 60, 55, 79, 71, 68, 59, 53, 53, 58, 54, 55, 60, 58, 61, 60, 58, 61, 58, 57, 62, 58, 57, 62, 56, 55, 60, 55, 54, 59, 53, 52, 57, 52, 51, 56, 52, 51, 56, 52, 51, 56, 53, 52, 57, 53, 52, 57, 53, 52, 57, 53, 52, 57, 53, 52, 57, 52, 51, 56, 50, 49, 54, 49, 48, 53, 49, 48, 53, 48, 47, 52, 49, 48, 53, 48, 47, 52, 47, 46, 51, 46, 45, 50, 190, 199, 206, 192, 201, 208, 186, 193, 199, 148, 155, 161, 126, 129, 134, 108, 112, 115, 79, 79, 81, 19, 17, 18, 31, 27, 26, 46, 41, 38, 59, 51, 48, 52, 43, 38, 42, 31, 25, 46, 36, 27, 55, 42, 34, 54, 40, 31, 66, 48, 38, 76, 56, 45, 63, 43, 32, 75, 55, 44, 61, 41, 30, 51, 31, 20, 53, 33, 22, 55, 35, 24, 45, 27, 17, 53, 35, 25, 69, 52, 44, 56, 41, 34, 22, 9, 3, 16, 5, 0, 29, 18, 14, 23, 13, 11, 30, 22, 20, 30, 21, 22, 32, 24, 22, 32, 22, 21, 26, 16, 15, 27, 16, 14, 42, 28, 25, 59, 46, 40, 61, 46, 41, 44, 29, 22, 53, 38, 31, 65, 50, 43, 54, 39, 32, 50, 35, 28, 40, 27, 21, 10, 0, 0, 26, 12, 9, 48, 35, 29, 52, 35, 28, 55, 38, 30, 76, 57, 50, 80, 62, 52, 99, 82, 74, 88, 73, 66, 58, 43, 38, 38, 24, 21, 75, 64, 62, 52, 41, 39, 46, 35, 31, 59, 46, 40, 71, 56, 49, 80, 63, 55, 93, 73, 66, 62, 39, 31, 54, 29, 22, 62, 38, 28, 56, 29, 20, 75, 48, 39, 70, 43, 34, 56, 29, 18, 79, 52, 41, 67, 43, 31, 53, 29, 19, 50, 28, 17, 44, 24, 15, 37, 19, 9, 38, 21, 11, 32, 15, 5, 22, 5, 0, 50, 36, 27, 41, 26, 19, 37, 24, 18, 24, 11, 5, 18, 7, 3, 33, 22, 18, 12, 3, 0, 15, 4, 2, 13, 2, 0, 33, 20, 14, 30, 15, 8, 22, 5, 0, 25, 8, 0, 44, 26, 16, 25, 7, 0, 53, 37, 24, 54, 40, 27, 46, 32, 21, 45, 32, 23, 44, 33, 27, 69, 60, 55, 70, 62, 60, 60, 54, 54, 69, 65, 66, 64, 62, 65, 59, 57, 62, 54, 53, 58, 52, 51, 56, 52, 51, 56, 54, 53, 58, 55, 54, 59, 52, 51, 56, 52, 51, 56, 53, 52, 57, 53, 52, 57, 53, 52, 57, 53, 52, 57, 52, 51, 56, 52, 51, 56, 50, 49, 54, 49, 48, 53, 48, 47, 52, 47, 46, 51, 47, 46, 51, 46, 45, 50, 45, 44, 49, 43, 42, 47, 188, 197, 204, 195, 204, 211, 186, 193, 199, 160, 167, 173, 136, 139, 144, 124, 128, 131, 94, 94, 96, 32, 30, 31, 39, 35, 34, 68, 63, 60, 54, 44, 42, 36, 25, 21, 41, 30, 24, 48, 35, 27, 52, 37, 30, 49, 32, 24, 72, 54, 44, 65, 45, 34, 50, 30, 19, 56, 36, 25, 47, 27, 16, 45, 25, 14, 68, 48, 37, 56, 36, 25, 51, 33, 23, 65, 47, 37, 66, 49, 41, 35, 20, 13, 31, 18, 12, 33, 22, 18, 36, 25, 23, 22, 12, 10, 22, 14, 12, 14, 5, 6, 7, 0, 0, 7, 0, 0, 19, 8, 6, 41, 27, 24, 54, 40, 37, 53, 38, 33, 32, 19, 13, 31, 18, 12, 55, 42, 36, 78, 63, 58, 72, 57, 52, 54, 39, 34, 37, 22, 15, 25, 10, 3, 46, 33, 27, 48, 35, 29, 51, 34, 27, 65, 48, 40, 96, 77, 70, 89, 71, 61, 86, 69, 61, 78, 63, 56, 46, 31, 26, 34, 20, 17, 57, 46, 44, 38, 27, 25, 54, 40, 37, 74, 59, 54, 65, 48, 41, 85, 66, 59, 74, 54, 47, 28, 8, 0, 51, 28, 20, 43, 20, 12, 68, 43, 36, 61, 37, 27, 51, 24, 15, 85, 58, 49, 63, 36, 27, 54, 30, 20, 35, 11, 1, 35, 13, 2, 37, 17, 8, 39, 21, 11, 42, 25, 17, 21, 7, 0, 42, 27, 20, 43, 28, 21, 29, 14, 9, 20, 7, 1, 11, 0, 0, 24, 14, 12, 23, 13, 11, 20, 12, 9, 30, 20, 19, 30, 20, 18, 25, 15, 13, 18, 7, 3, 19, 6, 0, 27, 12, 5, 33, 16, 9, 31, 14, 4, 45, 29, 16, 59, 43, 30, 33, 16, 6, 44, 30, 21, 41, 30, 24, 61, 52, 47, 70, 62, 60, 69, 63, 63, 70, 66, 67, 65, 63, 66, 58, 56, 61, 52, 50, 55, 51, 50, 55, 54, 53, 58, 55, 54, 59, 54, 53, 58, 52, 51, 56, 52, 51, 56, 51, 50, 55, 51, 50, 55, 52, 51, 56, 51, 50, 55, 50, 49, 54, 49, 48, 53, 49, 48, 53, 48, 47, 52, 47, 46, 51, 47, 46, 51, 47, 46, 51, 45, 44, 49, 43, 42, 47, 41, 40, 45, 195, 204, 211, 202, 211, 216, 198, 205, 211, 178, 183, 187, 150, 154, 157, 135, 136, 138, 108, 108, 110, 58, 57, 55, 35, 29, 29, 39, 31, 28, 41, 31, 29, 48, 37, 31, 46, 33, 27, 48, 35, 27, 60, 46, 37, 51, 34, 26, 58, 40, 30, 62, 42, 31, 54, 34, 23, 56, 36, 25, 58, 38, 27, 66, 46, 35, 74, 54, 43, 52, 34, 22, 53, 35, 25, 77, 60, 52, 45, 30, 23, 37, 24, 18, 26, 15, 11, 16, 5, 1, 14, 4, 2, 18, 8, 6, 12, 3, 4, 23, 14, 15, 14, 4, 3, 14, 3, 1, 40, 26, 23, 46, 31, 26, 32, 17, 12, 32, 17, 12, 31, 18, 12, 54, 41, 35, 65, 52, 46, 73, 60, 54, 74, 59, 54, 61, 46, 41, 35, 20, 13, 41, 26, 19, 59, 46, 40, 56, 43, 37, 65, 48, 41, 75, 58, 51, 104, 85, 78, 92, 74, 64, 67, 50, 42, 59, 44, 37, 27, 12, 7, 31, 17, 14, 49, 38, 36, 23, 9, 6, 50, 35, 30, 59, 42, 35, 71, 52, 45, 66, 46, 39, 36, 16, 9, 43, 23, 14, 44, 21, 13, 41, 18, 10, 53, 28, 21, 45, 18, 9, 65, 38, 29, 70, 42, 31, 49, 21, 10, 53, 26, 15, 52, 28, 16, 49, 27, 14, 38, 18, 7, 37, 19, 7, 42, 25, 15, 37, 20, 10, 40, 23, 15, 34, 19, 12, 25, 10, 3, 24, 11, 5, 31, 20, 16, 42, 32, 30, 34, 24, 22, 19, 11, 9, 18, 10, 8, 23, 15, 13, 21, 11, 9, 13, 3, 1, 16, 5, 1, 30, 17, 11, 34, 19, 14, 29, 15, 6, 38, 22, 9, 58, 40, 26, 41, 25, 12, 52, 38, 29, 44, 31, 23, 54, 43, 39, 64, 54, 52, 68, 62, 62, 71, 65, 67, 68, 63, 67, 60, 58, 63, 54, 52, 57, 52, 51, 56, 53, 52, 57, 53, 52, 57, 51, 50, 55, 51, 50, 55, 50, 49, 54, 49, 48, 53, 49, 48, 53, 50, 49, 54, 50, 49, 54, 49, 48, 53, 47, 46, 51, 47, 46, 51, 46, 45, 50, 45, 44, 49, 45, 44, 49, 44, 43, 48, 42, 41, 46, 40, 39, 44, 38, 37, 42, 203, 210, 216, 210, 217, 223, 211, 216, 222, 196, 201, 205, 166, 170, 173, 142, 143, 145, 120, 120, 122, 86, 85, 83, 44, 38, 38, 28, 20, 17, 27, 17, 15, 46, 35, 29, 48, 35, 29, 47, 32, 25, 61, 44, 36, 62, 45, 37, 59, 41, 31, 64, 46, 36, 64, 46, 36, 61, 43, 33, 63, 45, 35, 67, 49, 39, 65, 47, 37, 54, 36, 26, 92, 73, 66, 69, 52, 44, 22, 7, 0, 20, 7, 1, 20, 9, 5, 16, 5, 1, 7, 0, 0, 10, 0, 0, 15, 6, 7, 39, 31, 29, 42, 31, 29, 38, 24, 21, 44, 29, 22, 39, 22, 15, 25, 8, 1, 27, 12, 5, 37, 24, 18, 83, 69, 66, 77, 66, 62, 62, 51, 47, 76, 62, 59, 70, 55, 50, 37, 22, 15, 60, 45, 38, 65, 52, 46, 64, 51, 45, 79, 62, 55, 83, 66, 59, 105, 86, 79, 83, 64, 57, 44, 27, 20, 42, 27, 20, 16, 1, 0, 33, 19, 16, 36, 22, 19, 15, 1, 0, 37, 22, 15, 36, 19, 11, 59, 39, 30, 39, 19, 10, 28, 8, 0, 53, 33, 24, 34, 11, 3, 41, 17, 7, 52, 25, 16, 50, 22, 11, 71, 41, 31, 50, 20, 9, 54, 24, 13, 58, 28, 17, 68, 40, 28, 60, 34, 21, 45, 21, 9, 44, 22, 9, 42, 23, 9, 42, 24, 12, 33, 15, 5, 35, 18, 10, 39, 22, 14, 36, 21, 14, 41, 28, 22, 39, 28, 24, 35, 25, 23, 25, 15, 13, 15, 7, 5, 18, 10, 8, 13, 3, 1, 7, 0, 0, 16, 5, 1, 34, 23, 17, 38, 25, 19, 29, 15, 6, 43, 27, 14, 61, 43, 29, 41, 25, 12, 39, 25, 14, 31, 18, 10, 47, 36, 32, 65, 55, 53, 72, 66, 66, 67, 61, 63, 64, 59, 63, 58, 56, 61, 54, 52, 57, 52, 51, 56, 53, 52, 57, 51, 50, 55, 49, 48, 53, 48, 47, 52, 48, 47, 52, 47, 46, 51, 47, 46, 51, 47, 46, 51, 47, 46, 51, 46, 45, 50, 45, 44, 49, 45, 44, 49, 44, 43, 48, 42, 41, 46, 41, 40, 45, 40, 39, 44, 38, 37, 42, 35, 34, 39, 33, 32, 37, 210, 217, 223, 215, 223, 226, 219, 224, 228, 211, 216, 219, 182, 186, 189, 150, 151, 153, 128, 128, 128, 106, 102, 101, 55, 50, 47, 40, 32, 29, 25, 14, 10, 33, 22, 16, 50, 35, 30, 46, 31, 24, 48, 31, 23, 62, 45, 37, 64, 47, 39, 62, 44, 34, 67, 49, 39, 68, 50, 40, 63, 45, 35, 54, 36, 26, 56, 38, 28, 75, 58, 48, 85, 68, 60, 25, 10, 3, 27, 14, 8, 11, 0, 0, 8, 0, 0, 8, 0, 0, 9, 0, 0, 15, 5, 3, 8, 0, 0, 21, 11, 10, 42, 28, 25, 42, 27, 22, 29, 12, 4, 30, 12, 2, 32, 13, 6, 21, 4, 0, 56, 41, 36, 99, 85, 82, 87, 76, 74, 52, 41, 39, 80, 66, 63, 78, 65, 59, 49, 34, 29, 70, 55, 50, 61, 47, 44, 69, 55, 52, 76, 61, 56, 79, 62, 55, 90, 71, 65, 58, 39, 32, 30, 13, 6, 35, 20, 13, 17, 2, 0, 35, 21, 18, 23, 9, 6, 24, 9, 4, 29, 12, 5, 28, 10, 0, 41, 19, 8, 30, 8, 0, 39, 17, 6, 42, 20, 9, 29, 7, 0, 42, 15, 4, 52, 24, 12, 60, 30, 19, 57, 23, 11, 50, 17, 2, 65, 32, 17, 69, 36, 21, 87, 55, 40, 79, 50, 34, 64, 37, 20, 60, 34, 17, 46, 23, 7, 45, 24, 7, 45, 23, 10, 35, 15, 4, 34, 14, 5, 31, 13, 3, 44, 27, 19, 36, 23, 15, 27, 13, 10, 9, 0, 0, 14, 4, 2, 13, 3, 1, 10, 0, 0, 14, 3, 0, 28, 17, 13, 43, 30, 24, 38, 25, 19, 25, 11, 2, 41, 25, 12, 61, 43, 29, 46, 30, 17, 42, 28, 17, 42, 29, 21, 59, 48, 44, 64, 54, 52, 56, 50, 50, 60, 54, 56, 57, 52, 56, 53, 51, 56, 52, 50, 55, 52, 51, 56, 52, 51, 56, 50, 49, 54, 48, 47, 52, 47, 46, 51, 46, 45, 50, 45, 44, 49, 45, 44, 49, 45, 44, 49, 45, 44, 49, 44, 43, 48, 43, 42, 47, 44, 43, 48, 42, 41, 46, 40, 39, 44, 38, 37, 42, 36, 35, 40, 34, 33, 38, 31, 30, 35, 29, 28, 33, 216, 224, 227, 221, 229, 232, 225, 230, 234, 224, 229, 232, 201, 205, 208, 165, 166, 168, 139, 139, 139, 119, 115, 114, 58, 53, 50, 44, 36, 33, 30, 19, 15, 30, 19, 13, 45, 30, 25, 48, 33, 26, 45, 28, 21, 50, 33, 26, 56, 39, 32, 50, 33, 25, 56, 39, 31, 61, 44, 36, 57, 40, 32, 49, 32, 24, 60, 43, 35, 93, 76, 68, 59, 42, 35, 11, 0, 0, 23, 10, 4, 20, 7, 1, 20, 9, 5, 32, 21, 17, 26, 16, 14, 15, 5, 3, 10, 0, 0, 8, 0, 0, 21, 6, 1, 32, 15, 8, 38, 18, 9, 50, 30, 19, 45, 25, 16, 18, 0, 0, 66, 51, 46, 86, 72, 69, 76, 65, 63, 36, 26, 24, 77, 66, 62, 86, 73, 67, 68, 53, 48, 76, 61, 56, 61, 47, 44, 70, 56, 53, 58, 43, 38, 59, 44, 37, 66, 49, 42, 31, 14, 7, 28, 11, 4, 28, 13, 6, 17, 2, 0, 30, 16, 13, 26, 11, 6, 24, 9, 2, 29, 10, 3, 35, 15, 6, 40, 16, 4, 35, 11, 0, 43, 19, 7, 40, 17, 3, 43, 17, 4, 54, 26, 12, 55, 23, 8, 63, 30, 15, 57, 20, 4, 76, 39, 21, 75, 36, 19, 84, 47, 28, 112, 75, 56, 110, 75, 55, 94, 59, 39, 81, 49, 28, 64, 33, 13, 59, 31, 10, 44, 18, 1, 49, 26, 10, 61, 38, 24, 52, 30, 17, 43, 23, 12, 25, 8, 0, 32, 15, 8, 35, 20, 13, 20, 7, 1, 19, 8, 4, 26, 15, 11, 40, 27, 21, 46, 33, 27, 43, 28, 21, 33, 18, 11, 28, 11, 3, 54, 36, 24, 62, 44, 30, 53, 37, 24, 54, 40, 31, 57, 44, 36, 63, 52, 48, 61, 51, 49, 57, 51, 51, 56, 50, 52, 53, 48, 52, 50, 48, 53, 51, 49, 54, 51, 50, 55, 51, 50, 55, 49, 49, 51, 48, 48, 50, 46, 45, 50, 45, 44, 49, 44, 43, 48, 44, 43, 48, 44, 43, 48, 44, 43, 48, 43, 42, 47, 41, 40, 45, 43, 42, 47, 41, 40, 45, 38, 37, 42, 36, 35, 40, 33, 32, 37, 30, 29, 34, 27, 26, 31, 25, 24, 29, 216, 224, 227, 224, 232, 235, 228, 233, 236, 231, 235, 238, 216, 217, 219, 181, 181, 181, 150, 149, 147, 127, 123, 120, 74, 69, 66, 41, 33, 30, 36, 25, 21, 35, 24, 20, 32, 17, 12, 47, 32, 25, 58, 41, 34, 48, 31, 24, 46, 31, 24, 45, 30, 23, 46, 31, 24, 50, 33, 25, 48, 31, 23, 50, 33, 25, 61, 44, 36, 71, 54, 46, 22, 7, 0, 42, 27, 20, 44, 31, 25, 52, 39, 33, 34, 23, 19, 33, 22, 18, 39, 29, 27, 43, 33, 31, 40, 30, 28, 41, 30, 26, 34, 19, 12, 36, 17, 10, 58, 36, 25, 69, 47, 34, 56, 34, 23, 37, 18, 11, 56, 41, 36, 49, 38, 36, 41, 31, 30, 16, 6, 5, 68, 57, 55, 91, 77, 74, 77, 62, 57, 81, 66, 61, 65, 51, 48, 64, 53, 51, 39, 24, 21, 39, 24, 19, 46, 29, 22, 19, 2, 0, 30, 13, 6, 19, 4, 0, 15, 0, 0, 26, 12, 9, 35, 20, 15, 17, 0, 0, 32, 12, 5, 41, 19, 8, 49, 22, 11, 40, 14, 1, 47, 21, 6, 56, 30, 15, 52, 25, 8, 64, 33, 15, 63, 27, 11, 69, 32, 13, 79, 38, 20, 93, 52, 32, 109, 67, 45, 111, 69, 47, 125, 83, 61, 125, 84, 62, 117, 76, 54, 107, 69, 46, 92, 56, 32, 82, 47, 25, 66, 35, 15, 60, 31, 13, 62, 35, 18, 64, 38, 23, 64, 41, 27, 53, 33, 22, 50, 32, 22, 48, 31, 23, 48, 33, 26, 48, 33, 26, 52, 37, 30, 56, 41, 34, 48, 33, 26, 37, 20, 12, 35, 18, 10, 43, 25, 15, 67, 49, 37, 57, 41, 28, 50, 36, 25, 59, 46, 37, 60, 47, 41, 49, 40, 35, 54, 44, 43, 71, 65, 65, 58, 52, 54, 54, 49, 53, 50, 48, 53, 51, 49, 54, 50, 49, 54, 49, 48, 53, 47, 47, 49, 47, 47, 49, 45, 44, 49, 45, 44, 49, 44, 43, 48, 44, 43, 48, 44, 43, 48, 43, 42, 47, 42, 41, 46, 40, 39, 44, 41, 40, 45, 38, 37, 42, 35, 34, 39, 33, 32, 37, 30, 29, 34, 27, 26, 31, 24, 23, 28, 22, 21, 26, 216, 221, 224, 227, 232, 235, 230, 234, 237, 231, 235, 238, 221, 222, 224, 189, 189, 189, 156, 155, 153, 130, 126, 123, 95, 90, 87, 49, 41, 38, 42, 31, 27, 40, 29, 25, 31, 16, 11, 41, 26, 21, 53, 36, 29, 52, 35, 28, 50, 35, 30, 54, 41, 35, 48, 35, 29, 49, 34, 27, 44, 29, 22, 47, 32, 25, 59, 44, 37, 44, 29, 22, 33, 18, 11, 54, 39, 32, 39, 26, 20, 46, 33, 27, 39, 28, 24, 42, 32, 30, 50, 40, 38, 42, 32, 30, 53, 42, 38, 65, 52, 46, 65, 48, 40, 56, 36, 27, 60, 36, 24, 66, 42, 30, 64, 42, 29, 59, 39, 30, 54, 39, 34, 35, 24, 22, 16, 6, 5, 9, 0, 0, 56, 45, 43, 88, 74, 71, 64, 49, 44, 76, 61, 56, 61, 47, 44, 50, 39, 37, 32, 17, 14, 28, 13, 8, 32, 15, 8, 19, 2, 0, 30, 15, 10, 18, 3, 0, 21, 6, 3, 32, 17, 14, 37, 19, 15, 25, 8, 0, 39, 19, 10, 47, 23, 11, 57, 29, 17, 51, 23, 9, 61, 34, 17, 70, 41, 23, 65, 34, 14, 71, 39, 18, 83, 46, 27, 100, 59, 37, 112, 67, 46, 117, 71, 48, 147, 99, 76, 142, 94, 71, 139, 92, 66, 143, 97, 71, 142, 98, 71, 135, 94, 66, 129, 88, 60, 114, 74, 48, 80, 44, 20, 73, 41, 20, 71, 40, 20, 75, 46, 28, 68, 41, 24, 60, 37, 23, 58, 36, 23, 63, 43, 32, 70, 52, 42, 64, 47, 39, 59, 42, 34, 53, 36, 28, 43, 26, 18, 38, 20, 10, 45, 27, 17, 57, 39, 27, 54, 36, 24, 47, 31, 18, 50, 36, 25, 62, 49, 40, 64, 51, 45, 48, 39, 34, 48, 38, 37, 66, 60, 60, 60, 54, 56, 55, 50, 54, 49, 47, 52, 49, 47, 52, 48, 47, 52, 46, 45, 50, 45, 45, 47, 45, 45, 47, 45, 44, 49, 44, 43, 48, 43, 42, 47, 43, 42, 47, 43, 42, 47, 42, 41, 46, 41, 40, 45, 39, 38, 43, 38, 37, 42, 35, 34, 39, 32, 31, 36, 29, 28, 33, 26, 25, 30, 23, 22, 27, 20, 19, 24, 19, 18, 23, 216, 221, 224, 231, 236, 239, 232, 236, 239, 233, 234, 236, 223, 223, 223, 194, 193, 191, 161, 157, 156, 132, 127, 124, 104, 96, 93, 64, 55, 50, 47, 36, 32, 47, 34, 28, 43, 30, 24, 33, 18, 13, 26, 11, 4, 42, 27, 20, 54, 41, 35, 60, 47, 41, 55, 42, 36, 59, 46, 40, 50, 35, 28, 50, 35, 28, 67, 52, 45, 46, 31, 24, 46, 31, 24, 40, 25, 18, 54, 39, 32, 45, 32, 26, 43, 30, 24, 51, 40, 36, 68, 54, 51, 48, 37, 33, 41, 30, 26, 54, 41, 35, 81, 64, 57, 81, 63, 53, 63, 41, 30, 71, 49, 36, 85, 63, 52, 69, 51, 41, 72, 57, 50, 51, 37, 34, 15, 4, 2, 14, 4, 3, 50, 39, 37, 82, 68, 65, 42, 27, 22, 64, 49, 44, 49, 35, 34, 37, 26, 24, 34, 20, 19, 25, 10, 7, 22, 7, 2, 19, 4, 0, 31, 16, 9, 22, 7, 0, 32, 15, 8, 42, 25, 18, 31, 12, 5, 48, 28, 17, 51, 27, 15, 59, 31, 17, 65, 36, 20, 75, 42, 25, 86, 54, 33, 88, 53, 31, 98, 62, 40, 99, 61, 38, 119, 78, 56, 147, 102, 79, 152, 106, 82, 167, 119, 96, 153, 103, 78, 161, 111, 86, 163, 113, 88, 173, 126, 98, 168, 121, 95, 157, 111, 85, 159, 113, 87, 146, 102, 77, 118, 78, 53, 97, 61, 37, 77, 42, 20, 85, 53, 32, 85, 54, 36, 84, 57, 40, 72, 46, 33, 68, 46, 33, 60, 40, 29, 53, 35, 25, 46, 28, 18, 44, 26, 16, 45, 27, 17, 49, 31, 21, 53, 35, 23, 57, 39, 27, 54, 36, 24, 48, 32, 19, 47, 30, 20, 45, 31, 22, 52, 39, 33, 53, 43, 41, 58, 50, 48, 70, 64, 64, 59, 54, 58, 51, 49, 52, 47, 45, 50, 46, 45, 50, 46, 45, 50, 45, 44, 49, 44, 44, 46, 45, 45, 47, 44, 43, 48, 44, 43, 48, 43, 42, 47, 42, 41, 46, 42, 41, 46, 41, 40, 45, 40, 39, 44, 39, 38, 43, 35, 34, 39, 33, 32, 37, 29, 28, 33, 26, 25, 30, 23, 22, 27, 21, 20, 25, 18, 17, 22, 16, 15, 20, 217, 220, 225, 222, 226, 229, 235, 236, 240, 236, 237, 239, 212, 212, 212, 212, 211, 209, 156, 151, 148, 120, 112, 109, 98, 90, 87, 67, 58, 53, 54, 43, 39, 45, 32, 26, 39, 26, 20, 50, 37, 29, 51, 38, 30, 42, 29, 21, 44, 31, 25, 42, 29, 23, 50, 35, 30, 55, 40, 35, 45, 28, 21, 60, 43, 36, 61, 44, 36, 64, 47, 39, 62, 45, 37, 72, 55, 47, 68, 51, 43, 75, 58, 50, 70, 53, 45, 63, 46, 38, 73, 54, 47, 59, 42, 35, 67, 54, 48, 59, 46, 40, 83, 68, 63, 93, 76, 69, 92, 73, 66, 81, 62, 55, 115, 96, 89, 103, 86, 78, 76, 59, 52, 53, 38, 33, 16, 2, 0, 15, 1, 0, 45, 31, 30, 69, 55, 54, 25, 11, 8, 47, 33, 32, 39, 27, 27, 17, 5, 5, 31, 20, 18, 33, 19, 16, 15, 2, 0, 22, 7, 0, 32, 18, 9, 40, 23, 13, 40, 22, 10, 53, 31, 18, 61, 38, 24, 65, 38, 21, 75, 44, 26, 90, 57, 38, 103, 68, 48, 108, 70, 49, 116, 74, 50, 126, 82, 57, 137, 93, 68, 145, 101, 76, 154, 108, 84, 166, 120, 96, 182, 135, 109, 194, 147, 121, 185, 137, 114, 182, 134, 111, 183, 135, 112, 189, 142, 116, 191, 143, 120, 185, 137, 114, 177, 129, 106, 170, 124, 101, 150, 108, 86, 129, 88, 66, 104, 66, 45, 88, 53, 33, 80, 47, 30, 75, 46, 30, 74, 46, 32, 75, 49, 36, 73, 51, 38, 47, 27, 16, 64, 44, 33, 60, 40, 29, 43, 25, 13, 52, 34, 22, 50, 32, 20, 44, 26, 14, 52, 33, 19, 61, 41, 30, 55, 37, 27, 33, 16, 8, 42, 29, 23, 51, 42, 37, 49, 44, 41, 76, 72, 71, 60, 58, 61, 48, 48, 50, 44, 43, 48, 44, 45, 49, 42, 43, 45, 41, 42, 44, 42, 43, 45, 42, 43, 45, 42, 43, 45, 42, 43, 45, 41, 42, 44, 41, 42, 44, 40, 41, 43, 39, 40, 42, 37, 37, 39, 35, 35, 37, 31, 31, 33, 29, 29, 31, 26, 26, 28, 23, 23, 25, 20, 20, 22, 17, 17, 19, 16, 14, 17, 14, 12, 15, 215, 218, 223, 213, 217, 220, 231, 232, 236, 230, 232, 231, 227, 225, 226, 206, 202, 199, 120, 115, 112, 114, 106, 103, 96, 87, 82, 66, 57, 52, 55, 42, 36, 45, 32, 26, 42, 29, 21, 48, 35, 27, 48, 35, 27, 46, 33, 25, 47, 34, 28, 54, 41, 35, 53, 38, 33, 35, 20, 15, 55, 38, 31, 82, 65, 58, 62, 45, 37, 66, 49, 41, 67, 48, 41, 65, 46, 39, 62, 43, 36, 66, 48, 38, 58, 39, 32, 76, 58, 48, 98, 79, 72, 64, 47, 39, 64, 49, 42, 55, 42, 36, 56, 41, 36, 86, 71, 66, 98, 81, 74, 106, 89, 82, 124, 107, 100, 137, 120, 113, 107, 90, 83, 65, 48, 41, 25, 10, 5, 11, 0, 0, 38, 23, 20, 42, 28, 27, 14, 0, 0, 40, 26, 25, 24, 10, 10, 20, 8, 8, 36, 22, 21, 37, 23, 20, 27, 14, 8, 25, 11, 2, 33, 16, 6, 55, 37, 23, 59, 37, 23, 70, 44, 29, 84, 55, 37, 96, 65, 45, 107, 72, 50, 119, 83, 59, 131, 93, 70, 141, 99, 75, 156, 110, 84, 165, 118, 90, 176, 129, 101, 184, 137, 109, 188, 141, 115, 190, 143, 117, 191, 144, 118, 192, 145, 119, 199, 151, 128, 198, 150, 127, 199, 151, 128, 204, 156, 133, 205, 157, 134, 199, 151, 128, 191, 143, 121, 186, 140, 117, 170, 125, 104, 156, 114, 92, 130, 89, 69, 101, 64, 45, 87, 52, 33, 82, 51, 33, 74, 45, 29, 62, 36, 21, 67, 44, 30, 80, 58, 45, 37, 17, 6, 52, 32, 21, 64, 46, 34, 31, 13, 1, 41, 25, 12, 50, 32, 20, 55, 36, 22, 58, 39, 25, 64, 44, 35, 45, 28, 20, 35, 22, 14, 37, 28, 23, 43, 38, 35, 72, 68, 67, 62, 60, 63, 46, 46, 48, 39, 40, 44, 42, 43, 47, 40, 41, 43, 38, 39, 41, 39, 40, 42, 40, 41, 43, 40, 41, 43, 40, 41, 43, 39, 40, 42, 39, 40, 42, 38, 39, 41, 36, 37, 39, 35, 35, 37, 33, 33, 35, 29, 29, 31, 27, 27, 29, 24, 24, 26, 21, 21, 23, 19, 19, 21, 16, 16, 18, 15, 13, 16, 13, 11, 14, 209, 212, 217, 206, 210, 213, 225, 226, 230, 221, 223, 222, 203, 201, 202, 174, 170, 167, 107, 102, 99, 83, 75, 72, 70, 61, 56, 60, 51, 46, 61, 48, 42, 53, 40, 34, 42, 29, 21, 37, 24, 16, 37, 24, 16, 49, 36, 28, 54, 39, 32, 44, 29, 22, 40, 25, 18, 59, 44, 37, 78, 61, 54, 71, 54, 47, 64, 47, 40, 43, 26, 19, 18, 1, 0, 44, 27, 20, 46, 29, 22, 50, 33, 25, 60, 43, 36, 77, 60, 52, 99, 82, 75, 95, 80, 73, 49, 36, 30, 73, 60, 54, 38, 23, 18, 50, 35, 30, 81, 64, 57, 97, 80, 73, 105, 88, 81, 129, 112, 105, 121, 104, 97, 74, 57, 50, 45, 28, 21, 12, 0, 0, 33, 18, 13, 26, 11, 8, 13, 0, 0, 32, 18, 15, 28, 14, 11, 14, 0, 0, 32, 17, 12, 47, 32, 25, 40, 26, 17, 42, 25, 15, 49, 29, 18, 55, 33, 19, 86, 60, 45, 95, 68, 49, 112, 81, 61, 127, 95, 74, 141, 105, 81, 154, 117, 91, 174, 134, 109, 191, 149, 124, 195, 149, 123, 198, 151, 123, 201, 154, 128, 205, 158, 132, 207, 160, 134, 207, 160, 134, 204, 157, 131, 202, 155, 129, 209, 161, 138, 210, 162, 139, 213, 165, 142, 216, 168, 145, 215, 167, 144, 210, 162, 139, 203, 155, 132, 198, 152, 128, 184, 139, 116, 173, 131, 109, 149, 108, 88, 121, 83, 64, 103, 66, 48, 91, 58, 41, 78, 46, 31, 62, 34, 20, 63, 37, 24, 82, 60, 47, 46, 26, 15, 25, 5, 0, 56, 38, 26, 69, 51, 39, 58, 40, 28, 61, 43, 31, 62, 43, 29, 55, 36, 22, 67, 47, 38, 56, 39, 31, 33, 20, 12, 28, 19, 14, 41, 33, 31, 69, 65, 64, 65, 63, 66, 45, 45, 47, 35, 36, 38, 39, 40, 42, 38, 39, 41, 35, 36, 38, 36, 37, 39, 38, 39, 41, 37, 38, 40, 37, 38, 40, 36, 37, 39, 35, 36, 38, 36, 36, 38, 34, 34, 36, 32, 32, 34, 30, 30, 32, 27, 27, 29, 25, 25, 27, 22, 22, 24, 19, 19, 21, 17, 17, 19, 15, 15, 17, 13, 11, 14, 12, 10, 13, 195, 198, 203, 211, 215, 218, 217, 218, 222, 221, 223, 222, 195, 193, 194, 145, 141, 138, 105, 100, 97, 57, 49, 46, 48, 39, 34, 49, 40, 35, 54, 41, 35, 48, 35, 29, 42, 29, 21, 39, 26, 18, 39, 26, 18, 54, 41, 33, 56, 41, 34, 30, 15, 8, 66, 51, 44, 81, 66, 59, 80, 63, 56, 59, 42, 35, 41, 24, 17, 44, 27, 20, 59, 42, 35, 72, 57, 50, 59, 44, 37, 52, 37, 30, 55, 40, 33, 54, 39, 32, 81, 66, 61, 116, 103, 97, 86, 73, 67, 48, 35, 29, 61, 46, 41, 14, 0, 0, 41, 24, 17, 91, 74, 67, 48, 31, 24, 86, 69, 61, 92, 75, 68, 68, 51, 43, 59, 42, 35, 28, 11, 4, 37, 20, 13, 29, 14, 9, 21, 6, 1, 27, 12, 7, 30, 15, 8, 37, 20, 12, 34, 17, 9, 46, 29, 19, 70, 52, 40, 62, 43, 29, 52, 30, 16, 75, 49, 32, 94, 67, 48, 119, 88, 68, 151, 119, 98, 177, 141, 119, 187, 150, 124, 192, 152, 126, 200, 158, 133, 208, 164, 137, 215, 168, 142, 213, 166, 138, 210, 163, 137, 209, 162, 136, 210, 163, 137, 212, 165, 139, 212, 165, 139, 212, 165, 139, 212, 164, 141, 214, 166, 143, 218, 170, 147, 220, 172, 149, 217, 169, 146, 212, 164, 141, 207, 159, 136, 204, 156, 133, 196, 150, 127, 182, 137, 114, 162, 120, 98, 143, 105, 84, 124, 87, 68, 100, 67, 48, 83, 51, 36, 72, 44, 30, 55, 29, 14, 78, 55, 41, 114, 92, 79, 55, 35, 24, 26, 6, 0, 65, 47, 35, 63, 45, 33, 67, 49, 37, 70, 48, 35, 56, 36, 25, 62, 42, 33, 55, 38, 30, 40, 27, 19, 30, 21, 16, 38, 30, 28, 73, 69, 68, 69, 67, 68, 45, 45, 47, 32, 33, 35, 36, 37, 39, 36, 37, 39, 33, 34, 36, 34, 35, 37, 36, 37, 39, 34, 35, 37, 33, 34, 36, 32, 33, 35, 32, 33, 35, 32, 32, 34, 31, 31, 33, 28, 28, 30, 27, 27, 29, 24, 24, 26, 22, 22, 24, 20, 20, 22, 17, 17, 19, 15, 15, 17, 14, 14, 16, 12, 10, 13, 11, 9, 12, 183, 186, 191, 216, 220, 223, 214, 215, 219, 229, 231, 230, 228, 226, 227, 159, 155, 152, 97, 92, 89, 62, 54, 51, 52, 43, 38, 42, 33, 28, 38, 25, 19, 33, 20, 14, 43, 30, 22, 52, 39, 31, 48, 35, 27, 53, 38, 31, 47, 30, 22, 81, 64, 56, 82, 65, 57, 76, 59, 51, 71, 57, 48, 41, 27, 18, 55, 40, 33, 59, 44, 37, 57, 42, 37, 39, 26, 20, 35, 22, 16, 43, 30, 24, 36, 23, 17, 39, 26, 20, 69, 55, 52, 91, 78, 72, 123, 110, 104, 40, 27, 21, 48, 33, 28, 27, 12, 7, 32, 15, 8, 72, 55, 48, 43, 24, 17, 45, 27, 17, 49, 30, 23, 49, 31, 21, 57, 38, 31, 45, 28, 20, 42, 25, 17, 37, 20, 13, 25, 8, 1, 29, 12, 4, 42, 24, 14, 47, 29, 17, 64, 44, 33, 79, 60, 46, 78, 56, 42, 77, 54, 38, 95, 69, 52, 112, 84, 63, 130, 99, 78, 161, 126, 104, 191, 155, 131, 207, 167, 142, 209, 167, 142, 212, 168, 141, 214, 168, 142, 215, 168, 142, 218, 171, 145, 220, 170, 145, 220, 170, 145, 219, 169, 144, 218, 168, 143, 217, 167, 142, 215, 165, 140, 214, 164, 139, 217, 167, 144, 220, 170, 147, 223, 173, 150, 223, 173, 150, 220, 170, 147, 216, 166, 143, 213, 163, 140, 208, 160, 137, 206, 160, 137, 195, 150, 127, 179, 137, 115, 163, 122, 102, 140, 102, 83, 114, 79, 60, 92, 59, 42, 79, 50, 34, 60, 32, 18, 64, 41, 27, 109, 87, 74, 109, 90, 76, 50, 31, 17, 40, 21, 7, 69, 51, 39, 64, 46, 34, 69, 47, 36, 59, 39, 28, 57, 37, 28, 48, 31, 23, 43, 30, 22, 29, 20, 15, 31, 23, 20, 76, 72, 71, 69, 67, 68, 45, 45, 45, 30, 31, 33, 32, 33, 35, 32, 33, 35, 30, 31, 33, 30, 31, 33, 32, 33, 35, 31, 32, 34, 30, 31, 33, 30, 30, 32, 29, 29, 31, 29, 29, 31, 27, 27, 29, 25, 25, 27, 24, 24, 26, 22, 22, 24, 20, 20, 22, 18, 18, 20, 16, 16, 18, 15, 13, 16, 14, 12, 15, 12, 10, 13, 10, 8, 11, 179, 182, 187, 206, 210, 213, 224, 225, 229, 228, 230, 229, 235, 233, 234, 205, 201, 198, 117, 112, 109, 67, 59, 56, 59, 50, 45, 43, 34, 29, 40, 27, 21, 37, 24, 18, 41, 28, 20, 47, 34, 26, 41, 28, 20, 40, 26, 17, 69, 52, 42, 83, 65, 55, 91, 73, 63, 66, 49, 41, 61, 44, 36, 67, 53, 44, 61, 46, 39, 57, 44, 36, 38, 25, 19, 33, 22, 16, 37, 26, 20, 40, 29, 23, 32, 21, 17, 27, 16, 12, 34, 23, 19, 43, 32, 28, 83, 70, 64, 81, 68, 62, 21, 6, 1, 39, 24, 17, 42, 25, 18, 42, 23, 16, 58, 40, 30, 29, 11, 1, 32, 12, 3, 36, 18, 6, 46, 26, 15, 56, 38, 26, 52, 34, 24, 47, 29, 19, 32, 14, 4, 44, 26, 14, 52, 30, 17, 81, 60, 43, 89, 66, 50, 98, 75, 57, 117, 91, 74, 117, 90, 71, 134, 106, 85, 171, 139, 118, 187, 152, 130, 205, 167, 144, 217, 177, 152, 213, 171, 146, 211, 165, 139, 216, 169, 141, 223, 173, 146, 224, 174, 147, 217, 167, 142, 219, 169, 144, 219, 169, 144, 219, 169, 144, 218, 168, 143, 217, 167, 142, 217, 167, 142, 219, 169, 144, 220, 170, 147, 223, 173, 150, 225, 175, 152, 223, 173, 150, 221, 171, 148, 219, 169, 146, 216, 166, 143, 211, 163, 140, 207, 161, 138, 205, 160, 137, 194, 149, 128, 170, 128, 106, 145, 107, 86, 126, 89, 70, 101, 68, 49, 81, 50, 32, 80, 53, 36, 48, 22, 7, 50, 27, 13, 106, 84, 71, 99, 77, 64, 67, 48, 34, 85, 65, 54, 75, 55, 44, 60, 40, 29, 60, 40, 31, 55, 36, 29, 41, 24, 17, 37, 24, 18, 22, 13, 8, 20, 12, 9, 67, 62, 59, 69, 65, 66, 46, 44, 45, 31, 31, 33, 28, 29, 31, 27, 28, 30, 26, 27, 29, 27, 28, 30, 26, 27, 29, 28, 29, 31, 27, 28, 30, 26, 26, 28, 26, 26, 28, 25, 25, 27, 24, 24, 26, 22, 22, 24, 20, 20, 22, 20, 20, 22, 18, 18, 20, 16, 16, 18, 14, 14, 16, 14, 12, 15, 12, 10, 13, 11, 9, 12, 9, 7, 10, 165, 168, 173, 200, 204, 207, 228, 229, 233, 224, 226, 225, 224, 222, 223, 228, 224, 221, 138, 133, 130, 59, 51, 48, 67, 58, 53, 44, 35, 30, 45, 32, 26, 45, 32, 26, 35, 22, 14, 31, 18, 10, 33, 20, 12, 43, 29, 20, 85, 67, 57, 86, 68, 56, 75, 57, 45, 81, 64, 54, 67, 50, 42, 62, 48, 39, 63, 48, 41, 23, 10, 2, 26, 13, 7, 41, 30, 26, 49, 38, 34, 38, 29, 24, 24, 15, 10, 13, 4, 0, 16, 6, 4, 36, 25, 21, 37, 24, 18, 77, 62, 55, 56, 39, 32, 34, 17, 10, 37, 18, 11, 47, 29, 19, 47, 27, 18, 41, 21, 10, 37, 15, 4, 37, 18, 4, 40, 18, 5, 53, 34, 20, 65, 46, 32, 67, 48, 34, 55, 36, 22, 67, 45, 31, 81, 55, 38, 92, 65, 46, 105, 76, 58, 127, 99, 78, 145, 114, 94, 163, 132, 111, 191, 159, 136, 199, 163, 139, 211, 174, 148, 221, 179, 154, 228, 184, 157, 229, 184, 155, 230, 180, 153, 228, 179, 149, 225, 174, 145, 221, 170, 141, 220, 170, 145, 219, 169, 146, 217, 167, 144, 215, 165, 142, 215, 165, 142, 218, 168, 145, 222, 172, 149, 225, 175, 152, 223, 173, 150, 225, 175, 152, 224, 174, 151, 222, 172, 149, 221, 171, 148, 220, 170, 147, 218, 168, 145, 212, 164, 141, 208, 162, 138, 208, 164, 139, 198, 153, 130, 175, 133, 111, 152, 111, 91, 131, 93, 74, 108, 73, 54, 88, 55, 38, 85, 56, 40, 66, 38, 24, 57, 31, 16, 90, 67, 53, 99, 77, 64, 76, 57, 43, 79, 60, 46, 84, 64, 53, 57, 37, 26, 52, 32, 23, 51, 32, 25, 38, 21, 14, 30, 17, 11, 20, 9, 5, 15, 5, 3, 43, 38, 35, 66, 62, 63, 47, 45, 46, 32, 32, 34, 26, 26, 28, 22, 23, 25, 24, 25, 27, 26, 27, 29, 22, 23, 25, 26, 26, 28, 25, 25, 27, 23, 23, 25, 22, 22, 24, 21, 21, 23, 20, 20, 22, 19, 19, 21, 17, 17, 19, 18, 16, 19, 16, 14, 17, 14, 12, 15, 13, 11, 14, 12, 10, 13, 11, 9, 12, 9, 7, 10, 8, 6, 9, 142, 145, 150, 209, 213, 216, 219, 220, 224, 228, 230, 229, 237, 235, 236, 221, 217, 214, 125, 120, 117, 56, 48, 45, 83, 74, 69, 43, 34, 29, 36, 23, 17, 38, 25, 19, 29, 16, 8, 29, 16, 8, 44, 31, 23, 63, 49, 40, 78, 60, 50, 102, 82, 71, 91, 71, 60, 82, 64, 52, 67, 50, 42, 56, 42, 33, 31, 16, 9, 12, 0, 0, 31, 20, 14, 36, 25, 21, 67, 58, 53, 69, 60, 55, 30, 21, 16, 14, 5, 0, 21, 12, 7, 22, 11, 7, 35, 20, 13, 45, 28, 20, 81, 62, 55, 49, 30, 23, 39, 19, 10, 48, 28, 17, 64, 42, 31, 48, 24, 12, 40, 17, 3, 44, 21, 7, 39, 16, 0, 45, 22, 6, 75, 52, 36, 90, 67, 51, 81, 60, 43, 81, 58, 40, 93, 65, 44, 109, 78, 57, 115, 83, 60, 138, 106, 83, 169, 134, 112, 192, 156, 132, 214, 177, 151, 218, 178, 152, 224, 182, 157, 222, 178, 151, 222, 177, 148, 228, 181, 151, 235, 184, 155, 234, 183, 154, 234, 181, 150, 232, 181, 152, 228, 176, 152, 226, 176, 153, 224, 174, 151, 223, 173, 150, 223, 173, 150, 224, 174, 151, 225, 175, 152, 225, 175, 152, 226, 176, 153, 227, 177, 154, 225, 175, 152, 222, 172, 149, 221, 171, 148, 222, 172, 149, 220, 170, 147, 216, 166, 143, 218, 170, 147, 211, 165, 141, 201, 155, 132, 186, 141, 118, 161, 119, 97, 133, 92, 72, 108, 71, 52, 97, 62, 43, 75, 44, 26, 89, 60, 44, 79, 52, 35, 96, 70, 55, 91, 68, 54, 61, 39, 26, 74, 52, 39, 73, 53, 42, 59, 39, 30, 42, 24, 14, 43, 26, 18, 34, 19, 12, 28, 13, 8, 23, 12, 8, 15, 5, 3, 22, 17, 14, 65, 61, 60, 49, 47, 48, 35, 33, 36, 26, 26, 28, 22, 22, 24, 25, 26, 28, 26, 27, 29, 20, 21, 23, 24, 24, 26, 23, 23, 25, 21, 21, 23, 20, 20, 22, 19, 19, 21, 18, 18, 20, 17, 17, 19, 15, 15, 17, 16, 14, 17, 15, 13, 16, 13, 11, 14, 11, 9, 12, 11, 9, 12, 10, 8, 11, 8, 6, 9, 7, 5, 8, 90, 93, 98, 184, 188, 191, 220, 221, 225, 225, 227, 226, 235, 233, 234, 216, 212, 209, 196, 191, 188, 135, 127, 124, 25, 16, 11, 41, 32, 27, 33, 20, 14, 30, 17, 11, 43, 30, 22, 38, 25, 17, 42, 29, 21, 64, 50, 41, 87, 67, 56, 108, 89, 75, 88, 68, 57, 77, 59, 47, 65, 48, 40, 43, 29, 20, 19, 4, 0, 21, 8, 0, 55, 44, 38, 38, 27, 21, 26, 15, 11, 55, 44, 40, 51, 40, 34, 14, 3, 0, 20, 9, 3, 37, 24, 18, 53, 36, 28, 46, 28, 18, 59, 39, 30, 75, 55, 44, 52, 30, 17, 57, 34, 20, 97, 71, 58, 79, 53, 38, 59, 32, 15, 58, 31, 14, 51, 24, 7, 50, 23, 6, 63, 36, 19, 77, 50, 33, 85, 58, 41, 92, 63, 45, 123, 91, 68, 134, 100, 75, 147, 111, 87, 169, 133, 107, 196, 159, 133, 215, 175, 149, 222, 180, 155, 228, 184, 157, 227, 181, 155, 229, 182, 154, 233, 183, 156, 235, 184, 155, 236, 185, 156, 237, 184, 153, 235, 182, 151, 232, 181, 152, 233, 181, 157, 230, 180, 157, 228, 178, 155, 227, 177, 154, 227, 177, 154, 227, 177, 154, 227, 177, 154, 226, 176, 153, 228, 178, 155, 226, 176, 153, 224, 174, 151, 224, 174, 151, 224, 174, 151, 223, 173, 150, 220, 170, 147, 217, 167, 144, 214, 166, 143, 212, 166, 142, 212, 166, 142, 202, 157, 134, 177, 135, 113, 154, 113, 93, 131, 93, 72, 113, 76, 57, 89, 56, 37, 92, 61, 43, 93, 66, 49, 103, 77, 62, 107, 84, 70, 64, 42, 28, 42, 20, 7, 51, 31, 20, 48, 28, 19, 48, 29, 22, 42, 25, 18, 31, 16, 9, 26, 11, 6, 23, 12, 8, 20, 10, 8, 12, 7, 4, 45, 41, 40, 57, 56, 54, 40, 38, 39, 23, 23, 23, 27, 27, 29, 24, 24, 26, 19, 19, 21, 24, 24, 26, 21, 21, 21, 19, 19, 19, 18, 18, 18, 17, 17, 17, 16, 16, 16, 15, 15, 15, 14, 14, 14, 13, 13, 13, 13, 11, 12, 12, 10, 11, 10, 8, 9, 9, 7, 8, 7, 5, 6, 7, 5, 6, 7, 5, 6, 7, 5, 6, 90, 93, 98, 92, 96, 99, 192, 193, 197, 212, 214, 213, 210, 208, 209, 214, 210, 207, 189, 184, 181, 124, 116, 113, 18, 9, 4, 33, 24, 19, 36, 23, 17, 35, 22, 16, 47, 34, 26, 42, 29, 21, 41, 28, 20, 66, 52, 43, 100, 80, 69, 111, 89, 76, 101, 81, 70, 80, 62, 52, 64, 45, 38, 34, 17, 9, 36, 21, 14, 48, 35, 27, 68, 55, 49, 60, 47, 41, 15, 2, 0, 15, 2, 0, 40, 27, 21, 31, 18, 10, 29, 14, 7, 41, 24, 16, 61, 41, 32, 82, 60, 49, 77, 53, 41, 80, 56, 44, 82, 56, 43, 75, 49, 34, 100, 71, 55, 117, 88, 72, 115, 84, 66, 101, 70, 50, 74, 43, 23, 57, 26, 6, 62, 31, 11, 77, 46, 26, 91, 60, 40, 103, 71, 50, 126, 90, 66, 148, 111, 84, 173, 133, 108, 195, 155, 129, 215, 173, 148, 227, 183, 158, 231, 185, 159, 234, 188, 162, 233, 186, 158, 235, 185, 158, 237, 186, 157, 238, 187, 158, 240, 186, 158, 239, 186, 155, 238, 184, 156, 235, 184, 155, 234, 184, 159, 233, 183, 160, 232, 182, 159, 232, 182, 159, 231, 181, 158, 229, 179, 156, 227, 177, 154, 225, 175, 152, 226, 176, 153, 226, 176, 153, 225, 175, 152, 225, 175, 152, 224, 174, 151, 222, 172, 149, 219, 169, 146, 218, 168, 145, 217, 169, 146, 217, 169, 146, 218, 170, 147, 209, 163, 139, 188, 143, 120, 164, 122, 100, 141, 100, 78, 119, 81, 60, 100, 65, 45, 94, 61, 42, 90, 61, 43, 83, 56, 39, 99, 73, 58, 61, 38, 24, 42, 18, 6, 28, 6, 0, 39, 21, 11, 42, 23, 16, 45, 28, 21, 40, 25, 18, 29, 14, 11, 15, 4, 0, 12, 2, 0, 15, 7, 4, 27, 22, 19, 50, 46, 45, 43, 39, 40, 22, 20, 21, 22, 22, 24, 23, 23, 25, 20, 20, 22, 21, 21, 23, 19, 19, 19, 18, 18, 18, 16, 16, 16, 15, 15, 15, 14, 14, 14, 13, 13, 13, 12, 12, 12, 11, 11, 11, 11, 9, 10, 11, 9, 10, 9, 7, 8, 8, 6, 7, 8, 6, 7, 8, 6, 7, 8, 6, 7, 8, 6, 7, 128, 131, 136, 96, 100, 103, 70, 71, 75, 126, 128, 127, 148, 146, 147, 156, 152, 149, 95, 90, 87, 6, 0, 0, 30, 21, 16, 35, 26, 21, 42, 29, 23, 37, 24, 18, 43, 30, 22, 43, 30, 22, 43, 30, 22, 76, 62, 53, 108, 88, 77, 106, 84, 71, 113, 93, 82, 89, 71, 61, 65, 46, 39, 22, 5, 0, 40, 25, 18, 47, 32, 25, 62, 47, 40, 60, 45, 38, 33, 18, 11, 26, 11, 4, 37, 20, 12, 40, 23, 15, 45, 27, 17, 36, 16, 5, 64, 42, 29, 99, 76, 62, 100, 74, 59, 114, 86, 72, 135, 106, 90, 120, 91, 73, 124, 91, 72, 145, 112, 93, 149, 114, 94, 150, 115, 95, 140, 103, 84, 121, 84, 65, 110, 73, 54, 106, 69, 50, 111, 74, 55, 123, 85, 64, 146, 106, 81, 178, 137, 109, 208, 164, 139, 222, 178, 151, 230, 184, 158, 232, 186, 160, 232, 185, 159, 236, 186, 161, 239, 189, 162, 240, 189, 162, 240, 189, 162, 240, 189, 162, 239, 188, 161, 238, 187, 158, 238, 187, 160, 237, 186, 159, 237, 187, 164, 235, 187, 165, 235, 187, 165, 234, 186, 164, 233, 185, 163, 230, 182, 160, 226, 178, 156, 223, 175, 153, 221, 173, 150, 223, 175, 152, 224, 176, 153, 223, 175, 152, 221, 173, 150, 218, 170, 147, 216, 168, 145, 216, 168, 145, 216, 166, 141, 214, 167, 141, 216, 168, 145, 211, 165, 141, 195, 149, 125, 175, 130, 107, 149, 107, 85, 126, 85, 65, 115, 78, 59, 95, 60, 41, 81, 50, 32, 61, 32, 16, 78, 52, 37, 47, 24, 8, 54, 31, 17, 47, 25, 12, 25, 6, 0, 21, 4, 0, 29, 12, 5, 40, 25, 18, 40, 25, 22, 24, 13, 9, 17, 7, 5, 20, 12, 9, 16, 11, 8, 46, 42, 41, 50, 46, 47, 26, 24, 25, 18, 18, 18, 22, 22, 22, 19, 19, 21, 16, 16, 18, 17, 17, 17, 15, 15, 15, 13, 13, 13, 12, 12, 12, 13, 11, 12, 12, 10, 11, 10, 8, 9, 9, 7, 8, 10, 8, 9, 9, 7, 8, 9, 7, 8, 8, 6, 7, 8, 6, 7, 8, 6, 7, 11, 7, 8, 11, 7, 8, 130, 133, 138, 145, 149, 152, 166, 167, 171, 143, 145, 144, 140, 138, 139, 129, 125, 122, 65, 60, 57, 37, 29, 26, 40, 31, 26, 35, 26, 21, 47, 34, 28, 38, 25, 19, 37, 24, 16, 43, 30, 22, 47, 34, 26, 84, 70, 61, 111, 91, 80, 99, 77, 66, 109, 89, 80, 94, 74, 65, 61, 42, 35, 23, 6, 0, 41, 24, 17, 33, 18, 11, 51, 34, 27, 53, 36, 29, 47, 30, 22, 45, 26, 19, 39, 19, 10, 39, 19, 8, 54, 32, 19, 54, 31, 17, 64, 38, 23, 82, 55, 38, 100, 71, 53, 135, 106, 88, 166, 135, 115, 168, 135, 116, 170, 135, 115, 170, 134, 112, 167, 129, 108, 175, 137, 114, 174, 133, 111, 161, 120, 98, 148, 107, 85, 140, 99, 77, 143, 102, 80, 155, 113, 91, 183, 139, 114, 211, 165, 139, 230, 184, 158, 234, 187, 161, 234, 187, 161, 236, 186, 161, 236, 186, 161, 236, 186, 161, 242, 190, 166, 241, 190, 163, 240, 188, 164, 240, 189, 162, 239, 187, 163, 238, 188, 161, 239, 187, 163, 238, 188, 163, 237, 189, 167, 236, 188, 166, 236, 188, 166, 235, 187, 165, 234, 186, 164, 231, 183, 161, 227, 179, 157, 224, 176, 154, 221, 173, 150, 222, 174, 151, 223, 175, 152, 223, 175, 152, 222, 174, 151, 219, 171, 148, 217, 169, 146, 216, 168, 145, 220, 170, 145, 219, 169, 144, 219, 171, 148, 218, 170, 147, 208, 160, 137, 192, 146, 122, 168, 123, 100, 141, 100, 78, 118, 80, 59, 89, 54, 34, 83, 50, 31, 86, 57, 39, 99, 72, 55, 53, 27, 12, 55, 32, 18, 52, 30, 17, 34, 15, 8, 27, 10, 3, 30, 13, 6, 40, 25, 20, 40, 26, 23, 26, 12, 9, 15, 4, 2, 15, 5, 3, 16, 8, 6, 41, 36, 33, 54, 50, 49, 35, 31, 32, 20, 18, 19, 21, 21, 21, 18, 18, 20, 15, 15, 17, 15, 15, 15, 13, 13, 13, 11, 11, 11, 10, 10, 10, 11, 9, 10, 10, 8, 9, 8, 6, 7, 7, 5, 6, 8, 6, 7, 8, 6, 7, 8, 6, 7, 8, 6, 7, 8, 6, 7, 8, 6, 7, 11, 7, 8, 11, 7, 8, 131, 134, 139, 151, 155, 158, 197, 198, 202, 233, 235, 234, 227, 225, 226, 141, 137, 134, 7, 2, 0, 44, 36, 33, 34, 25, 20, 27, 18, 13, 44, 31, 25, 39, 26, 20, 36, 23, 15, 44, 31, 23, 49, 36, 28, 80, 66, 57, 106, 86, 77, 93, 71, 60, 90, 70, 61, 84, 64, 55, 45, 26, 19, 30, 11, 4, 47, 28, 22, 40, 23, 16, 38, 19, 12, 58, 39, 32, 52, 32, 23, 52, 30, 19, 67, 43, 31, 62, 36, 23, 58, 30, 16, 72, 45, 28, 69, 40, 22, 73, 45, 24, 94, 63, 43, 135, 103, 82, 172, 137, 115, 196, 160, 138, 211, 173, 150, 209, 169, 144, 213, 171, 147, 211, 169, 145, 204, 159, 136, 199, 154, 131, 202, 157, 134, 201, 156, 133, 200, 154, 131, 203, 157, 134, 212, 166, 142, 230, 183, 157, 237, 190, 164, 236, 186, 161, 237, 187, 162, 242, 190, 166, 241, 189, 165, 240, 188, 164, 241, 189, 165, 240, 188, 164, 239, 189, 166, 238, 188, 163, 238, 188, 165, 237, 190, 164, 239, 189, 166, 238, 190, 167, 237, 189, 167, 235, 188, 168, 233, 187, 164, 232, 186, 163, 231, 185, 162, 230, 184, 161, 228, 182, 159, 226, 180, 157, 224, 178, 154, 223, 177, 153, 222, 176, 152, 223, 177, 153, 224, 178, 154, 223, 177, 153, 219, 173, 149, 217, 169, 146, 221, 171, 146, 219, 169, 144, 219, 169, 144, 216, 169, 143, 210, 163, 137, 199, 153, 129, 178, 133, 110, 151, 109, 87, 135, 94, 72, 101, 65, 43, 87, 52, 33, 111, 80, 62, 116, 87, 71, 62, 36, 21, 44, 21, 7, 35, 13, 0, 39, 20, 13, 38, 20, 16, 38, 23, 18, 39, 24, 19, 30, 16, 13, 20, 6, 3, 15, 4, 2, 19, 9, 7, 15, 7, 5, 28, 23, 20, 47, 43, 42, 38, 34, 33, 21, 19, 20, 20, 18, 19, 15, 15, 17, 16, 16, 18, 13, 13, 13, 11, 11, 11, 11, 9, 10, 10, 8, 9, 9, 7, 8, 9, 7, 8, 8, 6, 7, 7, 5, 6, 7, 5, 6, 7, 5, 6, 7, 5, 6, 7, 5, 6, 10, 6, 7, 10, 6, 7, 11, 7, 8, 11, 7, 8, 141, 144, 149, 137, 141, 144, 176, 177, 181, 211, 213, 212, 200, 198, 199, 122, 118, 115, 103, 98, 95, 6, 0, 0, 39, 30, 25, 29, 20, 15, 41, 28, 22, 36, 23, 17, 30, 17, 9, 41, 28, 20, 53, 40, 32, 73, 59, 50, 84, 64, 55, 77, 55, 44, 65, 45, 36, 67, 47, 38, 29, 10, 3, 27, 8, 1, 38, 19, 13, 42, 23, 17, 35, 16, 9, 57, 37, 28, 62, 40, 29, 59, 35, 23, 71, 43, 31, 74, 45, 31, 72, 40, 25, 75, 44, 26, 90, 59, 38, 114, 82, 59, 134, 102, 79, 162, 127, 105, 198, 162, 138, 215, 178, 152, 223, 181, 157, 233, 189, 164, 227, 183, 158, 227, 181, 157, 223, 175, 152, 223, 175, 152, 227, 179, 156, 224, 176, 153, 219, 171, 149, 220, 172, 149, 230, 180, 155, 238, 188, 163, 237, 187, 162, 233, 183, 158, 238, 186, 162, 241, 189, 165, 238, 186, 162, 235, 183, 159, 240, 188, 166, 240, 188, 166, 239, 189, 166, 239, 189, 166, 237, 189, 166, 238, 190, 167, 239, 191, 169, 238, 192, 169, 235, 188, 168, 234, 187, 167, 232, 186, 163, 230, 184, 161, 230, 184, 161, 230, 184, 161, 229, 183, 160, 228, 182, 159, 228, 182, 158, 226, 180, 156, 224, 178, 154, 225, 179, 155, 227, 181, 157, 227, 181, 157, 223, 177, 153, 220, 174, 150, 219, 169, 144, 216, 166, 141, 215, 165, 140, 213, 163, 138, 207, 160, 134, 200, 153, 127, 181, 135, 111, 155, 113, 89, 142, 101, 79, 118, 82, 60, 89, 54, 34, 99, 68, 48, 96, 67, 49, 52, 25, 8, 44, 18, 3, 39, 17, 4, 30, 11, 4, 29, 11, 7, 26, 11, 6, 25, 10, 5, 23, 9, 6, 23, 9, 6, 23, 12, 10, 24, 14, 12, 22, 12, 11, 20, 15, 12, 45, 39, 39, 41, 37, 36, 20, 18, 19, 17, 15, 16, 11, 11, 13, 14, 14, 16, 11, 11, 11, 10, 10, 10, 9, 7, 8, 9, 7, 8, 9, 7, 8, 8, 6, 7, 7, 5, 6, 7, 5, 6, 7, 5, 6, 7, 5, 6, 7, 5, 6, 7, 5, 6, 10, 6, 7, 10, 6, 7, 10, 6, 7, 10, 6, 7, 144, 147, 152, 149, 153, 156, 173, 174, 178, 217, 219, 218, 163, 161, 162, 153, 149, 146, 112, 107, 104, 12, 4, 1, 43, 34, 29, 34, 25, 20, 37, 24, 18, 32, 19, 13, 25, 12, 4, 37, 24, 16, 57, 44, 36, 64, 50, 41, 64, 44, 35, 57, 34, 26, 38, 18, 11, 48, 28, 21, 26, 7, 1, 22, 3, 0, 26, 7, 1, 37, 18, 12, 54, 34, 27, 60, 37, 29, 70, 43, 32, 66, 38, 26, 67, 35, 20, 86, 53, 36, 106, 71, 52, 109, 74, 54, 135, 100, 78, 172, 138, 113, 197, 161, 137, 208, 171, 145, 229, 189, 164, 232, 190, 165, 226, 182, 157, 237, 191, 165, 237, 190, 164, 238, 191, 165, 235, 185, 160, 231, 181, 156, 231, 181, 156, 228, 178, 153, 231, 181, 158, 241, 191, 168, 239, 187, 163, 242, 190, 166, 238, 186, 162, 235, 183, 159, 241, 186, 165, 240, 185, 164, 236, 181, 160, 235, 180, 159, 239, 187, 166, 239, 187, 166, 238, 187, 166, 239, 188, 167, 237, 189, 167, 237, 191, 168, 237, 190, 170, 236, 191, 170, 234, 189, 168, 232, 187, 166, 231, 186, 165, 230, 185, 164, 230, 185, 162, 229, 184, 161, 229, 184, 161, 228, 183, 160, 227, 183, 158, 226, 182, 157, 225, 181, 156, 224, 180, 155, 225, 181, 156, 225, 181, 156, 224, 180, 153, 223, 177, 151, 223, 173, 148, 222, 170, 146, 220, 170, 145, 218, 168, 143, 214, 167, 141, 211, 164, 138, 194, 148, 124, 171, 126, 103, 138, 96, 74, 129, 91, 70, 106, 69, 50, 100, 67, 48, 98, 67, 49, 43, 16, 0, 42, 16, 1, 42, 18, 6, 32, 13, 6, 25, 7, 3, 17, 2, 0, 17, 2, 0, 19, 5, 2, 21, 7, 4, 17, 6, 4, 14, 4, 2, 25, 15, 14, 18, 13, 10, 46, 40, 40, 42, 38, 37, 19, 17, 18, 16, 14, 15, 9, 9, 11, 10, 10, 12, 9, 9, 9, 8, 8, 8, 8, 6, 7, 8, 6, 7, 8, 6, 7, 8, 6, 7, 7, 5, 6, 7, 5, 6, 7, 5, 6, 7, 5, 6, 9, 5, 6, 9, 5, 6, 9, 5, 6, 9, 5, 6, 9, 5, 6, 8, 4, 5, 148, 151, 156, 145, 148, 153, 165, 169, 172, 213, 214, 216, 139, 139, 139, 178, 174, 171, 112, 107, 104, 53, 45, 42, 31, 22, 17, 28, 17, 13, 32, 19, 13, 34, 21, 15, 28, 15, 9, 38, 25, 17, 57, 44, 38, 52, 37, 30, 60, 43, 36, 43, 24, 18, 19, 0, 0, 33, 14, 8, 31, 12, 6, 26, 7, 0, 30, 10, 3, 47, 27, 18, 68, 44, 34, 83, 57, 44, 87, 58, 44, 95, 63, 48, 122, 89, 70, 135, 100, 80, 137, 101, 79, 158, 120, 97, 178, 142, 116, 206, 169, 143, 229, 189, 164, 227, 187, 161, 227, 185, 160, 235, 191, 166, 237, 191, 165, 243, 196, 170, 240, 190, 165, 241, 191, 166, 241, 189, 165, 244, 192, 170, 248, 198, 175, 244, 194, 171, 240, 190, 167, 243, 193, 170, 241, 191, 168, 243, 193, 170, 241, 189, 167, 239, 187, 165, 242, 190, 168, 243, 188, 167, 241, 186, 165, 244, 189, 168, 237, 185, 163, 238, 186, 164, 237, 187, 164, 236, 188, 165, 236, 188, 166, 235, 189, 166, 234, 189, 166, 234, 189, 166, 234, 189, 166, 233, 188, 165, 232, 187, 166, 231, 186, 163, 231, 186, 163, 230, 185, 162, 229, 184, 161, 228, 183, 160, 225, 181, 156, 225, 181, 156, 226, 180, 156, 224, 180, 155, 223, 177, 153, 222, 178, 153, 224, 178, 152, 226, 179, 153, 222, 170, 146, 221, 169, 145, 220, 170, 145, 218, 171, 145, 217, 170, 144, 215, 169, 145, 201, 155, 131, 179, 133, 110, 163, 118, 95, 148, 106, 84, 121, 80, 60, 108, 71, 53, 113, 81, 66, 45, 17, 3, 41, 18, 4, 36, 17, 3, 27, 8, 1, 23, 6, 0, 21, 6, 1, 22, 9, 3, 17, 6, 2, 13, 3, 1, 16, 5, 3, 23, 9, 8, 21, 7, 6, 17, 3, 2, 47, 37, 36, 40, 36, 33, 15, 15, 15, 14, 16, 15, 11, 10, 15, 10, 10, 12, 8, 8, 8, 7, 7, 7, 7, 5, 6, 7, 5, 6, 7, 5, 6, 8, 6, 7, 9, 5, 6, 7, 5, 6, 8, 6, 7, 8, 6, 7, 8, 6, 7, 10, 6, 7, 9, 5, 6, 8, 4, 5, 8, 4, 5, 7, 3, 4, 151, 156, 162, 154, 159, 163, 157, 161, 164, 194, 195, 197, 146, 146, 146, 156, 152, 149, 160, 155, 152, 62, 52, 50, 20, 9, 5, 35, 22, 16, 38, 25, 19, 32, 19, 13, 34, 21, 15, 44, 31, 25, 48, 34, 31, 46, 32, 29, 46, 32, 29, 23, 9, 6, 22, 7, 4, 23, 8, 3, 28, 9, 3, 24, 4, 0, 30, 8, 0, 66, 43, 29, 98, 70, 56, 101, 72, 54, 118, 85, 66, 145, 110, 88, 164, 128, 104, 167, 130, 104, 179, 139, 114, 200, 160, 134, 216, 175, 147, 227, 186, 158, 237, 193, 166, 235, 191, 164, 233, 187, 161, 235, 188, 162, 237, 189, 166, 239, 189, 166, 240, 190, 167, 241, 191, 168, 244, 194, 171, 246, 195, 174, 245, 197, 175, 244, 196, 174, 243, 195, 173, 242, 194, 174, 240, 192, 172, 239, 191, 171, 240, 189, 168, 239, 188, 167, 238, 188, 165, 238, 186, 164, 237, 185, 161, 236, 184, 160, 236, 184, 160, 238, 186, 162, 239, 189, 164, 236, 189, 163, 234, 186, 163, 231, 185, 161, 232, 188, 163, 233, 189, 164, 230, 188, 163, 230, 188, 163, 231, 186, 163, 229, 184, 161, 228, 183, 160, 227, 182, 159, 227, 181, 158, 227, 181, 158, 227, 181, 158, 226, 180, 157, 226, 178, 155, 225, 179, 155, 226, 179, 153, 225, 179, 153, 225, 178, 152, 227, 177, 152, 226, 172, 146, 223, 169, 145, 217, 167, 142, 213, 165, 142, 214, 168, 144, 213, 167, 144, 206, 160, 137, 199, 151, 129, 186, 135, 114, 159, 111, 91, 144, 97, 79, 122, 80, 64, 114, 81, 66, 67, 41, 28, 27, 9, 0, 35, 18, 8, 28, 10, 0, 28, 9, 2, 26, 11, 4, 18, 7, 3, 13, 8, 4, 13, 9, 6, 11, 1, 0, 23, 5, 5, 28, 2, 3, 26, 0, 1, 51, 33, 31, 46, 38, 35, 19, 24, 20, 12, 18, 18, 2, 5, 10, 7, 8, 13, 5, 7, 6, 2, 4, 3, 3, 3, 3, 8, 6, 9, 12, 7, 11, 11, 6, 10, 9, 3, 7, 8, 4, 5, 6, 4, 5, 6, 5, 3, 5, 4, 2, 5, 4, 2, 7, 3, 4, 8, 4, 5, 10, 4, 8, 11, 5, 9, 147, 154, 160, 150, 158, 161, 155, 158, 163, 189, 190, 192, 155, 155, 155, 109, 105, 102, 176, 171, 168, 75, 66, 61, 10, 0, 0, 34, 21, 15, 41, 28, 22, 41, 28, 22, 46, 32, 29, 39, 25, 22, 34, 20, 17, 47, 33, 30, 46, 35, 33, 22, 11, 9, 20, 6, 3, 23, 8, 3, 31, 12, 6, 30, 10, 1, 37, 13, 1, 74, 48, 33, 99, 70, 52, 121, 89, 68, 144, 108, 86, 162, 125, 99, 175, 135, 110, 182, 142, 116, 197, 156, 128, 216, 175, 147, 230, 186, 159, 235, 191, 164, 239, 193, 167, 235, 189, 163, 235, 188, 162, 239, 192, 166, 243, 193, 170, 242, 192, 169, 240, 190, 167, 242, 192, 169, 244, 193, 172, 244, 196, 174, 244, 197, 177, 244, 197, 177, 244, 197, 177, 243, 196, 176, 242, 193, 176, 240, 191, 174, 237, 189, 169, 235, 187, 165, 235, 184, 163, 235, 185, 162, 237, 185, 161, 238, 186, 162, 236, 185, 158, 238, 187, 160, 238, 188, 161, 237, 187, 160, 232, 185, 159, 231, 185, 159, 232, 186, 160, 233, 189, 162, 230, 186, 159, 230, 186, 159, 230, 186, 161, 229, 185, 160, 229, 183, 159, 228, 182, 159, 228, 182, 159, 228, 180, 158, 228, 180, 158, 226, 178, 155, 224, 176, 153, 225, 178, 152, 227, 180, 154, 228, 181, 155, 227, 180, 154, 227, 177, 150, 230, 174, 149, 227, 171, 146, 219, 169, 144, 215, 167, 144, 215, 169, 146, 215, 169, 146, 212, 164, 142, 209, 159, 136, 202, 147, 127, 185, 130, 110, 164, 113, 94, 135, 89, 73, 122, 86, 72, 81, 53, 41, 15, 0, 0, 32, 18, 7, 35, 17, 7, 24, 6, 0, 29, 12, 5, 17, 6, 2, 10, 6, 3, 15, 11, 10, 13, 3, 2, 29, 9, 10, 36, 4, 5, 34, 0, 0, 64, 36, 33, 54, 36, 32, 17, 14, 9, 0, 0, 0, 16, 14, 17, 5, 3, 8, 3, 5, 4, 6, 8, 5, 7, 7, 9, 5, 3, 6, 6, 0, 6, 8, 1, 8, 10, 4, 8, 10, 6, 7, 6, 4, 5, 5, 4, 2, 4, 5, 0, 4, 5, 0, 5, 3, 4, 8, 4, 5, 10, 3, 10, 11, 4, 11, 152, 159, 165, 156, 164, 167, 157, 160, 165, 180, 181, 183, 174, 174, 174, 87, 83, 80, 136, 131, 128, 51, 42, 37, 15, 4, 0, 37, 24, 18, 38, 25, 19, 39, 26, 20, 46, 32, 29, 31, 17, 14, 28, 14, 11, 57, 43, 40, 40, 29, 27, 19, 8, 6, 15, 1, 0, 18, 3, 0, 31, 12, 5, 34, 14, 3, 42, 18, 6, 82, 54, 40, 109, 78, 60, 131, 99, 78, 147, 111, 89, 152, 115, 89, 166, 126, 101, 188, 148, 122, 214, 173, 145, 234, 193, 165, 237, 193, 166, 239, 195, 170, 238, 194, 169, 235, 191, 166, 238, 192, 168, 241, 195, 171, 242, 194, 172, 239, 191, 169, 242, 194, 172, 243, 195, 173, 243, 195, 173, 244, 196, 174, 244, 197, 177, 244, 197, 177, 242, 197, 176, 243, 196, 176, 243, 194, 177, 241, 192, 175, 239, 191, 171, 236, 188, 166, 237, 186, 165, 236, 186, 163, 238, 186, 162, 238, 186, 162, 236, 185, 158, 236, 185, 158, 236, 186, 159, 234, 184, 157, 230, 183, 157, 230, 183, 157, 232, 185, 159, 233, 187, 161, 230, 184, 158, 230, 185, 156, 231, 185, 159, 231, 185, 159, 232, 185, 159, 231, 183, 160, 230, 182, 159, 231, 181, 158, 232, 182, 159, 230, 180, 157, 229, 179, 156, 229, 179, 154, 231, 181, 156, 233, 183, 156, 232, 182, 155, 231, 180, 153, 231, 175, 150, 229, 173, 148, 220, 168, 144, 213, 166, 140, 210, 164, 140, 211, 165, 141, 212, 162, 139, 210, 158, 134, 209, 152, 132, 201, 144, 124, 182, 127, 107, 148, 99, 82, 131, 92, 75, 96, 64, 49, 17, 0, 0, 36, 18, 6, 31, 14, 4, 21, 4, 0, 38, 19, 15, 35, 17, 17, 20, 10, 9, 22, 14, 12, 20, 9, 7, 33, 14, 10, 24, 0, 0, 68, 28, 26, 153, 114, 109, 179, 146, 139, 126, 103, 97, 50, 33, 26, 19, 1, 0, 17, 5, 5, 1, 0, 0, 0, 2, 0, 3, 3, 5, 6, 4, 7, 9, 2, 9, 7, 0, 7, 6, 1, 5, 8, 4, 5, 5, 3, 4, 5, 4, 2, 4, 5, 0, 4, 5, 0, 6, 4, 5, 7, 5, 6, 10, 5, 11, 11, 6, 12, 156, 163, 169, 166, 174, 177, 167, 170, 175, 173, 174, 176, 184, 184, 184, 122, 118, 117, 69, 64, 61, 29, 20, 15, 30, 19, 15, 37, 24, 18, 31, 18, 12, 31, 18, 12, 37, 23, 20, 30, 16, 13, 33, 19, 16, 57, 43, 40, 30, 19, 17, 16, 2, 1, 14, 0, 0, 17, 0, 0, 32, 12, 5, 38, 16, 5, 47, 20, 9, 87, 59, 45, 116, 85, 67, 139, 104, 84, 155, 117, 96, 164, 126, 103, 187, 147, 122, 210, 170, 144, 225, 183, 158, 230, 188, 163, 235, 193, 168, 238, 193, 170, 239, 194, 171, 239, 194, 171, 241, 195, 172, 242, 196, 173, 241, 193, 171, 236, 188, 166, 247, 199, 177, 246, 198, 176, 245, 197, 175, 243, 197, 174, 242, 195, 175, 241, 194, 174, 240, 195, 174, 239, 194, 173, 240, 193, 175, 241, 193, 173, 241, 193, 173, 241, 193, 171, 241, 191, 168, 239, 189, 166, 237, 185, 161, 236, 184, 160, 235, 184, 157, 235, 184, 157, 233, 183, 156, 232, 182, 155, 230, 180, 155, 229, 182, 156, 233, 183, 158, 232, 185, 159, 233, 183, 156, 232, 185, 157, 235, 185, 158, 234, 187, 159, 235, 185, 160, 234, 184, 159, 233, 183, 160, 232, 182, 159, 233, 183, 160, 233, 183, 160, 233, 183, 158, 231, 181, 156, 231, 181, 154, 232, 182, 155, 232, 182, 155, 232, 181, 154, 232, 176, 149, 231, 175, 150, 223, 171, 147, 216, 166, 141, 211, 163, 140, 211, 163, 140, 213, 161, 137, 214, 160, 136, 208, 150, 128, 206, 148, 126, 192, 135, 115, 159, 108, 87, 135, 92, 73, 94, 59, 40, 25, 0, 0, 33, 14, 0, 25, 8, 0, 25, 8, 1, 44, 20, 18, 41, 19, 21, 20, 4, 5, 16, 4, 4, 21, 10, 6, 24, 5, 0, 53, 18, 12, 157, 112, 106, 207, 157, 150, 213, 164, 157, 204, 164, 156, 157, 120, 112, 39, 6, 1, 22, 0, 0, 16, 8, 5, 0, 0, 0, 1, 0, 0, 10, 5, 9, 12, 7, 13, 5, 0, 6, 3, 0, 2, 6, 4, 5, 5, 3, 4, 5, 4, 2, 4, 5, 0, 5, 5, 3, 7, 5, 6, 8, 6, 7, 11, 6, 12, 12, 7, 13, 157, 164, 170, 166, 174, 177, 179, 182, 187, 175, 176, 178, 184, 184, 184, 173, 169, 168, 59, 54, 51, 38, 29, 24, 39, 28, 24, 30, 17, 11, 28, 15, 9, 33, 20, 14, 35, 22, 16, 37, 24, 18, 39, 25, 22, 37, 23, 20, 24, 10, 9, 17, 3, 2, 17, 2, 0, 19, 2, 0, 33, 13, 6, 40, 16, 6, 49, 21, 9, 92, 63, 47, 123, 90, 73, 143, 108, 88, 161, 123, 102, 179, 138, 116, 204, 162, 138, 223, 181, 156, 232, 188, 163, 230, 188, 163, 235, 193, 171, 238, 196, 174, 240, 198, 176, 240, 198, 176, 243, 198, 177, 242, 197, 176, 242, 195, 175, 239, 192, 172, 246, 199, 179, 246, 199, 179, 244, 197, 177, 243, 196, 176, 241, 194, 174, 239, 194, 173, 238, 193, 172, 238, 193, 172, 239, 192, 172, 239, 192, 172, 240, 192, 172, 240, 192, 170, 241, 191, 168, 238, 188, 165, 237, 185, 161, 235, 183, 159, 234, 183, 156, 234, 183, 156, 233, 182, 155, 231, 180, 153, 231, 179, 155, 230, 180, 155, 233, 181, 157, 233, 183, 156, 235, 184, 155, 235, 186, 156, 236, 185, 156, 236, 187, 157, 236, 185, 158, 235, 184, 157, 233, 181, 157, 232, 180, 156, 229, 179, 154, 233, 183, 158, 234, 184, 159, 232, 182, 157, 229, 179, 154, 230, 180, 155, 231, 181, 154, 231, 180, 153, 227, 173, 147, 227, 173, 147, 221, 169, 145, 215, 165, 140, 209, 161, 138, 209, 161, 138, 211, 159, 135, 212, 158, 132, 211, 153, 129, 208, 150, 126, 201, 143, 119, 173, 118, 97, 140, 93, 73, 86, 45, 27, 45, 12, 0, 35, 9, 0, 34, 16, 4, 40, 23, 16, 46, 18, 17, 45, 16, 20, 24, 2, 5, 17, 1, 1, 27, 16, 10, 15, 0, 0, 118, 81, 73, 206, 153, 145, 219, 156, 147, 177, 110, 101, 146, 86, 76, 199, 142, 133, 153, 100, 92, 30, 0, 0, 28, 13, 8, 10, 9, 5, 7, 3, 4, 6, 2, 3, 5, 0, 4, 1, 0, 2, 3, 1, 4, 8, 6, 7, 5, 3, 4, 5, 5, 3, 5, 5, 3, 6, 6, 4, 7, 7, 7, 9, 9, 9, 11, 9, 14, 11, 9, 14, 165, 172, 178, 161, 168, 174, 178, 181, 186, 186, 187, 191, 192, 192, 194, 200, 196, 195, 85, 80, 77, 27, 18, 13, 44, 33, 29, 29, 16, 10, 28, 15, 9, 34, 21, 15, 32, 19, 13, 39, 26, 20, 39, 25, 22, 22, 8, 5, 18, 4, 3, 18, 3, 0, 21, 3, 0, 20, 1, 0, 36, 13, 7, 41, 17, 7, 49, 19, 8, 95, 63, 48, 120, 84, 68, 143, 106, 87, 168, 127, 107, 184, 143, 121, 204, 162, 138, 221, 179, 155, 233, 188, 165, 238, 196, 172, 239, 198, 178, 241, 200, 180, 244, 201, 184, 243, 200, 181, 243, 200, 181, 245, 200, 179, 246, 201, 182, 247, 202, 181, 244, 197, 177, 244, 197, 177, 243, 196, 176, 242, 195, 175, 240, 195, 174, 239, 194, 173, 239, 194, 173, 238, 193, 172, 240, 193, 173, 238, 191, 171, 237, 189, 167, 235, 187, 165, 236, 186, 163, 236, 186, 163, 237, 185, 161, 238, 186, 162, 235, 184, 157, 234, 183, 156, 233, 182, 155, 232, 181, 154, 232, 180, 156, 232, 180, 156, 233, 181, 157, 234, 183, 156, 235, 184, 155, 235, 184, 153, 236, 185, 156, 236, 185, 156, 235, 184, 157, 233, 183, 158, 233, 181, 157, 231, 181, 158, 228, 178, 155, 232, 184, 161, 236, 186, 163, 231, 183, 160, 231, 181, 158, 230, 183, 157, 231, 181, 156, 229, 179, 154, 227, 175, 151, 226, 174, 150, 221, 171, 146, 213, 165, 142, 210, 162, 139, 208, 160, 137, 209, 157, 133, 209, 155, 129, 211, 153, 129, 211, 151, 125, 206, 148, 124, 186, 130, 107, 152, 101, 80, 93, 48, 27, 70, 32, 13, 51, 22, 4, 35, 16, 2, 39, 20, 13, 41, 11, 11, 44, 14, 16, 32, 10, 12, 26, 10, 10, 29, 16, 10, 15, 0, 0, 119, 79, 71, 216, 159, 148, 208, 138, 128, 164, 87, 77, 150, 78, 66, 179, 109, 99, 209, 140, 133, 108, 58, 51, 15, 0, 0, 13, 8, 4, 14, 10, 9, 5, 1, 2, 1, 0, 2, 5, 3, 6, 8, 6, 9, 4, 4, 6, 5, 5, 5, 6, 6, 4, 7, 7, 5, 8, 8, 6, 9, 9, 9, 10, 10, 10, 11, 10, 15, 11, 10, 15, 170, 177, 185, 163, 170, 176, 174, 177, 182, 191, 192, 196, 196, 196, 198, 194, 190, 189, 90, 85, 82, 11, 2, 0, 45, 34, 30, 36, 23, 17, 32, 19, 13, 34, 21, 15, 33, 20, 14, 32, 19, 13, 28, 15, 9, 18, 5, 0, 16, 1, 0, 17, 2, 0, 20, 2, 0, 20, 0, 0, 40, 15, 8, 48, 21, 10, 56, 24, 11, 100, 67, 50, 125, 88, 70, 162, 124, 105, 198, 157, 137, 215, 173, 151, 227, 182, 161, 233, 188, 165, 235, 190, 167, 235, 193, 171, 241, 200, 182, 241, 203, 184, 244, 202, 186, 246, 205, 187, 246, 205, 187, 246, 203, 184, 246, 203, 186, 247, 204, 185, 242, 197, 178, 242, 197, 178, 242, 197, 176, 242, 197, 176, 241, 196, 175, 240, 195, 174, 239, 194, 171, 238, 193, 170, 240, 194, 171, 238, 192, 169, 235, 189, 166, 233, 187, 164, 233, 185, 162, 234, 186, 163, 237, 187, 162, 238, 188, 163, 236, 184, 160, 235, 183, 159, 237, 183, 159, 236, 182, 158, 237, 183, 159, 237, 183, 159, 237, 183, 159, 236, 182, 156, 236, 185, 156, 236, 185, 156, 235, 185, 158, 235, 185, 158, 235, 185, 160, 233, 186, 160, 235, 185, 162, 233, 185, 163, 230, 182, 160, 232, 186, 163, 234, 186, 164, 230, 184, 161, 230, 182, 160, 230, 184, 161, 226, 178, 156, 219, 171, 148, 218, 170, 147, 217, 169, 146, 213, 165, 142, 208, 162, 139, 208, 162, 139, 210, 162, 140, 213, 161, 139, 213, 159, 135, 208, 150, 126, 209, 151, 127, 207, 149, 125, 194, 138, 115, 167, 115, 93, 117, 70, 50, 85, 42, 23, 81, 46, 27, 47, 21, 8, 38, 15, 7, 46, 16, 14, 39, 9, 9, 28, 7, 6, 24, 9, 6, 17, 4, 0, 27, 5, 0, 121, 78, 69, 178, 118, 108, 187, 113, 104, 188, 108, 97, 188, 110, 98, 178, 100, 90, 217, 138, 131, 173, 112, 107, 22, 0, 0, 13, 5, 2, 12, 7, 4, 7, 3, 2, 5, 3, 4, 7, 7, 9, 7, 7, 9, 3, 3, 5, 7, 7, 7, 7, 7, 7, 8, 8, 6, 9, 9, 7, 10, 10, 10, 11, 11, 11, 11, 10, 15, 11, 12, 16, 164, 171, 179, 170, 177, 183, 175, 178, 185, 189, 190, 194, 188, 188, 190, 177, 173, 172, 77, 72, 69, 23, 14, 9, 37, 26, 22, 40, 27, 21, 38, 25, 19, 40, 27, 21, 41, 28, 22, 27, 14, 8, 14, 1, 0, 15, 2, 0, 16, 1, 0, 20, 2, 0, 21, 2, 0, 21, 1, 0, 45, 20, 13, 57, 29, 18, 64, 32, 19, 110, 74, 58, 158, 119, 102, 195, 154, 134, 222, 180, 158, 225, 183, 161, 230, 185, 164, 235, 190, 169, 237, 192, 171, 234, 192, 170, 239, 198, 180, 239, 200, 183, 245, 203, 187, 249, 207, 191, 250, 208, 192, 247, 206, 188, 244, 201, 184, 242, 199, 182, 242, 199, 180, 242, 199, 180, 243, 198, 177, 242, 197, 176, 241, 196, 175, 239, 194, 173, 238, 193, 170, 237, 192, 169, 238, 192, 169, 238, 192, 169, 237, 191, 168, 237, 191, 168, 237, 189, 166, 236, 188, 165, 238, 188, 165, 238, 188, 163, 237, 185, 163, 237, 185, 161, 238, 184, 160, 238, 184, 160, 239, 185, 161, 239, 185, 161, 238, 184, 160, 237, 183, 159, 237, 186, 159, 236, 186, 159, 236, 186, 161, 235, 188, 162, 235, 187, 164, 235, 189, 165, 235, 189, 166, 235, 188, 168, 229, 184, 165, 230, 185, 166, 228, 183, 164, 225, 180, 161, 225, 180, 161, 225, 180, 161, 217, 172, 151, 207, 160, 140, 186, 140, 117, 186, 140, 117, 185, 138, 118, 185, 140, 119, 192, 145, 127, 200, 153, 133, 206, 155, 134, 207, 155, 133, 207, 151, 128, 211, 155, 132, 207, 151, 128, 197, 143, 119, 176, 124, 102, 137, 89, 69, 86, 41, 22, 98, 59, 42, 87, 55, 40, 64, 36, 25, 72, 41, 36, 44, 16, 12, 22, 4, 0, 23, 10, 4, 18, 3, 0, 63, 39, 29, 111, 67, 58, 170, 110, 100, 198, 125, 116, 198, 120, 110, 201, 124, 114, 202, 124, 114, 203, 118, 115, 199, 131, 128, 62, 31, 28, 24, 13, 9, 7, 0, 0, 8, 3, 0, 9, 7, 8, 5, 5, 7, 3, 4, 6, 9, 10, 12, 8, 8, 8, 8, 8, 8, 9, 9, 7, 10, 10, 8, 11, 11, 11, 11, 11, 13, 11, 12, 16, 11, 12, 16, 172, 179, 187, 161, 168, 174, 182, 185, 192, 185, 186, 190, 184, 184, 186, 148, 144, 143, 80, 75, 72, 25, 16, 11, 37, 26, 22, 43, 30, 24, 44, 31, 23, 42, 29, 21, 37, 24, 16, 26, 13, 5, 20, 7, 1, 23, 10, 4, 19, 4, 1, 24, 6, 2, 21, 2, 0, 45, 22, 14, 54, 27, 18, 67, 37, 26, 78, 45, 30, 150, 115, 96, 198, 160, 141, 213, 172, 152, 224, 182, 160, 227, 185, 163, 230, 185, 164, 234, 189, 168, 236, 194, 172, 236, 193, 174, 239, 197, 181, 240, 201, 186, 244, 205, 190, 246, 207, 190, 246, 207, 190, 244, 205, 188, 244, 203, 185, 243, 202, 184, 239, 198, 178, 238, 197, 177, 239, 197, 175, 238, 196, 174, 240, 195, 174, 239, 194, 173, 239, 194, 171, 238, 193, 170, 239, 193, 170, 237, 191, 168, 236, 190, 167, 236, 190, 167, 238, 192, 169, 239, 193, 170, 240, 192, 170, 239, 191, 168, 239, 188, 167, 240, 190, 167, 240, 188, 166, 238, 186, 164, 238, 183, 162, 237, 182, 161, 239, 184, 163, 239, 187, 165, 234, 184, 161, 238, 190, 167, 241, 193, 171, 234, 188, 165, 237, 192, 171, 238, 193, 172, 227, 184, 165, 234, 191, 172, 233, 192, 174, 225, 184, 166, 225, 182, 165, 225, 182, 165, 219, 176, 159, 214, 171, 154, 196, 153, 136, 170, 124, 108, 171, 126, 107, 164, 119, 98, 154, 109, 90, 145, 102, 83, 149, 103, 87, 164, 118, 102, 190, 141, 124, 212, 161, 142, 210, 158, 137, 203, 148, 127, 205, 150, 129, 203, 151, 129, 194, 143, 122, 182, 134, 114, 150, 103, 85, 101, 58, 41, 87, 50, 32, 82, 49, 34, 84, 54, 43, 60, 36, 26, 33, 19, 10, 28, 18, 9, 14, 0, 0, 63, 36, 29, 94, 47, 41, 170, 110, 102, 216, 149, 140, 205, 135, 125, 169, 99, 91, 226, 151, 145, 209, 123, 124, 211, 139, 140, 117, 82, 78, 14, 0, 0, 21, 10, 8, 9, 4, 1, 5, 3, 4, 6, 6, 6, 6, 7, 9, 10, 11, 13, 10, 10, 10, 11, 11, 11, 12, 11, 9, 12, 11, 9, 12, 12, 12, 12, 12, 14, 11, 12, 16, 10, 14, 17, 162, 169, 177, 178, 185, 193, 170, 173, 180, 185, 186, 190, 188, 188, 190, 125, 121, 120, 73, 68, 65, 54, 45, 40, 34, 23, 19, 37, 24, 18, 41, 28, 20, 48, 35, 27, 47, 34, 26, 36, 23, 15, 32, 19, 13, 38, 25, 19, 35, 17, 15, 34, 16, 12, 33, 12, 7, 37, 14, 6, 64, 37, 28, 71, 41, 30, 105, 72, 57, 167, 130, 112, 204, 166, 147, 217, 176, 156, 228, 186, 164, 230, 188, 166, 232, 187, 166, 232, 190, 168, 234, 191, 172, 233, 192, 174, 234, 195, 178, 239, 200, 185, 244, 205, 190, 245, 206, 191, 244, 205, 188, 242, 203, 186, 243, 202, 184, 243, 202, 184, 239, 198, 178, 239, 198, 178, 239, 197, 175, 238, 196, 174, 240, 195, 174, 239, 194, 173, 238, 193, 170, 238, 193, 170, 239, 193, 170, 238, 192, 169, 236, 190, 167, 236, 190, 167, 237, 191, 168, 238, 192, 169, 239, 191, 169, 238, 190, 168, 236, 188, 168, 238, 187, 166, 238, 187, 166, 238, 186, 164, 237, 185, 163, 239, 184, 163, 240, 185, 164, 239, 187, 166, 245, 197, 175, 233, 186, 166, 229, 182, 162, 236, 191, 172, 240, 197, 178, 232, 191, 173, 224, 182, 166, 227, 188, 171, 222, 183, 166, 215, 176, 159, 216, 177, 162, 215, 173, 157, 196, 154, 140, 179, 137, 121, 173, 130, 114, 168, 125, 109, 154, 111, 94, 141, 98, 79, 138, 95, 78, 145, 102, 85, 140, 97, 81, 132, 86, 71, 144, 97, 81, 168, 119, 102, 186, 135, 116, 194, 143, 122, 208, 158, 135, 207, 157, 134, 201, 150, 129, 207, 159, 139, 203, 154, 137, 177, 130, 112, 142, 99, 80, 88, 50, 31, 65, 33, 18, 63, 40, 26, 30, 18, 6, 35, 25, 15, 33, 16, 8, 27, 0, 0, 110, 61, 56, 170, 109, 104, 219, 156, 147, 235, 171, 162, 174, 110, 101, 151, 80, 76, 174, 89, 92, 220, 145, 149, 148, 108, 106, 17, 0, 0, 35, 21, 18, 12, 4, 2, 11, 10, 8, 8, 10, 9, 6, 7, 9, 7, 11, 12, 11, 11, 11, 11, 11, 11, 12, 11, 9, 12, 10, 11, 13, 11, 14, 12, 12, 14, 11, 12, 16, 10, 14, 17, 159, 166, 176, 171, 178, 186, 177, 180, 187, 184, 185, 190, 195, 195, 197, 148, 144, 143, 57, 52, 49, 43, 34, 29, 40, 29, 25, 38, 25, 19, 36, 23, 15, 37, 24, 16, 36, 23, 15, 33, 20, 12, 33, 20, 12, 37, 24, 16, 37, 19, 15, 38, 21, 14, 33, 13, 6, 29, 7, 0, 59, 32, 21, 67, 38, 24, 120, 84, 68, 175, 138, 120, 209, 171, 152, 222, 181, 161, 232, 190, 168, 233, 191, 169, 233, 190, 171, 234, 191, 172, 234, 191, 174, 232, 191, 173, 232, 193, 176, 237, 198, 183, 242, 203, 186, 243, 204, 187, 240, 201, 184, 238, 199, 182, 239, 201, 182, 241, 203, 184, 239, 198, 178, 239, 198, 178, 239, 196, 177, 238, 195, 176, 239, 194, 173, 238, 193, 172, 239, 192, 172, 239, 192, 172, 239, 193, 170, 238, 192, 169, 236, 190, 167, 236, 190, 167, 236, 189, 169, 237, 190, 170, 237, 190, 170, 236, 189, 169, 235, 188, 170, 236, 188, 168, 236, 188, 168, 238, 187, 166, 238, 187, 166, 239, 187, 166, 239, 187, 166, 238, 187, 166, 232, 185, 167, 236, 191, 172, 237, 192, 173, 235, 192, 175, 229, 187, 171, 225, 186, 169, 229, 190, 175, 222, 185, 169, 209, 172, 156, 184, 147, 131, 160, 122, 109, 143, 104, 89, 131, 89, 77, 130, 88, 74, 140, 96, 83, 147, 104, 88, 144, 103, 85, 128, 87, 69, 128, 85, 69, 148, 105, 89, 160, 114, 101, 156, 110, 95, 167, 119, 105, 188, 141, 125, 197, 149, 129, 186, 138, 116, 191, 143, 120, 203, 155, 132, 203, 155, 133, 205, 157, 137, 207, 158, 141, 202, 154, 134, 181, 133, 111, 141, 99, 77, 92, 57, 38, 80, 54, 37, 33, 20, 4, 29, 17, 5, 25, 6, 0, 77, 44, 39, 160, 109, 106, 174, 113, 110, 205, 145, 137, 232, 172, 164, 205, 146, 138, 160, 92, 89, 177, 97, 100, 221, 149, 152, 174, 133, 131, 15, 0, 0, 36, 21, 16, 10, 0, 0, 14, 10, 9, 10, 12, 11, 8, 9, 11, 8, 12, 13, 11, 11, 11, 11, 11, 11, 12, 10, 11, 13, 11, 12, 13, 11, 14, 12, 12, 14, 12, 13, 17, 10, 14, 17, 160, 167, 177, 166, 173, 181, 187, 190, 199, 188, 189, 194, 199, 199, 201, 195, 191, 190, 98, 93, 90, 55, 46, 41, 32, 21, 17, 31, 18, 12, 30, 17, 9, 32, 19, 11, 35, 22, 14, 39, 26, 18, 36, 23, 15, 27, 14, 6, 28, 13, 8, 38, 21, 14, 23, 4, 0, 32, 10, 0, 46, 19, 8, 57, 28, 14, 116, 80, 64, 175, 138, 119, 213, 172, 152, 223, 182, 162, 232, 190, 168, 235, 193, 171, 234, 191, 172, 233, 192, 172, 234, 193, 175, 233, 191, 175, 232, 193, 176, 235, 196, 179, 237, 198, 181, 238, 199, 182, 237, 198, 181, 237, 198, 181, 239, 201, 182, 241, 203, 184, 239, 198, 178, 238, 197, 177, 238, 195, 176, 237, 194, 175, 238, 193, 172, 238, 193, 172, 238, 191, 171, 238, 191, 171, 238, 192, 169, 237, 191, 168, 237, 191, 168, 236, 190, 167, 236, 189, 169, 237, 190, 170, 237, 190, 172, 236, 191, 172, 238, 191, 173, 238, 191, 173, 238, 191, 173, 239, 191, 171, 239, 191, 171, 240, 189, 168, 240, 189, 168, 239, 188, 169, 232, 185, 167, 234, 188, 172, 231, 188, 171, 233, 191, 175, 229, 187, 173, 223, 184, 169, 207, 169, 156, 172, 134, 121, 136, 98, 85, 119, 81, 68, 96, 58, 45, 85, 45, 33, 99, 57, 45, 124, 80, 67, 137, 93, 80, 136, 93, 77, 135, 92, 75, 148, 105, 88, 170, 124, 108, 186, 140, 125, 191, 143, 131, 191, 143, 129, 198, 150, 136, 209, 162, 146, 215, 168, 148, 192, 146, 123, 187, 139, 116, 202, 154, 131, 209, 161, 139, 208, 160, 138, 207, 156, 137, 203, 152, 133, 197, 147, 122, 177, 131, 107, 114, 76, 55, 89, 60, 42, 53, 36, 20, 31, 15, 2, 17, 0, 0, 115, 80, 74, 191, 137, 135, 196, 135, 132, 225, 162, 155, 228, 168, 160, 231, 171, 163, 202, 137, 133, 187, 108, 111, 221, 149, 152, 194, 150, 147, 21, 0, 0, 25, 7, 3, 13, 2, 0, 11, 7, 6, 10, 12, 11, 11, 12, 14, 8, 9, 11, 11, 11, 11, 12, 10, 11, 14, 10, 11, 15, 11, 12, 13, 11, 14, 12, 12, 14, 12, 13, 17, 10, 14, 17, 153, 160, 170, 180, 187, 195, 183, 186, 195, 195, 196, 201, 202, 201, 206, 204, 200, 201, 164, 159, 156, 122, 113, 108, 61, 50, 46, 42, 29, 23, 29, 16, 8, 30, 17, 9, 32, 19, 11, 37, 24, 16, 38, 25, 17, 33, 20, 12, 27, 12, 5, 35, 18, 11, 24, 5, 0, 35, 13, 2, 43, 17, 4, 52, 23, 7, 117, 82, 63, 185, 148, 129, 215, 174, 154, 222, 181, 159, 231, 189, 167, 234, 192, 170, 233, 192, 172, 232, 191, 173, 233, 191, 175, 231, 192, 175, 234, 195, 178, 233, 195, 176, 233, 195, 176, 233, 195, 176, 235, 197, 178, 237, 199, 180, 238, 200, 181, 239, 201, 182, 239, 198, 178, 238, 197, 177, 238, 195, 176, 238, 193, 174, 239, 192, 172, 238, 191, 171, 239, 191, 171, 240, 192, 172, 237, 190, 170, 237, 190, 170, 237, 190, 170, 237, 190, 170, 237, 192, 173, 237, 192, 173, 238, 192, 176, 237, 194, 177, 241, 195, 179, 241, 195, 179, 241, 195, 179, 241, 194, 176, 239, 192, 174, 239, 191, 171, 238, 190, 170, 237, 189, 169, 237, 190, 172, 229, 183, 167, 230, 187, 171, 231, 189, 173, 208, 166, 152, 170, 131, 116, 138, 101, 85, 111, 74, 58, 84, 47, 31, 90, 53, 37, 93, 54, 39, 101, 59, 45, 123, 79, 66, 152, 106, 91, 167, 121, 106, 171, 125, 109, 177, 132, 113, 180, 133, 115, 181, 132, 117, 181, 132, 117, 189, 137, 124, 199, 147, 134, 207, 155, 141, 207, 158, 141, 216, 168, 148, 214, 166, 144, 209, 161, 138, 201, 154, 128, 203, 153, 130, 212, 161, 140, 213, 160, 142, 204, 152, 131, 202, 152, 125, 179, 132, 104, 138, 96, 74, 110, 75, 56, 82, 56, 43, 33, 11, 0, 20, 0, 0, 81, 44, 36, 168, 115, 111, 214, 149, 145, 240, 173, 165, 237, 168, 161, 242, 178, 169, 229, 160, 153, 197, 119, 117, 218, 148, 148, 212, 167, 162, 52, 23, 17, 17, 0, 0, 26, 15, 11, 10, 6, 3, 8, 10, 9, 12, 13, 15, 5, 6, 8, 11, 11, 13, 12, 10, 13, 16, 10, 12, 16, 10, 12, 15, 10, 14, 13, 13, 15, 12, 13, 17, 10, 13, 18, 148, 155, 165, 178, 185, 193, 188, 191, 200, 200, 201, 206, 210, 209, 214, 199, 195, 196, 158, 153, 150, 130, 121, 116, 88, 77, 73, 50, 37, 31, 30, 17, 9, 35, 22, 14, 32, 19, 11, 26, 13, 5, 29, 16, 8, 33, 20, 12, 29, 14, 7, 26, 9, 1, 27, 8, 1, 29, 7, 0, 46, 20, 7, 54, 25, 9, 127, 92, 73, 195, 159, 137, 214, 176, 155, 222, 181, 159, 229, 187, 165, 231, 190, 168, 231, 190, 172, 231, 190, 172, 229, 190, 173, 230, 191, 174, 235, 197, 178, 233, 195, 176, 231, 193, 174, 232, 194, 175, 235, 197, 178, 237, 199, 180, 238, 200, 181, 237, 199, 180, 239, 198, 178, 238, 197, 177, 240, 195, 176, 239, 194, 175, 239, 192, 172, 239, 192, 172, 241, 193, 173, 241, 193, 173, 239, 191, 171, 239, 192, 172, 239, 192, 172, 239, 192, 172, 238, 193, 174, 237, 194, 175, 239, 196, 179, 240, 197, 180, 241, 198, 181, 242, 199, 182, 243, 197, 181, 240, 194, 178, 237, 190, 174, 234, 187, 169, 233, 186, 168, 233, 186, 168, 229, 182, 166, 224, 178, 162, 222, 176, 161, 191, 148, 132, 145, 103, 89, 109, 70, 55, 90, 51, 36, 90, 53, 37, 97, 60, 44, 114, 75, 60, 136, 94, 80, 159, 116, 100, 180, 134, 119, 190, 143, 127, 196, 149, 133, 206, 157, 140, 197, 149, 129, 190, 142, 122, 190, 139, 122, 197, 144, 130, 207, 151, 138, 206, 153, 139, 201, 148, 132, 196, 145, 126, 226, 175, 154, 225, 177, 154, 218, 171, 145, 204, 157, 131, 200, 150, 125, 203, 151, 129, 206, 151, 131, 204, 149, 128, 202, 153, 123, 194, 147, 119, 166, 118, 96, 121, 78, 61, 105, 71, 59, 33, 5, 0, 38, 9, 1, 44, 7, 0, 144, 89, 84, 227, 160, 154, 236, 163, 156, 231, 157, 148, 234, 161, 152, 238, 165, 156, 230, 151, 146, 219, 150, 145, 218, 171, 165, 81, 50, 45, 17, 0, 0, 36, 22, 19, 10, 6, 3, 8, 10, 7, 13, 14, 16, 7, 8, 10, 11, 11, 13, 14, 9, 13, 18, 9, 12, 16, 10, 12, 15, 10, 14, 13, 13, 15, 12, 13, 18, 10, 13, 18, 144, 151, 161, 167, 174, 182, 198, 201, 210, 203, 204, 209, 216, 215, 220, 212, 208, 209, 145, 140, 137, 67, 58, 53, 59, 48, 44, 34, 21, 15, 32, 19, 11, 45, 32, 24, 41, 28, 20, 32, 19, 11, 30, 17, 9, 25, 12, 4, 30, 15, 8, 22, 5, 0, 24, 5, 0, 28, 6, 0, 48, 22, 9, 73, 44, 28, 133, 100, 81, 198, 162, 140, 214, 176, 155, 221, 180, 158, 226, 185, 163, 230, 189, 167, 231, 190, 172, 230, 192, 173, 231, 192, 175, 233, 194, 177, 235, 194, 176, 235, 194, 174, 234, 196, 175, 235, 197, 176, 236, 198, 177, 237, 199, 178, 236, 198, 177, 236, 198, 177, 240, 199, 179, 239, 198, 178, 241, 196, 177, 240, 195, 176, 240, 193, 173, 242, 194, 174, 245, 194, 175, 243, 195, 175, 241, 193, 173, 242, 194, 174, 242, 195, 177, 241, 194, 176, 240, 194, 178, 238, 195, 178, 240, 197, 181, 241, 199, 183, 241, 199, 183, 242, 200, 184, 242, 199, 183, 236, 193, 176, 230, 184, 168, 225, 180, 161, 225, 180, 161, 228, 181, 163, 221, 174, 158, 196, 150, 134, 175, 129, 113, 129, 86, 69, 107, 65, 49, 105, 66, 49, 92, 53, 36, 105, 66, 49, 125, 86, 69, 153, 111, 95, 183, 140, 124, 209, 163, 147, 225, 178, 162, 220, 171, 154, 210, 159, 142, 208, 157, 138, 208, 156, 134, 208, 156, 134, 211, 156, 136, 208, 152, 135, 201, 143, 129, 199, 141, 127, 211, 155, 140, 226, 173, 155, 227, 177, 154, 223, 173, 148, 215, 168, 140, 215, 165, 138, 213, 162, 135, 206, 152, 128, 206, 149, 129, 213, 159, 135, 205, 156, 126, 204, 154, 127, 174, 119, 99, 122, 70, 56, 111, 68, 59, 60, 26, 16, 32, 2, 0, 51, 14, 5, 145, 90, 83, 210, 141, 134, 227, 148, 141, 225, 143, 132, 213, 133, 122, 223, 145, 133, 239, 161, 151, 226, 158, 149, 214, 165, 158, 99, 66, 59, 18, 0, 0, 36, 21, 16, 12, 7, 4, 10, 12, 9, 10, 11, 13, 12, 13, 15, 12, 10, 13, 15, 10, 14, 18, 9, 12, 18, 9, 12, 17, 11, 15, 14, 12, 15, 12, 13, 18, 10, 13, 18, 138, 145, 155, 174, 181, 189, 195, 200, 206, 205, 208, 213, 213, 212, 217, 225, 223, 224, 189, 185, 184, 27, 19, 16, 56, 47, 42, 40, 29, 23, 34, 23, 17, 32, 19, 11, 25, 12, 4, 32, 19, 11, 40, 25, 18, 30, 15, 8, 32, 17, 10, 25, 10, 3, 21, 2, 0, 36, 16, 5, 47, 24, 10, 99, 70, 54, 137, 104, 85, 199, 163, 141, 215, 174, 154, 219, 177, 155, 225, 183, 161, 230, 188, 166, 232, 191, 171, 234, 193, 175, 234, 195, 178, 237, 199, 180, 233, 192, 174, 235, 194, 174, 237, 199, 178, 238, 200, 179, 238, 200, 179, 236, 198, 177, 235, 197, 176, 237, 196, 176, 240, 199, 179, 241, 198, 179, 241, 196, 177, 241, 196, 177, 242, 195, 177, 243, 194, 177, 244, 195, 178, 245, 196, 179, 242, 195, 175, 243, 196, 176, 244, 197, 179, 242, 197, 178, 239, 196, 179, 239, 196, 179, 239, 197, 181, 241, 199, 183, 240, 198, 184, 242, 199, 183, 241, 198, 182, 235, 189, 173, 227, 180, 164, 221, 174, 156, 221, 174, 156, 224, 177, 159, 199, 153, 137, 161, 115, 99, 145, 100, 81, 115, 70, 51, 108, 62, 46, 111, 68, 51, 104, 61, 44, 144, 101, 84, 172, 129, 112, 203, 160, 143, 220, 174, 158, 216, 170, 154, 215, 168, 152, 211, 162, 147, 203, 154, 139, 204, 153, 136, 197, 145, 124, 192, 140, 119, 192, 137, 117, 199, 143, 126, 213, 155, 141, 224, 167, 150, 226, 170, 153, 224, 172, 151, 216, 164, 142, 225, 175, 150, 226, 176, 149, 217, 168, 138, 209, 158, 131, 205, 151, 127, 204, 148, 125, 206, 152, 128, 200, 150, 123, 196, 149, 121, 194, 139, 119, 151, 98, 82, 100, 54, 41, 86, 46, 36, 28, 0, 0, 97, 57, 47, 153, 99, 89, 144, 77, 68, 183, 104, 97, 212, 130, 119, 215, 133, 121, 220, 141, 128, 231, 151, 140, 232, 162, 152, 216, 163, 155, 111, 74, 66, 22, 0, 0, 30, 19, 17, 13, 9, 8, 11, 11, 11, 6, 8, 7, 13, 15, 14, 11, 11, 13, 13, 11, 14, 18, 9, 12, 18, 9, 12, 16, 12, 13, 14, 12, 15, 13, 12, 17, 13, 14, 18, 136, 143, 151, 171, 178, 184, 188, 193, 199, 211, 214, 219, 219, 223, 226, 222, 223, 225, 214, 214, 214, 161, 157, 156, 14, 9, 6, 43, 35, 32, 36, 27, 22, 31, 20, 14, 41, 28, 20, 36, 21, 14, 31, 14, 6, 39, 22, 15, 32, 19, 11, 24, 11, 3, 32, 18, 9, 30, 12, 0, 51, 29, 15, 103, 76, 59, 148, 115, 96, 193, 157, 135, 213, 170, 151, 220, 175, 154, 229, 182, 162, 232, 185, 165, 231, 186, 167, 234, 191, 172, 237, 196, 178, 231, 193, 174, 234, 196, 177, 235, 197, 178, 236, 198, 179, 237, 199, 180, 240, 199, 181, 240, 199, 181, 242, 201, 183, 244, 201, 184, 239, 196, 179, 248, 205, 188, 248, 202, 186, 244, 198, 182, 247, 201, 185, 244, 198, 182, 240, 194, 178, 247, 201, 185, 249, 204, 185, 244, 199, 178, 243, 198, 179, 245, 202, 183, 245, 202, 185, 241, 198, 181, 240, 197, 181, 243, 200, 184, 237, 194, 178, 238, 192, 177, 239, 191, 177, 235, 186, 171, 228, 176, 162, 224, 173, 156, 217, 164, 148, 201, 153, 133, 167, 124, 105, 142, 101, 81, 142, 97, 76, 126, 79, 59, 122, 74, 52, 144, 93, 72, 157, 106, 85, 180, 129, 108, 207, 159, 139, 217, 170, 150, 212, 166, 150, 195, 149, 134, 192, 146, 133, 184, 137, 127, 181, 134, 126, 183, 135, 125, 175, 126, 112, 175, 126, 109, 174, 125, 108, 178, 127, 110, 189, 136, 120, 204, 151, 133, 216, 164, 143, 221, 169, 147, 221, 169, 145, 217, 165, 141, 219, 168, 141, 227, 176, 149, 229, 175, 151, 220, 166, 142, 208, 154, 130, 201, 149, 125, 198, 148, 123, 199, 151, 128, 191, 140, 119, 161, 113, 93, 106, 59, 43, 92, 46, 31, 36, 0, 0, 115, 67, 55, 141, 84, 73, 123, 60, 51, 183, 113, 105, 207, 133, 124, 204, 126, 116, 216, 136, 125, 234, 152, 141, 233, 156, 146, 220, 160, 149, 118, 78, 70, 13, 0, 0, 30, 25, 29, 7, 5, 10, 10, 9, 14, 8, 8, 6, 9, 11, 8, 11, 15, 14, 12, 14, 13, 16, 11, 15, 16, 10, 12, 13, 12, 10, 13, 12, 10, 14, 12, 15, 15, 13, 16, 126, 133, 139, 166, 173, 179, 198, 203, 207, 214, 219, 223, 212, 216, 219, 216, 220, 221, 225, 226, 228, 199, 199, 199, 101, 100, 98, 9, 5, 2, 6, 0, 0, 47, 38, 33, 33, 20, 14, 24, 9, 2, 44, 27, 20, 46, 29, 22, 30, 17, 11, 19, 9, 0, 31, 17, 8, 31, 15, 2, 62, 40, 26, 97, 71, 54, 145, 112, 93, 180, 144, 122, 210, 165, 146, 217, 170, 150, 226, 178, 158, 231, 183, 163, 233, 186, 168, 235, 192, 173, 237, 196, 178, 230, 192, 173, 232, 191, 173, 234, 193, 175, 237, 196, 178, 241, 200, 182, 243, 202, 184, 244, 203, 185, 243, 202, 184, 243, 202, 184, 243, 200, 183, 246, 203, 186, 242, 199, 182, 241, 198, 181, 245, 202, 186, 242, 199, 183, 241, 198, 182, 250, 207, 190, 242, 199, 180, 241, 199, 177, 242, 199, 180, 244, 201, 182, 241, 198, 181, 235, 192, 175, 233, 190, 173, 235, 192, 175, 237, 191, 176, 236, 189, 173, 237, 188, 173, 232, 183, 166, 225, 172, 156, 216, 163, 145, 203, 147, 130, 182, 131, 112, 154, 109, 90, 143, 101, 79, 145, 100, 77, 142, 94, 72, 152, 102, 79, 166, 114, 92, 178, 123, 102, 201, 149, 127, 190, 139, 118, 180, 133, 113, 178, 132, 116, 208, 165, 149, 199, 155, 144, 196, 153, 144, 191, 148, 141, 190, 146, 137, 196, 150, 137, 187, 139, 125, 179, 132, 116, 184, 135, 118, 196, 145, 128, 205, 154, 133, 211, 159, 138, 215, 163, 141, 208, 154, 130, 218, 164, 140, 234, 180, 154, 243, 189, 163, 239, 185, 161, 224, 170, 146, 207, 155, 131, 200, 148, 124, 200, 150, 127, 198, 150, 127, 190, 144, 121, 173, 127, 104, 123, 76, 58, 87, 40, 22, 73, 24, 10, 134, 82, 69, 169, 112, 101, 147, 87, 77, 172, 108, 98, 193, 123, 113, 207, 133, 124, 212, 134, 124, 220, 138, 127, 246, 169, 159, 224, 160, 148, 116, 72, 63, 11, 0, 0, 26, 25, 31, 9, 6, 15, 13, 11, 16, 10, 10, 8, 10, 12, 7, 7, 13, 9, 8, 12, 11, 13, 11, 14, 15, 11, 12, 14, 13, 11, 13, 13, 11, 14, 12, 13, 16, 11, 15, 132, 137, 143, 158, 163, 169, 194, 199, 203, 210, 215, 219, 212, 216, 219, 221, 225, 226, 229, 230, 232, 220, 220, 220, 185, 184, 182, 155, 151, 148, 95, 87, 84, 38, 29, 24, 42, 31, 27, 58, 45, 39, 46, 31, 26, 34, 19, 14, 24, 11, 5, 27, 17, 8, 41, 27, 18, 42, 26, 13, 74, 52, 38, 98, 72, 55, 151, 118, 99, 173, 137, 115, 204, 159, 140, 213, 166, 146, 223, 175, 155, 228, 180, 160, 232, 185, 167, 235, 192, 173, 236, 195, 177, 232, 191, 173, 232, 189, 170, 235, 190, 171, 235, 192, 173, 239, 196, 177, 243, 200, 183, 244, 203, 185, 243, 201, 185, 240, 201, 184, 241, 199, 183, 241, 202, 185, 241, 202, 185, 244, 205, 188, 247, 206, 188, 239, 198, 180, 234, 193, 175, 239, 198, 178, 234, 192, 170, 239, 194, 171, 243, 198, 177, 243, 198, 177, 239, 194, 175, 235, 190, 171, 234, 189, 170, 235, 190, 171, 236, 189, 173, 233, 186, 168, 233, 184, 167, 229, 181, 161, 224, 171, 153, 216, 164, 143, 202, 147, 127, 180, 128, 107, 158, 110, 90, 158, 111, 91, 159, 111, 89, 155, 104, 83, 158, 106, 85, 173, 118, 98, 167, 115, 94, 148, 97, 78, 165, 117, 97, 198, 153, 134, 214, 171, 154, 178, 139, 122, 156, 116, 104, 132, 92, 82, 105, 65, 55, 111, 68, 59, 106, 60, 47, 83, 35, 21, 76, 27, 12, 105, 56, 39, 153, 102, 85, 185, 134, 113, 197, 145, 124, 199, 147, 125, 217, 163, 139, 229, 175, 151, 241, 187, 163, 245, 191, 167, 239, 185, 161, 226, 172, 148, 211, 157, 133, 199, 147, 123, 198, 148, 125, 196, 148, 125, 190, 142, 120, 185, 137, 115, 143, 96, 78, 89, 42, 24, 79, 30, 16, 164, 112, 99, 176, 122, 110, 188, 130, 119, 200, 138, 127, 198, 130, 119, 200, 127, 118, 217, 140, 130, 223, 143, 132, 243, 166, 156, 224, 160, 148, 111, 67, 58, 11, 0, 0, 24, 22, 27, 11, 6, 13, 12, 10, 13, 9, 10, 5, 9, 12, 5, 7, 12, 8, 7, 11, 10, 13, 11, 14, 15, 11, 12, 13, 13, 11, 12, 12, 10, 13, 11, 12, 12, 10, 13, 135, 140, 146, 147, 152, 158, 186, 191, 195, 209, 214, 218, 218, 222, 225, 228, 232, 235, 227, 228, 230, 223, 225, 224, 215, 215, 215, 221, 220, 218, 245, 240, 237, 202, 194, 191, 81, 71, 69, 12, 1, 0, 35, 21, 18, 24, 10, 7, 18, 7, 1, 42, 32, 23, 53, 39, 30, 59, 43, 30, 80, 58, 44, 101, 75, 58, 153, 122, 102, 167, 131, 109, 198, 153, 134, 213, 166, 146, 225, 174, 155, 225, 177, 157, 230, 183, 165, 232, 189, 170, 233, 192, 172, 234, 193, 173, 239, 192, 174, 237, 190, 172, 235, 188, 170, 236, 191, 172, 238, 195, 178, 241, 199, 183, 240, 201, 184, 238, 201, 185, 238, 201, 185, 242, 205, 189, 244, 207, 189, 244, 207, 189, 242, 205, 186, 237, 199, 180, 232, 194, 175, 233, 192, 172, 231, 186, 165, 233, 188, 165, 236, 189, 169, 235, 190, 169, 233, 188, 167, 234, 189, 170, 235, 190, 171, 237, 192, 173, 236, 189, 171, 233, 186, 166, 231, 183, 163, 228, 177, 156, 223, 171, 150, 218, 166, 145, 210, 155, 135, 195, 140, 120, 176, 124, 103, 181, 129, 108, 162, 110, 89, 158, 103, 83, 159, 104, 84, 139, 83, 66, 146, 93, 75, 182, 133, 116, 189, 143, 127, 172, 131, 113, 139, 100, 83, 91, 54, 38, 42, 5, 0, 82, 44, 31, 53, 13, 1, 78, 36, 24, 137, 91, 76, 130, 83, 67, 133, 84, 69, 152, 103, 86, 178, 127, 108, 198, 147, 128, 214, 162, 141, 223, 171, 149, 234, 179, 158, 237, 183, 159, 237, 183, 159, 236, 182, 158, 235, 181, 157, 231, 177, 153, 215, 161, 137, 197, 145, 121, 193, 143, 120, 198, 150, 127, 189, 141, 119, 190, 142, 120, 160, 113, 95, 108, 61, 43, 56, 7, 0, 175, 123, 110, 204, 150, 138, 204, 146, 135, 219, 157, 146, 234, 168, 156, 209, 139, 129, 206, 132, 121, 219, 143, 130, 242, 168, 155, 226, 163, 148, 115, 68, 58, 13, 0, 0, 23, 21, 26, 12, 7, 14, 14, 9, 13, 11, 10, 6, 9, 12, 5, 8, 13, 9, 8, 12, 11, 14, 9, 13, 15, 11, 12, 12, 12, 10, 10, 12, 9, 12, 10, 13, 11, 9, 12, 128, 133, 139, 138, 143, 149, 186, 191, 195, 212, 217, 221, 219, 224, 227, 227, 232, 235, 227, 231, 232, 237, 239, 238, 236, 236, 236, 236, 235, 233, 247, 246, 244, 232, 228, 225, 109, 104, 101, 8, 0, 0, 41, 31, 29, 19, 9, 7, 18, 7, 3, 41, 31, 22, 44, 30, 21, 75, 59, 46, 84, 65, 50, 101, 75, 58, 137, 106, 86, 153, 117, 95, 192, 147, 128, 214, 167, 147, 227, 176, 155, 224, 176, 154, 226, 179, 159, 229, 184, 163, 231, 189, 167, 238, 196, 174, 244, 196, 176, 243, 192, 173, 239, 190, 173, 239, 192, 176, 239, 196, 180, 241, 199, 185, 239, 202, 186, 237, 201, 187, 234, 201, 186, 237, 204, 189, 238, 205, 188, 234, 199, 180, 230, 195, 175, 233, 196, 177, 234, 198, 176, 233, 192, 172, 234, 189, 168, 233, 187, 164, 231, 183, 161, 228, 182, 159, 228, 182, 159, 230, 183, 163, 233, 186, 166, 235, 188, 168, 239, 191, 171, 236, 188, 166, 234, 183, 162, 227, 176, 155, 219, 167, 146, 215, 163, 141, 209, 154, 133, 197, 142, 121, 189, 132, 112, 172, 115, 96, 162, 105, 86, 157, 100, 81, 139, 83, 66, 143, 90, 74, 172, 120, 106, 178, 131, 115, 143, 100, 84, 63, 24, 7, 83, 46, 30, 100, 64, 48, 51, 15, 0, 53, 16, 0, 108, 69, 54, 150, 108, 94, 180, 132, 118, 188, 139, 124, 199, 147, 133, 205, 154, 137, 212, 159, 141, 219, 166, 148, 226, 171, 151, 229, 174, 153, 232, 175, 155, 234, 177, 157, 234, 177, 157, 234, 177, 157, 237, 182, 161, 236, 181, 160, 220, 165, 144, 198, 146, 124, 191, 141, 118, 201, 151, 128, 190, 142, 120, 191, 143, 121, 175, 126, 109, 128, 79, 62, 57, 8, 0, 136, 84, 70, 208, 155, 141, 210, 154, 141, 218, 158, 147, 238, 174, 162, 216, 148, 137, 201, 131, 119, 213, 141, 127, 233, 164, 149, 229, 166, 151, 129, 82, 72, 15, 0, 0, 27, 22, 26, 15, 8, 15, 15, 11, 12, 12, 11, 6, 11, 12, 4, 7, 12, 8, 7, 11, 10, 13, 8, 12, 13, 8, 12, 11, 11, 11, 11, 13, 10, 14, 12, 15, 15, 13, 18, 126, 131, 137, 133, 138, 144, 177, 182, 186, 208, 213, 217, 216, 221, 224, 224, 229, 232, 228, 232, 235, 239, 243, 244, 234, 235, 237, 227, 227, 227, 233, 233, 233, 244, 243, 241, 128, 124, 123, 3, 0, 0, 37, 31, 31, 21, 13, 11, 15, 6, 1, 21, 11, 2, 21, 8, 0, 78, 62, 49, 90, 71, 56, 97, 74, 56, 119, 88, 68, 143, 106, 87, 182, 139, 120, 212, 165, 145, 225, 177, 155, 224, 173, 152, 225, 177, 157, 226, 181, 160, 229, 187, 165, 241, 196, 173, 243, 195, 173, 245, 194, 173, 244, 196, 176, 245, 199, 183, 244, 202, 186, 241, 203, 190, 238, 202, 188, 234, 200, 188, 239, 207, 194, 235, 203, 190, 233, 200, 185, 227, 194, 177, 224, 189, 170, 227, 190, 171, 228, 192, 170, 223, 182, 160, 231, 185, 162, 227, 179, 157, 224, 176, 154, 226, 178, 156, 227, 179, 157, 226, 180, 157, 229, 181, 159, 233, 185, 163, 237, 189, 167, 235, 187, 165, 236, 185, 164, 230, 180, 157, 221, 169, 147, 215, 163, 139, 208, 154, 130, 196, 142, 118, 188, 131, 111, 171, 113, 93, 161, 102, 84, 142, 85, 68, 137, 81, 66, 171, 119, 105, 174, 125, 111, 120, 76, 63, 188, 146, 132, 195, 158, 142, 95, 59, 43, 72, 36, 20, 87, 51, 35, 132, 95, 79, 165, 123, 107, 195, 152, 136, 205, 158, 142, 206, 157, 142, 208, 157, 140, 210, 159, 142, 218, 165, 147, 226, 173, 155, 227, 172, 152, 221, 166, 146, 230, 173, 154, 234, 177, 157, 236, 179, 159, 234, 177, 157, 233, 178, 157, 231, 176, 155, 221, 166, 145, 209, 154, 133, 192, 140, 118, 195, 145, 122, 190, 139, 118, 189, 141, 119, 182, 134, 114, 136, 87, 70, 90, 41, 26, 85, 36, 21, 157, 105, 91, 202, 149, 135, 215, 157, 145, 219, 160, 146, 211, 148, 133, 197, 129, 116, 208, 139, 124, 229, 162, 146, 226, 164, 149, 146, 100, 87, 13, 0, 0, 26, 21, 25, 14, 7, 14, 13, 7, 9, 12, 9, 4, 10, 11, 3, 6, 11, 7, 8, 10, 9, 13, 8, 14, 15, 10, 14, 15, 15, 15, 17, 19, 18, 20, 20, 22, 23, 21, 26, 127, 130, 135, 129, 132, 137, 162, 167, 171, 199, 204, 208, 216, 221, 225, 223, 228, 231, 227, 232, 235, 231, 235, 236, 233, 237, 238, 238, 239, 241, 246, 247, 249, 245, 245, 245, 129, 129, 129, 1, 0, 0, 35, 31, 32, 15, 10, 7, 13, 6, 0, 11, 1, 0, 15, 2, 0, 62, 48, 37, 78, 60, 46, 85, 62, 46, 107, 76, 58, 134, 97, 78, 172, 129, 110, 206, 159, 139, 221, 173, 151, 221, 170, 149, 225, 177, 155, 228, 182, 159, 229, 184, 161, 239, 194, 171, 244, 196, 174, 245, 197, 175, 244, 199, 178, 243, 200, 183, 240, 201, 186, 235, 199, 185, 231, 197, 185, 228, 196, 185, 226, 196, 185, 205, 173, 160, 191, 158, 143, 190, 154, 138, 186, 149, 131, 188, 150, 131, 193, 152, 132, 190, 148, 126, 196, 150, 127, 195, 147, 125, 202, 154, 132, 216, 168, 146, 223, 175, 153, 223, 175, 153, 229, 178, 157, 237, 187, 164, 240, 190, 167, 238, 188, 165, 238, 186, 164, 233, 181, 157, 226, 174, 150, 221, 169, 145, 215, 161, 137, 201, 147, 121, 185, 129, 106, 184, 127, 107, 153, 96, 77, 140, 83, 66, 172, 119, 105, 161, 112, 98, 130, 82, 72, 162, 120, 108, 211, 171, 159, 202, 166, 152, 157, 121, 107, 156, 120, 104, 182, 143, 128, 189, 147, 131, 216, 170, 154, 198, 151, 135, 201, 152, 135, 208, 157, 140, 214, 161, 145, 214, 161, 145, 216, 160, 143, 219, 163, 146, 231, 174, 157, 241, 184, 165, 237, 180, 161, 239, 182, 163, 237, 180, 161, 233, 176, 157, 229, 174, 154, 227, 172, 152, 222, 167, 147, 216, 161, 141, 195, 143, 121, 189, 139, 116, 188, 137, 116, 192, 141, 120, 181, 133, 113, 146, 98, 78, 114, 65, 48, 95, 46, 29, 137, 85, 71, 183, 130, 116, 210, 154, 139, 223, 165, 151, 212, 150, 135, 179, 116, 101, 208, 142, 128, 241, 175, 161, 222, 161, 143, 163, 117, 104, 13, 0, 0, 26, 21, 25, 12, 5, 12, 12, 6, 8, 12, 9, 4, 11, 11, 3, 12, 14, 11, 13, 15, 14, 19, 14, 20, 23, 18, 22, 23, 25, 24, 26, 28, 27, 30, 29, 34, 32, 31, 37, 118, 121, 126, 125, 128, 133, 157, 162, 166, 199, 204, 208, 217, 222, 226, 223, 228, 232, 231, 236, 239, 232, 237, 240, 243, 247, 248, 217, 221, 222, 233, 234, 236, 244, 245, 247, 133, 133, 135, 4, 4, 4, 32, 30, 31, 12, 8, 7, 15, 7, 4, 16, 7, 0, 22, 12, 3, 43, 31, 19, 57, 39, 27, 66, 45, 28, 95, 66, 50, 121, 86, 67, 164, 123, 103, 199, 154, 133, 216, 168, 148, 219, 168, 147, 227, 179, 157, 229, 183, 160, 229, 184, 161, 237, 192, 169, 244, 199, 176, 244, 199, 176, 241, 198, 179, 235, 197, 178, 230, 194, 178, 226, 193, 178, 224, 192, 181, 221, 191, 180, 187, 157, 146, 144, 112, 101, 113, 79, 67, 110, 74, 58, 112, 73, 56, 120, 79, 61, 135, 92, 73, 145, 100, 79, 152, 105, 85, 157, 109, 87, 176, 128, 106, 203, 155, 133, 219, 168, 147, 220, 169, 148, 227, 177, 154, 240, 190, 167, 245, 195, 172, 240, 190, 167, 237, 185, 161, 232, 180, 156, 227, 175, 151, 225, 173, 149, 219, 165, 139, 204, 150, 124, 190, 136, 112, 159, 104, 83, 156, 101, 81, 168, 115, 99, 183, 131, 117, 160, 110, 99, 131, 84, 74, 163, 120, 111, 182, 144, 133, 190, 152, 141, 203, 165, 152, 208, 169, 154, 204, 161, 145, 206, 160, 144, 207, 156, 139, 209, 158, 141, 211, 160, 143, 209, 158, 141, 215, 162, 146, 225, 172, 156, 232, 176, 159, 229, 173, 156, 231, 174, 157, 237, 180, 163, 238, 181, 164, 237, 180, 161, 236, 179, 160, 236, 179, 160, 236, 179, 160, 231, 176, 156, 223, 168, 148, 216, 161, 141, 200, 148, 126, 190, 138, 116, 191, 139, 118, 197, 146, 125, 181, 130, 111, 160, 112, 92, 115, 66, 49, 143, 94, 77, 153, 101, 87, 192, 140, 126, 221, 168, 152, 218, 162, 147, 193, 134, 118, 188, 126, 111, 235, 172, 157, 231, 168, 153, 220, 161, 143, 175, 131, 118, 13, 0, 0, 30, 26, 27, 15, 8, 15, 15, 9, 11, 16, 13, 8, 16, 16, 8, 17, 19, 16, 19, 20, 22, 27, 22, 28, 31, 26, 30, 31, 33, 32, 32, 36, 35, 36, 37, 41, 38, 37, 43, 116, 119, 124, 125, 128, 133, 150, 155, 159, 187, 192, 196, 214, 219, 223, 224, 229, 233, 226, 234, 236, 231, 239, 241, 237, 242, 245, 230, 235, 238, 228, 232, 235, 236, 240, 241, 183, 184, 186, 45, 46, 48, 2, 2, 4, 27, 25, 26, 14, 9, 6, 7, 0, 0, 24, 15, 8, 30, 20, 10, 33, 16, 6, 59, 40, 25, 82, 54, 40, 109, 76, 59, 154, 116, 97, 201, 158, 139, 218, 171, 151, 218, 170, 150, 221, 173, 151, 233, 187, 164, 226, 181, 158, 231, 189, 165, 235, 195, 170, 236, 198, 175, 228, 192, 170, 231, 196, 177, 220, 187, 170, 200, 168, 153, 177, 147, 136, 143, 113, 102, 97, 65, 54, 98, 66, 55, 99, 63, 51, 90, 52, 39, 95, 53, 39, 88, 42, 26, 102, 55, 37, 124, 77, 57, 144, 96, 76, 155, 107, 87, 169, 121, 101, 186, 138, 118, 209, 158, 137, 209, 158, 137, 231, 179, 157, 230, 178, 156, 240, 188, 166, 245, 193, 171, 247, 193, 169, 242, 188, 164, 237, 183, 159, 232, 178, 154, 220, 166, 142, 206, 152, 128, 183, 131, 107, 162, 110, 88, 155, 104, 83, 183, 132, 115, 183, 134, 120, 142, 94, 82, 160, 116, 105, 185, 142, 133, 203, 163, 155, 202, 162, 152, 203, 161, 149, 206, 162, 149, 208, 161, 145, 208, 157, 140, 209, 152, 135, 209, 152, 135, 208, 155, 137, 215, 162, 144, 225, 169, 152, 229, 173, 156, 234, 176, 162, 238, 180, 166, 241, 182, 168, 242, 183, 169, 240, 181, 167, 239, 180, 164, 237, 178, 162, 234, 177, 160, 230, 173, 156, 225, 168, 151, 218, 162, 145, 214, 159, 139, 202, 147, 126, 191, 139, 117, 190, 138, 117, 187, 136, 115, 185, 134, 115, 163, 112, 93, 115, 67, 47, 143, 95, 75, 177, 126, 109, 217, 166, 149, 208, 155, 139, 200, 144, 129, 220, 163, 146, 223, 164, 148, 234, 175, 159, 208, 149, 133, 227, 168, 150, 186, 142, 129, 16, 0, 0, 25, 23, 24, 12, 7, 13, 24, 20, 21, 26, 23, 18, 24, 23, 18, 27, 29, 28, 30, 31, 33, 36, 31, 37, 38, 33, 39, 35, 36, 38, 37, 41, 42, 45, 46, 50, 50, 51, 56, 115, 118, 123, 121, 124, 129, 143, 148, 152, 178, 183, 187, 207, 212, 216, 221, 226, 230, 225, 233, 235, 230, 238, 240, 233, 238, 241, 235, 240, 243, 221, 225, 228, 228, 232, 235, 243, 244, 246, 180, 181, 183, 87, 87, 89, 1, 0, 0, 19, 14, 11, 15, 7, 4, 6, 0, 0, 10, 1, 0, 33, 19, 8, 56, 38, 24, 86, 60, 47, 91, 59, 44, 142, 105, 87, 201, 158, 141, 219, 172, 154, 215, 167, 147, 221, 173, 151, 227, 181, 158, 227, 182, 159, 236, 194, 170, 234, 196, 173, 215, 180, 158, 206, 171, 151, 204, 171, 152, 176, 143, 126, 132, 100, 85, 115, 83, 70, 112, 80, 69, 107, 75, 64, 104, 70, 58, 106, 68, 57, 112, 72, 60, 127, 83, 70, 127, 81, 66, 135, 88, 72, 149, 100, 83, 157, 108, 91, 160, 112, 92, 171, 122, 105, 183, 135, 115, 205, 154, 135, 208, 157, 136, 225, 173, 152, 228, 176, 154, 242, 190, 168, 245, 193, 171, 247, 193, 169, 242, 188, 164, 239, 185, 161, 234, 180, 156, 221, 167, 143, 204, 152, 128, 189, 139, 114, 183, 135, 112, 177, 129, 107, 195, 146, 129, 200, 152, 138, 185, 139, 126, 200, 156, 145, 206, 163, 154, 195, 152, 143, 192, 149, 140, 192, 148, 137, 196, 148, 136, 200, 147, 133, 203, 146, 129, 207, 146, 128, 209, 148, 130, 221, 164, 147, 224, 168, 151, 228, 172, 155, 230, 174, 157, 234, 176, 162, 237, 179, 165, 240, 181, 167, 239, 180, 166, 239, 180, 166, 238, 179, 165, 236, 177, 163, 234, 175, 159, 230, 173, 156, 225, 168, 151, 217, 161, 144, 213, 157, 140, 204, 149, 129, 194, 139, 118, 188, 136, 115, 185, 133, 112, 181, 130, 111, 161, 110, 91, 116, 65, 46, 138, 90, 70, 203, 152, 135, 198, 147, 130, 167, 114, 98, 206, 150, 135, 236, 179, 162, 241, 184, 167, 228, 169, 153, 218, 159, 143, 236, 179, 162, 179, 137, 123, 16, 1, 0, 21, 19, 22, 31, 29, 34, 29, 24, 28, 24, 20, 17, 32, 31, 26, 31, 33, 32, 34, 35, 39, 43, 38, 45, 47, 42, 48, 47, 48, 50, 50, 54, 55, 58, 59, 63, 63, 64, 69, 115, 118, 125, 118, 121, 128, 134, 139, 143, 166, 171, 175, 198, 203, 207, 217, 222, 226, 223, 231, 233, 228, 236, 238, 232, 237, 240, 243, 248, 251, 228, 234, 234, 223, 227, 228, 248, 249, 251, 243, 244, 246, 190, 191, 193, 104, 104, 104, 39, 35, 34, 15, 10, 6, 19, 14, 8, 13, 6, 0, 23, 10, 1, 48, 32, 19, 66, 44, 31, 92, 63, 49, 127, 91, 75, 196, 155, 137, 220, 175, 156, 213, 166, 146, 219, 173, 150, 220, 174, 151, 229, 185, 160, 231, 189, 165, 201, 165, 143, 189, 157, 136, 184, 152, 131, 161, 128, 109, 126, 93, 76, 105, 72, 57, 105, 72, 57, 118, 84, 72, 125, 89, 77, 130, 92, 81, 142, 102, 92, 160, 118, 106, 170, 126, 113, 173, 127, 114, 172, 124, 110, 173, 125, 111, 177, 130, 114, 168, 121, 103, 171, 124, 108, 170, 123, 105, 182, 134, 114, 197, 146, 125, 218, 166, 145, 236, 184, 163, 245, 190, 169, 248, 193, 172, 247, 192, 171, 243, 188, 167, 241, 186, 165, 237, 182, 161, 223, 168, 147, 205, 153, 131, 189, 141, 118, 197, 151, 128, 195, 148, 128, 211, 164, 146, 215, 168, 152, 210, 162, 150, 206, 160, 147, 191, 147, 136, 195, 151, 140, 197, 151, 138, 200, 152, 140, 205, 156, 142, 215, 159, 144, 220, 161, 145, 228, 165, 148, 232, 169, 152, 229, 170, 152, 229, 172, 153, 230, 173, 156, 231, 174, 157, 235, 176, 162, 239, 180, 166, 242, 180, 167, 241, 179, 166, 240, 178, 167, 238, 176, 163, 234, 175, 161, 232, 173, 159, 228, 170, 156, 223, 165, 151, 216, 158, 144, 212, 155, 138, 205, 150, 130, 195, 140, 120, 187, 135, 114, 183, 131, 110, 180, 128, 107, 162, 111, 90, 123, 72, 53, 145, 94, 75, 219, 166, 148, 202, 149, 131, 179, 123, 106, 223, 167, 150, 245, 188, 171, 247, 190, 173, 228, 169, 153, 233, 176, 159, 235, 179, 162, 178, 138, 126, 10, 0, 0, 24, 23, 28, 42, 39, 46, 31, 29, 34, 30, 29, 25, 40, 41, 36, 41, 42, 44, 45, 46, 50, 56, 51, 58, 62, 57, 63, 62, 63, 65, 65, 69, 70, 72, 73, 78, 76, 76, 84, 117, 120, 127, 117, 120, 127, 128, 133, 137, 156, 161, 165, 189, 194, 198, 212, 217, 221, 221, 229, 231, 224, 232, 234, 233, 238, 241, 235, 241, 241, 229, 235, 235, 229, 233, 234, 240, 241, 243, 249, 250, 252, 242, 243, 245, 206, 206, 206, 72, 71, 69, 3, 0, 0, 23, 20, 15, 10, 5, 0, 25, 15, 6, 26, 12, 1, 61, 41, 30, 70, 44, 29, 111, 75, 61, 176, 137, 120, 217, 171, 155, 214, 167, 149, 216, 169, 149, 219, 174, 151, 234, 189, 166, 209, 169, 144, 168, 131, 112, 163, 128, 109, 161, 126, 107, 134, 98, 82, 123, 87, 71, 146, 110, 94, 159, 123, 107, 169, 133, 119, 165, 127, 114, 185, 145, 133, 195, 155, 143, 196, 154, 142, 191, 147, 136, 189, 145, 134, 167, 123, 112, 140, 96, 83, 130, 87, 71, 132, 86, 71, 152, 106, 91, 159, 112, 96, 168, 121, 103, 184, 136, 116, 198, 147, 128, 220, 168, 147, 241, 186, 166, 247, 192, 171, 248, 193, 173, 245, 190, 169, 242, 187, 167, 238, 183, 162, 226, 171, 151, 210, 158, 137, 201, 153, 131, 199, 153, 130, 189, 142, 122, 208, 159, 142, 212, 163, 148, 218, 169, 155, 217, 169, 155, 216, 168, 154, 217, 169, 155, 218, 170, 156, 221, 172, 158, 226, 174, 160, 229, 173, 158, 230, 171, 155, 232, 169, 152, 234, 171, 154, 229, 170, 152, 229, 172, 153, 230, 173, 156, 231, 174, 157, 237, 178, 164, 242, 183, 169, 245, 183, 170, 243, 181, 168, 241, 179, 168, 238, 176, 165, 232, 172, 161, 229, 170, 156, 225, 167, 153, 220, 162, 148, 213, 155, 141, 208, 151, 134, 204, 148, 131, 197, 142, 122, 188, 136, 115, 184, 132, 111, 180, 128, 107, 170, 118, 97, 142, 91, 72, 163, 112, 93, 209, 156, 138, 221, 168, 150, 228, 172, 155, 234, 178, 161, 243, 186, 169, 244, 187, 170, 241, 182, 166, 241, 184, 167, 226, 175, 158, 173, 137, 125, 7, 0, 0, 38, 39, 44, 38, 37, 45, 38, 35, 42, 49, 48, 46, 49, 50, 45, 56, 57, 59, 59, 60, 64, 69, 64, 71, 74, 69, 75, 73, 74, 76, 73, 77, 78, 77, 78, 83, 78, 78, 86, 116, 121, 127, 115, 120, 126, 123, 128, 134, 148, 153, 159, 180, 185, 189, 207, 212, 216, 219, 227, 229, 223, 231, 233, 230, 236, 236, 233, 239, 239, 232, 236, 237, 228, 232, 231, 231, 233, 232, 249, 251, 250, 249, 249, 249, 220, 220, 218, 157, 157, 157, 1, 0, 0, 43, 42, 38, 5, 2, 0, 16, 7, 0, 22, 9, 0, 49, 31, 21, 73, 50, 36, 97, 63, 51, 151, 114, 98, 207, 164, 147, 215, 170, 151, 212, 167, 146, 221, 176, 153, 228, 183, 160, 175, 134, 112, 140, 103, 85, 122, 85, 69, 123, 86, 70, 126, 89, 73, 144, 105, 90, 174, 135, 120, 189, 150, 135, 202, 163, 148, 215, 176, 161, 215, 175, 163, 211, 171, 159, 198, 158, 146, 176, 136, 124, 150, 110, 100, 141, 101, 91, 146, 106, 96, 155, 115, 103, 151, 109, 95, 158, 114, 101, 159, 113, 98, 166, 119, 103, 187, 138, 121, 197, 146, 129, 216, 163, 145, 235, 179, 162, 244, 189, 169, 250, 193, 176, 247, 190, 171, 243, 186, 169, 239, 182, 163, 230, 173, 156, 219, 163, 146, 207, 156, 137, 200, 152, 132, 192, 141, 124, 207, 156, 139, 210, 157, 141, 218, 165, 151, 221, 169, 155, 227, 175, 161, 215, 166, 151, 215, 166, 151, 217, 168, 153, 222, 171, 154, 224, 168, 151, 223, 166, 149, 225, 164, 146, 227, 166, 148, 232, 173, 155, 233, 174, 156, 234, 175, 159, 236, 177, 161, 242, 180, 167, 245, 183, 170, 244, 182, 171, 241, 179, 168, 241, 178, 169, 237, 175, 164, 230, 170, 159, 226, 166, 155, 223, 163, 152, 218, 158, 147, 210, 152, 138, 205, 148, 131, 201, 145, 128, 199, 144, 124, 193, 138, 118, 188, 133, 113, 181, 129, 108, 177, 125, 104, 162, 110, 89, 186, 134, 113, 205, 150, 130, 229, 174, 154, 242, 185, 168, 235, 178, 161, 237, 180, 163, 244, 187, 170, 248, 189, 173, 239, 183, 168, 226, 177, 162, 144, 110, 100, 18, 9, 10, 47, 52, 58, 42, 42, 52, 52, 51, 59, 59, 59, 59, 59, 61, 58, 64, 68, 71, 69, 70, 75, 76, 70, 80, 78, 73, 80, 75, 76, 80, 72, 76, 79, 72, 73, 78, 71, 71, 79, 114, 119, 125, 113, 118, 124, 119, 124, 130, 138, 143, 149, 169, 174, 178, 199, 204, 208, 215, 223, 225, 222, 230, 232, 224, 230, 230, 234, 240, 240, 235, 239, 238, 227, 231, 230, 222, 224, 223, 245, 247, 244, 251, 251, 249, 236, 236, 234, 165, 165, 165, 3, 3, 3, 1, 0, 0, 23, 20, 15, 21, 14, 8, 35, 25, 16, 28, 11, 1, 64, 40, 28, 89, 57, 44, 130, 93, 77, 193, 151, 135, 213, 170, 153, 209, 164, 145, 218, 173, 152, 201, 159, 135, 142, 101, 81, 113, 74, 59, 113, 73, 61, 131, 89, 77, 147, 105, 93, 162, 118, 105, 182, 139, 123, 200, 157, 141, 214, 171, 155, 216, 174, 158, 209, 167, 153, 192, 153, 138, 172, 134, 121, 179, 143, 131, 162, 128, 118, 151, 117, 107, 145, 111, 101, 138, 100, 89, 140, 100, 88, 146, 104, 92, 161, 117, 104, 182, 136, 121, 209, 162, 146, 210, 161, 146, 211, 160, 143, 229, 173, 158, 240, 184, 167, 249, 192, 175, 247, 190, 173, 242, 185, 168, 239, 182, 165, 232, 175, 158, 223, 167, 150, 206, 153, 135, 206, 155, 136, 205, 152, 136, 209, 153, 138, 210, 152, 138, 213, 157, 142, 211, 155, 140, 206, 153, 137, 209, 158, 141, 210, 159, 140, 213, 162, 145, 216, 165, 146, 220, 167, 149, 224, 168, 151, 230, 173, 154, 236, 177, 159, 239, 180, 162, 241, 182, 164, 242, 183, 167, 241, 182, 166, 243, 181, 168, 243, 181, 168, 241, 179, 168, 237, 175, 164, 240, 177, 168, 236, 173, 164, 229, 169, 158, 226, 166, 155, 223, 163, 152, 218, 158, 147, 209, 151, 137, 203, 145, 131, 199, 143, 126, 200, 145, 125, 194, 139, 119, 190, 135, 115, 180, 128, 107, 180, 128, 107, 175, 123, 102, 197, 145, 124, 213, 158, 138, 227, 172, 152, 228, 171, 154, 239, 182, 165, 232, 175, 158, 232, 175, 158, 236, 177, 161, 235, 179, 164, 215, 167, 153, 99, 69, 59, 48, 42, 44, 50, 57, 65, 57, 59, 71, 67, 67, 75, 60, 60, 60, 67, 69, 66, 65, 69, 72, 66, 69, 74, 74, 68, 78, 74, 69, 76, 70, 71, 75, 66, 70, 73, 65, 66, 71, 63, 63, 71, 114, 119, 125, 113, 118, 124, 115, 120, 126, 128, 133, 139, 154, 159, 163, 186, 191, 195, 209, 214, 217, 219, 224, 227, 219, 225, 225, 225, 231, 231, 228, 232, 231, 233, 237, 236, 232, 234, 231, 251, 251, 249, 253, 252, 250, 249, 249, 247, 242, 242, 242, 153, 155, 154, 13, 13, 11, 13, 12, 8, 20, 15, 11, 21, 12, 5, 43, 26, 18, 39, 17, 6, 73, 43, 32, 106, 70, 56, 171, 132, 117, 206, 165, 147, 209, 166, 147, 211, 169, 147, 173, 131, 107, 136, 93, 74, 135, 93, 81, 155, 112, 103, 174, 130, 121, 187, 140, 130, 192, 144, 132, 204, 156, 142, 217, 171, 156, 214, 168, 152, 199, 156, 139, 182, 140, 124, 176, 137, 122, 158, 122, 108, 140, 108, 95, 63, 33, 22, 57, 29, 18, 100, 70, 60, 170, 133, 124, 169, 129, 119, 148, 108, 96, 153, 111, 97, 171, 125, 112, 207, 159, 145, 221, 172, 157, 219, 168, 151, 226, 170, 155, 237, 181, 166, 246, 188, 174, 245, 187, 173, 242, 184, 170, 240, 182, 168, 233, 175, 161, 224, 166, 152, 217, 161, 146, 213, 157, 142, 212, 154, 140, 205, 147, 133, 211, 152, 136, 218, 159, 143, 224, 165, 149, 226, 169, 152, 226, 173, 155, 225, 174, 153, 226, 175, 156, 227, 176, 155, 227, 176, 155, 228, 176, 155, 233, 178, 158, 238, 183, 163, 243, 185, 165, 245, 187, 167, 248, 187, 169, 245, 183, 168, 243, 181, 168, 241, 179, 166, 239, 175, 165, 237, 173, 163, 236, 173, 164, 234, 171, 162, 231, 168, 159, 231, 168, 159, 227, 167, 156, 221, 161, 150, 210, 152, 140, 202, 144, 130, 197, 141, 124, 200, 145, 125, 194, 139, 119, 191, 136, 116, 183, 128, 108, 185, 130, 110, 183, 128, 108, 200, 145, 125, 220, 165, 145, 229, 174, 154, 227, 170, 153, 237, 180, 163, 231, 172, 156, 213, 154, 138, 226, 164, 149, 217, 161, 146, 161, 113, 99, 77, 48, 40, 67, 62, 66, 52, 61, 70, 62, 66, 77, 65, 68, 77, 60, 61, 63, 65, 67, 66, 61, 65, 68, 61, 64, 69, 67, 61, 71, 67, 62, 69, 62, 63, 67, 59, 63, 66, 59, 60, 65, 57, 57, 65, 116, 119, 126, 114, 119, 125, 115, 118, 125, 121, 126, 132, 144, 149, 153, 175, 180, 184, 201, 206, 210, 213, 218, 221, 216, 221, 224, 228, 234, 234, 233, 237, 238, 231, 235, 234, 223, 225, 224, 240, 240, 238, 247, 247, 245, 255, 255, 253, 253, 255, 254, 249, 251, 250, 173, 173, 173, 0, 0, 0, 24, 25, 20, 30, 27, 22, 43, 30, 24, 40, 20, 13, 51, 21, 11, 82, 48, 36, 149, 112, 96, 196, 157, 140, 214, 171, 152, 212, 169, 150, 158, 120, 97, 148, 110, 91, 182, 140, 126, 188, 144, 133, 188, 141, 131, 204, 156, 144, 216, 167, 153, 218, 169, 154, 215, 168, 152, 189, 143, 127, 176, 134, 118, 177, 138, 121, 134, 98, 82, 55, 22, 7, 82, 50, 37, 95, 65, 54, 113, 83, 72, 111, 79, 68, 194, 156, 147, 197, 157, 147, 170, 128, 116, 165, 123, 109, 173, 127, 114, 206, 158, 144, 228, 179, 164, 225, 173, 159, 223, 170, 154, 235, 179, 164, 244, 186, 172, 244, 186, 172, 242, 184, 170, 241, 183, 169, 233, 175, 161, 223, 165, 151, 220, 162, 148, 210, 152, 138, 215, 157, 143, 215, 156, 142, 224, 165, 149, 219, 160, 144, 223, 164, 148, 227, 170, 153, 228, 173, 153, 228, 176, 155, 231, 180, 159, 234, 183, 162, 235, 183, 162, 233, 181, 160, 237, 182, 162, 240, 185, 165, 240, 183, 164, 244, 185, 167, 245, 186, 170, 244, 182, 167, 241, 179, 166, 240, 178, 165, 240, 176, 166, 238, 174, 164, 233, 170, 161, 232, 169, 160, 232, 169, 160, 234, 171, 162, 231, 171, 160, 224, 164, 153, 212, 154, 142, 202, 144, 132, 196, 140, 123, 199, 144, 124, 193, 138, 118, 192, 137, 117, 184, 129, 109, 188, 133, 112, 186, 131, 110, 199, 144, 123, 218, 163, 143, 227, 175, 154, 230, 177, 161, 219, 166, 150, 229, 176, 162, 199, 145, 133, 221, 167, 155, 186, 138, 128, 92, 55, 47, 73, 52, 49, 68, 66, 71, 58, 65, 73, 55, 57, 69, 59, 59, 67, 65, 66, 68, 58, 60, 59, 57, 61, 64, 59, 60, 65, 60, 57, 64, 60, 57, 64, 57, 58, 62, 56, 57, 61, 55, 56, 61, 53, 54, 59, 113, 113, 121, 117, 120, 127, 118, 118, 126, 115, 118, 125, 131, 134, 141, 159, 162, 169, 187, 192, 198, 208, 213, 217, 214, 219, 223, 217, 222, 225, 228, 232, 233, 232, 236, 235, 229, 231, 230, 231, 233, 230, 245, 247, 244, 254, 255, 253, 251, 255, 253, 243, 249, 245, 215, 215, 215, 1, 1, 3, 9, 18, 17, 15, 19, 18, 32, 23, 24, 29, 9, 8, 47, 18, 14, 53, 20, 11, 122, 89, 74, 185, 148, 130, 202, 159, 143, 201, 160, 142, 161, 130, 110, 161, 133, 112, 191, 154, 136, 200, 158, 142, 190, 142, 128, 205, 156, 141, 213, 160, 146, 203, 151, 137, 179, 132, 116, 168, 125, 109, 173, 136, 120, 84, 51, 36, 70, 41, 27, 120, 91, 77, 102, 70, 57, 63, 27, 13, 79, 39, 27, 106, 64, 52, 171, 127, 116, 179, 135, 124, 178, 134, 121, 187, 141, 128, 215, 169, 156, 233, 185, 171, 228, 179, 164, 221, 169, 155, 221, 168, 154, 237, 184, 170, 243, 187, 172, 241, 185, 170, 244, 187, 170, 239, 182, 165, 228, 171, 154, 227, 170, 153, 221, 164, 147, 219, 162, 145, 215, 158, 141, 215, 158, 141, 217, 160, 143, 220, 164, 147, 223, 167, 150, 225, 169, 152, 226, 173, 155, 227, 174, 156, 229, 176, 158, 231, 178, 160, 233, 177, 160, 235, 179, 162, 239, 182, 165, 242, 185, 168, 240, 182, 168, 244, 186, 172, 245, 187, 173, 243, 184, 170, 241, 181, 170, 240, 180, 169, 241, 179, 168, 238, 176, 165, 237, 175, 164, 237, 175, 164, 237, 175, 164, 237, 175, 164, 235, 175, 165, 228, 168, 158, 213, 155, 144, 199, 143, 130, 194, 141, 125, 191, 138, 120, 188, 136, 115, 185, 133, 112, 186, 131, 110, 187, 133, 109, 189, 135, 111, 190, 136, 112, 199, 147, 125, 212, 161, 142, 209, 162, 146, 201, 155, 142, 187, 143, 134, 154, 111, 105, 186, 145, 143, 153, 119, 118, 31, 13, 13, 66, 57, 60, 68, 67, 73, 52, 52, 60, 58, 58, 66, 59, 58, 64, 51, 50, 55, 58, 58, 60, 56, 57, 61, 56, 55, 60, 55, 54, 59, 53, 52, 57, 50, 50, 52, 46, 46, 48, 43, 42, 47, 41, 40, 45, 113, 113, 121, 118, 118, 126, 116, 116, 124, 115, 115, 123, 125, 128, 135, 147, 150, 157, 175, 180, 186, 200, 205, 211, 210, 215, 219, 214, 219, 222, 225, 229, 232, 232, 236, 237, 231, 233, 232, 231, 233, 232, 242, 244, 241, 251, 255, 252, 243, 253, 245, 251, 255, 253, 242, 238, 239, 96, 91, 95, 0, 2, 3, 17, 21, 22, 15, 9, 11, 33, 19, 18, 40, 16, 12, 59, 30, 22, 94, 65, 51, 172, 136, 120, 198, 154, 141, 206, 164, 148, 181, 152, 134, 196, 169, 148, 202, 167, 147, 191, 150, 130, 211, 164, 146, 201, 150, 133, 211, 158, 142, 202, 149, 133, 152, 103, 88, 168, 125, 109, 94, 58, 44, 126, 94, 81, 106, 78, 66, 79, 50, 36, 67, 34, 19, 84, 45, 30, 145, 99, 84, 181, 133, 119, 195, 147, 133, 194, 148, 135, 194, 148, 135, 201, 155, 140, 217, 169, 155, 225, 177, 163, 226, 177, 162, 227, 175, 161, 221, 168, 154, 235, 182, 166, 241, 185, 170, 239, 183, 168, 243, 186, 169, 239, 182, 165, 230, 173, 156, 229, 172, 155, 221, 162, 146, 220, 161, 145, 218, 161, 144, 217, 160, 143, 217, 161, 144, 218, 162, 145, 218, 165, 147, 219, 166, 148, 222, 169, 151, 224, 171, 153, 231, 175, 158, 234, 178, 161, 236, 179, 162, 237, 180, 163, 239, 180, 164, 240, 183, 166, 245, 187, 173, 244, 188, 175, 244, 186, 174, 241, 183, 171, 241, 181, 170, 243, 183, 172, 246, 184, 173, 244, 182, 171, 241, 179, 168, 240, 178, 167, 239, 177, 166, 239, 177, 166, 235, 175, 165, 229, 169, 159, 215, 157, 146, 203, 145, 133, 194, 141, 127, 191, 138, 122, 187, 134, 116, 186, 131, 111, 187, 132, 111, 187, 133, 109, 188, 134, 110, 186, 134, 110, 174, 123, 102, 153, 106, 88, 146, 104, 90, 137, 99, 88, 109, 74, 68, 74, 43, 41, 93, 63, 65, 84, 62, 65, 50, 41, 46, 62, 61, 67, 58, 57, 63, 49, 48, 54, 57, 56, 62, 58, 57, 63, 51, 50, 55, 56, 55, 60, 48, 47, 52, 47, 46, 51, 45, 45, 47, 42, 42, 44, 39, 39, 41, 36, 36, 38, 34, 34, 36, 33, 33, 35, 115, 115, 123, 117, 117, 125, 114, 117, 124, 114, 117, 124, 120, 123, 130, 133, 136, 143, 160, 165, 171, 190, 195, 201, 206, 211, 215, 210, 215, 218, 222, 226, 229, 231, 235, 236, 231, 235, 234, 228, 232, 231, 237, 239, 236, 247, 252, 248, 251, 255, 253, 253, 255, 252, 251, 242, 243, 164, 152, 154, 7, 0, 0, 29, 23, 23, 14, 9, 6, 19, 10, 5, 39, 24, 17, 69, 49, 40, 80, 54, 41, 155, 119, 107, 201, 157, 144, 201, 157, 144, 193, 160, 141, 210, 179, 159, 212, 175, 156, 220, 177, 158, 216, 167, 150, 230, 179, 160, 217, 164, 146, 177, 124, 108, 174, 125, 110, 107, 61, 46, 79, 41, 28, 155, 122, 107, 147, 118, 104, 134, 102, 89, 156, 120, 106, 181, 139, 125, 215, 169, 153, 220, 173, 157, 213, 165, 151, 199, 151, 137, 198, 150, 136, 213, 165, 151, 225, 176, 162, 228, 179, 164, 228, 176, 162, 224, 172, 158, 222, 169, 153, 232, 179, 163, 238, 182, 167, 238, 182, 165, 241, 184, 167, 238, 181, 164, 233, 176, 159, 231, 174, 157, 223, 166, 149, 221, 164, 147, 220, 163, 146, 217, 160, 143, 216, 160, 143, 217, 161, 144, 217, 164, 146, 219, 166, 148, 221, 168, 150, 225, 172, 154, 231, 175, 158, 235, 179, 162, 239, 182, 165, 240, 183, 166, 243, 184, 168, 242, 185, 168, 242, 184, 170, 243, 187, 172, 245, 187, 173, 246, 188, 174, 248, 189, 175, 249, 190, 176, 249, 187, 174, 245, 183, 170, 243, 181, 170, 242, 180, 169, 239, 177, 166, 237, 175, 164, 233, 173, 162, 228, 168, 157, 217, 157, 146, 206, 148, 136, 197, 141, 128, 193, 137, 124, 188, 132, 117, 187, 131, 114, 189, 134, 114, 190, 135, 114, 187, 135, 113, 184, 133, 112, 158, 111, 93, 73, 32, 14, 31, 0, 0, 45, 15, 5, 65, 37, 33, 75, 54, 51, 74, 54, 55, 62, 47, 50, 58, 53, 57, 55, 54, 59, 51, 50, 55, 51, 50, 55, 55, 54, 59, 50, 49, 54, 42, 41, 46, 43, 42, 47, 40, 40, 42, 38, 38, 40, 36, 36, 38, 34, 34, 36, 32, 32, 34, 31, 31, 33, 30, 30, 30, 30, 30, 30, 117, 117, 125, 117, 117, 125, 115, 118, 125, 118, 121, 128, 120, 123, 130, 125, 128, 135, 149, 154, 160, 183, 188, 194, 202, 207, 211, 207, 212, 216, 217, 221, 224, 228, 232, 233, 232, 236, 235, 227, 231, 230, 233, 235, 232, 243, 248, 244, 247, 253, 249, 250, 250, 248, 255, 249, 249, 203, 183, 185, 22, 0, 2, 41, 23, 21, 24, 15, 8, 18, 11, 1, 31, 24, 14, 62, 50, 38, 74, 50, 40, 122, 88, 78, 198, 154, 143, 197, 153, 140, 206, 169, 151, 220, 183, 164, 225, 184, 164, 224, 179, 158, 234, 186, 166, 238, 185, 167, 211, 155, 138, 181, 125, 108, 161, 110, 93, 93, 46, 30, 152, 113, 98, 176, 140, 126, 181, 148, 133, 200, 167, 152, 212, 173, 158, 208, 165, 149, 218, 169, 152, 210, 161, 144, 208, 159, 144, 194, 146, 132, 200, 152, 138, 220, 171, 156, 228, 179, 164, 230, 181, 166, 229, 177, 163, 221, 170, 153, 222, 169, 153, 229, 176, 160, 237, 181, 164, 238, 182, 165, 240, 183, 166, 238, 181, 164, 234, 177, 160, 231, 174, 157, 227, 170, 153, 225, 168, 151, 220, 163, 146, 215, 158, 141, 212, 156, 139, 215, 159, 142, 218, 165, 147, 222, 169, 151, 231, 178, 160, 233, 180, 162, 237, 181, 164, 238, 182, 165, 241, 184, 167, 243, 186, 169, 246, 187, 171, 246, 187, 171, 244, 186, 172, 245, 189, 174, 247, 189, 175, 247, 189, 175, 248, 189, 175, 246, 187, 173, 244, 182, 169, 242, 180, 167, 240, 178, 167, 238, 176, 165, 234, 172, 161, 231, 169, 158, 229, 167, 156, 222, 162, 151, 214, 154, 143, 205, 145, 134, 199, 141, 130, 193, 135, 124, 188, 130, 118, 189, 131, 117, 193, 136, 119, 194, 139, 119, 189, 138, 117, 183, 136, 116, 166, 123, 106, 96, 59, 43, 49, 20, 6, 62, 38, 28, 55, 38, 31, 61, 50, 48, 56, 47, 48, 54, 50, 51, 49, 47, 50, 44, 43, 48, 45, 44, 49, 47, 46, 51, 42, 41, 46, 35, 34, 39, 32, 31, 36, 33, 33, 35, 32, 32, 34, 32, 32, 34, 31, 31, 33, 31, 31, 33, 31, 31, 33, 31, 31, 33, 31, 31, 31, 32, 32, 32, 119, 119, 127, 117, 117, 125, 115, 118, 125, 121, 124, 131, 121, 124, 131, 121, 124, 131, 143, 148, 154, 177, 182, 188, 199, 204, 208, 206, 211, 215, 214, 218, 221, 223, 227, 228, 231, 235, 234, 228, 232, 231, 230, 232, 231, 239, 243, 242, 240, 246, 244, 255, 255, 253, 255, 245, 245, 224, 194, 194, 55, 19, 19, 76, 45, 42, 38, 24, 13, 13, 9, 0, 26, 27, 13, 53, 49, 37, 71, 51, 42, 97, 64, 57, 169, 129, 121, 197, 153, 140, 211, 169, 153, 226, 183, 164, 234, 191, 172, 228, 181, 161, 242, 191, 172, 225, 173, 152, 210, 155, 135, 197, 142, 122, 153, 100, 82, 177, 128, 111, 222, 179, 163, 208, 169, 154, 215, 178, 162, 219, 180, 165, 212, 170, 154, 212, 166, 150, 215, 164, 145, 211, 158, 140, 199, 150, 135, 201, 152, 137, 215, 166, 151, 228, 176, 162, 225, 173, 159, 226, 175, 158, 230, 177, 161, 226, 173, 157, 224, 168, 153, 229, 173, 156, 237, 180, 163, 240, 183, 166, 240, 183, 164, 238, 181, 162, 235, 178, 159, 230, 173, 154, 228, 171, 152, 225, 168, 149, 219, 164, 144, 213, 158, 138, 211, 156, 136, 211, 156, 136, 214, 159, 139, 217, 162, 142, 231, 176, 156, 233, 178, 158, 236, 179, 160, 236, 179, 160, 238, 181, 162, 240, 183, 164, 241, 182, 164, 238, 179, 163, 245, 187, 173, 244, 186, 172, 243, 184, 170, 241, 182, 168, 240, 178, 165, 238, 176, 163, 237, 175, 162, 238, 176, 163, 235, 171, 159, 233, 169, 157, 229, 165, 153, 224, 162, 149, 222, 160, 147, 219, 157, 144, 211, 149, 136, 204, 142, 131, 198, 138, 128, 192, 132, 122, 188, 128, 117, 189, 130, 116, 194, 137, 120, 197, 141, 124, 193, 142, 123, 186, 141, 122, 162, 123, 106, 97, 65, 50, 26, 2, 0, 53, 36, 28, 49, 40, 35, 48, 47, 45, 41, 45, 46, 36, 40, 43, 39, 40, 42, 36, 36, 38, 36, 36, 38, 33, 33, 35, 26, 26, 28, 26, 26, 28, 31, 31, 33, 30, 30, 32, 28, 28, 30, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 28, 28, 28, 119, 119, 127, 116, 116, 124, 115, 118, 125, 122, 125, 132, 123, 126, 133, 121, 124, 131, 138, 143, 149, 169, 174, 180, 194, 199, 203, 206, 211, 215, 212, 216, 219, 219, 223, 226, 229, 233, 234, 228, 232, 231, 227, 229, 228, 232, 236, 235, 242, 246, 245, 253, 252, 250, 255, 242, 241, 210, 176, 174, 101, 53, 51, 94, 51, 45, 57, 33, 21, 14, 5, 0, 19, 20, 6, 47, 43, 32, 70, 51, 45, 96, 67, 61, 132, 98, 89, 193, 153, 141, 207, 161, 145, 223, 176, 156, 230, 183, 163, 236, 190, 167, 221, 170, 149, 221, 166, 145, 213, 156, 136, 209, 152, 132, 206, 151, 131, 225, 174, 155, 216, 170, 154, 215, 172, 156, 223, 181, 165, 215, 172, 156, 217, 171, 155, 223, 174, 157, 209, 157, 136, 208, 153, 133, 216, 165, 148, 220, 168, 154, 227, 175, 161, 228, 176, 162, 227, 176, 159, 229, 178, 161, 231, 178, 162, 225, 172, 156, 225, 169, 152, 227, 171, 154, 236, 179, 162, 241, 184, 167, 239, 182, 163, 238, 181, 162, 237, 180, 161, 231, 174, 155, 227, 170, 151, 225, 168, 149, 220, 165, 145, 216, 161, 141, 213, 158, 138, 210, 155, 135, 207, 152, 132, 205, 150, 130, 208, 153, 133, 213, 158, 138, 219, 162, 143, 221, 164, 145, 225, 168, 149, 229, 172, 153, 229, 170, 152, 224, 165, 147, 221, 164, 147, 222, 164, 150, 226, 167, 153, 231, 172, 158, 235, 173, 160, 234, 172, 159, 232, 170, 157, 232, 170, 157, 229, 165, 153, 228, 164, 152, 225, 161, 149, 221, 158, 143, 218, 156, 143, 216, 154, 139, 209, 147, 134, 203, 141, 128, 197, 135, 124, 192, 130, 119, 188, 126, 115, 190, 128, 115, 195, 136, 120, 198, 142, 125, 196, 145, 128, 190, 144, 128, 178, 141, 123, 116, 87, 71, 18, 0, 0, 42, 32, 23, 41, 38, 33, 28, 32, 31, 31, 41, 42, 34, 44, 46, 29, 33, 34, 29, 29, 31, 29, 29, 31, 27, 27, 29, 26, 26, 28, 30, 30, 32, 30, 30, 32, 25, 25, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 27, 27, 27, 26, 26, 26, 24, 24, 24, 23, 23, 23, 120, 120, 128, 116, 116, 124, 115, 118, 125, 122, 125, 132, 124, 129, 135, 120, 125, 131, 134, 139, 145, 159, 164, 170, 188, 193, 199, 206, 211, 215, 211, 216, 219, 214, 219, 222, 228, 232, 233, 230, 234, 235, 225, 227, 226, 225, 229, 228, 233, 237, 238, 247, 246, 244, 255, 250, 248, 214, 179, 175, 132, 79, 73, 90, 35, 28, 68, 32, 18, 33, 11, 0, 11, 1, 0, 35, 25, 16, 68, 47, 44, 97, 69, 66, 102, 73, 65, 172, 138, 126, 208, 162, 146, 222, 174, 154, 226, 178, 158, 222, 174, 152, 225, 173, 152, 219, 164, 143, 214, 157, 137, 230, 173, 153, 234, 179, 159, 222, 169, 151, 223, 174, 159, 231, 184, 168, 234, 188, 172, 226, 179, 163, 220, 171, 154, 217, 166, 147, 217, 162, 142, 227, 172, 152, 233, 180, 164, 233, 180, 164, 228, 175, 159, 228, 175, 159, 235, 182, 166, 238, 185, 169, 233, 177, 160, 227, 171, 154, 226, 170, 153, 225, 169, 152, 234, 177, 158, 240, 183, 164, 238, 181, 162, 239, 182, 163, 240, 183, 164, 234, 177, 158, 229, 174, 154, 226, 171, 151, 222, 167, 147, 221, 166, 146, 219, 164, 144, 215, 160, 140, 209, 154, 134, 204, 149, 129, 199, 144, 124, 203, 148, 128, 205, 148, 129, 206, 149, 130, 210, 151, 133, 216, 157, 139, 216, 157, 139, 212, 153, 135, 198, 139, 123, 196, 137, 121, 199, 140, 124, 210, 151, 135, 222, 160, 145, 227, 165, 150, 226, 164, 149, 225, 163, 148, 225, 162, 147, 225, 162, 147, 223, 160, 145, 220, 157, 140, 219, 156, 141, 216, 153, 136, 210, 147, 132, 204, 141, 126, 196, 134, 121, 192, 130, 117, 188, 126, 113, 190, 128, 113, 194, 135, 119, 199, 142, 123, 198, 147, 128, 194, 149, 130, 181, 144, 126, 131, 102, 86, 24, 4, 0, 36, 26, 17, 38, 39, 33, 22, 31, 28, 14, 28, 29, 11, 22, 24, 23, 27, 28, 26, 26, 26, 27, 27, 27, 28, 28, 28, 30, 30, 30, 29, 29, 29, 26, 26, 26, 23, 23, 23, 27, 27, 27, 26, 26, 26, 25, 25, 25, 24, 24, 24, 22, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19, 19, 122, 122, 130, 118, 118, 126, 115, 118, 125, 122, 125, 132, 125, 130, 136, 121, 126, 132, 131, 136, 142, 153, 158, 164, 184, 189, 195, 205, 210, 216, 211, 216, 220, 212, 217, 220, 228, 232, 235, 230, 234, 235, 222, 223, 225, 219, 223, 224, 233, 238, 241, 245, 245, 245, 255, 245, 239, 238, 208, 200, 159, 104, 97, 121, 61, 51, 73, 24, 10, 36, 0, 0, 33, 9, 0, 43, 23, 16, 74, 48, 47, 87, 62, 58, 76, 54, 43, 134, 106, 92, 200, 157, 140, 213, 162, 143, 229, 181, 161, 239, 188, 167, 237, 185, 163, 234, 179, 158, 244, 188, 165, 235, 178, 158, 241, 186, 166, 237, 181, 164, 242, 191, 174, 231, 179, 165, 220, 171, 156, 225, 176, 159, 223, 172, 155, 225, 173, 152, 241, 184, 164, 236, 179, 159, 231, 175, 158, 234, 181, 165, 231, 178, 162, 232, 179, 163, 239, 186, 170, 236, 183, 167, 231, 175, 158, 233, 177, 160, 227, 171, 154, 223, 167, 150, 232, 175, 156, 239, 182, 163, 237, 180, 161, 239, 182, 163, 242, 185, 166, 235, 180, 160, 234, 179, 159, 230, 175, 155, 225, 170, 150, 223, 168, 148, 223, 168, 148, 222, 167, 147, 217, 162, 142, 212, 157, 137, 215, 160, 140, 214, 159, 139, 209, 152, 133, 201, 144, 125, 201, 142, 124, 206, 147, 129, 207, 148, 130, 204, 145, 127, 199, 140, 124, 187, 128, 112, 178, 119, 103, 183, 124, 108, 200, 138, 123, 212, 150, 135, 220, 158, 143, 223, 161, 146, 222, 159, 144, 223, 160, 145, 222, 159, 142, 220, 157, 140, 219, 156, 139, 216, 153, 136, 210, 147, 130, 204, 141, 124, 198, 136, 121, 193, 131, 116, 190, 128, 113, 191, 130, 112, 195, 136, 118, 200, 143, 123, 201, 149, 128, 198, 151, 131, 187, 149, 130, 151, 122, 106, 45, 23, 10, 26, 16, 6, 26, 25, 20, 23, 29, 27, 19, 31, 31, 20, 31, 33, 25, 29, 30, 28, 28, 28, 26, 26, 26, 24, 24, 24, 24, 24, 24, 20, 20, 20, 23, 23, 23, 32, 32, 32, 22, 22, 22, 21, 21, 21, 19, 19, 19, 17, 17, 17, 16, 16, 16, 16, 16, 16, 15, 15, 15, 15, 15, 15, 120, 123, 128, 118, 121, 126, 112, 115, 122, 118, 121, 128, 129, 134, 140, 129, 134, 140, 128, 135, 141, 141, 148, 154, 176, 183, 189, 197, 204, 210, 206, 211, 215, 211, 216, 219, 220, 224, 227, 224, 228, 229, 225, 229, 230, 217, 221, 222, 224, 229, 232, 245, 249, 248, 251, 248, 239, 249, 227, 216, 199, 149, 138, 168, 104, 94, 142, 80, 69, 89, 35, 25, 31, 0, 0, 28, 0, 0, 60, 29, 27, 77, 52, 47, 86, 70, 57, 103, 82, 65, 179, 137, 121, 207, 159, 139, 230, 182, 162, 235, 184, 163, 243, 191, 169, 241, 189, 167, 242, 187, 166, 244, 189, 168, 244, 187, 168, 246, 190, 173, 233, 177, 162, 233, 180, 166, 235, 182, 168, 237, 184, 168, 238, 182, 167, 237, 180, 161, 234, 177, 157, 232, 175, 155, 232, 176, 159, 235, 179, 162, 238, 182, 165, 239, 183, 166, 239, 183, 166, 237, 181, 164, 233, 177, 160, 231, 175, 158, 224, 168, 151, 228, 172, 155, 233, 177, 160, 238, 182, 165, 240, 184, 167, 241, 185, 168, 240, 184, 167, 239, 183, 166, 240, 184, 167, 231, 178, 160, 231, 178, 160, 231, 178, 160, 228, 172, 155, 226, 170, 153, 223, 167, 150, 213, 157, 140, 213, 156, 139, 216, 159, 142, 218, 159, 143, 216, 157, 141, 174, 115, 99, 190, 131, 115, 202, 143, 127, 200, 141, 125, 204, 145, 129, 208, 149, 133, 204, 145, 129, 189, 130, 114, 176, 117, 101, 178, 119, 103, 193, 134, 118, 207, 148, 132, 217, 156, 138, 217, 156, 138, 226, 165, 147, 216, 155, 137, 214, 151, 134, 223, 160, 143, 214, 151, 133, 204, 143, 125, 196, 137, 119, 192, 133, 115, 189, 131, 111, 192, 134, 112, 200, 139, 118, 202, 144, 122, 201, 146, 125, 194, 146, 124, 194, 151, 132, 166, 133, 114, 72, 46, 33, 24, 10, 0, 32, 27, 21, 21, 23, 20, 18, 27, 26, 19, 27, 29, 26, 27, 29, 26, 26, 26, 25, 25, 25, 23, 23, 23, 22, 22, 22, 21, 21, 21, 21, 21, 21, 20, 20, 20, 16, 16, 16, 17, 17, 17, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 16, 16, 18, 18, 18, 19, 19, 19, 120, 123, 128, 119, 122, 127, 114, 117, 124, 117, 120, 127, 126, 131, 137, 128, 133, 139, 127, 134, 140, 136, 143, 149, 166, 173, 179, 191, 198, 204, 203, 208, 212, 208, 213, 217, 216, 220, 223, 221, 225, 228, 224, 228, 229, 215, 220, 223, 220, 225, 229, 234, 240, 240, 240, 243, 234, 255, 246, 233, 228, 184, 173, 182, 119, 110, 176, 106, 98, 156, 87, 82, 132, 71, 70, 98, 48, 47, 39, 0, 0, 76, 49, 42, 90, 74, 61, 91, 72, 55, 150, 113, 95, 217, 170, 152, 225, 176, 159, 235, 187, 167, 244, 193, 172, 242, 190, 168, 241, 189, 167, 247, 192, 172, 245, 190, 170, 245, 188, 171, 245, 189, 176, 242, 186, 173, 237, 181, 168, 233, 175, 163, 231, 173, 159, 230, 173, 154, 231, 173, 153, 231, 174, 154, 237, 180, 163, 238, 182, 165, 237, 181, 164, 235, 179, 162, 235, 179, 162, 236, 180, 163, 234, 178, 161, 231, 175, 158, 223, 167, 150, 227, 171, 154, 232, 176, 159, 236, 180, 163, 238, 182, 165, 238, 182, 165, 239, 183, 166, 237, 184, 166, 232, 179, 161, 242, 189, 171, 234, 181, 163, 229, 176, 158, 237, 181, 164, 227, 171, 154, 218, 162, 145, 230, 174, 157, 215, 158, 141, 221, 164, 147, 219, 160, 144, 212, 153, 137, 179, 120, 104, 200, 141, 125, 210, 151, 135, 207, 148, 132, 207, 148, 132, 213, 154, 138, 217, 158, 142, 212, 153, 137, 201, 142, 126, 188, 129, 113, 175, 116, 100, 165, 106, 90, 184, 125, 107, 187, 126, 108, 209, 148, 130, 222, 161, 143, 224, 161, 144, 222, 159, 142, 211, 148, 130, 208, 147, 128, 201, 144, 124, 195, 138, 118, 191, 133, 111, 190, 132, 108, 197, 137, 113, 203, 143, 119, 203, 147, 124, 202, 150, 128, 198, 151, 131, 185, 147, 128, 105, 76, 62, 15, 0, 0, 38, 27, 21, 28, 24, 21, 25, 27, 26, 20, 24, 25, 20, 22, 21, 21, 21, 21, 20, 20, 20, 19, 19, 19, 18, 18, 18, 18, 18, 18, 17, 17, 17, 17, 17, 17, 16, 16, 16, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 21, 21, 21, 22, 22, 22, 120, 123, 128, 121, 124, 129, 115, 120, 126, 114, 119, 125, 122, 127, 133, 126, 131, 137, 125, 132, 140, 129, 136, 144, 154, 161, 167, 184, 191, 197, 200, 205, 209, 205, 210, 214, 212, 217, 220, 218, 223, 226, 224, 228, 231, 217, 222, 225, 219, 224, 228, 226, 235, 234, 232, 239, 231, 255, 254, 242, 250, 218, 207, 192, 138, 128, 186, 113, 107, 182, 102, 101, 188, 112, 112, 196, 130, 131, 139, 91, 87, 46, 13, 6, 88, 69, 55, 94, 73, 56, 130, 94, 78, 183, 140, 124, 217, 170, 152, 234, 186, 166, 241, 193, 173, 240, 189, 168, 242, 191, 170, 246, 194, 173, 246, 190, 173, 242, 186, 171, 245, 187, 175, 240, 182, 171, 234, 176, 165, 230, 170, 159, 229, 170, 156, 231, 172, 156, 235, 176, 158, 237, 180, 160, 244, 187, 170, 243, 187, 172, 239, 183, 168, 234, 178, 163, 235, 179, 164, 239, 183, 168, 238, 182, 167, 232, 176, 161, 220, 167, 151, 225, 172, 156, 231, 178, 162, 236, 183, 167, 237, 184, 168, 238, 185, 169, 240, 187, 171, 242, 189, 173, 233, 180, 164, 235, 184, 167, 241, 190, 173, 231, 178, 162, 222, 166, 151, 235, 179, 164, 232, 174, 160, 195, 137, 123, 204, 145, 131, 215, 156, 142, 208, 149, 135, 200, 141, 127, 181, 122, 108, 201, 142, 128, 206, 147, 133, 203, 144, 130, 216, 157, 143, 217, 158, 144, 215, 156, 142, 213, 154, 140, 210, 153, 136, 206, 149, 132, 199, 142, 125, 192, 135, 118, 177, 120, 101, 171, 112, 94, 183, 124, 106, 197, 138, 120, 211, 150, 132, 218, 157, 139, 210, 149, 130, 200, 142, 122, 202, 147, 126, 197, 143, 119, 192, 136, 113, 191, 133, 109, 196, 136, 112, 201, 141, 115, 205, 145, 121, 204, 148, 125, 198, 147, 126, 194, 151, 134, 142, 109, 94, 18, 0, 0, 41, 26, 19, 30, 22, 19, 19, 18, 16, 20, 20, 20, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 19, 18, 18, 20, 20, 20, 22, 21, 21, 23, 22, 22, 24, 24, 24, 26, 26, 26, 28, 28, 28, 30, 120, 123, 128, 122, 125, 130, 117, 122, 128, 114, 119, 125, 118, 123, 129, 124, 129, 135, 125, 132, 140, 124, 131, 139, 142, 149, 155, 176, 183, 189, 195, 200, 206, 201, 206, 210, 208, 213, 217, 215, 220, 223, 223, 227, 230, 218, 222, 225, 216, 221, 225, 222, 231, 230, 231, 241, 233, 244, 244, 234, 255, 236, 225, 214, 170, 161, 181, 112, 107, 162, 81, 80, 187, 103, 103, 236, 160, 160, 217, 159, 155, 98, 55, 46, 46, 16, 5, 92, 66, 51, 93, 60, 45, 155, 116, 101, 209, 163, 147, 230, 183, 165, 235, 186, 169, 236, 188, 168, 241, 193, 173, 243, 192, 173, 242, 189, 173, 241, 185, 172, 236, 178, 167, 234, 176, 165, 234, 174, 164, 233, 173, 163, 234, 174, 163, 237, 178, 162, 241, 182, 164, 242, 185, 166, 243, 187, 170, 243, 187, 172, 239, 183, 168, 235, 179, 164, 239, 183, 168, 245, 189, 174, 239, 183, 168, 226, 173, 157, 218, 165, 149, 224, 171, 155, 232, 179, 163, 237, 184, 168, 238, 185, 169, 238, 187, 170, 240, 187, 171, 240, 189, 172, 241, 190, 173, 236, 185, 168, 227, 176, 159, 231, 180, 163, 239, 183, 168, 224, 168, 153, 199, 141, 127, 187, 129, 115, 197, 138, 124, 199, 140, 126, 183, 124, 110, 173, 114, 100, 169, 110, 96, 191, 132, 118, 201, 142, 128, 209, 150, 136, 216, 157, 143, 218, 159, 145, 219, 160, 146, 214, 156, 142, 211, 153, 139, 209, 152, 135, 208, 151, 134, 207, 150, 133, 197, 140, 123, 195, 138, 119, 192, 133, 115, 186, 127, 109, 197, 136, 118, 220, 159, 141, 222, 161, 142, 205, 147, 127, 198, 143, 122, 196, 142, 118, 196, 138, 116, 197, 137, 113, 199, 137, 114, 200, 138, 113, 201, 139, 116, 199, 141, 119, 195, 140, 120, 193, 146, 128, 168, 130, 117, 47, 19, 8, 36, 17, 10, 32, 21, 17, 13, 7, 7, 20, 18, 19, 15, 15, 15, 16, 16, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 22, 22, 22, 24, 24, 24, 26, 26, 26, 28, 28, 28, 30, 30, 30, 32, 33, 33, 35, 35, 35, 37, 120, 123, 128, 121, 124, 129, 119, 124, 128, 115, 120, 124, 116, 121, 127, 123, 128, 134, 125, 132, 140, 122, 129, 137, 134, 141, 149, 166, 173, 179, 186, 191, 197, 195, 200, 204, 203, 208, 212, 210, 215, 219, 219, 223, 226, 217, 221, 224, 211, 214, 219, 216, 221, 224, 235, 241, 237, 235, 236, 230, 255, 247, 238, 242, 212, 202, 192, 133, 129, 163, 85, 83, 182, 96, 95, 226, 142, 140, 239, 172, 164, 180, 126, 116, 37, 0, 0, 73, 37, 25, 78, 44, 32, 132, 96, 82, 199, 156, 140, 225, 179, 163, 229, 182, 166, 235, 188, 170, 242, 195, 177, 238, 189, 172, 239, 186, 170, 241, 185, 172, 236, 178, 167, 238, 178, 170, 240, 177, 170, 241, 178, 169, 240, 180, 169, 240, 181, 167, 240, 183, 166, 241, 184, 165, 239, 183, 166, 240, 184, 169, 238, 182, 167, 238, 182, 167, 242, 189, 173, 244, 191, 175, 234, 181, 165, 219, 166, 150, 215, 162, 146, 221, 170, 153, 230, 178, 164, 236, 184, 170, 239, 187, 173, 237, 188, 173, 239, 187, 173, 238, 189, 174, 237, 188, 173, 245, 196, 181, 249, 197, 183, 242, 190, 176, 226, 170, 157, 193, 137, 124, 173, 115, 103, 175, 117, 105, 141, 81, 70, 147, 87, 76, 147, 87, 76, 161, 101, 90, 177, 117, 106, 196, 136, 125, 204, 144, 133, 217, 157, 146, 219, 161, 149, 222, 164, 152, 224, 166, 154, 220, 162, 148, 215, 157, 143, 212, 156, 141, 210, 154, 139, 209, 153, 136, 198, 142, 125, 211, 155, 138, 213, 156, 137, 198, 141, 122, 192, 133, 115, 209, 150, 132, 223, 162, 144, 213, 154, 136, 198, 141, 122, 196, 141, 120, 197, 139, 117, 200, 140, 116, 203, 138, 116, 203, 138, 116, 202, 137, 115, 198, 137, 116, 194, 137, 118, 194, 145, 128, 184, 144, 132, 90, 60, 50, 19, 0, 0, 35, 24, 20, 13, 7, 7, 20, 18, 19, 16, 16, 16, 16, 16, 16, 17, 17, 19, 19, 19, 21, 20, 20, 22, 22, 22, 24, 24, 24, 26, 24, 24, 26, 26, 25, 30, 28, 27, 32, 30, 29, 34, 33, 32, 37, 35, 34, 39, 37, 36, 41, 39, 38, 43, 41, 40, 45, 122, 125, 130, 120, 123, 128, 119, 124, 128, 117, 122, 126, 114, 119, 125, 120, 125, 131, 124, 131, 139, 120, 127, 135, 130, 137, 145, 158, 165, 173, 176, 181, 187, 190, 195, 201, 201, 206, 210, 208, 213, 217, 218, 222, 225, 218, 222, 225, 212, 215, 220, 212, 216, 219, 234, 238, 239, 236, 237, 232, 251, 248, 239, 251, 233, 223, 211, 164, 158, 185, 116, 111, 162, 77, 74, 235, 147, 143, 241, 167, 158, 219, 155, 145, 126, 69, 60, 40, 0, 0, 74, 40, 30, 74, 42, 29, 175, 133, 121, 216, 170, 155, 226, 180, 165, 234, 188, 172, 242, 196, 180, 234, 187, 169, 238, 186, 172, 241, 184, 173, 241, 182, 174, 242, 182, 174, 243, 180, 173, 243, 180, 173, 241, 181, 171, 242, 183, 169, 241, 184, 167, 242, 185, 168, 240, 184, 169, 240, 184, 169, 241, 185, 170, 243, 187, 172, 243, 190, 174, 240, 187, 171, 228, 175, 159, 217, 164, 148, 214, 163, 146, 219, 168, 151, 227, 175, 161, 235, 183, 169, 240, 191, 176, 245, 196, 181, 249, 200, 185, 251, 202, 187, 255, 209, 194, 246, 197, 182, 243, 191, 177, 229, 177, 163, 211, 155, 142, 197, 141, 128, 160, 102, 90, 103, 45, 33, 121, 61, 50, 130, 70, 59, 147, 87, 76, 175, 115, 104, 197, 137, 126, 206, 146, 135, 209, 149, 138, 218, 158, 147, 225, 167, 155, 222, 164, 152, 219, 161, 149, 216, 160, 147, 219, 163, 148, 223, 167, 152, 223, 167, 152, 220, 164, 149, 204, 148, 131, 209, 153, 136, 210, 153, 134, 207, 150, 131, 199, 140, 122, 200, 141, 123, 215, 154, 136, 214, 155, 137, 201, 144, 125, 199, 142, 123, 199, 138, 119, 200, 138, 117, 204, 137, 118, 206, 140, 118, 206, 140, 118, 202, 140, 119, 192, 135, 116, 197, 148, 133, 191, 151, 139, 122, 92, 82, 14, 0, 0, 34, 23, 19, 19, 15, 14, 16, 16, 16, 18, 18, 18, 19, 19, 19, 20, 20, 22, 22, 22, 24, 24, 24, 26, 26, 26, 28, 28, 28, 30, 29, 29, 31, 33, 32, 37, 35, 34, 39, 38, 37, 42, 40, 39, 44, 41, 40, 45, 43, 42, 47, 44, 43, 48, 46, 45, 50, 124, 127, 132, 119, 122, 127, 119, 124, 128, 119, 124, 128, 112, 119, 125, 115, 122, 128, 121, 128, 136, 118, 125, 133, 127, 134, 142, 148, 155, 163, 162, 169, 175, 181, 188, 194, 199, 204, 208, 205, 210, 214, 215, 218, 223, 219, 222, 227, 216, 217, 222, 218, 217, 223, 228, 227, 232, 241, 241, 241, 240, 243, 236, 249, 240, 231, 236, 199, 191, 205, 144, 139, 177, 97, 90, 200, 113, 106, 255, 177, 166, 225, 151, 140, 192, 124, 115, 117, 60, 53, 35, 0, 0, 58, 28, 17, 132, 92, 82, 198, 154, 141, 220, 177, 161, 227, 184, 167, 234, 191, 174, 231, 185, 169, 237, 188, 174, 237, 183, 171, 241, 182, 174, 242, 181, 176, 243, 180, 175, 243, 180, 173, 242, 182, 172, 243, 183, 172, 244, 186, 172, 243, 187, 170, 242, 186, 171, 243, 187, 172, 243, 190, 176, 242, 189, 175, 236, 183, 169, 227, 174, 160, 218, 166, 152, 216, 164, 150, 220, 168, 154, 219, 167, 153, 219, 170, 155, 223, 174, 159, 231, 182, 167, 239, 190, 175, 245, 198, 182, 248, 201, 185, 236, 187, 173, 243, 194, 180, 235, 183, 170, 221, 169, 156, 202, 145, 134, 156, 99, 88, 130, 72, 61, 142, 84, 73, 177, 117, 107, 177, 117, 107, 185, 122, 113, 196, 133, 124, 203, 143, 133, 207, 147, 137, 212, 152, 142, 218, 158, 148, 218, 160, 149, 219, 161, 150, 219, 163, 150, 221, 165, 152, 224, 168, 155, 220, 167, 153, 211, 158, 142, 201, 148, 132, 214, 161, 143, 205, 152, 134, 201, 145, 128, 211, 155, 138, 210, 153, 134, 204, 147, 128, 218, 159, 141, 224, 165, 147, 204, 145, 129, 200, 141, 123, 199, 138, 120, 200, 137, 119, 206, 139, 120, 209, 142, 123, 208, 141, 122, 204, 141, 123, 192, 135, 118, 193, 144, 129, 188, 150, 137, 143, 115, 104, 23, 6, 0, 27, 17, 15, 23, 22, 20, 18, 20, 19, 23, 23, 25, 24, 24, 26, 26, 26, 28, 28, 28, 30, 31, 31, 33, 33, 33, 35, 35, 34, 39, 36, 35, 40, 40, 39, 44, 42, 41, 46, 44, 43, 49, 45, 44, 50, 46, 45, 51, 47, 46, 52, 48, 47, 53, 49, 48, 54, 126, 129, 134, 118, 121, 126, 119, 124, 128, 120, 125, 129, 111, 118, 124, 113, 120, 126, 119, 126, 134, 116, 123, 131, 121, 128, 136, 137, 144, 152, 150, 157, 163, 173, 180, 186, 193, 198, 202, 199, 204, 208, 209, 212, 217, 215, 218, 223, 214, 214, 222, 221, 222, 227, 220, 219, 224, 245, 245, 247, 238, 245, 238, 255, 252, 245, 255, 235, 227, 213, 168, 162, 195, 128, 120, 211, 132, 125, 239, 159, 152, 227, 147, 140, 227, 148, 143, 192, 125, 117, 126, 82, 71, 62, 24, 11, 99, 55, 44, 183, 137, 124, 216, 170, 155, 223, 177, 162, 230, 184, 169, 231, 183, 169, 241, 189, 176, 236, 182, 172, 240, 181, 175, 241, 182, 176, 243, 182, 177, 243, 182, 177, 243, 184, 176, 242, 184, 173, 241, 185, 170, 241, 185, 170, 242, 186, 171, 243, 185, 171, 243, 187, 174, 240, 184, 171, 227, 171, 158, 211, 158, 144, 209, 156, 142, 215, 162, 148, 227, 174, 160, 219, 167, 153, 212, 160, 146, 209, 157, 143, 212, 160, 146, 219, 167, 153, 223, 174, 159, 226, 177, 162, 231, 177, 165, 222, 168, 156, 218, 164, 152, 204, 150, 138, 173, 116, 105, 157, 100, 89, 173, 116, 105, 194, 137, 126, 178, 120, 109, 184, 126, 115, 200, 140, 130, 210, 150, 140, 213, 153, 143, 212, 152, 142, 211, 151, 141, 204, 146, 135, 218, 164, 152, 220, 168, 155, 221, 169, 155, 220, 168, 154, 219, 167, 153, 217, 165, 151, 213, 161, 147, 207, 156, 139, 200, 149, 132, 197, 146, 127, 196, 143, 125, 212, 156, 139, 210, 153, 134, 202, 145, 126, 222, 163, 145, 234, 173, 155, 204, 143, 125, 201, 140, 122, 198, 137, 119, 202, 139, 121, 208, 143, 123, 210, 145, 125, 207, 142, 124, 202, 139, 121, 196, 137, 121, 190, 138, 124, 190, 148, 136, 162, 129, 122, 52, 33, 27, 22, 14, 11, 25, 25, 25, 24, 28, 29, 28, 29, 31, 30, 30, 32, 32, 32, 34, 34, 34, 36, 37, 37, 39, 39, 39, 41, 42, 41, 46, 43, 42, 47, 45, 44, 49, 46, 45, 50, 48, 47, 53, 49, 48, 54, 49, 48, 54, 49, 48, 54, 50, 49, 55, 50, 49, 55, 123, 128, 134, 121, 126, 132, 120, 125, 131, 119, 124, 130, 116, 121, 127, 114, 119, 125, 117, 122, 128, 121, 126, 132, 122, 127, 133, 134, 139, 145, 149, 154, 160, 166, 171, 177, 183, 188, 194, 193, 198, 204, 202, 207, 213, 214, 219, 225, 220, 224, 233, 209, 214, 220, 222, 225, 230, 238, 242, 243, 236, 242, 238, 245, 248, 241, 255, 248, 240, 250, 227, 219, 208, 165, 159, 193, 132, 131, 224, 146, 146, 248, 162, 163, 227, 142, 139, 217, 140, 132, 203, 141, 126, 161, 108, 90, 96, 44, 30, 145, 93, 79, 214, 162, 149, 223, 171, 158, 227, 175, 162, 224, 172, 161, 242, 187, 180, 231, 176, 169, 240, 182, 178, 241, 183, 179, 241, 184, 177, 242, 185, 178, 239, 185, 175, 239, 185, 173, 242, 188, 176, 245, 192, 178, 246, 188, 174, 248, 189, 175, 235, 176, 162, 215, 156, 142, 204, 146, 132, 217, 159, 145, 205, 147, 133, 212, 156, 141, 224, 168, 155, 222, 169, 155, 213, 159, 147, 201, 147, 135, 196, 142, 130, 195, 141, 129, 202, 148, 136, 215, 158, 147, 225, 165, 154, 218, 156, 145, 199, 139, 128, 179, 121, 109, 171, 113, 101, 174, 118, 105, 177, 123, 111, 179, 125, 113, 187, 133, 121, 193, 139, 127, 200, 147, 133, 207, 151, 138, 212, 156, 143, 216, 158, 146, 218, 160, 148, 214, 161, 147, 215, 169, 154, 210, 167, 151, 216, 173, 157, 213, 167, 152, 221, 173, 159, 212, 165, 149, 207, 160, 144, 199, 152, 134, 192, 145, 127, 181, 134, 116, 184, 136, 116, 205, 152, 134, 208, 153, 133, 221, 163, 143, 223, 162, 143, 237, 174, 156, 211, 148, 130, 202, 139, 121, 201, 143, 123, 199, 141, 119, 198, 142, 119, 205, 147, 125, 204, 143, 122, 203, 140, 122, 196, 133, 116, 198, 139, 125, 194, 141, 133, 172, 131, 125, 83, 57, 56, 15, 5, 4, 28, 29, 31, 27, 35, 38, 33, 34, 38, 36, 35, 40, 39, 38, 43, 42, 41, 46, 43, 42, 47, 45, 44, 49, 46, 45, 50, 47, 46, 51, 48, 47, 52, 48, 47, 52, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 123, 128, 134, 122, 127, 133, 121, 126, 132, 119, 124, 130, 116, 121, 127, 114, 119, 125, 117, 122, 128, 121, 126, 132, 119, 124, 130, 130, 135, 141, 144, 149, 155, 162, 167, 173, 180, 185, 191, 191, 196, 202, 200, 205, 211, 212, 217, 223, 216, 223, 231, 208, 215, 223, 218, 223, 227, 232, 236, 237, 236, 241, 237, 243, 248, 242, 248, 249, 241, 244, 235, 228, 238, 213, 208, 212, 166, 166, 215, 149, 151, 237, 158, 161, 232, 148, 146, 213, 133, 124, 202, 130, 116, 193, 130, 112, 142, 86, 69, 121, 70, 53, 183, 131, 117, 219, 167, 154, 226, 172, 160, 233, 179, 169, 230, 175, 168, 234, 179, 174, 239, 184, 179, 240, 185, 180, 241, 186, 179, 241, 186, 179, 241, 188, 180, 242, 190, 179, 245, 193, 182, 249, 195, 183, 249, 190, 176, 237, 175, 162, 222, 160, 147, 204, 145, 131, 200, 141, 127, 216, 158, 144, 215, 157, 143, 216, 160, 145, 212, 156, 143, 217, 161, 148, 198, 141, 130, 161, 104, 93, 135, 78, 67, 139, 82, 71, 168, 111, 102, 198, 140, 129, 200, 140, 129, 191, 129, 116, 169, 109, 98, 149, 91, 79, 145, 87, 75, 157, 101, 88, 176, 122, 110, 190, 138, 125, 196, 144, 131, 198, 146, 133, 204, 152, 138, 208, 156, 142, 208, 155, 141, 209, 153, 140, 217, 161, 146, 225, 172, 156, 223, 176, 160, 224, 176, 162, 235, 186, 172, 221, 172, 158, 221, 169, 156, 215, 163, 150, 204, 152, 138, 195, 146, 131, 174, 125, 110, 144, 95, 78, 171, 122, 105, 211, 160, 141, 216, 161, 141, 229, 172, 152, 239, 181, 161, 248, 187, 168, 216, 154, 133, 204, 142, 121, 202, 144, 122, 198, 144, 120, 196, 144, 120, 203, 149, 125, 200, 142, 120, 198, 136, 115, 198, 132, 116, 200, 136, 124, 197, 138, 130, 179, 134, 129, 99, 71, 70, 18, 6, 6, 35, 39, 42, 31, 39, 42, 38, 39, 43, 41, 40, 45, 44, 43, 48, 45, 44, 49, 46, 45, 50, 47, 46, 51, 48, 47, 52, 49, 48, 53, 48, 47, 52, 49, 48, 53, 49, 48, 53, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 124, 129, 135, 122, 127, 133, 121, 126, 132, 120, 125, 131, 117, 122, 128, 114, 119, 125, 116, 121, 127, 119, 124, 130, 117, 122, 128, 126, 131, 137, 137, 142, 148, 154, 159, 165, 174, 179, 185, 188, 193, 199, 198, 203, 209, 208, 213, 219, 216, 221, 227, 213, 218, 224, 217, 218, 223, 225, 226, 228, 235, 237, 236, 243, 245, 240, 244, 247, 240, 243, 240, 233, 255, 241, 236, 244, 215, 211, 222, 174, 172, 216, 155, 154, 229, 158, 154, 222, 145, 137, 199, 121, 111, 185, 113, 99, 157, 101, 84, 129, 80, 63, 145, 96, 79, 207, 158, 143, 228, 176, 163, 220, 168, 157, 227, 174, 166, 232, 179, 171, 238, 185, 179, 241, 188, 182, 245, 190, 185, 247, 192, 185, 247, 192, 185, 247, 193, 183, 247, 193, 183, 248, 191, 180, 243, 184, 170, 222, 160, 145, 206, 147, 133, 190, 131, 117, 196, 137, 123, 213, 155, 141, 224, 166, 152, 222, 166, 151, 211, 155, 142, 190, 137, 123, 155, 101, 89, 131, 77, 65, 145, 88, 79, 176, 119, 110, 198, 141, 132, 207, 150, 139, 201, 145, 132, 168, 112, 97, 132, 79, 65, 127, 74, 60, 147, 93, 81, 170, 116, 104, 180, 126, 114, 181, 127, 115, 196, 142, 130, 204, 150, 138, 206, 154, 141, 204, 152, 139, 213, 161, 147, 229, 177, 163, 233, 182, 165, 225, 172, 156, 225, 166, 152, 241, 177, 167, 236, 169, 160, 227, 160, 151, 218, 151, 143, 192, 128, 119, 179, 116, 107, 147, 87, 77, 136, 79, 68, 99, 46, 32, 165, 114, 97, 223, 172, 153, 225, 173, 152, 230, 178, 156, 240, 186, 162, 236, 180, 157, 216, 155, 134, 203, 142, 121, 199, 143, 120, 197, 143, 119, 197, 145, 121, 203, 149, 125, 198, 140, 118, 194, 132, 111, 198, 132, 116, 196, 134, 121, 193, 136, 127, 182, 137, 131, 118, 90, 87, 20, 8, 8, 46, 47, 51, 36, 41, 45, 43, 44, 48, 46, 45, 50, 47, 46, 51, 48, 47, 52, 48, 47, 52, 48, 47, 52, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 125, 130, 136, 123, 128, 134, 121, 126, 132, 120, 125, 131, 118, 123, 129, 115, 120, 126, 115, 120, 126, 118, 123, 129, 116, 121, 127, 122, 127, 133, 129, 134, 140, 144, 149, 155, 165, 170, 176, 182, 187, 193, 194, 199, 205, 205, 210, 216, 215, 220, 226, 218, 221, 226, 216, 217, 221, 217, 217, 219, 231, 231, 231, 239, 239, 237, 238, 240, 235, 240, 241, 236, 241, 236, 232, 255, 242, 236, 236, 208, 204, 212, 168, 165, 224, 165, 161, 233, 160, 154, 215, 132, 126, 189, 111, 99, 166, 109, 90, 170, 122, 102, 142, 94, 74, 173, 124, 107, 217, 168, 153, 213, 164, 150, 228, 176, 165, 230, 177, 169, 236, 183, 177, 241, 188, 182, 247, 192, 187, 250, 195, 190, 250, 195, 188, 247, 192, 185, 243, 186, 177, 238, 181, 170, 229, 170, 156, 214, 155, 139, 196, 137, 123, 177, 119, 105, 197, 139, 125, 211, 155, 140, 225, 169, 154, 226, 173, 157, 225, 172, 158, 214, 161, 147, 191, 137, 125, 177, 123, 111, 189, 132, 123, 205, 148, 139, 213, 156, 147, 213, 159, 147, 195, 142, 128, 173, 122, 105, 154, 102, 88, 152, 100, 86, 163, 109, 97, 174, 120, 108, 183, 129, 117, 189, 135, 123, 207, 153, 141, 214, 160, 148, 225, 168, 157, 230, 173, 162, 230, 174, 161, 227, 171, 158, 224, 168, 153, 225, 166, 152, 225, 157, 146, 215, 142, 133, 188, 114, 105, 163, 88, 82, 146, 71, 66, 124, 51, 45, 99, 30, 23, 72, 5, 0, 90, 27, 20, 79, 21, 10, 171, 118, 104, 228, 177, 158, 234, 183, 162, 240, 190, 167, 247, 197, 172, 240, 188, 164, 210, 152, 130, 200, 139, 118, 198, 142, 119, 194, 142, 118, 195, 143, 119, 202, 148, 124, 198, 140, 118, 194, 133, 112, 194, 131, 114, 195, 133, 118, 190, 133, 122, 182, 137, 131, 133, 104, 100, 28, 14, 13, 49, 49, 51, 39, 43, 46, 45, 46, 50, 47, 46, 51, 48, 47, 52, 48, 47, 52, 48, 47, 52, 48, 47, 52, 48, 47, 52, 49, 48, 53, 50, 49, 54, 50, 49, 54, 50, 49, 54, 51, 50, 55, 51, 50, 55, 51, 50, 55, 51, 50, 55, 51, 50, 55, 125, 130, 136, 123, 128, 134, 122, 127, 133, 121, 126, 132, 119, 124, 130, 116, 121, 127, 115, 120, 126, 117, 122, 128, 118, 123, 129, 121, 126, 132, 124, 129, 135, 134, 139, 145, 156, 161, 167, 176, 181, 187, 190, 195, 201, 202, 207, 213, 213, 216, 221, 222, 223, 227, 216, 215, 220, 212, 212, 214, 225, 223, 226, 232, 232, 232, 231, 233, 232, 233, 237, 236, 225, 230, 226, 234, 235, 230, 232, 225, 219, 219, 196, 190, 215, 170, 165, 226, 161, 157, 240, 155, 152, 237, 154, 146, 211, 150, 131, 207, 157, 134, 182, 131, 110, 149, 98, 79, 197, 146, 129, 222, 170, 156, 225, 171, 161, 226, 172, 162, 233, 178, 171, 238, 183, 176, 245, 188, 181, 246, 189, 182, 246, 189, 182, 243, 186, 179, 238, 179, 171, 231, 173, 162, 219, 160, 146, 210, 151, 135, 181, 122, 106, 167, 110, 93, 207, 149, 135, 221, 165, 150, 228, 172, 159, 232, 179, 165, 220, 166, 154, 225, 173, 160, 223, 171, 158, 212, 160, 147, 201, 147, 137, 190, 136, 126, 191, 137, 127, 202, 148, 136, 191, 138, 124, 185, 132, 118, 178, 126, 112, 177, 125, 111, 177, 125, 112, 183, 131, 118, 198, 146, 135, 213, 159, 149, 226, 169, 160, 233, 174, 166, 233, 173, 163, 228, 165, 156, 227, 160, 151, 223, 155, 146, 205, 137, 128, 186, 116, 106, 157, 87, 75, 135, 63, 51, 129, 55, 46, 120, 45, 39, 123, 48, 43, 128, 53, 48, 102, 28, 25, 94, 25, 20, 105, 40, 36, 129, 70, 62, 208, 155, 141, 233, 182, 165, 231, 183, 161, 233, 187, 163, 235, 189, 163, 231, 181, 154, 206, 150, 125, 198, 140, 116, 198, 144, 120, 194, 142, 118, 194, 142, 120, 198, 146, 124, 196, 140, 117, 194, 136, 114, 194, 131, 114, 196, 134, 119, 189, 132, 121, 178, 134, 125, 144, 115, 109, 45, 30, 27, 47, 43, 42, 43, 44, 46, 45, 44, 49, 46, 45, 50, 47, 46, 51, 48, 47, 52, 47, 46, 51, 48, 47, 52, 48, 47, 52, 49, 48, 53, 50, 49, 54, 50, 49, 54, 50, 49, 54, 51, 50, 55, 51, 50, 55, 51, 50, 55, 51, 50, 55, 51, 50, 55, 125, 130, 136, 123, 128, 134, 121, 126, 132, 121, 126, 132, 119, 124, 130, 116, 121, 127, 115, 120, 126, 116, 121, 127, 119, 124, 130, 122, 127, 133, 122, 127, 133, 128, 133, 139, 148, 153, 159, 169, 174, 180, 185, 190, 196, 197, 202, 206, 210, 211, 215, 219, 220, 224, 215, 216, 218, 208, 208, 210, 216, 216, 218, 224, 224, 226, 225, 226, 230, 226, 231, 234, 223, 233, 232, 215, 226, 222, 216, 223, 216, 211, 204, 196, 199, 168, 163, 214, 159, 154, 243, 163, 162, 242, 159, 153, 239, 176, 158, 238, 184, 160, 226, 171, 150, 184, 132, 111, 198, 145, 127, 208, 155, 139, 226, 169, 158, 215, 158, 149, 229, 172, 163, 233, 176, 167, 235, 178, 171, 235, 176, 168, 236, 177, 169, 237, 178, 170, 234, 174, 166, 229, 169, 159, 215, 156, 142, 198, 139, 123, 162, 105, 88, 170, 113, 96, 219, 163, 148, 232, 179, 163, 232, 179, 165, 235, 183, 169, 234, 182, 169, 230, 178, 165, 224, 172, 159, 224, 172, 159, 226, 172, 162, 219, 165, 155, 213, 159, 149, 216, 162, 152, 208, 154, 142, 193, 141, 127, 183, 130, 116, 187, 134, 120, 204, 150, 138, 222, 165, 154, 231, 172, 164, 235, 175, 167, 241, 178, 171, 236, 169, 163, 220, 151, 146, 200, 129, 123, 190, 117, 111, 180, 105, 99, 164, 87, 81, 141, 68, 59, 157, 94, 77, 167, 106, 88, 139, 76, 61, 174, 108, 96, 178, 109, 102, 154, 85, 80, 156, 86, 84, 125, 57, 54, 114, 51, 46, 169, 110, 102, 225, 171, 159, 231, 182, 165, 234, 188, 165, 240, 194, 168, 238, 193, 164, 234, 187, 159, 207, 153, 127, 199, 143, 118, 199, 145, 121, 194, 142, 118, 191, 141, 118, 196, 144, 122, 194, 140, 116, 192, 135, 115, 193, 132, 113, 196, 137, 121, 188, 135, 121, 175, 131, 120, 154, 124, 116, 79, 61, 57, 40, 35, 32, 47, 47, 47, 45, 45, 47, 46, 45, 50, 47, 46, 51, 48, 47, 52, 48, 47, 52, 48, 47, 52, 49, 48, 53, 51, 50, 55, 50, 49, 54, 50, 49, 54, 50, 49, 54, 51, 50, 55, 51, 50, 55, 51, 50, 55, 51, 50, 55, 51, 50, 55, 125, 130, 136, 122, 127, 133, 121, 126, 132, 121, 126, 132, 120, 125, 131, 117, 122, 128, 116, 121, 127, 116, 121, 127, 119, 124, 130, 123, 128, 134, 121, 126, 132, 125, 130, 136, 143, 148, 154, 163, 168, 174, 179, 184, 190, 191, 196, 200, 201, 202, 206, 213, 214, 216, 211, 215, 216, 203, 207, 208, 207, 208, 212, 216, 217, 221, 223, 222, 228, 222, 225, 230, 220, 231, 233, 210, 224, 224, 209, 224, 219, 196, 201, 194, 181, 164, 157, 197, 156, 150, 226, 156, 156, 218, 141, 135, 238, 171, 152, 252, 192, 166, 249, 189, 165, 233, 175, 153, 226, 168, 148, 205, 146, 128, 218, 159, 145, 212, 152, 141, 221, 163, 152, 226, 168, 157, 228, 169, 161, 229, 169, 159, 231, 171, 161, 233, 173, 163, 231, 168, 159, 222, 162, 151, 209, 150, 134, 179, 120, 102, 156, 99, 82, 193, 136, 119, 230, 174, 159, 235, 182, 166, 234, 182, 168, 234, 185, 170, 240, 191, 177, 236, 187, 173, 226, 176, 165, 220, 170, 159, 222, 170, 159, 217, 165, 154, 212, 158, 148, 212, 158, 148, 214, 162, 149, 212, 160, 147, 212, 158, 146, 217, 160, 149, 228, 168, 160, 240, 175, 169, 246, 176, 174, 248, 174, 173, 234, 158, 158, 211, 133, 131, 194, 114, 113, 185, 106, 102, 165, 86, 82, 143, 64, 60, 147, 68, 64, 162, 94, 83, 212, 164, 142, 233, 191, 166, 170, 125, 104, 213, 164, 147, 211, 157, 145, 169, 112, 103, 192, 133, 127, 137, 78, 74, 150, 92, 88, 206, 151, 144, 231, 179, 166, 235, 186, 169, 233, 187, 164, 234, 188, 162, 228, 183, 154, 222, 173, 143, 209, 155, 129, 197, 143, 117, 195, 143, 119, 190, 140, 115, 189, 139, 116, 195, 143, 121, 192, 137, 116, 189, 132, 112, 191, 133, 113, 196, 139, 120, 188, 135, 119, 172, 128, 115, 165, 132, 123, 118, 98, 91, 37, 28, 23, 52, 48, 45, 46, 44, 47, 46, 45, 50, 47, 46, 51, 48, 47, 52, 48, 47, 52, 48, 47, 52, 50, 49, 54, 51, 50, 55, 49, 48, 53, 50, 49, 54, 50, 49, 54, 50, 49, 54, 51, 50, 55, 51, 50, 55, 51, 50, 55, 50, 49, 54, 125, 130, 136, 122, 127, 133, 121, 126, 132, 122, 127, 133, 121, 126, 132, 118, 123, 129, 116, 121, 127, 116, 121, 127, 118, 123, 129, 123, 128, 134, 122, 127, 133, 125, 130, 136, 140, 145, 151, 159, 164, 170, 175, 180, 186, 186, 191, 195, 192, 196, 199, 205, 209, 210, 208, 214, 214, 199, 208, 207, 200, 204, 207, 212, 213, 218, 222, 221, 229, 222, 222, 230, 213, 222, 227, 210, 224, 227, 213, 229, 228, 197, 208, 202, 170, 163, 157, 176, 147, 143, 209, 155, 153, 225, 158, 150, 235, 168, 149, 246, 180, 156, 255, 190, 168, 242, 177, 155, 245, 182, 164, 233, 170, 153, 198, 135, 120, 223, 161, 148, 217, 155, 144, 222, 162, 151, 227, 167, 156, 229, 169, 158, 233, 171, 160, 233, 171, 158, 226, 164, 151, 216, 154, 139, 201, 142, 124, 164, 105, 87, 159, 102, 85, 219, 163, 146, 233, 180, 164, 230, 179, 162, 232, 183, 168, 234, 185, 170, 234, 185, 171, 237, 188, 174, 232, 182, 171, 224, 174, 163, 226, 174, 163, 225, 173, 162, 222, 168, 158, 221, 167, 157, 218, 166, 153, 226, 174, 161, 237, 180, 169, 243, 183, 173, 249, 182, 176, 249, 175, 172, 240, 162, 162, 229, 147, 149, 192, 107, 110, 184, 99, 102, 155, 74, 73, 134, 56, 54, 158, 83, 80, 203, 132, 126, 215, 146, 139, 188, 132, 119, 241, 205, 179, 241, 212, 182, 202, 168, 143, 222, 184, 163, 222, 176, 161, 200, 150, 139, 184, 131, 125, 135, 82, 76, 184, 131, 125, 224, 174, 165, 225, 176, 162, 234, 185, 168, 232, 184, 162, 235, 188, 162, 235, 188, 160, 228, 179, 149, 208, 154, 128, 195, 141, 115, 190, 138, 114, 186, 136, 111, 187, 137, 114, 193, 143, 120, 191, 136, 115, 186, 131, 110, 188, 131, 111, 195, 138, 119, 185, 134, 117, 169, 126, 110, 172, 138, 128, 146, 122, 112, 37, 22, 15, 55, 47, 44, 47, 45, 46, 46, 45, 50, 47, 46, 51, 47, 46, 51, 47, 46, 51, 48, 47, 52, 49, 48, 53, 50, 49, 54, 49, 48, 53, 49, 48, 53, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 124, 129, 135, 124, 129, 135, 124, 129, 135, 123, 128, 134, 121, 126, 132, 119, 124, 130, 117, 122, 128, 116, 121, 127, 119, 124, 130, 121, 126, 132, 123, 128, 134, 126, 131, 137, 135, 140, 146, 150, 155, 161, 167, 172, 178, 178, 183, 187, 183, 187, 190, 196, 202, 202, 203, 213, 212, 196, 208, 206, 190, 198, 200, 203, 208, 212, 222, 221, 229, 225, 223, 234, 223, 226, 235, 211, 218, 226, 207, 218, 220, 187, 196, 195, 174, 173, 169, 144, 126, 122, 181, 146, 142, 221, 171, 162, 237, 172, 154, 250, 179, 157, 254, 183, 163, 252, 184, 163, 248, 181, 164, 255, 189, 173, 205, 139, 125, 212, 148, 136, 218, 154, 142, 212, 150, 137, 223, 161, 148, 220, 158, 143, 230, 167, 152, 229, 166, 151, 222, 159, 142, 202, 141, 123, 185, 127, 107, 155, 97, 77, 191, 134, 115, 224, 168, 151, 234, 181, 165, 229, 178, 161, 230, 181, 166, 236, 188, 174, 234, 186, 174, 231, 183, 171, 225, 175, 164, 229, 179, 168, 217, 165, 154, 222, 170, 159, 225, 171, 161, 222, 168, 158, 235, 183, 170, 236, 182, 170, 244, 184, 176, 239, 172, 166, 231, 157, 156, 221, 141, 142, 197, 112, 115, 188, 102, 105, 166, 80, 83, 148, 66, 68, 192, 116, 116, 193, 124, 119, 187, 128, 120, 237, 185, 174, 255, 213, 198, 203, 166, 147, 230, 205, 175, 251, 228, 196, 218, 191, 164, 213, 178, 158, 227, 185, 169, 175, 129, 116, 158, 109, 102, 169, 119, 112, 213, 163, 154, 217, 169, 157, 227, 179, 165, 234, 185, 168, 233, 185, 163, 235, 185, 160, 234, 184, 157, 229, 178, 149, 201, 150, 123, 193, 142, 115, 190, 140, 115, 193, 143, 118, 191, 141, 118, 191, 141, 118, 193, 138, 117, 188, 133, 112, 190, 133, 113, 192, 137, 117, 190, 139, 120, 170, 124, 109, 165, 129, 115, 177, 149, 138, 86, 66, 57, 41, 30, 24, 52, 48, 49, 43, 42, 47, 49, 48, 53, 48, 47, 52, 49, 48, 53, 45, 44, 49, 54, 53, 58, 47, 46, 51, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 51, 50, 55, 124, 129, 135, 124, 129, 135, 124, 129, 135, 123, 128, 134, 122, 127, 133, 120, 125, 131, 118, 123, 129, 117, 122, 128, 118, 123, 129, 119, 124, 130, 122, 127, 133, 125, 130, 136, 132, 137, 143, 144, 149, 155, 158, 163, 169, 168, 173, 177, 176, 181, 184, 186, 194, 196, 196, 208, 208, 190, 204, 204, 185, 197, 197, 194, 202, 205, 213, 213, 221, 220, 217, 228, 224, 222, 235, 204, 204, 214, 198, 203, 209, 199, 204, 207, 178, 178, 176, 122, 114, 111, 122, 103, 97, 205, 168, 159, 232, 173, 157, 248, 177, 159, 246, 178, 159, 246, 177, 161, 251, 184, 168, 253, 187, 173, 234, 171, 156, 198, 136, 123, 211, 149, 136, 206, 144, 131, 221, 159, 144, 223, 162, 144, 222, 161, 143, 211, 148, 130, 204, 141, 123, 192, 130, 109, 179, 118, 99, 160, 102, 82, 214, 157, 138, 240, 185, 165, 225, 172, 154, 218, 169, 152, 227, 178, 164, 220, 172, 158, 222, 174, 162, 234, 186, 174, 234, 184, 173, 216, 166, 155, 225, 173, 162, 227, 175, 164, 236, 182, 172, 233, 176, 167, 228, 170, 159, 225, 162, 153, 212, 147, 141, 196, 127, 122, 183, 109, 108, 167, 91, 91, 160, 82, 82, 142, 66, 66, 154, 80, 79, 222, 154, 151, 255, 204, 199, 252, 199, 191, 192, 148, 137, 237, 201, 185, 255, 232, 214, 224, 198, 175, 221, 194, 167, 234, 204, 178, 226, 191, 169, 197, 159, 140, 205, 159, 144, 159, 111, 99, 160, 110, 101, 195, 145, 136, 215, 165, 156, 218, 168, 157, 226, 179, 163, 232, 183, 166, 231, 183, 161, 234, 184, 159, 234, 183, 156, 228, 177, 148, 205, 154, 127, 195, 144, 117, 190, 140, 115, 192, 142, 117, 191, 141, 118, 192, 140, 118, 193, 138, 117, 188, 133, 112, 197, 140, 120, 191, 136, 116, 185, 134, 115, 164, 118, 102, 171, 132, 117, 191, 159, 146, 116, 89, 78, 41, 24, 17, 53, 47, 47, 49, 48, 53, 46, 45, 50, 47, 46, 51, 50, 49, 54, 46, 45, 50, 52, 51, 56, 48, 47, 52, 49, 48, 53, 49, 48, 53, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 125, 130, 136, 125, 130, 136, 124, 129, 135, 124, 129, 135, 122, 127, 133, 121, 126, 132, 119, 124, 130, 118, 123, 129, 116, 121, 127, 118, 123, 129, 120, 125, 131, 123, 128, 134, 128, 133, 139, 136, 141, 147, 147, 152, 158, 155, 160, 166, 165, 170, 174, 174, 182, 185, 186, 197, 199, 186, 200, 200, 182, 194, 194, 188, 196, 199, 206, 206, 214, 215, 212, 221, 217, 211, 223, 204, 201, 212, 190, 189, 197, 190, 191, 196, 165, 165, 165, 108, 107, 103, 60, 55, 49, 135, 115, 106, 218, 169, 155, 242, 179, 164, 244, 182, 167, 245, 183, 170, 250, 191, 177, 241, 183, 171, 228, 170, 158, 200, 142, 130, 204, 146, 134, 202, 144, 130, 215, 158, 141, 219, 160, 142, 216, 155, 136, 208, 147, 126, 211, 149, 126, 202, 140, 117, 172, 111, 90, 178, 120, 98, 230, 173, 153, 236, 181, 161, 220, 167, 149, 220, 171, 154, 230, 181, 167, 225, 177, 163, 224, 176, 164, 217, 169, 157, 222, 172, 163, 227, 177, 168, 228, 176, 165, 242, 188, 178, 243, 186, 177, 227, 167, 159, 212, 141, 137, 198, 123, 120, 188, 114, 113, 173, 102, 100, 151, 86, 84, 140, 79, 76, 169, 114, 109, 155, 105, 98, 195, 151, 142, 255, 221, 210, 255, 232, 220, 255, 240, 224, 219, 192, 175, 228, 203, 183, 240, 218, 197, 228, 200, 179, 224, 183, 165, 242, 193, 176, 233, 181, 167, 150, 94, 81, 158, 100, 89, 176, 117, 109, 193, 134, 126, 206, 149, 140, 219, 165, 155, 220, 168, 155, 226, 177, 160, 230, 182, 162, 228, 180, 158, 231, 181, 156, 232, 181, 154, 227, 176, 149, 209, 158, 131, 197, 146, 119, 191, 139, 115, 192, 140, 116, 192, 140, 118, 193, 141, 120, 193, 138, 117, 188, 133, 112, 197, 142, 121, 189, 134, 113, 181, 130, 109, 158, 111, 93, 178, 136, 120, 202, 166, 152, 154, 122, 109, 55, 35, 26, 48, 39, 40, 54, 53, 58, 44, 43, 48, 46, 45, 50, 51, 50, 55, 46, 45, 50, 49, 48, 53, 48, 47, 52, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 50, 49, 54, 50, 49, 54, 50, 49, 54, 50, 49, 54, 125, 130, 136, 125, 130, 136, 125, 130, 136, 124, 129, 135, 123, 128, 134, 122, 127, 133, 120, 125, 131, 119, 124, 130, 116, 121, 127, 116, 121, 127, 118, 123, 129, 120, 125, 131, 123, 128, 134, 128, 133, 139, 137, 142, 148, 145, 150, 156, 154, 161, 169, 161, 170, 175, 176, 187, 191, 185, 196, 198, 183, 193, 194, 186, 194, 196, 200, 203, 208, 211, 210, 218, 209, 206, 215, 205, 199, 209, 180, 174, 184, 168, 165, 172, 146, 146, 148, 98, 100, 99, 31, 33, 28, 62, 52, 43, 157, 120, 111, 221, 171, 160, 240, 190, 179, 224, 174, 165, 221, 173, 163, 225, 177, 167, 182, 134, 124, 181, 133, 121, 192, 143, 129, 199, 147, 133, 206, 153, 137, 211, 156, 136, 215, 157, 137, 222, 161, 140, 226, 166, 142, 212, 150, 125, 169, 109, 85, 202, 141, 120, 231, 173, 153, 216, 161, 141, 223, 170, 152, 226, 175, 158, 219, 170, 156, 226, 178, 164, 212, 164, 152, 225, 177, 165, 228, 178, 169, 224, 174, 165, 239, 185, 175, 223, 169, 159, 194, 137, 128, 191, 128, 121, 189, 111, 109, 171, 90, 89, 142, 68, 67, 128, 63, 59, 188, 133, 128, 230, 186, 177, 248, 212, 200, 218, 190, 176, 208, 187, 170, 254, 235, 218, 251, 232, 215, 244, 223, 206, 242, 219, 201, 233, 206, 189, 237, 208, 190, 228, 189, 174, 193, 136, 125, 193, 129, 120, 200, 133, 125, 162, 95, 87, 179, 112, 106, 198, 131, 125, 206, 143, 136, 219, 159, 149, 221, 164, 153, 220, 168, 154, 226, 178, 158, 229, 181, 159, 226, 178, 155, 227, 180, 154, 230, 178, 154, 224, 173, 146, 211, 160, 133, 198, 147, 120, 191, 139, 115, 192, 140, 116, 192, 140, 119, 192, 140, 119, 192, 137, 116, 185, 130, 109, 188, 133, 112, 186, 134, 112, 178, 126, 105, 155, 107, 87, 185, 142, 123, 202, 163, 146, 183, 147, 133, 99, 72, 63, 36, 26, 25, 51, 50, 55, 45, 44, 49, 45, 44, 49, 49, 48, 53, 47, 46, 51, 48, 47, 52, 48, 47, 52, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 50, 49, 54, 50, 49, 54, 50, 49, 54, 125, 130, 136, 125, 130, 136, 125, 130, 136, 125, 130, 136, 124, 129, 135, 122, 127, 133, 121, 126, 132, 120, 125, 131, 117, 122, 128, 116, 121, 127, 116, 121, 127, 118, 123, 129, 119, 124, 130, 123, 128, 134, 132, 137, 143, 141, 145, 154, 150, 157, 167, 155, 164, 173, 171, 178, 184, 183, 191, 194, 184, 192, 194, 186, 194, 196, 194, 199, 202, 199, 202, 207, 203, 204, 209, 189, 188, 194, 166, 161, 168, 154, 149, 156, 125, 123, 128, 70, 70, 72, 30, 35, 31, 40, 37, 30, 70, 47, 41, 120, 87, 80, 154, 121, 114, 169, 136, 129, 166, 131, 125, 137, 102, 96, 92, 55, 47, 104, 66, 57, 181, 141, 131, 191, 147, 134, 191, 144, 128, 204, 153, 134, 217, 162, 142, 224, 166, 144, 223, 163, 139, 206, 146, 120, 173, 111, 88, 208, 147, 126, 230, 172, 152, 210, 153, 134, 221, 165, 148, 219, 168, 151, 203, 154, 140, 208, 160, 146, 216, 168, 156, 207, 159, 149, 227, 177, 168, 210, 160, 151, 206, 152, 142, 184, 130, 120, 170, 113, 104, 150, 87, 80, 119, 43, 43, 188, 112, 112, 211, 143, 140, 173, 118, 111, 233, 193, 183, 255, 241, 227, 252, 235, 219, 243, 232, 214, 209, 201, 182, 232, 224, 205, 249, 232, 214, 238, 215, 199, 253, 220, 205, 220, 176, 165, 202, 152, 143, 200, 139, 134, 164, 93, 91, 168, 90, 90, 184, 106, 104, 201, 126, 123, 206, 132, 129, 201, 130, 124, 206, 139, 131, 224, 164, 153, 220, 164, 149, 220, 169, 150, 225, 177, 155, 227, 181, 157, 225, 177, 154, 225, 178, 152, 227, 175, 151, 221, 169, 145, 211, 160, 133, 199, 148, 121, 192, 140, 116, 193, 141, 117, 194, 139, 119, 194, 139, 119, 191, 134, 115, 183, 126, 106, 182, 127, 106, 186, 134, 110, 169, 117, 95, 155, 107, 85, 195, 150, 129, 201, 158, 139, 197, 158, 141, 146, 116, 106, 35, 25, 24, 43, 42, 47, 48, 47, 52, 44, 43, 48, 45, 44, 49, 47, 46, 51, 48, 47, 52, 47, 46, 51, 48, 47, 52, 48, 47, 52, 48, 47, 52, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 124, 129, 135, 124, 129, 135, 125, 130, 136, 125, 130, 136, 124, 129, 135, 123, 128, 134, 121, 126, 132, 121, 126, 132, 119, 124, 130, 116, 121, 127, 116, 121, 127, 117, 122, 128, 118, 123, 129, 121, 126, 132, 129, 134, 140, 137, 144, 152, 149, 157, 168, 154, 160, 172, 169, 173, 182, 183, 186, 193, 187, 191, 194, 187, 192, 195, 182, 190, 192, 176, 186, 187, 178, 186, 188, 170, 173, 178, 153, 150, 157, 124, 119, 126, 86, 81, 87, 40, 38, 41, 36, 40, 39, 42, 42, 40, 43, 33, 31, 31, 16, 13, 33, 15, 13, 50, 32, 28, 53, 34, 30, 19, 0, 0, 40, 15, 10, 37, 8, 0, 170, 137, 128, 190, 152, 141, 182, 138, 125, 196, 149, 131, 213, 161, 140, 218, 162, 139, 217, 159, 135, 216, 156, 130, 191, 129, 106, 203, 143, 119, 232, 171, 152, 218, 161, 142, 213, 157, 140, 210, 158, 144, 204, 155, 141, 202, 154, 142, 211, 163, 153, 215, 167, 157, 195, 145, 136, 178, 125, 117, 150, 96, 86, 142, 85, 76, 139, 80, 72, 200, 140, 132, 189, 126, 121, 219, 160, 154, 255, 212, 203, 228, 188, 176, 229, 200, 186, 249, 230, 213, 246, 233, 216, 247, 236, 218, 223, 212, 194, 229, 212, 196, 254, 228, 213, 248, 210, 199, 230, 180, 171, 182, 121, 116, 149, 78, 76, 165, 87, 87, 184, 104, 107, 202, 120, 124, 199, 119, 122, 207, 129, 129, 200, 125, 122, 206, 135, 129, 212, 148, 138, 210, 152, 138, 218, 167, 148, 218, 170, 148, 223, 177, 153, 225, 179, 155, 223, 176, 150, 226, 176, 151, 226, 174, 150, 221, 169, 145, 211, 160, 133, 199, 148, 121, 194, 142, 118, 194, 142, 118, 194, 139, 119, 192, 137, 117, 190, 133, 114, 183, 126, 106, 185, 130, 109, 184, 130, 106, 157, 105, 83, 165, 115, 92, 202, 156, 133, 205, 160, 139, 204, 161, 144, 179, 147, 136, 63, 51, 51, 35, 34, 39, 51, 50, 55, 44, 43, 48, 44, 43, 48, 46, 45, 50, 48, 47, 52, 46, 45, 50, 48, 47, 52, 48, 47, 52, 48, 47, 52, 48, 47, 52, 49, 48, 53, 49, 48, 53, 49, 48, 53, 49, 48, 53, 124, 129, 135, 124, 129, 135, 124, 129, 135, 124, 129, 135, 124, 129, 135, 123, 128, 134, 122, 127, 133, 121, 126, 132, 120, 125, 131, 117, 122, 128, 116, 121, 127, 118, 123, 129, 118, 123, 129, 120, 125, 131, 128, 133, 139, 135, 142, 150, 149, 157, 168, 153, 159, 173, 170, 170, 182, 186, 183, 192, 193, 191, 196, 190, 191, 193, 172, 182, 181, 152, 167, 164, 142, 157, 154, 140, 150, 151, 125, 126, 131, 78, 73, 80, 48, 41, 48, 37, 30, 37, 37, 37, 39, 36, 38, 37, 36, 36, 36, 37, 37, 35, 36, 35, 33, 30, 26, 25, 36, 31, 28, 36, 26, 24, 58, 45, 39, 14, 0, 0, 131, 106, 99, 189, 156, 147, 187, 149, 136, 193, 147, 131, 205, 154, 135, 216, 161, 140, 221, 163, 141, 227, 167, 143, 214, 152, 129, 208, 148, 124, 231, 170, 151, 223, 166, 147, 216, 160, 143, 199, 147, 133, 187, 138, 124, 186, 136, 125, 190, 142, 132, 177, 129, 119, 151, 101, 92, 138, 85, 77, 100, 46, 36, 135, 78, 69, 172, 113, 105, 247, 195, 184, 242, 204, 191, 209, 180, 164, 253, 225, 211, 255, 235, 220, 230, 207, 191, 240, 219, 202, 255, 233, 219, 247, 221, 208, 247, 215, 204, 232, 192, 184, 223, 173, 166, 184, 123, 120, 158, 86, 87, 171, 91, 94, 195, 106, 110, 224, 135, 141, 207, 125, 131, 208, 129, 134, 202, 126, 128, 214, 140, 139, 216, 145, 141, 211, 144, 135, 210, 151, 137, 208, 155, 137, 217, 171, 148, 217, 173, 148, 221, 177, 152, 221, 177, 150, 219, 173, 147, 224, 174, 149, 227, 175, 153, 224, 170, 146, 212, 161, 134, 201, 150, 123, 197, 143, 119, 196, 142, 118, 194, 137, 118, 192, 135, 116, 190, 133, 114, 185, 128, 108, 187, 130, 110, 175, 121, 97, 153, 101, 77, 182, 132, 109, 202, 154, 132, 209, 162, 142, 211, 164, 146, 197, 163, 151, 114, 103, 101, 32, 31, 36, 50, 49, 54, 44, 43, 48, 45, 44, 49, 45, 44, 49, 48, 47, 52, 46, 45, 50, 48, 47, 52, 48, 47, 52, 48, 47, 52, 48, 47, 52, 48, 47, 52, 48, 47, 52, 49, 48, 53, 49, 48, 53, 123, 128, 134, 124, 129, 135, 124, 129, 135, 124, 129, 135, 124, 129, 135, 123, 128, 134, 122, 127, 133, 121, 126, 132, 121, 126, 132, 118, 123, 129, 117, 122, 128, 120, 125, 131, 120, 125, 131, 120, 125, 131, 127, 132, 138, 136, 140, 149, 148, 156, 167, 152, 158, 170, 169, 169, 181, 186, 183, 192, 195, 192, 199, 192, 193, 195, 168, 178, 177, 141, 156, 153, 122, 137, 134, 109, 119, 120, 90, 91, 95, 46, 44, 49, 38, 31, 38, 48, 41, 48, 31, 29, 32, 34, 35, 37, 32, 36, 37, 26, 32, 32, 26, 32, 32, 27, 33, 33, 32, 36, 35, 37, 37, 35, 34, 29, 26, 34, 23, 21, 80, 61, 57, 183, 156, 149, 201, 164, 155, 194, 150, 137, 202, 151, 134, 219, 164, 143, 220, 162, 138, 217, 157, 131, 228, 168, 144, 222, 161, 140, 227, 169, 147, 223, 165, 145, 227, 170, 151, 189, 133, 116, 146, 93, 79, 149, 97, 84, 147, 97, 86, 109, 59, 50, 79, 29, 22, 43, 0, 0, 137, 84, 76, 210, 157, 149, 244, 189, 182, 241, 194, 184, 244, 215, 199, 222, 199, 181, 234, 208, 193, 243, 215, 201, 234, 205, 191, 245, 211, 199, 251, 213, 204, 243, 198, 192, 219, 166, 162, 160, 100, 99, 158, 90, 91, 177, 101, 103, 203, 121, 125, 211, 122, 128, 215, 122, 130, 211, 120, 127, 216, 136, 139, 207, 133, 134, 207, 135, 136, 207, 137, 135, 215, 148, 140, 203, 141, 130, 206, 150, 135, 213, 162, 143, 219, 173, 150, 218, 174, 149, 220, 176, 151, 220, 174, 148, 218, 171, 145, 223, 173, 148, 227, 175, 151, 224, 172, 148, 213, 162, 135, 202, 151, 124, 196, 144, 120, 196, 141, 120, 192, 137, 116, 190, 135, 115, 190, 135, 115, 186, 131, 110, 183, 128, 107, 166, 112, 88, 155, 103, 79, 197, 147, 124, 200, 150, 127, 212, 164, 142, 216, 168, 148, 209, 172, 156, 160, 141, 135, 38, 29, 30, 51, 47, 48, 44, 42, 45, 47, 46, 51, 43, 44, 49, 46, 47, 52, 46, 47, 52, 47, 46, 51, 48, 47, 52, 49, 47, 50, 49, 47, 50, 49, 47, 50, 48, 47, 52, 48, 47, 52, 47, 48, 52, 124, 127, 134, 124, 127, 134, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 124, 127, 134, 124, 127, 134, 122, 125, 132, 120, 123, 130, 119, 122, 129, 120, 123, 130, 121, 124, 131, 121, 124, 131, 126, 129, 136, 131, 136, 142, 147, 151, 162, 157, 161, 172, 167, 170, 179, 181, 184, 191, 187, 190, 197, 185, 188, 193, 172, 177, 181, 145, 150, 153, 122, 127, 130, 100, 104, 107, 71, 72, 76, 42, 41, 46, 37, 35, 40, 40, 38, 41, 34, 34, 36, 36, 36, 38, 33, 32, 37, 34, 33, 38, 32, 36, 39, 32, 37, 40, 31, 40, 39, 34, 40, 40, 40, 41, 43, 47, 41, 43, 21, 5, 6, 169, 143, 144, 196, 158, 155, 204, 160, 151, 208, 156, 142, 213, 156, 136, 212, 155, 128, 220, 163, 134, 225, 169, 144, 225, 169, 146, 234, 176, 154, 236, 178, 156, 231, 170, 149, 216, 155, 136, 164, 102, 87, 94, 36, 22, 74, 17, 6, 65, 12, 4, 75, 24, 20, 49, 2, 0, 127, 82, 77, 215, 170, 165, 238, 193, 187, 236, 193, 184, 231, 193, 182, 236, 198, 185, 220, 177, 168, 237, 190, 182, 214, 163, 159, 189, 134, 131, 214, 152, 153, 182, 113, 116, 164, 92, 96, 186, 109, 115, 204, 123, 130, 216, 134, 140, 227, 142, 149, 222, 137, 144, 214, 127, 135, 213, 131, 135, 216, 142, 141, 207, 140, 134, 208, 141, 135, 211, 147, 138, 208, 145, 136, 200, 142, 130, 206, 150, 135, 216, 165, 146, 220, 169, 148, 220, 172, 149, 220, 172, 149, 218, 170, 147, 219, 169, 144, 222, 172, 147, 226, 174, 150, 226, 174, 150, 216, 164, 140, 198, 148, 123, 187, 137, 114, 190, 138, 116, 194, 142, 120, 189, 137, 115, 184, 132, 110, 183, 131, 109, 174, 122, 100, 153, 101, 79, 180, 130, 107, 196, 146, 123, 205, 155, 132, 221, 171, 148, 213, 162, 141, 213, 170, 151, 189, 160, 146, 105, 85, 76, 37, 23, 20, 48, 42, 42, 45, 44, 50, 40, 44, 53, 49, 53, 62, 37, 41, 50, 45, 46, 51, 47, 45, 48, 50, 46, 47, 51, 45, 45, 51, 47, 48, 49, 47, 50, 48, 49, 54, 46, 49, 54, 123, 126, 133, 124, 127, 134, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 124, 127, 134, 122, 125, 132, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 122, 125, 132, 126, 129, 136, 130, 133, 140, 141, 145, 154, 154, 158, 167, 163, 168, 174, 173, 178, 184, 175, 180, 186, 174, 179, 185, 168, 171, 176, 145, 148, 153, 121, 122, 126, 87, 88, 92, 60, 59, 64, 41, 40, 45, 38, 38, 40, 40, 40, 42, 38, 38, 40, 42, 42, 44, 43, 40, 47, 42, 41, 47, 38, 42, 45, 36, 41, 44, 32, 42, 43, 33, 41, 43, 38, 42, 45, 43, 41, 44, 27, 12, 17, 98, 73, 76, 197, 161, 161, 203, 160, 154, 211, 162, 148, 217, 162, 142, 210, 153, 126, 219, 162, 133, 222, 168, 142, 227, 175, 151, 246, 190, 165, 250, 192, 168, 245, 183, 160, 240, 178, 155, 217, 154, 136, 177, 115, 100, 170, 112, 100, 161, 107, 97, 124, 73, 69, 95, 47, 43, 95, 50, 45, 172, 129, 123, 188, 145, 139, 221, 176, 170, 212, 163, 156, 212, 159, 151, 186, 128, 124, 175, 114, 111, 165, 99, 100, 163, 91, 94, 188, 111, 117, 194, 113, 120, 217, 131, 140, 224, 137, 146, 229, 142, 151, 230, 143, 151, 228, 141, 149, 221, 136, 143, 218, 136, 142, 221, 142, 145, 207, 138, 133, 201, 138, 129, 202, 139, 130, 202, 142, 131, 202, 144, 132, 203, 147, 132, 211, 155, 138, 218, 165, 147, 221, 170, 149, 223, 172, 151, 223, 173, 150, 221, 171, 148, 222, 172, 147, 224, 174, 149, 226, 175, 148, 226, 175, 148, 215, 165, 142, 201, 151, 128, 190, 140, 117, 191, 141, 118, 192, 142, 119, 188, 138, 115, 183, 133, 110, 181, 131, 108, 156, 106, 83, 163, 113, 90, 187, 137, 114, 196, 146, 123, 211, 161, 138, 224, 174, 151, 215, 165, 142, 216, 169, 149, 207, 170, 152, 148, 120, 108, 40, 21, 14, 55, 45, 44, 45, 44, 49, 39, 43, 52, 37, 44, 54, 44, 51, 61, 45, 46, 51, 47, 45, 48, 50, 44, 44, 51, 45, 45, 51, 47, 48, 49, 47, 50, 48, 49, 54, 46, 49, 56, 123, 126, 133, 124, 127, 134, 124, 127, 134, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 124, 127, 134, 122, 125, 132, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 122, 125, 132, 124, 127, 134, 127, 130, 137, 137, 141, 150, 153, 157, 166, 162, 167, 173, 165, 170, 176, 162, 165, 172, 162, 165, 172, 159, 162, 167, 139, 142, 147, 108, 109, 114, 66, 67, 72, 45, 46, 50, 41, 42, 46, 42, 42, 44, 45, 45, 47, 45, 45, 47, 48, 48, 50, 47, 46, 52, 46, 45, 51, 41, 45, 48, 37, 42, 45, 34, 39, 42, 34, 39, 42, 36, 40, 43, 41, 39, 42, 41, 30, 34, 40, 20, 21, 169, 139, 137, 205, 166, 159, 211, 165, 152, 216, 163, 145, 211, 153, 129, 215, 158, 131, 217, 166, 139, 220, 170, 145, 236, 182, 156, 244, 188, 161, 245, 185, 159, 249, 189, 165, 243, 182, 163, 222, 163, 145, 209, 151, 137, 216, 162, 150, 210, 160, 153, 187, 138, 133, 165, 116, 111, 165, 116, 111, 161, 112, 107, 174, 124, 117, 171, 112, 106, 190, 125, 121, 197, 129, 126, 195, 124, 122, 207, 131, 133, 210, 130, 133, 209, 124, 131, 230, 143, 151, 232, 142, 151, 230, 139, 148, 234, 143, 152, 239, 150, 156, 231, 144, 150, 219, 134, 139, 211, 129, 133, 206, 128, 128, 205, 138, 130, 203, 141, 130, 204, 142, 131, 201, 141, 130, 204, 146, 134, 211, 155, 140, 219, 163, 146, 221, 168, 150, 221, 170, 149, 223, 172, 151, 223, 173, 150, 223, 173, 150, 224, 174, 149, 226, 176, 151, 225, 175, 148, 223, 173, 146, 215, 165, 142, 203, 153, 130, 193, 143, 120, 190, 140, 117, 191, 141, 118, 186, 136, 113, 179, 129, 106, 174, 124, 101, 149, 99, 76, 175, 125, 102, 191, 141, 118, 202, 152, 129, 220, 170, 147, 224, 174, 151, 218, 168, 145, 220, 174, 151, 210, 172, 153, 193, 161, 146, 80, 57, 49, 43, 29, 28, 46, 44, 49, 43, 46, 55, 40, 47, 57, 42, 46, 55, 43, 46, 51, 46, 46, 48, 49, 45, 46, 50, 46, 45, 50, 46, 47, 49, 47, 50, 48, 47, 52, 48, 49, 54, 123, 126, 133, 123, 126, 133, 124, 127, 134, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 123, 126, 133, 124, 127, 134, 134, 138, 147, 151, 155, 164, 158, 163, 169, 156, 161, 167, 150, 153, 160, 149, 152, 159, 146, 149, 154, 125, 128, 133, 91, 92, 97, 53, 54, 59, 43, 44, 48, 47, 48, 52, 48, 48, 50, 53, 53, 55, 54, 54, 56, 53, 52, 57, 47, 46, 52, 45, 46, 51, 43, 44, 49, 38, 42, 45, 35, 39, 42, 35, 39, 42, 39, 40, 44, 41, 41, 43, 57, 51, 53, 40, 26, 26, 115, 91, 89, 199, 166, 159, 207, 165, 153, 211, 160, 143, 218, 160, 140, 213, 155, 131, 217, 165, 141, 215, 168, 142, 228, 177, 150, 239, 185, 157, 244, 187, 160, 247, 189, 165, 244, 186, 164, 233, 176, 156, 226, 170, 155, 228, 175, 161, 241, 189, 178, 223, 170, 162, 222, 169, 163, 189, 136, 130, 192, 139, 133, 188, 129, 123, 200, 132, 129, 212, 138, 137, 215, 139, 139, 208, 130, 130, 219, 137, 141, 223, 138, 143, 215, 128, 134, 236, 147, 153, 235, 144, 153, 217, 128, 134, 215, 126, 132, 222, 136, 139, 220, 135, 138, 215, 133, 135, 212, 132, 133, 204, 130, 127, 208, 141, 132, 203, 143, 132, 204, 144, 133, 205, 147, 133, 210, 152, 138, 216, 160, 143, 219, 166, 148, 221, 169, 148, 220, 169, 148, 221, 171, 148, 223, 173, 150, 223, 173, 148, 225, 175, 150, 227, 177, 152, 225, 175, 148, 222, 172, 147, 214, 164, 141, 203, 153, 130, 192, 142, 119, 188, 138, 115, 188, 138, 115, 182, 132, 109, 171, 121, 98, 162, 112, 89, 160, 110, 87, 179, 129, 106, 190, 140, 117, 212, 162, 139, 227, 177, 154, 220, 170, 147, 222, 172, 149, 223, 175, 153, 209, 167, 145, 208, 173, 154, 142, 115, 106, 36, 21, 16, 49, 43, 47, 45, 45, 53, 45, 49, 58, 37, 41, 50, 42, 45, 50, 44, 45, 49, 47, 45, 46, 49, 45, 46, 50, 46, 47, 49, 47, 50, 48, 47, 52, 47, 48, 53, 123, 126, 133, 123, 126, 133, 124, 127, 134, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 121, 124, 131, 120, 123, 130, 128, 133, 139, 142, 147, 153, 147, 152, 158, 146, 151, 157, 141, 144, 151, 139, 142, 149, 133, 136, 141, 110, 113, 118, 74, 75, 80, 51, 52, 57, 50, 51, 55, 53, 54, 58, 51, 50, 55, 58, 57, 62, 58, 57, 62, 52, 51, 56, 47, 48, 53, 47, 48, 53, 45, 46, 51, 44, 45, 50, 44, 45, 49, 45, 46, 50, 48, 49, 53, 51, 52, 54, 64, 64, 64, 61, 56, 53, 75, 60, 57, 167, 142, 135, 203, 165, 154, 210, 162, 148, 222, 163, 147, 217, 159, 139, 209, 159, 136, 211, 164, 138, 224, 174, 147, 235, 184, 157, 240, 184, 157, 241, 185, 158, 244, 188, 163, 245, 189, 166, 226, 170, 153, 232, 179, 163, 234, 180, 168, 245, 191, 181, 241, 184, 177, 229, 172, 163, 217, 158, 150, 206, 141, 135, 201, 127, 124, 208, 130, 128, 215, 135, 134, 224, 143, 142, 230, 148, 150, 232, 147, 150, 228, 142, 145, 224, 138, 141, 225, 138, 144, 211, 126, 129, 211, 129, 131, 222, 142, 141, 218, 143, 140, 213, 139, 136, 211, 140, 136, 208, 139, 132, 205, 143, 132, 200, 141, 127, 203, 144, 130, 210, 152, 138, 215, 157, 143, 215, 159, 142, 215, 162, 144, 219, 167, 146, 219, 168, 147, 222, 172, 149, 225, 175, 152, 226, 176, 151, 227, 177, 152, 228, 178, 151, 227, 177, 150, 224, 174, 149, 215, 165, 142, 203, 152, 131, 190, 139, 118, 186, 135, 114, 185, 134, 113, 177, 126, 105, 164, 113, 92, 154, 103, 82, 171, 120, 99, 181, 130, 109, 194, 143, 122, 220, 169, 148, 225, 174, 153, 221, 170, 149, 228, 177, 156, 212, 164, 142, 214, 168, 145, 204, 166, 145, 181, 151, 140, 73, 53, 46, 41, 31, 32, 48, 46, 51, 34, 37, 44, 45, 49, 58, 42, 45, 50, 44, 45, 49, 46, 44, 47, 47, 45, 48, 48, 46, 49, 48, 46, 49, 48, 47, 52, 48, 47, 52, 122, 125, 132, 123, 126, 133, 124, 127, 134, 125, 128, 135, 125, 128, 135, 126, 129, 136, 125, 128, 135, 125, 128, 135, 123, 126, 133, 123, 126, 133, 123, 126, 133, 121, 124, 131, 121, 124, 131, 122, 125, 132, 121, 124, 131, 119, 122, 129, 123, 128, 134, 132, 137, 143, 135, 140, 146, 137, 142, 148, 134, 137, 144, 129, 132, 139, 120, 123, 128, 97, 100, 105, 58, 59, 64, 49, 50, 55, 54, 55, 59, 52, 53, 57, 50, 49, 54, 57, 56, 61, 55, 54, 59, 49, 50, 54, 50, 53, 60, 50, 53, 60, 54, 53, 59, 54, 53, 59, 57, 55, 60, 59, 58, 63, 61, 62, 66, 62, 66, 69, 68, 72, 73, 72, 72, 70, 74, 66, 63, 126, 107, 101, 191, 158, 149, 211, 167, 156, 218, 162, 149, 224, 165, 149, 210, 159, 138, 206, 158, 135, 210, 160, 135, 220, 169, 142, 232, 178, 150, 240, 184, 157, 244, 188, 163, 246, 192, 168, 246, 194, 173, 245, 192, 174, 234, 181, 167, 241, 188, 174, 230, 173, 162, 238, 178, 168, 234, 171, 162, 229, 162, 154, 222, 151, 145, 216, 141, 138, 207, 132, 129, 213, 135, 133, 209, 131, 129, 208, 130, 130, 217, 137, 138, 203, 125, 125, 207, 129, 129, 205, 131, 128, 215, 141, 138, 219, 150, 143, 211, 144, 136, 200, 136, 126, 196, 133, 124, 196, 136, 125, 204, 145, 131, 201, 143, 129, 205, 147, 133, 214, 158, 143, 219, 163, 146, 215, 162, 144, 217, 165, 144, 221, 169, 148, 221, 171, 148, 225, 175, 152, 229, 179, 154, 229, 179, 154, 229, 179, 152, 229, 179, 152, 228, 178, 151, 226, 176, 151, 216, 166, 143, 202, 151, 130, 189, 138, 117, 185, 134, 113, 180, 129, 108, 169, 118, 97, 160, 109, 88, 156, 105, 84, 173, 122, 101, 188, 137, 116, 205, 154, 133, 221, 170, 149, 222, 171, 150, 226, 175, 154, 230, 179, 158, 202, 151, 130, 213, 165, 142, 215, 170, 149, 199, 163, 147, 127, 103, 93, 31, 17, 14, 57, 51, 53, 30, 31, 36, 47, 50, 57, 41, 44, 49, 44, 45, 50, 45, 44, 49, 47, 45, 48, 47, 45, 48, 48, 46, 49, 47, 46, 51, 47, 46, 51, 122, 125, 132, 123, 126, 133, 124, 127, 134, 125, 128, 135, 125, 128, 135, 126, 129, 136, 126, 129, 136, 125, 128, 135, 124, 127, 134, 125, 128, 135, 123, 126, 133, 121, 124, 131, 122, 125, 132, 124, 127, 134, 122, 125, 132, 119, 122, 129, 121, 124, 131, 125, 128, 135, 124, 127, 134, 127, 130, 137, 120, 123, 130, 109, 112, 119, 96, 99, 106, 74, 77, 84, 50, 51, 56, 47, 48, 53, 53, 54, 59, 51, 52, 57, 52, 53, 58, 59, 60, 65, 57, 58, 62, 60, 61, 65, 61, 64, 71, 62, 65, 72, 67, 66, 72, 69, 66, 73, 74, 69, 75, 75, 73, 78, 76, 77, 81, 76, 81, 84, 77, 85, 87, 79, 85, 83, 90, 91, 86, 100, 89, 83, 161, 134, 127, 202, 162, 154, 210, 158, 147, 223, 165, 153, 223, 170, 152, 214, 163, 142, 206, 156, 133, 210, 158, 134, 226, 172, 146, 236, 182, 154, 240, 186, 158, 240, 189, 162, 249, 197, 175, 242, 191, 170, 249, 198, 179, 244, 191, 175, 241, 185, 172, 237, 178, 164, 240, 178, 165, 233, 169, 157, 231, 167, 157, 224, 160, 151, 217, 153, 144, 217, 150, 142, 212, 145, 137, 210, 143, 137, 214, 147, 141, 204, 139, 133, 205, 140, 134, 204, 144, 134, 201, 141, 131, 194, 138, 125, 188, 135, 121, 184, 133, 116, 187, 138, 123, 199, 148, 131, 206, 150, 135, 209, 153, 138, 213, 157, 140, 218, 162, 145, 221, 165, 148, 221, 168, 150, 223, 171, 150, 223, 172, 151, 224, 174, 151, 229, 179, 156, 231, 184, 158, 230, 183, 157, 227, 180, 152, 226, 179, 151, 225, 178, 150, 224, 177, 151, 215, 165, 142, 200, 149, 128, 188, 137, 116, 182, 131, 110, 173, 122, 101, 160, 109, 88, 158, 107, 86, 165, 114, 93, 175, 124, 103, 197, 146, 125, 214, 163, 142, 220, 169, 148, 223, 172, 151, 227, 176, 155, 225, 174, 153, 209, 159, 136, 214, 162, 138, 223, 175, 152, 205, 167, 148, 172, 142, 131, 61, 42, 36, 49, 39, 38, 43, 41, 44, 42, 43, 48, 41, 44, 49, 41, 44, 49, 44, 45, 49, 45, 44, 49, 47, 45, 48, 48, 46, 49, 48, 46, 51, 48, 46, 51, 122, 125, 132, 123, 126, 133, 124, 127, 134, 125, 128, 135, 126, 129, 136, 126, 129, 136, 126, 129, 136, 126, 129, 136, 126, 129, 136, 126, 129, 136, 124, 127, 134, 122, 125, 132, 122, 125, 132, 125, 128, 135, 123, 126, 133, 120, 123, 130, 118, 121, 128, 118, 121, 128, 114, 117, 124, 115, 118, 125, 104, 107, 114, 86, 89, 96, 72, 75, 82, 51, 54, 61, 50, 51, 56, 50, 51, 56, 54, 55, 60, 54, 55, 60, 60, 61, 66, 67, 68, 73, 67, 68, 72, 75, 78, 83, 73, 78, 84, 76, 79, 86, 80, 79, 85, 83, 80, 87, 88, 81, 88, 90, 85, 91, 89, 90, 94, 88, 93, 96, 89, 99, 100, 90, 100, 99, 100, 104, 103, 96, 91, 87, 130, 111, 105, 186, 151, 145, 205, 156, 151, 214, 160, 150, 218, 166, 152, 218, 167, 148, 212, 160, 139, 207, 155, 133, 213, 159, 133, 220, 166, 138, 228, 177, 148, 239, 188, 161, 243, 193, 168, 234, 186, 163, 247, 199, 177, 248, 197, 178, 238, 185, 167, 240, 183, 166, 238, 179, 163, 237, 178, 162, 226, 168, 154, 224, 168, 155, 223, 167, 154, 216, 159, 148, 213, 156, 145, 210, 153, 142, 205, 148, 139, 209, 152, 141, 202, 148, 136, 204, 152, 139, 196, 147, 132, 192, 143, 128, 197, 150, 132, 196, 151, 132, 192, 149, 130, 200, 155, 136, 206, 155, 138, 214, 161, 145, 219, 163, 146, 216, 163, 145, 218, 165, 147, 224, 171, 153, 225, 174, 153, 222, 171, 150, 225, 175, 152, 231, 181, 158, 233, 186, 160, 230, 183, 157, 226, 179, 153, 223, 176, 148, 223, 176, 148, 223, 176, 150, 213, 163, 140, 198, 147, 126, 186, 135, 114, 180, 129, 108, 167, 116, 95, 152, 101, 80, 157, 106, 85, 172, 121, 100, 180, 129, 108, 203, 152, 131, 216, 165, 144, 220, 169, 148, 227, 176, 155, 224, 173, 152, 218, 167, 146, 226, 176, 153, 223, 169, 143, 218, 166, 142, 206, 164, 142, 199, 166, 151, 114, 91, 83, 24, 10, 7, 56, 50, 50, 42, 42, 44, 43, 44, 48, 43, 44, 48, 44, 45, 49, 44, 45, 49, 46, 46, 48, 47, 45, 48, 48, 46, 51, 48, 46, 51, 123, 126, 133, 123, 126, 133, 124, 127, 134, 126, 129, 136, 127, 130, 137, 127, 130, 137, 127, 130, 137, 127, 130, 137, 125, 128, 135, 125, 128, 135, 124, 127, 134, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 115, 118, 125, 110, 113, 120, 105, 108, 115, 98, 101, 108, 84, 87, 94, 65, 68, 75, 53, 56, 63, 49, 52, 59, 54, 54, 62, 57, 57, 65, 62, 63, 68, 66, 67, 72, 71, 72, 77, 76, 77, 82, 80, 81, 86, 81, 84, 89, 84, 89, 95, 85, 90, 96, 90, 89, 95, 94, 91, 98, 100, 93, 100, 103, 98, 104, 102, 103, 108, 101, 106, 110, 99, 110, 112, 103, 115, 115, 108, 117, 116, 108, 108, 106, 119, 105, 102, 156, 128, 124, 195, 154, 150, 208, 159, 154, 211, 161, 150, 218, 166, 152, 220, 167, 149, 214, 159, 139, 209, 153, 130, 212, 158, 132, 220, 169, 142, 226, 176, 149, 236, 189, 163, 238, 192, 168, 244, 198, 175, 249, 203, 180, 248, 200, 178, 244, 192, 171, 240, 185, 165, 235, 183, 162, 227, 178, 161, 223, 176, 158, 218, 169, 152, 214, 165, 150, 212, 163, 148, 209, 160, 145, 206, 157, 143, 204, 155, 141, 206, 158, 144, 205, 158, 142, 203, 157, 141, 202, 156, 140, 201, 156, 137, 201, 158, 139, 203, 161, 139, 207, 162, 141, 213, 165, 145, 219, 168, 149, 222, 169, 151, 221, 170, 151, 220, 169, 150, 221, 170, 151, 224, 173, 152, 227, 176, 155, 231, 181, 158, 231, 181, 158, 231, 183, 160, 232, 185, 159, 230, 183, 157, 225, 178, 152, 221, 175, 149, 221, 175, 149, 206, 158, 135, 191, 143, 121, 180, 132, 110, 166, 118, 96, 155, 107, 85, 153, 105, 83, 155, 107, 85, 169, 121, 99, 190, 142, 120, 206, 158, 136, 216, 168, 146, 219, 171, 149, 222, 174, 152, 223, 175, 153, 222, 174, 152, 225, 175, 152, 226, 170, 143, 218, 164, 138, 213, 167, 144, 206, 169, 151, 156, 128, 116, 14, 0, 0, 44, 34, 32, 34, 30, 29, 36, 36, 38, 50, 51, 55, 39, 40, 44, 43, 44, 48, 48, 47, 52, 42, 41, 46, 49, 47, 52, 45, 43, 48, 122, 125, 132, 123, 126, 133, 124, 127, 134, 125, 128, 135, 126, 129, 136, 126, 129, 136, 126, 129, 136, 126, 129, 136, 125, 128, 135, 125, 128, 135, 125, 128, 135, 124, 127, 134, 123, 126, 133, 123, 126, 133, 122, 125, 132, 122, 125, 132, 115, 118, 125, 108, 111, 118, 99, 102, 109, 90, 93, 100, 78, 81, 88, 65, 68, 75, 58, 61, 68, 59, 62, 69, 67, 67, 75, 69, 69, 77, 73, 74, 79, 77, 78, 83, 81, 82, 87, 85, 86, 91, 88, 89, 94, 89, 92, 99, 92, 96, 105, 93, 97, 106, 101, 100, 108, 105, 102, 109, 111, 106, 113, 112, 110, 115, 113, 114, 119, 111, 116, 120, 109, 120, 122, 102, 116, 117, 108, 118, 119, 116, 118, 117, 118, 108, 107, 131, 111, 110, 167, 136, 133, 201, 160, 156, 206, 159, 153, 211, 161, 150, 218, 166, 152, 219, 166, 148, 213, 158, 137, 205, 151, 127, 206, 154, 130, 215, 165, 138, 226, 179, 153, 232, 186, 162, 238, 193, 170, 238, 193, 170, 239, 193, 170, 240, 192, 169, 241, 191, 168, 236, 188, 165, 233, 186, 166, 229, 184, 165, 225, 180, 161, 222, 177, 158, 220, 174, 158, 219, 173, 157, 219, 171, 157, 218, 170, 156, 218, 171, 155, 218, 171, 155, 215, 169, 153, 212, 166, 150, 210, 165, 146, 210, 163, 145, 211, 164, 144, 212, 165, 145, 215, 167, 147, 220, 169, 150, 222, 171, 152, 223, 172, 153, 223, 172, 153, 225, 174, 155, 228, 177, 156, 230, 179, 158, 234, 183, 162, 235, 185, 162, 233, 185, 162, 232, 184, 161, 228, 180, 157, 222, 176, 150, 218, 172, 146, 216, 170, 146, 200, 152, 130, 185, 137, 115, 174, 126, 104, 159, 111, 89, 153, 105, 83, 156, 108, 86, 160, 112, 90, 172, 124, 102, 198, 150, 128, 212, 164, 142, 219, 171, 149, 219, 171, 149, 222, 174, 152, 222, 174, 152, 220, 172, 150, 223, 173, 150, 226, 170, 145, 224, 168, 143, 211, 163, 140, 213, 172, 152, 190, 158, 143, 93, 71, 58, 11, 0, 0, 26, 18, 15, 26, 22, 21, 32, 32, 32, 44, 44, 46, 45, 46, 50, 41, 40, 45, 41, 40, 45, 45, 43, 48, 45, 43, 48, 121, 124, 131, 122, 125, 132, 123, 126, 133, 124, 127, 134, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 124, 127, 134, 122, 125, 132, 121, 124, 131, 120, 123, 130, 116, 116, 124, 107, 107, 115, 97, 97, 105, 88, 88, 96, 79, 79, 87, 70, 70, 78, 69, 69, 77, 72, 72, 80, 77, 77, 85, 79, 79, 87, 83, 83, 91, 87, 87, 95, 90, 90, 98, 94, 94, 102, 97, 97, 105, 97, 100, 107, 100, 104, 113, 104, 107, 116, 110, 110, 118, 116, 113, 120, 119, 116, 123, 120, 117, 124, 119, 120, 125, 116, 121, 125, 115, 124, 129, 108, 119, 121, 109, 119, 121, 117, 121, 124, 118, 114, 115, 116, 102, 102, 137, 116, 115, 175, 144, 141, 200, 159, 155, 204, 157, 151, 207, 159, 147, 214, 162, 148, 217, 164, 146, 213, 161, 139, 208, 156, 132, 204, 154, 129, 214, 166, 143, 224, 178, 154, 230, 185, 162, 228, 183, 160, 228, 184, 159, 235, 189, 165, 238, 192, 168, 237, 189, 166, 236, 190, 167, 234, 187, 167, 230, 183, 163, 228, 181, 161, 226, 179, 161, 226, 179, 161, 227, 178, 163, 227, 178, 163, 224, 175, 160, 225, 176, 161, 227, 175, 161, 226, 174, 160, 225, 174, 157, 226, 173, 157, 226, 173, 157, 227, 174, 158, 222, 171, 154, 221, 172, 155, 222, 173, 156, 224, 175, 158, 228, 177, 158, 230, 179, 160, 231, 180, 161, 232, 181, 160, 235, 187, 165, 236, 188, 166, 236, 188, 166, 233, 185, 162, 228, 182, 158, 223, 177, 153, 216, 170, 146, 212, 166, 142, 194, 146, 124, 177, 129, 107, 165, 117, 95, 153, 105, 83, 152, 104, 82, 160, 112, 90, 167, 119, 97, 179, 131, 109, 205, 157, 135, 215, 167, 145, 219, 171, 149, 218, 170, 148, 221, 173, 151, 222, 174, 152, 219, 171, 149, 221, 171, 148, 218, 162, 137, 227, 171, 146, 211, 161, 138, 204, 162, 140, 202, 167, 148, 159, 131, 117, 17, 0, 0, 19, 6, 0, 14, 6, 3, 5, 1, 0, 30, 30, 30, 42, 41, 46, 42, 41, 46, 47, 46, 52, 42, 41, 47, 46, 45, 51, 121, 124, 131, 122, 125, 132, 123, 126, 133, 124, 127, 134, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 125, 128, 135, 123, 126, 133, 122, 125, 132, 120, 123, 130, 119, 122, 129, 114, 114, 122, 108, 108, 116, 100, 100, 108, 93, 93, 101, 85, 85, 93, 79, 79, 87, 78, 78, 86, 80, 80, 88, 84, 84, 92, 87, 87, 95, 91, 91, 99, 95, 95, 103, 99, 99, 107, 103, 103, 111, 106, 106, 114, 107, 110, 117, 110, 113, 122, 112, 115, 124, 117, 117, 125, 120, 119, 127, 121, 120, 126, 120, 121, 126, 117, 120, 125, 115, 120, 124, 113, 120, 126, 113, 122, 127, 109, 116, 122, 111, 116, 120, 119, 119, 121, 117, 111, 113, 119, 107, 107, 136, 116, 115, 179, 148, 145, 195, 156, 151, 201, 158, 149, 201, 155, 142, 209, 160, 143, 220, 169, 148, 218, 166, 144, 204, 154, 131, 208, 160, 137, 216, 170, 146, 223, 178, 155, 223, 178, 155, 223, 179, 154, 227, 183, 158, 232, 186, 160, 234, 188, 162, 238, 190, 167, 235, 187, 165, 232, 184, 164, 229, 181, 161, 227, 178, 161, 227, 178, 161, 227, 178, 163, 227, 178, 163, 226, 174, 160, 228, 176, 162, 230, 177, 163, 231, 178, 164, 234, 178, 165, 234, 178, 163, 236, 178, 164, 236, 180, 165, 229, 178, 161, 225, 176, 159, 225, 176, 159, 227, 178, 161, 231, 180, 161, 231, 180, 161, 231, 180, 161, 231, 180, 161, 230, 182, 162, 234, 186, 164, 235, 187, 165, 232, 184, 162, 228, 182, 159, 223, 177, 153, 214, 170, 145, 206, 162, 137, 190, 142, 120, 168, 120, 98, 156, 108, 86, 151, 103, 81, 154, 106, 84, 162, 114, 92, 172, 124, 102, 189, 141, 119, 207, 159, 137, 215, 167, 145, 217, 169, 147, 217, 169, 147, 221, 173, 151, 222, 174, 152, 219, 171, 149, 221, 170, 149, 222, 168, 144, 231, 177, 153, 218, 168, 145, 200, 155, 132, 206, 168, 147, 189, 158, 138, 95, 72, 56, 14, 0, 0, 20, 10, 1, 4, 0, 0, 8, 7, 5, 25, 25, 27, 40, 39, 44, 46, 45, 51, 38, 37, 43, 48, 47, 53, 121, 124, 131, 122, 125, 132, 123, 126, 133, 124, 127, 134, 124, 127, 134, 125, 128, 135, 124, 127, 134, 124, 127, 134, 124, 127, 134, 124, 127, 134, 124, 127, 134, 124, 127, 134, 123, 126, 133, 121, 124, 131, 119, 122, 129, 117, 120, 127, 115, 115, 123, 111, 111, 119, 104, 104, 112, 98, 98, 106, 92, 92, 100, 88, 88, 96, 87, 87, 95, 89, 89, 97, 93, 96, 103, 96, 99, 106, 100, 103, 110, 104, 107, 114, 108, 111, 118, 111, 114, 121, 114, 117, 124, 116, 119, 126, 118, 121, 130, 118, 121, 130, 119, 122, 129, 119, 122, 129, 119, 122, 127, 119, 122, 127, 117, 122, 126, 116, 121, 125, 113, 118, 124, 117, 121, 130, 112, 116, 125, 110, 113, 120, 119, 120, 125, 119, 119, 121, 111, 109, 110, 115, 107, 105, 143, 122, 119, 173, 144, 140, 195, 162, 153, 197, 159, 148, 199, 156, 140, 208, 161, 143, 214, 163, 142, 211, 160, 139, 208, 160, 138, 210, 164, 141, 218, 172, 149, 225, 179, 156, 226, 180, 156, 225, 179, 155, 228, 182, 156, 234, 187, 161, 240, 190, 167, 240, 188, 166, 238, 186, 165, 234, 183, 162, 232, 181, 162, 232, 181, 164, 232, 180, 166, 232, 180, 166, 232, 180, 166, 233, 181, 167, 235, 181, 169, 236, 182, 170, 236, 179, 168, 235, 179, 166, 236, 178, 166, 235, 179, 166, 230, 181, 166, 226, 179, 163, 225, 178, 160, 228, 181, 163, 231, 182, 165, 230, 181, 164, 228, 179, 162, 228, 180, 160, 226, 178, 158, 231, 183, 163, 233, 185, 165, 229, 181, 161, 224, 177, 157, 219, 174, 151, 208, 163, 140, 197, 152, 129, 184, 136, 116, 159, 111, 91, 150, 102, 82, 154, 106, 86, 159, 111, 91, 163, 115, 95, 173, 125, 105, 197, 149, 129, 208, 160, 140, 215, 167, 147, 216, 168, 148, 217, 169, 149, 222, 174, 154, 222, 174, 154, 218, 170, 150, 220, 169, 148, 220, 165, 144, 220, 165, 144, 210, 160, 137, 193, 147, 123, 206, 164, 142, 197, 161, 139, 156, 127, 109, 21, 0, 0, 23, 9, 0, 17, 8, 1, 7, 2, 0, 10, 8, 9, 26, 25, 30, 29, 30, 35, 29, 29, 37, 38, 38, 46, 121, 124, 131, 122, 125, 132, 123, 126, 133, 124, 127, 134, 124, 127, 134, 124, 127, 134, 124, 127, 134, 124, 127, 134, 124, 127, 134, 124, 127, 134, 123, 126, 133, 122, 125, 132, 121, 124, 131, 119, 122, 129, 118, 121, 128, 117, 120, 127, 118, 118, 126, 114, 114, 122, 107, 107, 115, 101, 101, 109, 96, 96, 104, 95, 95, 103, 98, 98, 106, 100, 100, 108, 105, 108, 115, 107, 110, 117, 110, 113, 120, 113, 116, 123, 114, 117, 124, 115, 118, 125, 117, 120, 127, 118, 121, 130, 118, 120, 132, 118, 121, 130, 118, 121, 130, 116, 121, 127, 117, 122, 126, 117, 122, 126, 117, 122, 126, 117, 122, 128, 116, 119, 128, 117, 120, 129, 116, 116, 126, 114, 117, 126, 115, 118, 125, 111, 116, 120, 107, 116, 115, 115, 117, 114, 117, 106, 104, 140, 121, 115, 167, 142, 135, 187, 157, 146, 199, 162, 146, 202, 159, 142, 209, 161, 141, 215, 164, 143, 211, 160, 139, 207, 159, 137, 214, 166, 144, 224, 178, 155, 230, 182, 160, 227, 181, 157, 230, 182, 159, 236, 189, 163, 240, 188, 166, 240, 188, 166, 240, 188, 167, 238, 187, 166, 237, 186, 167, 235, 187, 167, 235, 186, 171, 236, 187, 172, 235, 186, 171, 236, 187, 172, 237, 188, 174, 239, 187, 174, 238, 186, 173, 237, 183, 171, 236, 182, 170, 235, 183, 169, 231, 184, 168, 226, 180, 164, 227, 180, 162, 231, 184, 166, 234, 185, 168, 231, 182, 165, 230, 181, 164, 231, 182, 165, 228, 180, 160, 234, 186, 166, 234, 186, 166, 225, 178, 158, 219, 174, 153, 214, 169, 148, 201, 156, 133, 187, 142, 119, 171, 124, 104, 151, 103, 83, 148, 100, 80, 156, 108, 88, 162, 114, 94, 165, 117, 97, 177, 129, 109, 202, 154, 134, 212, 164, 144, 217, 169, 149, 218, 170, 150, 218, 170, 150, 222, 174, 154, 220, 172, 152, 216, 168, 148, 219, 168, 149, 223, 171, 150, 222, 170, 149, 221, 169, 147, 208, 160, 137, 217, 173, 148, 213, 172, 150, 193, 161, 140, 103, 77, 60, 14, 0, 0, 18, 8, 0, 14, 6, 3, 9, 7, 8, 16, 15, 20, 19, 19, 27, 21, 21, 31, 24, 24, 34, 121, 124, 131, 121, 124, 131, 122, 125, 132, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 122, 125, 132, 121, 124, 131, 119, 122, 129, 118, 121, 128, 118, 121, 128, 117, 120, 127, 117, 117, 125, 115, 115, 123, 110, 110, 118, 106, 106, 114, 103, 103, 111, 104, 104, 112, 108, 108, 116, 110, 110, 118, 111, 114, 121, 112, 115, 122, 114, 117, 124, 116, 119, 126, 116, 119, 128, 115, 118, 127, 115, 118, 127, 116, 119, 128, 118, 118, 130, 116, 119, 128, 115, 119, 128, 113, 120, 126, 114, 122, 125, 114, 122, 125, 116, 121, 127, 117, 120, 127, 120, 120, 130, 117, 117, 129, 120, 118, 131, 120, 120, 130, 112, 117, 123, 108, 118, 120, 107, 121, 121, 110, 121, 117, 112, 111, 107, 118, 107, 101, 132, 115, 107, 159, 135, 123, 185, 152, 137, 199, 157, 141, 205, 158, 140, 210, 159, 140, 211, 160, 139, 208, 157, 136, 210, 159, 140, 217, 169, 147, 228, 177, 156, 230, 182, 159, 235, 185, 162, 237, 187, 164, 238, 186, 162, 239, 187, 163, 241, 189, 167, 240, 189, 168, 237, 190, 170, 236, 189, 169, 236, 190, 174, 237, 191, 175, 233, 190, 174, 234, 191, 175, 235, 192, 176, 238, 192, 177, 237, 191, 178, 237, 189, 175, 237, 189, 175, 237, 189, 175, 234, 188, 172, 231, 185, 169, 231, 185, 169, 236, 189, 173, 237, 188, 173, 233, 184, 169, 232, 183, 166, 234, 185, 168, 229, 180, 163, 234, 185, 168, 229, 182, 164, 217, 170, 152, 209, 164, 143, 204, 159, 138, 189, 147, 125, 175, 130, 109, 156, 109, 89, 147, 99, 79, 152, 104, 84, 158, 110, 90, 163, 115, 95, 172, 124, 104, 184, 136, 116, 206, 158, 138, 213, 165, 145, 217, 169, 149, 217, 169, 149, 217, 169, 149, 219, 171, 151, 217, 169, 149, 215, 167, 147, 220, 169, 150, 218, 165, 147, 220, 167, 149, 221, 169, 148, 214, 164, 141, 215, 169, 145, 209, 167, 143, 201, 165, 143, 174, 146, 125, 58, 39, 24, 18, 4, 0, 12, 5, 0, 14, 10, 9, 12, 11, 16, 19, 19, 27, 14, 17, 26, 15, 17, 29, 120, 123, 130, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 123, 126, 133, 122, 125, 132, 121, 124, 131, 119, 122, 129, 118, 121, 128, 118, 121, 128, 117, 120, 127, 117, 120, 127, 114, 114, 122, 114, 114, 122, 113, 113, 121, 112, 112, 120, 111, 111, 119, 112, 112, 120, 114, 114, 122, 115, 115, 123, 113, 116, 123, 115, 118, 125, 116, 119, 126, 117, 120, 127, 117, 120, 129, 116, 119, 128, 115, 118, 127, 115, 118, 127, 119, 119, 129, 118, 121, 130, 117, 122, 128, 116, 123, 129, 116, 124, 127, 115, 123, 126, 116, 121, 127, 117, 120, 127, 118, 118, 128, 117, 117, 127, 121, 119, 132, 119, 119, 129, 111, 116, 122, 113, 122, 127, 111, 125, 126, 101, 111, 110, 117, 117, 115, 116, 111, 107, 115, 106, 101, 124, 111, 103, 147, 127, 118, 174, 146, 134, 191, 153, 140, 199, 153, 138, 209, 160, 143, 208, 157, 138, 205, 157, 135, 209, 161, 139, 220, 172, 150, 231, 183, 161, 234, 186, 164, 234, 183, 162, 237, 187, 164, 239, 189, 166, 242, 192, 169, 240, 192, 170, 239, 192, 172, 237, 192, 173, 237, 191, 175, 236, 193, 176, 236, 193, 177, 235, 193, 177, 237, 194, 178, 237, 194, 178, 235, 192, 176, 234, 191, 175, 234, 191, 175, 234, 191, 174, 237, 194, 177, 236, 190, 174, 236, 190, 174, 239, 193, 177, 238, 191, 175, 234, 185, 170, 232, 183, 166, 234, 185, 168, 225, 176, 159, 228, 179, 162, 221, 174, 156, 206, 159, 141, 196, 151, 130, 192, 147, 126, 180, 135, 114, 164, 119, 98, 145, 98, 78, 146, 99, 79, 156, 108, 88, 159, 111, 91, 164, 116, 96, 178, 130, 110, 192, 144, 124, 209, 161, 141, 212, 164, 144, 215, 167, 147, 215, 167, 147, 214, 166, 146, 216, 168, 148, 214, 166, 146, 214, 166, 146, 220, 172, 152, 221, 170, 151, 220, 169, 150, 221, 169, 148, 220, 170, 147, 222, 174, 151, 209, 165, 140, 210, 170, 145, 195, 160, 138, 152, 125, 106, 36, 17, 3, 11, 0, 0, 16, 6, 4, 12, 8, 9, 20, 19, 24, 12, 12, 20, 16, 19, 28, 119, 122, 129, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 121, 124, 131, 121, 124, 131, 120, 123, 130, 120, 123, 130, 119, 122, 129, 118, 121, 128, 117, 120, 127, 116, 119, 126, 116, 119, 126, 114, 117, 124, 114, 117, 124, 113, 116, 123, 112, 115, 122, 112, 115, 122, 113, 116, 123, 114, 117, 124, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 121, 127, 117, 122, 128, 117, 122, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 120, 120, 130, 117, 120, 127, 116, 119, 126, 114, 119, 125, 112, 119, 125, 114, 118, 121, 120, 116, 117, 119, 113, 115, 111, 112, 114, 108, 109, 111, 109, 109, 109, 126, 116, 115, 158, 134, 130, 185, 151, 142, 197, 153, 140, 196, 149, 131, 211, 167, 142, 200, 156, 129, 205, 163, 138, 218, 173, 150, 228, 181, 163, 234, 185, 168, 237, 189, 167, 238, 190, 168, 238, 190, 168, 238, 192, 169, 240, 193, 173, 241, 194, 176, 239, 192, 176, 236, 190, 174, 241, 195, 179, 236, 193, 176, 237, 191, 175, 239, 193, 177, 240, 194, 178, 239, 193, 177, 238, 192, 176, 236, 193, 176, 233, 190, 173, 233, 190, 173, 234, 191, 174, 238, 192, 176, 238, 192, 176, 235, 188, 172, 227, 180, 164, 221, 174, 158, 217, 170, 152, 214, 167, 149, 204, 157, 139, 192, 145, 127, 184, 137, 119, 176, 129, 111, 161, 114, 96, 146, 101, 82, 138, 91, 71, 150, 105, 84, 159, 112, 92, 163, 116, 96, 172, 125, 105, 185, 138, 118, 198, 151, 131, 209, 162, 142, 211, 164, 144, 213, 166, 146, 214, 167, 147, 214, 167, 147, 214, 166, 146, 213, 165, 145, 214, 166, 146, 215, 167, 147, 216, 168, 148, 217, 169, 147, 220, 169, 148, 217, 169, 146, 217, 169, 146, 216, 170, 146, 212, 168, 143, 206, 164, 140, 192, 154, 131, 141, 108, 89, 34, 8, 0, 14, 0, 0, 26, 15, 9, 22, 18, 15, 14, 15, 19, 12, 15, 20, 119, 122, 129, 119, 122, 129, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 120, 123, 130, 120, 123, 130, 119, 122, 129, 119, 122, 129, 119, 122, 129, 118, 121, 128, 117, 120, 127, 116, 119, 126, 115, 118, 125, 115, 118, 125, 114, 117, 124, 114, 117, 124, 113, 116, 123, 113, 116, 123, 113, 116, 123, 113, 116, 123, 114, 117, 124, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 117, 120, 127, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 117, 120, 127, 117, 120, 127, 116, 119, 126, 115, 118, 125, 118, 117, 123, 121, 115, 119, 120, 115, 119, 111, 116, 120, 105, 114, 119, 102, 111, 116, 108, 109, 113, 128, 114, 114, 147, 119, 115, 177, 139, 128, 186, 143, 124, 200, 158, 133, 198, 157, 129, 203, 161, 136, 208, 166, 142, 221, 175, 159, 235, 188, 172, 235, 188, 168, 235, 189, 166, 238, 192, 169, 242, 195, 175, 242, 195, 177, 239, 192, 174, 238, 191, 175, 240, 193, 177, 239, 193, 177, 237, 191, 175, 236, 190, 174, 236, 190, 174, 237, 191, 175, 238, 192, 176, 237, 192, 173, 233, 190, 171, 224, 181, 164, 227, 186, 168, 233, 190, 173, 236, 193, 176, 236, 190, 174, 228, 182, 166, 219, 172, 156, 212, 165, 149, 208, 161, 143, 207, 160, 142, 196, 149, 131, 178, 131, 113, 166, 119, 101, 160, 113, 95, 146, 99, 81, 128, 81, 63, 144, 99, 78, 155, 110, 89, 160, 115, 94, 164, 119, 98, 177, 130, 110, 191, 144, 124, 202, 155, 135, 211, 164, 144, 213, 166, 146, 214, 167, 147, 214, 167, 147, 213, 166, 146, 214, 166, 146, 214, 166, 146, 215, 167, 147, 216, 168, 148, 216, 168, 146, 218, 170, 148, 218, 170, 148, 218, 170, 148, 218, 170, 147, 218, 170, 147, 215, 169, 143, 211, 165, 139, 208, 164, 139, 175, 137, 114, 102, 71, 51, 35, 12, 0, 33, 19, 10, 21, 14, 8, 18, 18, 18, 11, 15, 18, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 119, 122, 129, 119, 122, 129, 118, 121, 128, 118, 121, 128, 118, 121, 128, 117, 120, 127, 117, 120, 127, 116, 119, 126, 115, 118, 125, 114, 117, 124, 115, 118, 125, 114, 117, 124, 114, 117, 124, 113, 116, 123, 113, 116, 123, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 119, 122, 129, 119, 122, 129, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 117, 120, 127, 117, 120, 127, 119, 120, 125, 121, 116, 122, 119, 117, 122, 113, 118, 122, 110, 117, 123, 107, 114, 120, 108, 107, 112, 115, 103, 105, 124, 100, 96, 180, 146, 136, 189, 148, 130, 180, 135, 112, 186, 142, 115, 196, 152, 127, 203, 158, 135, 211, 166, 147, 223, 178, 159, 230, 185, 164, 228, 183, 160, 231, 186, 165, 238, 193, 172, 240, 195, 176, 238, 193, 174, 237, 191, 175, 240, 194, 178, 239, 193, 178, 241, 195, 180, 241, 195, 180, 239, 193, 178, 238, 192, 176, 238, 192, 176, 232, 186, 170, 224, 181, 164, 216, 173, 156, 214, 173, 155, 214, 171, 154, 213, 170, 153, 213, 167, 151, 210, 164, 148, 209, 162, 146, 207, 160, 144, 203, 154, 137, 189, 140, 123, 176, 127, 110, 167, 118, 101, 150, 103, 85, 133, 86, 68, 130, 83, 65, 136, 89, 71, 153, 108, 87, 162, 117, 96, 165, 120, 99, 170, 125, 104, 185, 138, 118, 199, 152, 132, 207, 160, 140, 212, 165, 145, 214, 167, 147, 212, 165, 145, 210, 163, 143, 210, 163, 143, 212, 164, 144, 213, 165, 145, 214, 166, 146, 215, 167, 147, 215, 167, 145, 217, 169, 147, 218, 170, 148, 218, 170, 148, 218, 170, 147, 219, 171, 148, 217, 170, 144, 213, 167, 141, 213, 169, 144, 194, 156, 133, 153, 120, 101, 63, 40, 24, 39, 22, 12, 22, 13, 8, 19, 17, 18, 16, 17, 19, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 117, 120, 127, 118, 121, 128, 118, 121, 128, 119, 122, 129, 119, 122, 129, 119, 122, 129, 118, 121, 128, 118, 121, 128, 119, 122, 129, 119, 122, 129, 119, 122, 129, 119, 122, 129, 118, 121, 128, 120, 121, 126, 121, 120, 125, 119, 118, 123, 114, 117, 124, 113, 118, 124, 112, 117, 123, 114, 113, 119, 116, 107, 108, 121, 102, 98, 168, 138, 127, 202, 165, 147, 197, 152, 129, 195, 149, 125, 183, 137, 113, 180, 134, 111, 191, 146, 127, 211, 166, 147, 224, 179, 158, 225, 180, 157, 228, 183, 162, 233, 188, 167, 236, 191, 172, 237, 192, 173, 237, 191, 175, 236, 190, 174, 237, 191, 176, 242, 196, 181, 243, 197, 182, 239, 193, 178, 235, 189, 174, 231, 185, 169, 221, 175, 159, 208, 162, 146, 197, 154, 137, 199, 158, 140, 206, 163, 146, 210, 167, 150, 213, 167, 151, 207, 161, 145, 199, 152, 136, 192, 145, 129, 192, 143, 126, 171, 122, 105, 155, 106, 89, 148, 99, 82, 134, 85, 68, 121, 74, 56, 132, 85, 67, 155, 108, 90, 158, 113, 92, 168, 123, 102, 174, 129, 108, 180, 135, 114, 194, 147, 127, 205, 158, 138, 209, 162, 142, 212, 165, 145, 213, 166, 146, 211, 164, 144, 208, 161, 141, 207, 160, 140, 210, 162, 142, 213, 165, 145, 214, 166, 146, 214, 166, 146, 214, 166, 144, 216, 168, 146, 217, 169, 147, 217, 169, 147, 218, 170, 147, 220, 172, 149, 218, 171, 145, 214, 168, 142, 214, 170, 145, 201, 161, 136, 163, 131, 110, 97, 71, 56, 45, 27, 17, 24, 15, 8, 16, 15, 13, 18, 20, 19, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 115, 118, 125, 116, 119, 126, 117, 120, 127, 117, 120, 127, 118, 121, 128, 119, 122, 129, 119, 122, 129, 119, 122, 129, 119, 122, 129, 119, 122, 129, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 120, 123, 130, 120, 123, 130, 120, 123, 130, 121, 124, 129, 118, 121, 126, 115, 118, 125, 113, 116, 125, 113, 116, 125, 115, 114, 120, 114, 108, 110, 116, 102, 99, 148, 124, 114, 202, 169, 152, 214, 172, 150, 215, 167, 144, 201, 151, 128, 189, 141, 119, 184, 139, 118, 184, 142, 120, 204, 162, 140, 217, 175, 153, 228, 185, 166, 230, 187, 168, 228, 185, 168, 230, 187, 170, 231, 188, 172, 230, 187, 171, 228, 184, 171, 233, 189, 176, 233, 189, 176, 227, 184, 168, 224, 178, 163, 221, 175, 160, 210, 164, 149, 198, 152, 137, 188, 145, 128, 191, 148, 131, 199, 153, 137, 205, 159, 143, 207, 160, 144, 199, 152, 136, 187, 138, 123, 176, 127, 112, 165, 114, 97, 154, 103, 86, 136, 85, 68, 119, 70, 53, 120, 71, 54, 134, 85, 68, 149, 100, 83, 156, 109, 91, 162, 117, 96, 176, 131, 110, 186, 141, 120, 192, 147, 126, 203, 156, 136, 209, 162, 142, 209, 162, 142, 211, 164, 144, 213, 166, 146, 211, 164, 144, 208, 161, 141, 208, 161, 141, 211, 163, 143, 214, 166, 146, 215, 167, 147, 215, 167, 147, 215, 167, 147, 217, 169, 149, 218, 170, 150, 218, 170, 148, 219, 171, 148, 221, 173, 150, 220, 173, 147, 216, 171, 142, 219, 175, 148, 208, 168, 143, 175, 140, 118, 120, 93, 76, 53, 35, 23, 22, 11, 5, 21, 17, 14, 14, 14, 12, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 118, 121, 128, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 120, 123, 130, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 121, 124, 131, 121, 124, 131, 120, 123, 130, 120, 123, 130, 119, 124, 128, 118, 123, 129, 117, 120, 129, 117, 117, 127, 117, 117, 127, 116, 115, 123, 113, 111, 114, 112, 104, 101, 137, 119, 109, 186, 157, 143, 212, 171, 153, 220, 172, 152, 223, 171, 150, 220, 169, 148, 200, 155, 132, 179, 137, 115, 180, 138, 116, 198, 156, 134, 217, 174, 155, 221, 178, 159, 219, 176, 159, 220, 177, 160, 224, 181, 165, 228, 185, 169, 225, 181, 168, 226, 182, 169, 223, 179, 166, 217, 173, 160, 216, 170, 155, 214, 168, 153, 208, 162, 147, 201, 155, 140, 190, 147, 130, 190, 147, 130, 191, 145, 129, 190, 144, 128, 187, 140, 124, 177, 130, 114, 165, 116, 101, 156, 107, 92, 132, 81, 64, 121, 70, 53, 111, 60, 43, 113, 62, 45, 128, 79, 62, 148, 99, 82, 159, 110, 93, 160, 113, 95, 172, 125, 105, 186, 141, 120, 197, 152, 131, 201, 156, 135, 208, 161, 141, 210, 163, 143, 208, 161, 141, 210, 163, 143, 210, 163, 143, 209, 162, 142, 209, 162, 142, 210, 163, 143, 213, 165, 145, 214, 166, 146, 216, 168, 148, 216, 168, 148, 219, 171, 151, 221, 173, 153, 221, 173, 153, 221, 173, 151, 222, 174, 152, 224, 177, 151, 222, 175, 149, 220, 173, 145, 217, 171, 145, 214, 172, 147, 196, 160, 138, 130, 101, 83, 54, 34, 23, 20, 7, 0, 30, 25, 21, 12, 11, 9, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 119, 122, 129, 120, 123, 130, 120, 123, 130, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 121, 124, 131, 121, 124, 131, 120, 125, 131, 115, 122, 128, 116, 123, 129, 119, 122, 131, 120, 118, 131, 118, 116, 129, 118, 117, 125, 114, 115, 119, 115, 111, 108, 118, 105, 97, 167, 144, 130, 218, 179, 164, 223, 174, 157, 222, 169, 151, 224, 172, 151, 219, 173, 150, 212, 170, 146, 185, 144, 122, 186, 145, 125, 192, 151, 131, 203, 162, 142, 208, 167, 149, 208, 166, 150, 211, 169, 155, 216, 174, 160, 218, 174, 161, 216, 172, 159, 211, 167, 154, 207, 163, 150, 204, 160, 147, 200, 156, 143, 195, 152, 136, 191, 148, 132, 180, 137, 120, 184, 141, 124, 189, 143, 127, 185, 139, 123, 173, 126, 110, 153, 106, 90, 134, 85, 70, 122, 73, 58, 111, 60, 43, 104, 53, 36, 109, 58, 41, 129, 78, 61, 145, 96, 79, 154, 105, 88, 164, 115, 98, 176, 129, 111, 186, 139, 119, 198, 153, 132, 205, 160, 139, 206, 161, 140, 210, 163, 143, 210, 163, 143, 208, 161, 141, 209, 162, 142, 209, 162, 142, 211, 164, 144, 213, 166, 146, 215, 168, 148, 217, 169, 149, 218, 170, 150, 219, 171, 151, 220, 172, 152, 221, 174, 154, 222, 175, 155, 222, 175, 155, 222, 176, 153, 223, 175, 153, 225, 178, 152, 226, 176, 151, 221, 174, 146, 217, 171, 145, 213, 171, 146, 206, 170, 148, 139, 110, 92, 47, 25, 12, 25, 10, 3, 29, 21, 18, 18, 14, 11, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 115, 118, 125, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 119, 122, 129, 120, 123, 130, 120, 123, 130, 120, 123, 130, 120, 123, 130, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 121, 124, 131, 121, 124, 131, 120, 125, 131, 115, 124, 129, 117, 126, 133, 122, 122, 134, 118, 116, 129, 114, 112, 125, 114, 114, 124, 112, 115, 120, 114, 114, 112, 113, 106, 98, 150, 130, 119, 211, 173, 162, 218, 170, 156, 225, 172, 154, 231, 179, 158, 229, 183, 159, 225, 183, 159, 217, 176, 154, 191, 150, 130, 177, 136, 116, 189, 148, 128, 203, 161, 145, 202, 160, 144, 198, 156, 142, 200, 158, 144, 206, 162, 149, 202, 158, 145, 199, 155, 142, 197, 153, 140, 192, 148, 135, 183, 139, 126, 175, 132, 116, 171, 128, 112, 171, 128, 111, 171, 128, 111, 169, 123, 107, 155, 109, 93, 136, 89, 73, 117, 70, 54, 104, 55, 40, 99, 50, 35, 103, 52, 35, 116, 65, 48, 133, 82, 65, 144, 93, 76, 148, 99, 82, 157, 108, 91, 172, 123, 106, 183, 136, 118, 198, 151, 131, 207, 162, 141, 210, 165, 144, 207, 162, 141, 210, 163, 143, 211, 164, 144, 209, 162, 142, 210, 163, 143, 213, 166, 146, 216, 169, 149, 220, 173, 153, 222, 175, 155, 224, 176, 156, 224, 176, 156, 225, 177, 157, 226, 178, 158, 222, 175, 155, 223, 176, 156, 223, 176, 156, 222, 175, 155, 223, 175, 153, 224, 176, 153, 225, 175, 150, 221, 174, 146, 226, 179, 153, 213, 171, 146, 206, 168, 147, 153, 122, 104, 38, 16, 3, 33, 19, 10, 18, 8, 6, 22, 17, 14, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 120, 125, 131, 117, 126, 133, 116, 125, 132, 121, 121, 133, 121, 119, 132, 119, 117, 130, 117, 117, 127, 111, 116, 120, 110, 114, 115, 116, 113, 108, 129, 112, 104, 193, 159, 149, 221, 175, 162, 226, 175, 158, 226, 175, 154, 232, 184, 161, 230, 186, 161, 224, 182, 160, 219, 178, 158, 206, 165, 145, 187, 146, 126, 173, 131, 115, 173, 131, 115, 182, 140, 126, 191, 149, 135, 191, 147, 134, 187, 143, 130, 186, 142, 129, 184, 140, 127, 180, 136, 123, 178, 134, 121, 170, 127, 111, 157, 114, 98, 150, 107, 90, 137, 94, 77, 121, 75, 59, 106, 60, 44, 96, 49, 33, 93, 46, 30, 99, 50, 35, 106, 57, 42, 123, 72, 55, 129, 78, 61, 137, 86, 69, 147, 96, 79, 159, 110, 93, 176, 127, 110, 189, 140, 123, 195, 148, 130, 206, 159, 141, 209, 164, 145, 213, 168, 149, 213, 168, 149, 211, 164, 146, 210, 163, 145, 213, 166, 148, 216, 169, 151, 223, 176, 158, 223, 176, 158, 222, 175, 157, 223, 176, 158, 224, 175, 158, 225, 176, 159, 224, 175, 158, 224, 175, 158, 223, 176, 158, 223, 176, 158, 222, 175, 155, 222, 175, 155, 223, 175, 153, 223, 175, 152, 224, 174, 149, 222, 175, 149, 225, 178, 152, 213, 171, 146, 210, 172, 151, 149, 118, 100, 35, 13, 0, 33, 19, 10, 21, 11, 9, 24, 19, 16, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 122, 125, 132, 121, 126, 132, 118, 125, 133, 117, 124, 132, 121, 121, 133, 121, 119, 132, 119, 119, 131, 115, 118, 127, 112, 117, 123, 111, 115, 118, 113, 112, 110, 123, 110, 104, 174, 145, 137, 211, 171, 159, 222, 175, 159, 226, 175, 156, 232, 184, 161, 232, 186, 162, 229, 187, 165, 229, 188, 168, 226, 183, 164, 213, 172, 152, 198, 155, 138, 181, 139, 123, 168, 126, 112, 160, 118, 104, 164, 120, 107, 158, 114, 101, 153, 109, 96, 146, 102, 89, 139, 95, 82, 138, 94, 81, 136, 93, 77, 129, 86, 70, 114, 71, 54, 113, 70, 53, 116, 70, 54, 119, 73, 57, 120, 73, 57, 120, 73, 57, 122, 73, 58, 125, 76, 61, 136, 85, 68, 147, 96, 79, 162, 111, 94, 175, 126, 109, 189, 140, 123, 202, 153, 136, 210, 161, 144, 211, 164, 146, 212, 167, 148, 213, 168, 149, 213, 168, 149, 211, 166, 147, 210, 163, 145, 210, 163, 145, 214, 167, 149, 218, 171, 153, 223, 176, 158, 222, 175, 157, 222, 175, 157, 223, 176, 158, 224, 175, 158, 225, 176, 159, 225, 176, 159, 224, 175, 158, 223, 176, 158, 223, 176, 158, 223, 176, 156, 223, 176, 156, 223, 175, 153, 223, 175, 152, 225, 175, 152, 222, 175, 149, 223, 177, 151, 214, 172, 147, 207, 171, 149, 144, 115, 97, 37, 15, 2, 30, 15, 8, 22, 14, 11, 22, 18, 15, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 119, 122, 129, 119, 122, 129, 120, 123, 130, 121, 124, 131, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 122, 125, 132, 123, 126, 133, 123, 126, 133, 122, 125, 132, 122, 125, 132, 122, 125, 132, 121, 126, 132, 120, 125, 131, 121, 121, 131, 120, 120, 130, 117, 119, 131, 115, 119, 130, 110, 117, 125, 111, 116, 120, 112, 112, 112, 118, 108, 106, 150, 127, 121, 200, 166, 156, 218, 175, 159, 224, 176, 156, 233, 183, 160, 232, 184, 161, 227, 182, 159, 227, 185, 163, 231, 186, 167, 227, 184, 165, 223, 177, 161, 210, 167, 150, 194, 151, 135, 181, 138, 122, 171, 127, 114, 165, 121, 108, 161, 117, 104, 156, 112, 99, 149, 107, 91, 150, 108, 92, 153, 111, 95, 150, 108, 92, 160, 119, 101, 160, 119, 101, 160, 117, 100, 161, 118, 101, 161, 115, 99, 160, 114, 98, 161, 114, 98, 163, 116, 100, 168, 119, 102, 180, 131, 114, 195, 146, 129, 208, 159, 142, 217, 168, 151, 221, 174, 156, 220, 173, 155, 218, 171, 153, 218, 173, 154, 215, 170, 151, 212, 167, 148, 208, 163, 144, 208, 161, 143, 210, 163, 145, 215, 168, 150, 218, 171, 153, 221, 174, 156, 222, 175, 157, 222, 175, 157, 223, 176, 158, 225, 176, 159, 225, 176, 159, 225, 176, 159, 225, 176, 159, 225, 176, 159, 224, 175, 158, 224, 176, 156, 224, 176, 156, 223, 175, 153, 223, 175, 152, 223, 175, 152, 222, 175, 149, 222, 176, 152, 216, 174, 150, 204, 167, 148, 140, 111, 95, 39, 19, 8, 25, 12, 6, 25, 20, 17, 18, 17, 15, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 122, 125, 132, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 122, 125, 132, 122, 125, 132, 121, 124, 131, 120, 123, 132, 119, 122, 131, 117, 121, 132, 114, 121, 131, 111, 118, 126, 112, 117, 123, 115, 114, 119, 118, 109, 110, 130, 112, 108, 188, 159, 151, 214, 176, 163, 223, 178, 159, 231, 180, 159, 233, 181, 159, 236, 188, 166, 233, 188, 167, 231, 184, 166, 229, 184, 165, 229, 183, 167, 227, 181, 165, 219, 173, 158, 208, 165, 149, 202, 158, 145, 198, 154, 141, 197, 153, 140, 197, 154, 138, 194, 152, 136, 196, 154, 138, 198, 156, 140, 194, 152, 136, 189, 148, 130, 187, 146, 128, 184, 141, 124, 182, 139, 122, 185, 139, 123, 190, 144, 128, 198, 151, 135, 203, 156, 140, 204, 155, 138, 211, 162, 145, 218, 169, 152, 221, 174, 156, 223, 176, 158, 222, 175, 157, 219, 172, 154, 216, 169, 151, 218, 173, 154, 214, 169, 150, 208, 163, 144, 204, 159, 140, 206, 159, 141, 209, 162, 144, 214, 167, 149, 217, 170, 152, 220, 173, 155, 221, 174, 156, 222, 175, 157, 223, 176, 158, 225, 176, 159, 225, 176, 159, 225, 176, 159, 226, 177, 160, 224, 175, 158, 224, 175, 158, 224, 176, 156, 223, 175, 155, 223, 175, 153, 223, 175, 153, 222, 174, 151, 221, 175, 149, 222, 178, 153, 217, 176, 154, 198, 163, 143, 133, 105, 91, 40, 22, 12, 21, 10, 6, 27, 23, 22, 16, 16, 16, 114, 117, 124, 114, 117, 124, 113, 116, 123, 113, 116, 123, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 118, 121, 128, 118, 121, 128, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 122, 125, 132, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 126, 125, 133, 124, 124, 132, 121, 124, 131, 119, 124, 130, 116, 123, 131, 115, 122, 130, 112, 119, 129, 114, 117, 126, 116, 115, 121, 118, 112, 114, 120, 106, 105, 172, 149, 143, 207, 175, 162, 224, 181, 164, 231, 179, 158, 234, 179, 158, 237, 186, 165, 234, 188, 165, 234, 186, 166, 231, 184, 164, 231, 184, 166, 229, 184, 165, 223, 177, 161, 217, 171, 155, 206, 163, 147, 200, 157, 141, 199, 156, 140, 201, 158, 142, 200, 158, 142, 201, 160, 142, 200, 159, 141, 194, 153, 135, 182, 144, 125, 185, 147, 128, 192, 151, 133, 197, 156, 138, 204, 161, 144, 211, 168, 151, 220, 174, 158, 223, 177, 161, 219, 172, 154, 222, 175, 157, 224, 177, 159, 223, 176, 158, 221, 174, 156, 220, 175, 156, 218, 173, 154, 216, 171, 152, 214, 169, 150, 210, 165, 146, 206, 161, 142, 204, 159, 140, 206, 159, 141, 210, 163, 145, 213, 166, 148, 215, 168, 150, 219, 172, 154, 221, 174, 156, 223, 176, 158, 224, 177, 159, 225, 176, 159, 225, 176, 159, 226, 177, 160, 226, 177, 160, 223, 174, 157, 223, 174, 157, 223, 175, 155, 223, 175, 155, 223, 175, 153, 223, 175, 153, 222, 174, 151, 221, 175, 151, 224, 179, 156, 217, 176, 154, 189, 156, 137, 123, 97, 84, 37, 18, 11, 21, 11, 9, 25, 23, 24, 15, 16, 18, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 114, 117, 124, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 118, 121, 128, 119, 122, 129, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 122, 125, 132, 123, 126, 133, 123, 126, 133, 123, 126, 133, 123, 126, 133, 125, 125, 133, 127, 124, 133, 125, 124, 132, 121, 124, 131, 118, 125, 131, 116, 125, 132, 115, 124, 131, 115, 119, 130, 115, 118, 127, 115, 114, 122, 118, 113, 119, 116, 106, 105, 151, 134, 127, 197, 169, 157, 223, 181, 165, 231, 178, 160, 236, 179, 159, 229, 177, 156, 229, 181, 159, 231, 183, 163, 231, 183, 163, 232, 183, 166, 232, 185, 167, 231, 184, 168, 228, 182, 166, 225, 179, 164, 213, 170, 154, 210, 167, 151, 212, 169, 153, 212, 171, 153, 215, 174, 156, 216, 175, 157, 210, 172, 153, 209, 171, 152, 214, 176, 157, 220, 179, 161, 222, 181, 163, 224, 181, 164, 225, 182, 165, 226, 180, 164, 224, 178, 162, 224, 177, 159, 227, 180, 162, 227, 180, 162, 225, 178, 160, 221, 176, 157, 219, 174, 155, 217, 172, 153, 215, 170, 151, 210, 165, 146, 208, 163, 144, 206, 161, 142, 205, 160, 141, 208, 161, 143, 211, 164, 146, 214, 167, 149, 215, 168, 150, 219, 172, 154, 221, 174, 156, 224, 177, 159, 224, 177, 159, 225, 176, 159, 224, 175, 158, 225, 176, 159, 226, 177, 160, 223, 174, 157, 223, 174, 157, 223, 175, 155, 223, 175, 155, 223, 175, 153, 223, 175, 153, 224, 176, 154, 223, 177, 153, 224, 179, 156, 210, 172, 151, 179, 146, 129, 109, 86, 72, 29, 12, 5, 25, 15, 14, 21, 19, 22, 15, 16, 20, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 118, 121, 128, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 123, 126, 133, 123, 126, 133, 124, 127, 134, 124, 127, 134, 126, 126, 134, 130, 125, 132, 127, 124, 131, 121, 126, 132, 117, 126, 131, 116, 127, 133, 115, 124, 131, 116, 120, 131, 117, 117, 129, 116, 113, 124, 119, 114, 121, 117, 111, 111, 130, 117, 111, 184, 157, 146, 218, 179, 164, 230, 174, 157, 236, 178, 158, 236, 181, 161, 235, 184, 163, 235, 184, 163, 231, 183, 163, 231, 182, 165, 231, 184, 166, 232, 185, 169, 230, 184, 168, 228, 182, 166, 218, 172, 156, 212, 169, 152, 214, 171, 154, 214, 173, 155, 218, 177, 159, 221, 183, 162, 221, 183, 162, 225, 187, 168, 226, 189, 170, 227, 189, 170, 224, 186, 167, 224, 183, 165, 225, 182, 165, 227, 181, 165, 225, 179, 163, 228, 183, 164, 230, 185, 166, 229, 184, 165, 225, 180, 161, 220, 175, 156, 216, 171, 152, 209, 166, 147, 206, 163, 144, 206, 161, 142, 206, 161, 142, 206, 161, 142, 206, 161, 142, 208, 161, 143, 211, 164, 146, 213, 166, 148, 215, 168, 150, 218, 171, 153, 221, 174, 156, 224, 177, 159, 225, 178, 160, 225, 176, 159, 224, 175, 158, 225, 176, 159, 226, 177, 160, 223, 175, 155, 223, 175, 155, 223, 175, 155, 224, 176, 156, 224, 176, 156, 225, 177, 155, 224, 178, 155, 225, 179, 156, 221, 176, 155, 202, 164, 143, 166, 135, 117, 97, 73, 61, 18, 3, 0, 28, 20, 18, 15, 14, 19, 15, 18, 23, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 115, 118, 125, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 117, 120, 127, 116, 119, 126, 116, 119, 126, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 115, 118, 125, 116, 119, 126, 117, 120, 127, 117, 120, 127, 117, 120, 127, 118, 121, 128, 118, 121, 128, 119, 122, 129, 119, 122, 129, 120, 123, 130, 120, 123, 130, 121, 124, 131, 121, 124, 131, 122, 125, 132, 122, 125, 132, 123, 126, 133, 124, 127, 134, 124, 127, 134, 124, 127, 134, 126, 126, 134, 131, 124, 132, 129, 124, 131, 121, 126, 132, 117, 128, 132, 116, 127, 133, 115, 126, 132, 118, 120, 132, 119, 117, 130, 118, 115, 126, 120, 115, 122, 120, 114, 116, 116, 105, 99, 173, 149, 139, 213, 176, 160, 226, 170, 153, 236, 175, 156, 232, 177, 157, 233, 181, 160, 234, 183, 162, 235, 184, 163, 234, 185, 168, 235, 186, 169, 233, 186, 170, 230, 183, 167, 231, 185, 169, 223, 177, 161, 218, 175, 158, 219, 176, 159, 216, 175, 157, 219, 178, 160, 223, 185, 164, 225, 187, 166, 229, 192, 173, 231, 194, 175, 233, 195, 176, 230, 192, 173, 231, 190, 172, 232, 191, 173, 236, 190, 174, 235, 189, 173, 230, 185, 166, 231, 186, 167, 229, 184, 165, 222, 177, 158, 216, 171, 152, 211, 166, 147, 205, 162, 143, 201, 158, 139, 204, 159, 140, 205, 160, 141, 206, 161, 142, 206, 161, 142, 207, 160, 142, 209, 162, 144, 212, 165, 147, 214, 167, 149, 218, 171, 153, 221, 174, 156, 225, 178, 160, 225, 178, 160, 225, 176, 159, 224, 175, 158, 224, 175, 158, 226, 177, 160, 223, 175, 155, 223, 175, 155, 224, 176, 156, 225, 177, 157, 225, 177, 157, 226, 178, 158, 226, 180, 157, 225, 180, 157, 219, 174, 153, 195, 157, 136, 158, 126, 111, 89, 67, 54, 11, 0, 0, 29, 23, 23, 11, 10, 15, 15, 18, 25 ];
#include "../atrshmlog_internal.h" /*******************************************************************/ /** * \file atrshmlogimpl_init_shm_log.c */ /** * \n Main code: * * \brief helper: we initialize one buffer * * \param i_shm * The adress of the shared memory buffer. * * \param i_index_buffer * The index of the buffer. * * \param i_chunkbase * The index in the shared memory for the chunk buffer. * * \return * \li 0 : ok * \li non zero : error */ static int atrshmlog_init_one_buffer(volatile atrshmlog_area_t *i_shm, const int i_index_buffer, const int i_chunkbase) { int result = -1; volatile atrshmlog_buffer_t* b = &(i_shm->logbuffers[i_index_buffer]); int lock_wanted = 0; int count_users = 0; /* ok. we are through. we have to set the final infos and thats it */ b->safeguard = ATRSHMLOGSAFEGUARDVALUE; atomic_init(&(b->state), atrshmlog_writeable); b->info = i_chunkbase; b->next_append = i_index_buffer + 1; #if ATRSHMLOGDEBUG == 1 printf("next shm is %ld and append is %ld\n", i_index_buffer, i_index_buffer + 1); #endif b->next_full = -1; b->shmsize = 0; return atrshmlog_error_ok; } /*******************************************************************/ /** * \n Main code: * * \brief We initialize the buffer after it is attached . * * This is not mt safe. * * So try to use an initialisation program that is * simple for it. * * See the atrshmloginit.c for this * * test t_init_shm_log.c */ atrshmlog_ret_t atrshmlog_init_shm_log(volatile const void * const i_area, const atrshmlog_int32_t i_count_buffers) { ATRSHMLOGSTAT(atrshmlog_counter_init_shm); /* We check first, then we initialize. * Its vital that we do NOT reinitialize the buffer ! */ if ( i_area == 0 ) return atrshmlog_error_init_shm_1; volatile atrshmlog_area_t *a = (volatile atrshmlog_area_t *)i_area; if (atrshmlog_thread_fence_12) atomic_thread_fence(memory_order_acquire); if (a->shmid == atrshmlog_get_shmid()) return atrshmlog_error_init_shm_2; if (a->shmsafeguard == ATRSHMLOGSAFEGUARDVALUE) return atrshmlog_error_init_shm_2; /* Ok. We are in. The shm seems not to be initialized by us */ // Chunks are after the desciptors unsigned int chunks = (char*)&a->logbuffers[i_count_buffers] - (char*)a; chunks = (chunks + 15) & ~15; int bufferlen = (ATRSHMLOGBUFFER_INFOSIZE + 15) & ~15; for (int i = 0; i < i_count_buffers ; i++, chunks += ATRSHMLOGBUFFER_INFOSIZE) { int initresult = atrshmlog_init_one_buffer(a, i, chunks); #if ATRSHMLOGDEBUG == 1 printf("%p %lx\n", a, (long)chunks); #endif if (initresult < 0) return atrshmlog_error_init_shm_3; } /* We finish the list of available buffers with this one */ a->logbuffers[ i_count_buffers - 1].next_append = -1; /* Ok. We can now set the final info in the buffer */ a->shmversion = ATRSHMLOGVERSION; a->shmcount = i_count_buffers; /* We put the buffers on the available list */ atomic_init(&a->shma, 0); /* There is no buffer on the full list now */ atomic_init(&a->shmf, -1); /* The flag that stops system wide logging */ a->ich_habe_fertig = 0; a->readerflag = 0; a->readerpid = 0; a->writerflag = 0; a->writerpid = 0; a->shmsafeguard = ATRSHMLOGSAFEGUARDVALUE; a->shmid = atrshmlog_get_shmid(); if (atrshmlog_thread_fence_12) atomic_thread_fence(memory_order_release); return atrshmlog_error_ok; }
import React, { Component } from "react"; import styles from "./styles/ReloadIconButton.module.css"; class ReloadIconButton extends Component { constructor(props) { super(props); this.state = {}; } componentDidMount() {} componentWillReceiveProps(nextProps) {} click = () => { if (typeof this.props.onClick === "function") { this.props.onClick(); } }; render() { return ( <div onClick={this.click}> <i className={["fas fa-sync-alt", styles.icon].join(" ")} /> </div> ); } } export default ReloadIconButton;
from unittest import skip import numpy as np from VariableUnittest import VariableUnitTest from gwlfe.AFOS.GrazingAnimals.Losses import GRLBN class TestGRLBN(VariableUnitTest): @skip("not ready") def test_GRLBN(self): z = self.z np.testing.assert_array_almost_equal( GRLBN.GRLBN_2(), GRLBN.GRLBN(), decimal=7)
import React, { useEffect, useState } from 'react'; import { getPetTypes } from '../../api/petfinder'; import Logo from '../../assets/logo.svg'; import Search from '../search'; import { NavLink } from 'react-router-dom'; const Navigation = () => { const [petTypes, setPetTypes] = useState([]); useEffect(() => { async function getPetTypesData() { const { types } = await getPetTypes(); setPetTypes(types); } getPetTypesData(); }, []); return ( <nav> <div className="nav-logo"> <img src={Logo} alt="Petlover" /> <Search /> </div> <ul className="nav-links"> <li key="all"> <NavLink exact to="/" className="nav-link" activeClassName='nav-link-active' > All Pets </NavLink> </li> {petTypes ? petTypes.map((type) => ( <li key={type.name}> <NavLink to={`/${type._links.self.href.split('/').pop()}`} key={type.name} className="nav-link" activeClassName='nav-link-active' > {type.name}s </NavLink>{' '} </li> )) : 'Loading...'} </ul> </nav> ); }; export default Navigation;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _mjmlValidator = require("mjml-validator"); var _mjmlCore = require("mjml-core"); (0, _mjmlValidator.registerDependencies)({ 'mj-body': ['cm-repeater'], 'mj-column': ['cm-repeater'], 'cm-repeater': ['mj-section', 'mj-accordion', 'mj-button', 'mj-carousel', 'mj-divider', 'mj-html', 'mj-image', 'mj-raw', 'mj-social', 'mj-spacer', 'mj-table', 'mj-text', 'mj-navbar', 'cm-image', 'cm-layout'] }); class CmRepeater extends _mjmlCore.BodyComponent { render() { return ` <repeater> ${this.renderChildren(this.props.children)} </repeater> `; } } exports.default = CmRepeater;
Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var hub_1 = require("@sentry/hub"); var types_1 = require("@sentry/types"); var utils_1 = require("@sentry/utils"); var errors_1 = require("./errors"); var idletransaction_1 = require("./idletransaction"); var transaction_1 = require("./transaction"); var utils_2 = require("./utils"); /** Returns all trace headers that are currently on the top scope. */ function traceHeaders() { var scope = this.getScope(); if (scope) { var span = scope.getSpan(); if (span) { return { 'sentry-trace': span.toTraceparent(), }; } } return {}; } /** * Makes a sampling decision for the given transaction and stores it on the transaction. * * Called every time a transaction is created. Only transactions which emerge with a `sampled` value of `true` will be * sent to Sentry. * * @param hub: The hub off of which to read config options * @param transaction: The transaction needing a sampling decision * @param samplingContext: Default and user-provided data which may be used to help make the decision * * @returns The given transaction with its `sampled` value set */ function sample(hub, transaction, samplingContext) { var _a; var client = hub.getClient(); var options = (client && client.getOptions()) || {}; // nothing to do if there's no client or if tracing is disabled if (!client || !utils_2.hasTracingEnabled(options)) { transaction.sampled = false; return transaction; } // if the user has forced a sampling decision by passing a `sampled` value in their transaction context, go with that if (transaction.sampled !== undefined) { transaction.tags = tslib_1.__assign(tslib_1.__assign({}, transaction.tags), { __sentry_samplingMethod: types_1.TransactionSamplingMethod.Explicit }); return transaction; } // we would have bailed already if neither `tracesSampler` nor `tracesSampleRate` were defined, so one of these should // work; prefer the hook if so var sampleRate; if (typeof options.tracesSampler === 'function') { sampleRate = options.tracesSampler(samplingContext); // cast the rate to a number first in case it's a boolean transaction.tags = tslib_1.__assign(tslib_1.__assign({}, transaction.tags), { __sentry_samplingMethod: types_1.TransactionSamplingMethod.Sampler, // TODO kmclb - once tag types are loosened, don't need to cast to string here __sentry_sampleRate: String(Number(sampleRate)) }); } else if (samplingContext.parentSampled !== undefined) { sampleRate = samplingContext.parentSampled; transaction.tags = tslib_1.__assign(tslib_1.__assign({}, transaction.tags), { __sentry_samplingMethod: types_1.TransactionSamplingMethod.Inheritance }); } else { sampleRate = options.tracesSampleRate; // cast the rate to a number first in case it's a boolean transaction.tags = tslib_1.__assign(tslib_1.__assign({}, transaction.tags), { __sentry_samplingMethod: types_1.TransactionSamplingMethod.Rate, // TODO kmclb - once tag types are loosened, don't need to cast to string here __sentry_sampleRate: String(Number(sampleRate)) }); } // Since this is coming from the user (or from a function provided by the user), who knows what we might get. (The // only valid values are booleans or numbers between 0 and 1.) if (!isValidSampleRate(sampleRate)) { utils_1.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."); transaction.sampled = false; return transaction; } // if the function returned 0 (or false), or if `tracesSampleRate` is 0, it's a sign the transaction should be dropped if (!sampleRate) { utils_1.logger.log("[Tracing] Discarding transaction because " + (typeof options.tracesSampler === 'function' ? 'tracesSampler returned 0 or false' : 'a negative sampling decision was inherited or tracesSampleRate is set to 0')); transaction.sampled = false; return transaction; } // Now we roll the dice. Math.random is inclusive of 0, but not of 1, so strict < is safe here. In case sampleRate is // a boolean, the < comparison will cause it to be automatically cast to 1 if it's true and 0 if it's false. transaction.sampled = Math.random() < sampleRate; // if we're not going to keep it, we're done if (!transaction.sampled) { utils_1.logger.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = " + Number(sampleRate) + ")"); return transaction; } // at this point we know we're keeping the transaction, whether because of an inherited decision or because it got // lucky with the dice roll transaction.initSpanRecorder((_a = options._experiments) === null || _a === void 0 ? void 0 : _a.maxSpans); utils_1.logger.log("[Tracing] starting " + transaction.op + " transaction - " + transaction.name); return transaction; } /** * Gets the correct context to pass to the tracesSampler, based on the environment (i.e., which SDK is being used) * * @returns The default sample context */ function getDefaultSamplingContext(transactionContext) { // promote parent sampling decision (if any) for easy access var parentSampled = transactionContext.parentSampled; var defaultSamplingContext = { transactionContext: transactionContext, parentSampled: parentSampled }; if (utils_1.isNodeEnv()) { var domain = hub_1.getActiveDomain(); if (domain) { // for all node servers that we currently support, we store the incoming request object (which is an instance of // http.IncomingMessage) on the domain // the domain members are stored as an array, so our only way to find the request is to iterate through the array // and compare types var nodeHttpModule = utils_1.dynamicRequire(module, 'http'); // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access var requestType_1 = nodeHttpModule.IncomingMessage; var request = domain.members.find(function (member) { return utils_1.isInstanceOf(member, requestType_1); }); if (request) { defaultSamplingContext.request = utils_1.extractNodeRequestData(request); } } } // we must be in browser-js (or some derivative thereof) else { // we use `getGlobalObject()` rather than `window` since service workers also have a `location` property on `self` var globalObject = utils_1.getGlobalObject(); if ('location' in globalObject) { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any defaultSamplingContext.location = tslib_1.__assign({}, globalObject.location); } } return defaultSamplingContext; } /** * Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1). */ function isValidSampleRate(rate) { // we need to check NaN explicitly because it's of type 'number' and therefore wouldn't get caught by this typecheck // eslint-disable-next-line @typescript-eslint/no-explicit-any if (isNaN(rate) || !(typeof rate === 'number' || typeof rate === 'boolean')) { utils_1.logger.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got " + JSON.stringify(rate) + " of type " + JSON.stringify(typeof rate) + "."); return false; } // in case sampleRate is a boolean, it will get automatically cast to 1 if it's true and 0 if it's false if (rate < 0 || rate > 1) { utils_1.logger.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got " + rate + "."); return false; } return true; } /** * Creates a new transaction and adds a sampling decision if it doesn't yet have one. * * The Hub.startTransaction method delegates to this method to do its work, passing the Hub instance in as `this`, as if * it had been called on the hub directly. Exists as a separate function so that it can be injected into the class as an * "extension method." * * @param this: The Hub starting the transaction * @param transactionContext: Data used to configure the transaction * @param CustomSamplingContext: Optional data to be provided to the `tracesSampler` function (if any) * * @returns The new transaction * * @see {@link Hub.startTransaction} */ function _startTransaction(transactionContext, customSamplingContext) { var transaction = new transaction_1.Transaction(transactionContext, this); return sample(this, transaction, tslib_1.__assign(tslib_1.__assign({}, getDefaultSamplingContext(transactionContext)), customSamplingContext)); } /** * Create new idle transaction. */ function startIdleTransaction(hub, transactionContext, idleTimeout, onScope) { var transaction = new idletransaction_1.IdleTransaction(transactionContext, hub, idleTimeout, onScope); return sample(hub, transaction, getDefaultSamplingContext(transactionContext)); } exports.startIdleTransaction = startIdleTransaction; /** * @private */ function _addTracingExtensions() { var carrier = hub_1.getMainCarrier(); if (carrier.__SENTRY__) { carrier.__SENTRY__.extensions = carrier.__SENTRY__.extensions || {}; if (!carrier.__SENTRY__.extensions.startTransaction) { carrier.__SENTRY__.extensions.startTransaction = _startTransaction; } if (!carrier.__SENTRY__.extensions.traceHeaders) { carrier.__SENTRY__.extensions.traceHeaders = traceHeaders; } } } exports._addTracingExtensions = _addTracingExtensions; /** * This patches the global object and injects the Tracing extensions methods */ function addExtensionMethods() { _addTracingExtensions(); // If an error happens globally, we should make sure transaction status is set to error. errors_1.registerErrorInstrumentation(); } exports.addExtensionMethods = addExtensionMethods; //# sourceMappingURL=hubextensions.js.map
/** * Forces an update on a list of numerical fields, also making sure that * any undefined fields are set to 0. * @param {string[]} attrs * @param {function} cb */ function forceUpdate(attrs, cb) { parseAttrs(attrs, values => { let tempValues = {}; _.each(attrs, attr => { tempValues[attr] = -9999; }); setAttrs(tempValues); setAttrs(values); }); } var rollSteps = [ 'D4', 'D6', 'D8', 'D10', 'D12', 'D20', '{D20,D4}k1', '{D20,D6}k1', '{D20,D8}k1', '{D20,D10}k1', '{D20,D12}k1', '{D20,D20}k1', '{D20,D20,D4}k1', '{D20,D20,D6}k1', '{D20,D20,D8}k1', '{D20,D20,D10}k1', '{D20,D20,D12}k1', '{D20,D20,D20}k1' ]; /** * Gets the upgraded/downgraded dice for a roll. * @param {string} roll * The roll expression. * @param {int} steps * Positive for upgrade, negative for downgrade. */ function getUpDowngradedRoll(roll, steps) { let index = rollSteps.indexOf(roll) + steps; index = Math.max(0, Math.min(index, rollSteps.length-1)); return rollSteps[index]; } function onChange(attrs, cb) { attrs = _.map(attrs, attr => { return 'change:' + attr; }).join(' '); on(attrs, cb); } function onChangeParse(attrs, cb) { onChange(attrs, () => { parseAttrs(attrs, cb); }); } /** * Gets the specified attributes and parses them as an integer or 0. */ function parseAttrs(attrs, cb) { getAttrs(attrs, function(values) { _.each(attrs, function(attr) { if(_.isUndefined(values[attr])) values[attr] = 0; else if(!isNaN(values[attr])) values[attr] = parseInt(values[attr]); }); cb(values); }); } function updateCutieMarkTalent() { var prefix = 'talent_cutieMark'; _updateTalents(prefix); } function updateRacialTalent() { var prefix = 'talent_racial'; _updateTalents(prefix); } function updateTalents() { updateCutieMarkTalent(); updateRacialTalent(); getSectionIDs('repeating_talents', ids => { _.each(ids, id => { var prefix = 'repeating_talents_' + id; _updateTalents(prefix); }); }); } function _updateTalents(prefix) { // If we just up-ticked or down-ticked the up/downgrade, then quit early // after handling that. if(_tickDowngrade(prefix) || _tickUpgrade(prefix)) return; parseAttrs([prefix + '_dice', prefix + '_trait', prefix + '_updowngrade', 'body_equation', 'mind_equation', 'charm_equation'], values => { var talentDice = values[prefix + '_dice']; var trait = values[prefix + '_trait']; var traitDice = values[trait + '_equation'] || 'D0'; var updown = parseInt(values[prefix + '_updowngrade']) || 0; // Apply upgrades/downgrades to talent dice. if(talentDice && updown) talentDice = getUpDowngradedRoll(talentDice, updown); if(talentDice === 'null') setAttrs({ [prefix + '_equation']: 0 }); else { //var traitDice = values[trait]; setAttrs({ [prefix + '_equation']: `{${talentDice},${traitDice}}k1` }); } }); } function updateTraits(cb) { _updateTrait('body', () => { _updateTrait('mind', () => { _updateTrait('charm', cb); }); }); } function _updateTrait(trait, cb) { parseAttrs([trait, trait + '_updowngrade'], values => { var traitDice = values[trait]; if(traitDice === 'null') setAttrs({ [trait + '_equation']: 0 }, {}, cb); else { var updown = values[trait + '_updowngrade'] || 0; if(updown) traitDice = getUpDowngradedRoll(traitDice, updown); setAttrs({ [trait + '_equation']: traitDice }, {}, cb); } }); } function _tickDowngrade(prefix) { parseAttrs([prefix + '_tickdown', prefix + '_updowngrade'], values => { let checked = !!values[prefix + '_tickdown']; if(checked) { updown = parseInt(values[prefix + '_updowngrade']) || 0; setAttrs({ [prefix + '_updowngrade']: updown - 1, [prefix + '_tickdown']: 0 }); return true; } return false; }); } function _tickUpgrade(prefix) { parseAttrs([prefix + '_tickup', prefix + '_updowngrade'], values => { let checked = !!values[prefix + '_tickup']; if(checked) { updown = parseInt(values[prefix + '_updowngrade']) || 0; setAttrs({ [prefix + '_updowngrade']: updown + 1, [prefix + '_tickup']: 0 }); return true; } return false; }); } // Change events on('change:repeating_talents', evt => { updateTalents(); }); onChange(['talent_cutieMark_dice', 'talent_cutieMark_trait', 'talent_cutieMark_updowngrade', 'talent_cutieMark_tickup', 'talent_cutieMark_tickdown'], () => { updateCutieMarkTalent(); }); onChange(['talent_racial_dice', 'talent_racial_trait', 'talent_racial_updowngrade', 'talent_racial_tickup', 'talent_racial_tickdown'], () => { updateRacialTalent(); }); onChange(['body_equation', 'mind_equation', 'charm_equation'], () => { updateTalents(); }); on('sheet:opened', () => { setAttrs({ character_sheet: 'TailsOfEquestria v1.3' }); updateTraits(() => { updateTalents(); }); }); // Up/downgrade tick events onChange(['body_tickup'], () => { _tickUpgrade('body'); }); onChange(['body_tickdown'], () => { _tickDowngrade('body'); }); onChange(['body', 'body_updowngrade'], () => { _updateTrait('body'); }); onChange(['mind_tickup'], () => { _tickUpgrade('mind'); }); onChange(['mind_tickdown'], () => { _tickDowngrade('mind'); }); onChange(['mind', 'mind_updowngrade'], () => { _updateTrait('mind'); }); onChange(['charm_tickup'], () => { _tickUpgrade('charm'); }); onChange(['charm_tickdown'], () => { _tickDowngrade('charm'); }); onChange(['charm', 'charm_updowngrade'], () => { _updateTrait('charm'); });
const path = require('path'); const fs = require('fs').promises; const writePackages = outputDir => { return ({config, bundles, packages}) => { return Promise.all( packages.map(({packageName, src}) => { const outputPath = path .resolve(outputDir, packageName + '.js'); return fs.writeFile(outputPath, src); }) ); }; }; module.exports = writePackages;
import json import time import numpy as np import argparse from pathlib import Path from itertools import product from pprint import PrettyPrinter from grl.generalized_experiment import GeneralizedExperiment # from grl.agents import SarsaTCAgent from grl.agents import SarsaLambdaTCAgent from grl.envs.mountaincar import MountainCarEnv from definitions import ROOT_DIR if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--no-cheat", help="Use the max range version of tile coded ranges", action="store_true") args = parser.parse_args() pp = PrettyPrinter(indent=4) # So here we need to run multiple runs over multiple hyperparams. # step_sizes = [1.0, 0.75, 0.5, 0.25, 0.125, 0.06125 # # lambdas = [0.99, 0.95, 0.9, 0.75, 0.5, 0.25, 0.125, 0.06125, 0] # # tilings = [4, 8, 16, 32] # # tiles = [4, 8, 16, 32] step_sizes = [0.125, 0.06125] lambdas = [0.75] tilings = [8] tiles = [16] cheating_tile_range = False if args.no_cheat else True # THIS IS JUST A TEST # We set num_actions in experiment.py run_hps = { 'log_every': 1000, 'max_eps_steps': float('inf'), 'max_total_steps': 70000 } all_avg_results = [] exp_dir = Path(ROOT_DIR, 'experiments') timestr = time.strftime("%Y%m%d-%H%M%S") print(f"Start experiment for Sarsa(lambda) with Tile Coding at {timestr}") env_hps_fname = exp_dir / 'reproduce_tuning_params.json' with open(env_hps_fname, 'r') as f: env_hpses = json.load(f) # run across all hyperparams current_max = None current_max_rew = -float('inf') for step_size, lam, tiling, tile in product(step_sizes, lambdas, tilings, tiles): agent_hps = { 'epsilon': 0.01, 'step_size': step_size, 'discount': 0.99, 'iht_size': 4096, 'lambda': lam, 'num_tilings': tiling, 'num_tiles': tile, 'cheating_tile_range': cheating_tile_range, } print("Experiment on Sarsa Lambda with Tile Coding on hyperparams") pp.pprint(agent_hps) exp = GeneralizedExperiment(SarsaLambdaTCAgent, MountainCarEnv, agent_hps=agent_hps, env_hpses=env_hpses, run_hps=run_hps, seeds=[2020]) exp.run() # here we append the average per-episode reward across all 25 tuning # environments. avg_rew = np.average(exp.all_avg_ep_rews) all_avg_results.append((agent_hps, avg_rew)) if avg_rew > current_max_rew: current_max = agent_hps current_max_rew = avg_rew print(f"Done tuning, best performant agent for Sarsa(lambda) w/ TC is") pp.pprint(current_max) # Here we need to pick which ones are best print("Begin testing") # Test here test_env_hps_fname = Path(ROOT_DIR, 'experiments', 'reproduce_testing_params.json') with open(test_env_hps_fname, 'r') as f: test_env_hpses = json.load(f) test_exp = GeneralizedExperiment(SarsaLambdaTCAgent, MountainCarEnv, agent_hps=current_max, env_hpses=test_env_hpses, run_hps=run_hps, seeds=[2020]) test_exp.run() results = { 'best_hparams': current_max, 'avg_ep_rewards': test_exp.all_avg_ep_rews, 'all_tune_results': all_avg_results } name = 'cheat' if cheating_tile_range else 'noncheat' res_fname = exp_dir / 'og_sarsa_lambda_tc' / f'sarsa_lambda_tc_{name}_results_{timestr}.json' with open(res_fname, 'w') as f: json.dump(results, f)
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) const createStore = () => new Vuex.Store({ state: { menuIsActive: false, menuInitial: true, blogPosts: [], allPages: [], navheight: 60, blogTitle: '', siteInfo: [], connect: [], allTags: [], gridItems: [], gridNumPosts: '11', gridNumCats: '11', gridOffset: '0', theThumbnail: '', theCategory: '', theCrumb: '', allCats: [], results: [], resultsnum: [], pagination: false, menuIsActive: false, menuInitial: true, }, actions: { async nuxtServerInit({ dispatch }) { await dispatch('getSiteInfo') await dispatch('getBlogPosts') await dispatch('getPages') await dispatch('getCats') }, async getBlogPosts({ state, commit }) { const context = await require.context('~/content/blog/posts/', false, /\.json$/); const searchposts = await context.keys().map(key => ({ ...context(key), _path: `/blog/${key.replace('.json', '').replace('./', '')}` })); commit('SET_POSTS', searchposts.reverse()) }, async getPages({ state, commit }) { const context = await require.context('~/content/page/posts/', false, /\.json$/); const pages = await context.keys().map(key => ({ ...context(key), _path: `/page/${key.replace('.json', '').replace('./', '')}` })); commit('SET_PAGES', pages) }, setGridNumPosts({ state, commit }) { if (state.blogPosts > 13) { this.$store.commit("SET_GRIDNUMPOSTS", 12); } }, setGridNumCats({ state, commit }) { if (state.allCats > 13) { this.$store.commit("SET_GRIDNUMCATS", 12); } }, async getCats({ state, commit }) { const context = await require.context('~/content/categories/posts/', false, /\.json$/); const pages = await context.keys().map(key => ({ ...context(key), _path: `/category/${key.replace('.json', '').replace('./', '')}` })); commit('SET_CATS', pages) }, async getTags({ state, commit }) { const context = await require.context('~/content/tags/posts/', false, /\.json$/); const pages = await context.keys().map(key => ({ ...context(key), _path: `/tagged/${key.replace('.json', '').replace('./', '')}` })); commit('SET_TAGS', pages) }, getSiteInfo({ state, commit }) { const info = require('~/content/setup/info.json'); const connect = require('~/content/setup/connect.json'); const context = require.context('~/content/blog/posts/', false, /\.json$/); const searchposts = context.keys().map(key => ({ ...context(key), _path: `/blog/${key.replace('.json', '').replace('./', '')}` })); commit('SET_POSTS', searchposts) commit('SET_INFO', info) commit('SET_CONNECT', connect) } }, mutations: { SET_POSTS(state, data) { state.blogPosts = data }, SET_PAGES(state, data) { state.allPages = data }, SET_CATS(state, data) { state.allCats = data }, SET_CRUMB(state, data) { state.theCrumb = data }, SET_GRIDITEMS(state, data) { state.gridItems = data }, SET_GRIDNUMPOSTS(state, data) { state.gridNumPosts = data }, SET_GRIDNUMCATS(state, data) { state.gridNumCats = data }, SET_GRIDOFFSET(state, data) { state.gridOffset = data }, SET_POSTCAT(state, data) { state.theCategory = data }, SET_TAGS(state, data) { state.allTags = data }, SET_THUMB(state, data) { state.theThumbnail = data }, SET_TITLE(state, data) { state.blogTitle = data }, SET_NAVHEIGHT(state, data) { state.navheight = data }, SET_INFO(state, data) { state.siteInfo = data }, SET_CONNECT(state, data) { state.connect = data }, SET_RESULTS(state, data) { state.results = data }, paginateOn(state, data) { state.pagination = data }, paginateOff(state, data) { state.pagination = data }, resultsLength(state, data) { state.resultsnum = data }, setMenuState(state, menuIsActive) { state.menuIsActive = menuIsActive }, toggleMenuState(state) { state.menuIsActive = !state.menuIsActive }, } }) export default createStore
# Copyright 2020 BDL Benchmarks Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Uncertainty estimator for the Deep Ensemble baseline.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function def predict(x, models, type="entropy"): """Deep Ensembles uncertainty estimator. Args: x: `numpy.ndarray`, datapoints from input space, with shape [B, H, W, 3], where B the batch size and H, W the input images height and width accordingly. models: `iterable` of `tensorflow.keras.Model`, a probabilistic model, which accepts input with shape [B, H, W, 3] and outputs sigmoid probability [0.0, 1.0], and also accepts boolean arguments `training=False` for disabling dropout at test time. type: (optional) `str`, type of uncertainty returns, one of {"entropy", "stddev"}. Returns: mean: `numpy.ndarray`, predictive mean, with shape [B]. uncertainty: `numpy.ndarray`, ncertainty in prediction, with shape [B]. """ import numpy as np import scipy.stats # Get shapes of data B, _, _, _ = x.shape # Monte Carlo samples from different deterministic models mc_samples = np.asarray([model(x, training=False) for model in models ]).reshape(-1, B) # Bernoulli output distribution dist = scipy.stats.bernoulli(mc_samples.mean(axis=0)) # Predictive mean calculation mean = dist.mean() # Use predictive entropy for uncertainty if type == "entropy": uncertainty = dist.entropy() # Use predictive standard deviation for uncertainty elif type == "stddev": uncertainty = dist.std() else: raise ValueError( "Unrecognized type={} provided, use one of {'entropy', 'stddev'}". format(type)) return mean, uncertainty
//VSCode Run support===================================================================================== //为便于在JS IDE如VSCode,webStorm里脱离APP环境执行JS,以快速验证JS代码正确性 //如果不在App环境,Native接口重定向到JS同名函数打印调用 //jsFlutterRequire 转调Node运行环境中的require //只有js_framework_lib中的文件,才能用这个头 let jsFlutterRequire = typeof mxRequire != "undefined" ? mxRequire : require; //VSCode Run support end ================================================================================ //js_flutter_text.js 正式开始,😝 let { FlutterWidget, FlutterCallArgs } = jsFlutterRequire("./js_flutter_basic_types.js"); let { invokeFlutterFunction } = jsFlutterRequire("./js_flutter_framework.js"); class Animation extends FlutterWidget { constructor({ tween, controller } = {}) { super(); this.tween = tween; this.controller = controller; this.statusListenerList = []; this.listenerList = []; } statusListenerCallback(status) { for (var funcKey in this.statusListenerList){ this.statusListenerList[funcKey](status); } } listenerCallback(status) { for (var funcKey in this.listenerList){ this.listenerList[funcKey](status); } } value(){ return 'animation.value'; } addListener(callback){ this.listenerList.push(callback); } removeListener(callback){ var index = this.listenerList.indexOf(callback); this.listenerList.splice(index); } addStatusListener(callback){ this.statusListenerList.push(callback); } removeStatusListener(callback){ var index = this.statusListenerList.indexOf(callback); this.statusListenerList.splice(index); } } class Tween extends FlutterWidget { constructor ({ begin, end } = {}) { super(); this.begin = begin; this.end = end; } } class AnimationController extends FlutterWidget { constructor ({ value, duration, debugLabel, lowerBound, upperBound, animationBehavior, vsync } = {}) { super(); this.value = value; this.duration = duration; this.debugLabel = debugLabel; this.lowerBound = lowerBound; this.upperBound = upperBound; this.animationBehavior = animationBehavior; this.vsync = vsync; } ///TODO: dispose(){ } forward(from){ var argument = new FlutterCallArgs({ mirrorID: this.mirrorID, className: 'AnimationController', funcName: 'forward', args: { from: from, }, }); invokeFlutterFunction(argument); } reverse(from){ var argument = new FlutterCallArgs({ mirrorID: this.mirrorID, className: 'AnimationController', funcName: 'reverse', args: { from: from, }, }); invokeFlutterFunction(argument); } repeat(min, max, period){ var argument = new FlutterCallArgs({ mirrorID: this.mirrorID, className: 'AnimationController', funcName: 'repeat', args: { min: min, max: max, period: period }, }); invokeFlutterFunction(argument); } drive(animatable){ var argument = new FlutterCallArgs({ mirrorID: this.mirrorID, className: 'AnimationController', funcName: 'drive', args: { animatable: animatable, }, }); invokeFlutterFunction(argument); } } class AnimatedBuilder extends FlutterWidget { constructor ({ key, animation, builder, child, widget } = {}) { super(); this.key = key; this.animation = animation; this.builder = builder; this.child = child; this.widget = widget; } } class Duration extends FlutterWidget { constructor ( { days, hours, minutes, seconds, milliseconds } = {}) { super(); this.days = days; this.hours = hours; this.minutes = minutes; this.seconds = seconds; this.milliseconds = milliseconds; } } AnimationStatus = { dismissed: "AnimationStatus.dismissed", forward: "AnimationStatus.forward", reverse: "AnimationStatus.reverse", completed: "AnimationStatus.completed" }; class CurveTween extends FlutterWidget { constructor ({ curve } = {}) { super(); this.curve = curve; } } class Interval extends FlutterWidget { constructor ( begin, end, { curve } = {}) { super(); this.begin = begin; this.end = end; this.curve = curve; } } Curves = { linear: "Curves.linear", decelerate: "Curves.decelerate", ease: "Curves.ease", easeIn: "Curves.easeIn", easeOut: "Curves.easeOut", easeInOut: "Curves.easeInOut", fastOutSlowIn: "Curves.fastOutSlowIn", bounceIn: "Curves.bounceIn", bounceOut: "Curves.bounceOut", bounceInOut: "Curves.bounceInOut", elasticIn: "Curves.elasticIn", elasticOut: "Curves.elasticOut", elasticInOut: "Curves.elasticInOut", }; class FadeTransition extends FlutterWidget { constructor ({ key, opacity, alwaysIncludeSemantics, child } = {}) { super(); this.key = key; this.opacity = opacity; this.alwaysIncludeSemantics = alwaysIncludeSemantics; this.child = child; } } class SlideTransition extends FlutterWidget { constructor ({ key, position, transformHitTests, textDirection, child } = {}) { super(); this.key = key; this.position = position; this.transformHitTests = transformHitTests; this.textDirection = textDirection; this.child = child; } } module.exports = { Animation, Tween, AnimationController, AnimatedBuilder, Duration, AnimationStatus, CurveTween, Interval, Curves, FadeTransition, SlideTransition };
def somemethod(self): print("Executed somemethod")
import requests ############## # list items # ############## all_items = [] all_items.append( { "item_id": 0, "seller_id": 0, "min_price": 5.0 } ) all_items.append( { "item_id": 1, "seller_id": 1, "min_price": 10.0 } ) all_items.append( { "item_id": 2, "seller_id": 1, "min_price": 15.0 } ) for cur_item in all_items: r = requests.post('http://127.0.0.1:8080/api/item/list', json=cur_item) assert(r.status_code == 200) print("items listed successfully") ############# # list bids # ############# all_bids = [] all_bids.append( { "bid_id": 0, "item_ids": [0, 1], "bid_price": 17.0, "bidder_id": 0, "excludes": [2] } ) all_bids.append( { "bid_id": 1, "item_ids": [0, 1], "bid_price": 19.0, "bidder_id": 1, "excludes": [3] } ) all_bids.append( { "bid_id": 2, "item_ids": [1, 2], "bid_price": 30.0, "bidder_id": 0, "excludes": [0] } ) all_bids.append( { "bid_id": 3, "item_ids": [1, 2], "bid_price": 32.0, "bidder_id": 1, "excludes": [1] } ) all_bids.append( { "bid_id": 4, "item_ids": [2], "bid_price": 5.0, "bidder_id": 2 } ) for cur_bid in all_bids: r = requests.post('http://127.0.0.1:8080/api/bid/place', json=cur_bid) assert(r.status_code == 200) print("bids placed succesfully") ######## # mine # ######## mine_params = { "random_seed": 123456, "run_time": 1000 } r = requests.post('http://127.0.0.1:8080/api/mine', json=mine_params) assert(r.status_code == 200) print("mining successful") ########## # result # ########## # get result # mine_params = { # "random_seed" : 0, # "run_time" : 100 # } r = requests.post('http://127.0.0.1:8080/api/execute', json={}) assert(r.status_code == 200) print("execution successful")
import requests import pygal from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS url = 'https://api.github.com/search/repositories?q=language:python&sort=stars' r = requests.get(url) print("Status code:", r.status_code) response_dict = r.json() print("Total repositories", response_dict['total_count']) repo_dicts = response_dict['items'] names, plot_dicts = [], [] for repo_dict in repo_dicts: names.append(repo_dict['name']) plot_dict = { 'value': repo_dict['stargazers_count'], 'label': str(repo_dict['description']), 'xlink': repo_dict['html_url'], } plot_dicts.append(plot_dict) my_style = LS('#333366', base_style=LCS) my_config = pygal.Config() my_config.x_label_rotation = 45 my_config.show_legend = False my_config.title_font_size = 24 my_config.label_font_size = 14 my_config.major_label_font_size = 18 my_config.truncate_label = 15 my_config.show_y_guides = False my_config.width = 1000 chart = pygal.Bar(my_config, style = my_style) chart.title = 'Most-Starred Python Projects on GitHub' chart.x_labels = names chart.add('', plot_dicts) chart.render_to_file('python_repos.svg')
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var core_1 = require("@angular/core"); var user_model_1 = require("../../models/users/user.model"); var App = (function () { function App() { this._isLoggedIn = false; this._user = new user_model_1.User(); } Object.defineProperty(App.prototype, "isLoggedIn", { get: function () { return this._isLoggedIn; }, set: function (value) { this._isLoggedIn = value; }, enumerable: true, configurable: true }); Object.defineProperty(App.prototype, "Bond", { get: function () { return this._bond; }, set: function (value) { this._bond = value; }, enumerable: true, configurable: true }); Object.defineProperty(App.prototype, "User", { get: function () { return this._user; }, set: function (user) { this._user = user; }, enumerable: true, configurable: true }); return App; }()); App = __decorate([ core_1.Injectable() ], App); exports.App = App; //# sourceMappingURL=app.service.js.map
# Generated by Django 2.0 on 2017-12-22 12:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('portfolio', '0005_make_fields_optional'), ] operations = [ migrations.AlterField( model_name='transaction', name='exchange_rate', field=models.DecimalField(blank=True, decimal_places=6, max_digits=12, null=True), ), migrations.AlterField( model_name='transaction', name='volume', field=models.DecimalField(decimal_places=6, max_digits=15), ), ]
/// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this notice and otherwise comply with the Use Terms. /** * @path ch15/15.4/15.4.4/15.4.4.14/15.4.4.14-5-13.js * @description Array.prototype.indexOf - value of 'fromIndex' is a number (value is -Infinity) */ function testcase() { return [true].indexOf(true, -Infinity) === 0; } runTestCase(testcase);
"""Get Terrapos position Dataset by reading Terrapos position output file Example: from where import apriori dset = apriori.get('terrapos_position') # File key 'terrapos_output_position' has to be defined in configuration file # files.conf. # Rename the dataset and write it to file. dset.write_as(tech=tech, stage=stage, dataset_name=dataset_name, dataset_id=dataset_id) Description: ------------ Read Terrapos position output file and enable correct time and position format to create a Dataset. """ # External library imports import numpy as np # Midgard imports from midgard.dev import plugins # Where imports from where.lib import gnss from where.data.time import Time from where import parsers @plugins.register def get_terrapos_position(): """Get Terrapos position Dataset by reading Terrapos position output file Returns: dset (Dataset): Dataset with following fields: ==================== ================== ================================================================= Field Type Description ==================== ================== ================================================================= gpsweek numpy.ndarray GPS week gpssec numpy.ndarray Seconds of GPS week head numpy.ndarray Head in [deg] height numpy.ndarray Ellipsoidal height in [m] lat numpy.ndarray Latitude in [deg] lon numpy.ndarray Longitude in [deg] num_sat numpy.ndarray Number of satellites pdop numpy.ndarray Position Dilution of Precision (PDOP) pitch numpy.ndarray Pitch in [deg] reliability_east numpy.ndarray East position external reliability in [m] #TODO: Is that correct? reliability_height numpy.ndarray Height position external reliability in [m] #TODO: Is that correct? reliability_north numpy.ndarray North position external reliability in [m] #TODO: Is that correct? roll numpy.ndarray Roll in [deg] sigma_east numpy.ndarray Standard deviation of East position in [m] #TODO: Is that correct? sigma_height numpy.ndarray Standard deviation of Height position in [m] #TODO: Is that correct? sigma_north numpy.ndarray Standard deviation of North position in [m] #TODO: Is that correct? site_pos PositionTable PositionTable object with given station coordinates time TimeTable Observation time given as TimeTable object ==================== ================== ================================================================= """ dset = parsers.parse_key("terrapos_output_position").as_dataset() dset.add_time("time", val=dset.gpsweek, val2=dset.gpssec, scale="gps", fmt="gps_ws") dset.add_position("site_pos", time="time", itrs=_get_site_pos(dset)) return dset def _get_site_pos(dset): """Determine site position by converting given longitude, latitude and height for a station to geocentric cartesian coordinates """ # TODO hjegei: Workaround -> better would it be if Position object can handle LLH as input format!!! x, y, z = gnss.llh2xyz(np.deg2rad(dset.lat), np.deg2rad(dset.lon), dset.height) return np.stack((x, y, z), axis=1)
import torch import torch.nn as nn import torch.nn.functional as F from loss.dice_loss import DiceLoss from loss.cross_entropy import CrossentropyLoss, TopKLoss class BCEPlusDice(nn.Module): """Dice loss, need one hot encode input Args: weight: An array of shape [num_classes,] ignore_index: class index to ignore predict: A list of two tensors target: A list of two tensors other args pass to BinaryDiceLoss Return: combination loss, dice plus bce """ def __init__(self, weight=None, ignore_index=None, **kwargs): super(BCEPlusDice, self).__init__() self.kwargs = kwargs self.weight = weight self.ignore_index = ignore_index def forward(self, predict, target): assert isinstance(predict,list) assert isinstance(target,list) assert len(predict) == len(target) and len(predict) == 2 dice = DiceLoss(weight=self.weight,ignore_index=self.ignore_index,**self.kwargs) dice_loss = dice(predict[1],target[1]) bce = nn.BCEWithLogitsLoss(self.weight) bce_loss = bce(predict[0],target[0]) total_loss = bce_loss + dice_loss return total_loss #---------------------------------seg loss--------------------------------- class CEPlusDice(nn.Module): """Dice loss, need one hot encode input Args: weight: An array of shape [num_classes,] ignore_index: class index to ignore predict: A list of two tensors target: A list of two tensors other args pass to BinaryDiceLoss Return: combination loss, dice plus cross entropy """ def __init__(self, weight=None, ignore_index=None, **kwargs): super(CEPlusDice, self).__init__() self.kwargs = kwargs self.weight = weight self.ignore_index = ignore_index def forward(self, predict, target): # print(predict.size()) # print(target.size()) assert predict.size() == target.size() dice = DiceLoss(weight=self.weight,ignore_index=self.ignore_index,**self.kwargs) dice_loss = dice(predict,target) ce = CrossentropyLoss(weight=self.weight) ce_loss = ce(predict,target) total_loss = ce_loss + dice_loss return total_loss class CEPlusTopkDice(nn.Module): """Dice loss, need one hot encode input Args: weight: An array of shape [num_classes,] ignore_index: class index to ignore predict: A list of two tensors target: A list of two tensors other args pass to BinaryDiceLoss Return: combination loss, dice plus cross entropy """ def __init__(self, weight=None, ignore_index=None, **kwargs): super(CEPlusTopkDice, self).__init__() self.kwargs = kwargs self.weight = weight self.ignore_index = ignore_index def forward(self, predict, target): # print(predict.size()) # print(target.size()) assert predict.size() == target.size() dice = DiceLoss(weight=self.weight,ignore_index=self.ignore_index,**self.kwargs) dice_loss = dice(predict,target) ce = CrossentropyLoss(weight=self.weight) ce_loss = ce(predict,target) total_loss = ce_loss + dice_loss return total_loss class TopkCEPlusDice(nn.Module): """Dice loss, need one hot encode input Args: weight: An array of shape [num_classes,] ignore_index: class index to ignore predict: A list of two tensors target: A list of two tensors other args pass to BinaryDiceLoss Return: combination loss, dice plus topk cross entropy """ def __init__(self, weight=None, ignore_index=None, **kwargs): super(TopkCEPlusDice, self).__init__() self.kwargs = kwargs self.weight = weight self.ignore_index = ignore_index def forward(self, predict, target): assert predict.size() == target.size() dice = DiceLoss(weight=self.weight,ignore_index=self.ignore_index,**self.kwargs) dice_loss = dice(predict,target) topk = TopKLoss(weight=self.weight,**self.kwargs) topk_loss = topk(predict,target) total_loss = topk_loss + dice_loss return total_loss class TopkCEPlusTopkDice(nn.Module): """Dice loss, need one hot encode input Args: weight: An array of shape [num_classes,] ignore_index: class index to ignore predict: A list of two tensors target: A list of two tensors other args pass to BinaryDiceLoss Return: combination loss, dice plus topk cross entropy """ def __init__(self, weight=None, ignore_index=None, **kwargs): super(TopkCEPlusTopkDice, self).__init__() self.kwargs = kwargs self.weight = weight self.ignore_index = ignore_index def forward(self, predict, target): assert predict.size() == target.size() dice = DiceLoss(weight=self.weight,ignore_index=self.ignore_index,**self.kwargs) dice_loss = dice(predict,target) topk = TopKLoss(weight=self.weight,k=50) topk_loss = topk(predict,target) total_loss = topk_loss + dice_loss return total_loss
// Note that the console log output does not appear in Julia REPL when // this is called using spawn. For debugging, use "run". These functions // are run in a shell outside the web page. var page = require('webpage').create(), system = require('system'), t, address; if (system.args.length === 1) { console.log('Phantomjs.js: too few arguments. Need phantom.js <some URL>'); phantom.exit(); } console.log('PhantomJS: The default user agent is ' + page.settings.userAgent); page.settings.userAgent = 'PhantomJS'; console.log('PhantomJS: User agent set to ' + page.settings.userAgent); t = Date.now(); address = system.args[1]; page.open(address, function(status) { if (status !== 'success') { console.log('FAIL to load the address'); } else { t = Date.now() - t; console.log('PhantomJS loading ' + system.args[1]); console.log('PhantomJS loading time ' + t + ' msec'); window.setTimeout( (function() { page.render("phantomjs.png"); console.log("PhantomJS saved render, exits after 30s") phantom.exit() }), 30000) } } );
/*- * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Rick Macklem at The University of Guelph. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _NFSCLIENT_NFSNODE_H_ #define _NFSCLIENT_NFSNODE_H_ #include <sys/_task.h> /* * Silly rename structure that hangs off the nfsnode until the name * can be removed by nfs_inactive() */ struct sillyrename { struct task s_task; struct ucred *s_cred; struct vnode *s_dvp; long s_namlen; char s_name[32]; }; /* * This structure is used to save the logical directory offset to * NFS cookie mappings. * The mappings are stored in a list headed * by n_cookies, as required. * There is one mapping for each NFS_DIRBLKSIZ bytes of directory information * stored in increasing logical offset byte order. */ #define NFSNUMCOOKIES 31 struct nfsdmap { LIST_ENTRY(nfsdmap) ndm_list; int ndm_eocookie; union { nfsuint64 ndmu3_cookies[NFSNUMCOOKIES]; uint64_t ndmu4_cookies[NFSNUMCOOKIES]; } ndm_un1; }; #define ndm_cookies ndm_un1.ndmu3_cookies #define ndm4_cookies ndm_un1.ndmu4_cookies struct nfs_accesscache { u_int32_t mode; /* ACCESS mode cache */ uid_t uid; /* credentials having mode */ time_t stamp; /* mode cache timestamp */ }; /* * The nfsnode is the nfs equivalent to ufs's inode. Any similarity * is purely coincidental. * There is a unique nfsnode allocated for each active file, * each current directory, each mounted-on file, text file, and the root. * An nfsnode is 'named' by its file handle. (nget/nfs_node.c) * If this structure exceeds 256 bytes (it is currently 256 using 4.4BSD-Lite * type definitions), file handles of > 32 bytes should probably be split out * into a separate MALLOC()'d data structure. (Reduce the size of nfsfh_t by * changing the definition in nfsproto.h of NFS_SMALLFH.) * NB: Hopefully the current order of the fields is such that everything will * be well aligned and, therefore, tightly packed. */ struct nfsnode { struct mtx n_mtx; /* Protects all of these members */ u_quad_t n_size; /* Current size of file */ u_quad_t n_brev; /* Modify rev when cached */ u_quad_t n_lrev; /* Modify rev for lease */ struct nfsvattr n_vattr; /* Vnode attribute cache */ time_t n_attrstamp; /* Attr. cache timestamp */ struct nfs_accesscache n_accesscache[NFS_ACCESSCACHESIZE]; struct timespec n_mtime; /* Prev modify time. */ struct nfsfh *n_fhp; /* NFS File Handle */ struct vnode *n_vnode; /* associated vnode */ struct vnode *n_dvp; /* parent vnode */ struct lockf *n_lockf; /* Locking record of file */ int n_error; /* Save write error value */ union { struct timespec nf_atim; /* Special file times */ nfsuint64 nd_cookieverf; /* Cookie verifier (dir only) */ u_char nd4_cookieverf[NFSX_VERF]; } n_un1; union { struct timespec nf_mtim; off_t nd_direof; /* Dir. EOF offset cache */ } n_un2; union { struct sillyrename *nf_silly; /* Ptr to silly rename struct */ LIST_HEAD(, nfsdmap) nd_cook; /* cookies */ } n_un3; short n_fhsize; /* size in bytes, of fh */ u_int32_t n_flag; /* Flag for locking.. */ int n_directio_opens; int n_directio_asyncwr; u_int64_t n_change; /* old Change attribute */ struct nfsv4node *n_v4; /* extra V4 stuff */ struct ucred *n_writecred; /* Cred. for putpages */ }; #define n_atim n_un1.nf_atim #define n_mtim n_un2.nf_mtim #define n_sillyrename n_un3.nf_silly #define n_cookieverf n_un1.nd_cookieverf #define n4_cookieverf n_un1.nd4_cookieverf #define n_direofoffset n_un2.nd_direof #define n_cookies n_un3.nd_cook /* * Flags for n_flag */ #define NDIRCOOKIELK 0x00000001 /* Lock to serialize access to directory cookies */ #define NFSYNCWAIT 0x00000002 /* fsync waiting for all directio async writes to drain */ #define NMODIFIED 0x00000004 /* Might have a modified buffer in bio */ #define NWRITEERR 0x00000008 /* Flag write errors so close will know */ #define NCREATED 0x00000010 /* Opened by nfs_create() */ #define NTRUNCATE 0x00000020 /* Opened by nfs_setattr() */ #define NSIZECHANGED 0x00000040 /* File size has changed: need cache inval */ #define NNONCACHE 0x00000080 /* Node marked as noncacheable */ #define NACC 0x00000100 /* Special file accessed */ #define NUPD 0x00000200 /* Special file updated */ #define NCHG 0x00000400 /* Special file times changed */ #define NDELEGMOD 0x00000800 /* Modified delegation */ #define NDELEGRECALL 0x00001000 /* Recall in progress */ #define NREMOVEINPROG 0x00002000 /* Remove in progress */ #define NREMOVEWANT 0x00004000 /* Want notification that remove is done */ #define NLOCK 0x00008000 /* Sleep lock the node */ #define NLOCKWANT 0x00010000 /* Want the sleep lock */ #define NNOLAYOUT 0x00020000 /* Can't get a layout for this file */ #define NWRITEOPENED 0x00040000 /* Has been opened for writing */ #define NHASBEENLOCKED 0x00080000 /* Has been file locked. */ /* * Convert between nfsnode pointers and vnode pointers */ #define VTONFS(vp) ((struct nfsnode *)(vp)->v_data) #define NFSTOV(np) ((struct vnode *)(np)->n_vnode) #define NFS_TIMESPEC_COMPARE(T1, T2) (((T1)->tv_sec != (T2)->tv_sec) || ((T1)->tv_nsec != (T2)->tv_nsec)) #if defined(_KERNEL) /* * Prototypes for NFS vnode operations */ int ncl_getpages(struct vop_getpages_args *); int ncl_putpages(struct vop_putpages_args *); int ncl_write(struct vop_write_args *); int ncl_inactive(struct vop_inactive_args *); int ncl_reclaim(struct vop_reclaim_args *); /* other stuff */ int ncl_removeit(struct sillyrename *, struct vnode *); int ncl_nget(struct mount *, u_int8_t *, int, struct nfsnode **, int); nfsuint64 *ncl_getcookie(struct nfsnode *, off_t, int); void ncl_invaldir(struct vnode *); int ncl_upgrade_vnlock(struct vnode *); void ncl_downgrade_vnlock(struct vnode *, int); void ncl_dircookie_lock(struct nfsnode *); void ncl_dircookie_unlock(struct nfsnode *); #endif /* _KERNEL */ #endif /* _NFSCLIENT_NFSNODE_H_ */
#import libraries import datetime as dt from collections import defaultdict ## Grouping and sorting ## def group_by_cluster(data, clusters, no_clusters): ''' returns a nested list of data, sorted by cluster ''' ret = [[] for i in range(no_clusters)] for i in range(len(clusters)): index = int(clusters[i]) d = data[i] ret[index].append(d) return ret def sort_by_group(requests): ''' given a list of requests, returns a list of lists, where the sublists contain netids of each group ''' groups = defaultdict(list) for req in requests: if req['matched']: groups[req['groupId']].append(req) return list(groups.values()) def sort_by_clusters(inputs, clusters, l_centroids, yes): if yes: cluster_arr = group_by_cluster(inputs, clusters, l_centroids) #organize data into clusters given by k-means sorted_clusters = [sorted(cluster, key = lambda i: i['request_time']) for cluster in cluster_arr] else: sorted_clusters = sorted(inputs, key=lambda i: i['request_time']) return sorted_clusters ## Evaluation ## def match_score(req1, req2): '''Utility tool to evaluate the feasibility of two requests given our evaluation heuristics''' # Datetime d1 = combine_dt(req1['date'], req1['time']) d2 = combine_dt(req2['date'], req2['time']) d_hours = abs(d1-d2).total_seconds() / 3600.0 if d_hours > 168: dt_score = 0 else: dt_score = 0.000031001984127*(d_hours ** 2) - 0.0111607142857*d_hours + 1 # Groupsize g = abs(int(req1['preferred_group_size']) - int(req2['preferred_group_size'])) group_sz_score = ((-1 / 3) * g) + 1 # Car size if req1['preferred_car_type'] == req2['preferred_car_type']: car_sz_score = 1 else: car_sz_score = 0 # Origin if req1['origin'] == req2['origin']: origin_score = 1 else: origin_score = 0 # Destination kg = ['Airport-JFK', 'Airport-LGA'] if req1['destination'] == req2['destination']: dest_score = 1 elif (req1['destination'] in kg) and (req2['destination']in kg): dest_score = 0.9 elif (req1['destination'] in kg and req2['destination'] == 'Airport-EWR') or (req2['destination']in kg and req1['destination'] == 'Airport-EWR'): dest_score = 0.6 elif (req1['destination'] in kg and req2['destination'] == 'Airport-BDL') or (req2['destination']in kg and req1['destination'] == 'Airport-BDL'): dest_score = 0.2 else: dest_score = 0 return 0.5*dt_score + 0.05*group_sz_score + 0.05*car_sz_score + 0.20*origin_score + 0.20*dest_score def group_score(cluster): '''For each group made, finds average value of the feasiblity of the matched group using each member as the head''' if len(cluster) < 2: return 0 # Calculate match_score for each member as head dat = {} for req in cluster: count = 0 for r in cluster: if r != req: v = match_score(req, r) count += v # Last element has the preferred group size dat[req['netId']] = count/(len(cluster)-1) avg = 0 cnt = 0 for item in dat.values(): avg += item cnt += 1 return avg/cnt ## Analytics, Summary, and Visualization Output ## def get_stats(requests): '''Returns a dictionary of relevant stats''' groups = sort_by_group(requests) no_matched = 0 avg_g_score = 0 for group in groups: no_matched += len(group) avg_g_score += group_score(group) no_groups = len(groups) if no_groups > 0: return {'No. matched': no_matched, 'No. groups': no_groups, 'Avg. group score':str(round(100*avg_g_score/no_groups,2))+'%', 'Avg. group size': no_matched/no_groups, 'Match rate': (no_matched/len(requests))*100} else: return {'No. matched': no_matched, 'No. groups': no_groups, 'Avg. group score':'0%', 'Avg. group size': 0, 'Match rate': 0} def print_stats(stats): '''Prints relevant stats''' for item in stats: print(f"\n{item}: {stats[item]}",end='') print("%") def print_groups(requests): '''Prints groups formed from our matching''' groups = sort_by_group(requests) for i in groups: print(f"Group ID: {i[0]['groupId']}") print(f"Group score: {round(group_score(i)*100,2)}%") for request in i: print(f"net ID: {request['netId']}, date/time: {request['date']} {request['time']}, origin: {request['origin']}, destination: {request['destination']}, pref. group size: {request['preferred_group_size']}, pref. car type: {request['preferred_car_type']}") print("\n") def print_results(results): print("Summary:") print("--------------------------------", end='') stats = get_stats(results) print_stats(stats) print("\nGroups") print("--------------------------------") print_groups(results) print("--------------------------------") ## Misc utility ## def combine_dt(date_str, time_str): '''Utility tool to create datetime object from separate date and time''' date = dt.datetime.strptime(date_str, '%Y-%m-%d').date() time = dt.datetime.strptime(time_str, '%H:%M').time() datetime = dt.datetime.combine(date, time) return datetime def mode(lst): '''Returns modal score from a list''' return max(set(lst), key = lst.count)
from __future__ import print_function from .SutterMP285 import *
# Pseudo-Palindromic Paths in a Binary Tree ''' Given a binary tree where node values are digits from 1 to 9. A path in the binary tree is said to be pseudo-palindromic if at least one permutation of the node values in the path is a palindrome. Return the number of pseudo-palindromic paths going from the root node to leaf nodes. Example 1: Input: root = [2,3,1,3,1,null,1] Output: 2 Explanation: The figure above represents the given binary tree. There are three paths going from the root node to leaf nodes: the red path [2,3,3], the green path [2,1,1], and the path [2,3,1]. Among these paths only red path and green path are pseudo-palindromic paths since the red path [2,3,3] can be rearranged in [3,2,3] (palindrome) and the green path [2,1,1] can be rearranged in [1,2,1] (palindrome). Example 2: Input: root = [2,1,1,1,3,null,null,null,null,null,1] Output: 1 Explanation: The figure above represents the given binary tree. There are three paths going from the root node to leaf nodes: the green path [2,1,1], the path [2,1,3,1], and the path [2,1]. Among these paths only the green path is pseudo-palindromic since [2,1,1] can be rearranged in [1,2,1] (palindrome). Example 3: Input: root = [9] Output: 1 Constraints: The given binary tree will have between 1 and 10^5 nodes. Node values are digits from 1 to 9. Hide Hint #1 Note that the node values of a path form a palindrome if at most one digit has an odd frequency (parity). Hide Hint #2 Use a Depth First Search (DFS) keeping the frequency (parity) of the digits. Once you are in a leaf node check if at most one digit has an odd frequency (parity). ''' # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def __init__(self): self.lists = [] def pseudoPalindromicPaths (self, root: TreeNode) -> int: def helper(root, arr): if not root: return elif not root.left and not root.right: self.lists.append(arr+[root.val]) else: helper(root.left, arr+[root.val]) helper(root.right, arr+[root.val]) helper(root, []) ans = 0 for arr in self.lists: hashmap = dict() for num in arr: if num in hashmap: hashmap[num]=1-hashmap[num] else: hashmap[num] = 1 s = sum(hashmap.values()) if s == 0 or s == 1: ans+=1 return ans
'use strict' const nodemailer = require('nodemailer') const transporter = nodemailer.createTransport({ service: 'qq', secureConnection: true, // use SSL port: 465, // port auth: { user: 'fearcleari@qq.com', pass: 'ueinsbfrtitgbghi' } }) module.exports = mailOptions => { mailOptions = mailOptions ? mailOptions : { from: '"fearclear" <fearcleari@qq.com>', // login user must equel to this user to: '527085767@qq.com', subject: 'Title Nodejs Send', text: 'Some simple words.', html: '<b>The main content of the mail. You have successfully logged in to Nodejs.</b>' } transporter.sendMail(mailOptions, function(error, info) { if(error) { console.log(error, 'error') return console.log(error) } console.log('Message sent: ' + info.response) }) }
/////////////////////////////////////////////////////////////////////// // YLog.h // // Copyright 11/13/2005 Edgar Glowacki. // // Maintained by: Edgar // // NOTES: // This is defined in yaget.Options vc++ property sheet // #define YAGET_LOG_ENABLED 1 // Initialize log system, should be called as one of first thing during // startup phase. It is called by system::Initialize(...) automaticly // // #include "Logger/YLog.h" // ////////////////////////////////////////////////////////////////////// //! \file #pragma once #include "LoggerCpp/LoggerCpp.h" #include "LoggerCpp/Manager.h" #include "Debugging/Assert.h" #include "App/Args.h" #include <string.h> namespace yaget { class Logger; } namespace yaget { namespace ylog { // Call this as a first thing in your app to initialize logging sub-system void Initialize(const args::Options& options); // Return one global instance of Logger object Logger& Get(); struct Tagger { explicit Tagger(uint32_t tag) : Tag(tag) { mCharTag[4] = '\0'; } explicit Tagger(const char* tag) { YAGET_ASSERT(tag && tag[0] != '\0', "Log tag must be at least one letter long"); strncpy_s(mCharTag, tag, 4); } operator uint32_t() const { return Tag; } const char* c_str() const { return mCharTag; } union { uint32_t Tag; char mCharTag[5] = { '\0' }; }; }; extern std::vector<std::string> GetRegisteredTags(); } // namespace ylog // Pretty print helpers, used in logging and any text output namespace pp { // helper functions to format various data types as a string inline const char* log(bool value) { return value ? "YES" : "NO"; } } } // namespace yaget #if !defined(YAGET_LOG_ENABLED) #if !defined(NDEBUG) // if we are in debug mode #define YAGET_LOG_ENABLED 1 // enable it by default, otherwise we honor user settings #endif #endif #define LOG_TAG(x) yaget::ylog::Tagger(x) #define YAGET_LOG_FILE_LINE_FUNCTION __FILE__, __LINE__, __FUNCTION__ #if YAGET_LOG_ENABLED == 1 #define YLOG_DEBUG(tag, ...) yaget::ylog::Get().debug().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_INFO(tag, ...) yaget::ylog::Get().info().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_NOTICE(tag, ...) yaget::ylog::Get().notice().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_WARNING(tag, ...) yaget::ylog::Get().warning().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_ERROR(tag, ...) yaget::ylog::Get().error().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_CRITICAL(tag, ...) yaget::ylog::Get().critic().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_PDEBUG(tag, file, line, function, ...) yaget::ylog::Get().debug().Write(file, line, function, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_PINFO(tag, file, line, function, ...) yaget::ylog::Get().info().Write(file, line, function, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_PNOTICE(tag, file, line, function, ...) yaget::ylog::Get().notice().Write(file, line, function, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_PWARNING(tag, file, line, function, ...) yaget::ylog::Get().warning().Write(file, line, function, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_PERROR(tag, file, line, function, ...) yaget::ylog::Get().error().Write(file, line, function, LOG_TAG(tag), true, __VA_ARGS__) #define YLOG_CDEBUG(tag, bValid, ...) yaget::ylog::Get().debug().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), bValid == false, __VA_ARGS__) #define YLOG_CINFO(tag, bValid, ...) yaget::ylog::Get().info().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), bValid == false, __VA_ARGS__) #define YLOG_CNOTICE(tag, bValid, ...) yaget::ylog::Get().notice().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), bValid == false, __VA_ARGS__) #define YLOG_CWARNING(tag, bValid, ...) yaget::ylog::Get().warning().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), bValid == false, __VA_ARGS__) #define YLOG_CERROR(tag, bValid, ...) yaget::ylog::Get().error().Write(__FILE__, __LINE__, __FUNCTION__, LOG_TAG(tag), bValid == false, __VA_ARGS__) #define YLOG_IS_TAG_VISIBLE(tag) (!(yaget::ylog::Manager::IsFilter(LOG_TAG(tag)) || yaget::ylog::Manager::IsOverrideFilter(LOG_TAG(tag)))) #else #define YLOG_DEBUG(tag, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_INFO(tag, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_NOTICE(tag, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_WARNING(tag, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_ERROR(tag, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_CRITICAL(tag, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_PDEBUG(tag, file, line, function, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_PINFO(tag, file, line, function, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_PNOTICE(tag, file, line, function, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_PWARNING(tag, file, line, function, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_PERROR(tag, file, line, function, ...) do { YLOG_UNUSED1(tag); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_CDEBUG(tag, bValid, ...) do { YLOG_UNUSED2(tag, bValid); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_CINFO(tag, bValid, ...) do { YLOG_UNUSED2(tag, bValid); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_CNOTICE(tag, bValid, ...) do { YLOG_UNUSED2(tag, bValid); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_CWARNING(tag, bValid, ...) do { YLOG_UNUSED2(tag, bValid); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_CERROR(tag, bValid, ...) do { YLOG_UNUSED2(tag, bValid); YLOG_ALL_UNUSED_IMPL( YLOG_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ); } while(0) #define YLOG_IS_TAG_VISIBLE(tag) (false) #endif // YAGET_LOG_ENABLED == x
var classoperations__research_1_1IndexPairSwapActiveOperator = [ [ "IndexPairSwapActiveOperator", "classoperations__research_1_1IndexPairSwapActiveOperator.html#a871622f2ed4fb5b000554d53c4b864a8", null ], [ "~IndexPairSwapActiveOperator", "classoperations__research_1_1IndexPairSwapActiveOperator.html#a2041fde203c51b80a7bc63fea9b1d969", null ], [ "MakeNextNeighbor", "classoperations__research_1_1IndexPairSwapActiveOperator.html#a11a3a2e7cea2b5b5197b9a17a71dc075", null ], [ "MakeNeighbor", "classoperations__research_1_1IndexPairSwapActiveOperator.html#a3a0df60af89ee61a1bb0a214214e5ac1", null ], [ "DebugString", "classoperations__research_1_1IndexPairSwapActiveOperator.html#ad9fef9a1ded161855e9c130bd1019b98", null ] ];
"""The classic Tiger problem. This is a POMDP problem; Namely, it specifies both the POMDP (i.e. state, action, observation space) and the T/O/R for the agent as well as the environment. The description of the tiger problem is as follows: (Quote from `POMDP: Introduction to Partially Observable Markov Decision Processes <https://cran.r-project.org/web/packages/pomdp/vignettes/POMDP.pdf>`_ by Kamalzadeh and Hahsler ) A tiger is put with equal probability behind one of two doors, while treasure is put behind the other one. You are standing in front of the two closed doors and need to decide which one to open. If you open the door with the tiger, you will get hurt (negative reward). But if you open the door with treasure, you receive a positive reward. Instead of opening a door right away, you also have the option to wait and listen for tiger noises. But listening is neither free nor entirely accurate. You might hear the tiger behind the left door while it is actually behind the right door and vice versa. States: tiger-left, tiger-right Actions: open-left, open-right, listen Rewards: +10 for opening treasure door. -100 for opening tiger door. -1 for listening. Observations: You can hear either "tiger-left", or "tiger-right". Note that in this example, the TigerProblem is a POMDP that also contains the agent and the environment as its fields. In general this doesn't need to be the case. (Refer to more complicated examples.) """ import pomdp_py from pomdp_py.utils import TreeDebugger import random import numpy as np import sys class TigerState(pomdp_py.State): def __init__(self, name): self.name = name def __hash__(self): return hash(self.name) def __eq__(self, other): if isinstance(other, TigerState): return self.name == other.name return False def __str__(self): return self.name def __repr__(self): return "TigerState(%s)" % self.name def other(self): if self.name.endswith("left"): return TigerState("tiger-right") else: return TigerState("tiger-left") class TigerAction(pomdp_py.Action): def __init__(self, name): self.name = name def __hash__(self): return hash(self.name) def __eq__(self, other): if isinstance(other, TigerAction): return self.name == other.name return False def __str__(self): return self.name def __repr__(self): return "TigerAction(%s)" % self.name class TigerObservation(pomdp_py.Observation): def __init__(self, name): self.name = name def __hash__(self): return hash(self.name) def __eq__(self, other): if isinstance(other, TigerObservation): return self.name == other.name return False def __str__(self): return self.name def __repr__(self): return "TigerObservation(%s)" % self.name # Observation model class ObservationModel(pomdp_py.ObservationModel): def __init__(self, noise=0.15): self.noise = noise def probability(self, observation, next_state, action): if action.name == "listen": if observation.name == next_state.name: # heard the correct growl return 1.0 - self.noise else: return self.noise else: return 0.5 def sample(self, next_state, action): if action.name == "listen": thresh = 1.0 - self.noise else: thresh = 0.5 if random.uniform(0,1) < thresh: return TigerObservation(next_state.name) else: return TigerObservation(next_state.other().name) def get_all_observations(self): """Only need to implement this if you're using a solver that needs to enumerate over the observation space (e.g. value iteration)""" return [TigerObservation(s) for s in {"tiger-left", "tiger-right"}] # Transition Model class TransitionModel(pomdp_py.TransitionModel): def probability(self, next_state, state, action): """According to problem spec, the world resets once action is open-left/open-right. Otherwise, stays the same""" if action.name.startswith("open"): return 0.5 else: if next_state.name == state.name: return 1.0 - 1e-9 else: return 1e-9 def sample(self, state, action): if action.name.startswith("open"): return random.choice(self.get_all_states()) else: return TigerState(state.name) def get_all_states(self): """Only need to implement this if you're using a solver that needs to enumerate over the observation space (e.g. value iteration)""" return [TigerState(s) for s in {"tiger-left", "tiger-right"}] # Reward Model class RewardModel(pomdp_py.RewardModel): def _reward_func(self, state, action): if action.name == "open-left": if state.name == "tiger-right": return 10 else: return -100 elif action.name == "open-right": if state.name == "tiger-left": return 10 else: return -100 else: # listen return -1 def sample(self, state, action, next_state): # deterministic return self._reward_func(state, action) # Policy Model class PolicyModel(pomdp_py.RandomRollout): """This is an extremely dumb policy model; To keep consistent with the framework.""" # A stay action can be added to test that POMDP solver is # able to differentiate information gathering actions. ACTIONS = {TigerAction(s) for s in {"open-left", "open-right", "listen"}} def sample(self, state, **kwargs): return random.sample(self.get_all_actions(), 1)[0] def get_all_actions(self, **kwargs): return PolicyModel.ACTIONS class TigerProblem(pomdp_py.POMDP): """ In fact, creating a TigerProblem class is entirely optional to simulate and solve POMDPs. But this is just an example of how such a class can be created. """ def __init__(self, obs_noise, init_true_state, init_belief): """init_belief is a Distribution.""" agent = pomdp_py.Agent(init_belief, PolicyModel(), TransitionModel(), ObservationModel(obs_noise), RewardModel()) env = pomdp_py.Environment(init_true_state, TransitionModel(), RewardModel()) super().__init__(agent, env, name="TigerProblem") @staticmethod def create(state="tiger-left", belief=0.5, obs_noise=0.15): """ Args: state (str): could be 'tiger-left' or 'tiger-right'; True state of the environment belief (float): Initial belief that the target is on the left; Between 0-1. obs_noise (float): Noise for the observation model (default 0.15) """ init_true_state = TigerState(state) init_belief = pomdp_py.Histogram({TigerState("tiger-left"): belief, TigerState("tiger-right"): 1.0 - belief}) tiger_problem = TigerProblem(obs_noise, # observation noise init_true_state, init_belief) tiger_problem.agent.set_belief(init_belief, prior=True) return tiger_problem def test_planner(tiger_problem, planner, nsteps=3, debug_tree=False): """ Runs the action-feedback loop of Tiger problem POMDP Args: tiger_problem (TigerProblem): an instance of the tiger problem. planner (Planner): a planner nsteps (int): Maximum number of steps to run this loop. """ for i in range(nsteps): action = planner.plan(tiger_problem.agent) if debug_tree: from pomdp_py.utils import TreeDebugger dd = TreeDebugger(tiger_problem.agent.tree) import pdb; pdb.set_trace() print("==== Step %d ====" % (i+1)) print("True state: %s" % tiger_problem.env.state) print("Belief: %s" % str(tiger_problem.agent.cur_belief)) print("Action: %s" % str(action)) print("Reward: %s" % str(tiger_problem.env.reward_model.sample(tiger_problem.env.state, action, None))) # Let's create some simulated real observation; Update the belief # Creating true observation for sanity checking solver behavior. # In general, this observation should be sampled from agent's observation model. real_observation = TigerObservation(tiger_problem.env.state.name) print(">> Observation: %s" % real_observation) tiger_problem.agent.update_history(action, real_observation) # If the planner is POMCP, planner.update also updates agent belief. planner.update(tiger_problem.agent, action, real_observation) if isinstance(planner, pomdp_py.POUCT): print("Num sims: %d" % planner.last_num_sims) print("Plan time: %.5f" % planner.last_planning_time) if isinstance(tiger_problem.agent.cur_belief, pomdp_py.Histogram): new_belief = pomdp_py.update_histogram_belief(tiger_problem.agent.cur_belief, action, real_observation, tiger_problem.agent.observation_model, tiger_problem.agent.transition_model) tiger_problem.agent.set_belief(new_belief) if action.name.startswith("open"): # Make it clearer to see what actions are taken until every time door is opened. print("\n") def main(): init_true_state = random.choice([TigerState("tiger-left"), TigerState("tiger-right")]) init_belief = pomdp_py.Histogram({TigerState("tiger-left"): 0.5, TigerState("tiger-right"): 0.5}) tiger_problem = TigerProblem(0.15, # observation noise init_true_state, init_belief) # print("** Testing value iteration **") # vi = pomdp_py.ValueIteration(horizon=3, discount_factor=0.95) # test_planner(tiger_problem, vi, nsteps=3) # # Reset agent belief tiger_problem.agent.set_belief(init_belief, prior=True) print("\n** Testing POUCT **") pouct = pomdp_py.POUCT(max_depth=3, discount_factor=0.95, num_sims=4096, exploration_const=50, rollout_policy=tiger_problem.agent.policy_model, show_progress=True) test_planner(tiger_problem, pouct, nsteps=10, debug_tree=False) TreeDebugger(tiger_problem.agent.tree).pp # Reset agent belief # tiger_problem.agent.set_belief(init_belief, prior=True) # tiger_problem.agent.tree = None # print("** Testing POMCP **") # tiger_problem.agent.set_belief(pomdp_py.Particles.from_histogram(init_belief, num_particles=100), prior=True) # pomcp = pomdp_py.POMCP(max_depth=3, discount_factor=0.95, # num_sims=1000, exploration_const=50, # rollout_policy=tiger_problem.agent.policy_model, # show_progress=True, pbar_update_interval=500) # test_planner(tiger_problem, pomcp, nsteps=10) # TreeDebugger(tiger_problem.agent.tree).pp if __name__ == '__main__': main()
from typing import List, Union, Dict from codelets.adl.flex_param import FlexParam from codelets.adl.operation import Operation, Loop, Transfer, Compute, Configure, OperandTemplate, Datatype from types import LambdaType from pytools import memoize_method from collections import defaultdict from copy import deepcopy import polymath as pm class Codelet(object): codelet_instance_id = 0 codelet_id = 0 operations = [] def __init__(self, op_name, inputs: List[OperandTemplate], outputs: List[OperandTemplate], hag, is_instance: bool = False, cdlt_id: int = None, required_params: Dict[str, Union[int, str, FlexParam, LambdaType]] = None): self._op_name = op_name self._inputs = inputs self._outputs = outputs self._ops = [] self._op_map = {} self._global_op_map = {} self._num_instr = -1 self._hag = hag # Added, possibly need to consolidate self._domain_tiling = {} self._tile_levels = defaultdict(list) self._domain_loop_map = {} self._id_counter = 0 self._loop_ctxt_level = 0 self._op_id_counters = defaultdict(int) self._compilation_params = {} self._size_map = {} if required_params is not None: self._required_params = {} for k, v in required_params.items(): self.add_required_param(k, v) else: self._required_params = {} self._is_instance = is_instance self._instance_id = None if self.is_instance: self._instance_id = Codelet.codelet_instance_id Codelet.codelet_instance_id += 1 if cdlt_id: self._cdlt_id = cdlt_id else: self._cdlt_id = Codelet.codelet_id Codelet.codelet_id += 1 def __enter__(self): Operation.current_codelet = self Operation.loop_stack.append(-1) Operation.id_counter = 0 Operation.loop_ctxt_level = 0 Operation.op_id_counters = defaultdict(int) OperandTemplate.current_codelet = self return self def __exit__(self, exc_type, exc_val, exc_tb): Operation.current_codelet = None OperandTemplate.current_codelet = None last_id = Operation.loop_stack.pop() self._id_counter = deepcopy(Operation.id_counter) self._loop_ctxt_level = deepcopy(Operation.loop_ctxt_level) self._op_id_counters = deepcopy(Operation.op_id_counters) assert last_id == -1 @property def num_loop_levels(self): return max([k for k in self.tile_levels.keys()]) @property def is_instance(self): return self._is_instance @property def compilation_params(self): return self._compilation_params @property def instance_id(self): return self._instance_id @property def hag(self): return self._hag @property def cdlt_id(self): return self._cdlt_id @property def op_name(self): return self._op_name @property def required_params(self) -> Dict[str, Union[None, FlexParam]]: return self._required_params @property def inputs(self): return self._inputs @property def outputs(self): return self._outputs @property def ops(self) -> List[Operation]: return self._ops @property def cdlt_uid(self): return f"{self.op_name}{self.instance_id}" @property def op_map(self) -> Dict[str, Union[Loop, Compute, Transfer, Configure]]: return self._op_map @property def global_op_map(self) -> Dict[int, Union[Loop, Compute, Transfer, Configure]]: return self._global_op_map @property def size_map(self): return self._size_map # TODO: Memoize this method @property def operands(self): return self.inputs + self.outputs @ops.setter def ops(self, ops): self._ops = ops @property def num_instr(self): return self._num_instr @property def op_id_counters(self): return self._op_id_counters @property def id_counter(self): return self._id_counter @id_counter.setter def id_counter(self, id_counter): self._id_counter = id_counter @memoize_method def operand_dimensions(self) -> List[str]: operands = self.inputs + self.outputs operand_dims = [] for o in operands: operand_dims += o.shape_list return list(set(operand_dims)) @property def domain_tiling(self): return self._domain_tiling @property def domain_loop_map(self): return self._domain_loop_map @property def tile_levels(self): return self._tile_levels def is_tiling_set(self, level: int): return level in self.domain_tiling def is_noop(self): return len(self.operands) == 0 and len(self.operations) == 0 def operand_dim_mapping(self): operands = self.inputs + self.outputs operand_dims = {} for o in operands: operand_dims.update(o.shape_symbols) return operand_dims def add_compilation_param(self, key, value): self._compilation_params[key] = value def unset_params(self): unset_params = [] for k, v in self.required_params.items(): if v is None: unset_params.append(k) else: assert isinstance(v, FlexParam) if not v.is_set(): unset_params.append(k) return unset_params def get_operand(self, op_name: str): for o in (self.inputs + self.outputs): if o.name == op_name: return o raise KeyError(f"Unable to find operand {op_name}: {self.inputs + self.outputs}") def get_ops_by_type(self, op_type): ops = [] for o in self.ops: if o.op_type == op_type: ops.append(o) return ops def get_max_loop_level(self): max_level = -1 for l in self.ops: if l.loop_level > max_level: max_level = l.loop_level return max_level def extract_bands(self): bands = [] start_idx = None prev_loop_level = -1 found_band = False for i, o in enumerate(self.ops): if o.op_type == "loop": if not found_band: found_band = True start_idx = i prev_loop_level = o.loop_level elif o.loop_level < prev_loop_level: bands.append((start_idx, i)) found_band = False elif o.loop_level == prev_loop_level: prev_loop_level = -1 bands.append((start_idx, i-1)) found_band = False if found_band: assert start_idx >= 0 bands.append((start_idx, len(self.ops) - 1)) return bands def copy(self, pre_increment=False): if pre_increment: Codelet.codelet_instance_id += 1 obj = type(self).__new__(self.__class__) obj._op_name = self.op_name obj._cdlt_id = self.cdlt_id obj._inputs = [i.copy() for i in self.inputs] obj._outputs = [o.copy() for o in self.outputs] obj._required_params = self.copy_required_params() obj._hag = self.hag obj._ops = [] obj._op_map = {} obj._global_op_map = {} obj._num_instr = self._num_instr obj._cdlt_id = self._cdlt_id obj._instance_id = Codelet.codelet_instance_id obj._domain_tiling = deepcopy(self._domain_tiling) obj._tile_levels = deepcopy(self._tile_levels) obj._domain_loop_map = deepcopy(self._domain_loop_map) obj._op_id_counters = deepcopy(self._op_id_counters) obj._id_counter = self._id_counter obj._loop_ctxt_level = self._loop_ctxt_level obj._compilation_params = deepcopy(self._compilation_params) for o in self.ops: obj.add_op(o.copy(obj)) return obj def copy_required_params(self): params = {} for k, v in self.required_params.items(): if isinstance(v, FlexParam): params[k] = v.copy() elif v is None: params[k] = v else: raise TypeError(f"Invalid type when copying params:\n" f"Name: {k}\n" f"Param: {v}") return params def get_op(self, global_op_id: int) -> Operation: for o in self.ops: if o.global_op_id == global_op_id: return o raise KeyError(f"Unable to find global op id {global_op_id}") def get_loop_order(self): operand_dim_map = self.operand_dim_mapping() loop_order = [] if len(self.domain_loop_map) == 0: return [] for loop_name in self.domain_loop_map[0].keys(): loop = self.op_map[str(loop_name)] rpl = loop.required_params for rp in rpl: if rp in operand_dim_map: loop_order.append((rp, loop.loop_level)) break loop_order = [k[0] for k in sorted(loop_order, key=lambda x: x[1])] return loop_order def emit(self, output_type): if output_type == "operations": op_str = f"CODELET:\t{self.op_name}{self.instance_id}\n" for o in self.ops: ostr = f"\t" * (o.loop_level + 1) ostr += f"{o.emit(output_type)}\n" op_str += ostr elif output_type == "operations_idx": op_str = f"CODELET:\t{self.op_name}{self.instance_id}\n" for i, o in enumerate(self.ops): ostr = f"{i}" + f"\t" * (o.loop_level + 1) ostr += f"{o.emit(output_type[:-4])}\n" op_str += ostr elif output_type == "json": op_params = {} operand_dim_map = self.operand_dim_mapping() for k, v in self.required_params.items(): if k not in operand_dim_map: assert isinstance(v, FlexParam) op_params[k] = v.value op_str = {} loop_order = self.get_loop_order() op_str['operation'] = self.op_name op_str['instance_id'] = self.instance_id op_str['iterable_dimensions'] = {k: operand_dim_map[k] for k in loop_order} op_str['operation_parameters'] = op_params op_str['inputs'] = [i.emit(output_type) for i in self.inputs] op_str['outputs'] = [o.emit(output_type) for o in self.outputs] op_str['operation_sequence'] = [op.emit(output_type) for op in self.ops] elif output_type == "json_no_ops": op_params = {} operand_dim_map = self.operand_dim_mapping() loop_order = self.get_loop_order() for k, v in self.required_params.items(): if k not in operand_dim_map: assert isinstance(v, FlexParam) op_params[k] = v.value op_str = {} op_str['operation'] = self.op_name op_str['instance_id'] = self.instance_id op_str['iterable_dimensions'] = {k: operand_dim_map[k] for k in loop_order} op_str['operation_parameters'] = op_params op_str['inputs'] = [i.emit("json") for i in self.inputs] op_str['outputs'] = [o.emit("json") for o in self.outputs] elif output_type not in ["decimal", "binary"]: op_str = f"CODELET:\t{self.op_name}{self.instance_id}\n" for o in self.ops: instr_list = o.emit(output_type) if len(instr_list) > 0: ostr = f"\t" * (o.loop_level + 1) instr_list = f"\n{ostr}".join(instr_list) ostr += f"{instr_list}\n" op_str += ostr else: op_str = [] for o in self.ops: instr_list = o.emit(output_type) op_str += instr_list op_str = "\n".join(op_str) return op_str def add_op(self, op: Operation): for rp_key in op.required_params: if rp_key not in self.required_params: self.add_required_param(rp_key) self.ops.append(op) self.op_map[op.op_str] = op self.global_op_map[op.global_op_id] = op def insert_op(self, op: Operation, insert_idx: int, **kwargs): if op in self.ops: self.ops.insert(insert_idx, self.ops.pop(self.ops.index(op))) else: for rp_key in op.required_params: if rp_key not in self.required_params: self.add_required_param(rp_key) self.ops.insert(insert_idx, op) self.op_map[op.op_str] = op self.global_op_map[op.global_op_id] = op def add_required_param(self, key, value=None, check_key=True): if key in self.required_params: if check_key: raise KeyError(f"Key {key} already exists in params:\n" f"Previous value: {self.required_params[key]}\n" f"Updated value: {value}") else: return if isinstance(value, LambdaType): flex_param = FlexParam(key, fn=value) for a in flex_param.fn_args: if a not in self.required_params: self.add_required_param(a) self.required_params[key] = flex_param elif isinstance(value, int): flex_param = FlexParam(key) flex_param.value = value self.required_params[key] = flex_param elif value is None: self.required_params[key] = FlexParam(key) elif isinstance(value, FlexParam): self.required_params[key] = value else: raise TypeError(f"Invalid type for required param:\n" f"Name: {key}\n" f"Value: {value}") def set_required_param(self, key: str, value: int): value = value.value if isinstance(value, FlexParam) else value if key not in self.required_params: raise KeyError(f"Key {key} for updating param does not exist:\n" f"All Keys: {self.required_params.keys()}\n" f"Updated value: {value}") # TODO: Check back on this if self.required_params[key].is_set() and self.required_params[key].value != value and\ not isinstance(self.required_params[key].value, LambdaType): raise RuntimeError(f"Param {key} has already been set:\n" f"Previous value: {self.required_params[key]}\n" f"New value: {value}") if value is None: raise RuntimeError(f"Cannot self None value for required parameter:\n" f"Value: {value}\n" f"Key: {key}") self.required_params[key].value = value def configure(self, start_end, target_name, **kwargs): cfg = Configure(start_end, target_name, add_codelet=False, **kwargs) self.add_op(cfg) def is_loop_node_target(self, loop, hag_node): for o in self.ops: if o.op_type == 'compute' and o.target == hag_node and loop.loop_level <= o.loop_level: return True elif o.op_type == 'transfer' and hag_node in o.path and loop.loop_level <= o.loop_level: return True return False def is_direct_loop_dep(self, loop, hag_node): for o in self.ops: if o.op_type == 'compute' and o.target == hag_node and loop.op_str in o.dependencies: return True elif o.op_type == 'transfer' and hag_node in o.path and loop.op_str in o.dependencies: return True return False def ordered_loop_ops(self): ops = [] for o in self.ops: if o.op_type == 'loop': ops.append(o) return ops def num_op_type(self, op_type): count = 0 for i in self.ops: if i.op_type == op_type: count += 1 return count def compute(self, op_name, sources, dests, **kwargs): comp = Compute(op_name, sources, dests, add_codelet=False, **kwargs) self.add_op(comp) def transfer(self, operand, path, sizes=None, **kwargs): xfer = Transfer(operand, path, sizes=sizes, add_codelet=False, **kwargs) self.add_op(xfer) def set_domain_tile(self, tile_level: str, domain_key: str, split_factor: int): if tile_level not in self.domain_tiling: self.domain_tiling[tile_level] = {} if domain_key in self.domain_tiling[tile_level] and self.domain_tiling[tile_level][domain_key] != split_factor: raise RuntimeError(f"The tile split factor has already been set for level{tile_level}: " f"{self.tile_levels[tile_level]} in domain" f" {domain_key}:\n" f"Previous value: {self.domain_tiling[tile_level][domain_key]}\n" f"New value: {split_factor}") # TODO: Add other checks here to validate split self.domain_tiling[tile_level][domain_key] = split_factor def set_tile_levels(self): self._tile_levels = deepcopy(self.hag.node_levels.copy()) self._tile_levels = {i: self._tile_levels[i] for i in sorted(list(self._tile_levels.keys()))} def set_dim_values(self, node: pm.Node, operand: OperandTemplate): if not operand.is_instantiated(): if len(operand.permutation) == len(node.shape): perm_map = {s: operand.permutation[s] for s in range(len(node.shape))} else: perm_map = {s: s for s in range(len(node.shape))} for j, s_ in enumerate(node.shape): key = operand.shape_list[j] s = node.shape[perm_map[j]] operand.update_shape_symbols(key, s) if key not in self.required_params: self.add_required_param(key, s) elif key in self.required_params: if not self.required_params[key].is_set(): self.set_required_param(key, s) elif self.required_params[key].value != s: raise RuntimeError(f"Inconsistent dimension sizes for operation {self.op_name}{self.instance_id}\n" f"Key: {key}\n" f"Size: {self.required_params[key].value}\n" f"Node shape: {node.shape}\n" f"Node name: {operand.name}\n" f"Shape list: {operand.shape_list}") if len(operand.shape_list) != len(list(operand.shape_symbols.keys())): raise RuntimeError(f"All shape values were not set for node {node.name}, operand {operand.name}:\n" f"Node shape: {node.shape}\n" f"Operand shape variables: {operand.shape_list}") def get_tile_level(self, node_name: str): for i in self.tile_levels.keys(): if node_name in self.tile_levels[i]: return i raise KeyError(f"Unable to find tile level for node {node_name}") def get_tile_splits(self, node_name: str): level = self.get_tile_level(node_name) return self.domain_tiling[level] def get_node_shape_map(self, op_tmplt: OperandTemplate, node: pm.Node) -> Dict[str, Dict]: shape_map = {} for i, s in enumerate(node.shape): key = op_tmplt.shape_symbols[i] shape_map[key] = {'value': s, 'dimension': i} return shape_map def set_dtype(self, node, operand): if "hag_dtype" in node.kwargs: assert operand.is_dtype_supported(node.kwargs['hag_dtype']) dtype = Datatype.from_str(node.kwargs['hag_dtype']) elif operand.dtype is not None: dtype = operand.dtype else: dtype = operand.supported_dtypes[0] node.add_attribute("hag_dtype", str(dtype)) operand.set_dtype(dtype) def set_op_node_name(self, node: pm.Node, operand: OperandTemplate): if operand.node_name is not None and operand.node_name != node.name: raise RuntimeError(f"Name already set to different value for operand:\n" f"Previous name: {operand.node_name}\n" f"New name: {node.name}") operand.set_node_name(node.name) def instantiate_operands(self, node: pm.Node): all_cdlt_ops = self.inputs + self.outputs all_node_ops = node.inputs + node.outputs for i, operand in enumerate(self.inputs): n = node.inputs[i] for rp_key in operand.required_params: if rp_key not in self.required_params: self.add_required_param(rp_key) self.set_dim_values(n, operand) self.set_dtype(n, operand) self.set_op_node_name(n, operand) operand.node_name = n.name for i, operand in enumerate(self.outputs): n = node.outputs[i] for rp_key in operand.required_params: if rp_key not in self.required_params: self.add_required_param(rp_key) self.set_dim_values(n, operand) self.set_dtype(n, operand) self.set_op_node_name(n, operand) operand.node_name = n.name def instantiate_node_params(self, node, hag): fn_params = [] for key, param in self.required_params.items(): if key in node.kwargs: self.set_required_param(key, node.kwargs[key]) elif isinstance(param, FlexParam) and param.value_type == "function" and not param.is_set(): fn_params.append(key) for name in fn_params: flex_param = self.required_params[name] arg_vals = tuple([self.required_params[a].value for a in flex_param.fn_args]) self.set_required_param(name, flex_param.evaluate_fn(*arg_vals)) for k, v in self.required_params.items(): if isinstance(v, FlexParam) and not v.is_set(): raise RuntimeError(f"Unable to set parameter {v.name}\n" f"Key: {k}\n" f"Kwargs: {node.kwargs.keys()}") def has_hag_edge(self, src: str, dst: str): return self.hag.has_edge(src, dst) def get_new_op_ids(self, op: Operation): global_id = self.id_counter op_id = self.op_id_counters[op.op_type] self.id_counter = self.id_counter + 1 self._op_id_counters[op.op_type] += 1 return op_id, global_id def instantiate_operations(self, node: pm.Node, hag): # First initialize shapes and symbols for operands, as well as datatypes self.instantiate_operands(node) # next, set the parameters supplied by the PolyMath node (e.g., stride, pad, etc) self.instantiate_node_params(node, hag) for o in self.ops: for rp in o.required_params: if rp in self.required_params and rp in o.unset_params(): o.set_required_param(rp, self.required_params[rp]) o.dependencies = list(set(o.dependencies)) if o.op_str in o.dependencies: o.dependencies.remove(o.op_str) assert isinstance(o, Operation) # Now set the required parameters in each operation, as specified for o in self.ops: o.evaluate_parameters(node, hag, self) for operand in self.operands: operand.evaluate_operand(node, hag, self) def get_operand_shapes(self): shape_dims = {} operands = (self.inputs + self.outputs) for o in operands: shape_dims.update(o.shape_symbols) return shape_dims
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:40:20 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/CoreMotion.framework/CoreMotion * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. */ #import <CoreMotion/CoreMotion-Structs.h> #import <CoreMotion/CMWorkout.h> @interface CMSwimWorkout : CMWorkout { long long fLocation; double fPoolLength; } @property (nonatomic,readonly) long long location; @property (nonatomic,readonly) double poolLength; +(BOOL)isAvailable; +(BOOL)supportsSecureCoding; +(id)swimLocationName:(long long)arg1 ; +(id)swimWorkoutInstance:(id)arg1 ; -(id)copyWithZone:(NSZone*)arg1 ; -(double)poolLength; -(id)initWithSessionId:(id)arg1 location:(long long)arg2 poolLength:(double)arg3 ; -(id)initWithSessionId:(id)arg1 locationType:(long long)arg2 poolLength:(double)arg3 startDate:(id)arg4 endDate:(id)arg5 ; -(id)initWithSessionId:(id)arg1 locationType:(long long)arg2 poolLength:(double)arg3 ; -(long long)location; -(void)dealloc; -(id)initWithCoder:(id)arg1 ; -(void)encodeWithCoder:(id)arg1 ; -(id)description; @end
// Regular expression that matches all symbols in the `Ogham` script as per Unicode v9.0.0: /[\u1680-\u169C]/;
import { currentStoreView } from '@vue-storefront/store/lib/multistore' /** * Converts date to format provided as an argument or defined in config file (if argument not provided) * @param {String} date * @param {String} format */ export function date (date, format) { const storeView = currentStoreView() return new Date(date).toLocaleString(storeView.i18n.defaultLocale) }
# -*- coding: utf-8 -*- """ OneLogin_Saml2_Auth class Copyright (c) 2010-2018 OneLogin, Inc. MIT License Main class of OneLogin's Python Toolkit. Initializes the SP SAML instance """ import xmlsec from defusedxml.lxml import tostring from onelogin.saml2 import compat from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.response import OneLogin_Saml2_Response from onelogin.saml2.logout_response import OneLogin_Saml2_Logout_Response from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.utils import OneLogin_Saml2_Utils, OneLogin_Saml2_Error, OneLogin_Saml2_ValidationError from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request from onelogin.saml2.authn_request import OneLogin_Saml2_Authn_Request class OneLogin_Saml2_Auth(object): """ This class implements the SP SAML instance. Defines the methods that you can invoke in your application in order to add SAML support (initiates SSO, initiates SLO, processes a SAML Response, a Logout Request or a Logout Response). """ def __init__(self, request_data, old_settings=None, custom_base_path=None): """ Initializes the SP SAML instance. :param request_data: Request Data :type request_data: dict :param old_settings: Optional. SAML Toolkit Settings :type old_settings: dict :param custom_base_path: Optional. Path where are stored the settings file and the cert folder :type custom_base_path: string """ self.__request_data = request_data if isinstance(old_settings, OneLogin_Saml2_Settings): self.__settings = old_settings else: self.__settings = OneLogin_Saml2_Settings(old_settings, custom_base_path) self.__attributes = dict() self.__nameid = None self.__nameid_format = None self.__session_index = None self.__session_expiration = None self.__authenticated = False self.__errors = [] self.__error_reason = None self.__last_request_id = None self.__last_message_id = None self.__last_assertion_id = None self.__last_authn_contexts = [] self.__last_request = None self.__last_response = None self.__last_assertion_not_on_or_after = None def get_settings(self): """ Returns the settings info :return: Setting info :rtype: OneLogin_Saml2_Setting object """ return self.__settings def set_strict(self, value): """ Set the strict mode active/disable :param value: :type value: bool """ assert isinstance(value, bool) self.__settings.set_strict(value) def process_response(self, request_id=None): """ Process the SAML Response sent by the IdP. :param request_id: Is an optional argument. Is the ID of the AuthNRequest sent by this SP to the IdP. :type request_id: string :raises: OneLogin_Saml2_Error.SAML_RESPONSE_NOT_FOUND, when a POST with a SAMLResponse is not found """ self.__errors = [] self.__error_reason = None print('**** REQUEST DATA ****') print(self.__request_data) if 'post_data' in self.__request_data and 'SAMLResponse' in self.__request_data['post_data']: # AuthnResponse -- HTTP_POST Binding response = OneLogin_Saml2_Response(self.__settings, self.__request_data['post_data']['SAMLResponse']) self.__last_response = response.get_xml_document() if response.is_valid(self.__request_data, request_id): self.__attributes = response.get_attributes() self.__nameid = response.get_nameid() self.__nameid_format = response.get_nameid_format() self.__session_index = response.get_session_index() self.__session_expiration = response.get_session_not_on_or_after() self.__last_message_id = response.get_id() self.__last_assertion_id = response.get_assertion_id() self.__last_authn_contexts = response.get_authn_contexts() self.__authenticated = True self.__last_assertion_not_on_or_after = response.get_assertion_not_on_or_after() else: self.__errors.append('invalid_response') self.__error_reason = response.get_error() else: self.__errors.append('invalid_binding') raise OneLogin_Saml2_Error( 'SAML Response not found, Only supported HTTP_POST Binding', OneLogin_Saml2_Error.SAML_RESPONSE_NOT_FOUND ) def process_slo(self, keep_local_session=False, request_id=None, delete_session_cb=None): """ Process the SAML Logout Response / Logout Request sent by the IdP. :param keep_local_session: When false will destroy the local session, otherwise will destroy it :type keep_local_session: bool :param request_id: The ID of the LogoutRequest sent by this SP to the IdP :type request_id: string :returns: Redirection url """ self.__errors = [] self.__error_reason = None get_data = 'get_data' in self.__request_data and self.__request_data['get_data'] if get_data and 'SAMLResponse' in get_data: logout_response = OneLogin_Saml2_Logout_Response(self.__settings, get_data['SAMLResponse']) self.__last_response = logout_response.get_xml() if not self.validate_response_signature(get_data): self.__errors.append('invalid_logout_response_signature') self.__errors.append('Signature validation failed. Logout Response rejected') elif not logout_response.is_valid(self.__request_data, request_id): self.__errors.append('invalid_logout_response') self.__error_reason = logout_response.get_error() elif logout_response.get_status() != OneLogin_Saml2_Constants.STATUS_SUCCESS: self.__errors.append('logout_not_success') else: self.__last_message_id = logout_response.id if not keep_local_session: OneLogin_Saml2_Utils.delete_local_session(delete_session_cb) elif get_data and 'SAMLRequest' in get_data: logout_request = OneLogin_Saml2_Logout_Request(self.__settings, get_data['SAMLRequest']) self.__last_request = logout_request.get_xml() if not self.validate_request_signature(get_data): self.__errors.append("invalid_logout_request_signature") self.__errors.append('Signature validation failed. Logout Request rejected') elif not logout_request.is_valid(self.__request_data): self.__errors.append('invalid_logout_request') self.__error_reason = logout_request.get_error() else: if not keep_local_session: OneLogin_Saml2_Utils.delete_local_session(delete_session_cb) in_response_to = logout_request.id self.__last_message_id = logout_request.id response_builder = OneLogin_Saml2_Logout_Response(self.__settings) response_builder.build(in_response_to) self.__last_response = response_builder.get_xml() logout_response = response_builder.get_response() parameters = {'SAMLResponse': logout_response} if 'RelayState' in self.__request_data['get_data']: parameters['RelayState'] = self.__request_data['get_data']['RelayState'] security = self.__settings.get_security_data() if security['logoutResponseSigned']: self.add_response_signature(parameters, security['signatureAlgorithm']) return self.redirect_to(self.get_slo_url(), parameters) else: self.__errors.append('invalid_binding') raise OneLogin_Saml2_Error( 'SAML LogoutRequest/LogoutResponse not found. Only supported HTTP_REDIRECT Binding', OneLogin_Saml2_Error.SAML_LOGOUTMESSAGE_NOT_FOUND ) def redirect_to(self, url=None, parameters={}): """ Redirects the user to the URL passed by parameter or to the URL that we defined in our SSO Request. :param url: The target URL to redirect the user :type url: string :param parameters: Extra parameters to be passed as part of the URL :type parameters: dict :returns: Redirection URL """ if url is None and 'RelayState' in self.__request_data['get_data']: url = self.__request_data['get_data']['RelayState'] return OneLogin_Saml2_Utils.redirect(url, parameters, request_data=self.__request_data) def is_authenticated(self): """ Checks if the user is authenticated or not. :returns: True if is authenticated, False if not :rtype: bool """ return self.__authenticated def get_attributes(self): """ Returns the set of SAML attributes. :returns: SAML attributes :rtype: dict """ return self.__attributes def get_nameid(self): """ Returns the nameID. :returns: NameID :rtype: string|None """ return self.__nameid def get_nameid_format(self): """ Returns the nameID Format. :returns: NameID Format :rtype: string|None """ return self.__nameid_format def get_session_index(self): """ Returns the SessionIndex from the AuthnStatement. :returns: The SessionIndex of the assertion :rtype: string """ return self.__session_index def get_session_expiration(self): """ Returns the SessionNotOnOrAfter from the AuthnStatement. :returns: The SessionNotOnOrAfter of the assertion :rtype: DateTime|None """ return self.__session_expiration def get_last_assertion_not_on_or_after(self): """ The NotOnOrAfter value of the valid SubjectConfirmationData node (if any) of the last assertion processed """ return self.__last_assertion_not_on_or_after def get_errors(self): """ Returns a list with code errors if something went wrong :returns: List of errors :rtype: list """ return self.__errors def get_last_error_reason(self): """ Returns the reason for the last error :returns: Reason of the last error :rtype: None | string """ return self.__error_reason def get_attribute(self, name): """ Returns the requested SAML attribute. :param name: Name of the attribute :type name: string :returns: Attribute value if exists or [] :rtype: string """ assert isinstance(name, compat.str_type) return self.__attributes.get(name) def get_last_request_id(self): """ :returns: The ID of the last Request SAML message generated. :rtype: string """ return self.__last_request_id def get_last_message_id(self): """ :returns: The ID of the last Response SAML message processed. :rtype: string """ return self.__last_message_id def get_last_assertion_id(self): """ :returns: The ID of the last assertion processed. :rtype: string """ return self.__last_assertion_id def get_last_authn_contexts(self): """ :returns: The list of authentication contexts sent in the last SAML Response. :rtype: list """ return self.__last_authn_contexts def login(self, return_to=None, force_authn=False, is_passive=False, set_nameid_policy=True, name_id_value_req=None): """ Initiates the SSO process. :param return_to: Optional argument. The target URL the user should be redirected to after login. :type return_to: string :param force_authn: Optional argument. When true the AuthNRequest will set the ForceAuthn='true'. :type force_authn: bool :param is_passive: Optional argument. When true the AuthNRequest will set the Ispassive='true'. :type is_passive: bool :param set_nameid_policy: Optional argument. When true the AuthNRequest will set a nameIdPolicy element. :type set_nameid_policy: bool :param name_id_value_req: Optional argument. Indicates to the IdP the subject that should be authenticated :type name_id_value_req: string :returns: Redirection URL :rtype: string """ authn_request = OneLogin_Saml2_Authn_Request(self.__settings, force_authn, is_passive, set_nameid_policy, name_id_value_req) self.__last_request = authn_request.get_xml() self.__last_request_id = authn_request.get_id() saml_request = authn_request.get_request() parameters = {'SAMLRequest': saml_request} if return_to is not None: parameters['RelayState'] = return_to else: parameters['RelayState'] = OneLogin_Saml2_Utils.get_self_url_no_query(self.__request_data) security = self.__settings.get_security_data() if security.get('authnRequestsSigned', False): self.add_request_signature(parameters, security['signatureAlgorithm']) return self.redirect_to(self.get_sso_url(), parameters) def logout(self, return_to=None, name_id=None, session_index=None, nq=None, name_id_format=None): """ Initiates the SLO process. :param return_to: Optional argument. The target URL the user should be redirected to after logout. :type return_to: string :param name_id: The NameID that will be set in the LogoutRequest. :type name_id: string :param session_index: SessionIndex that identifies the session of the user. :type session_index: string :param nq: IDP Name Qualifier :type: string :param name_id_format: The NameID Format that will be set in the LogoutRequest. :type: string :returns: Redirection URL """ slo_url = self.get_slo_url() if slo_url is None: raise OneLogin_Saml2_Error( 'The IdP does not support Single Log Out', OneLogin_Saml2_Error.SAML_SINGLE_LOGOUT_NOT_SUPPORTED ) if name_id is None and self.__nameid is not None: name_id = self.__nameid if name_id_format is None and self.__nameid_format is not None: name_id_format = self.__nameid_format logout_request = OneLogin_Saml2_Logout_Request( self.__settings, name_id=name_id, session_index=session_index, nq=nq, name_id_format=name_id_format ) self.__last_request = logout_request.get_xml() self.__last_request_id = logout_request.id parameters = {'SAMLRequest': logout_request.get_request()} if return_to is not None: parameters['RelayState'] = return_to else: parameters['RelayState'] = OneLogin_Saml2_Utils.get_self_url_no_query(self.__request_data) security = self.__settings.get_security_data() if security.get('logoutRequestSigned', False): self.add_request_signature(parameters, security['signatureAlgorithm']) return self.redirect_to(slo_url, parameters) def get_sso_url(self): """ Gets the SSO URL. :returns: An URL, the SSO endpoint of the IdP :rtype: string """ idp_data = self.__settings.get_idp_data() return idp_data['singleSignOnService']['url'] def get_slo_url(self): """ Gets the SLO URL. :returns: An URL, the SLO endpoint of the IdP :rtype: string """ idp_data = self.__settings.get_idp_data() if 'url' in idp_data['singleLogoutService']: return idp_data['singleLogoutService']['url'] def add_request_signature(self, request_data, sign_algorithm=OneLogin_Saml2_Constants.RSA_SHA1): """ Builds the Signature of the SAML Request. :param request_data: The Request parameters :type request_data: dict :param sign_algorithm: Signature algorithm method :type sign_algorithm: string """ return self.__build_signature(request_data, 'SAMLRequest', sign_algorithm) def add_response_signature(self, response_data, sign_algorithm=OneLogin_Saml2_Constants.RSA_SHA1): """ Builds the Signature of the SAML Response. :param response_data: The Response parameters :type response_data: dict :param sign_algorithm: Signature algorithm method :type sign_algorithm: string """ return self.__build_signature(response_data, 'SAMLResponse', sign_algorithm) @staticmethod def __build_sign_query(saml_data, relay_state, algorithm, saml_type, lowercase_urlencoding=False): """ Build sign query :param saml_data: The Request data :type saml_data: str :param relay_state: The Relay State :type relay_state: str :param algorithm: The Signature Algorithm :type algorithm: str :param saml_type: The target URL the user should be redirected to :type saml_type: string SAMLRequest | SAMLResponse :param lowercase_urlencoding: lowercase or no :type lowercase_urlencoding: boolean """ sign_data = ['%s=%s' % (saml_type, OneLogin_Saml2_Utils.escape_url(saml_data, lowercase_urlencoding))] if relay_state is not None: sign_data.append('RelayState=%s' % OneLogin_Saml2_Utils.escape_url(relay_state, lowercase_urlencoding)) sign_data.append('SigAlg=%s' % OneLogin_Saml2_Utils.escape_url(algorithm, lowercase_urlencoding)) return '&'.join(sign_data) def __build_signature(self, data, saml_type, sign_algorithm=OneLogin_Saml2_Constants.RSA_SHA1): """ Builds the Signature :param data: The Request data :type data: dict :param saml_type: The target URL the user should be redirected to :type saml_type: string SAMLRequest | SAMLResponse :param sign_algorithm: Signature algorithm method :type sign_algorithm: string """ assert saml_type in ('SAMLRequest', 'SAMLResponse') key = self.get_settings().get_sp_key() if not key: raise OneLogin_Saml2_Error( "Trying to sign the %s but can't load the SP private key." % saml_type, OneLogin_Saml2_Error.PRIVATE_KEY_NOT_FOUND ) msg = self.__build_sign_query(data[saml_type], data.get('RelayState', None), sign_algorithm, saml_type) sign_algorithm_transform_map = { OneLogin_Saml2_Constants.DSA_SHA1: xmlsec.Transform.DSA_SHA1, OneLogin_Saml2_Constants.RSA_SHA1: xmlsec.Transform.RSA_SHA1, OneLogin_Saml2_Constants.RSA_SHA256: xmlsec.Transform.RSA_SHA256, OneLogin_Saml2_Constants.RSA_SHA384: xmlsec.Transform.RSA_SHA384, OneLogin_Saml2_Constants.RSA_SHA512: xmlsec.Transform.RSA_SHA512 } sign_algorithm_transform = sign_algorithm_transform_map.get(sign_algorithm, xmlsec.Transform.RSA_SHA1) signature = OneLogin_Saml2_Utils.sign_binary(msg, key, sign_algorithm_transform, self.__settings.is_debug_active()) data['Signature'] = OneLogin_Saml2_Utils.b64encode(signature) data['SigAlg'] = sign_algorithm def validate_request_signature(self, request_data): """ Validate Request Signature :param request_data: The Request data :type request_data: dict """ return self.__validate_signature(request_data, 'SAMLRequest') def validate_response_signature(self, request_data): """ Validate Response Signature :param request_data: The Request data :type request_data: dict """ return self.__validate_signature(request_data, 'SAMLResponse') def __validate_signature(self, data, saml_type, raise_exceptions=False): """ Validate Signature :param data: The Request data :type data: dict :param cert: The certificate to check signature :type cert: str :param saml_type: The target URL the user should be redirected to :type saml_type: string SAMLRequest | SAMLResponse :param raise_exceptions: Whether to return false on failure or raise an exception :type raise_exceptions: Boolean """ try: signature = data.get('Signature', None) if signature is None: if self.__settings.is_strict() and self.__settings.get_security_data().get('wantMessagesSigned', False): raise OneLogin_Saml2_ValidationError( 'The %s is not signed. Rejected.' % saml_type, OneLogin_Saml2_ValidationError.NO_SIGNED_MESSAGE ) return True idp_data = self.get_settings().get_idp_data() exists_x509cert = 'x509cert' in idp_data and idp_data['x509cert'] exists_multix509sign = 'x509certMulti' in idp_data and \ 'signing' in idp_data['x509certMulti'] and \ idp_data['x509certMulti']['signing'] if not (exists_x509cert or exists_multix509sign): error_msg = 'In order to validate the sign on the %s, the x509cert of the IdP is required' % saml_type self.__errors.append(error_msg) raise OneLogin_Saml2_Error( error_msg, OneLogin_Saml2_Error.CERT_NOT_FOUND ) sign_alg = data.get('SigAlg', OneLogin_Saml2_Constants.RSA_SHA1) if isinstance(sign_alg, bytes): sign_alg = sign_alg.decode('utf8') lowercase_urlencoding = False if 'lowercase_urlencoding' in self.__request_data.keys(): lowercase_urlencoding = self.__request_data['lowercase_urlencoding'] signed_query = self.__build_sign_query(data[saml_type], data.get('RelayState', None), sign_alg, saml_type, lowercase_urlencoding ) if exists_multix509sign: for cert in idp_data['x509certMulti']['signing']: if OneLogin_Saml2_Utils.validate_binary_sign(signed_query, OneLogin_Saml2_Utils.b64decode(signature), cert, sign_alg): return True raise OneLogin_Saml2_ValidationError( 'Signature validation failed. %s rejected' % saml_type, OneLogin_Saml2_ValidationError.INVALID_SIGNATURE ) else: cert = idp_data['x509cert'] if not OneLogin_Saml2_Utils.validate_binary_sign(signed_query, OneLogin_Saml2_Utils.b64decode(signature), cert, sign_alg, self.__settings.is_debug_active()): raise OneLogin_Saml2_ValidationError( 'Signature validation failed. %s rejected' % saml_type, OneLogin_Saml2_ValidationError.INVALID_SIGNATURE ) return True except Exception as e: self.__error_reason = str(e) if raise_exceptions: raise e return False def get_last_response_xml(self, pretty_print_if_possible=False): """ Retrieves the raw XML (decrypted) of the last SAML response, or the last Logout Response generated or processed :returns: SAML response XML :rtype: string|None """ response = None if self.__last_response is not None: if isinstance(self.__last_response, compat.str_type): response = self.__last_response else: response = tostring(self.__last_response, encoding='unicode', pretty_print=pretty_print_if_possible) return response def get_last_request_xml(self): """ Retrieves the raw XML sent in the last SAML request :returns: SAML request XML :rtype: string|None """ return self.__last_request or None
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <tgmath.h> #import <CoreGraphics/CoreGraphics.h> #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <ReactABI26_0_0/ABI26_0_0RCTAssert.h> #import <ReactABI26_0_0/ABI26_0_0RCTDefines.h> NS_ASSUME_NONNULL_BEGIN // JSON serialization/deserialization ABI26_0_0RCT_EXTERN NSString *__nullable ABI26_0_0RCTJSONStringify(id __nullable jsonObject, NSError **error); ABI26_0_0RCT_EXTERN id __nullable ABI26_0_0RCTJSONParse(NSString *__nullable jsonString, NSError **error); ABI26_0_0RCT_EXTERN id __nullable ABI26_0_0RCTJSONParseMutable(NSString *__nullable jsonString, NSError **error); // Sanitize a JSON object by stripping invalid types and/or NaN values ABI26_0_0RCT_EXTERN id ABI26_0_0RCTJSONClean(id object); // Get MD5 hash of a string ABI26_0_0RCT_EXTERN NSString *ABI26_0_0RCTMD5Hash(NSString *string); // Check if we are currently on the main queue (not to be confused with // the main thread, which is not necessarily the same thing) // https://twitter.com/olebegemann/status/738656134731599872 ABI26_0_0RCT_EXTERN BOOL ABI26_0_0RCTIsMainQueue(void); // Execute the specified block on the main queue. Unlike dispatch_async() // this will execute immediately if we're already on the main queue. ABI26_0_0RCT_EXTERN void ABI26_0_0RCTExecuteOnMainQueue(dispatch_block_t block); // Legacy function to execute the specified block on the main queue synchronously. // Please do not use this unless you know what you're doing. ABI26_0_0RCT_EXTERN void ABI26_0_0RCTUnsafeExecuteOnMainQueueSync(dispatch_block_t block); // Get screen metrics in a thread-safe way ABI26_0_0RCT_EXTERN CGFloat ABI26_0_0RCTScreenScale(void); ABI26_0_0RCT_EXTERN CGSize ABI26_0_0RCTScreenSize(void); // Round float coordinates to nearest whole screen pixel (not point) ABI26_0_0RCT_EXTERN CGFloat ABI26_0_0RCTRoundPixelValue(CGFloat value); ABI26_0_0RCT_EXTERN CGFloat ABI26_0_0RCTCeilPixelValue(CGFloat value); ABI26_0_0RCT_EXTERN CGFloat ABI26_0_0RCTFloorPixelValue(CGFloat value); // Convert a size in points to pixels, rounded up to the nearest integral size ABI26_0_0RCT_EXTERN CGSize ABI26_0_0RCTSizeInPixels(CGSize pointSize, CGFloat scale); // Method swizzling ABI26_0_0RCT_EXTERN void ABI26_0_0RCTSwapClassMethods(Class cls, SEL original, SEL replacement); ABI26_0_0RCT_EXTERN void ABI26_0_0RCTSwapInstanceMethods(Class cls, SEL original, SEL replacement); // Module subclass support ABI26_0_0RCT_EXTERN BOOL ABI26_0_0RCTClassOverridesClassMethod(Class cls, SEL selector); ABI26_0_0RCT_EXTERN BOOL ABI26_0_0RCTClassOverridesInstanceMethod(Class cls, SEL selector); // Creates a standardized error object to return in callbacks ABI26_0_0RCT_EXTERN NSDictionary<NSString *, id> *ABI26_0_0RCTMakeError(NSString *message, id __nullable toStringify, NSDictionary<NSString *, id> *__nullable extraData); ABI26_0_0RCT_EXTERN NSDictionary<NSString *, id> *ABI26_0_0RCTMakeAndLogError(NSString *message, id __nullable toStringify, NSDictionary<NSString *, id> *__nullable extraData); ABI26_0_0RCT_EXTERN NSDictionary<NSString *, id> *ABI26_0_0RCTJSErrorFromNSError(NSError *error); ABI26_0_0RCT_EXTERN NSDictionary<NSString *, id> *ABI26_0_0RCTJSErrorFromCodeMessageAndNSError(NSString *code, NSString *message, NSError *__nullable error); // The default error code to use as the `code` property for callback error objects ABI26_0_0RCT_EXTERN NSString *const ABI26_0_0RCTErrorUnspecified; // Returns YES if ReactABI26_0_0 is running in a test environment ABI26_0_0RCT_EXTERN BOOL ABI26_0_0RCTRunningInTestEnvironment(void); // Returns YES if ReactABI26_0_0 is running in an iOS App Extension ABI26_0_0RCT_EXTERN BOOL ABI26_0_0RCTRunningInAppExtension(void); // Returns the shared UIApplication instance, or nil if running in an App Extension ABI26_0_0RCT_EXTERN UIApplication *__nullable ABI26_0_0RCTSharedApplication(void); // Returns the current main window, useful if you need to access the root view // or view controller ABI26_0_0RCT_EXTERN UIWindow *__nullable ABI26_0_0RCTKeyWindow(void); // Returns the presented view controller, useful if you need // e.g. to present a modal view controller or alert over it ABI26_0_0RCT_EXTERN UIViewController *__nullable ABI26_0_0RCTPresentedViewController(void); // Does this device support force touch (aka 3D Touch)? ABI26_0_0RCT_EXTERN BOOL ABI26_0_0RCTForceTouchAvailable(void); // Create an NSError in the ABI26_0_0RCTErrorDomain ABI26_0_0RCT_EXTERN NSError *ABI26_0_0RCTErrorWithMessage(NSString *message); // Convert nil values to NSNull, and vice-versa #define ABI26_0_0RCTNullIfNil(value) (value ?: (id)kCFNull) #define ABI26_0_0RCTNilIfNull(value) \ ({ __typeof__(value) t = (value); (id)t == (id)kCFNull ? (__typeof(value))nil : t; }) // Convert NaN or infinite values to zero, as these aren't JSON-safe ABI26_0_0RCT_EXTERN double ABI26_0_0RCTZeroIfNaN(double value); // Returns `0` and log special warning if value is NaN or INF. ABI26_0_0RCT_EXTERN double ABI26_0_0RCTSanitizeNaNValue(double value, NSString *property); // Convert data to a Base64-encoded data URL ABI26_0_0RCT_EXTERN NSURL *ABI26_0_0RCTDataURL(NSString *mimeType, NSData *data); // Gzip functionality - compression level in range 0 - 1 (-1 for default) ABI26_0_0RCT_EXTERN NSData *__nullable ABI26_0_0RCTGzipData(NSData *__nullable data, float level); // Returns the relative path within the main bundle for an absolute URL // (or nil, if the URL does not specify a path within the main bundle) ABI26_0_0RCT_EXTERN NSString *__nullable ABI26_0_0RCTBundlePathForURL(NSURL *__nullable URL); // Returns the Path of Library directory ABI26_0_0RCT_EXTERN NSString *__nullable ABI26_0_0RCTLibraryPath(void); // Returns the relative path within the library for an absolute URL // (or nil, if the URL does not specify a path within the Library directory) ABI26_0_0RCT_EXTERN NSString *__nullable ABI26_0_0RCTLibraryPathForURL(NSURL *__nullable URL); // Determines if a given image URL refers to a image in bundle ABI26_0_0RCT_EXTERN BOOL ABI26_0_0RCTIsBundleAssetURL(NSURL *__nullable imageURL); // Determines if a given image URL refers to a image in library ABI26_0_0RCT_EXTERN BOOL ABI26_0_0RCTIsLibraryAssetURL(NSURL *__nullable imageURL); // Determines if a given image URL refers to a local image ABI26_0_0RCT_EXTERN BOOL ABI26_0_0RCTIsLocalAssetURL(NSURL *__nullable imageURL); // Returns an UIImage for a local image asset. Returns nil if the URL // does not correspond to a local asset. ABI26_0_0RCT_EXTERN UIImage *__nullable ABI26_0_0RCTImageFromLocalAssetURL(NSURL *imageURL); // Creates a new, unique temporary file path with the specified extension ABI26_0_0RCT_EXTERN NSString *__nullable ABI26_0_0RCTTempFilePath(NSString *__nullable extension, NSError **error); // Converts a CGColor to a hex string ABI26_0_0RCT_EXTERN NSString *ABI26_0_0RCTColorToHexString(CGColorRef color); // Get standard localized string (if it exists) ABI26_0_0RCT_EXTERN NSString *ABI26_0_0RCTUIKitLocalizedString(NSString *string); // URL manipulation ABI26_0_0RCT_EXTERN NSString *__nullable ABI26_0_0RCTGetURLQueryParam(NSURL *__nullable URL, NSString *param); ABI26_0_0RCT_EXTERN NSURL *__nullable ABI26_0_0RCTURLByReplacingQueryParam(NSURL *__nullable URL, NSString *param, NSString *__nullable value); NS_ASSUME_NONNULL_END
/******************************************************************************** * Ledger Node JS API * (c) 2017-2018 Ledger * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ********************************************************************************/ //@flow import type Transport from "@ledgerhq/hw-transport"; import { splitPath, foreach, encodeEd25519PublicKey, verifyEd25519Signature, checkStellarBip32Path, hash } from "./utils"; const CLA = 0xe0; const INS_GET_PK = 0x02; const INS_SIGN_TX = 0x04; const INS_GET_CONF = 0x06; const INS_SIGN_TX_HASH = 0x08; const APDU_MAX_SIZE = 150; const P1_FIRST_APDU = 0x00; const P1_MORE_APDU = 0x80; const P2_LAST_APDU = 0x00; const P2_MORE_APDU = 0x80; const SW_OK = 0x9000; const SW_CANCEL = 0x6985; const SW_UNKNOWN_OP = 0x6c24; const SW_MULTI_OP = 0x6c25; const SW_SAFE_MODE = 0x6c66; const SW_UNSUPPORTED = 0x6d00; /** * Stellar API * * @example * import Str from "@ledgerhq/hw-app-str"; * const str = new Str(transport) */ export default class Str { transport: Transport<*>; constructor(transport: Transport<*>) { this.transport = transport; transport.decorateAppAPIMethods( this, ["getAppConfiguration", "getPublicKey", "signTransaction", "signHash"], "l0v" ); } getAppConfiguration(): Promise<{ version: string }> { return this.transport.send(CLA, INS_GET_CONF, 0x00, 0x00).then(response => { let multiOpsEnabled = response[0] === 0x01 || response[1] < 0x02; let version = "" + response[1] + "." + response[2] + "." + response[3]; return { version: version, multiOpsEnabled: multiOpsEnabled }; }); } /** * get Stellar public key for a given BIP 32 path. * @param path a path in BIP 32 format * @option boolValidate optionally enable key pair validation * @option boolDisplay optionally enable or not the display * @return an object with the publicKey * @example * str.getPublicKey("44'/148'/0'").then(o => o.publicKey) */ getPublicKey( path: string, boolValidate?: boolean, boolDisplay?: boolean ): Promise<{ publicKey: string }> { let pathElts = splitPath(path); let buffer = new Buffer(1 + pathElts.length * 4); buffer[0] = pathElts.length; pathElts.forEach((element, index) => { buffer.writeUInt32BE(element, 1 + 4 * index); }); let verifyMsg = Buffer.from("via lumina", "ascii"); buffer = Buffer.concat([buffer, verifyMsg]); return this.transport .send( CLA, INS_GET_PK, boolValidate ? 0x01 : 0x00, boolDisplay ? 0x01 : 0x00, buffer ) .then(response => { // response = Buffer.from(response, 'hex'); let offset = 0; let rawPublicKey = response.slice(offset, offset + 32); offset += 32; let publicKey = encodeEd25519PublicKey(rawPublicKey); if (boolValidate) { let signature = response.slice(offset, offset + 64); if (!verifyEd25519Signature(verifyMsg, signature, rawPublicKey)) { throw new Error( "Bad signature. Keypair is invalid. Please report this." ); } } return { publicKey: publicKey }; }); } /** * sign a Stellar transaction. * @param path a path in BIP 32 format * @param transaction signature base of the transaction to sign * @return an object with the signature and the status * @example * str.signTransaction("44'/148'/0'", signatureBase).then(o => o.signature) */ signTransaction( path: string, transaction: Buffer ): Promise<{ signature: Buffer }> { checkStellarBip32Path(path); let apdus = []; let response; let pathElts = splitPath(path); let bufferSize = 1 + pathElts.length * 4; let buffer = Buffer.alloc(bufferSize); buffer[0] = pathElts.length; pathElts.forEach(function(element, index) { buffer.writeUInt32BE(element, 1 + 4 * index); }); let chunkSize = APDU_MAX_SIZE - bufferSize; if (transaction.length <= chunkSize) { // it fits in a single apdu apdus.push(Buffer.concat([buffer, transaction])); } else { // we need to send multiple apdus to transmit the entire transaction let chunk = Buffer.alloc(chunkSize); let offset = 0; transaction.copy(chunk, 0, offset, chunkSize); apdus.push(Buffer.concat([buffer, chunk])); offset += chunkSize; while (offset < transaction.length) { let remaining = transaction.length - offset; chunkSize = remaining < APDU_MAX_SIZE ? remaining : APDU_MAX_SIZE; chunk = Buffer.alloc(chunkSize); transaction.copy(chunk, 0, offset, offset + chunkSize); offset += chunkSize; apdus.push(chunk); } } return foreach(apdus, (data, i) => this.transport .send( CLA, INS_SIGN_TX, i === 0 ? P1_FIRST_APDU : P1_MORE_APDU, i === apdus.length - 1 ? P2_LAST_APDU : P2_MORE_APDU, data, [SW_OK, SW_CANCEL, SW_UNKNOWN_OP, SW_MULTI_OP] ) .then(apduResponse => { response = apduResponse; }) ).then(() => { let status = Buffer.from( response.slice(response.length - 2) ).readUInt16BE(0); if (status === SW_OK) { let signature = Buffer.from(response.slice(0, response.length - 2)); return { signature: signature }; } else if (status === SW_UNKNOWN_OP) { // pre-v2 app version: fall back on hash signing return this.signHash_private(path, hash(transaction)); } else if (status === SW_MULTI_OP) { // multi-operation transaction: attempt hash signing return this.signHash_private(path, hash(transaction)); } else { throw new Error("Transaction approval request was rejected"); } }); } /** * @deprecated * sign a Stellar transaction hash. * @param path a path in BIP 32 format * @param hash hash of the transaction to sign * @return an object with the signature * @example * str.signHash("44'/148'/0'", hash).then(o => o.signature) */ signHash(path: string, hash: Buffer): Promise<{ signature: Buffer }> { return this.signHash_private(path, hash); } signHash_private(path: string, hash: Buffer): Promise<{ signature: Buffer }> { let pathElts = splitPath(path); let buffer = Buffer.alloc(1 + pathElts.length * 4); buffer[0] = pathElts.length; pathElts.forEach(function(element, index) { buffer.writeUInt32BE(element, 1 + 4 * index); }); buffer = Buffer.concat([buffer, hash]); return this.transport .send(CLA, INS_SIGN_TX_HASH, 0x00, 0x00, buffer, [ SW_OK, SW_CANCEL, SW_SAFE_MODE, SW_UNSUPPORTED ]) .then(response => { let status = Buffer.from( response.slice(response.length - 2) ).readUInt16BE(0); if (status === SW_OK) { let signature = Buffer.from(response.slice(0, response.length - 2)); return { signature: signature }; } if (status === SW_SAFE_MODE) { throw new Error( "To sign multi-operation transactions 'Unsafe mode' must be enabled in the app settings" ); } else if (status === SW_UNSUPPORTED) { throw new Error("Multi-operation transactions are not supported"); } else { throw new Error("Transaction approval request was rejected"); } }); } }
#!bin/python # Helpful script for converting fixed point signed numbers to decimal def letter2num(x): if (x == "F" or x == "f"): return 15 elif (x == "E" or x == "e"): return 14 elif (x == "D" or x == "d"): return 13 elif (x == "C" or x == "c"): return 12 elif (x == "B" or x == "b"): return 11 elif (x == "A" or x == "a"): return 10 elif (x == "9"): return 9 elif (x == "8"): return 8 elif (x == "7"): return 7 elif (x == "6"): return 6 elif (x == "5"): return 5 elif (x == "4"): return 4 elif (x == "3"): return 3 elif (x == "2"): return 2 elif (x == "1"): return 1 elif (x == "0"): return 0 elif (x == "."): return 0 def num2letter(x): if (x == 15): return "F" elif (x == 14): return "E" elif (x == 13): return "D" elif (x == 12): return "C" elif (x == 11): return "B" elif (x == 10): return "A" elif (x == 9): return "9" elif (x == 8): return "8" elif (x == 7): return "7" elif (x == 6): return "6" elif (x == 5): return "5" elif (x == 4): return "4" elif (x == 3): return "3" elif (x == 2): return "2" elif (x == 1): return "1" elif (x == 0): return "0" else: return "." def twoscomp(number, numdigits): s = "" for i in range(0, numdigits): if (number[i] != "."): s+=num2letter(15 - letter2num(number[i])) else: s+="." return s def negative(number, dec): if (number[0] != "."): if (letter2num(number[0]) >= 8): return True else: return False else: if (letter2num(number[1]) >= 8): return True else: return False def factor(digit, dec): if (digit < dec): dist = dec - digit - 1 else: dist = dec - digit return 16**dist def adder(numdigits, dec): if (numdigits == dec): return 1 else: return 16**-(numdigits-dec-1) tp = raw_input("Hex to dec? [Y/n] (yes = hex -> dec, no = dec -> hex): ") if (tp == "y" or tp == "Y" or tp == ""): hex2dec = True else: hex2dec = False while(1): if hex2dec: number = raw_input("Hex to dec: ") numdigits = len(number) position = number.find(".") if position == -1: position = numdigits isNeg = negative(number, position) if (isNeg): number = twoscomp(number, numdigits) scalar = -1 add = adder(numdigits,position) else: scalar = 1 add = 0 converted = 0 for i in range(0, numdigits): converted = converted + letter2num(number[i]) * factor(i,position) print (converted + add) * scalar else: numFbits = 16 numDbits = 32 number = float(raw_input("Dec to hex: ")) number = int(number*(16**(numFbits/4))) if number > 0: converted = hex(number) else: number = 16**(numDbits/4 + numFbits/4) + number converted = hex(number) print converted[0:len(converted)-(numFbits/4)] + "." + converted[len(converted)-(numFbits/4):len(converted)]
/* Mince Slicer MIT License Copyright (c) 2021 Juan Jose Luna Espinosa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ import { ReliefNode } from './ReliefNode.js'; class ReliefNodeAdd extends ReliefNode { constructor( name, parameterSignatures, parameterValues, context ) { super( name, parameterSignatures, parameterValues, context ); this.className = 'Add'; this.aNode = parameterValues[ 0 ]; this.bNode = parameterValues[ 1 ]; } evaluate( uv, pos, normal, materialIndex ) { return this.aNode.evaluate( uv, pos, normal, materialIndex ) + this.bNode.evaluate( uv, pos, normal, materialIndex ); } } export { ReliefNodeAdd };
from django.apps import AppConfig class UploadConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'apps.upload'
import React from "react"; export default function FooterAdmin() { return ( <> <footer className="block py-4"> <div className="container mx-auto px-4"> <hr className="mb-4 border-b-1 border-gray-300" /> <div className="flex flex-wrap items-center md:justify-between justify-center"> <div className="w-full md:w-4/12 px-4"> <div className="text-sm text-gray-600 font-semibold py-1 text-center md:text-left"> Copyright © {new Date().getFullYear()}{" "} <a href="#" className="text-gray-600 hover:text-gray-800 text-sm font-semibold py-1" > Carteira Nacional Digital de Vacina </a> </div> </div> <div className="w-full md:w-8/12 px-4"> <ul className="flex flex-wrap list-none md:justify-end justify-center"> <li> <a href="#" className="text-gray-700 hover:text-gray-900 text-sm font-semibold block py-1 px-3" > Creative Tim </a> </li> <li> <a href="#" className="text-gray-700 hover:text-gray-900 text-sm font-semibold block py-1 px-3" > About Us </a> </li> <li> <a href="#" className="text-gray-700 hover:text-gray-900 text-sm font-semibold block py-1 px-3" > Blog </a> </li> <li> <a href="#" className="text-gray-700 hover:text-gray-900 text-sm font-semibold block py-1 px-3" > MIT License </a> </li> </ul> </div> </div> </div> </footer> </> ); }
'use strict'; module.exports = function (config) { config.set({ files: [ 'node_modules/angular/angular.js', 'node_modules/angular-mocks/angular-mocks.js', 'node_modules/linkheader-parser/dist/linkheader-parser-browser.js', 'node_modules/mediatype-parser/dist/mediatype-parser-browser.js', 'node_modules/uri-templates/uri-templates.js', 'src/*.js' ], autoWatch: true, frameworks: ['jasmine'], browsers: ['PhantomJS2'], preprocessors: { 'src/**/!(*.spec)+(.js)': ['coverage'] }, reporters: ['progress', 'coverage'], coverageReporter: { dir: 'build/coverage', reporters: [ {type: 'text-summary'}, {type: 'html', subdir: '.'}, {type: 'lcovonly', subdir: '.'} ] } }); };
#include "vntlib.h" KEY uint16 count = 1000 constructor Fallback4() {} MUTABLE uint16 test1(uint16 amount){ for(uint8 i = 0; i< amount; i++) { count += i; } return count; } _(){ uint16 res = test1(count); PrintInt16T("res", res); }
/* BitmapText - An actor that holds a Font and draws text to the screen. */ #ifndef BITMAPTEXT_H #define BITMAPTEXT_H #include "Sprite.h" class Font; class BitmapText : public Actor { public: BitmapText(); virtual ~BitmapText(); bool LoadFromFont( CString sFontName ); bool LoadFromTextureAndChars( CString sTexturePath, CString sChars ); void SetText( CString sText, CString sAlternateText = "", int iWrapWidthPixels = -1 ); void SetMaxWidth( float MaxWidth ); void SetWrapWidthPixels( int iWrapWidthPixels ); void CropToWidth( int iWidthInSourcePixels ); virtual bool EarlyAbortDraw(); virtual void DrawPrimitives(); void TurnRainbowOn() { m_bRainbow = true; }; void TurnRainbowOff() { m_bRainbow = false; }; void SetHorizAlign( HorizAlign ha ); void SetVertAlign( VertAlign va ); void GetLines( vector<wstring> &wTextLines ) { wTextLines = m_wTextLines; } CString GetText() const { return m_sText; } /* Return true if the string 's' will use an alternate string, if available. */ bool StringWillUseAlternate(CString sText, CString sAlternateText) const; virtual void HandleCommand( const ParsedCommand &command ); public: Font* m_pFont; protected: // recalculate the items below on SetText() CString m_sText; vector<wstring> m_wTextLines; vector<int> m_iLineWidths; // in source pixels int m_iWrapWidthPixels; // -1 = no wrap float m_fMaxWidth; bool m_bRainbow; vector<RageSpriteVertex> verts; vector<RageTexture *> tex; void BuildChars(); void DrawChars(); void UpdateBaseZoom(); }; #endif /* * (c) 2001-2004 Chris Danford * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, and/or sell copies of the Software, and to permit persons to * whom the Software is furnished to do so, provided that the above * copyright notice(s) and this permission notice appear in all copies of * the Software and that both the above copyright notice(s) and this * permission notice appear in supporting documentation. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Service Class # this is a auto generated file generated by Cheetah # Libre Office Version: 7.3 # Namespace: com.sun.star.form.control from ....lo.form.control.time_field import TimeField as TimeField __all__ = ['TimeField']
import React, {Component} from 'react'; import {Row, Col} from 'react-bootstrap'; import '../css/homepage.css'; import ImgCon from "../util/imgCon"; import HomepageData from '../content/homepageData'; class HomePage extends Component { render() { return( <> <Row id="welcomeContainer"> <Col id="teamIntroTitle" xs={{span:10,offset:1}} lg={{span:6,offset:3}}> My Work </Col> </Row> <Row className="teamContainer"> {HomepageData.map(article => ( <ImgCon item={article} /> ))} </Row> </> ); } } export default HomePage;
(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e){"use strict";var t={},n=Math.max,r=Math.min;t.c={};t.c.d=e(document);t.c.t=function(e){return e.originalEvent.touches.length-1};t.o=function(){var n=this;this.o=null;this.$=null;this.i=null;this.g=null;this.v=null;this.cv=null;this.x=0;this.y=0;this.w=0;this.h=0;this.$c=null;this.c=null;this.t=0;this.isInit=false;this.fgColor=null;this.pColor=null;this.dH=null;this.cH=null;this.eH=null;this.rH=null;this.scale=1;this.relative=false;this.relativeWidth=false;this.relativeHeight=false;this.$div=null;this.run=function(){var t=function(e,t){var r;for(r in t){n.o[r]=t[r]}n._carve().init();n._configure()._draw()};if(this.$.data("kontroled"))return;this.$.data("kontroled",true);this.extend();this.o=e.extend({min:this.$.data("min")!==undefined?this.$.data("min"):0,max:this.$.data("max")!==undefined?this.$.data("max"):100,stopper:true,readOnly:this.$.data("readonly")||this.$.attr("readonly")==="readonly",cursor:this.$.data("cursor")===true&&30||this.$.data("cursor")||0,thickness:this.$.data("thickness")&&Math.max(Math.min(this.$.data("thickness"),1),.01)||.35,lineCap:this.$.data("linecap")||"butt",width:this.$.data("width")||200,height:this.$.data("height")||200,displayInput:this.$.data("displayinput")==null||this.$.data("displayinput"),displayPrevious:this.$.data("displayprevious"),fgColor:this.$.data("fgcolor")||"#87CEEB",inputColor:this.$.data("inputcolor"),font:this.$.data("font")||"Arial",fontWeight:this.$.data("font-weight")||"bold",inline:false,step:this.$.data("step")||1,rotation:this.$.data("rotation"),draw:null,change:null,cancel:null,release:null,format:function(e){return e},parse:function(e){return parseFloat(e)}},this.o);this.o.flip=this.o.rotation==="anticlockwise"||this.o.rotation==="acw";if(!this.o.inputColor){this.o.inputColor=this.o.fgColor}if(this.$.is("fieldset")){this.v={};this.i=this.$.find("input");this.i.each(function(t){var r=e(this);n.i[t]=r;n.v[t]=n.o.parse(r.val());r.bind("change blur",function(){var e={};e[t]=r.val();n.val(n._validate(e))})});this.$.find("legend").remove()}else{this.i=this.$;this.v=this.o.parse(this.$.val());this.v===""&&(this.v=this.o.min);this.$.bind("change blur",function(){n.val(n._validate(n.o.parse(n.$.val())))})}!this.o.displayInput&&this.$.hide();this.$c=e(document.createElement("canvas")).attr({width:this.o.width,height:this.o.height});this.$div=e('<div style="'+(this.o.inline?"display:inline;":"")+"width:"+this.o.width+"px;height:"+this.o.height+"px;"+'"></div>');this.$.wrap(this.$div).before(this.$c);this.$div=this.$.parent();if(typeof G_vmlCanvasManager!=="undefined"){G_vmlCanvasManager.initElement(this.$c[0])}this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null;if(!this.c){throw{name:"CanvasNotSupportedException",message:"Canvas not supported. Please use excanvas on IE8.0.",toString:function(){return this.name+": "+this.message}}}this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||1);this.relativeWidth=this.o.width%1!==0&&this.o.width.indexOf("%");this.relativeHeight=this.o.height%1!==0&&this.o.height.indexOf("%");this.relative=this.relativeWidth||this.relativeHeight;this._carve();if(this.v instanceof Object){this.cv={};this.copy(this.v,this.cv)}else{this.cv=this.v}this.$.bind("configure",t).parent().bind("configure",t);this._listen()._configure()._xy().init();this.isInit=true;this.$.val(this.o.format(this.v));this._draw();return this};this._carve=function(){if(this.relative){var e=this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),t=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(e,t)}else{this.w=this.o.width;this.h=this.o.height}this.$div.css({width:this.w+"px",height:this.h+"px"});this.$c.attr({width:this.w,height:this.h});if(this.scale!==1){this.$c[0].width=this.$c[0].width*this.scale;this.$c[0].height=this.$c[0].height*this.scale;this.$c.width(this.w);this.$c.height(this.h)}return this};this._draw=function(){var e=true;n.g=n.c;n.clear();n.dH&&(e=n.dH());e!==false&&n.draw()};this._touch=function(e){var r=function(e){var t=n.xy2val(e.originalEvent.touches[n.t].pageX,e.originalEvent.touches[n.t].pageY);if(t==n.cv)return;if(n.cH&&n.cH(t)===false)return;n.change(n._validate(t));n._draw()};this.t=t.c.t(e);r(e);t.c.d.bind("touchmove.k",r).bind("touchend.k",function(){t.c.d.unbind("touchmove.k touchend.k");n.val(n.cv)});return this};this._mouse=function(e){var r=function(e){var t=n.xy2val(e.pageX,e.pageY);if(t==n.cv)return;if(n.cH&&n.cH(t)===false)return;n.change(n._validate(t));n._draw()};r(e);t.c.d.bind("mousemove.k",r).bind("keyup.k",function(e){if(e.keyCode===27){t.c.d.unbind("mouseup.k mousemove.k keyup.k");if(n.eH&&n.eH()===false)return;n.cancel()}}).bind("mouseup.k",function(e){t.c.d.unbind("mousemove.k mouseup.k keyup.k");n.val(n.cv)});return this};this._xy=function(){var e=this.$c.offset();this.x=e.left;this.y=e.top;return this};this._listen=function(){if(!this.o.readOnly){this.$c.bind("mousedown",function(e){e.preventDefault();n._xy()._mouse(e)}).bind("touchstart",function(e){e.preventDefault();n._xy()._touch(e)});this.listen()}else{this.$.attr("readonly","readonly")}if(this.relative){e(window).resize(function(){n._carve().init();n._draw()})}return this};this._configure=function(){if(this.o.draw)this.dH=this.o.draw;if(this.o.change)this.cH=this.o.change;if(this.o.cancel)this.eH=this.o.cancel;if(this.o.release)this.rH=this.o.release;if(this.o.displayPrevious){this.pColor=this.h2rgba(this.o.fgColor,"0.4");this.fgColor=this.h2rgba(this.o.fgColor,"0.6")}else{this.fgColor=this.o.fgColor}return this};this._clear=function(){this.$c[0].width=this.$c[0].width};this._validate=function(e){var t=~~((e<0?-.5:.5)+e/this.o.step)*this.o.step;return Math.round(t*100)/100};this.listen=function(){};this.extend=function(){};this.init=function(){};this.change=function(e){};this.val=function(e){};this.xy2val=function(e,t){};this.draw=function(){};this.clear=function(){this._clear()};this.h2rgba=function(e,t){var n;e=e.substring(1,7);n=[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16)];return"rgba("+n[0]+","+n[1]+","+n[2]+","+t+")"};this.copy=function(e,t){for(var n in e){t[n]=e[n]}}};t.Dial=function(){t.o.call(this);this.startAngle=null;this.xy=null;this.radius=null;this.lineWidth=null;this.cursorExt=null;this.w2=null;this.PI2=2*Math.PI;this.extend=function(){this.o=e.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:true},this.o)};this.val=function(e,t){if(null!=e){e=this.o.parse(e);if(t!==false&&e!=this.v&&this.rH&&this.rH(e)===false){return}this.cv=this.o.stopper?n(r(e,this.o.max),this.o.min):e;this.v=this.cv;this.$.val(this.o.format(this.v));this._draw()}else{return this.v}};this.xy2val=function(e,t){var i,s;i=Math.atan2(e-(this.x+this.w2),-(t-this.y-this.w2))-this.angleOffset;if(this.o.flip){i=this.angleArc-i-this.PI2}if(this.angleArc!=this.PI2&&i<0&&i>-.5){i=0}else if(i<0){i+=this.PI2}s=i*(this.o.max-this.o.min)/this.angleArc+this.o.min;this.o.stopper&&(s=n(r(s,this.o.max),this.o.min));return s};this.listen=function(){var t=this,i,s,o=function(e){e.preventDefault();var o=e.originalEvent,u=o.detail||o.wheelDeltaX,a=o.detail||o.wheelDeltaY,f=t._validate(t.o.parse(t.$.val()))+(u>0||a>0?t.o.step:u<0||a<0?-t.o.step:0);f=n(r(f,t.o.max),t.o.min);t.val(f,false);if(t.rH){clearTimeout(i);i=setTimeout(function(){t.rH(f);i=null},100);if(!s){s=setTimeout(function(){if(i)t.rH(f);s=null},200)}}},u,a,f=1,l={37:-t.o.step,38:t.o.step,39:t.o.step,40:-t.o.step};this.$.bind("keydown",function(i){var s=i.keyCode;if(s>=96&&s<=105){s=i.keyCode=s-48}u=parseInt(String.fromCharCode(s));if(isNaN(u)){s!==13&&s!==8&&s!==9&&s!==189&&(s!==190||t.$.val().match(/\./))&&i.preventDefault();if(e.inArray(s,[37,38,39,40])>-1){i.preventDefault();var o=t.o.parse(t.$.val())+l[s]*f;t.o.stopper&&(o=n(r(o,t.o.max),t.o.min));t.change(t._validate(o));t._draw();a=window.setTimeout(function(){f*=2},30)}}}).bind("keyup",function(e){if(isNaN(u)){if(a){window.clearTimeout(a);a=null;f=1;t.val(t.$.val())}}else{t.$.val()>t.o.max&&t.$.val(t.o.max)||t.$.val()<t.o.min&&t.$.val(t.o.min)}});this.$c.bind("mousewheel DOMMouseScroll",o);this.$.bind("mousewheel DOMMouseScroll",o)};this.init=function(){if(this.v<this.o.min||this.v>this.o.max){this.v=this.o.min}this.$.val(this.v);this.w2=this.w/2;this.cursorExt=this.o.cursor/100;this.xy=this.w2*this.scale;this.lineWidth=this.xy*this.o.thickness;this.lineCap=this.o.lineCap;this.radius=this.xy-this.lineWidth/2;this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset);this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc);this.angleOffset=this.o.angleOffset*Math.PI/180;this.angleArc=this.o.angleArc*Math.PI/180;this.startAngle=1.5*Math.PI+this.angleOffset;this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var e=n(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(this.w*3/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+" "+(this.w/e>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})};this.change=function(e){this.cv=e;this.$.val(this.o.format(e))};this.angle=function(e){return(e-this.o.min)*this.angleArc/(this.o.max-this.o.min)};this.arc=function(e){var t,n;e=this.angle(e);if(this.o.flip){t=this.endAngle+1e-5;n=t-e-1e-5}else{t=this.startAngle-1e-5;n=t+e+1e-5}this.o.cursor&&(t=n-this.cursorExt)&&(n=n+this.cursorExt);return{s:t,e:n,d:this.o.flip&&!this.o.cursor}};this.draw=function(){var e=this.g,t=this.arc(this.cv),n,r=1;e.lineWidth=this.lineWidth;e.lineCap=this.lineCap;if(this.o.bgColor!=="none"){e.beginPath();e.strokeStyle=this.o.bgColor;e.arc(this.xy,this.xy,this.radius,this.endAngle-1e-5,this.startAngle+1e-5,true);e.stroke()}if(this.o.displayPrevious){n=this.arc(this.v);e.beginPath();e.strokeStyle=this.pColor;e.arc(this.xy,this.xy,this.radius,n.s,n.e,n.d);e.stroke();r=this.cv==this.v}e.beginPath();e.strokeStyle=r?this.o.fgColor:this.fgColor;e.arc(this.xy,this.xy,this.radius,t.s,t.e,t.d);e.stroke()};this.cancel=function(){this.val(this.v)}};e.fn.dial=e.fn.knob=function(n){return this.each(function(){var r=new t.Dial;r.o=n;r.$=e(this);r.run()}).parent()}})
import React from 'react'; import Layout from './components/Layout/Layout'; import Container from './components/Container/Container'; import Profile from './components/profile/Profile'; import Statistics from './components/statistics/Statistics'; import FriendList from './components/friendList/FriendList'; import TransactionHistory from './components/transactionHistory/TransactionHistory'; import user from './data/userData.json'; import statisticalData from './data/statistical-data.json'; import friends from './data/friends.json'; import transactions from './data/transactions.json'; const App = () => { return ( <Layout> <Container> <Profile name={user.name} tag={user.tag} location={user.location} avatar={user.avatar} stats={user.stats} /> <Statistics title="Upload stats" stats={statisticalData} /> <FriendList friends={friends} /> <TransactionHistory items={transactions} /> </Container> </Layout> ); }; export default App;
/* $Xorg: SetTxtProp.c,v 1.4 2001/02/09 02:03:36 xorgcvs Exp $ */ /*********************************************************** Copyright 1988 by Wyse Technology, Inc., San Jose, Ca. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Wyse not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ /* Copyright 1988, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <X11/Xlibint.h> #include <X11/Xatom.h> #include <X11/Xutil.h> #include <X11/Xos.h> #include <stdio.h> void XSetTextProperty ( Display *dpy, Window w, XTextProperty *tp, Atom property) { XChangeProperty (dpy, w, property, tp->encoding, tp->format, PropModeReplace, tp->value, tp->nitems); } void XSetWMName ( Display *dpy, Window w, XTextProperty *tp) { XSetTextProperty (dpy, w, tp, XA_WM_NAME); } void XSetWMIconName ( Display *dpy, Window w, XTextProperty *tp) { XSetTextProperty (dpy, w, tp, XA_WM_ICON_NAME); } void XSetWMClientMachine ( Display *dpy, Window w, XTextProperty *tp) { XSetTextProperty (dpy, w, tp, XA_WM_CLIENT_MACHINE); }
const CustomError = require("../extensions/custom-error"); module.exports = function transform(array) { arr = array.slice(0); for (let i = 0; i<arr.length; i++){ if (arr[i]==undefined){ //do nothing } else if (arr[i] == '--double-next'){ arr[i]=arr[i+1]; } else if (arr[i] == '--double-prev'){ if (arr[i-1]){ arr[i] = arr[i-1]; } } else if (arr[i] == '--discard-prev'){ arr[i-1]=undefined; } else if (arr[i] == '--discard-next'){ arr[i+1]=undefined; } } clear = [] for (let el of arr){ if (typeof el == 'number'){ clear.push(el); } } return clear; };
const authController = require('../controllers/auth') module.exports = async function (req, res, next) { const token = req.cookies.auth_token || req.headers.authorization; const user = await authController.verifyToken(token) if(user) req.user = user next(); }
/* eslint-disable */ !function(name,path,ctx){ var latest,prev=name!=='Keen'&&window.Keen?window.Keen:false;ctx[name]=ctx[name]||{ready:function(fn){var h=document.getElementsByTagName('head')[0],s=document.createElement('script'),w=window,loaded;s.onload=s.onreadystatechange=function(){if((s.readyState&&!(/^c|loade/.test(s.readyState)))||loaded){return}s.onload=s.onreadystatechange=null;loaded=1;latest=w.Keen;if(prev){w.Keen=prev}else{try{delete w.Keen}catch(e){w.Keen=void 0}}ctx[name]=latest;ctx[name].ready(fn)};s.async=1;s.src=path;h.appendChild(s)}} }('ProdPerfectKeen','http://localhost:8000/dist/keen-tracking.js',this); /* eslint-enable */ ProdPerfectKeen.ready(function() { var client = new ProdPerfectKeen({ projectId: '5a3188a2c9e77c000154bef7', writeKey: 'D88D34AB1044DCF5DDCE2FB79C72241ACFD783DF5FE347F8352A03D88ADBA00BC047F42B3C38010BD7B5E67CAE23557CA8A6B246B29F6EB22B77FC74FE13408CAC5FD60B2E4EB4E747F60A2DFFCB0BF54DAB602FF5093CD26804FFBB3CDB7007', requestType: 'beacon', host: 'test.datapipe.prodperfect.com/v1' }); client.extendEvents({ visitor: { user_id: null } }); var options = { ignoreDisabledFormFields: false, ignoreFormFieldTypes: ['password', 'email'], recordClicks: true, recordFormSubmits: true, recordInputChanges: true, recordPageViews: true, recordPageUnloads: true, recordScrollState: true }; client.initAutoTracking(options); });
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. from .abstract_command_descriptor import AbstractCommandDescriptor from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class BottomCommandDescriptor(AbstractCommandDescriptor): """ Command descriptor for querylanguage BOTTOM command. """ def __init__(self, **kwargs): """ Initializes a new BottomCommandDescriptor object with values from keyword arguments. The default value of the :py:attr:`~oci.log_analytics.models.BottomCommandDescriptor.name` attribute of this class is ``BOTTOM`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param name: The value to assign to the name property of this BottomCommandDescriptor. Allowed values for this property are: "COMMAND", "SEARCH", "STATS", "GEO_STATS", "TIME_STATS", "SORT", "FIELDS", "ADD_FIELDS", "LINK", "LINK_DETAILS", "CLUSTER", "CLUSTER_DETAILS", "CLUSTER_SPLIT", "EVAL", "EXTRACT", "EVENT_STATS", "BUCKET", "CLASSIFY", "TOP", "BOTTOM", "HEAD", "TAIL", "FIELD_SUMMARY", "REGEX", "RENAME", "TIME_COMPARE", "WHERE", "CLUSTER_COMPARE", "DELETE", "DELTA", "DISTINCT", "SEARCH_LOOKUP", "LOOKUP", "DEMO_MODE", "MACRO", "MULTI_SEARCH", "HIGHLIGHT", "HIGHLIGHT_ROWS", "HIGHLIGHT_GROUPS", "CREATE_VIEW", "MAP", "NLP", "COMPARE" :type name: str :param display_query_string: The value to assign to the display_query_string property of this BottomCommandDescriptor. :type display_query_string: str :param internal_query_string: The value to assign to the internal_query_string property of this BottomCommandDescriptor. :type internal_query_string: str :param category: The value to assign to the category property of this BottomCommandDescriptor. :type category: str :param referenced_fields: The value to assign to the referenced_fields property of this BottomCommandDescriptor. :type referenced_fields: list[oci.log_analytics.models.AbstractField] :param declared_fields: The value to assign to the declared_fields property of this BottomCommandDescriptor. :type declared_fields: list[oci.log_analytics.models.AbstractField] :param limit: The value to assign to the limit property of this BottomCommandDescriptor. :type limit: int """ self.swagger_types = { 'name': 'str', 'display_query_string': 'str', 'internal_query_string': 'str', 'category': 'str', 'referenced_fields': 'list[AbstractField]', 'declared_fields': 'list[AbstractField]', 'limit': 'int' } self.attribute_map = { 'name': 'name', 'display_query_string': 'displayQueryString', 'internal_query_string': 'internalQueryString', 'category': 'category', 'referenced_fields': 'referencedFields', 'declared_fields': 'declaredFields', 'limit': 'limit' } self._name = None self._display_query_string = None self._internal_query_string = None self._category = None self._referenced_fields = None self._declared_fields = None self._limit = None self._name = 'BOTTOM' @property def limit(self): """ Gets the limit of this BottomCommandDescriptor. Value from queryString for bottom command limit argument. :return: The limit of this BottomCommandDescriptor. :rtype: int """ return self._limit @limit.setter def limit(self, limit): """ Sets the limit of this BottomCommandDescriptor. Value from queryString for bottom command limit argument. :param limit: The limit of this BottomCommandDescriptor. :type: int """ self._limit = limit def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
"""bootstrap.__main__: executed when bootstrap directory is called as script.""" import sys from .pyplan_ide import main if __name__ == "__main__": sys.exit(main())
/** * * Props: * refreshable : true, // 是否下拉, 默认true * pagination : true, // 是否分页, 默认true * autoLoadMore : true, * displayStatus : { * 'wait':'点击加载更多', * 'loading':'加载中...', * 'error':'加载失败,点击重新加载', * 'done':'已经没有更多了' * }, * controlProps : {} // 下拉控制属性 * dataSource : ListView.DataSource * // 加载数据方法, 回传page给加载函数, * // 加载成功回调接受rows(新增的row)currCount(当前数据条数,兼容一个数据多个row的情况)totalCount(总数据条数) * fetchData : function(page, function(rows, currCount, totalCount){ * // 成功回调 * }, function(){ * // 错误回调 * }) * * 注: 只有fetchData参数是必须的。 * */ 'use strict' import React, {Component} from 'react'; import { View, Text, Image, ListView, RefreshControl, TouchableHighlight, ActivityIndicator, InteractionManager } from 'react-native'; class RefreshableListView extends Component { constructor(props){ super(props); this.state = { dataSource : new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}), status : 'wait', isRefreshing : false, isEmpty : false, isError : false } this.totalCount = 0; this.page = 1; this.listViewHeight = 0; this.filled = false; this.onPullRefresh = this._onPullRefresh.bind(this); this.onLoadMore = this._onLoadMore.bind(this); this.renderFooter = this._renderFooter.bind(this); this.handleEndReached = this._handleEndReached.bind(this); } static defaultProps = { refreshable : true, pagination : true, autoLoadMore : true, autoRefresh : true, dataSource : undefined, displayStatus : { 'wait':'点击加载更多', 'loading':'加载中...', 'error':'加载失败,点击重新加载', 'done':'已经没有更多了' } } static propTypes = { refreshable : React.PropTypes.bool, // 是否下拉, 默认true pagination : React.PropTypes.bool, // 是否分页, 默认true fetchData : React.PropTypes.func.isRequired, // 加载数据方法 controlProps : React.PropTypes.object, // 下拉控制器其他属性 dataSource : React.PropTypes.object, // 数据 autoLoadMore : React.PropTypes.bool, // 自动加载更多(不需要点击), 默认true autoRefresh : React.PropTypes.bool, // 进入页面自动加载 displayStatus : React.PropTypes.object, renderRefreshControl : React.PropTypes.func, renderEmpty : React.PropTypes.func, renderError : React.PropTypes.func } componentDidMount() { if(this.props.autoRefresh){ InteractionManager.runAfterInteractions(() => { this.setState({isRefreshing : true}); this._onPullRefresh(); }); } } getWrappedInstance(){ return this.refs.listview; } pullRefresh(){ this.refs.listview.scrollTo({x: 0, y: 0, animated:false}); this.setState({isRefreshing : true}); this._onPullRefresh(); } _onPullRefresh(){ this.page = 0; this.filled = false; this._onRefresh(); } _onLoadMore(){ if(this.state.status !== 'loading' && this.state.isRefreshing == false){ this.setState({status : 'loading'}); this._onRefresh(); } } _onRefresh() { this.props.fetchData(this.page + 1, (rows, currCount, totalCount) => { this.totalRowCount = currCount; this.totalCount = totalCount; if(rows != null || rows != undefined){ if(this.page == 0){ this.setRows(rows); }else{ this.appendRows(rows); } }else{ this.setState({ status : this.totalRowCount >= this.totalCount ? 'done' : 'wait', isRefreshing : false }); } this.totalCount = totalCount; this.page++; }, () => { this.setState({ isError : this.page == 0 ? true : false, status : 'error', isRefreshing : false }); }); } // 手动重新加载数据 reloadData(){ this._onPullRefresh(); } updateStuatus(status){ this.setState({'status' : status}); } getRows(sectionIdentitie){ if(sectionIdentitie != undefined){ return this.state.dataSource._dataBlob[sectionIdentitie]; } let sections = this.getSectionIdentities(); if(sections != undefined && sections.length > 0){ return this.state.dataSource._dataBlob[sections[0]]; } return null; } setRows(rows){ this.setState({ isEmpty: rows.length == 0, status : this.totalRowCount >= this.totalCount ? 'done' : 'wait', isRefreshing : false, dataSource : this.state.dataSource.cloneWithRows(rows) }); } appendRows(rows){ var newRows = this.getRows().concat(rows); this.setRows(newRows); } updateRowAt(index, rowData, sectionId, animation){ const rows = this.getRows(); rows[index] = rowData; this.setState({ dataSource : this.state.dataSource.cloneWithRows(rows) }); } getSectionIdentities(){ return this.state.dataSource.sectionIdentities; } setPage(page){ this.page = page; } getPage(){ return this.page; } _renderRefreshControl(){ if(this.props.renderRefreshControl)return this.props.renderRefreshControl({ onRefresh : this.onPullRefresh, refreshing : this.state.isRefreshing }); return ( <RefreshControl onRefresh={this.onPullRefresh} refreshing={this.state.isRefreshing} {...this.props.controlProps} /> ) } _handleEndReached(){ if (this.state.dataSource.getRowCount() > 0 && this.props.autoLoadMore && this.props.pagination && this.state.status != 'done' && this.filled){ this._onLoadMore(); } } _renderEmpty(){ if(this.props.renderEmpty)return this.props.renderEmpty(); return ( <View style={{height:300,justifyContent:'center',alignItems:'center'}}> <Text style={{color:'#B8B8B8',fontSize:14,marginTop:10}}>暂无数据</Text> </View> ) } _renderError(){ if(this.props.renderError)return this.props.renderError(); return ( <View style={{height:300,justifyContent:'center',alignItems:'center'}}> <Text style={{color:'#B8B8B8',fontSize:14,marginTop:10}}>请求错误</Text> </View> ) } _renderFooter(){ if(this.state.isEmpty==true){ return this._renderEmpty(); } else if(this.state.isError){ return this._renderError(); }else { if(this.state.dataSource.getRowCount() > 0 && this.props.pagination){ if(this.state.status == 'loading'){ return ( <View style={{ height:50, flexDirection:'row', justifyContent: 'center', alignItems: 'center', }}> <ActivityIndicator animating={true} size="small" /> <Text style={{marginLeft: 5, fontSize:14}}> {this.props.displayStatus[this.state.status]} </Text> </View> ) } else if(!this.props.autoLoadMore || !this.filled || this.state.status == 'done' || this.state.status == 'error') { return ( <TouchableHighlight style={{height:50, justifyContent:'center',alignItems:'center'}} underlayColor='#c8c7cc' disabled={this.state.status == 'done'} onPress={this.onLoadMore}> <Text style={{fontSize:14}}> {this.props.displayStatus[this.state.status]} </Text> </TouchableHighlight> ) } } } return null; } render(){ return ( <ListView enableEmptySections={true} {...this.props} ref='listview' dataSource={this.props.dataSource ? this.props.dataSource : this.state.dataSource} renderFooter={this.renderFooter} refreshControl={this.props.refreshable === true ? this._renderRefreshControl() : null} onEndReached={this.handleEndReached} onLayout={(event)=>{ var layout = event.nativeEvent.layout; this.listViewHeight = layout.height; }} onContentSizeChange={(width, height)=>{ if(height >= this.listViewHeight && this.listViewHeight != 0){ this.filled = true; }else{ this.filled = false; } }} > </ListView> ) } } export default RefreshableListView;
load("201224b0d1c296b45befd2285e95dd42.js"); function foo() { var x = 0; for (var i = arguments.length - 1; i >= 0; i--) x += arguments[i]; return x; } function bar() { var x = 0; for (var i = 0; i < arguments.length; i++) x += arguments[i]; return x; } function baz(a,b,c,d,e) { var x = 0; for (var i = 0; i < arguments.length; i++) x += arguments[i]; return x; } for (var i = 0; i < 10; i++) { assertEq(foo(1,2,3,4,5), 15); assertEq(bar(1,2.5,true,{valueOf:function() { return 10}},"five"), "14.5five"); assertEq(baz(1,2,3,4,5), 15); }
const { series } = require('gulp'); const { exec } = require('child_process'); const path = require('path'); /** Configuration Constants */ const BUILD_VERSION = 'v1'; const SERVICE_NAME = 'service-customer'; const CONTAINER_REGISTRY = '730880032795.dkr.ecr.eu-west-1.amazonaws.com'; const DOCKER_FILE_PATH = path.join(__dirname, '../Dockerfile'); /** * Build Docker Image * @param {*} cb */ function buildDockerImage(cb) { let options = { cwd: path.join(__dirname, '../') }; exec(`docker build -f ${DOCKER_FILE_PATH} -t ${CONTAINER_REGISTRY}/${SERVICE_NAME}:${BUILD_VERSION} .`, options, (err, stdout, stderr) => { console.log('STDOUT', stdout); if (stderr) console.log('STDERR', stderr); cb(err); }); } /** * Push Image to Registry * @param {*} cb */ function pushDockerImage(cb) { exec(`docker push ${CONTAINER_REGISTRY}/${SERVICE_NAME}:${BUILD_VERSION}`, (err, stdout, stderr) => { console.log('STDOUT', stdout); if (stderr) console.log('STDERR', stderr); cb(err); }); } exports.default = series(buildDockerImage, pushDockerImage);
!function(e){var t,n,o,i,c,d,l='<svg><symbol id="icon-chenggong" viewBox="0 0 1024 1024"><path d="M512.01 1010.33c-274.852 0-498.488-223.56-498.488-498.325 0-274.77 223.642-498.335 498.488-498.335 274.842 0 498.468 223.565 498.468 498.335 0 274.765-223.626 498.325-498.468 498.325z m289.06-690.304c-13.931-13.82-45.947-21.376-59.766-7.358L442.22 611.666 282.706 452.204c-13.737-14.127-42.43-2.043-56.443 11.668-14.116 13.732-14.403 36.306-0.686 50.324l190.039 193.895c0.102 0.092 0.195 0.092 0.297 0.19 0.097 0.091 0.097 0.199 0.195 0.291 2.237 2.232 5.058 3.61 7.69 5.069 1.362 0.778 2.529 1.94 3.891 2.53a35.789 35.789 0 0 0 13.445 2.63c4.475 0 9.052-0.89 13.333-2.63 1.372-0.59 2.432-1.752 3.804-2.443 2.626-1.47 5.447-2.821 7.69-5.059 0.097-0.102 0.097-0.189 0.195-0.302 0.097-0.092 0.184-0.092 0.291-0.19l334.905-337.924c13.834-13.916 13.64-36.403-0.282-50.227z m0 0" fill="#3BA9F6" ></path></symbol><symbol id="icon-cuowu1" viewBox="0 0 1024 1024"><path d="M512.165 0.315a511.835 511.835 0 1 0 511.52 511.835A512.229 512.229 0 0 0 512.165 0.315z m208.671 669.323a36.537 36.537 0 1 1-51.734 51.616L512.008 563.767 354.52 719.797a36.537 36.537 0 1 1-51.38-51.97l157.487-155.834L303.77 354.505a36.537 36.537 0 1 1 51.734-51.617L512.56 460.376l157.488-156.07a36.537 36.537 0 0 1 51.38 52.01L563.939 512.11z m0 0" fill="#d81e06" ></path></symbol></svg>',a=(a=document.getElementsByTagName("script"))[a.length-1].getAttribute("data-injectcss");if(a&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}function s(){c||(c=!0,o())}t=function(){var e,t,n,o;(o=document.createElement("div")).innerHTML=l,l=null,(n=o.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",e=n,(t=document.body).firstChild?(o=e,(n=t.firstChild).parentNode.insertBefore(o,n)):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(o=t,i=e.document,c=!1,(d=function(){try{i.documentElement.doScroll("left")}catch(e){return void setTimeout(d,50)}s()})(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,s())})}(window);
""" Pytorch Optimizer and Scheduler Related Task """ import math import logging import torch from torch import optim from config import cfg def get_optimizer(args, net): """ Decide Optimizer (Adam or SGD) """ if args.backbone_lr > 0.0: base_params = [] resnet_params = [] resnet_name = [] resnet_name.append('layer0') resnet_name.append('layer1') #resnet_name.append('layer2') #resnet_name.append('layer3') #resnet_name.append('layer4') len_resnet = len(resnet_name) else: param_groups = net.parameters() if args.backbone_lr > 0.0: for name, param in net.named_parameters(): is_resnet = False for i in range(len_resnet): if resnet_name[i] in name: resnet_params.append(param) # param.requires_grad=False print("resnet_name", name) is_resnet = True break if not is_resnet: base_params.append(param) if args.sgd: if args.backbone_lr > 0.0: optimizer = optim.SGD([ {'params': base_params}, {'params': resnet_params, 'lr':args.backbone_lr} ], lr=args.lr, weight_decay=5e-4, #args.weight_decay, momentum=args.momentum, nesterov=False) else: optimizer = optim.SGD(param_groups, lr=args.lr, weight_decay=5e-4, #args.weight_decay, momentum=args.momentum, nesterov=False) else: raise ValueError('Not a valid optimizer') if args.lr_schedule == 'scl-poly': if cfg.REDUCE_BORDER_ITER == -1: raise ValueError('ERROR Cannot Do Scale Poly') rescale_thresh = cfg.REDUCE_BORDER_ITER scale_value = args.rescale lambda1 = lambda iteration: \ math.pow(1 - iteration / args.max_iter, args.poly_exp) if iteration < rescale_thresh else scale_value * math.pow( 1 - (iteration - rescale_thresh) / (args.max_iter - rescale_thresh), args.repoly) scheduler = optim.lr_scheduler.LambdaLR(optimizer, lr_lambda=lambda1) elif args.lr_schedule == 'poly': lambda1 = lambda iteration: math.pow(1 - iteration / args.max_iter, args.poly_exp) scheduler = optim.lr_scheduler.LambdaLR(optimizer, lr_lambda=lambda1) else: raise ValueError('unknown lr schedule {}'.format(args.lr_schedule)) return optimizer, scheduler def load_weights(net, optimizer, scheduler, snapshot_file, restore_optimizer_bool=False): """ Load weights from snapshot file """ logging.info("Loading weights from model %s", snapshot_file) net, optimizer, scheduler, epoch, mean_iu = restore_snapshot(net, optimizer, scheduler, snapshot_file, restore_optimizer_bool) return epoch, mean_iu def restore_snapshot(net, optimizer, scheduler, snapshot, restore_optimizer_bool): """ Restore weights and optimizer (if needed ) for resuming job. """ checkpoint = torch.load(snapshot, map_location=torch.device('cpu')) logging.info("Checkpoint Load Compelete") if optimizer is not None and 'optimizer' in checkpoint and restore_optimizer_bool: optimizer.load_state_dict(checkpoint['optimizer']) #memo) model if scheduler is not None and 'scheduler' in checkpoint and restore_optimizer_bool: scheduler.load_state_dict(checkpoint['scheduler']) if 'state_dict' in checkpoint: net = forgiving_state_restore(net, checkpoint['state_dict']) else: net = forgiving_state_restore(net, checkpoint) return net, optimizer, scheduler, checkpoint['epoch'], checkpoint['mean_iu'] def forgiving_state_restore(net, loaded_dict): """ Handle partial loading when some tensors don't match up in size. Because we want to use models that were trained off a different number of classes. """ net_state_dict = net.state_dict() new_loaded_dict = {} for k in net_state_dict: if k in loaded_dict and net_state_dict[k].size() == loaded_dict[k].size(): new_loaded_dict[k] = loaded_dict[k] else: print("Skipped loading parameter", k) # logging.info("Skipped loading parameter %s", k) net_state_dict.update(new_loaded_dict) net.load_state_dict(net_state_dict) return net def forgiving_state_copy(target_net, source_net): """ Handle partial loading when some tensors don't match up in size. Because we want to use models that were trained off a different number of classes. """ net_state_dict = target_net.state_dict() loaded_dict = source_net.state_dict() new_loaded_dict = {} for k in net_state_dict: if k in loaded_dict and net_state_dict[k].size() == loaded_dict[k].size(): new_loaded_dict[k] = loaded_dict[k] print("Matched", k) else: print("Skipped loading parameter ", k) # logging.info("Skipped loading parameter %s", k) net_state_dict.update(new_loaded_dict) target_net.load_state_dict(net_state_dict) return target_net
import { storage, database } from "../../firebase/firebaseConfig"; import { getPostsAsArrays, memoize,checkIfDuplicate,removeDuplicate } from "../../firebase/helpers"; export function SHOW_NEWEST() { return (dispatch) => { dispatch({ type: "FETCHING", payload: null }); database().ref("posts").limitToLast(9).once("value") .then(data => { if (null !== data.val()) { dispatch({ type: "FETCHED_URLS", payload: getPostsAsArrays(data).reverse() }); } else dispatch({ type: "FETCHING_404", payload: null }); }); }; } export function SHOW_RELATED_POSTS(username) { return (dispatch) => { dispatch({ type: "FETCHING", payload: null }); database().ref("posts").orderByChild("author/authorName").equalTo(username).once("value") .then(data => { dispatch({ type: "USER_POSTS_FOUND", payload: getPostsAsArrays(data).reverse() }); }) .catch(err => { dispatch({ type: "FETCHING_404", payload: err }); }); }; } export function UPLOAD_IMAGE(img, userId, user, description) { let uploadImg = () => { return new Promise((resolve, reject) => { storage().ref().child(`images/${user}/posts/${img.name}`).put(img) .then(() => resolve(null)) .catch(err => reject(err)); }); }; let generateKey = () => { return new Promise((resolve) => { let key = database().ref().child("posts").push().key; resolve(key); }); }; let getUrl = () => { return new Promise((resolve, reject) => { storage().ref().child(`images/${user}/posts/${img.name}`).getDownloadURL() .then(url => resolve(url)) .catch(err => reject(err)); }); }; let createPost = (newKey, url) => { return new Promise((resolve, reject) => { database().ref(`posts/${newKey}`).set({ photoURL: url, photoPATH: `images/${user}/posts/${img.name}`, description, author: { authorId: userId, authorName: user }, stars: 0, comments: [], timestamp: Date.now(), postID: newKey }) .then(() => resolve(null)) .catch(err => reject(err)); }); }; return async(dispatch) => { dispatch({ type: "UPLOADING", payload: null }); try { let upload = memoize(async() => uploadImg()); let key = memoize(async() => generateKey()); let url = memoize(async() => getUrl(await uploadImg())); let create = memoize(async() => createPost(await key(), await url())); await Promise.all([upload(), key(), url(), create()]) .then(() => { dispatch({ type: "UPLOAD_FULFILLED", payload: JSON }); }); } catch (err) { dispatch({ type: "UPLOAD_REJECTED", payload: err }); } }; } export function ADD_COMMENT(username, postID, message) { let generateKey = () => { return new Promise((resolve) => { let key = database().ref().child("posts").push().key; resolve(key); }); }; let postComment = (key) => { return new Promise((resolve, reject) => { database().ref(`posts/${postID}/comments/${key}`).set({ user: username, comment: message, created_at: Date.now() }) .then(() => resolve(null)) .catch(err => reject(err)); }); }; let getUpdatedPosts = () => { return new Promise((resolve, reject) => { database().ref("posts").limitToFirst(9).once("value") .then(posts => resolve(posts)) .catch(err => reject(err)); }); }; return async(dispatch) => { dispatch({ type: "UPLOADING", payload: null }); try { let key = memoize(async() => generateKey()); let post = memoize(async() => postComment(await key())); let getUpdated = memoize(async() => getUpdatedPosts(await post())); let [a, b, c] = await Promise.all([key(), post(), getUpdated()]); dispatch({ type: "COMMENT_FULFILLED", payload: getPostsAsArrays(c) }); } catch (err) { dispatch({ type: "COMMENT_REJECTED", payload: err }); } }; } export function UPVOTE(username, postID) { console.log(username, postID); let getStars = () => { return new Promise((resolve, reject) => { database().ref(`posts/${postID}`).once("value") .then(post => resolve(post.val().stars)) .catch(err => reject(err)); }); }; let getLikedPosts = () => { return new Promise((resolve, reject) => { database().ref("users").orderByChild("name").equalTo(username).once("value") .then(user => resolve(user.val())) .catch(err => reject(err)); }); }; let updateUserAcc = (likedPosts) => { return new Promise((resolve, reject) => { let old = likedPosts[Object.keys(likedPosts)[0]].liked; let check = typeof old !== "undefined" ? checkIfDuplicate([...old, postID]) : false; if (!check){ database().ref(`users/${Object.keys(likedPosts)}`).update({ liked: typeof old !== "undefined" ? [...old, postID] : [postID] }) .then(() => resolve(check)) .catch(err => reject(err)); } else { database().ref(`users/${Object.keys(likedPosts)}`).update({ liked: typeof old !== "undefined" ? removeDuplicate([...old], postID) : [postID] }) .then(() => resolve(check)) .catch(err => reject(err)); } }); }; let upvotePost = (oldStarcount, duped) => { return new Promise((resolve, reject) => { if (duped) { database().ref(`posts/${postID}`).update({ stars: oldStarcount - 1 }) .then(() => resolve("DEC")) .catch(err => reject(err)); } else { database().ref(`posts/${postID}`).update({ stars: oldStarcount + 1 }) .then(() => resolve("INC")) .catch(err => reject(err)); } }); }; let getNewPosts = () => { return new Promise((resolve,reject) => { database().ref("posts").once("value") .then(posts => resolve(posts)) .catch(err => reject(err)); }); }; return async (dispatch) => { dispatch({type: "UPLOADING", payload: null}); try { let stars = memoize(async () => getStars()); let old = memoize(async () => getLikedPosts()); let update = memoize(async () => updateUserAcc(await old())); let upvote = memoize(async () => upvotePost(await stars(), await update())); let newPosts = memoize(async() => getNewPosts(await upvote())); let [a,b,c,d,e] = await Promise.all([stars(),old(), update() ,upvote(), newPosts()]); dispatch({type: "UPVOTE_FULFILLED", payload: getPostsAsArrays(e)}); } catch(err) { dispatch({type: "UPLOAD_REJECTED", payload:err}); } }; } function deleteComment(postID, commentID) { }
// // Created by valery on 17/09/2019. // #ifndef SCRIPT_LINUX_RECORDER_H #include "pty_master_open.h" #include "ptyFork.h" #include "tty_raw.h" #include "sys/time.h" typedef struct header { struct timeval tv; int len; } Header; #define SCRIPT_LINUX_RECORDER_H #endif //SCRIPT_LINUX_RECORDER_H
"use strict"; var webpack = require('webpack'); var path = require('path'); var loaders = require('./webpack.loaders'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var HOST = process.env.HOST || "127.0.0.1"; var PORT = process.env.PORT || "8888"; // global css loaders.push({ test: /\.css$/, exclude: /[\/\\]src[\/\\]/, loaders: [ 'style?sourceMap', 'css' ] }); // local scss modules loaders.push({ test: /\.scss$/, exclude: /[\/\\](node_modules|bower_components|public)[\/\\]/, loaders: [ 'style?sourceMap', 'css?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]', 'postcss', 'sass' ] }); // local css modules loaders.push({ test: /\.css$/, exclude: /[\/\\](node_modules|bower_components|public)[\/\\]/, loaders: [ 'style?sourceMap', 'css?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]' ] }); module.exports = { entry: [ 'react-hot-loader/patch', './src/index.jsx' // your app's entry point ], devtool: process.env.WEBPACK_DEVTOOL || 'cheap-module-source-map', output: { path: path.join(__dirname, 'public'), filename: 'bundle.js', publicPath: '/' }, resolve: { extensions: ['', '.js', '.jsx'] }, module: { loaders }, devServer: { contentBase: "./public", // do not print bundle build stats noInfo: true, // enable HMR hot: true, // embed the webpack-dev-server runtime into the bundle inline: true, // serve index.html in place of 404 responses to allow HTML5 history historyApiFallback: true, port: PORT, host: HOST }, plugins: [ new webpack.NoErrorsPlugin(), new webpack.HotModuleReplacementPlugin(), new HtmlWebpackPlugin({ template: './src/template.html' }), ], debug: true, devtool: '#eval-source-map', };
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = isElectron; var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); function isElectron(mockUserAgent) { if (typeof window !== 'undefined' && (0, _typeof2["default"])(window.process) === 'object' && window.process.type === 'renderer') { return true; } if (typeof process !== 'undefined' && (0, _typeof2["default"])(process.versions) === 'object' && Boolean(process.versions.electron)) { return true; } var realUserAgent = (typeof navigator === "undefined" ? "undefined" : (0, _typeof2["default"])(navigator)) === 'object' && typeof navigator.userAgent === 'string' && navigator.userAgent; var userAgent = mockUserAgent || realUserAgent; if (userAgent && userAgent.indexOf('Electron') >= 0) { return true; } return false; } //# sourceMappingURL=is-electron.js.map
const devPath = 'src'; const devAssets = `${devPath}/assets`; const distPath = 'dist'; const distAssets = `${distPath}/assets`; const config = { path: { dev: { app: devPath, assets: `${devAssets}`, css: `${devAssets}/css`, js: `${devAssets}/js`, img: `${devAssets}/img`, fnt: `${devAssets}/fnt` }, dist: { app: distPath, assets: `${distAssets}`, css: `${distAssets}/css`, js: `${distAssets}/js`, img: `${distAssets}/img`, fnt: `${distAssets}/fnt` } } }; module.exports = config;
from os import environ get = environ.get SECRET_KEY = get('SECRET_KEY', 'abcdefghijklmnop') PLENARIO_SENTRY_URL = get('PLENARIO_SENTRY_URL', None) DATA_DIR = '/tmp' # Travis CI relies on the default values to build correctly, # just keep in mind that if you push changes to the default # values, you need to make sure to adjust for these changes # in the travis.yml DB_USER = get('POSTGRES_USER', 'postgres') DB_PASSWORD = get('POSTGRES_PASSWORD', 'password') DB_HOST = get('POSTGRES_HOST', 'localhost') DB_PORT = get('POSTGRES_PORT', 5432) DB_NAME = get('POSTGRES_DB', 'plenario_test') RS_USER = get('REDSHIFT_USER', 'postgres') RS_PASSWORD = get('REDSHIFT_PASSWORD', 'password') RS_HOST = get('REDSHIFT_HOST', 'localhost') RS_PORT = get('REDSHIFT_PORT', 5432) RS_NAME = get('REDSHIFT_NAME', 'plenario_test') DATABASE_CONN = 'postgresql://{}:{}@{}:{}/{}'.format(DB_USER, DB_PASSWORD, DB_HOST, DB_PORT, DB_NAME) REDSHIFT_CONN = 'postgresql://{}:{}@{}:{}/{}'.format(RS_USER, RS_PASSWORD, RS_HOST, RS_PORT, RS_NAME) # Use this cache for data that can be refreshed REDIS_HOST = get('REDIS_HOST', 'localhost') # See: https://pythonhosted.org/Flask-Cache/#configuring-flask-cache # for config options CACHE_CONFIG = { 'CACHE_TYPE': 'redis', 'CACHE_REDIS_HOST': REDIS_HOST, 'CACHE_KEY_PREFIX': get('CACHE_KEY_PREFIX', 'plenario_app') } # Load a default admin DEFAULT_USER = { 'name': get('DEFAULT_USER_NAME', 'Plenario Admin'), 'email': get('DEFAULT_USER_EMAIL', 'plenario@email.com'), 'password': get('DEFAULT_USER_PASSWORD', 'changemeplz') } # Amazon Web Services AWS_ACCESS_KEY = get('AWS_ACCESS_KEY', '') AWS_SECRET_KEY = get('AWS_SECRET_KEY', '') AWS_REGION_NAME = get('AWS_REGION_NAME', 'us-east-1') S3_BUCKET = get('S3_BUCKET', '') # Email address for notifying site administrators # Expect comma-delimited list of emails. _admin_emails = get('ADMIN_EMAILS') if _admin_emails: ADMIN_EMAILS = _admin_emails.split(',') else: ADMIN_EMAILS = [] # For emailing users. ('MAIL_USERNAME' is an email address.) MAIL_SERVER = get('MAIL_SERVER', 'smtp.gmail.com') MAIL_PORT = 587 MAIL_USE_TLS = True MAIL_DISPLAY_NAME = 'Plenar.io Team' MAIL_USERNAME = get('MAIL_USERNAME', '') MAIL_PASSWORD = get('MAIL_PASSWORD', '') # Toggle maintenance mode MAINTENANCE = False # Celery CELERY_BROKER_URL = get('CELERY_BROKER_URL', 'redis://{}:6379/0'.format(REDIS_HOST)) CELERY_RESULT_BACKEND = get('CELERY_RESULT_BACKEND', 'db+{}'.format(DATABASE_CONN)) FLOWER_URL = get('FLOWER_URL', 'http://localhost:5555')
import React from 'react'; import { Container, Title, List, Item, Picture, Name } from './styles/Profiles'; export default function Profiles({ children, ...restProps }) { return <Container {...restProps}>{children}</Container>; } Profiles.Title = function ProfilesTitle({ children, ...restProps }) { return <Title {...restProps}>{children}</Title>; }; Profiles.List = function ProfilesList({ children, ...restProps }) { return <List {...restProps}>{children}</List>; }; Profiles.User = function ProfilesUser({ children, ...restProps }) { return <Item {...restProps}>{children}</Item>; }; Profiles.Picture = function ProfilesPicture({ src, ...restProps }) { return <Picture {...restProps} src={src ? `/images/users/${src}.png` : '/images/misc/loading.gif'} />; }; Profiles.Name = function ProfilesName({ children, ...restProps }) { return <Name {...restProps}>{children}</Name>; };
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2015, Knut Reinert, FU Berlin // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // * Neither the name of Knut Reinert or the FU Berlin nor the names of // its contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL KNUT REINERT OR THE FU BERLIN BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH // DAMAGE. // // ========================================================================== // Author: Enrico Siragusa <enrico.siragusa@fu-berlin.de> // ========================================================================== // Adaptions for std::ios streams. // ========================================================================== #ifndef SEQAN_STREAM_ADAPT_IOS_H_ #define SEQAN_STREAM_ADAPT_IOS_H_ #define SEQAN_ASSERT_BADBIT(s) SEQAN_ASSERT_MSG(s.exceptions() | std::ios_base::badbit, \ "The badbit exception is not set in the stream. Call either std::exceptions() or streamInit() on the stream.") namespace seqan { // ============================================================================ // Forwards // ============================================================================ // TODO(esiragusa): remove this when chunking goes into basic. template <typename TObject> struct Chunk; // ============================================================================ // Metafunctions // ============================================================================ // ---------------------------------------------------------------------------- // Metafunction Position // ---------------------------------------------------------------------------- template <typename TValue, typename TTraits> struct Position<std::istreambuf_iterator<TValue, TTraits> > { typedef typename std::istreambuf_iterator<TValue, TTraits>::difference_type Type; }; template <typename TValue, typename TTraits> struct Position<std::basic_istream<TValue, TTraits> > { typedef typename std::basic_istream<TValue, TTraits>::pos_type Type; }; template <typename TValue, typename TTraits> struct Position<std::basic_ostream<TValue, TTraits> > { typedef typename std::basic_ostream<TValue, TTraits>::pos_type Type; }; template <typename TValue, typename TTraits> struct Position<std::basic_iostream<TValue, TTraits> > { typedef typename std::basic_iostream<TValue, TTraits>::pos_type Type; }; template <typename TValue, typename TTraits> struct Position<std::basic_fstream<TValue, TTraits> > : Position<std::basic_iostream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Position<std::basic_stringstream<TValue, TTraits> > : Position<std::basic_iostream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Position<std::basic_ifstream<TValue, TTraits> > : Position<std::basic_istream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Position<std::basic_istringstream<TValue, TTraits> > : Position<std::basic_istream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Position<std::basic_ofstream<TValue, TTraits> > : Position<std::basic_ostream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Position<std::basic_ostringstream<TValue, TTraits> > : Position<std::basic_ostream<TValue, TTraits> > {}; // ---------------------------------------------------------------------------- // Metafunction Value // ---------------------------------------------------------------------------- template <typename TValue, typename TTraits> struct Value<std::istreambuf_iterator<TValue, TTraits> > { typedef typename std::istreambuf_iterator<TValue, TTraits>::char_type Type; }; template <typename TValue, typename TTraits> struct Value<std::basic_istream<TValue, TTraits> > { typedef typename std::basic_istream<TValue, TTraits>::char_type Type; }; template <typename TValue, typename TTraits> struct Value<std::basic_ostream<TValue, TTraits> > { typedef typename std::basic_ostream<TValue, TTraits>::char_type Type; }; template <typename TValue, typename TTraits> struct Value<std::basic_iostream<TValue, TTraits> > { typedef typename std::basic_iostream<TValue, TTraits>::char_type Type; }; template <typename TValue, typename TTraits> struct Value<std::basic_fstream<TValue, TTraits> > : Value<std::basic_iostream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Value<std::basic_stringstream<TValue, TTraits> > : Value<std::basic_iostream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Value<std::basic_ifstream<TValue, TTraits> > : Value<std::basic_istream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Value<std::basic_istringstream<TValue, TTraits> > : Value<std::basic_istream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Value<std::basic_ofstream<TValue, TTraits> > : Value<std::basic_ostream<TValue, TTraits> > {}; template <typename TValue, typename TTraits> struct Value<std::basic_ostringstream<TValue, TTraits> > : Value<std::basic_ostream<TValue, TTraits> > {}; // ---------------------------------------------------------------------------- // Metafunction Reference // ---------------------------------------------------------------------------- template <typename TValue, typename TTraits> struct Reference<std::istreambuf_iterator<TValue, TTraits> > { typedef typename std::istreambuf_iterator<TValue, TTraits>::char_type Type; // typedef typename std::istreambuf_iterator<TValue, TTraits>::reference Type; }; // ---------------------------------------------------------------------------- // Metafunction Chunk // ---------------------------------------------------------------------------- template <typename TValue, typename TTraits> struct Chunk<std::basic_streambuf<TValue, TTraits> > { typedef Range<TValue*> Type; }; //template <typename TValue, typename TTraits> //struct Chunk<std::istreambuf_iterator<TValue, TTraits> >: // Chunk<std::basic_streambuf<TValue, TTraits> > {}; // //template <typename TValue, typename TTraits> //struct Chunk<std::ostreambuf_iterator<TValue, TTraits> >: // Chunk<std::basic_streambuf<TValue, TTraits> > {}; // ---------------------------------------------------------------------------- // Metafunction DefaultOpenMode<std::> // ---------------------------------------------------------------------------- template <typename TValue, typename TTraits, typename TDummy> struct DefaultOpenMode<std::basic_fstream<TValue, TTraits>, TDummy> { enum { VALUE = OPEN_RDWR | OPEN_CREATE | OPEN_APPEND }; }; template <typename TValue, typename TTraits, typename TDummy> struct DefaultOpenMode<std::basic_ifstream<TValue, TTraits>, TDummy> { enum { VALUE = OPEN_RDONLY }; }; template <typename TValue, typename TTraits, typename TDummy> struct DefaultOpenMode<std::basic_ofstream<TValue, TTraits>, TDummy> { enum { VALUE = OPEN_WRONLY | OPEN_CREATE }; }; // ============================================================================ // Concepts // ============================================================================ template <typename TValue, typename TTraits> SEQAN_CONCEPT_IMPL((std::basic_istream<TValue, TTraits>), (InputStreamConcept)); template <typename TValue, typename TTraits> SEQAN_CONCEPT_IMPL((std::basic_ifstream<TValue, TTraits>), (InputStreamConcept)); template <typename TValue, typename TTraits> SEQAN_CONCEPT_IMPL((std::basic_istringstream<TValue, TTraits>), (InputStreamConcept)); template <typename TValue, typename TTraits> SEQAN_CONCEPT_IMPL((std::basic_ostream<TValue, TTraits>), (OutputStreamConcept)); template <typename TValue, typename TTraits> SEQAN_CONCEPT_IMPL((std::basic_ofstream<TValue, TTraits>), (OutputStreamConcept)); template <typename TValue, typename TTraits> SEQAN_CONCEPT_IMPL((std::basic_ostringstream<TValue, TTraits>), (OutputStreamConcept)); template <typename TValue, typename TTraits> SEQAN_CONCEPT_IMPL((std::basic_iostream<TValue, TTraits>), (BidirectionalStreamConcept)); template <typename TValue, typename TTraits> SEQAN_CONCEPT_IMPL((std::basic_fstream<TValue, TTraits>), (BidirectionalStreamConcept)); template <typename TValue, typename TTraits> SEQAN_CONCEPT_IMPL((std::basic_stringstream<TValue, TTraits>), (BidirectionalStreamConcept)); // ============================================================================ // Functions // ============================================================================ // ---------------------------------------------------------------------------- // Function _getSTLStyleOrigin() // ---------------------------------------------------------------------------- template <typename TPos> inline std::ios_base::seekdir _getSTLStyleOrigin(TPos origin) { switch (origin) { case SEEK_CUR: return std::ios_base::cur; case SEEK_END: return std::ios_base::end; case SEEK_SET: default: return std::ios_base::beg; } } // ---------------------------------------------------------------------------- // Function _getSTLStyleOpenMode() // ---------------------------------------------------------------------------- inline std::ios_base::openmode _getSTLStyleOpenMode(int openMode) { std::ios_base::openmode flags = std::ios_base::binary; if (openMode & OPEN_RDONLY) flags |= std::ios_base::in; if (openMode & OPEN_WRONLY) { flags |= std::ios_base::out; if (!(openMode & OPEN_APPEND)) flags |= std::ios_base::trunc; } return flags; } // ---------------------------------------------------------------------------- // Function getChunk() // ---------------------------------------------------------------------------- //template <typename TValue, typename TTraits, typename TDirection> //inline typename Chunk<std::basic_streambuf<TValue, TTraits> >::Type //getChunk(std::basic_streambuf<TValue, TTraits> const &buf, Tag<TDirection>) //{ // return getChunk(static_cast<StreamBuffer<TValue, TTraits> &>(buf), Tag<TDirection>()); //} // ---------------------------------------------------------------------------- // Function writeValue() // ---------------------------------------------------------------------------- template <typename TValue, typename TTraits, typename TValue2> inline void writeValue(std::ostreambuf_iterator<TValue, TTraits> &iter, TValue2 val) { *iter = val; ++iter; } template <typename TValue, typename TTraits, typename TValue2> inline void writeValue(std::basic_ostream<TValue, TTraits> &ostream, TValue2 val) { ostream.put(val); } // ---------------------------------------------------------------------------- // Function atEnd() // ---------------------------------------------------------------------------- template <typename TValue, typename TTraits> inline bool atEnd(std::istreambuf_iterator<TValue, TTraits> const &it) { return it == std::istreambuf_iterator<TValue, TTraits>(); } template <typename TValue, typename TTraits> inline bool atEnd(std::ostreambuf_iterator<TValue, TTraits> const &it) { return it == std::ostreambuf_iterator<TValue, TTraits>(); } // ---------------------------------------------------------------------------- // Function open() // ---------------------------------------------------------------------------- template <typename TValue, typename TTraits> inline bool open(std::basic_fstream<TValue, TTraits> & stream, const char *fileName, int openMode) { stream.exceptions(std::ios_base::badbit); stream.open(fileName, _getSTLStyleOpenMode(openMode)); return stream.is_open(); } template <typename TValue, typename TTraits> inline bool open(std::basic_ifstream<TValue, TTraits> & stream, const char *fileName, int openMode) { stream.exceptions(std::ios_base::badbit); stream.open(fileName, _getSTLStyleOpenMode(openMode)); return stream.is_open(); } template <typename TValue, typename TTraits> inline bool open(std::basic_ofstream<TValue, TTraits> & stream, const char *fileName, int openMode) { stream.exceptions(std::ios_base::badbit); stream.open(fileName, _getSTLStyleOpenMode(openMode)); return stream.is_open(); } template <typename TValue, typename TTraits> inline bool open(std::basic_fstream<TValue, TTraits> & stream, const char *fileName) { return open(stream, fileName, DefaultOpenMode<std::basic_fstream<TValue, TTraits> >::VALUE); } template <typename TValue, typename TTraits> inline bool open(std::basic_ifstream<TValue, TTraits> & stream, const char *fileName) { return open(stream, fileName, DefaultOpenMode<std::basic_ifstream<TValue, TTraits> >::VALUE); } template <typename TValue, typename TTraits> inline bool open(std::basic_ofstream<TValue, TTraits> & stream, const char *fileName) { return open(stream, fileName, DefaultOpenMode<std::basic_ofstream<TValue, TTraits> >::VALUE); } // ---------------------------------------------------------------------------- // Function close() // ---------------------------------------------------------------------------- template <typename TValue, typename TTraits> inline bool close(std::basic_fstream<TValue, TTraits> & stream) { stream.close(); return !stream.is_open(); } template <typename TValue, typename TTraits> inline bool close(std::basic_ifstream<TValue, TTraits> & stream) { stream.close(); return !stream.is_open(); } template <typename TValue, typename TTraits> inline bool close(std::basic_ofstream<TValue, TTraits> & stream) { stream.close(); return !stream.is_open(); } } // namespace seqan #endif // #ifndef SEQAN_STREAM_ADAPT_IOS_H_
#!/usr/bin/env python # encoding: utf-8 """Usage: convert.py serial_speakers <input_path> <serie_uri> <annotation_path> <annotated_path> [--map] """ from pyannote.core import Annotation, Segment, Timeline import pyannote.database from Plumcot import Plumcot import json from termcolor import colored import numpy as np import re from docopt import docopt from pathlib import Path import affinegap from scipy.optimize import linear_sum_assignment DISTANCE_THRESHOLD = 0.5 NA_VALUES = {'', '<NA>'} def update_labels(annotation, distances): """Tag labels with "?" depending on their distance to the reference """ for segment, track, label in annotation.itertracks(yield_label=True): distance = distances.get(segment) distance = distance.get(label) if distance else None distance = distance if distance != "<NA>" else None if distance: if distance > DISTANCE_THRESHOLD: annotation[segment, track] = f"?{label}" return annotation def serial_speakers_to_RTTM(input_path, serie_uri, annotation_path, annotated_path, do_mapping=False): input_path, annotation_path, annotated_path = map(Path, ( input_path, annotation_path, annotated_path)) if annotation_path.exists(): raise ValueError(f"""{annotation_path} already exists. You probably don't wan't to append any more data to it.""") if annotated_path.exists(): raise ValueError(f"""{annotated_path} already exists. You probably don't wan't to append any more data to it.""") annotation_path.parent.mkdir(exist_ok=True) annotated_path.parent.mkdir(exist_ok=True) db = Plumcot() character_uris = db.get_characters(serie_uri, field="character_uri") character_names = db.get_characters(serie_uri, field="character_name") flat_character_uris = {uri for episode in character_uris.values() for uri in episode} with open(input_path, 'r') as file: serial_speakers = json.load(file) unique, counts = get_serial_speaker_names(serial_speakers) if do_mapping: mapping = map_names(flat_character_uris, unique, counts) with open(input_path.parent / f'{serie_uri}.name_mapping.json', 'w') as file: json.dump(mapping, file, indent=4, sort_keys=True) return mapping for season in serial_speakers['seasons']: season_i = season['id'] for episode in season['episodes']: episode_i = episode['id'] episode_uri = f"{serie_uri}.Season{season_i:02d}.Episode{episode_i:02d}" print(f"processing {episode_uri}", end='\r') annotation, annotated = serial_speaker_to_Annotation(episode, episode_uri, 'speaker') with open(annotation_path, 'a') as file: annotation.write_rttm(file) with open(annotated_path, 'a') as file: annotated.write_uem(file) def get_serial_speaker_names(serial_speakers): """Get all names in serial speaker annotation. """ serial_speaker_names = [segment['speaker'] for season in serial_speakers['seasons'] for episode in season['episodes'] for segment in episode["data"]["speech_segments"]] unique, counts = np.unique(serial_speaker_names, return_counts=True) return unique, counts def unknown_char(char_name, id_ep): """Transforms character name into unknown version.""" return f"{char_name}#unknown#{id_ep}" def map_names(character_uris, serial_speaker_names, counts): mapping = {} for name, count in zip(serial_speaker_names, counts): norm_name = name.lower().replace(" ", "_") if norm_name in character_uris: character_uris.remove(norm_name) mapping[name] = norm_name else: mapping[name] = int(count) while True: print(sorted(character_uris), '\n\n') for name, norm_name in mapping.items(): color = 'green' if isinstance(norm_name, str) else 'white' print(colored(f"{name} -> {norm_name}", color)) request = input("\nType the name of the character which you want " "to change normalized name (end to save, stop " "to skip, unk to unknownize every character that didn't match): ") # Stop and save if request == "end" or not request: break # Wrong name if request not in dic_names: warnings.warn("This name doesn't match with any characters.\n") else: prompt = ("\nType the new character's name " "(unk for unknown character): ") new_name = input(prompt) # Unknown character if new_name == "unk" or not new_name: new_name = 'unknown' mapping[request] = new_name return mapping def serial_speaker_to_Annotation(serial_speaker, uri=None, modality='speaker'): """ Parameters: ----------- serial_speaker : `dict` loaded from a serial speaker JSON as defined in https://figshare.com/articles/TV_Series_Corpus/3471839 uri (uniform resource identifier) : `str`, optional which identifies the annotation (e.g. episode number) Default : None modality : `str`, optional modality of the annotation as defined in https://github.com/pyannote/pyannote-core Returns: -------- annotation: pyannote `Annotation` for speaker identification/diarization as defined in https://github.com/pyannote/pyannote-core annotated: pyannote `Timeline` representing the annotated parts of the serial_speaker file Unknown speakers are not considered as annotated """ annotation = Annotation(uri, modality) not_annotated = Timeline(uri=uri) for segment in serial_speaker["data"]["speech_segments"]: time = Segment(segment["start"], segment["end"]) speaker_id = segment['speaker'].replace(" ", "_") annotation[time, speaker_id] = speaker_id if speaker_id == 'unknown': not_annotated.add(time) end = serial_speaker.get("duration", segment["end"]) annotated = not_annotated.gaps(support=Segment(0.0, end)) return annotation, annotated def gecko_JSON_to_Annotation(gecko_JSON, uri=None, modality='speaker'): """ Parameters: ----------- gecko_JSON : `dict` loaded from a Gecko-compliant JSON as defined in xml_to_GeckoJSON uri (uniform resource identifier) : `str` which identifies the annotation (e.g. episode number) Default : None modality : `str` modality of the annotation as defined in https://github.com/pyannote/pyannote-core Returns: -------- annotation: pyannote `Annotation` for speaker identification/diarization as defined in https://github.com/pyannote/pyannote-core must_link: pyannote `Annotation` User annotation cannot_link: pyannote `Annotation` User annotation of parts were the labelled speakers **do not** speak annotated: pyannote `Timeline` representing the annotated parts of the gecko_JSON file """ annotation = Annotation(uri, modality) must_link = Annotation(uri, modality) cannot_link = Annotation(uri, f"non-{modality}") for monologue in gecko_JSON["monologues"]: segment = Segment(monologue["start"], monologue["end"]) # '@' defined in https://github.com/hbredin/pyannote-db-plumcot/blob/develop/CONTRIBUTING.md#idepisodetxt # '+' defined in https://github.com/gong-io/gecko/blob/master/app/geckoModule/constants.js#L35 speaker_ids = re.split("@|\+", monologue["speaker"]["id"]) speaker_ids = set(speaker_ids) - NA_VALUES for speaker_id in speaker_ids: # most of the time there's only one annotation[segment, speaker_id] = speaker_id if monologue["speaker"]["annotators"] > 0: must_link[segment, speaker_id] = speaker_id non_ids = monologue["speaker"]["non_id"] non_ids = set(non_ids) - NA_VALUES for speaker_id in non_ids: cannot_link[segment, speaker_id] = speaker_id annotated = Timeline([Segment(0.0, monologue["end"])], uri) return annotation, must_link, cannot_link, annotated def annotation_to_GeckoJSON(annotation, distances={}, colors={}): """ Parameters: ----------- annotation: `pyannote.core.Annotation` proper pyannote annotation for speaker identification/diarization distances: `dict`, optional in-cluster distances between speech features see `get_distances_per_speaker` colors: `dict`, optional speaker id : consistent color Returns: -------- gecko_json : a JSON `dict` based on the demo file of https://github.com/gong-io/gecko/blob/master/samples/demo.json should be written to a file using json.dump """ gecko_json = json.loads("""{ "schemaVersion" : "3.1", "monologues" : [ ] }""") for segment, track, label in annotation.itertracks(yield_label=True): distance = distances.get(label, {}).get(segment) color = colors.get(label) gecko_json["monologues"].append( { "speaker": { "id": label, "color": color, "distance": distance, "non_id": [], "annotators": 0 }, "start": segment.start, "end": segment.end }) return gecko_json if __name__ == '__main__': args = docopt(__doc__) input_path = args['<input_path>'] serie_uri = args['<serie_uri>'] annotation_path = args['<annotation_path>'] annotated_path = args['<annotated_path>'] do_mapping = args['--map'] serial_speakers_to_RTTM(input_path, serie_uri, annotation_path, annotated_path, do_mapping)
# Copyright (c) 2020, 2021 The Linux Foundation # # SPDX-License-Identifier: Apache-2.0 import hashlib import os import re from west import log from zspdx.licenses import LICENSES from zspdx.util import getHashes # ScannerConfig contains settings used to configure how the SPDX # Document scanning should occur. class ScannerConfig: def __init__(self): super(ScannerConfig, self).__init__() # when assembling a Package's data, should we auto-conclude the # Package's license, based on the licenses of its Files? self.shouldConcludePackageLicense = True # when assembling a Package's Files' data, should we auto-conclude # each File's license, based on its detected license(s)? self.shouldConcludeFileLicenses = True # number of lines to scan for SPDX-License-Identifier (0 = all) # defaults to 20 self.numLinesScanned = 20 # should we calculate SHA256 hashes for each Package's Files? # note that SHA1 hashes are mandatory, per SPDX 2.2 self.doSHA256 = True # should we calculate MD5 hashes for each Package's Files? self.doMD5 = False def parseLineForExpression(line): """Return parsed SPDX expression if tag found in line, or None otherwise.""" p = line.partition("SPDX-License-Identifier:") if p[2] == "": return None # strip away trailing comment marks and whitespace, if any expression = p[2].strip() expression = expression.rstrip("/*") expression = expression.strip() return expression def getExpressionData(filePath, numLines): """ Scans the specified file for the first SPDX-License-Identifier: tag in the file. Arguments: - filePath: path to file to scan. - numLines: number of lines to scan for an expression before giving up. If 0, will scan the entire file. Returns: parsed expression if found; None if not found. """ log.dbg(f" - getting licenses for {filePath}") with open(filePath, "r") as f: try: lineno = 0 for line in f: lineno += 1 if lineno > numLines > 0: break expression = parseLineForExpression(line) if expression is not None: return expression except UnicodeDecodeError: # invalid UTF-8 content return None # if we get here, we didn't find an expression return None def splitExpression(expression): """ Parse a license expression into its constituent identifiers. Arguments: - expression: SPDX license expression Returns: array of split identifiers """ # remove parens and plus sign e2 = re.sub(r'\(|\)|\+', "", expression, flags=re.IGNORECASE) # remove word operators, ignoring case, leaving a blank space e3 = re.sub(r' AND | OR | WITH ', " ", e2, flags=re.IGNORECASE) # and split on space e4 = e3.split(" ") return sorted(e4) def calculateVerificationCode(pkg): """ Calculate the SPDX Package Verification Code for all files in the package. Arguments: - pkg: Package Returns: verification code as string """ hashes = [] for f in pkg.files.values(): hashes.append(f.sha1) hashes.sort() filelist = "".join(hashes) hSHA1 = hashlib.sha1() hSHA1.update(filelist.encode('utf-8')) return hSHA1.hexdigest() def checkLicenseValid(lic, doc): """ Check whether this license ID is a valid SPDX license ID, and add it to the custom license IDs set for this Document if it isn't. Arguments: - lic: detected license ID - doc: Document """ if lic not in LICENSES: doc.customLicenseIDs.add(lic) def getPackageLicenses(pkg): """ Extract lists of all concluded and infoInFile licenses seen. Arguments: - pkg: Package Returns: sorted list of concluded license exprs, sorted list of infoInFile ID's """ licsConcluded = set() licsFromFiles = set() for f in pkg.files.values(): licsConcluded.add(f.concludedLicense) for licInfo in f.licenseInfoInFile: licsFromFiles.add(licInfo) return sorted(list(licsConcluded)), sorted(list(licsFromFiles)) def normalizeExpression(licsConcluded): """ Combine array of license expressions into one AND'd expression, adding parens where needed. Arguments: - licsConcluded: array of license expressions Returns: string with single AND'd expression. """ # return appropriate for simple cases if len(licsConcluded) == 0: return "NOASSERTION" if len(licsConcluded) == 1: return licsConcluded[0] # more than one, so we'll need to combine them # iff an expression has spaces, it needs parens revised = [] for lic in licsConcluded: if lic in ["NONE", "NOASSERTION"]: continue if " " in lic: revised.append(f"({lic})") else: revised.append(lic) return " AND ".join(revised) def scanDocument(cfg, doc): """ Scan for licenses and calculate hashes for all Files and Packages in this Document. Arguments: - cfg: ScannerConfig - doc: Document """ for pkg in doc.pkgs.values(): log.inf(f"scanning files in package {pkg.cfg.name} in document {doc.cfg.name}") # first, gather File data for this package for f in pkg.files.values(): # set relpath based on package's relativeBaseDir f.relpath = os.path.relpath(f.abspath, pkg.cfg.relativeBaseDir) # get hashes for file hashes = getHashes(f.abspath) if not hashes: log.wrn("unable to get hashes for file {f.abspath}; skipping") continue hSHA1, hSHA256, hMD5 = hashes f.sha1 = hSHA1 if cfg.doSHA256: f.sha256 = hSHA256 if cfg.doMD5: f.md5 = hMD5 # get licenses for file expression = getExpressionData(f.abspath, cfg.numLinesScanned) if expression: if cfg.shouldConcludeFileLicenses: f.concludedLicense = expression f.licenseInfoInFile = splitExpression(expression) # check if any custom license IDs should be flagged for document for lic in f.licenseInfoInFile: checkLicenseValid(lic, doc) # now, assemble the Package data licsConcluded, licsFromFiles = getPackageLicenses(pkg) if cfg.shouldConcludePackageLicense: pkg.concludedLicense = normalizeExpression(licsConcluded) pkg.licenseInfoFromFiles = licsFromFiles pkg.verificationCode = calculateVerificationCode(pkg)
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import random from typing import Callable, ClassVar, Any from PyQt5.QtCore import QPoint, Qt, QTimer from PyQt5.QtGui import QPainter, QColor, QPolygon, QPainterPath, QPolygonF, QPaintEvent, QMouseEvent from PyQt5.QtWidgets import QWidget, QGridLayout from src.rightClickHelper.component.popover.basePopover import BasePopover from src.rightClickHelper.tool.animationTool import AnimationTool from src.rightClickHelper.tool.widgetTool import WidgetTool class ElePyPopover( BasePopover ): """ properties: { with-triangle: { type : bool, default : False, command : '是否带小三角指示位置', }, position: { type : str, default : 'bottom', candidate: ['top', 'bottom', 'left', 'right'], command : 'popover出现的位置', }, animation-type: { type : str, default : 'transform', candidate: ['transform', 'fadeInOut'], command : 'popover的展示动画 transform滑动移入移出,fadeInOut 淡入淡出', }, } """ def __init__(self, parent=None, properties: dict = {}): super().__init__(parent, properties) def invertVisible(self, widget: QWidget, event: QMouseEvent = None): self.hide() if self.isVisible() else self.show(widget, event) def show(self, widget: QWidget = None, event: QMouseEvent = None) -> None: self.setProperty('__is-show', '1') super(ElePyPopover, self).show() pos = widget.mapToGlobal(QPoint(0, 0)) targetOffset = { 'bottom': { 'x': [int((widget.width() - self.width()) / 2), 0], 'y': [widget.height(), 100], }, 'top': { 'x': [int((widget.width() - self.width()) / 2), 0], 'y': [-self.height(), -100], }, 'left': { 'x': [-self.width(), -100], 'y': [int((widget.height() - self.height())/2), 0], }, 'right': { 'x': [widget.width(), 100], 'y': [int((widget.height() - self.height())/2), 0], }, } if WidgetTool.getProperty( 'popover-show-pos', '' )(widget) != 'withMouseClickPos': targetPoint = QPoint( pos.x() + targetOffset[self.position]['x'][0], pos.y() + targetOffset[self.position]['y'][0] ) else: targetPoint = QPoint( pos.x() + event.x() - self.width()/2, pos.y() + event.y() ) animationType = WidgetTool.getProperty( 'animation-type', 'transform' )(self) if animationType == 'transform': originPoint = QPoint( targetPoint.x() + targetOffset[self.position]['x'][1], targetPoint.y() + targetOffset[self.position]['y'][1], ) AnimationTool.create({ 'type': b'pos', 'startVal': originPoint, 'endVal': targetPoint, 'duration': 100 })(self).start() elif animationType == 'fadeInOut': self.move(targetPoint) AnimationTool.create({ 'type': b'windowOpacity', 'startVal': 0, 'endVal': 1, 'duration': 200 })(self).start() def hide(self) -> None: self.setProperty('__is-show', '0') targetOffset = { 'bottom': { 'x': 0, 'y': 100, }, 'top': { 'x': 0, 'y': -100, }, 'left': { 'x': -100, 'y': 0, }, 'right': { 'x': 100, 'y': 0, }, } animationType = WidgetTool.getProperty( 'animation-type', 'transform' )(self) if animationType == 'transform': AnimationTool.create({ 'type': b'pos', 'startVal': self.pos(), 'endVal': QPoint( self.pos().x() + targetOffset[self.position]['x'], self.pos().y() + targetOffset[self.position]['y'], ), 'duration': 100, 'finished': lambda: super(ElePyPopover, self).hide() })(self).start() elif animationType == 'fadeInOut': self.move(self.pos()) AnimationTool.create({ 'type': b'windowOpacity', 'startVal': 1, 'endVal': 0, 'duration': 200, 'finished': lambda: super(ElePyPopover, self).hide() })(self).start() def paintEvent( self, event: QPaintEvent ) -> None: if WidgetTool.getProperty('with-triangle', False)(self): painter = QPainter(self) painter.setRenderHint(QPainter.Antialiasing, True) painter.setPen(Qt.NoPen) painter.setBrush(QColor(*self.widget().settingBackgroundColor[:3])) triangle = QPolygon() side = 12 offset = { 'top': [ int(self.width()/2) - int(side/2), self.height() - 2*self.shadowRadius ], 'bottom': [ int(self.width()/2) - int(side/2), 2*self.shadowRadius - side ], 'left': [ self.width() - 2*self.shadowRadius, int(self.height()/2) - int(side/2) ], 'right': [ 2*self.shadowRadius - side, int(self.height()/2) - int(side/2) ] }[self.position] pos = { 'top': (int(side/2) + offset[0], 0 + offset[1]), 'bottom': (int(side/2) + offset[0], side + offset[1]), 'left': (0 + offset[0], int(side/2) + offset[1]), 'right': (side + offset[0], int(side/2) + offset[1]), } triangles = { 'top': [*pos['bottom'], *pos['left'], *pos['right']], 'bottom': [*pos['top'], *pos['left'], *pos['right']], 'left': [*pos['top'], *pos['right'], *pos['bottom']], 'right': [*pos['top'], *pos['left'], *pos['bottom']], } triangle.setPoints(triangles[self.position]) painter.drawPolygon(triangle) painterPath = QPainterPath() painterPath.addPolygon(QPolygonF(triangle)) painter.fillPath(painterPath, painter.brush()) super(ElePyPopover, self).paintEvent(event) @property def position(self): return WidgetTool.getProperty('position', 'bottom')(self) @position.setter def position(self, val: str): self.setProperty('position', val) @staticmethod def __setPopoverInHover( widget: QWidget, popoverWidget: QWidget, properties: dict = {} , PopoverClass: ClassVar['ElePyPopover'] = None , createPopover: Callable[ [Any, QWidget, dict], 'ElePyPopover' ] = None , createdPopover: Callable[['ElePyPopover'], Any] = None ): """ 挂载一个被鼠标移动在某个widget上方展示的popover :param widget: 被挂载的widget实例 :param popoverWidget: 放在popoverDockWindow中的widget实例 :param properties: 传递给popover构造函数的properties字典 :param PopoverClass: popover的构造函数 :param createPopover: 创建popover的函数,必须返回一个popover实例 具体参数调用,查看上方范型 :param createdPopover: 创建完popover触发该回调钩子,传入创建好的popover对象 :return: 无返回值 """ widget.popover = None sourceEnterEvent = widget.enterEvent sourceLeaveEvent = widget.leaveEvent _is = { 'hide': True, 'inWidget': False } def showPopover(event): def __showPopover(must: bool = False): if not _is['inWidget']: return if must or not _is['hide']: timer = QTimer(widget) timer.setSingleShot(True) timer.timeout.connect(__showPopover) timer.start(300) return sourceEnterEvent(event) if widget.popover is None: if createPopover is None: widget.popover = PopoverClass(widget, properties) else: widget.popover = createPopover(PopoverClass, widget, properties) widget.popover.setWidget(popoverWidget) if createdPopover is not None: createdPopover(widget.popover) widget.popover.show(widget) widget.repaint(); widget.update() _is['hide'] = False _is['inWidget'] = True __showPopover(True) # 当前位于popover上不隐藏 # 当前位于widget上不隐藏 def hidePopover(event): def __hidePopover(must: bool = False): if _is['inWidget']: return if must or (widget.popover is not None and widget.popover._inWidget): timer = QTimer(widget) timer.setSingleShot(True) timer.timeout.connect(__hidePopover) timer.start(300) return sourceLeaveEvent(event) if widget.popover is not None: widget.popover.hide() widget.repaint(); widget.update() _is['hide'] = True _is['inWidget'] = False __hidePopover(True) widget.enterEvent = showPopover widget.leaveEvent = hidePopover @staticmethod def __setPopoverInClick( widget: QWidget, popoverWidget: QWidget, properties: dict = {} , PopoverClass: ClassVar['ElePyPopover'] = None , createPopover: Callable[ [Any, QWidget, dict], 'ElePyPopover' ] = None , createdPopover: Callable[['ElePyPopover'], Any] = None ): """ 挂载一个被鼠标点击在某个widget上方展示的popover :param widget: 被挂载的widget实例 :param popoverWidget: 放在popoverDockWindow中的widget实例 :param properties: 传递给popover构造函数的properties字典 :param PopoverClass: popover的构造函数 :param createPopover: 创建popover的函数,必须返回一个popover实例 具体参数调用,查看上方范型 :param createdPopover: 创建完popover触发该回调钩子,传入创建好的popover对象 :return: 无返回值 """ widget.popover = None sourceMousePressEvent = widget.mousePressEvent def changePopoverStatus(event: QMouseEvent): sourceMousePressEvent(event) btns = { 'left': [Qt.LeftButton], 'right': [Qt.RightButton], } triggerClickBtns = btns.get(WidgetTool.getProperty( 'trigger-click-btns', 'left' )(widget), btns['left']) trigger = False for triggerClickBtn in triggerClickBtns: if event.buttons() == triggerClickBtn: trigger = True if trigger: if widget.popover is None: if createPopover is None: widget.popover = PopoverClass(widget, properties) else: widget.popover = createPopover(PopoverClass, widget, properties) widget.popover.setWidget(popoverWidget) if createdPopover is not None: createdPopover(widget.popover) widget.popover.invertVisible( widget, event ) else: if widget.popover is not None and widget.popover.isVisible(): widget.popover.hide() widget.repaint(); widget.update() widget.mousePressEvent = changePopoverStatus @staticmethod def setPopover( widget: QWidget, popoverWidget: QWidget, properties: dict = {} , PopoverClass: ClassVar['ElePyPopover'] = None , createPopover: Callable[ [Any, QWidget, dict], 'ElePyPopover' ] = None ): if PopoverClass is None: PopoverClass = ElePyPopover def createdPopover(popover: 'ElePyPopover'): pass { 'hover': ElePyPopover.__setPopoverInHover, 'click': ElePyPopover.__setPopoverInClick, }.get(properties.get('popover-trigger', 'hover'), ElePyPopover.__setPopoverInHover)( widget=widget, popoverWidget=popoverWidget, properties=properties , PopoverClass=PopoverClass , createPopover=createPopover , createdPopover=createdPopover ) @staticmethod def setPopoverWithBackground( widget: QWidget, popoverWidget: QWidget, properties: dict = {} , dealMainWidget: Callable = None, setting: dict = {} , PopoverClass: ClassVar['ElePyPopover'] = None , createPopover: Callable[ [Any, QWidget, dict], 'ElePyPopover' ] = None ): GL = QGridLayout() mainWidget = QWidget() mainWidget.setLayout(GL) mainWidget.setFixedSize( popoverWidget.size().width() + properties.get('shadowRadius', 10) * 2 + 10, popoverWidget.size().height() + properties.get('shadowRadius', 10) * 2 ) mainWidget.popoverContent = popoverWidget popoverWidget.setParent(mainWidget) GL.addWidget(popoverWidget) if dealMainWidget is not None: dealMainWidget(mainWidget) else: mainWidget.setObjectName('mainWidget-' + str(random.randint(0, 1000000))) mainWidget.settingBackgroundColor = setting.get('background-color', [255, 255, 255, 255]) mainWidget.setStyleSheet(f'''\ #{mainWidget.objectName()} {{ margin: 10px; border-radius: 4px; background-color: rgba({','.join( [str(color) for color in mainWidget.settingBackgroundColor] )}); }}''') properties['with-triangle'] = True ElePyPopover.setPopover( widget, mainWidget, properties , PopoverClass, createPopover )
from ast import Mod from enum import Enum import random import uuid import networkx as nx import matplotlib.pyplot as plt from mesa import Agent, Model from mesa.time import RandomActivation from mesa.datacollection import DataCollector from mesa.space import NetworkGrid def perceived_proposal_value(model): """Returns the community's perceived value of a proposal at each time step Args: model ([type]): [description] Returns: [type]: [description] """ # values = [a.current_proposal_evaluation for a in model.grid.get_all_cell_contents()] return model.perceived_proposal_value def true_proposal_value(model): """Returns the true value of the proposal being considered by the community. The value of this proposal is theoretical. It represents that actual value, free from any bias that will be delivered to the organization if it passes. Agents only perceive the value of this proposal through the lens of their bias. There are a set number of days to build consensus through their network. Each day a random number of each agent's close connections meet and share their view on how valuable a proposal is. At the end of the day the agent and their connections update their perception of the proposal value to the be the average of everyone's valuation. Args: model (Mesa.Model.MolochDAO): a Mesa MolochDAO object being simulated. """ return model.true_proposal_value def realized_proposal_value(model): """Returns the cumulative value of proposals that were passed by the org. Args: model ([type]): [description] """ return model.realized_proposal_value def pct_passing_votes(model): if len(model.votes) == model.num_proposals: return sum(model.votes) / len(model.votes) else: pass def generate_proposal(dimensions: int) -> dict: id = uuid.uuid4() values = [random.uniform(0, 1) for _ in range(dimensions)] return values class MolochDAO(Model): def __init__( self, num_nodes = 12, avg_node_degree = 5, proposal_dimension = 2, # number of categories considered in evaluating the value of the proposal evaluation_period = 3, # num. time steps for agents to evaluate the proposal num_proposals = 3 ) -> None: self.num_nodes = num_nodes prob = avg_node_degree / num_nodes self.G = nx.watts_strogatz_graph(n = self.num_nodes, k = avg_node_degree, p = prob) self.grid = NetworkGrid(self.G) self.schedule = RandomActivation(self) self.proposal_dimension = proposal_dimension self.num_proposals = num_proposals self.evaluation_period = evaluation_period # data variables to track self.true_proposal_value = 0 self.realized_proposal_value = 0 # initialize the cumulative value of proposals passed by the org. self.perceived_proposal_value = 0 self.votes = [] # self.proposals = [random.uniform(0,1) for _ in range(num_proposals)] # self.num_outstanding_proposals = num_proposals self.datacollector = DataCollector( { # "perceived_proposal_value": perceived_proposal_value(self) # "perceived_proposal_value": perceived_proposal_value, "true_proposal_value": true_proposal_value, "realized_proposal_value": realized_proposal_value, "percent_passing_votes": pct_passing_votes } ) # Create agents on the network for i, node in enumerate(self.G.nodes()): # generate random agent bias agent_bias = [random.uniform(0, 2) for i in range(self.proposal_dimension)] # set the support threshold ## option 1: if perceived value is greater than actual (unknown to agent) max value. ## support_threshold = random.uniform(0.0, self.proposal_dimension) # between 0 (will support anything) and max perceived value of the proposal (it must be perfect) # create agent agent = MemberAgent( unique_id=i, model=self, bias=agent_bias, support_threshold = support_threshold ) self.schedule.add(agent) # add agent to node on the network self.grid.place_agent(agent, node) self.datacollector.collect(self) self.running = True def votes(self): return self.votes def step(self): # collect data self.datacollector.collect(self) self.schedule.step() def run(self) -> None: # while self.num_outstanding_proposals > 0: # self.step() # list of all agents in the model agents = self.grid.get_cell_list_contents(self.G.nodes()) # print(self.G.nodes()) # temp list to store voting history of proposals temp_vote_list = [] # each iteration of the model (currently set to 5) for i in range(self.num_proposals): # create a new proposal proposal = generate_proposal(self.proposal_dimension) agent_votes = [] # initialize empty vote bank perceived_value = [] # initialize empty perceived value tracker # record (theoretical) true proposal value self.true_proposal_value += sum(proposal) # all agents evaluate the new proposal for agent in agents: agent.evaluate_proposal(proposal) # influence neighbors for specified number of steps (currently set to 3) for s in range(self.evaluation_period): self.step() # this activates each agent's step function # vote on proposal then reset evaluation for agent in agents: vote = agent.vote() # if more than 50% vote add proposal value to org. if vote: agent_votes.append(1) else: agent_votes.append(0) # print(vote) # agent's reset their proposal opinion and get ready for the next one agent.reset_evaluation() # if > 50% of vote is made # print("proposal number", i) if sum(agent_votes) / self.num_nodes > 0.5: self.realized_proposal_value += sum(proposal) # temp_vote_list.append(1) # count that a vote passed self.votes.append(1) # count that a vote passed else: # temp_vote_list.append(0) # count that a vote didn't pass self.votes.append(0) # count that a vote didn't pass # self.votes.append(temp_vote_list) # temp_vote_list = [] # reset # self.votes = [] # reset votes # print("proposal finished") class MemberAgent(Agent): def __init__( self, unique_id: int, model: Model, bias: list, support_threshold: float ) -> None: super().__init__(unique_id, model) self.bias = bias self.support_threshold = support_threshold self.current_proposal_evaluation = 0 def evaluate_proposal(self, proposal: list) -> None: """Evaluate the value of a proposal by applying personal bias. Args: proposal ([list]): the true value of the proposal on each dimension upon which its considered. Returns: float: agent's perception of value of the proposal after applying bias """ perceived_value = sum([a*b for a,b in zip(self.bias, proposal)]) self.current_proposal_evaluation = perceived_value def influence_neighbors(self): # print("starting opinion", self.current_proposal_evaluation) # connect with random number of neighbors and influence their perception neighbor_nodes = self.model.grid.get_neighbors(self.pos, include_center=False) # talk to a random number of friends and update perception of proposal value to the average opinion k = random.randint(1, len(neighbor_nodes)) # between 1 and all connected nodes random_friends = self.random.sample(neighbor_nodes, k) # get friends evaluations of the current proposal friends_evaluation = [a.current_proposal_evaluation for a in self.model.grid.get_cell_list_contents(random_friends)] # update personal opinion to the average of friends opinions who the agent talks to self.current_proposal_evaluation = (sum(friends_evaluation) + self.current_proposal_evaluation) / (1 + k) # print("opinion after consensus", self.current_proposal_evaluation) def vote(self): support = self.support_threshold < self.current_proposal_evaluation return support def reset_evaluation(self) -> None: self.current_proposal_evaluation = 0 def step(self): """agent activity that occurs each time step. """ # evaluate a new proposal # proposal = generate_proposal(3) # self.evaluate_proposal(proposal) # build consensus by influencing neighbors for defined number of steps self.influence_neighbors() # vote on proposal if __name__ == "__main__": params = { "num_nodes": 5, # number of DAO members "avg_node_degree": 3, # how many other DAO members is each connected to? "proposal_dimension": 2, # number of categories considered in evaluating the value of the proposal "evaluation_period": 3, # num. time steps for agents to evaluate the proposal "num_proposals": 10 } model = MolochDAO(**params) for i in range(10): model.run() # print(model.votes) print(sum(model.votes) / len(model.votes)) # count how many proposals passed in this simulation run model.votes = [] # reset and get ready for the next run
""" OpenAPI definition No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0 Contact: support@gooddata.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from gooddata_metadata_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, validate_get_composed_info, OpenApiModel ) from gooddata_metadata_client.exceptions import ApiAttributeError def lazy_import(): from gooddata_metadata_client.model.json_api_user_in_attributes import JsonApiUserInAttributes from gooddata_metadata_client.model.json_api_user_in_relationships import JsonApiUserInRelationships from gooddata_metadata_client.model.json_api_user_out import JsonApiUserOut from gooddata_metadata_client.model.object_links import ObjectLinks from gooddata_metadata_client.model.object_links_container import ObjectLinksContainer globals()['JsonApiUserInAttributes'] = JsonApiUserInAttributes globals()['JsonApiUserInRelationships'] = JsonApiUserInRelationships globals()['JsonApiUserOut'] = JsonApiUserOut globals()['ObjectLinks'] = ObjectLinks globals()['ObjectLinksContainer'] = ObjectLinksContainer class JsonApiUserOutWithLinks(ModelComposed): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Attributes: allowed_values (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict with a capitalized key describing the allowed value and an allowed value. These dicts store the allowed enum values. attribute_map (dict): The key is attribute name and the value is json key in definition. discriminator_value_class_map (dict): A dict to go from the discriminator variable value to the discriminator class name. validations (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict that stores validations for max_length, min_length, max_items, min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, inclusive_minimum, and regex. additional_properties_type (tuple): A tuple of classes accepted as additional properties values. """ allowed_values = { ('type',): { 'USER': "user", }, } validations = { ('id',): { 'regex': { 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501 }, }, } @cached_property def additional_properties_type(): """ This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @cached_property def openapi_types(): """ This must be a method because a model may have properties that are of type self, this must run after the class is loaded Returns openapi_types (dict): The key is attribute name and the value is attribute type. """ lazy_import() return { 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiUserInAttributes,), # noqa: E501 'relationships': (JsonApiUserInRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @cached_property def discriminator(): return None attribute_map = { 'id': 'id', # noqa: E501 'type': 'type', # noqa: E501 'attributes': 'attributes', # noqa: E501 'relationships': 'relationships', # noqa: E501 'links': 'links', # noqa: E501 } read_only_vars = { } @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """JsonApiUserOutWithLinks - a model defined in OpenAPI Keyword Args: id (str): API identifier of an object type (str): Object type. defaults to "user", must be one of ["user", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiUserInAttributes): [optional] # noqa: E501 relationships (JsonApiUserInRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ type = kwargs.get('type', "user") _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) self = super(OpenApiModel, cls).__new__(cls) if args: for arg in args: if isinstance(arg, dict): kwargs.update(arg) else: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__,), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) constant_args = { '_check_type': _check_type, '_path_to_item': _path_to_item, '_spec_property_naming': _spec_property_naming, '_configuration': _configuration, '_visited_composed_classes': self._visited_composed_classes, } composed_info = validate_get_composed_info( constant_args, kwargs, self) self._composed_instances = composed_info[0] self._var_name_to_model_instances = composed_info[1] self._additional_properties_model_instances = composed_info[2] discarded_args = composed_info[3] for var_name, var_value in kwargs.items(): if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self._additional_properties_model_instances: # discard variable. continue setattr(self, var_name, var_value) return self required_properties = set([ '_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration', '_visited_composed_classes', '_composed_instances', '_var_name_to_model_instances', '_additional_properties_model_instances', ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 """JsonApiUserOutWithLinks - a model defined in OpenAPI Keyword Args: id (str): API identifier of an object type (str): Object type. defaults to "user", must be one of ["user", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiUserInAttributes): [optional] # noqa: E501 relationships (JsonApiUserInRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ type = kwargs.get('type', "user") _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: for arg in args: if isinstance(arg, dict): kwargs.update(arg) else: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__,), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) constant_args = { '_check_type': _check_type, '_path_to_item': _path_to_item, '_spec_property_naming': _spec_property_naming, '_configuration': _configuration, '_visited_composed_classes': self._visited_composed_classes, } composed_info = validate_get_composed_info( constant_args, kwargs, self) self._composed_instances = composed_info[0] self._var_name_to_model_instances = composed_info[1] self._additional_properties_model_instances = composed_info[2] discarded_args = composed_info[3] for var_name, var_value in kwargs.items(): if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self._additional_properties_model_instances: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.") @cached_property def _composed_schemas(): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading lazy_import() return { 'anyOf': [ ], 'allOf': [ JsonApiUserOut, ObjectLinksContainer, ], 'oneOf': [ ], }
/* * Copyright (c) 2019, The OpenThread Authors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ /** * @file * This file implements a software Source Match table, for radios that don't have * such hardware acceleration. It supports only the single-instance build of * OpenThread. * */ #include "utils/soft_source_match_table.h" #include <stdlib.h> #include "common/logging.hpp" #include "utils/code_utils.h" #if RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM || RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM static uint16_t sPanId = 0; void utilsSoftSrcMatchSetPanId(uint16_t aPanId) { sPanId = aPanId; } #endif // RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM || RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM #if RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM typedef struct srcMatchShortEntry { uint16_t checksum; bool allocated; } sSrcMatchShortEntry; static sSrcMatchShortEntry srcMatchShortEntry[RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM]; int16_t utilsSoftSrcMatchShortFindEntry(uint16_t aShortAddress) { int16_t entry = -1; uint16_t checksum = aShortAddress + sPanId; for (int16_t i = 0; i < RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM; i++) { if (checksum == srcMatchShortEntry[i].checksum && srcMatchShortEntry[i].allocated) { entry = i; break; } } return entry; } static int16_t findSrcMatchShortAvailEntry(void) { int16_t entry = -1; for (int16_t i = 0; i < RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM; i++) { if (!srcMatchShortEntry[i].allocated) { entry = i; break; } } return entry; } static inline void addToSrcMatchShortIndirect(uint16_t entry, uint16_t aShortAddress) { uint16_t checksum = aShortAddress + sPanId; srcMatchShortEntry[entry].checksum = checksum; srcMatchShortEntry[entry].allocated = true; } static inline void removeFromSrcMatchShortIndirect(uint16_t entry) { srcMatchShortEntry[entry].allocated = false; srcMatchShortEntry[entry].checksum = 0; } otError otPlatRadioAddSrcMatchShortEntry(otInstance *aInstance, uint16_t aShortAddress) { OT_UNUSED_VARIABLE(aInstance); otError error = OT_ERROR_NONE; int16_t entry = -1; entry = findSrcMatchShortAvailEntry(); otLogDebgPlat("Add ShortAddr entry: %d", entry); otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM, error = OT_ERROR_NO_BUFS); addToSrcMatchShortIndirect((uint16_t)entry, aShortAddress); exit: return error; } otError otPlatRadioClearSrcMatchShortEntry(otInstance *aInstance, uint16_t aShortAddress) { OT_UNUSED_VARIABLE(aInstance); otError error = OT_ERROR_NONE; int16_t entry = -1; entry = utilsSoftSrcMatchShortFindEntry(aShortAddress); otLogDebgPlat("Clear ShortAddr entry: %d", entry); otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM, error = OT_ERROR_NO_ADDRESS); removeFromSrcMatchShortIndirect((uint16_t)entry); exit: return error; } void otPlatRadioClearSrcMatchShortEntries(otInstance *aInstance) { OT_UNUSED_VARIABLE(aInstance); otLogDebgPlat("Clear ShortAddr entries", NULL); memset(srcMatchShortEntry, 0, sizeof(srcMatchShortEntry)); } #endif // RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM #if RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM typedef struct srcMatchExtEntry { uint16_t checksum; bool allocated; } sSrcMatchExtEntry; static sSrcMatchExtEntry srcMatchExtEntry[RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM]; int16_t utilsSoftSrcMatchExtFindEntry(const otExtAddress *aExtAddress) { int16_t entry = -1; uint16_t checksum = sPanId; checksum += (uint16_t)aExtAddress->m8[0] | (uint16_t)(aExtAddress->m8[1] << 8); checksum += (uint16_t)aExtAddress->m8[2] | (uint16_t)(aExtAddress->m8[3] << 8); checksum += (uint16_t)aExtAddress->m8[4] | (uint16_t)(aExtAddress->m8[5] << 8); checksum += (uint16_t)aExtAddress->m8[6] | (uint16_t)(aExtAddress->m8[7] << 8); for (int16_t i = 0; i < RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM; i++) { if (checksum == srcMatchExtEntry[i].checksum && srcMatchExtEntry[i].allocated) { entry = i; break; } } return entry; } static int16_t findSrcMatchExtAvailEntry(void) { int16_t entry = -1; for (int16_t i = 0; i < RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM; i++) { if (!srcMatchExtEntry[i].allocated) { entry = i; break; } } return entry; } static inline void addToSrcMatchExtIndirect(uint16_t entry, const otExtAddress *aExtAddress) { uint16_t checksum = sPanId; checksum += (uint16_t)aExtAddress->m8[0] | (uint16_t)(aExtAddress->m8[1] << 8); checksum += (uint16_t)aExtAddress->m8[2] | (uint16_t)(aExtAddress->m8[3] << 8); checksum += (uint16_t)aExtAddress->m8[4] | (uint16_t)(aExtAddress->m8[5] << 8); checksum += (uint16_t)aExtAddress->m8[6] | (uint16_t)(aExtAddress->m8[7] << 8); srcMatchExtEntry[entry].checksum = checksum; srcMatchExtEntry[entry].allocated = true; } static inline void removeFromSrcMatchExtIndirect(uint16_t entry) { srcMatchExtEntry[entry].allocated = false; srcMatchExtEntry[entry].checksum = 0; } otError otPlatRadioAddSrcMatchExtEntry(otInstance *aInstance, const otExtAddress *aExtAddress) { OT_UNUSED_VARIABLE(aInstance); otError error = OT_ERROR_NONE; int16_t entry = -1; entry = findSrcMatchExtAvailEntry(); otLogDebgPlat("Add ExtAddr entry: %d", entry); otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM, error = OT_ERROR_NO_BUFS); addToSrcMatchExtIndirect((uint16_t)entry, aExtAddress); exit: return error; } otError otPlatRadioClearSrcMatchExtEntry(otInstance *aInstance, const otExtAddress *aExtAddress) { OT_UNUSED_VARIABLE(aInstance); otError error = OT_ERROR_NONE; int16_t entry = -1; entry = utilsSoftSrcMatchExtFindEntry(aExtAddress); otLogDebgPlat("Clear ExtAddr entry: %d", entry); otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM, error = OT_ERROR_NO_ADDRESS); removeFromSrcMatchExtIndirect((uint16_t)entry); exit: return error; } void otPlatRadioClearSrcMatchExtEntries(otInstance *aInstance) { OT_UNUSED_VARIABLE(aInstance); otLogDebgPlat("Clear ExtAddr entries", NULL); memset(srcMatchExtEntry, 0, sizeof(srcMatchExtEntry)); } #endif // RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM
"""All helper for interaction with telegram.""" import time import logging from datetime import datetime from telegram.error import TimedOut, NetworkError from raven import breadcrumbs from stickerfinder.sentry import sentry from stickerfinder.config import config def call_tg_func(tg_object: object, function_name: str, args: list = None, kwargs: dict = None): """Call a tg object member function. We need to handle those calls in case we get rate limited. """ _try = 0 tries = 2 exception = None while _try < tries: try: args = args if args else [] kwargs = kwargs if kwargs else {} breadcrumbs.record(data={'action': f'Starting: {datetime.now()}'}, category='info') retrieved_object = getattr(tg_object, function_name)(*args, **kwargs) return retrieved_object except (TimedOut, NetworkError) as e: # Can't update message. just ignore it if 'Message to edit not found' in str(e) or \ 'Message is not modified' in str(e): raise e breadcrumbs.record(data={'action': f'Exception: {datetime.now()}'}, category='info') logger = logging.getLogger() logger.info(f'Got telegram exception waiting 4 secs.') logger.info(e) if config.DEBUG: sentry.captureException() time.sleep(4) _try += 1 exception = e pass raise exception
""" Django settings for demo project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'yff70et1z#a(m1j2mul#bsft2r)#m6p26*wj0j4wedptwu7)k_' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'demo.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'demo.wsgi.application' # Database # https://docs.djangoproject.com/en/2.2/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Password validation # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/2.2/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.2/howto/static-files/ STATIC_URL = '/static/'
var searchData= [ ['resources',['Resources',['../../../../../doc/html/group__resources.html',1,'']]] ];
import cv2 as cv import argparse import sys import numpy as np import os.path # Initialize the parameters confThreshold = 0.5 #Confidence threshold nmsThreshold = 0.4 #Non-maximum suppression threshold inpWidth = 416 #Width of network's input image inpHeight = 416 #Height of network's input image parser = argparse.ArgumentParser(description='Object Detection using YOLO in OPENCV') parser.add_argument('--image', help='Path to image file.') parser.add_argument('--video', help='Path to video file.') args = parser.parse_args() # Load names of classes classesFile = "../../coco.names" classes = None with open(classesFile, 'rt') as f: classes = f.read().rstrip('\n').split('\n') # Give the configuration and weight files for the model and load the network using them. modelConfiguration = "../../yolov3.cfg" modelWeights = "../../yolov3.weights" net = cv.dnn.readNetFromDarknet(modelConfiguration, modelWeights) net.setPreferableBackend(cv.dnn.DNN_BACKEND_OPENCV) net.setPreferableTarget(cv.dnn.DNN_TARGET_CPU) # Get the names of the output layers def getOutputsNames(net): # Get the names of all the layers in the network layersNames = net.getLayerNames() # Get the names of the output layers, i.e. the layers with unconnected outputs return [layersNames[i[0] - 1] for i in net.getUnconnectedOutLayers()] # Draw the predicted bounding box def drawPred(classId, conf, left, top, right, bottom): # Draw a bounding box. cv.rectangle(frame, (left, top), (right, bottom), (255, 178, 50), 3) label = '%.2f' % conf # Get the label for the class name and its confidence if classes: assert(classId < len(classes)) label = '%s:%s' % (classes[classId], label) #Display the label at the top of the bounding box labelSize, baseLine = cv.getTextSize(label, cv.FONT_HERSHEY_SIMPLEX, 0.5, 1) top = max(top, labelSize[1]) cv.rectangle(frame, (left, top - round(1.5*labelSize[1])), (left + round(1.5*labelSize[0]), top + baseLine), (255, 255, 255), cv.FILLED) cv.putText(frame, label, (left, top), cv.FONT_HERSHEY_SIMPLEX, 0.75, (0,0,0), 1) # Remove the bounding boxes with low confidence using non-maxima suppression def postprocess(frame, outs): frameHeight = frame.shape[0] frameWidth = frame.shape[1] # Scan through all the bounding boxes output from the network and keep only the # ones with high confidence scores. Assign the box's class label as the class with the highest score. classIds = [] confidences = [] boxes = [] for out in outs: for detection in out: scores = detection[5:] classId = np.argmax(scores) confidence = scores[classId] if confidence > confThreshold: center_x = int(detection[0] * frameWidth) center_y = int(detection[1] * frameHeight) width = int(detection[2] * frameWidth) height = int(detection[3] * frameHeight) left = int(center_x - width / 2) top = int(center_y - height / 2) classIds.append(classId) confidences.append(float(confidence)) boxes.append([left, top, width, height]) # Perform non maximum suppression to eliminate redundant overlapping boxes with # lower confidences. indices = cv.dnn.NMSBoxes(boxes, confidences, confThreshold, nmsThreshold) for i in indices: i = i[0] box = boxes[i] left = box[0] top = box[1] width = box[2] height = box[3] drawPred(classIds[i], confidences[i], left, top, left + width, top + height) # Process inputs winName = 'Deep learning object detection in OpenCV' cv.namedWindow(winName, cv.WINDOW_NORMAL) outputFile = "yolo_out_py.avi" if (args.image): # Open the image file if not os.path.isfile(args.image): print("Input image file ", args.image, " doesn't exist") sys.exit(1) cap = cv.VideoCapture(args.image) outputFile = args.image[:-4]+'_yolo_out_py.jpg' elif (args.video): # Open the video file if not os.path.isfile(args.video): print("Input video file ", args.video, " doesn't exist") sys.exit(1) cap = cv.VideoCapture(args.video) outputFile = args.video[:-4]+'_yolo_out_py.avi' else: # Webcam input # cap = cv.VideoCapture(0) cap=cv.VideoCapture('../../videos/a.mp4') # Get the video writer initialized to save the output video if (not args.image): vid_writer = cv.VideoWriter(outputFile, cv.VideoWriter_fourcc('M','J','P','G'), 30, (round(cap.get(cv.CAP_PROP_FRAME_WIDTH)),round(cap.get(cv.CAP_PROP_FRAME_HEIGHT)))) while cv.waitKey(1) < 0: # get frame from the video hasFrame, frame = cap.read() # Stop the program if reached end of video if not hasFrame: print("Done processing !!!") print("Output file is stored as ", outputFile) cv.waitKey(3000) # Release device cap.release() break # Create a 4D blob from a frame. blob = cv.dnn.blobFromImage(frame, 1/255, (inpWidth, inpHeight), [0,0,0], 1, crop=False) # Sets the input to the network net.setInput(blob) # Runs the forward pass to get output of the output layers outs = net.forward(getOutputsNames(net)) # Remove the bounding boxes with low confidence postprocess(frame, outs) # Put efficiency information. The function getPerfProfile returns the overall time for inference(t) and the timings for each of the layers(in layersTimes) t, _ = net.getPerfProfile() label = 'Inference time: %.2f ms' % (t * 1000.0 / cv.getTickFrequency()) cv.putText(frame, label, (0, 15), cv.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255)) # Write the frame with the detection boxes if (args.image): cv.imwrite(outputFile, frame.astype(np.uint8)) else: vid_writer.write(frame.astype(np.uint8)) cv.imshow(winName, frame)
class Car { constructor(manufacture, color) { this.manufacture = manufacture; this.color = color; this.enginesActive = false; } }
#pragma once #include "types.h" #include "result.h" #include <exception> #include <functional> #include <vector> namespace npp { /// Declare classes for deps class IDynamicLoader; /// Initialize a dynamic library with this type typedef std::function< void(const char *) > DynamicInitLib; typedef std::function< void(const char *, i32) > DynamicInitSym; typedef std::function< void(DynamicInitLib, DynamicInitSym) > DynamicInit; /// A singleton helper for loading dynamic libraries class Dynamic { }; /// A single dynamic library class DynamicLib { private: /// The list of loaded functions std::vector<void *> symbols; /// The library handle void *handle; /// The loader singleton IDynamicLoader *loader; public: /// Create a new instance DynamicLib(IDynamicLoader *loader, DynamicInit init); /// Destroy and shutdown ~DynamicLib(); /// Return a symbol by id, providing a prototype to bind to template<typename TRtn> TRtn as(i32 symbol) { return (TRtn) this->symbols[symbol]; } }; /// Failure type class DynamicError : public std::exception { private: const char *message; public: DynamicError(const char *error); const char *error(); }; /// The dynamic loader interface class IDynamicLoader { public: /// Open a library handle /// @return The handle for the library for an error status virtual Result<void *, const char *> dlopen(const char *path) = 0; /// Fetch a named library symbol /// @return The symbol or an error status virtual Result<void *, const char *> dlsym(const char *path) = 0; /// Close an open library handle virtual void dlclose(void *handle) = 0; /// Graceful shutdown virtual ~IDynamicLoader() {}; }; /// A dummy IDynamicLib implementation class DummyDynamicLoader : public IDynamicLoader { public: Result<void *, const char *> dlopen(const char *path); Result<void *, const char *> dlsym(const char *path); void dlclose(void *handle); ~DummyDynamicLoader(); }; }
$(document).ready(function () { /////////////////////////////////////////// // Create plot, draw points and add zoom // /////////////////////////////////////////// var n = 15; // number of points var max = 100; // maximum of x and y // Radius of floating circle (cursor), also used in stroke-width of points var floatingCircleRadius = 100; var prevFloatingCircleRadius = 100; // temporary solution for centroid placement // Algorithm used var alg = "tsne"; // Used to allow export var labeled = false; var shiftDown = false; var ctrlDown = false; var cDown = false; var categoryColor = "black"; // Start color of floating circle // Set variable for audio duration var currentClosestTime = 0; // Set variabel for graphPoints var graphPoints = ""; // Set dict for centroids centroids = {}; // dimensions and margins var map = d3.select("#map") width = $("#map").width(); height = $("#map").height(); var margin = { top: (0 * width), right: (0 * width), bottom: (0 * width), left: (0 * width) }; // sequenceMap, i.e. timeline var sequenceMap = d3.select("#sequenceMap") var sequenceMapWidth = $("#sequenceMap").width(); var sequenceMapHeight = $("#sequenceMap").height(); // graphMap, i.e. second timeline var graphMap = d3.select("#graphMap") var graphMapWidth = $("#graphMap").width(); var graphMapHeight = $("#graphMap").height(); // create scale objects var xScale = d3.scaleLinear() .domain([-max, max]) .range([0, width]); var yScale = d3.scaleLinear() .domain([-max, max]) .range([height, 0]); // creat scale object for sequenceMap var xScaleSequence = d3.scaleLinear() .domain([0, max]) .range([0, sequenceMapWidth]); // Declare these as identical for now, will be changed var new_xScale = xScale; var new_yScale = yScale; var new_xScaleSequence = xScaleSequence; // Define list of lockedColors var lockedColors = []; // Pan and zoom var zoom = d3.zoom() .scaleExtent([.1, 20]) .extent([ [0, 0], [width, height] ]) .on("zoom", zoomed); // Pan and zoom var zoom2 = d3.zoom() .scaleExtent([1.0, 100]) .extent([ [0], [sequenceMapWidth] ]) .on("zoom", zoomed2); // Add rect, container of points map.append("rect") .attr("width", "100%") .attr("height", "100%") .style("fill", "none") .style("pointer-events", "all") .style("stroke-width", 4) .style("stroke", "black") .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')') .classed("plot", true) // Append g-element to map var points_g = map.append("g") .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')') .attr("clip-path", "url(#clip)") .classed("points_g", true); sequenceMap.append("rect") .attr("width", sequenceMapWidth) .attr("height", $("#sequenceMap").height()) .style("fill", "none") .style("pointer-events", "all") .style("stroke-width", 3) .style("stroke", "black") // Append g-element to sequenceMap var rects_g = sequenceMap.append("g") .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')') .attr("clip-path", "url(#clip)") .classed("rects_g", true); graphMap.append("rect") .attr("id", "graphContainer") .attr("width", graphMapWidth) .attr("height", $("#graphMap").height()) .style("fill", "none") .style("pointer-events", "all") .style("stroke-width", 3) .style("stroke", "black") // Sample data var newData = [] for (var i = 0; i < data.length; ++i) { if (i % 10 == 0) { newData.push(data[i]) } } // Draw points, start random and change to tsne for visualisation drawPoints() drawRects() changeAlgorithm() // set design of timeBar var timeBar = d3.select("#timeBar") .attr('x', function (d) { //return xScale(d.tsneX)} return xScaleSequence(0) }) // x .attr('y', "82.5%") .attr('rx', "50") .attr('ry', "50") .attr('width', 0.006 * sequenceMapWidth) .attr('height', "25%") // radius .style('fill', function (d) { return "black" }) // color of point function drawPoints() { // Draws points based on data provided by python // newData = [] // for (var i = 0; i < data.length; ++i) { // if (i % 10 == 0){ // newData.push(data[i]) // } // } //data = newData points = points_g.selectAll("circle").data(data); points = points.enter().append("circle") .classed("dot", true) // class = .dot .classed("activePoint", true) // class = .dot .classed("plot", true) // class = .plot .attr('cx', function (d) { return xScale(Math.random() * 200 - 100) }) // x .attr('cy', function (d) { return yScale(Math.random() * 200 - 100) }) // y .attr('r', 12) // radius .attr('id', function (d) { return "p" + d.id }) // id .attr('start', function (d) { return d.start }) // starttime of point in given audiofile .style('fill', function (d) { return d.color }) // color of point .style('fill-opacity', 0.5) // a bit of transparency .style('stroke-width', floatingCircleRadius) // width of invisible radius, used to trigger hover .style('stroke-opacity', 0) // Hide frame of points // Add functionality for map again, they were overridden during drawing of datapoints map.style("pointer-events", "all") map.call(zoom) map.on("dblclick.zoom", null) // turn off double click zoom } function drawRects() { // Draws rects based on data provided by python // newData = [] // for (var i = 0; i < data.length; ++i) { // if (i % 100 == 0){ // newData.push(data[i]) // } // } //data = newData rects = rects_g.selectAll("rect").data(data); rects = rects.enter().append("rect") .classed("rectBar", true) // class = .plot .classed("activeRectBar", true) // class = .plot .attr('x', function (d) { //return xScale(d.tsneX)} return xScaleSequence((d.start / audioDuration) * 100) }) // x .attr("y", "0") .attr('width', (xScaleSequence(stepSize / audioDuration) * 100 - xScaleSequence(0))) // radius .attr('height', "100%") // radius .attr('id', function (d) { return "rect" + d.id }) // id .attr('start', function (d) { return d.start }) // starttime of point in given audiofile .style('fill', function (d) { return d.color }) // color of point .style('fill-opacity', 0.5) // a bit of transparency .style('cursor', "pointer") .on("click", function (d) { var audio = document.getElementById('audioBar'); audio.currentTime = d.start / 1000; audio.play(); }) .on("mouseenter", function (d) { $("#timeBarDuration").show() $("#timeBarDuration").css({ 'position': 'absolute', 'z-index': '-1000', 'background-color': "black", 'color': "white", 'left': d.start / audioDuration * 100 + '%' }); $("#timeBarDuration").text(msToTime(d.start)); }) .on("mouseleave", function (d) { $("#timeBarDuration").hide() }) // Add functionality for map again, they were overridden during drawing of datapoints sequenceMap.style("pointer-events", "all") sequenceMap.call(zoom2) sequenceMap.on("dblclick.zoom", null) // turn off double click zoom } function zoomed() { // create new scale ojects based on event new_xScale = d3.event.transform.rescaleX(xScale); new_yScale = d3.event.transform.rescaleY(yScale); points.data(data) .attr('cx', function (d) { if (alg == "tsne") { return new_xScale(d.tsneX) } else if (alg == "pca") { return new_xScale(d.pcaX) } else if (alg == "som") { return new_xScale(d.somX) } else if (alg == "ae") { return new_xScale(d.aeX) } else if (alg == "umap") { return new_xScale(d.umapX) } }) .attr('cy', function (d) { if (alg == "tsne") { return new_yScale(d.tsneY) } else if (alg == "pca") { return new_yScale(d.pcaY) } else if (alg == "som") { return new_yScale(d.somY) } else if (alg == "ae") { return new_yScale(d.aeY) } else if (alg == "umap") { return new_yScale(d.umapY) } }); d3.selectAll(".centroid").remove() } function zoomed2() { // create new scale ojects based on event new_xScaleSequence = d3.event.transform.rescaleX(xScaleSequence); rects.data(data) .attr('x', function (d) { return new_xScaleSequence((d.start / audioDuration) * 100) }) .attr('width', function (d) { return (new_xScaleSequence((stepSize / audioDuration) * 100) - new_xScaleSequence(0)) }) timeBar .attr('x', function (d) { return new_xScaleSequence(((1000 * currentClosestTime) / audioDuration) * 100) }) } ////////////////// // Mouse events // ////////////////// map.on("mousemove", function (ev) { var coords = d3.mouse(this); if (shiftDown) { categorize(coords[0], coords[1]); } else if (ctrlDown) { updateAudioList(coords[0], coords[1]); } }) sequenceMap.on("mousemove", function (ev) { var coords = d3.mouse(this); if (shiftDown) { categorizeFromTimeBar(coords[0], coords[1]); } }) $(".plot").mousemove(function (ev) { drawFloatingCircle(ev); }); $(".plot").mouseenter(function () { $('#floatingCircle').css({ 'visibility': '' + 'visible' }); }); $(".plot").mouseleave(function () { $('#floatingCircle').css({ 'visibility': '' + 'hidden' }); }); //////////////// // Key events // //////////////// $(document).keydown(function (ev) { if (ev.shiftKey) { shiftDown = true; $(".startText").hide() $("#coloringText").show() $("#coloringMode").attr("stroke", categoryColor) $("#coloringMode").show() } else if (ev.ctrlKey) { ctrlDown = true; $(".startText").hide() $("#listeningText").show() $("#listeningMode").show() } else if (ev.keyCode == 67 && categoryColor != "black") { cDown = true; floatingCircleRadius = 65; drawFloatingCircle(ev); } else { if (ev.keyCode == 48) { categoryColor = "black"; } else if (ev.keyCode == 49) { categoryColor = "blue"; } else if (ev.keyCode == 50) { categoryColor = "green"; } else if (ev.keyCode == 51) { categoryColor = "yellow"; } else if (ev.keyCode == 52) { categoryColor = "red"; } else if (ev.keyCode == 53) { categoryColor = "purple"; } else if (ev.keyCode == 54) { categoryColor = "orange"; } else if (ev.keyCode == 55) { categoryColor = "teal"; } else if (ev.keyCode == 56) { categoryColor = "brown"; } else if (ev.keyCode == 81) { $("#buttonGroup3 button").removeClass("btn-dark") $("#buttonGroup3 button").addClass("btn-dark") $("#buttonSize50").removeClass("btn-dark") $("#buttonSize50").addClass("btn-success") floatingCircleRadius = 50; prevFloatingCircleRadius = 50; } else if (ev.keyCode == 87) { $("#buttonGroup3 button").removeClass("btn-dark") $("#buttonGroup3 button").addClass("btn-dark") $("#buttonSize100").removeClass("btn-dark") $("#buttonSize100").addClass("btn-success") floatingCircleRadius = 100; prevFloatingCircleRadius = 100; } else if (ev.keyCode == 69) { $("#buttonGroup3 button").removeClass("btn-dark") $("#buttonGroup3 button").addClass("btn-dark") $("#buttonSize150").removeClass("btn-dark") $("#buttonSize150").addClass("btn-success") floatingCircleRadius = 150; prevFloatingCircleRadius = 150; } else if (ev.keyCode == 82) { $("#buttonGroup3 button").removeClass("btn-dark") $("#buttonGroup3 button").addClass("btn-dark") $("#buttonSize300").removeClass("btn-dark") $("#buttonSize300").addClass("btn-success") floatingCircleRadius = 300; prevFloatingCircleRadius = 300; } drawFloatingCircle(ev); } }); $(document).keyup(function (ev) { if (shiftDown) { shiftDown = false; $("#coloringText").hide() $("#coloringMode").hide() } else if (ctrlDown) { stopSounds(); ctrlDown = false; $("#listeningText").hide() $("#listeningMode").hide() currentSegmentStartTimes = []; } else if (cDown) { cDown = false; floatingCircleRadius = prevFloatingCircleRadius; drawFloatingCircle(ev); } }); //////////// // Clicks // //////////// map.on("click", function () { var coords = d3.mouse(this); if (cDown) { addCentroid(coords[0], coords[1]); } else { categorize(coords[0], coords[1]); } }) // Change size of floating circle $(".buttonGroup1 button").on("click", function () { value = this.value; categoryColor = value; }); $(".lockButton button").on("click", function () { if (this.value == "unlocked") { $("i", this).removeClass("fa-unlock"); $("i", this).addClass('fa-lock') this.value = "locked" var col = $(this).attr("color") allPoints = d3.selectAll(".dot") .filter(function (d) { return d3.select(this).style("fill") == col }) allPoints.classed("activePoint", false); allPoints.style("fill-opacity", 0.1); rectBars = d3.selectAll(".rectBar") .filter(function (d) { return d3.select(this).style("fill") == col }) rectBars.classed("activeRectBar", false); } else if (this.value == "locked") { $("i", this).removeClass("fa-lock"); $("i", this).addClass('fa-unlock') this.value = "unlocked" var col = $(this).attr("color") allPoints = d3.selectAll(".dot") .filter(function (d) { return d3.select(this).style("fill") == col }) allPoints.classed("activePoint", true); allPoints.style("fill-opacity", 0.5); rectsBars = d3.selectAll(".rectBar") .filter(function (d) { return d3.select(this).style("fill") == col }) rectBars.classed("activeRectBar", true); } }); $(".colorAudioButton button").on("click", function () { if (this.value == "silent") { stopSounds() this.value = "playing" $(".categoryPlay").removeClass("fa-stop"); $(".categoryPlay").addClass("fa-play"); $("i", this).removeClass("fa-play"); $("i", this).addClass('fa-stop') currentSegmentStartTimes = [] var col = $(this).attr("color") console.log(col) coloredPoints = d3.selectAll(".dot") .filter(function (d) { return d3.select(this).style("fill") == col }) coloredPoints.each(function (d, i) { currentSegmentStartTimes.push(d3.select(this).attr("start")); }) } else { stopSounds() this.value = "silent" $("i", this).removeClass("fa-stop"); $("i", this).addClass('fa-play') } }); $("#snippetPropertiesGroup button").on("click", function () { if(this.value == "minusOpacity" & parseFloat($("#snippetOpacity").val()) > 0.1){ $("#snippetOpacity").val((parseFloat($("#snippetOpacity").val()) - 0.1).toFixed(1)) d3.selectAll(".activePoint").style("fill-opacity", $("#snippetOpacity").val()) } else if(this.value == "plusOpacity" & $("#snippetOpacity").val() < 1 ){ $("#snippetOpacity").val((parseFloat($("#snippetOpacity").val()) + 0.1).toFixed(1)) d3.selectAll(".activePoint").style("fill-opacity", $("#snippetOpacity").val()) } else if(this.value == "minusRadius" & $("#snippetRadius").val() > 1){ $("#snippetRadius").val(parseFloat($("#snippetRadius").val()) - 1) d3.selectAll(".dot").style("r", $("#snippetRadius").val()) } else if(this.value == "plusRadius" & $("#snippetRadius").val() < 25) { $("#snippetRadius").val(parseFloat($("#snippetRadius").val()) + 1) d3.selectAll(".dot").style("r", $("#snippetRadius").val()) } }) // Change algorithm, and therefor coords $(".buttonGroup2 button").on("click", function () { $(".buttonGroup2 button").removeClass("btn-dark") $(".buttonGroup2 button").addClass("btn-dark") $(this).removeClass("btn-dark") $(this).addClass("btn-success") alg = this.value; changeAlgorithm(); }); $("#buttonGroup3 button").on("click", function () { $("#buttonGroup3 button").removeClass("btn-dark") $("#buttonGroup3 button").addClass("btn-dark") $(this).removeClass("btn-dark") $(this).addClass("btn-success") floatingCircleRadius = this.value; }); $("#buttonGroup4 button").on("click", function () { arrayToCSV(); }); $("#buttonGroup5 button").on("click", function () { retrain(); }); $("#buttonGroup6 button").on("click", function () { $("#buttonGroup6 button").removeClass("btn-dark") $("#buttonGroup6 button").addClass("btn-dark") $(this).removeClass("btn-dark") $(this).addClass("btn-success") stopSounds() if (this.value == "stop") { var audio = document.getElementById('audioBar'); audio.pause(); audio.currentTime = 0; } else { $("#audioBar").trigger(this.value); } }); $("#buttonGroup7 button").on("click", function () { console.log(categoryColor) d3.selectAll(".dot") .style('fill', categoryColor) d3.selectAll(".rectBar") .style('fill', categoryColor) }); $("#buttonGroup8 button").on("click", function () { $("#buttonGroup8 button").removeClass("btn-dark") $("#buttonGroup8 button").addClass("btn-dark") $(this).removeClass("btn-dark") $(this).addClass("btn-success") sampling = parseInt(this.value); d3.selectAll(".dot") .classed("activePoint", true) .style("visibility", "visible") .each(function (d, i) { if (i % sampling != 0) { d3.select(this).style("visibility", "hidden") d3.select(this).classed("activePoint", false); } }) d3.selectAll(".rectBar") .classed("activeRectBar", true) .style("visibility", "visible") .each(function (d, i) { if (i % sampling != 0) { d3.select(this).style("visibility", "hidden") d3.select(this).classed("activeRectBar", false); } }) }); $("#buttonGroup9 button").on("click", function () { colorWithKmeans(this.value); }); $("#graphMap").on("click", function () { updateGraph(); }) ///////////////////// // Misc. functions // ///////////////////// function categorize(x, y) { // Changes color of points and bars labeled = true; if (alg == "tsne") { circles = d3.selectAll(".activePoint") .filter(function (d) { return Math.abs(new_xScale(d.tsneX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.tsneY) - y) < floatingCircleRadius / 2 }) circles.style('fill', categoryColor) rectsBars = d3.selectAll(".activeRectBar") .filter(function (d) { return Math.abs(new_xScale(d.tsneX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.tsneY) - y) < floatingCircleRadius / 2 }) rectsBars.style('fill', categoryColor) } else if (alg == "pca") { circles = d3.selectAll(".activePoint") .filter(function (d) { return Math.abs(new_xScale(d.pcaX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.pcaY) - y) < floatingCircleRadius / 2 }) circles.style('fill', categoryColor) rectsBars = d3.selectAll(".activeRectBar") .filter(function (d) { return Math.abs(new_xScale(d.pcaX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.pcaY) - y) < floatingCircleRadius / 2 }) rectsBars.style('fill', categoryColor) } else if (alg == "som") { circles = d3.selectAll(".activePoint") .filter(function (d) { return Math.abs(new_xScale(d.somX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.somY) - y) < floatingCircleRadius / 2 }) circles.style('fill', categoryColor) rectsBars = d3.selectAll(".activeRectBar") .filter(function (d) { return Math.abs(new_xScale(d.somX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.somY) - y) < floatingCircleRadius / 2 }) rectsBars.style('fill', categoryColor) } else if (alg == "ae") { circles = d3.selectAll(".activePoint") .filter(function (d) { return Math.abs(new_xScale(d.aeX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.aeY) - y) < floatingCircleRadius / 2 }) circles.style('fill', categoryColor) rectsBars = d3.selectAll(".activeRectBar") .filter(function (d) { return Math.abs(new_xScale(d.aeX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.aeY) - y) < floatingCircleRadius / 2 }) rectsBars.style('fill', categoryColor) } else if (alg == "umap") { circles = d3.selectAll(".activePoint") .filter(function (d) { return Math.abs(new_xScale(d.umapX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.umapY) - y) < floatingCircleRadius / 2 }) circles.style('fill', categoryColor) rectsBars = d3.selectAll(".activeRectBar") .filter(function (d) { return Math.abs(new_xScale(d.umapX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.umapY) - y) < floatingCircleRadius / 2 }) rectsBars.style('fill', categoryColor) } } function categorizeFromTimeBar(x, y) { // Changes color of points and bars labeled = true; // rects = d3.select(".rect") console.log(x, y) // console.log(d3.select(rects).attr("start")) rectBars = d3.selectAll(".activeRectBar") .filter(function (d) { return Math.abs(new_xScaleSequence((d.start / audioDuration) * 100) - x) < floatingCircleRadius / 2 }) rectBars.style('fill', categoryColor) circles = d3.selectAll(".activePoint") .filter(function (d) { return Math.abs(new_xScaleSequence((d.start / audioDuration) * 100) - x) < floatingCircleRadius / 2 }) circles.style('fill', categoryColor) } function updateAudioList(x, y) { currentSegmentStartTimes = [] if (alg == "tsne") { circles = d3.selectAll(".dot") .filter(function (d) { return Math.abs(new_xScale(d.tsneX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.tsneY) - y) < floatingCircleRadius / 2 }) circles.each(function (d, i) { currentSegmentStartTimes.push(d3.select(this).attr("start")); }) } else if (alg == "pca") { circles = d3.selectAll(".dot") .filter(function (d) { return Math.abs(new_xScale(d.pcaX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.pcaY) - y) < floatingCircleRadius / 2 }) circles.each(function (d, i) { currentSegmentStartTimes.push(d3.select(this).attr("start")); }) } else if (alg == "som") { circles = d3.selectAll(".dot") .filter(function (d) { return Math.abs(new_xScale(d.somX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.somY) - y) < floatingCircleRadius / 2 }) circles.each(function (d, i) { currentSegmentStartTimes.push(d3.select(this).attr("start")); }) } else if (alg == "ae") { circles = d3.selectAll(".dot") .filter(function (d) { return Math.abs(new_xScale(d.aeX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.aeY) - y) < floatingCircleRadius / 2 }) circles.each(function (d, i) { currentSegmentStartTimes.push(d3.select(this).attr("start")); }) } else if (alg == "umap") { circles = d3.selectAll(".dot") .filter(function (d) { return Math.abs(new_xScale(d.umapX) - x) < floatingCircleRadius / 2 & Math.abs(new_yScale(d.umapY) - y) < floatingCircleRadius / 2 }) circles.each(function (d, i) { currentSegmentStartTimes.push(d3.select(this).attr("start")); }) } } function addCentroid(x, y) { centroids[categoryColor] = [x, y] d3.select("#" + categoryColor + "centroid").remove() points_g.append("circle") .classed("centroid", true) .attr("id", categoryColor + "centroid") .attr('x', x) // x .attr('y', y) // y .attr('cx', function (d) { return x }) // x .attr('cy', function (d) { return y }) // y .attr('r', 25) // radius .style('fill', function (d) { return categoryColor }) // color of point .style('stroke', "white") .style('stroke-width', "25") .style('stroke-opacity', "0.8") .style('fill-opacity', 1.0) .style('z-index', 1000) updateGraph(categoryColor, x, y) } function drawFloatingCircle(ev) { // Draws floating circle $('#floatingCircle').css({ 'left': '' + ev.pageX - (floatingCircleRadius / 2) + 'px', 'top': '' + ev.pageY - (floatingCircleRadius / 2) + 'px', 'width': '' + floatingCircleRadius + 'px', 'height': '' + floatingCircleRadius + 'px', 'background-color': categoryColor, 'background-image': 'radial-gradient(circle, ' + categoryColor + ' ' + (gradient - 30) + '%, white 100%)' }); } function changeAlgorithm() { var circle = map.selectAll(".dot"); circle.transition() .duration(3000) .attr('cx', function (d) { if (alg == "tsne") { return new_xScale(d.tsneX) } else if (alg == "pca") { return new_xScale(d.pcaX) } else if (alg == "som") { return new_xScale(d.somX) } else if (alg == "ae") { return new_xScale(d.aeX) } else if (alg == "umap") { return new_xScale(d.umapX) } }) .attr('cy', function (d) { if (alg == "tsne") { return new_yScale(d.tsneY) } else if (alg == "pca") { return new_yScale(d.pcaY) } else if (alg == "som") { return new_yScale(d.somY) } else if (alg == "ae") { return new_yScale(d.aeY) } else if (alg == "umap") { return new_yScale(d.umapY) } }) } function colorWithKmeans(clusterValue) { console.log("Kmean coloring") points.data(data) .style('fill', function (d) { if (clusterValue == "kcolor2") { return d.kcolor2 } else if (clusterValue == "kcolor3") { return d.kcolor3 } else if (clusterValue == "kcolor4") { return d.kcolor4 } else if (clusterValue == "kcolor5") { return d.kcolor5 } else if (clusterValue == "kcolor6") { return d.kcolor6 } else if (clusterValue == "kcolor7") { return d.kcolor7 } else if (clusterValue == "kcolor8") { return d.kcolor8 } else if (clusterValue == "kcolor20") { return d.kcolor20 } else if (clusterValue == "dbcolor") { return d.dbcolor } }) rects.data(data) .style('fill', function (d) { if (clusterValue == "kcolor2") { return d.kcolor2 } else if (clusterValue == "kcolor3") { return d.kcolor3 } else if (clusterValue == "kcolor4") { return d.kcolor4 } else if (clusterValue == "kcolor5") { return d.kcolor5 } else if (clusterValue == "kcolor6") { return d.kcolor6 } else if (clusterValue == "kcolor7") { return d.kcolor7 } else if (clusterValue == "kcolor8") { return d.kcolor8 } else if (clusterValue == "kcolor20") { return d.kcolor20 } else if (clusterValue == "dbcolor") { return d.dbcolor } }) } function downloadString(text, fileType, fileName) { var blob = new Blob([text], { type: fileType }); var a = document.createElement('a'); a.download = fileName; a.href = URL.createObjectURL(blob); a.dataset.downloadurl = [fileType, a.download, a.href].join(':'); a.style.display = "none"; document.body.appendChild(a); a.click(); document.body.removeChild(a); setTimeout(function () { URL.revokeObjectURL(a.href); }, 1500); } function arrayToCSV() { if (!labeled) { alert("Can't export, there are no labels") } else { twoDiArray = [ ["id", "startTime(ms)", "label", "color", "tsneX", "tsneY", "umapX", "umapY", "somX", "somY"] ] for (var i = 0; i < data.length; ++i) { currentId = "#p" + data[i]["id"] currentSt = data[i]["start"] currentPoint = d3.select(currentId) if (currentPoint.empty()) { currentColor = "black" currentLabel = "none" } else { currentColor = currentPoint.style("fill") if (currentColor == "black") { currentLabel = "none" } else { currentLabel = $("#" + currentColor + "Label").val() } } currentTsneX = data[i]["tsneX"] currentTsneY = data[i]["tsneY"] currentUmapX = data[i]["umapX"] currentUmapY = data[i]["umapY"] currentSomX = data[i]["somX"] currentSomY = data[i]["somY"] twoDiArray.push([currentId, currentSt, currentLabel, currentColor, currentTsneX, currentTsneY, currentUmapX, currentUmapY, currentSomX, currentSomY]) } var csvRows = []; for (var i = 0; i < twoDiArray.length; ++i) { //console.log(twoDiArray[i]) csvRows.push(twoDiArray[i].join(',')); } var csvString = csvRows.join('\r\n'); downloadString(csvString, "text", "labels.txt") } } function updateGraph(color, centroidX, centroidY) { // Loop through points and calculate distances from centroid X = []; Y = []; $(".dot").each(function () { p = d3.select("#" + $(this).attr('id')) X.push((p.attr('start') / audioDuration) * graphMapWidth) dist = Math.sqrt( (centroidX - p.attr('cx')) * (centroidX - p.attr('cx')) + (centroidY - p.attr('cy')) * (centroidY - p.attr('cy'))); Y.push(dist) }) // Transform distribution to 0-1 YMax = Math.max.apply(Math, Y) for (var i = 0; i < Y.length; i++) { Y[i] /= YMax; } // Convert to proper string format pointsAsString = "" Y = medianFilter(Y, $("#medianfilterValue").val()) Y[0] = 100 Y[Y.length - 1] = 100 for (var i2 = 0; i2 < X.length; i2++) { pointsAsString += X[i2] pointsAsString += "," + Y[i2] * graphMapHeight + " " } // Remove potential existing line of same color d3.select("#polyline" + color).remove() // Create line graphMap.append("polyline") .attr("id", "polyline" + color) .attr("stroke", color) .attr("stroke-width", 3) .attr("fill", color) .attr("fill-opacity", 0.5) .attr("points", pointsAsString) } function medianFilter(array, windowSize) { newArray = [] for (var i = 0; i < array.length; i++) { currentValues = [array[i]] var i2 = 1 while (i2 <= windowSize) { currentValues.push(array[i + i2]) currentValues.push(array[i - i2]) i2++; } newArray.push(median(currentValues)) } return newArray } function median(values) { values.sort(function (a, b) { return a - b; }); if (values.length === 0) return 0 var half = Math.floor(values.length / 2); if (values.length % 2) { return values[half]; } else { return (values[half - 1] + values[half]) / 2.0; } } function retrain() { if (!labeled) { alert("Can't retrain, there are no labels") } else { $("#loadText").show(); d3.selectAll("circle") .style("display", "none"); validPoints = [ ["id", "startTime(ms)", "label"] ] $(".dot").each(function (i) { p = d3.select("#" + $(this).attr('id')) //label = $("#"+p.style("fill")+"Label").val() if (p.style("fill") != 'black') { validPoints.push([p.attr('start') / stepSize, p.attr('start'), p.style("fill")]) } }) myData = { "validPoints": JSON.stringify(validPoints), "sessionKey": sessionKey, "audioPath": audioPath, "segmentSize": segmentSize, "stepSize": stepSize } $.ajax({ type: "POST", url: "/retrain", data: myData, dataType: "json", success: function (data, textStatus) { if (data.redirect) { // data.redirect contains the string URL to redirect to window.location.href = data.redirect; } else { console.log("Check ajax request, went to else-statement there"); } } }); } } /////////////// // Web audio // /////////////// var audioCtx = new AudioContext(); var audioBuffers; var audioLoaded = false; var currentSegmentStartTimes = []; var activeSounds = []; console.log(audioPath) console.log(audioPaths) loadAudio(audioPaths); var launchInterval = segmentSize / 5; $("#launchSlider").val(launchInterval); $("#launchSliderText").text("Interval: " + launchInterval); var fade = segmentSize / 4; $("#fadeSlider").val(fade); $("#fadeSliderText").text("Fade in/out: " + fade); var gradient = 50; $("#gradientSlider").val(gradient); $("#gradientSliderText").text("Gradient: " + gradient); $("#launchSlider").on("mousemove", function () { launchInterval = this.value; $("#launchSliderText").text("Interval: " + launchInterval); }) $("#fadeSlider").on("mousemove", function () { fade = this.value; $("#fadeSliderText").text("Fade in/out: " + fade); }) $("#gradientSlider").on("mousemove", function () { gradient = this.value; $("#gradientSliderText").text("Gradient: " + gradient); }) function loadAudio(fileNames) { audioList = fileNames; bufferLoader = new BufferLoader( audioCtx, audioList, finishedLoading ); bufferLoader.load(); function finishedLoading(bufferList) { audioBuffers = bufferList; var audioLoaded = true; $("#loading-sm").hide() $("#loading-label").hide() console.log("Audio loaded."); } } // This function is called every 1000ms and samples and plays audio segments from // currentSegmentStartTimes according to launch-intervals and fade function playSegments() { if (currentSegmentStartTimes.length > 0) { var i; var startTime console.log(launchInterval); for (i = 0; i < 100; i++) { startTime = audioCtx.currentTime + (i * launchInterval) / 1000; var audioInterval = currentSegmentStartTimes[Math.floor(Math.random() * currentSegmentStartTimes.length)]; var source = audioCtx.createBufferSource(); if (audioBuffers.length == 1) { bufferIndex = 0 } else { var bufferIndex = Math.floor(audioInterval / 3600000) audioInterval = audioInterval - (3600000 * bufferIndex) } source.buffer = audioBuffers[bufferIndex]; var volume = audioCtx.createGain(); source.connect(volume); volume.connect(audioCtx.destination); volume.gain.value = 0.1; volume.gain.exponentialRampToValueAtTime(1.0, startTime + fade / 1000); volume.gain.setValueAtTime(1.0, startTime + (segmentSize - fade) / 1000); volume.gain.exponentialRampToValueAtTime(0.1, startTime + segmentSize / 1000); if (i * launchInterval >= 1000) { break; } source.start(startTime, audioInterval / 1000, segmentSize / 1000); activeSounds.push(source) console.log(audioInterval + " starting in: " + startTime); } } } function stopSounds() { console.log("killing sound") for (var i = 0; i < activeSounds.length; ++i) { activeSounds[i].stop() } activeSounds = [] currentSegmentStartTimes = [] } function updateTimeBar() { var audio = document.getElementById('audioBar'); timeBar.attr("x", new_xScaleSequence(((1000 * (audio.currentTime.toFixed(2)) - 1000) / audioDuration) * 100)) } // Sample audio from points every second setInterval(playSegments, 1000); setInterval(updateTimeBar, stepSize); // Fix for not collapsing snippetProperties dropdown when clicking on +/- $('.nonCollapsableDropdown').click(function(e) { e.stopPropagation(); }); }) // Outside document.ready as it is used in html code function msToTime(ms) { // Converts milliseconds to duration, min:sec:ms var hours = Math.floor((ms / (60 * 60 * 1000)) % 60).toString(); var minutes = Math.floor((ms / (60 * 1000)) % 60).toString(); var seconds = Math.floor((ms / 1000) % 60).toString(); var milliseconds = (ms % 1000).toString(); if (hours.length == 1) { hours = "0" + hours; } if (minutes.length == 1) { minutes = "0" + minutes; } if (seconds.length == 1) { seconds = "0" + seconds; } if (milliseconds.length == 1) { milliseconds = "00" + milliseconds; } else if (milliseconds.length == 2) { milliseconds = "0" + milliseconds; } return hours + ":" + minutes + ":" + seconds + "." + milliseconds; }
// validate message headers and some fields const tlds = require('haraka-tld'); exports.register = function () { const plugin = this; plugin.load_headers_ini(); try { plugin.addrparser = require('address-rfc2822'); } catch (e) { plugin.logerror("unable to load address-rfc2822, try\n\n\t'npm install -g address-rfc2822'\n\n"); } this.register_hook('data_post', 'duplicate_singular'); this.register_hook('data_post', 'missing_required'); this.register_hook('data_post', 'invalid_date'); this.register_hook('data_post', 'invalid_return_path'); this.register_hook('data_post', 'user_agent'); this.register_hook('data_post', 'direct_to_mx'); if (plugin.addrparser) { this.register_hook('data_post', 'from_match'); this.register_hook('data_post', 'delivered_to'); } this.register_hook('data_post', 'mailing_list'); } exports.load_headers_ini = function () { const plugin = this; plugin.cfg = plugin.config.get('data.headers.ini', { booleans: [ '+check.duplicate_singular', '+check.missing_required', '+check.invalid_return_path', '+check.invalid_date', '+check.user_agent', '+check.direct_to_mx', '+check.from_match', '+check.delivered_to', '+check.mailing_list', '-reject.duplicate_singular', '-reject.missing_required', '-reject.invalid_return_path', '-reject.invalid_date', '+reject.delivered_to', ], }, function () { plugin.load_headers_ini(); }); } exports.duplicate_singular = function (next, connection) { const plugin = this; if (!plugin.cfg.check.duplicate_singular) { return next(); } // RFC 5322 Section 3.6, Headers that MUST be unique if present const singular = plugin.cfg.main.singular !== undefined ? plugin.cfg.main.singular.split(',') : [ 'Date', 'From', 'Sender', 'Reply-To', 'To', 'Cc', 'Bcc', 'Message-Id', 'In-Reply-To', 'References', 'Subject' ]; const failures = []; for (let i=0; i < singular.length; i++ ) { if (connection.transaction.header.get_all(singular[i]).length <= 1) { continue; } const name = singular[i]; connection.transaction.results.add(plugin, {fail: `duplicate:${name}`}); failures.push(name); } if (failures.length) { if (plugin.cfg.reject.duplicate_singular) { return next(DENY, `Only one ${failures[0]} header allowed. See RFC 5322, Section 3.6`); } return next(); } connection.transaction.results.add(plugin, {pass: 'duplicate'}); return next(); } exports.missing_required = function (next, connection) { const plugin = this; if (!plugin.cfg.check.missing_required) { return next(); } // Enforce RFC 5322 Section 3.6, Headers that MUST be present const required = plugin.cfg.main.required !== undefined ? plugin.cfg.main.required.split(',') : ['Date', 'From']; const failures = []; for (let i=0; i < required.length; i++) { const h = required[i]; if (connection.transaction.header.get_all(h).length === 0) { connection.transaction.results.add(plugin, {fail: `missing:${h}`}); failures.push(h); } } if (failures.length) { if (plugin.cfg.reject.missing_required) { return next(DENY, `Required header '${failures[0]}' missing`); } return next(); } connection.transaction.results.add(plugin, {pass: 'missing'}); return next(); } exports.invalid_return_path = function (next, connection) { const plugin = this; if (!plugin.cfg.check.invalid_return_path) { return next(); } // Tests for Return-Path headers that shouldn't be present // RFC 5321#section-4.4 Trace Information // A message-originating SMTP system SHOULD NOT send a message that // already contains a Return-path header field. // Return-Path, aka Reverse-PATH, Envelope FROM, RFC5321.MailFrom const rp = connection.transaction.header.get('Return-Path'); if (rp) { if (connection.relaying) { // On messages we originate connection.transaction.results.add(plugin, {fail: 'Return-Path', emit: true}); if (plugin.cfg.reject.invalid_return_path) { return next(DENY, "outgoing mail must not have a Return-Path header (RFC 5321)"); } return next(); } // generally, messages from the internet shouldn't have a // Return-Path, except for when they can. Read RFC 5321, it's // complicated. In most cases, The Right Thing to do here is to // strip the Return-Path header. connection.transaction.remove_header('Return-Path'); // unless it was added by Haraka. Which at present, doesn't. } connection.transaction.results.add(plugin, {pass: 'Return-Path'}); return next(); } exports.invalid_date = function (next, connection) { const plugin = this; if (!plugin.cfg.check.invalid_date) { return next(); } // Assure Date header value is [somewhat] sane let msg_date = connection.transaction.header.get_all('Date'); if (!msg_date || msg_date.length === 0) { return next(); } connection.logdebug(plugin, `message date: ${msg_date}`); msg_date = Date.parse(msg_date); const date_future_days = plugin.cfg.main.date_future_days !== undefined ? plugin.cfg.main.date_future_days : 2; if (date_future_days > 0) { const too_future = new Date(); too_future.setHours(too_future.getHours() + 24 * date_future_days); // connection.logdebug(plugin, "too future: " + too_future); if (msg_date > too_future) { connection.transaction.results.add(plugin, {fail: 'invalid_date(future)'}); if (plugin.cfg.reject.invalid_date) { return next(DENY, "The Date header is too far in the future"); } return next(); } } const date_past_days = plugin.cfg.main.date_past_days !== undefined ? plugin.cfg.main.date_past_days : 15; if (date_past_days > 0) { const too_old = new Date(); too_old.setHours(too_old.getHours() - 24 * date_past_days); // connection.logdebug(plugin, "too old: " + too_old); if (msg_date < too_old) { connection.loginfo(plugin, `date is older than: ${too_old}`); connection.transaction.results.add(plugin, {fail: 'invalid_date(past)'}); if (plugin.cfg.reject.invalid_date) { return next(DENY, "The Date header is too old"); } return next(); } } connection.transaction.results.add(plugin, {pass: 'invalid_date'}); return next(); } exports.user_agent = function (next, connection) { const plugin = this; if (!plugin.cfg.check.user_agent) { return next(); } if (!connection.transaction) { return next(); } let found_ua = 0; // User-Agent: Thunderbird, Squirrelmail, Roundcube, Mutt, MacOutlook, // Kmail, IMP // X-Mailer: Apple Mail, swaks, Outlook (12-14), Yahoo Webmail, // Cold Fusion, Zimbra, Evolution // X-Yahoo-Newman-Property: Yahoo // X-MS-Has-Attach: Outlook 15 // Check for User-Agent const headers = [ 'user-agent','x-mailer','x-mua','x-yahoo-newman-property', 'x-ms-has-attach' ]; for (let i=0; i < headers.length; i++) { const name = headers[i]; const header = connection.transaction.header.get(name); if (!header) { continue; } // header not present found_ua++; connection.transaction.results.add(plugin, {pass: `UA(${header.substring(0,12)})`}); } if (found_ua) { return next(); } connection.transaction.results.add(plugin, {fail: 'UA'}); return next(); } exports.direct_to_mx = function (next, connection) { const plugin = this; if (!plugin.cfg.check.direct_to_mx) { return next(); } if (!connection.transaction) { return next(); } // Legit messages normally have at least 2 hops (Received headers) // MUA -> sending MTA -> Receiving MTA (Haraka?) if (connection.notes.auth_user) { // User authenticated, so we're likely the first MTA connection.transaction.results.add(plugin, {skip: 'direct-to-mx(auth)'}); return next(); } // what about connection.relaying? const received = connection.transaction.header.get_all('received'); if (!received) { connection.transaction.results.add(plugin, {fail: 'direct-to-mx(none)'}); return next(); } const c = received.length; if (c < 2) { connection.transaction.results.add(plugin, {fail: `direct-to-mx(too few Received(${c}))`}); return next(); } connection.transaction.results.add(plugin, {pass: `direct-to-mx(${c})`}); return next(); } exports.from_match = function (next, connection) { const plugin = this; if (!plugin.cfg.check.from_match) { return next(); } // see if the header From matches the envelope FROM. There are valid // cases to not match (~10% of ham) but a non-match is much more // likely to be spam than ham. This test is useful for heuristics. if (!connection.transaction) { return next(); } const env_addr = connection.transaction.mail_from; if (!env_addr) { connection.transaction.results.add(plugin, {fail: 'from_match(null)'}); return next(); } const hdr_from = connection.transaction.header.get('From'); if (!hdr_from) { connection.transaction.results.add(plugin, {fail: 'from_match(missing)'}); return next(); } let hdr_addr; try { hdr_addr = (plugin.addrparser.parse(hdr_from))[0]; if (!hdr_addr) { plugin.loginfo(`address at fault is: ${hdr_from}`); connection.transaction.results.add(plugin, {fail: 'from_match(unparsable)'}); return next(); } } catch (e) { plugin.logwarn(`address-rfc2822 plugin returning: ${e.message}`); } if (env_addr.address().toLowerCase() === hdr_addr.address.toLowerCase()) { connection.transaction.results.add(plugin, {pass: 'from_match'}); return next(); } const extra = ['domain']; const env_dom = tlds.get_organizational_domain(env_addr.host); const msg_dom = tlds.get_organizational_domain(hdr_addr.host()); if (env_dom && msg_dom && env_dom.toLowerCase() === msg_dom.toLowerCase()) { const fcrdns = connection.results.get('fcrdns'); if (fcrdns && fcrdns.fcrdns && new RegExp(msg_dom + '\\b', 'i').test(fcrdns.fcrdns)) { extra.push('fcrdns'); } const helo = connection.results.get('helo.checks'); if (helo && helo.helo_host && /msg_dom$/.test(helo.helo_host)) { extra.push('helo'); } connection.transaction.results.add(plugin, {pass: `from_match(${extra.join(',')})`}); return next(); } connection.transaction.results.add(plugin, {emit: true, fail: `from_match(${env_dom} / ${msg_dom})` }); return next(); } exports.delivered_to = function (next, connection) { const plugin = this; if (!plugin.cfg.check.delivered_to) { return next(); } const txn = connection.transaction; if (!txn) return next(); const del_to = txn.header.get('Delivered-To'); if (!del_to) return next(); const rcpts = connection.transaction.rcpt_to; for (let i=0; i<rcpts.length; i++) { const rcpt = rcpts[i].address(); if (rcpt !== del_to) continue; connection.transaction.results.add(plugin, {emit: true, fail: 'delivered_to'}); if (!plugin.cfg.reject.delivered_to) continue; return next(DENY, "Invalid Delivered-To header content"); } return next(); } exports.mailing_list = function (next, connection) { const plugin = this; if (!plugin.cfg.check.mailing_list) { return next(); } if (!connection.transaction) { return next(); } const mlms = { 'Mailing-List' : [ { mlm: 'ezmlm', match: 'ezmlm' }, { mlm: 'yahoogroups', match: 'yahoogroups' }, { mlm: 'googlegroups', match: 'googlegroups' }, ], 'Sender' : [ { mlm: 'majordomo', start: 'owner-' }, ], 'X-Mailman-Version' : [ { mlm: 'mailman' } ], 'X-Majordomo-Version': [ { mlm: 'majordomo' } ], 'X-Google-Loop' : [ { mlm: 'googlegroups' } ], }; let found_mlm = 0; const txr = connection.transaction.results; Object.keys(mlms).forEach(function (name) { const header = connection.transaction.header.get(name); if (!header) { return; } // header not present for (let i=0; i < mlms[name].length; i++) { const j = mlms[name][i]; if (j.start) { if (header.substring(0,j.start.length) === j.start) { txr.add(plugin, {pass: `MLM(${j.mlm})`}); found_mlm++; continue; } connection.logdebug(plugin, `mlm start miss: ${name}: ${header}`); } if (j.match) { if (header.match(new RegExp(j.match,'i'))) { txr.add(plugin, {pass: `MLM(${j.mlm})`}); found_mlm++; continue; } connection.logdebug(plugin, `mlm match miss: ${name}: ${header}`); } if (name === 'X-Mailman-Version') { txr.add(plugin, {pass: `MLM(${j.mlm})`}); found_mlm++; continue; } if (name === 'X-Majordomo-Version') { txr.add(plugin, {pass: `MLM(${j.mlm})`}); found_mlm++; continue; } if (name === 'X-Google-Loop') { txr.add(plugin, {pass: `MLM(${j.mlm})`}); found_mlm++; continue; } } }); if (found_mlm) { return next(); } connection.transaction.results.add(plugin, {msg: 'not MLM'}); return next(); }
import os import pygame from pygame.locals import * from pygame.compat import geterror from globals import DELTAX, DELTAY main_dir = os.path.split(os.path.abspath(__file__))[0] data_dir = os.path.join(main_dir, 'data') def load_image(name, colorkey=None): fullname = os.path.join(data_dir, name) try: image = pygame.image.load(fullname) except pygame.error: print('Cannot load image:', fullname) raise SystemExit(str(geterror())) image = image.convert() if colorkey is not None: if colorkey is -1: colorkey = image.get_at((0, 0)) image.set_colorkey(colorkey, RLEACCEL) return image, image.get_rect() class Imageloader(): def __init__(self): tilenames = ['blocks/ore'+str(i)+'.png' for i in range(1, 15)] + \ ['blocks/rock'+str(i)+'.png' for i in range(1, 19)] exanames = ['exa'+str(i)+'.png' for i in range(1, 10)] firenames = ['fire'+str(i)+'.png' for i in range(1, 5)] heronames = ['hero'+str(i)+'.png' for i in range(1, 8)] lumina = ['lumina.png'] self.blocks_loaded = [load_image(i) for i in tilenames] self.anim_loaded = [load_image(i, -1) for i in exanames] self.fire_loaded = [load_image(i, -1) for i in firenames] self.hero_loaded = [load_image(i, -1) for i in heronames] self.lumina_loaded = [load_image('lumina.png', -1)]
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class ObjectDataTypesOperations: """ObjectDataTypesOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.automation.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config def list_fields_by_module_and_type( self, resource_group_name: str, automation_account_name: str, module_name: str, type_name: str, **kwargs ) -> AsyncIterable["_models.TypeFieldListResult"]: """Retrieve a list of fields of a given type identified by module name. :param resource_group_name: Name of an Azure Resource group. :type resource_group_name: str :param automation_account_name: The name of the automation account. :type automation_account_name: str :param module_name: The name of module. :type module_name: str :param type_name: The name of type. :type type_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TypeFieldListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.automation.models.TypeFieldListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.TypeFieldListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2015-10-31" accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list_fields_by_module_and_type.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._]+$'), 'automationAccountName': self._serialize.url("automation_account_name", automation_account_name, 'str'), 'moduleName': self._serialize.url("module_name", module_name, 'str'), 'typeName': self._serialize.url("type_name", type_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): deserialized = self._deserialize('TypeFieldListResult', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: error = self._deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_fields_by_module_and_type.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/objectDataTypes/{typeName}/fields'} # type: ignore def list_fields_by_type( self, resource_group_name: str, automation_account_name: str, type_name: str, **kwargs ) -> AsyncIterable["_models.TypeFieldListResult"]: """Retrieve a list of fields of a given type across all accessible modules. :param resource_group_name: Name of an Azure Resource group. :type resource_group_name: str :param automation_account_name: The name of the automation account. :type automation_account_name: str :param type_name: The name of type. :type type_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TypeFieldListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.automation.models.TypeFieldListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.TypeFieldListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2015-10-31" accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list_fields_by_type.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._]+$'), 'automationAccountName': self._serialize.url("automation_account_name", automation_account_name, 'str'), 'typeName': self._serialize.url("type_name", type_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): deserialized = self._deserialize('TypeFieldListResult', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: error = self._deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_fields_by_type.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/objectDataTypes/{typeName}/fields'} # type: ignore
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); const class_validator_1 = require("class-validator"); const class_transformer_1 = require("class-transformer"); const index_1 = require("../index"); const shared_utils_1 = require("../utils/shared.utils"); const component_decorator_1 = require("./../decorators/core/component.decorator"); let ValidationPipe = class ValidationPipe { transform(value, metadata) { return __awaiter(this, void 0, void 0, function* () { const { metatype } = metadata; if (!metatype || !this.toValidate(metatype)) { return value; } const entity = class_transformer_1.plainToClass(metatype, value); const errors = yield class_validator_1.validate(entity); if (errors.length > 0) { throw new index_1.BadRequestException(errors); } return value; }); } toValidate(metatype) { const types = [String, Boolean, Number, Array, Object]; return !types.find(type => metatype === type) && !shared_utils_1.isNil(metatype); } }; ValidationPipe = __decorate([ component_decorator_1.Pipe() ], ValidationPipe); exports.ValidationPipe = ValidationPipe;
# Generated by Django 2.0.12 on 2020-05-03 17:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='PrivateMessage', fields=[ ('id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('updated_at', models.DateTimeField( auto_now=True, verbose_name='updated at')), ('created_at', models.DateTimeField( auto_now_add=True, verbose_name='created at')), ('position', models.PositiveSmallIntegerField( blank=True, null=True, verbose_name='Position')), ('is_read', models.BooleanField( default=False, verbose_name='is read')), ('removed_by_sender', models.BooleanField( default=False, verbose_name='removed by sender')), ('removed_by_receiver', models.BooleanField( default=False, verbose_name='removed by receiver')), ('body', models.TextField( default='', verbose_name='message body')), ('receiver', models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, related_name='messages_recieved', to=settings.AUTH_USER_MODEL, verbose_name='receiver')), ('sender', models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, related_name='messages_sent', to=settings.AUTH_USER_MODEL, verbose_name='sender')), ], options={ 'verbose_name': 'private message', 'verbose_name_plural': 'private messages', 'ordering': ['-created_at'], 'abstract': False, }, ), migrations.CreateModel( name='PrivateTalking', fields=[ ('id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('last', models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, related_name='talking', to='pm.PrivateMessage', verbose_name='talking')), ('receiver', models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, related_name='talkings_recieved', to=settings.AUTH_USER_MODEL, verbose_name='receiver')), ('sender', models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, related_name='talkings_sent', to=settings.AUTH_USER_MODEL, verbose_name='sender')), ], options={ 'verbose_name': 'private talking', 'verbose_name_plural': 'private talkings', 'ordering': ['last'], 'abstract': False, }, ), ]
import { shallow } from 'enzyme'; import React from 'react'; import { plain as Schedule, mapDispatchToProps, mapStateToProps } from './Schedule'; import { setActivityEndDate, setActivityStartDate } from '../../actions/editActivity'; describe('the Schedule (milestones) component', () => { const props = { activity: { // The Battle of the Scheldt results in a key Allied victory, when // Canadian forces successfully opened shipping routes to Antwerp, enabling // supplies to reach Allied forces in northwest Europe. plannedEndDate: '1944-11-08', plannedStartDate: '1944-10-02' }, activityIndex: 7, setEndDate: jest.fn(), setStartDate: jest.fn() }; const component = shallow(<Schedule {...props} />); beforeEach(() => { props.setEndDate.mockClear(); props.setStartDate.mockClear(); }); it('renders correctly', () => { expect(component).toMatchSnapshot(); }); describe('events', () => { it('updates activity start date', () => { component.find('DateField').at(0).prop('onChange')(null, 'new date'); expect(props.setStartDate).toHaveBeenCalledWith(7, 'new date'); }); it('updates activity end date', () => { component.find('DateField').at(1).prop('onChange')(null, 'other date'); expect(props.setEndDate).toHaveBeenCalledWith(7, 'other date'); }); }); describe('redux', () => { it('map state to props', () => { const state = { apd: { data: { activities: ['activity 1', 'activity 2', 'activity 3'] } } }; expect(mapStateToProps(state, { activityIndex: 2 })).toEqual({ activity: 'activity 3' }); }); it('map dispatch to props', () => { expect(mapDispatchToProps).toEqual({ setEndDate: setActivityEndDate, setStartDate: setActivityStartDate }); }); }); });
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import argparse from difflib import SequenceMatcher def main(): args = parse_user_args() for i, line in enumerate(args.input): if args.debug and ((i + 1) % 100000 == 0): print >> sys.stderr, "[{}]".format(i + 1) err_sent, cor_sent = line.strip().split("\t") if err_sent == cor_sent: continue err_toks = err_sent.split() cor_toks = cor_sent.split() matcher = SequenceMatcher(None, err_toks, cor_toks) for tag, i1, i2, j1, j2 in matcher.get_opcodes(): if tag != 'equal': print "{}{}{}".format(' '.join(err_toks[i1:i2]), args.delimiter, ' '.join(cor_toks[j1:j2])) def parse_user_args(): parser = argparse.ArgumentParser() parser.add_argument( 'input', nargs='?', type=argparse.FileType('r'), default=sys.stdin, help="parallel sentences") parser.add_argument('--debug', action='store_true') parser.add_argument('-d', '--delimiter', default='\t') return parser.parse_args() if __name__ == '__main__': main()
# capturar excepciona y manejar errores en codigo # susceptible a fallos/errores """ try: nombre = input("Cual es tu nombre ?: ") if len(nombre) > 1: nombre_usuario = "El nombre es: " + nombre print(nombre_usuario) except: print("Ha ocurrido un error, ingresa el nombre correctamente...") else: print("Todo ha funcionado correctamente ") finally: print("Find e la iteracion !!! ") print("****************** Buscar algun elemento ********************") # Buscar algun elemento (que el usuario ingrese por teclado) buscar = int(input("Ingrese un numero para buscar en la lista: ")) print(buscar in numeros) if buscar != False: print(f"El numero {buscar} se encuentra en la posicion", numeros.index(buscar)) """ ''' # Multiples exepciones try: numero = int( input("Ingresa un numero para elevarlo al cuadrado: ") ) print("El cuadrado es: " + str (numero * numero) ) except TypeError: print("Debes convertir tus cadenas a enteros...") #except ValueError: #print("Debes ingresar un entero...") except Exception as error: print(type(error)) print("Ha ocurrido un error: ", type(error).__name__) ''' # Excepciones personalizadas o Lanzar excepcion try: nombre = input("Introduce el nombre: ") edad = int( input("Introduce la edad: ") ) if edad < 5 or edad > 110: raise ValueError("La edad ingresada no es real...") elif len(nombre) <= 1 : raise ValueError("El nombre no es valido...") else: print(f"Bienvenido al Master en Python {nombre}" ) except ValueError: print(f"Ingresa datos validos!!! valor {edad} INVALIDO!")
(function (global) { "use strict"; const GOVUK = global.GOVUK; function Summary (module) { this.module = module; this.$el = module.$formGroup.find('.selection-summary'); this.fieldLabel = module.fieldLabel; this.total = module.total; this.addContent(); this.update(module.getSelection()); } Summary.prototype.templates = { all: (selection, total, field) => `All ${field}s`, some: (selection, total, field) => `${selection} of ${total} ${field}s`, none: (selection, total, field) => ({ "folder": "No folders (only templates outside a folder)", "team member": "No team members (only you)" }[field] || `No ${field}s`) }; Summary.prototype.addContent = function() { this.$text = $(`<p class="selection-summary__text" />`); if (this.fieldLabel === 'folder') { this.$text.addClass('selection-summary__text--folders'); } this.$el.append(this.$text); }; Summary.prototype.update = function(selection) { let template; if (selection === this.total) { template = 'all'; } else if (selection > 0) { template = 'some'; } else { template = 'none'; } this.$text.html(this.templates[template](selection, this.total, this.fieldLabel)); }; Summary.prototype.bindEvents = function () { // take summary out of tab order when focus moves this.$el.on('blur', (e) => $(this).attr('tabindex', '-1')); }; function Footer (module) { this.module = module; this.fieldLabel = module.fieldLabel; this.fieldsetId = module.$fieldset.attr('id'); this.$el = this.getEl(this.module.expanded); this.module.$formGroup.append(this.$el); } Footer.prototype.buttonContent = { change: (fieldLabel) => `Choose ${fieldLabel}s`, done: (fieldLabel) => `Done<span class="govuk-visually-hidden"> choosing ${fieldLabel}s</span>` }; Footer.prototype.getEl = function (expanded) { const buttonState = expanded ? 'done' : 'change'; const buttonContent = this.buttonContent[buttonState](this.fieldLabel); const stickyClass = expanded ? ' js-stick-at-bottom-when-scrolling' : ''; return $(`<div class="selection-footer${stickyClass}"> <button class="govuk-button govuk-button--secondary selection-footer__button" aria-expanded="${expanded ? 'true' : 'false'}" aria-controls="${this.fieldsetId}"> ${buttonContent} </button> </div>`); }; Footer.prototype.update = function (expanded) { this.$el.remove(); this.$el = this.getEl(expanded); this.module.$formGroup.append(this.$el); // make footer sticky if expanded, clear up from it being sticky if not GOVUK.stickAtBottomWhenScrolling.recalculate(); }; function CollapsibleCheckboxes () {} CollapsibleCheckboxes.prototype._focusTextElement = ($el) => { $el .attr('tabindex', '-1') .focus(); }; CollapsibleCheckboxes.prototype.start = function(component) { this.$formGroup = $(component); this.$fieldset = this.$formGroup.find('fieldset'); this.$checkboxes = this.$fieldset.find('input[type=checkbox]'); this.fieldLabel = this.$formGroup.data('fieldLabel'); this.total = this.$checkboxes.length; this.legendText = this.$fieldset.find('legend').text().trim(); this.expanded = false; this.addHeadingHideLegend(); // generate summary and footer this.footer = new Footer(this); this.summary = new Summary(this); this.$fieldset.before(this.summary.$el); // add custom classes this.$formGroup.addClass('selection-wrapper'); this.$fieldset.addClass('selection-content'); // hide checkboxes this.$fieldset.hide(); this.bindEvents(); }; CollapsibleCheckboxes.prototype.getSelection = function() { return this.$checkboxes.filter(':checked').length; }; CollapsibleCheckboxes.prototype.addHeadingHideLegend = function() { const headingLevel = this.$formGroup.data('heading-level') || '2'; this.$heading = $(`<h${headingLevel} class="heading-small">${this.legendText}</h${headingLevel}>`); this.$fieldset.before(this.$heading); this.$fieldset.find('legend').addClass('govuk-visually-hidden'); }; CollapsibleCheckboxes.prototype.expand = function(e) { if (e !== undefined) { e.preventDefault(); } if (!this.expanded) { this.$fieldset.show(); this.expanded = true; this.summary.update(this.getSelection()); this.footer.update(this.expanded); } // shift focus whether expanded or not this._focusTextElement(this.$fieldset); }; CollapsibleCheckboxes.prototype.collapse = function(e) { if (e !== undefined) { e.preventDefault(); } if (this.expanded) { this.$fieldset.hide(); this.expanded = false; this.summary.update(this.getSelection()); this.footer.update(this.expanded); } // shift focus whether expanded or not this._focusTextElement(this.summary.$text); }; CollapsibleCheckboxes.prototype.handleClick = function(e) { if (this.expanded) { this.collapse(e); } else { this.expand(e); } }; CollapsibleCheckboxes.prototype.handleSelection = function(e) { this.summary.update(this.getSelection(), this.total, this.fieldLabel); }; CollapsibleCheckboxes.prototype.bindEvents = function() { const self = this; this.$formGroup.on('click', '.govuk-button', this.handleClick.bind(this)); this.$checkboxes.on('click', this.handleSelection.bind(this)); this.summary.bindEvents(this); }; GOVUK.Modules.CollapsibleCheckboxes = CollapsibleCheckboxes; }(window));
/** * @fileoverview configs:unsafe for the plugin * @author 唯然<weiran.zsd@outlook.com> */ "use strict"; const packageMetadata = require("../../package"); const PLUGIN_NAME = packageMetadata.name.replace(/^eslint-plugin-/u, ""); const allRules = require("../rules"); const unsafe = { plugins: [PLUGIN_NAME], rules: {} }; // turn off core rules Object.keys(allRules).filter(rule => allRules[rule].meta.recommended === false) .reduce((rules, ruleName) => Object.assign(rules, { [ruleName]: "off" }), unsafe.rules); // turn on plugin rules Object.keys(allRules).filter(rule => allRules[rule].meta.recommended === false) .reduce((rules, ruleName) => Object.assign(rules, { [`${PLUGIN_NAME}/${ruleName}`]: "error" }), unsafe.rules); module.exports = unsafe;
# Copyright 2013 Huawei Technologies Co.,LTD. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from tempest_lib import exceptions as lib_exc from tempest.api.compute.security_groups import base from tempest.common.utils import data_utils from tempest import config from tempest import test CONF = config.CONF def not_existing_id(): if CONF.service_available.neutron: return data_utils.rand_uuid() else: return data_utils.rand_int_id(start=999) class SecurityGroupRulesNegativeTestJSON(base.BaseSecurityGroupsTest): @classmethod def setup_clients(cls): super(SecurityGroupRulesNegativeTestJSON, cls).setup_clients() cls.client = cls.security_groups_client @test.attr(type=['negative', 'smoke']) @test.services('network') def test_create_security_group_rule_with_non_existent_id(self): # Negative test: Creation of Security Group rule should FAIL # with non existent Parent group id # Adding rules to the non existent Security Group id parent_group_id = not_existing_id() ip_protocol = 'tcp' from_port = 22 to_port = 22 self.assertRaises(lib_exc.NotFound, self.client.create_security_group_rule, parent_group_id, ip_protocol, from_port, to_port) @test.attr(type=['negative', 'smoke']) @test.services('network') def test_create_security_group_rule_with_invalid_id(self): # Negative test: Creation of Security Group rule should FAIL # with Parent group id which is not integer # Adding rules to the non int Security Group id parent_group_id = data_utils.rand_name('non_int_id') ip_protocol = 'tcp' from_port = 22 to_port = 22 self.assertRaises(lib_exc.BadRequest, self.client.create_security_group_rule, parent_group_id, ip_protocol, from_port, to_port) @test.attr(type=['negative', 'smoke']) @test.services('network') def test_create_security_group_rule_duplicate(self): # Negative test: Create Security Group rule duplicate should fail # Creating a Security Group to add rule to it sg = self.create_security_group() # Adding rules to the created Security Group parent_group_id = sg['id'] ip_protocol = 'tcp' from_port = 22 to_port = 22 rule = \ self.client.create_security_group_rule(parent_group_id, ip_protocol, from_port, to_port) self.addCleanup(self.client.delete_security_group_rule, rule['id']) # Add the same rule to the group should fail self.assertRaises(lib_exc.BadRequest, self.client.create_security_group_rule, parent_group_id, ip_protocol, from_port, to_port) @test.attr(type=['negative', 'smoke']) @test.services('network') def test_create_security_group_rule_with_invalid_ip_protocol(self): # Negative test: Creation of Security Group rule should FAIL # with invalid ip_protocol # Creating a Security Group to add rule to it sg = self.create_security_group() # Adding rules to the created Security Group parent_group_id = sg['id'] ip_protocol = data_utils.rand_name('999') from_port = 22 to_port = 22 self.assertRaises(lib_exc.BadRequest, self.client.create_security_group_rule, parent_group_id, ip_protocol, from_port, to_port) @test.attr(type=['negative', 'smoke']) @test.services('network') def test_create_security_group_rule_with_invalid_from_port(self): # Negative test: Creation of Security Group rule should FAIL # with invalid from_port # Creating a Security Group to add rule to it sg = self.create_security_group() # Adding rules to the created Security Group parent_group_id = sg['id'] ip_protocol = 'tcp' from_port = data_utils.rand_int_id(start=65536) to_port = 22 self.assertRaises(lib_exc.BadRequest, self.client.create_security_group_rule, parent_group_id, ip_protocol, from_port, to_port) @test.attr(type=['negative', 'smoke']) @test.services('network') def test_create_security_group_rule_with_invalid_to_port(self): # Negative test: Creation of Security Group rule should FAIL # with invalid to_port # Creating a Security Group to add rule to it sg = self.create_security_group() # Adding rules to the created Security Group parent_group_id = sg['id'] ip_protocol = 'tcp' from_port = 22 to_port = data_utils.rand_int_id(start=65536) self.assertRaises(lib_exc.BadRequest, self.client.create_security_group_rule, parent_group_id, ip_protocol, from_port, to_port) @test.attr(type=['negative', 'smoke']) @test.services('network') def test_create_security_group_rule_with_invalid_port_range(self): # Negative test: Creation of Security Group rule should FAIL # with invalid port range. # Creating a Security Group to add rule to it. sg = self.create_security_group() # Adding a rule to the created Security Group secgroup_id = sg['id'] ip_protocol = 'tcp' from_port = 22 to_port = 21 self.assertRaises(lib_exc.BadRequest, self.client.create_security_group_rule, secgroup_id, ip_protocol, from_port, to_port) @test.attr(type=['negative', 'smoke']) @test.services('network') def test_delete_security_group_rule_with_non_existent_id(self): # Negative test: Deletion of Security Group rule should be FAIL # with non existent id non_existent_rule_id = not_existing_id() self.assertRaises(lib_exc.NotFound, self.client.delete_security_group_rule, non_existent_rule_id)
function cmsNotify(e,t){$(".cms-notification").css("display","block"),$(".cms-notification").attr("class","cms-notification"),$(".cms-notification").addClass(t),$(".cms-notify-comment").html(e),$(".cms-notification").animate({right:"20px"}),$(".cms-notify-closer").click(function(){$(".cms-notification").animate({right:"-300px"},"",function(){$(".cms-notification").css("display","none"),$(".cms-notify-comment").html("")})}),setTimeout(function(){$(".cms-notification").animate({right:"-300px"},"",function(){$(".cms-notification").css("display","none"),$(".cms-notify-comment").html("")})},8e3)}function confirmDelete(e){$("#deleteBtn").attr("href",e),$("#deleteModal").modal("toggle")}$(document).ready(function(){$(".alert").delay(7e3).fadeOut(),$(".sidebar-toggle").on("click",function(){$(".sidebar").toggleClass("toggled")});var e=$(".sidebar .active");if(e.length&&e.parent(".collapse").length){var t=e.parent(".collapse");t.prev("a").attr("aria-expanded",!0),t.addClass("show")}}),$(function(){$(".non-form-btn").bind("click",function(e){e.preventDefault()}),$(".delete-btn").bind("click",function(e){e.preventDefault(),$("#deleteModal").modal("toggle");var t=$(this).parent("form");$("#deleteBtn").bind("click",function(){t[0].submit()})}),$(".delete-link-btn").bind("click",function(e){e.preventDefault(),$("#deleteLinkModal").modal("toggle");var t=$(this).parent("form");$("#deleteLinkBtn").bind("click",function(){t[0].submit()})}),$(".delete-btn-confirm").bind("click",function(e){e.preventDefault()}),$("form.add, form.edit").submit(function(){$(".loading-overlay").show()}),$("a.slow-link").click(function(){$(".loading-overlay").show()})});var typeaheadMatcher=function(e){return function(t,i){var n;n=[],substrRegex=new RegExp(t,"i"),$.each(e,function(e,t){substrRegex.test(t)&&n.push(t)}),i(n)}},_redactorConfig={toolbarFixedTopOffset:$(window).width()<376?30:50,visual:!0,minHeight:175,convertVideoLinks:!0,imageUpload:!1,pastePlaintext:!0,imagePosition:!0,imageResizable:!0,deniedTags:["script"],imageManagerJson:_url+"/cms/api/images/list",fileManagerJson:_url+"/cms/api/files/list",stockImageManagerJson:"https://pixabay.com/api/",formatting:["p","blockquote","pre","h1","h2","h3","h4","h5"],buttonsAddAfter:{after:"deleted",buttons:["underline"]},plugins:["table","fontcolor","alignment","specialchars","video","stockimagemanager","fileselector","imageselector"]};$(window).ready(function(){$(".pull-down").each(function(){var e=300-$(this).siblings(".thumbnail").height()-$(this).height()-48;$(this).css("margin-top",e)}),$("textarea.redactor").redactor(_redactorConfig)}),$(function(){function e(e){return e.replace(/[^\w\s]/gi,"").replace(/ /g,"-").toLowerCase()}var t=$("#Url").val();$("#Title, #Name").bind("keyup",function(){""==t&&$("#Url").val(e($(this).val()))}),$(".timepicker").datetimepicker({format:"LT",timeZone:_appTimeZone}),$(".datepicker").datetimepicker({format:"YYYY-MM-DD",timeZone:_appTimeZone}),$(".datetimepicker").datetimepicker({showTodayButton:!0,format:"YYYY-MM-DD HH:mm",timeZone:_appTimeZone}),$(".tags").tagsinput()}),$(document).ready(function(){$('[data-toggle="tooltip"]').tooltip()}),$("#External").is(":checked")?($("#External_url").parent().show(),$("#Page_id").parent().hide()):($("#External_url").parent().hide(),$("#Page_id").parent().show()),$(window).ready(function(){$("#External").bind("click",function(){$(this).is(":checked")?($("#External_url").parent().show(),$("#Page_id").parent().hide()):($("#External_url").parent().hide(),$("#Page_id").parent().show())})});var linkList=document.getElementById("linkList");if(void 0!==linkList&&null!=linkList)var sortable=Sortable.create(linkList,{store:{get:function(e){return _linkOrder||[]},set:function(e){var t=e.toArray();$.ajax({url:_cmsUrl+"/menus/"+_id+"/order",type:"put",data:{_token:_token,order:JSON.stringify(t)},success:function(e){}})}}});$(function(){$("#saveFilesBtn").click(function(e){e.preventDefault(),Dropzone.forElement(".dropzone").processQueue()})}),$(function(){$(".bulk-image-delete").hide(),$("#saveImagesBtn").click(function(e){e.preventDefault(),Dropzone.forElement(".dropzone").processQueue()}),$(".selectable").bind("click",function(){$(this).hasClass("selected-highlight")?$(this).removeClass("selected-highlight"):$(this).addClass("selected-highlight"),$(".selected-highlight").length>0?$(".bulk-image-delete").show():$(".bulk-image-delete").hide()}),$(".bulk-image-delete").click(function(){var e=[];if($(".selected-highlight").each(function(){e.push($(this).attr("data-id"))}),e.length>0){$("#bulkImageDeleteModal").modal("toggle");var t=_cmsUrl+"/images/bulk-delete/"+e.join("-");$("#bulkImageDelete").attr("href",t)}}),$(".img-alter-btn").click(function(e){e.stopPropagation()})}),$(".preview-toggle").bind("click",function(){"desktop"==$(this).attr("data-platform")&&$("#frame").css({width:"150%"}),"mobile"==$(this).attr("data-platform")&&$("#frame").css({width:"320px"})}),$("#frame").ready(function(){var e=$("#frame").contents().find("body");$("a",e).click(function(e){e.preventDefault()})}),$(function(){$(".add-block-btn").bind("click",function(e){e.preventDefault(),$("#blockName").val(""),$("#addBlockModal").modal("toggle")}),$("#addBlockBtn").bind("click",function(){var e=$("#blockName").val();$(".blocks").prepend('<div id="block_container_'+e+'" class="col-md-12"><div class="form-group"><h4>'+e+'<button type="button" class="btn btn-xs btn-danger delete-block-btn pull-right"><span class="fa fa-trash"></span></button></h4><textarea id="block_'+e+'" name="block_'+e+'" class="form-control redactor"></textarea></div></div>'),$("#addBlockModal").modal("toggle"),$("#block_"+e).redactor(_redactorConfig)}),$(".delete-block-btn").bind("click",function(e){e.preventDefault(),$("#deleteBlockBtn").attr("data-slug",$(this).attr("data-slug")),$("#deleteBlockModal").modal("toggle")}),$("#deleteBlockBtn").bind("click",function(){$("#"+$(this).attr("data-slug")).remove(),$("#deleteBlockModal").modal("toggle")})}),Dropzone.options.fileDropzone={paramName:"location",addRemoveLinks:!0,autoProcessQueue:!1,init:function(){this.on("success",function(e,t){e.serverData=t.data,$(["name","original","mime","size"]).each(function(){$("#fileDetailsForm").prepend('<input id="file_'+e.serverData.name+'" name="location['+e.serverData.name+"]["+this+']" value="'+e.serverData[this]+'" type="hidden" />')}),this.options.autoProcessQueue=!0}),this.on("queuecomplete",function(){$("#fileDetailsForm").submit()}),this.on("removedfile",function(e){e.serverData&&($.get(_url+"/cms/files/remove/"+e.serverData.name),$("#file_"+e.serverData.name).remove())})},accept:function(e,t){t()}};