text
stringlengths
1
1.05M
#!/bin/bash SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT_DIR="${SCRIPT_DIR}/../../" # freeze the spec version to make SemanticAttributes generation reproducible SPEC_VERSION=v1.1.0 cd ${SCRIPT_DIR} rm -rf opentelemetry-specification || true mkdir opentelemetry-specification cd opentelemetry-specification git init git remote add origin https://github.com/open-telemetry/opentelemetry-specification.git git fetch origin "$SPEC_VERSION" git reset --hard FETCH_HEAD cd ${SCRIPT_DIR} docker run --rm \ -v ${SCRIPT_DIR}/opentelemetry-specification/semantic_conventions/trace:/source \ -v ${SCRIPT_DIR}/templates:/templates \ -v ${ROOT_DIR}/opentelemetry-semantic-conventions/src/opentelemetry/semconv/trace/:/output \ otel/semconvgen:0.2.1 \ -f /source code \ --template /templates/semantic_attributes.j2 \ --output /output/__init__.py \ -Dclass=SpanAttributes docker run --rm \ -v ${SCRIPT_DIR}/opentelemetry-specification/semantic_conventions/resource:/source \ -v ${SCRIPT_DIR}/templates:/templates \ -v ${ROOT_DIR}/opentelemetry-semantic-conventions/src/opentelemetry/semconv/resources/:/output \ otel/semconvgen:0.2.1 \ -f /source code \ --template /templates/semantic_attributes.j2 \ --output /output/__init__.py \ -Dclass=ResourceAttributes cd "$ROOT_DIR"
#! /bin/bash cd /home/maposmatic/osm2pgsql-import STATEFILE=sequence_number DIFFFILE=pyosmium.osc BASE_URL=$(cat replication_url) if ! test -f $STATEFILE then echo "No OSM import state file found" exit 3 fi cp $STATEFILE $STATEFILE.old rm -f $DIFFFILE if ! pyosmium-get-changes -v --size 10 --sequence-file $STATEFILE --outfile $DIFFFILE --server=$BASE_URL then echo "getting changes failed" mv $STATEFILE.old $STATEFILE rm -f $DIFFFILE exit 3 fi if sudo -u maposmatic osm2pgsql \ --append \ --slim \ --database=gis \ --merc \ --hstore-all \ --cache=1000 \ --number-processes=2 \ --style=hstore-only.style \ --tag-transform-script=openstreetmap-carto.lua \ --prefix=planet_osm_hstore \ $DIFFFILE then timestamp=$(osmium fileinfo --extended --no-progress --get data.timestamp.last $DIFFFILE) sudo -u maposmatic psql gis -c "update maposmatic_admin set last_update='$timestamp'" rm -f $DIFFFILE else echo "OSM data import failed" rm -f $DIFFFILE mv $STATEFILE.old $STATEFILE exit 3 fi
<reponame>ulfyyang/ulfy-android-master package com.ulfy.master.domain.entity; import java.util.Random; public class ContentSearch { public String cover = "https://bkimg.cdn.bcebos.com/pic/cb8065380cd791237736dcaea0345982b3b78012?x-bce-process=image/watermark,g_7,image_d2F0ZXIvYmFpa2UxNTA=,xp_5,yp_5"; public String name = "超级小白是以臼井仪人著作的漫画《蜡笔小新》中的宠物小白为主角的动画作品"; public int time = new Random().nextInt(100); }
<gh_stars>1-10 import React from 'react' import PropTypes from 'prop-types' import classNames from 'utils/classnames' const HorseBigSection = props => { const { children, className, modifier } = props const modifiedClassNames = classNames('horse-big-section horse-padding', className, modifier) return ( <div className={modifiedClassNames}> {children} </div> ) } HorseBigSection.propTypes = { children: PropTypes.any.isRequired, className: PropTypes.oneOfType([ PropTypes.string, PropTypes.arrayOf(PropTypes.string) ]), modifier: PropTypes.oneOfType([ PropTypes.string, PropTypes.arrayOf(PropTypes.string) ]) } HorseBigSection.defaultProps = { className: '', modifier: '' } export default HorseBigSection
<reponame>Delicode/astra<gh_stars>100-1000 // This file is part of the Orbbec Astra SDK [https://orbbec3d.com] // Copyright (c) 2015 Or<NAME> // // 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. // // Be excellent to each other. #ifndef ASTRA_PARAMETER_BIN_H #define ASTRA_PARAMETER_BIN_H #include <memory> #include <astra_core/capi/astra_types.h> #include <cstring> namespace astra { class parameter_bin { public: parameter_bin(size_t byteSize) : byteLength_(byteSize) { //TODO pooling data_ = DataPtr(new uint8_t[byteSize]); std::memset(data_.get(), 0, byteSize); } size_t byteLength() { return byteLength_; } void* data() { return data_.get(); } astra_parameter_bin_t get_handle() { return reinterpret_cast<astra_parameter_bin_t>(this); } static parameter_bin* get_ptr(astra_parameter_bin_t bin) { return reinterpret_cast<parameter_bin*>(bin); } private: using DataPtr = std::unique_ptr<uint8_t[]>; DataPtr data_; size_t byteLength_; }; } #endif /* ASTRA_PARAMETER_BIN_H */
/* * Drawing Room Draw Mouse Handler JavaScript Class. */ import DrawingRoomMouseHandler from './drawingroom-mouse-handler'; let DrawMouseHandler = (function() { function DrawMouseHandler(activeTool) { DrawingRoomMouseHandler.call(this, activeTool); } DrawMouseHandler.prototype = Object.create(DrawingRoomMouseHandler.prototype); DrawMouseHandler.prototype.constructor = DrawMouseHandler; DrawMouseHandler.prototype.onMouseDown = function(e) { DrawingRoomMouseHandler.prototype.onMouseDown.call(this, e); this.activeTool.context.beginPath(); }, DrawMouseHandler.prototype.onMouseDownMove = function(e) { this.activeTool.context.lineTo(this.activeTool.properties.x, this.activeTool.properties.y); this.activeTool.context.stroke(); this.notify(); }, DrawMouseHandler.prototype.onMouseUp = function(e) { this.activeTool.context.closePath(); DrawingRoomMouseHandler.prototype.onMouseUp.call(this, e); } return DrawMouseHandler; }(DrawMouseHandler || {})); export default DrawMouseHandler
/* * Copyright 2017-present Open Networking Foundation * * 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. */ package org.onosproject.openstacknode.api; /** * Service for administering inventory of opestackNode. */ public interface OpenstackNodeAdminService { /** * Creates a new node. * * @param osNode openstack node */ void createNode(OpenstackNode osNode); /** * Updates the node. * * @param osNode openstack node */ void updateNode(OpenstackNode osNode); /** * Removes the node. * * @param hostname openstack node hostname * @return removed node; null if the node does not exist */ OpenstackNode removeNode(String hostname); }
rm -rf temp/data/integration-test-wallet mkdir -p temp/data/integration-test-wallet export TARI_BASE_NODE__NETWORK=localnet export TARI_BASE_NODE__LOCALNET__DATA_DIR=localnet export TARI_BASE_NODE__LOCALNET__DB_TYPE=lmdb export TARI_BASE_NODE__LOCALNET__ORPHAN_STORAGE_CAPACITY=10 export TARI_BASE_NODE__LOCALNET__PRUNING_HORIZON=0 export TARI_BASE_NODE__LOCALNET__PRUNED_MODE_CLEANUP_INTERVAL=10000 export TARI_BASE_NODE__LOCALNET__CORE_THREADS=10 export TARI_BASE_NODE__LOCALNET__MAX_THREADS=512 export TARI_BASE_NODE__LOCALNET__ENABLE_WALLET=true export TARI_BASE_NODE__LOCALNET__IDENTITY_FILE=nodeid.json export TARI_BASE_NODE__LOCALNET__TOR_IDENTITY_FILE=node_tor_id.json export TARI_BASE_NODE__LOCALNET__WALLET_IDENTITY_FILE=walletid.json export TARI_BASE_NODE__LOCALNET__WALLET_TOR_IDENTITY_FILE=wallet_tor_id.json export TARI_BASE_NODE__LOCALNET__TRANSPORT=tcp export TARI_BASE_NODE__LOCALNET__TCP_LISTENER_ADDRESS=/ip4/0.0.0.0/tcp/18190 export TARI_BASE_NODE__LOCALNET__PUBLIC_ADDRESS=/ip4/0.0.0.0/tcp/18190 #export TARI_BASE_NODE__LOCALNET__TOR_CONTROL_ADDRESS=/ip4/127.0.0.1/tcp/9051 #export TARI_BASE_NODE__LOCALNET__TOR_CONTROL_AUTH=none #export TARI_BASE_NODE__LOCALNET__TOR_FORWARD_ADDRESS=/ip4/127.0.0.1/tcp/0 #export TARI_BASE_NODE__LOCALNET__TOR_ONION_PORT=18999 #export TARI_BASE_NODE__LOCALNET__PUBLIC_ADDRESS= export TARI_BASE_NODE__LOCALNET__PEER_SEEDS=/ip4/127.0.0.1/tcp/18190 export TARI_BASE_NODE__LOCALNET__ALLOW_TEST_ADDRESSES=true export TARI_BASE_NODE__LOCALNET__GRPC_ENABLED=true export TARI_BASE_NODE__LOCALNET__ENABLE_WALLET=true export TARI_BASE_NODE__LOCALNET__BLOCK_SYNC_STRATEGY=ViaBestChainMetadata export TARI_BASE_NODE__LOCALNET__ENABLE_MINING=false export TARI_BASE_NODE__LOCALNET__NUM_MINING_THREADS=1 export TARI_BASE_NODE__LOCALNET__ORPHAN_DB_CLEAN_OUT_THRESHOLD=0 export TARI_MERGE_MINING_PROXY__LOCALNET__MONEROD_URL=aasdf export TARI_MERGE_MINING_PROXY__LOCALNET__MONEROD_USE_AUTH=false export TARI_MERGE_MINING_PROXY__LOCALNET__MONEROD_USERNAME=asdf export TARI_MERGE_MINING_PROXY__LOCALNET__MONEROD_PASSWORD=asdf export TARI_MERGE_MINING_PROXY__LOCALNET__PROXY_HOST_ADDRESS=127.0.0.1:30071 export TARI_MERGE_MINING_PROXY__LOCALNET__WAIT_FOR_INITIAL_SYNC_AT_STARTUP=true cd temp/data/integration-test-wallet cargo run --bin tari_console_wallet -- --base-path . --create-id --init cargo run --bin tari_console_wallet -- --base-path . -d
package com.decathlon.ara.repository; import com.decathlon.ara.domain.projection.ExecutedScenarioWithErrorAndProblemJoin; import com.decathlon.ara.util.TransactionalSpringIntegrationTest; import com.github.springtestdbunit.annotation.DatabaseSetup; import java.util.Collections; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.junit4.SpringRunner; import static org.assertj.core.api.Assertions.assertThat; @RunWith(SpringRunner.class) @TransactionalSpringIntegrationTest public class ExecutedScenarioRepositoryIT { @Autowired private ExecutedScenarioRepository cut; @Test @DatabaseSetup({ "/dbunit/ExecutedScenarioRepositoryIT-findAllErrorCounts.xml" }) public void testFindAllErrorCounts() { // GIVEN Long runId = 11L; // WHEN final List<ExecutedScenarioWithErrorAndProblemJoin> errorCounts = cut.findAllErrorAndProblemCounts(Collections.singleton(runId)); // THEN assertThat(errorCounts).containsOnly( new ExecutedScenarioWithErrorAndProblemJoin(111, 11, "medium", "With unidentified error", 1, 0), new ExecutedScenarioWithErrorAndProblemJoin(112, 11, "medium", "With identified error", 1, 1), new ExecutedScenarioWithErrorAndProblemJoin(113, 11, "sanity-check", "Without error", 0, 0)); } @Test @DatabaseSetup({ "/dbunit/ExecutedScenarioRepositoryIT-findAllErrorAndProblemCount_even_closed_ones.xml"}) public void testFindAllErrorAndProblemCount_even_closed_ones() { // GIVEN Long runId = 11L; // WHEN List<ExecutedScenarioWithErrorAndProblemJoin> allErrorAndProblemCounts = cut.findAllErrorAndProblemCounts(Collections.singleton(runId)); // THEN assertThat(allErrorAndProblemCounts).containsOnly( new ExecutedScenarioWithErrorAndProblemJoin(111, 11, "medium", "With unidentified error", 1, 0), new ExecutedScenarioWithErrorAndProblemJoin(112, 11, "medium", "With identified error", 1, 1), new ExecutedScenarioWithErrorAndProblemJoin(113, 11, "sanity-check", "Without error", 0, 0), new ExecutedScenarioWithErrorAndProblemJoin(114, 11, "high", "With identified, closed, error", 0, 1), new ExecutedScenarioWithErrorAndProblemJoin(115, 11, "high", "With identified, closed (with date), error", 0, 1)); } }
# Flexo-Compressão Normal: Verificação # Seções retangulares com várias camadas de armadura # # Chamar biblioteca matemática import numpy as np # Inserir sub-rotina função def funcao(w, qsi): # Calcula o valor da função f(qsi) dada na equação (3.2.1) # do Volume 3 de Curso de Concreto Armado # # w é a taxa mecânica de armadura # qsi=x/h é a profundidade relativa da linha neutra # rc é a resultante de compressão do concreto adimensional dada na equação (2.4.4) # bc é a posição da resultante adimensional dada na equação (2.4.5) # soma1 é o somatório que aparece na equação (3.2.1) # soma2 é o somatatório que aparece na equação (3.2.2) # f é o resultado da equação (3.2.1) # # Os parâmetro de entrada são w e qsi, pois as demais variáveis são públicas. # Os parâmetros rc,bc,soma1,soma2,f são calculados nessa sub-rotina # # Constantes para o cálculo das deformações das camadas da armadura # Observar que o primeiro índice é zero ql = eu * beta[0] / (eu + 10) if (qsi <= ql): #'A linha neutra está no domínio 2 c = 0.01 / (beta[0] - qsi) elif (qsi <= 1): #'A linha neutra está nos domínios 3,4 e 4a c = eu / (1000 * qsi) else: #'A linha neutra está no domínio 5 c = (e0 / 1000) / (qsi - akapa) #' #'Resultante de compressão no concreto if (qsi < 1 / alamb): rc = alamb * qsi bc = 0.5 * alamb * qsi else: rc = 1 bc = 0.5 soma1 = 0 soma2 = 0 for i in range (0, nl, 1): esi = c * (qsi - beta[i]) tsl = tensao(esi) tsi = tsl soma1 = soma1 + ni[i] * tsi soma2 = soma2 + ni[i] * beta[i] * tsi #'Funcao f(qsi) f = ani - rc - w * soma1 / (n * fyd) return f, rc, bc, soma1, soma2 # Inserir sub-rotina tensão def tensao(esl): #' #'Calcula a tensao no aço #'es = módulo de elasticidade do aço em kN/cm2 #'esl = deformação de entrada #'fyd = tensão de escoamento de cálculo em kN/cm2 #'tsl = tensão de saída em kN/cm2 #' #'Trabalhando com deformação positiva ess = np.abs(esl) eyd = fyd / es if (ess < eyd): tsl = es * ess else: tsl = fyd #'Trocando o sinal se necessário if (esl < 0): tsl = -tsl return tsl # ENTRADA DE DADOS # fck = float(input('Resistência característica à compressão do concreto em MPa = ')) fyk = float(input('Tensão de escoamento característica do aço em MPa = ')) es = float(input('Módulo de elasticidade do aço em GPa = ')) gamac = float(input('Coeficiente parcial de segurança para o concreto = ')) gamas = float(input('Coeficiente parcial de segurança para o aço = ')) b = float(input('Largura da seção transversal em cm = ')) h = float(input('Altura da seção transversal em cm = ')) dl = float(input("Distância d' em cm = ")) aas = float(input("Área total de aço em cm² = ")) nl = int(input('Número de camadas de armadura = ')) ni = list(range(nl)) print('Dados das camadas de armadura.') print('As camadas são inseridas de baixo para cima.') for i in range (0, nl, 1): print('Número de barras da camada',(i+1),'.') ni[i] = float(input('Valor: ')) ni = np.asarray(ni) print('Esforço normal de cálculo Nd.') aand = float(input('Forneça um valor positivo para Nd (em kN) = ')) # # FIM DA ENTRADA DE DADOS # # INÍCIO DOS CÁLCULOS # # Parâmetros do diagrama retangular if fck <= 50: alamb = 0.8 alfac = 0.85 eu = 3.5 e0 = 2. else: alamb = 0.8 - (fck - 50) / 400 alfac = 0.85 * (1 - (fck - 50) / 200) eu = 2.6 + 35 * ((90 - fck) / 100) ** 4 e0 = 2 + 0.085 * ((fck - 50) ** 0.53) # Parâmetro kapa que define o ponto com deformação igual a eo no domínio 5 akapa = 1 - e0 / eu # Conversão de unidades: transformando para kN e cm fck = fck / 10 fyk = fyk / 10 es = 100 * es # Resistências de cálculo fcd = fck / gamac tcd = alfac * fcd fyd = fyk / gamas # Cálculo do número total de barras na seção n = 0 for i in range (0, nl, 1): n = n + ni[i] # Parâmetro geométrico delta = dl / h # Área da seção de concreto ac = b * h # Taxa mecânica de armadura w = aas * fyd / (ac * tcd) # Esforço normal reduzido ani = aand / (ac * tcd) # Esforço normal máximo que a seção resiste em compressão simples esi = e0 / 1000 tsl = tensao(esi) tsd0 = tsl animax = 1 + w * tsd0 / fyd # Verificação if (ani > animax): print('A seção não suporta o esforço normal dado.') # Montagem do vetor beta # Ver equação (2.2.5) do Volume 3 de Curso de Concreto Armado # Aqui a primeira camada tem índice zero # A equação foi modificada para compatibilizar beta = list(range(nl)) beta = np.array(beta) beta = beta.astype(np.float) for i in range (0, nl, 1): beta[i] = delta + (nl - 1 - i) * (1 - 2 * delta) / (nl - 1) # # Processo iterativo da bissecante # # Determinação do intervalo solução # Valor inicial para a linha neutra adminesional qsi=x/h qi = 0 #Chamar sub-rotina para calcular o valor da função fi=f(qi) f, rc, bc, soma1, soma2 = funcao(w, qi) fi = f # # Valor final para a linha neutra adimensional qsi=x/h qf = 1000 # Chamar sub-rotina para calcular o valor da função ff=f(qf) f, rc, bc, soma1, soma2 = funcao(w, qf) ff = f prod = fi * ff # Modificando os extremos do intervalo solução até que prod<=0 while (prod > 0): qi = qf fi = ff qf = 10 * qf f, rc, bc, soma1, soma2 = funcao(w, qf) ff = f prod = fi * ff # O intervalo solução foi definido # A linha neutra qsi fica entre [qi,qf] # # Processo iterativo da bissecante fk = 1 while (np.abs(fk) > 0.001): qk = (qi * ff - qf * fi) / (ff - fi) f, rc, bc, soma1, soma2 = funcao(w, qk) fk = f prod = fk * fi if (prod >= 0): qi = qk fi = fk else: qf = qk ff = fk # Convergência alcançada # qk é a raiz da função f(qsi) dada na equação (3.2.1) do Volume 3 de Curso de Concreto Armado # # Cálculo do momento fletor reduzido conforme a equação (3.2.2) do Volume 3 ami = 0.5 * ani - rc * bc - w * soma2 / (n * fyd) # Momento fletor dimensional amud = ami * ac * h * tcd # Passagem para kNm amud = amud / 100 # Convertendo a saída para duas casas decimais amud = round(amud, 3) # Mostrando o resultado print('O momento de ruína é',amud,'kN.m.')
import argparse import georinex as gr def process_rinex_files(): parser = argparse.ArgumentParser(description="Example of reading RINEX 2/3 Navigation/Observation file") parser.add_argument("indir", help="Path to RINEX 2 or RINEX 3 files to convert") parser.add_argument("glob", help="File glob pattern", nargs="?", default="*") parser.add_argument("-o", "--out", help="Write data to path or file as NetCDF4") parser.add_argument("-v", "--verbose", action="store_true", help="Enable verbose mode") parser.add_argument("-p", "--plot", action="store_true", help="Display plots") parser.add_argument("-u", "--use", help="Select which GNSS system(s) to use", nargs="+") parser.add_argument("-m", "--meas", help="Select which GNSS measurement(s) to use", nargs="+") parser.add_argument("-t", "--tlim", help="Specify time limits (process part of file)", nargs=2) args = parser.parse_args() # Read RINEX files using georinex rinex_files = gr.glob(args.indir, args.glob) for rinex_file in rinex_files: obs = gr.load(rinex_file, use=args.use, tlim=args.tlim) # Perform data processing based on the provided options if args.verbose: print(f"Processing RINEX file: {rinex_file}") if args.out: # Write data to the specified path or file as NetCDF4 obs.to_netcdf(args.out) if args.plot: # Display plots for visualizing the processed data obs.plot() if args.meas: # Filter data based on selected GNSS measurements obs = obs.filter(meas=args.meas) # Additional processing based on selected GNSS system(s) can be added here if __name__ == "__main__": process_rinex_files()
const Sequelize = require('sequelize') const db = require('../db') const nodemailer = require('nodemailer') const sgTransport = require('nodemailer-sendgrid-transport') if (process.env.NODE_ENV !== 'production') require('../../../secrets') const options = { auth: { api_user: 'lgrees', api_key: process.env.SEND_GRID_API_KEY } } let transporter = nodemailer.createTransport(sgTransport(options)) const Order = db.define('order', { shippingAddress: { type: Sequelize.STRING, allowNull: false, validate: { notEmpty: true } }, email: { type: Sequelize.STRING, allowNull: false, validate: { notEmpty: true, isEmail: true } }, totalPrice: { type: Sequelize.INTEGER, allowNull: false, validate: {isNumeric: true, min: 0} }, temporaryUserId: { type: Sequelize.STRING, allowNull: true }, userId: { type: Sequelize.INTEGER, allowNull: true }, status: { type: Sequelize.ENUM('Created', 'Processing', 'Cancelled', 'Completed'), defaultValue: 'Created' } }) Order.afterCreate(order => { const message = { from: '<EMAIL>', to: order.email, subject: `🐼 You got panda'd`, text: 'Congrats on your new panda!', html: `<p>Congrats on your new panda!</p><p>Shipping Address: ${ order.shippingAddress }</p><p>Order Status: ${order.status}</p> ` } transporter.sendMail(message, (err, info) => { if (err) { console.error(err) } else { console.log('Message sent: ' + info.response) } }) }) module.exports = Order
import tempfile import os def create_temp_directory(prefix): temp_dir = tempfile.mkdtemp(prefix=prefix) return temp_dir # Example usage temp_dir_path = create_temp_directory("my_temp_dir") print(temp_dir_path)
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.org/docs/gatsby-config/ */ module.exports = { /* Your site config here */ siteMetadata: { title: `Linda Ikechukwu`, description: `<NAME> is a Software Developer et Community builder focused on Frontend and Cloud Technologies from Lagos, Nigeria.`, author: `<NAME>`, keywords: `Linda Ikechukwu, CodeWithLinda, Nigerian Female Software Developer, PH School Of AI Community Manager, Frontend Developer, Javascript Developer in Nigeria `, siteUrl: `https://www.codewithlinda.com/`, paymentPointer: `$ilp.uphold.com/UgFp7pe6LHFk` }, plugins: [ `gatsby-plugin-react-helmet`, `gatsby-plugin-sass`, `gatsby-plugin-sitemap`, `gatsby-plugin-dark-mode`, { resolve: "gatsby-plugin-web-font-loader", options: { custom: { families: ["Rosario, Ribeye Marrow"], urls: ["/fonts/fonts.css"], }, }, }, { resolve: "gatsby-source-filesystem", options: { name: "src", path: `${__dirname}/src/`, }, }, "gatsby-plugin-sharp", "gatsby-transformer-sharp", `gatsby-plugin-feed`, { resolve: "gatsby-transformer-remark", options: { plugins: [ { resolve: "gatsby-remark-images", options: { maxWidth: 750, linkImagesToOriginal: false, }, }, { resolve: `gatsby-remark-vscode`, options: { theme: 'Abyss' } } ], }, }, { resolve: `gatsby-plugin-manifest`, options: { name: "All About Linda", short_name: "codewithlinda.com", start_url: "/", background_color: "#232946", theme_color: "#232946", display: "standalone", icon: "static/icon.jpg" // This path is relative to the root of the site. } }, { resolve: `gatsby-plugin-canonical-urls`, options: { siteUrl: `https://www.codewithlinda.com/`, stripQueryString: true, }, }, { resolve: `gatsby-plugin-google-analytics`, options: { // replace "UA-XXXXXXXXX-X" with your own Tracking ID trackingId: "UA-167406817-1", }, }, { resolve: `gatsby-plugin-disqus`, options: { shortname:`allaboutlinda` } }, { resolve: 'gatsby-plugin-robots-txt', options: { host: 'https://www.codewithlinda.com', sitemap: 'https://www.codewithlinda.com/sitemap.xml', policy: [{ userAgent: '*', allow: '/' }] } } ], }
package com.codefinity.microcontinuum.xservice.messaging; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.cloud.stream.annotation.EnableBinding; import org.springframework.cloud.stream.annotation.Output; import org.springframework.messaging.MessageChannel; import org.springframework.messaging.support.MessageBuilder; import org.springframework.stereotype.Component; @RefreshScope @Component @EnableBinding(MicroserviceSource.class) public class Sender { private static final Logger logger = LoggerFactory.getLogger(Sender.class); public Sender() { } @Output(MicroserviceSource.MicroserviceQ) @Autowired private MessageChannel messageChannel; public void send(String message) { // template.convertAndSend("InventoryQ", message); logger.info("Sender: Sleuth Message at X-Microservice for RabbitMQ"); messageChannel.send(MessageBuilder.withPayload(message).build()); } } interface MicroserviceSource { public static String MicroserviceQ = "microserviceQ"; @Output("microserviceQ") public MessageChannel microserviceQ(); }
protected boolean checkOnMainThread() { return Looper.myLooper() == Looper.getMainLooper(); }
# -*- coding: utf-8 -*- # @Author : kevin_w import math import random import numpy as np from collections import namedtuple import torch import torch.nn as nn import torch.optim as optim from util import ReplayBuffer from nn.nn_layer import DQN from modify.dqn_modify import action_modify class DQNAgent: def __init__(self, num_actions=19, max_memory=10000, batch_size=64, gamma=0.9): super(DQNAgent, self).__init__() self.Transition = namedtuple('Transition', ('state', 'action', 'reward', 'next_state')) # define policy network to update Q function # define target network to compute TD target y_t self.policy_net = DQN(num_actions) self.target_net = DQN(num_actions) if torch.cuda.is_available(): self.policy_net.cuda() self.target_net.cuda() self.optimizer = optim.Adam(self.policy_net.parameters()) self.criterion = nn.SmoothL1Loss() self.memory_buffer = ReplayBuffer(max_memory) self.steps_done = 0 self.num_actions = num_actions self.batch_size = batch_size self.gamma = gamma def select_action(self, state, obs, episode): sample = random.random() eps_start = 0.9 eps_end = 0.0 eps_decay = 500 eps_threshold = eps_end + (eps_start - eps_end) * \ math.exp(-1. * self.steps_done / eps_decay) # eps = args.epsilon - self.steps_done * 0.01 if eps_threshold < 0.01: eps_threshold = 0.01 self.steps_done += 1 if sample > eps_threshold: # use policy network to choose a* with torch.no_grad(): action_list = self.policy_net(state) action = action_list.max(1)[1].view(1, 1) # manual modify the action in 100 episodes # then agent fully control the decision if episode < 100: modify_action = action_modify(obs, action) return modify_action else: greedy_action = torch.tensor([[random.randrange(self.num_actions)]], dtype=torch.long) # print('epsilon:{}, greedy_action'.format(eps_threshold, greedy_action)) modify_action = action_modify(obs, greedy_action) return modify_action def optimize_model(self): # collect enough experience data if len(self.memory_buffer) < self.batch_size: return # get train batch (state, action, reward) from replay buffer trans_tuple = self.memory_buffer.sample(self.batch_size) batch = self.Transition(*zip(*trans_tuple)) state_batch = torch.cat(batch.state) action_batch = torch.cat(batch.action) reward_batch = torch.cat(batch.reward) # reward_batch = torch.from_numpy(np.array(batch.reward, dtype=np.float32)[:, None]) next_state_batch = torch.cat(batch.next_state) if torch.cuda.is_available(): state_batch = state_batch.cuda() action_batch = action_batch.cuda() reward_batch = reward_batch.cuda() next_state_batch = next_state_batch.cuda() # compute Q(S_t, a) in policy net and gather action in terms of columns in action_batch state_action_values = self.policy_net(state_batch).gather(1, action_batch) # Compute Q*(s_{t+1}, A) in target net for all next states. next_state_values = self.target_net(next_state_batch).max(1)[0].detach() # next_state_values = self.target_net(next_state_batch) # Compute y = r + \gamma * max_a Q(s', a) expected_q_values = (next_state_values * self.gamma) + reward_batch # expected_q_values = torch.cat( # tuple(reward + self.gamma * torch.max(q) for reward, q in # zip(reward_batch, next_state_values))) # Compute loss and optimize model criterion = nn.SmoothL1Loss() loss = criterion(state_action_values, expected_q_values.unsqueeze(1)) self.optimizer.zero_grad() loss.backward() self.optimizer.step()
set JAVA_HOME=C:\PROGRA~1\Java\jdk1.6.0_45 # %JAVA_HOME%\bin\java -jar collectfiles.jar # 偷懒使用以下脚本 %JAVA_HOME%\bin\java -jar collectfiles.jar type=advance echo "finished!"
CLI_CONFIG = { 'file': { 'options': ['--file', '-f'], 'default': None, 'help': 'Pass in a file location that will be rendered', }, 'pipe': { 'options': ['--pipe', '-p'], 'default': 'yaml', 'help': 'Define what render pipeline should be used', }, 'output': { 'options': ['--output', '-o'], 'default': 'nested', 'help': 'Define which outputter system should be used to display the result of this render', }, } CONFIG = {} GLOBAL = {} SUBS = {} DYNE = { 'rend': ['rend'], 'output': ['output'], }
// Create a grid of 9 x 9 cells let grid = document.createElement('table'); grid.setAttribute('border', 1); grid. setAttribute('cellspacing', 0); // We will be filling the cells with numbers 1-9 let numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]; //Create 9x9 grid for (let row = 0; row < 9; row++) { let tr = document. createElement('tr'); for (let col = 0; col < 9; col++) { let cell = document.createElement('td'); let randomNumber = numbers[Math.floor(Math.random() * numbers.length)]; cell.appendChild(document.createTextNode(randomNumber)); numbers.splice(numbers. indexOf(randomNumber), 1); tr.appendChild(cell); } grid.appendChild(tr); } // Append sudoku board grid to the body document.getElementById('sudoku').appendChild(grid);
import { URLSearchParams } from "node:url"; import { ParseError } from "../parse"; import { fetchInternal } from "./internal"; import type { RequestInit } from "undici"; // Check out https://api.cloudflare.com/ for API docs. export { getCloudflareAPIBaseURL as getCloudflareApiBaseUrl } from "./internal"; export interface FetchError { code: number; message: string; } export interface FetchResult<ResponseType = unknown> { success: boolean; result: ResponseType; errors: FetchError[]; messages: string[]; result_info?: unknown; } export { fetchKVGetValue } from "./internal"; /** * Make a fetch request, and extract the `result` from the JSON response. */ export async function fetchResult<ResponseType>( resource: string, init: RequestInit = {}, queryParams?: URLSearchParams ): Promise<ResponseType> { const json = await fetchInternal<FetchResult<ResponseType>>( resource, init, queryParams ); if (json.success) { return json.result; } else { throwFetchError(resource, json); } } /** * Make a fetch request for a list of values, * extracting the `result` from the JSON response, * and repeating the request if the results are paginated. */ export async function fetchListResult<ResponseType>( resource: string, init: RequestInit = {}, queryParams?: URLSearchParams ): Promise<ResponseType[]> { const results: ResponseType[] = []; let getMoreResults = true; let cursor: string | undefined; while (getMoreResults) { if (cursor) { queryParams = new URLSearchParams(queryParams); queryParams.set("cursor", cursor); } const json = await fetchInternal<FetchResult<ResponseType[]>>( resource, init, queryParams ); if (json.success) { results.push(...json.result); if (hasCursor(json.result_info)) { cursor = json.result_info?.cursor; } else { getMoreResults = false; } } else { throwFetchError(resource, json); } } return results; } function throwFetchError( resource: string, response: FetchResult<unknown> ): never { const error = new ParseError({ text: "Received a bad response from the API", notes: response.errors.map((err) => ({ text: err.code ? `${err.message} [code: ${err.code}]` : err.message, })), }); // add the first error code directly to this error // so consumers can use it for specific behaviour const code = response.errors[0]?.code; if (code) { //@ts-expect-error non-standard property on Error error.code = code; } throw error; } function hasCursor(result_info: unknown): result_info is { cursor: string } { const cursor = (result_info as { cursor: string } | undefined)?.cursor; return cursor !== undefined && cursor !== null && cursor !== ""; }
package misc import ( "bytes" "encoding/json" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" bprel "github.com/bosh-dep-forks/bosh-provisioner/release" bpreljob "github.com/bosh-dep-forks/bosh-provisioner/release/job" semver "github.com/cppforlife/go-semi-semantic/version" ) type ReleaseIndex struct { DirPath string MinVersion semver.Version indexPaths []string } func (i *ReleaseIndex) Load() error { var err error i.indexPaths, err = filepath.Glob(filepath.Join(i.DirPath, "*")) if err != nil { return fmt.Errorf("Globbing index: %s", err) } return nil } func (i ReleaseIndex) Missing(release Release) (bool, error) { ver, err := release.Version() if err != nil { return false, err } if i.MinVersion.IsGt(ver) { return false, nil } for _, path := range i.indexPaths { if filepath.Base(path) == release.NameVersion() { return false, nil } } return true, nil } func (i ReleaseIndex) Commit(release Release, relMeta bprel.Release, jobsMeta []bpreljob.Job, meta4Path string) error { releaseDir := filepath.Join(i.DirPath, release.NameVersion()) err := os.MkdirAll(releaseDir, os.ModePerm) if err != nil { return fmt.Errorf("Mkdir index directory: %s", err) } releaseBytes, err := json.MarshalIndent(relMeta, "", " ") if err != nil { return fmt.Errorf("Marshaling release meta: %s", err) } err = ioutil.WriteFile(filepath.Join(releaseDir, "release.v1.yml"), releaseBytes, os.ModePerm) if err != nil { return fmt.Errorf("Writing release meta file: %s", err) } jobsBytes, err := json.MarshalIndent(jobsMeta, "", " ") if err != nil { return fmt.Errorf("Marshaling jobs meta: %s", err) } err = ioutil.WriteFile(filepath.Join(releaseDir, "jobs.v1.yml"), jobsBytes, os.ModePerm) if err != nil { return fmt.Errorf("Writing jobs meta file: %s", err) } fileBytes, err := ioutil.ReadFile(meta4Path) if err != nil { return fmt.Errorf("Reading metalink file: %s", err) } err = ioutil.WriteFile(filepath.Join(releaseDir, "source.meta4"), fileBytes, os.ModePerm) if err != nil { return fmt.Errorf("Writing metalink file: %s", err) } cmds := [][]string{ []string{"config", "--local", "user.email", "bosh-io-worker"}, []string{"config", "--local", "user.name", "bosh-io-worker"}, []string{"add", "-A"}, []string{"commit", "-m", "add " + release.NameVersion()}, } for _, cmd := range cmds { _, err = i.execGit(cmd) if err != nil { return err } } return nil } func (i ReleaseIndex) execGit(args []string) ([]byte, error) { cmd := exec.Command("git", args...) cmd.Dir = i.DirPath var outBuf, errBuf bytes.Buffer cmd.Stdout = &outBuf cmd.Stderr = &errBuf err := cmd.Run() if err != nil { return nil, fmt.Errorf("executing git: %s (stderr: %s)", err, errBuf.String()) } return outBuf.Bytes(), nil }
#!/bin/bash echo "$1, StackStorm!"
<filename>java/ql/test/stubs/springframework-5.2.3/org/springframework/expression/ExpressionParser.java package org.springframework.expression; public interface ExpressionParser { Expression parseExpression(String string); }
#!/bin/bash # ========== Experiment Seq. Idx. 882 / 44.2.3 / N. 62/4/3 - _S=44.2.3 D1_N=62 a=1 b=-1 c=1 d=1 e=1 f=1 D3_N=4 g=1 h=-1 i=-1 D4_N=3 j=3 ========== set -u # Prints header echo -e '\n\n========== Experiment Seq. Idx. 882 / 44.2.3 / N. 62/4/3 - _S=44.2.3 D1_N=62 a=1 b=-1 c=1 d=1 e=1 f=1 D3_N=4 g=1 h=-1 i=-1 D4_N=3 j=3 ==========\n\n' if [[ "No" == "Yes" ]]; then echo 'FATAL: This treatment included an SVM layer.'>&2 echo ' Something very wrong happened!'>&2 exit 161 fi # Prepares all environment variables JBHI_DIR="$HOME/jbhi-special-issue" DATASET_DIR="$JBHI_DIR/data/edra-dermoscopic-seg.598.tfr" MODEL_DIR="$JBHI_DIR/models/deep.62" RESULTS_DIR="$JBHI_DIR/results" RESULTS_PREFIX="$RESULTS_DIR/deep.62.layer.4.test.3.index.2319.nosvm" RESULTS_PATH="$RESULTS_PREFIX.results.txt" # ...variables expected by jbhi-checks.include.sh and jbhi-footer.include.sh SOURCES_GIT_DIR="$JBHI_DIR/jbhi-special-issue" LIST_OF_INPUTS="$DATASET_DIR/finish.txt:$MODEL_DIR/finish.txt" START_PATH="$RESULTS_PREFIX.start.txt" FINISH_PATH="$RESULTS_PREFIX.finish.txt" LOCK_PATH="$RESULTS_PREFIX.running.lock" LAST_OUTPUT="$RESULTS_PATH" # EXPERIMENT_STATUS=1 # STARTED_BEFORE=No mkdir -p "$RESULTS_DIR" # # Assumes that the following environment variables where initialized # SOURCES_GIT_DIR="$JBHI_DIR/jbhi-special-issue" # LIST_OF_INPUTS="$DATASET_DIR/finish.txt:$MODELS_DIR/finish.txt:" # START_PATH="$OUTPUT_DIR/start.txt" # FINISH_PATH="$OUTPUT_DIR/finish.txt" # LOCK_PATH="$OUTPUT_DIR/running.lock" # LAST_OUTPUT="$MODEL_DIR/[[[:D1_MAX_NUMBER_OF_STEPS:]]].meta" EXPERIMENT_STATUS=1 STARTED_BEFORE=No # Checks if code is stable, otherwise alerts scheduler pushd "$SOURCES_GIT_DIR" >/dev/null GIT_STATUS=$(git status --porcelain) GIT_COMMIT=$(git log | head -n 1) popd >/dev/null if [ "$GIT_STATUS" != "" ]; then echo 'FATAL: there are uncommitted changes in your git sources file' >&2 echo ' for reproducibility, experiments only run on committed changes' >&2 echo >&2 echo ' Git status returned:'>&2 echo "$GIT_STATUS" >&2 exit 162 fi # The experiment is already finished - exits with special code so scheduler won't retry if [[ "$FINISH_PATH" != "-" ]]; then if [[ -e "$FINISH_PATH" ]]; then echo 'INFO: this experiment has already finished' >&2 exit 163 fi fi # The experiment is not ready to run due to dependencies - alerts scheduler if [[ "$LIST_OF_INPUTS" != "" ]]; then IFS=':' tokens_of_input=( $LIST_OF_INPUTS ) input_missing=No for input_to_check in ${tokens_of_input[*]}; do if [[ ! -e "$input_to_check" ]]; then echo "ERROR: input $input_to_check missing for this experiment" >&2 input_missing=Yes fi done if [[ "$input_missing" != No ]]; then exit 164 fi fi # Sets trap to return error code if script is interrupted before successful finish LOCK_SUCCESS=No FINISH_STATUS=161 function finish_trap { if [[ "$LOCK_SUCCESS" == "Yes" ]]; then rmdir "$LOCK_PATH" &> /dev/null fi if [[ "$FINISH_STATUS" == "165" ]]; then echo 'WARNING: experiment discontinued because other process holds its lock' >&2 else if [[ "$FINISH_STATUS" == "160" ]]; then echo 'INFO: experiment finished successfully' >&2 else [[ "$FINISH_PATH" != "-" ]] && rm -f "$FINISH_PATH" echo 'ERROR: an error occurred while executing the experiment' >&2 fi fi exit "$FINISH_STATUS" } trap finish_trap EXIT # While running, locks experiment so other parallel threads won't attempt to run it too if mkdir "$LOCK_PATH" --mode=u=rwx,g=rx,o=rx &>/dev/null; then LOCK_SUCCESS=Yes else echo 'WARNING: this experiment is already being executed elsewhere' >&2 FINISH_STATUS="165" exit fi # If the experiment was started before, do any cleanup necessary if [[ "$START_PATH" != "-" ]]; then if [[ -e "$START_PATH" ]]; then echo 'WARNING: this experiment is being restarted' >&2 STARTED_BEFORE=Yes fi #...marks start date -u >> "$START_PATH" echo GIT "$GIT_COMMIT" >> "$START_PATH" fi # If the experiment was started before, do any cleanup necessary if [[ "$STARTED_BEFORE" == "Yes" ]]; then echo -n fi #...gets closest checkpoint file MODEL_CHECKPOINT=$(ls "$MODEL_DIR/"model.ckpt-*.index | \ sed 's/.*ckpt-\([0-9]*\)\..*/\1/' | \ sort -n | \ awk -v c=1 -v t=40000 \ 'NR==1{d=$c-t;d=d<0?-d:d;v=$c;next}{m=$c-t;m=m<0?-m:m}m<d{d=m;v=$c}END{print v}') MODEL_PATH="$MODEL_DIR/model.ckpt-$MODEL_CHECKPOINT" echo "$MODEL_PATH" >> "$START_PATH" #...performs prediction echo Testing on "$MODEL_PATH" python \ "$SOURCES_GIT_DIR/predict_image_classifier.py" \ --model_name="inception_v4_seg" \ --checkpoint_path="$MODEL_PATH" \ --dataset_name=skin_lesions \ --task_name=label \ --dataset_split_name=test \ --preprocessing_name=dermatologic \ --aggressive_augmentation="True" \ --add_rotations="True" \ --minimum_area_to_crop="0.20" \ --normalize_per_image="1" \ --batch_size=1 \ --id_field_name=id \ --pool_scores=avg \ --eval_replicas="1" \ --output_file="$RESULTS_PATH" \ --dataset_dir="$DATASET_DIR" # Tip: leave last the arguments that make the command fail if they're absent, # so if there's a typo or forgotten \ the entire thing fails EXPERIMENT_STATUS="$?" # #...starts training if [[ "$EXPERIMENT_STATUS" == "0" ]]; then if [[ "$LAST_OUTPUT" == "" || -e "$LAST_OUTPUT" ]]; then if [[ "$FINISH_PATH" != "-" ]]; then date -u >> "$FINISH_PATH" echo GIT "$GIT_COMMIT" >> "$FINISH_PATH" fi FINISH_STATUS="160" fi fi
#!/bin/bash -xue sudo aptitude update || true for PKG in libssl-dev \ texlive texlive-latex-extra \ git python-epydoc graphviz libsnappy-dev symlinks; do sudo aptitude install -yVDq $PKG done
<gh_stars>1-10 /* * Copyright (c) Open Source Strategies, Inc. * * Opentaps is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Opentaps is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Opentaps. If not, see <http://www.gnu.org/licenses/>. */ package org.opentaps.domain; import org.ofbiz.entity.Delegator; import org.ofbiz.entity.GenericValue; import org.opentaps.foundation.infrastructure.Infrastructure; import org.opentaps.foundation.infrastructure.User; import org.opentaps.foundation.repository.RepositoryException; import org.opentaps.foundation.repository.ofbiz.Repository; /** * Helper class which is able to cache the DomainLoader. */ public class DomainRepository extends Repository { private DomainsLoader domainsLoader; private DomainsDirectory domainsDirectory; /** * Default constructor. */ public DomainRepository() { super(); } /** * Use this for Repositories which will only access the database via the delegator. * @param delegator the delegator */ public DomainRepository(Delegator delegator) { super(delegator); } /** * Use this for domain Repositories. * @param infrastructure the domain infrastructure * @throws RepositoryException if an error occurs */ public DomainRepository(Infrastructure infrastructure) throws RepositoryException { super(infrastructure); } /** * If you want the full infrastructure including the dispatcher, then you must have the User. * @param infrastructure the domain infrastructure * @param user the domain user * @throws RepositoryException if an error occurs */ public DomainRepository(Infrastructure infrastructure, User user) throws RepositoryException { super(infrastructure, user); } /** * If you want the full infrastructure including the dispatcher, then you must have the User. * @param infrastructure the domain infrastructure * @param userLogin the Ofbiz <code>UserLogin</code> generic value * @throws RepositoryException if an error occurs */ public DomainRepository(Infrastructure infrastructure, GenericValue userLogin) throws RepositoryException { super(infrastructure, userLogin); } public DomainsLoader getDomainsLoader() { if (domainsLoader == null) { domainsLoader = new DomainsLoader(getInfrastructure(), getUser()); } return domainsLoader; } public DomainsDirectory getDomainsDirectory() { if (domainsDirectory == null) { domainsDirectory = getDomainsLoader().getDomainsDirectory(); } return domainsDirectory; } }
import cv2 def recognize_faces(image): face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') gray = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY) faces = face_cascade.detectMultiScale(gray, 1.1, 4) face_imgs = [] for (x,y,w,h) in faces: cv2.rectangle(image,(x,y),(x+w,y+h),(255,0,0),2) face_imgs.append(image[y:y+h, x:x+w]) return face_imgs
<filename>users/bolt/internal/delete.go package internal import ( "context" "encoding/json" "strings" "github.com/justanotherorganization/justanotherbotkit/users" "github.com/pkg/errors" bolt "go.etcd.io/bbolt" ) type deleteEvent struct { _e event } // NewDeleteEvent ... func NewDeleteEvent(u users.User, v uint32) (Event, error) { if strings.TrimSpace(u.GetID()) == "" { return nil, errors.New("user.ID cannot be empty") } if v == 0 { return nil, errors.New("v should represent the current snapshot version") } return &deleteEvent{ _e: event{ snap: newSnapshot(u, v), }, }, nil } func (e *deleteEvent) Apply(ctx context.Context, _db *bolt.DB) (users.User, error) { if err := checkPrev([]byte(e._e.snap.User.GetID()), e._e.snap.Version, _db); err != nil { return e._e.snap.User, err } byt, err := json.Marshal(e._e.snap) if err != nil { return e._e.snap.User, err } if err = _db.Update(func(tx *bolt.Tx) error { b := tx.Bucket(SnapshotBucket) err := b.Put([]byte(e._e.snap.ID), byt) if err != nil { return err } b = tx.Bucket(MainBucket) return b.Delete([]byte(e._e.snap.User.GetID())) }); err != nil { return e._e.snap.User, errors.Wrap(err, "_db.Update") } return nil, nil }
<reponame>redis-rb/redis-client # frozen_string_literal: true require "redis-client" begin require "redis_client/hiredis_connection" rescue LoadError else RedisClient.register_driver(:hiredis) { RedisClient::HiredisConnection } RedisClient.default_driver = :hiredis end
# Generated by Django 3.0.3 on 2020-04-23 02:36 import datetime from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CaptchaStore', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('key', models.IntegerField()), ('answer', models.CharField(max_length=10)), ('expire_time', models.DateTimeField(default=datetime.datetime(2020, 4, 23, 10, 41, 27, 940622))), ], ), ]
<filename>src/main/java/cc/sfclub/events/MemberEvent.java<gh_stars>10-100 package cc.sfclub.events; /** * Events about member. */ public abstract class MemberEvent extends GroupEvent { public abstract String getUserID(); }
# $OpenBSD: sftp.sh,v 1.3 2009/08/13 01:11:55 djm Exp $ # Placed in the Public Domain. tid="basic sftp put/get" DATA=/bin/ls COPY=${OBJ}/copy BUFFERSIZE="5 1000 32000 64000" REQUESTS="1 2 10" for B in ${BUFFERSIZE}; do for R in ${REQUESTS}; do verbose "test $tid: buffer_size $B num_requests $R" rm -f ${COPY}.1 ${COPY}.2 ${SFTP} -D ${SFTPSERVER} -B $B -R $R -b /dev/stdin \ > /dev/null 2>&1 << EOF version get $DATA ${COPY}.1 put $DATA ${COPY}.2 EOF r=$? if [ $r -ne 0 ]; then fail "sftp failed with $r" fi cmp $DATA ${COPY}.1 || fail "corrupted copy after get" cmp $DATA ${COPY}.2 || fail "corrupted copy after put" done done
""" Importing the models from their seperate directories """ from .show import Show
<reponame>erikvdv1/PRioritizer-analyzer<filename>src/main/scala/cache/CachePairwiseDecorator.scala package cache import cache.CacheSchema.{TableNames, Tables} import cache.models.CachedPullRequestPair import git._ import scala.slick.driver.SQLiteDriver.simple._ import scala.slick.jdbc.meta.MTable /** * An info getter implementation for the JGit library. * @param provider The JGit provider. */ class CachePairwiseDecorator(base: PairwiseList, provider: CacheProvider) extends PairwiseDecorator(base) { implicit lazy val session = provider.Db lazy val mode = provider.mode lazy val insertPair = Tables.pairs.insertInvoker lazy val getPairsByKey = for { (shaOne, shaTwo) <- Parameters[(String, String)] p <- Tables.pairs if p.shaOne === shaOne if p.shaTwo === shaTwo } yield p init() override def decorate(pair: PullRequestPair): PullRequestPair = { val cachedPairOption = get(pair) if (mode == CacheMode.Read) cachedPairOption match { case Some(cachedPair) if mode == CacheMode.Read => cachedPair.fill(pair) case _ => } else if (mode == CacheMode.Write) cachedPairOption match { case Some(cachedPair) if !cachedPair.represents(pair) => insert(pair) case None => insert(pair) case _ => // Cache already up-to-date } pair } private def get(pair: PullRequestPair): Option[CachedPullRequestPair] = { val key = CachedPullRequestPair(pair) getPairsByKey(key.shaOne, key.shaTwo).firstOption } private def insert(pair: PullRequestPair): Unit = { insertPair.insertOrUpdate(CachedPullRequestPair(pair)) } def init(): Unit = { // Create table if (MTable.getTables(TableNames.pairs).list.isEmpty) Tables.pairs.ddl.create } }
import assert from 'assert'; import omit from '../src'; describe('omit', () => { it('should create a shallow copy', () => { const benjy = { name: 'Benjy' }; const copy = omit(benjy, []); assert.deepEqual(copy, benjy); assert.notEqual(copy, benjy); }); it('should drop fields which are passed in', () => { const benjy = { name: 'Benjy', age: 18 }; assert.deepEqual(omit(benjy, ['age']), { name: 'Benjy' }); assert.deepEqual(omit(benjy, ['name', 'age']), {}); }); });
<filename>titan-test/src/test/java/com/thinkaurelius/titan/graphdb/attribute/GeoshapeTest.java package com.thinkaurelius.titan.graphdb.attribute; import com.thinkaurelius.titan.core.attribute.Geoshape; import org.junit.Test; import static org.junit.Assert.*; /** * (c) <NAME> (<EMAIL>) */ public class GeoshapeTest { @Test public void testDistance() { Geoshape p1 = Geoshape.point(37.759,-122.536); Geoshape p2 = Geoshape.point(35.714,-105.938); double distance = 1496; assertEquals(distance,p1.getPoint().distance(p2.getPoint()),5.0); p1 = Geoshape.point(0.0,0.0); p2 = Geoshape.point(10.0,10.0); //System.out.println(p1.getPoint().distance(p2.getPoint())); } @Test public void testIntersection() { for (int i=0;i<50;i++) { Geoshape point = Geoshape.point(i,i); Geoshape circle = Geoshape.circle(0.0,0.0,point.getPoint().distance(Geoshape.point(0,0).getPoint())+10); assertTrue(circle.intersect(point)); assertTrue(point.intersect(circle)); assertTrue(circle.intersect(circle)); } } @Test public void testEquality() { Geoshape c = Geoshape.circle(10.0,12.5,100); Geoshape b = Geoshape.box(20.0, 22.5, 40.5, 60.5); assertEquals(Geoshape.circle(10.0,12.5,100),c); assertEquals(Geoshape.box(20.0,22.5,40.5,60.5),b); assertEquals(Geoshape.circle(10.0,12.5,100).hashCode(),c.hashCode()); assertEquals(Geoshape.box(20.0,22.5,40.5,60.5).hashCode(),b.hashCode()); assertNotSame(c.hashCode(),b.hashCode()); assertNotSame(c,b); System.out.println(c); System.out.println(b); } }
<reponame>ledinhphuong/nodejs-es6-babel-eslint import '@babel/polyfill' async function main() { await _main() console.log('main: Hello world') } async function _main() { console.log('_main: asyn-await') } main()
: ' We attempt to replicate paper_models. This script is created based on the readme page on github repo. ' #python3 -m preprocessing.prepro_util --experiment_name=corefmerge for v in 1 do # batch_size=3 in the training_args.txt file in paper_models python3 -m model.train \ --batch_size=4 --experiment_name=corefmerge \ --training_name=group_global/global_model_v$v \ --ent_vecs_regularization=l2dropout --evaluation_minutes=10 --nepoch_no_imprv=6 \ --span_emb="boundaries" \ --dim_char=50 --hidden_size_char=50 --hidden_size_lstm=150 \ --nn_components=pem_lstm_attention_global \ --fast_evaluation=True \ --attention_ent_vecs_no_regularization=True --final_score_ffnn=0_0 \ --attention_R=10 --attention_K=100 \ --train_datasets=aida_train \ --ed_datasets=aida_dev_z_aida_test_z_aida_train --ed_val_datasets=0 \ --global_thr=0.001 --global_score_ffnn=0_0 done # set the training_name argument appropriately python3 -m model.evaluate \ --training_name=group_global/global_model_v1 \ --experiment_name=corefmerge \ --ed_datasets=aida_test_z_combo_extended_strictreordered_test_z_combo_test \ --ed_val_datasets=0 --el_datasets="" --el_val_datasets=0
public static int[] sortArray(int[] arr) { int temp; for(int i = 0; i < arr.length - 1; i++) { for(int j = i+1; j < arr.length; j++) { if(arr[i] > arr[j]) { temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } } } return arr; }
#!/usr/bin/env sh # generated from catkin/cmake/template/setup.sh.in # Sets various environment variables and sources additional environment hooks. # It tries it's best to undo changes from a previously sourced setup file before. # Supported command line options: # --extend: skips the undoing of changes from a previously sourced setup file # --local: only considers this workspace but not the chained ones # In plain sh shell which doesn't support arguments for sourced scripts you can # set the environment variable `CATKIN_SETUP_UTIL_ARGS=--extend/--local` instead. # since this file is sourced either use the provided _CATKIN_SETUP_DIR # or fall back to the destination set at configure time : ${_CATKIN_SETUP_DIR:=/home/alessiohu/Desktop/progetto-labiagi/catkin_ws/devel/.private/srrg2_navigation_2d_ros} _SETUP_UTIL="$_CATKIN_SETUP_DIR/_setup_util.py" unset _CATKIN_SETUP_DIR if [ ! -f "$_SETUP_UTIL" ]; then echo "Missing Python script: $_SETUP_UTIL" return 22 fi # detect if running on Darwin platform _UNAME=`uname -s` _IS_DARWIN=0 if [ "$_UNAME" = "Darwin" ]; then _IS_DARWIN=1 fi unset _UNAME # make sure to export all environment variables export CMAKE_PREFIX_PATH if [ $_IS_DARWIN -eq 0 ]; then export LD_LIBRARY_PATH else export DYLD_LIBRARY_PATH fi unset _IS_DARWIN export PATH export PKG_CONFIG_PATH export PYTHONPATH # remember type of shell if not already set if [ -z "$CATKIN_SHELL" ]; then CATKIN_SHELL=sh fi # invoke Python script to generate necessary exports of environment variables # use TMPDIR if it exists, otherwise fall back to /tmp if [ -d "${TMPDIR:-}" ]; then _TMPDIR="${TMPDIR}" else _TMPDIR=/tmp fi _SETUP_TMP=`mktemp "${_TMPDIR}/setup.sh.XXXXXXXXXX"` unset _TMPDIR if [ $? -ne 0 -o ! -f "$_SETUP_TMP" ]; then echo "Could not create temporary file: $_SETUP_TMP" return 1 fi CATKIN_SHELL=$CATKIN_SHELL "$_SETUP_UTIL" $@ ${CATKIN_SETUP_UTIL_ARGS:-} >> "$_SETUP_TMP" _RC=$? if [ $_RC -ne 0 ]; then if [ $_RC -eq 2 ]; then echo "Could not write the output of '$_SETUP_UTIL' to temporary file '$_SETUP_TMP': may be the disk if full?" else echo "Failed to run '\"$_SETUP_UTIL\" $@': return code $_RC" fi unset _RC unset _SETUP_UTIL rm -f "$_SETUP_TMP" unset _SETUP_TMP return 1 fi unset _RC unset _SETUP_UTIL . "$_SETUP_TMP" rm -f "$_SETUP_TMP" unset _SETUP_TMP # source all environment hooks _i=0 while [ $_i -lt $_CATKIN_ENVIRONMENT_HOOKS_COUNT ]; do eval _envfile=\$_CATKIN_ENVIRONMENT_HOOKS_$_i unset _CATKIN_ENVIRONMENT_HOOKS_$_i eval _envfile_workspace=\$_CATKIN_ENVIRONMENT_HOOKS_${_i}_WORKSPACE unset _CATKIN_ENVIRONMENT_HOOKS_${_i}_WORKSPACE # set workspace for environment hook CATKIN_ENV_HOOK_WORKSPACE=$_envfile_workspace . "$_envfile" unset CATKIN_ENV_HOOK_WORKSPACE _i=$((_i + 1)) done unset _i unset _CATKIN_ENVIRONMENT_HOOKS_COUNT
<reponame>MahmudulRafi/Revo-Ticket-Management-System-Java-MySql<gh_stars>0 package dbms; public class Booking_class { private int Booking_No; private String Date; private String Time; private String Reservation_Name; private String Phone; private String Route; private String Coach_Time; private String Seat_No; private String Quantity; private String Total; private String Bill_By; public Booking_class(int Booking_No, String Date, String Time, String Reservation_Name, String Phone, String Route, String Coach_Time, String Seat_No, String Quantity, String Total, String Bill_By){ this.Booking_No = Booking_No; this.Date = Date; this.Time = Time; this.Reservation_Name = Reservation_Name; this.Phone = Phone; this.Route = Route; this.Coach_Time = Coach_Time; this.Seat_No = Seat_No; this.Quantity = Quantity; this.Total = Total; this.Bill_By = Bill_By; } public int getBooking_No() { return Booking_No; } public String getDate() { return Date; } public String getTime() { return Time; } public String getReservation_Name() { return Reservation_Name; } public String getPhone() { return Phone; } public String getRoute() { return Route; } public String getCoach_Time() { return Coach_Time; } public String getSeat_No() { return Seat_No; } public String getQuantity() { return Quantity; } public String getTotal() { return Total; } public String getBill_By() { return Bill_By; } }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_alarm_off_outline = void 0; var ic_alarm_off_outline = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0V0z", "fill": "none" }, "children": [] }, { "name": "path", "attribs": { "d": "M10.04 6.29C10.66 6.11 11.32 6 12 6c3.86 0 7 3.14 7 7 0 .68-.11 1.34-.29 1.96l1.56 1.56c.47-1.08.73-2.27.73-3.52 0-4.97-4.03-9-9-9-1.25 0-2.44.26-3.53.72l1.57 1.57zm7.297-4.48l4.607 3.845-1.28 1.535-4.61-3.843zM3.02 2.1L1.61 3.51l1.37 1.37-.92.77 1.28 1.54 1.06-.88.8.8C3.83 8.69 3 10.75 3 13c0 4.97 4.03 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.1 2.1 1.41-1.41L3.02 2.1zM12 20c-3.86 0-7-3.14-7-7 0-1.7.61-3.26 1.62-4.47l9.85 9.85C15.26 19.39 13.7 20 12 20zM7.48 3.73l.46-.38-1.28-1.54-.6.5z" }, "children": [] }] }; exports.ic_alarm_off_outline = ic_alarm_off_outline;
<filename>src/xcms/Luv.c /* * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc. * All Rights Reserved * * This file is a component of an X Window System-specific implementation * of XCMS based on the TekColor Color Management System. Permission is * hereby granted to use, copy, modify, sell, and otherwise distribute this * software and its documentation for any purpose and without fee, provided * that this copyright, permission, and disclaimer notice is reproduced in * all copies of this software and in supporting documentation. TekColor * is a trademark of Tektronix, Inc. * * Tektronix makes no representation about the suitability of this software * for any purpose. It is provided "as is" and with all faults. * * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE, * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX 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 THE PERFORMANCE OF THIS SOFTWARE. * * * NAME * CIELuv.c * * DESCRIPTION * This file contains routines that support the CIE L*u*v* * color space to include conversions to and from the CIE * XYZ space. * * DOCUMENTATION * "TekColor Color Management System, System Implementor's Manual" * and * <NAME> & <NAME>, "Principles of Color * Technology", <NAME> & Sons, Inc, 1981. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <X11/Xos.h> #include "Xlibint.h" #include "Xcmsint.h" #include "Cv.h" #include <stdio.h> /* sscanf */ /* * FORWARD DECLARATIONS */ static int CIELuv_ParseString(register char *spec, XcmsColor *pColor); static Status XcmsCIELuv_ValidSpec(XcmsColor *pColor); /* * DEFINES * Internal definitions that need NOT be exported to any package * or program using this package. */ #ifdef DBL_EPSILON # define XMY_DBL_EPSILON DBL_EPSILON #else # define XMY_DBL_EPSILON 0.00001 #endif /* * LOCAL VARIABLES */ /* * NULL terminated list of functions applied to get from CIELuv to CIEXYZ */ static XcmsConversionProc Fl_CIELuv_to_CIEXYZ[] = { XcmsCIELuvToCIEuvY, XcmsCIEuvYToCIEXYZ, NULL }; /* * NULL terminated list of functions applied to get from CIEXYZ to CIELuv */ static XcmsConversionProc Fl_CIEXYZ_to_CIELuv[] = { XcmsCIEXYZToCIEuvY, XcmsCIEuvYToCIELuv, NULL }; /* * GLOBALS */ /* * CIE Luv Color Space */ XcmsColorSpace XcmsCIELuvColorSpace = { _XcmsCIELuv_prefix, /* prefix */ XcmsCIELuvFormat, /* id */ CIELuv_ParseString, /* parseString */ Fl_CIELuv_to_CIEXYZ, /* to_CIEXYZ */ Fl_CIEXYZ_to_CIELuv, /* from_CIEXYZ */ 1 }; /************************************************************************ * * * PRIVATE ROUTINES * * * ************************************************************************/ /* * NAME * CIELuv_ParseString * * SYNOPSIS */ static int CIELuv_ParseString( register char *spec, XcmsColor *pColor) /* * DESCRIPTION * This routines takes a string and attempts to convert * it into a XcmsColor structure with XcmsCIELuvFormat. * The assumed CIELuv string syntax is: * CIELuv:<L>/<u>/<v> * Where L, u, and v are in string input format for floats * consisting of: * a. an optional sign * b. a string of numbers possibly containing a decimal point, * c. an optional exponent field containing an 'E' or 'e' * followed by a possibly signed integer string. * * RETURNS * 0 if failed, non-zero otherwise. */ { int n; char *pchar; if ((pchar = strchr(spec, ':')) == NULL) { return(XcmsFailure); } n = (int)(pchar - spec); /* * Check for proper prefix. */ if (strncmp(spec, _XcmsCIELuv_prefix, n) != 0) { return(XcmsFailure); } /* * Attempt to parse the value portion. */ if (sscanf(spec + n + 1, "%lf/%lf/%lf", &pColor->spec.CIELuv.L_star, &pColor->spec.CIELuv.u_star, &pColor->spec.CIELuv.v_star) != 3) { char *s; /* Maybe failed due to locale */ int f; if ((s = strdup(spec))) { for (f = 0; s[f]; ++f) if (s[f] == '.') s[f] = ','; else if (s[f] == ',') s[f] = '.'; if (sscanf(s + n + 1, "%lf/%lf/%lf", &pColor->spec.CIELuv.L_star, &pColor->spec.CIELuv.u_star, &pColor->spec.CIELuv.v_star) != 3) { free(s); return(XcmsFailure); } free(s); } else return(XcmsFailure); } pColor->format = XcmsCIELuvFormat; pColor->pixel = 0; return(XcmsCIELuv_ValidSpec(pColor)); } /************************************************************************ * * * PUBLIC ROUTINES * * * ************************************************************************/ /* * NAME * XcmsCIELuv_ValidSpec * * SYNOPSIS */ static Status XcmsCIELuv_ValidSpec( XcmsColor *pColor) /* * DESCRIPTION * Checks if color specification valid for CIE L*u*v*. * * RETURNS * XcmsFailure if invalid, * XcmsSuccess if valid. * */ { if (pColor->format != XcmsCIELuvFormat || (pColor->spec.CIELuv.L_star < 0.0 - XMY_DBL_EPSILON) || (pColor->spec.CIELuv.L_star > 100.0 + XMY_DBL_EPSILON)) { return(XcmsFailure); } return(XcmsSuccess); } /* * NAME * XcmsCIELuvToCIEuvY - convert CIELuv to CIEuvY * * SYNOPSIS */ Status XcmsCIELuvToCIEuvY( XcmsCCC ccc, XcmsColor *pLuv_WhitePt, XcmsColor *pColors_in_out, unsigned int nColors) /* * DESCRIPTION * Converts color specifications in an array of XcmsColor * structures from CIELuv format to CIEuvY format. * * RETURNS * XcmsFailure if failed, * XcmsSuccess if succeeded. * */ { XcmsColor *pColor = pColors_in_out; XcmsColor whitePt; XcmsCIEuvY uvY_return; XcmsFloat tmpVal; register int i; /* * Check arguments */ if (pLuv_WhitePt == NULL || pColors_in_out == NULL) { return(XcmsFailure); } /* * Make sure white point is in CIEuvY form */ if (pLuv_WhitePt->format != XcmsCIEuvYFormat) { /* Make copy of the white point because we're going to modify it */ memcpy((char *)&whitePt, (char *)pLuv_WhitePt, sizeof(XcmsColor)); if (!_XcmsDIConvertColors(ccc, &whitePt, (XcmsColor *)NULL, 1, XcmsCIEuvYFormat)) { return(XcmsFailure); } pLuv_WhitePt = &whitePt; } /* Make sure it is a white point, i.e., Y == 1.0 */ if (pLuv_WhitePt->spec.CIEuvY.Y != 1.0) { return(XcmsFailure); } /* * Now convert each XcmsColor structure to CIEXYZ form */ for (i = 0; i < nColors; i++, pColor++) { /* Make sure original format is CIELuv and is valid */ if (!XcmsCIELuv_ValidSpec(pColor)) { return(XcmsFailure); } if (pColor->spec.CIELuv.L_star < 7.99953624) { uvY_return.Y = pColor->spec.CIELuv.L_star / 903.29; } else { tmpVal = (pColor->spec.CIELuv.L_star + 16.0) / 116.0; uvY_return.Y = tmpVal * tmpVal * tmpVal; /* tmpVal ** 3 */ } if (pColor->spec.CIELuv.L_star == 0.0) { uvY_return.u_prime = pLuv_WhitePt->spec.CIEuvY.u_prime; uvY_return.v_prime = pLuv_WhitePt->spec.CIEuvY.v_prime; } else { tmpVal = 13.0 * (pColor->spec.CIELuv.L_star / 100.0); uvY_return.u_prime = pColor->spec.CIELuv.u_star/tmpVal + pLuv_WhitePt->spec.CIEuvY.u_prime; uvY_return.v_prime = pColor->spec.CIELuv.v_star/tmpVal + pLuv_WhitePt->spec.CIEuvY.v_prime; } /* Copy result to pColor */ memcpy((char *)&pColor->spec, (char *)&uvY_return, sizeof(XcmsCIEuvY)); /* Identify that the format is now CIEuvY */ pColor->format = XcmsCIEuvYFormat; } return(XcmsSuccess); } /* * NAME * XcmsCIEuvYToCIELuv - convert CIEuvY to CIELuv * * SYNOPSIS */ Status XcmsCIEuvYToCIELuv( XcmsCCC ccc, XcmsColor *pLuv_WhitePt, XcmsColor *pColors_in_out, unsigned int nColors) /* * DESCRIPTION * Converts color specifications in an array of XcmsColor * structures from CIEuvY format to CIELab format. * * RETURNS * XcmsFailure if failed, * XcmsSuccess if succeeded. * */ { XcmsColor *pColor = pColors_in_out; XcmsColor whitePt; XcmsCIELuv Luv_return; XcmsFloat tmpVal; register int i; /* * Check arguments */ if (pLuv_WhitePt == NULL || pColors_in_out == NULL) { return(XcmsFailure); } /* * Make sure white point is in CIEuvY form */ if (pLuv_WhitePt->format != XcmsCIEuvYFormat) { /* Make copy of the white point because we're going to modify it */ memcpy((char *)&whitePt, (char *)pLuv_WhitePt, sizeof(XcmsColor)); if (!_XcmsDIConvertColors(ccc, &whitePt, (XcmsColor *)NULL, 1, XcmsCIEuvYFormat)) { return(XcmsFailure); } pLuv_WhitePt = &whitePt; } /* Make sure it is a white point, i.e., Y == 1.0 */ if (pLuv_WhitePt->spec.CIEuvY.Y != 1.0) { return(XcmsFailure); } /* * Now convert each XcmsColor structure to CIEXYZ form */ for (i = 0; i < nColors; i++, pColor++) { if (!_XcmsCIEuvY_ValidSpec(pColor)) { return(XcmsFailure); } /* Now convert the uvY to Luv */ Luv_return.L_star = (pColor->spec.CIEuvY.Y < 0.008856) ? (pColor->spec.CIEuvY.Y * 903.29) : ((XcmsFloat)(XCMS_CUBEROOT(pColor->spec.CIEuvY.Y) * 116.0) - 16.0); tmpVal = 13.0 * (Luv_return.L_star / 100.0); Luv_return.u_star = tmpVal * (pColor->spec.CIEuvY.u_prime - pLuv_WhitePt->spec.CIEuvY.u_prime); Luv_return.v_star = tmpVal * (pColor->spec.CIEuvY.v_prime - pLuv_WhitePt->spec.CIEuvY.v_prime); /* Copy result to pColor */ memcpy((char *)&pColor->spec, (char *)&Luv_return, sizeof(XcmsCIELuv)); /* Identify that the format is now CIEuvY */ pColor->format = XcmsCIELuvFormat; } return(XcmsSuccess); }
<reponame>iondrimba/Ajaxme module.exports = function(grunt) { return task = { target: { options: {}, dev: { options: { script: 'server.js' } } } } };
import unittest import util class UtilTest(unittest.TestCase): def test_part1_inc(self): test_cases = ( (1200, (1222, True)), (1222, (1223, True)), (1223, (1224, True)), (1229, (1233, True)), (1233, (1234, False)), (1239, (1244, True)), (1244, (1245, False)), ) for test_case in test_cases: self.assertEqual(test_case[1], util.part1_inc(test_case[0])) def test_part2_filter(self): self.assertEqual(True, util.part2_filter(112233)) self.assertEqual(False, util.part2_filter(123444)) self.assertEqual(True, util.part2_filter(111122)) if __name__ == '__main__': unittest.main()
#!/bin/bash set -ex echo "Running python app: ${python_application}" python3 ${python_application} ${db_host} ${db_port} ${db_name} ${db_username} ${db_password} ${db_sslmode} || error_exit "Python file not found."
#!/bin/bash umask 022 # SAF-527 usage() { echo "Usage: $(basename "$0") <backend|httpd> exit_code" echo echo "Makes a copy of logs of selected program. Adds information about exit code." } >&2 if [[ $# -ne 2 ]]; then usage exit 2 fi program=$1 exit_code=$2 if [[ $program != "backend" && $program != "httpd" ]]; then echo "Unknown program $program" >&2 usage exit 2 fi errPath="/mnt/log/safekiddo/$program.err" logPath="/mnt/log/safekiddo/$program.log" echo "--- CRASH with error code $exit_code, date: $(date) ---" >> "$errPath" reportDir="/mnt/log/safekiddo/CrashReport_$(date --utc "+%Y-%m-%d_%H%M%S")" mkdir "$reportDir" cp "$errPath" "$reportDir/" cp "$logPath" "$reportDir/" gzip -9 "$reportDir/"*
#network interface on which to limit traffic IF="eth0" #limit of the network interface in question LINKCEIL="1gbit" #limit outbound Bitcoin protocol traffic to this rate LIMIT="160kbit" #defines the address space for which you wish to disable rate limiting LOCALNET="192.168.0.0/16" #delete existing rules tc qdisc del dev ${IF} root #add root class tc qdisc add dev ${IF} root handle 1: htb default 10 #add parent class tc class add dev ${IF} parent 1: classid 1:1 htb rate ${LINKCEIL} ceil ${LINKCEIL} #add our two classes. one unlimited, another limited tc class add dev ${IF} parent 1:1 classid 1:10 htb rate ${LINKCEIL} ceil ${LINKCEIL} prio 0 tc class add dev ${IF} parent 1:1 classid 1:11 htb rate ${LIMIT} ceil ${LIMIT} prio 1 #add handles to our classes so packets marked with <x> go into the class with "... handle <x> fw ..." tc filter add dev ${IF} parent 1: protocol ip prio 1 handle 1 fw classid 1:10 tc filter add dev ${IF} parent 1: protocol ip prio 2 handle 2 fw classid 1:11 #delete any existing rules #disable for now #ret=0 #while [ $ret -eq 0 ]; do # iptables -t mangle -D OUTPUT 1 # ret=$? #done #limit outgoing traffic to and from port 22365. but not when dealing with a host on the local network # (defined by $LOCALNET) # --set-mark marks packages matching these criteria with the number "2" # these packages are filtered by the tc filter with "handle 2" # this filter sends the packages into the 1:11 class, and this class is limited to ${LIMIT} iptables -t mangle -A OUTPUT -p tcp -m tcp --dport 22365 ! -d ${LOCALNET} -j MARK --set-mark 0x2 iptables -t mangle -A OUTPUT -p tcp -m tcp --sport 22365 ! -d ${LOCALNET} -j MARK --set-mark 0x2
<gh_stars>100-1000 package org.openwebflow.assign.permission; public interface ActivityPermissionManager { /** * 获取指定活动的权限定义信息 */ ActivityPermissionEntity load(String processDefinitionId, String taskDefinitionKey, boolean addOrRemove) throws Exception; }
#!/bin/bash # Usage: # ./experiments/scripts/faster_rcnn_end2end.sh GPU NET DATASET [options args to {train,test}_net.py] # DATASET is either pascal_voc or coco. # # Example: # ./experiments/scripts/faster_rcnn_end2end.sh 0 VGG_CNN_M_1024 pascal_voc \ # --set EXP_DIR foobar RNG_SEED 42 TRAIN.SCALES "[400, 500, 600, 700]" set -x set -e export PYTHONUNBUFFERED="True" GPU_ID=$1 NET=VGG8_roialign_anchor9_v2 NET_lc=${NET,,} DATASET=viva array=( $@ ) len=${#array[@]} EXTRA_ARGS=${array[@]:3:$len} EXTRA_ARGS_SLUG=${EXTRA_ARGS// /_} case $DATASET in pascal_voc) TRAIN_IMDB="voc_2007_trainval" TEST_IMDB="voc_2007_test" PT_DIR="pascal_voc" ITERS=70000 ;; coco) # This is a very long and slow training schedule # You can probably use fewer iterations and reduce the # time to the LR drop (set in the solver to 350,000 iterations). TRAIN_IMDB="coco_2014_train" TEST_IMDB="coco_2014_minival" PT_DIR="coco" ITERS=490000 ;; viva) TRAIN_IMDB="viva_trainval" TEST_IMDB="viva_test" PT_DIR="viva" ITERS=160000 ;; *) echo "No dataset given" exit ;; esac LOG="experiments/logs/faster_rcnn_end2end_${NET}_${EXTRA_ARGS_SLUG}.txt.`date +'%Y-%m-%d_%H-%M-%S'`" exec &> >(tee -a "$LOG") echo Logging output to "$LOG" time ./tools/train_net.py --gpu ${GPU_ID} \ --solver models/${PT_DIR}/${NET}/solver.prototxt \ --weights data/imagenet_models/VGG16.v2.caffemodel \ --imdb ${TRAIN_IMDB} \ --iters ${ITERS} \ --cfg experiments/cfgs/faster_rcnn_end2end.yml \ ${EXTRA_ARGS} set +x NET_FINAL=`grep -B 1 "done solving" ${LOG} | grep "Wrote snapshot" | awk '{print $4}'` set -x time ./tools/test_net.py --gpu ${GPU_ID} \ --def models/${PT_DIR}/${NET}/test.prototxt \ --net ${NET_FINAL} \ --imdb ${TEST_IMDB} \ --cfg experiments/cfgs/faster_rcnn_end2end.yml \ ${EXTRA_ARGS}
<filename>.cache/api-runner-browser-plugins.js module.exports = [{ plugin: require('/Users/sallynorthmore/Sites/me/portfolio-gatsby/node_modules/gatsby-plugin-netlify-cms/gatsby-browser'), options: {"plugins":[]}, }]
#!/usr/bin/env bash function exit_with_usage { cat << EOF usage: package run package command based on different spark version. Inputs are specified with the following environment variables: MLSQL_SPARK_VERSION - the spark version, 2.2/2.3/2.4 default 2.3 DRY_RUN true|false default false DISTRIBUTION true|false default false DATASOURCE_INCLUDED true|false default false EOF exit 1 } set -e set -o pipefail if [[ $@ == *"help"* ]]; then exit_with_usage fi SELF=$(cd $(dirname $0) && pwd) cd $SELF cd .. MLSQL_SPARK_VERSION=${MLSQL_SPARK_VERSION:-2.3} SCALA_VERSION=${SCALA_VERSION:-2.11} DRY_RUN=${DRY_RUN:-false} DISTRIBUTION=${DISTRIBUTION:-false} OSS_ENABLE=${OSS_ENABLE:-false} DATASOURCE_INCLUDED=${DATASOURCE_INCLUDED:-false} COMMAND=${COMMAND:-package} for env in MLSQL_SPARK_VERSION DRY_RUN DISTRIBUTION; do if [[ -z "${!env}" ]]; then echo "===$env must be set to run this script===" echo "===Please run ./dev/package.sh help to get how to use.===" exit 1 fi done # before we compile and package, correct the version in MLSQLVersion #--------------------- unameOut="$(uname -s)" case "${unameOut}" in Linux*) machine=Linux;; Darwin*) machine=Mac;; CYGWIN*) machine=Cygwin;; MINGW*) machine=MinGw;; *) machine="UNKNOWN:${unameOut}" esac echo ${machine} current_version=$(cat pom.xml|grep -e '<version>.*</version>' | head -n 1 | tail -n 1 | cut -d'>' -f2 | cut -d '<' -f1) MLSQL_VERSION_FILE="./streamingpro-mlsql/src/main/java/tech/mlsql/core/version/MLSQLVersion.scala" if [[ "${machine}" == "Linux" ]] then sed -i "s/MLSQL_VERSION_PLACEHOLDER/${current_version}/" ${MLSQL_VERSION_FILE} elif [[ "${machine}" == "Mac" ]] then sed -i '' "s/MLSQL_VERSION_PLACEHOLDER/${current_version}/" ${MLSQL_VERSION_FILE} else echo "Windows is not supported yet" exit 0 fi #--------------------- BASE_PROFILES="-Pscala-${SCALA_VERSION} -Ponline -Phive-thrift-server -Pcrawler" if [[ "$MLSQL_SPARK_VERSION" > "2.2" ]]; then BASE_PROFILES="$BASE_PROFILES -Pxgboost" else BASE_PROFILES="$BASE_PROFILES" fi BASE_PROFILES="$BASE_PROFILES -Pspark-$MLSQL_SPARK_VERSION.0 -Pstreamingpro-spark-$MLSQL_SPARK_VERSION.0-adaptor" if [[ ${DISTRIBUTION} == "true" ]];then BASE_PROFILES="$BASE_PROFILES -Passembly" else BASE_PROFILES="$BASE_PROFILES -pl streamingpro-mlsql -am" fi export MAVEN_OPTS="-Xmx6000m" SKIPTEST="" TESTPROFILE="" if [[ "${COMMAND}" == "package" ]];then BASE_PROFILES="$BASE_PROFILES -Pshade" fi if [[ "${COMMAND}" == "package" || "${COMMAND}" == "deploy" ]];then SKIPTEST="-DskipTests" fi if [[ "${COMMAND}" == "test" ]];then TESTPROFILE="-Punit-test" fi if [[ "${COMMAND}" == "deploy" ]];then BASE_PROFILES="$BASE_PROFILES -Prelease-sign-artifacts" BASE_PROFILES="$BASE_PROFILES -Pdisable-java8-doclint" fi if [[ "${OSS_ENABLE}" == "true" ]];then BASE_PROFILES="$BASE_PROFILES -Poss-support" fi if [[ "$DATASOURCE_INCLUDED" == "true" ]];then BASE_PROFILES="$BASE_PROFILES -Punit-test" fi if [[ ${DRY_RUN} == "true" ]];then cat << EOF mvn clean ${COMMAND} ${SKIPTEST} ${BASE_PROFILES} ${TESTPROFILE} EOF else cat << EOF mvn clean ${COMMAND} ${SKIPTEST} ${BASE_PROFILES} ${TESTPROFILE} EOF mvn clean ${COMMAND} ${SKIPTEST} ${BASE_PROFILES} ${TESTPROFILE} fi
#!/bin/bash # Copyright OpenSearch Contributors. # SPDX-License-Identifier: Apache-2.0 set -e DIR="$(dirname "$0")" "$DIR/run.sh" "$DIR/python/test.py" $@
#ifndef TEST_3D_CUBE_H #define TEST_3D_CUBE_H static float g_cube_vert_data[] = { -1.0f,-1.0f,-1.0f, // triangle 1 : begin -1.0f,-1.0f, 1.0f, -1.0f, 1.0f, 1.0f, // triangle 1 : end 1.0f, 1.0f,-1.0f, // triangle 2 : begin -1.0f,-1.0f,-1.0f, -1.0f, 1.0f,-1.0f, // triangle 2 : end 1.0f,-1.0f, 1.0f, -1.0f,-1.0f,-1.0f, 1.0f,-1.0f,-1.0f, 1.0f, 1.0f,-1.0f, 1.0f,-1.0f,-1.0f, -1.0f,-1.0f,-1.0f, -1.0f,-1.0f,-1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f,-1.0f, 1.0f,-1.0f, 1.0f, -1.0f,-1.0f, 1.0f, -1.0f,-1.0f,-1.0f, -1.0f, 1.0f, 1.0f, -1.0f,-1.0f, 1.0f, 1.0f,-1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f,-1.0f,-1.0f, 1.0f, 1.0f,-1.0f, 1.0f,-1.0f,-1.0f, 1.0f, 1.0f, 1.0f, 1.0f,-1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f,-1.0f, -1.0f, 1.0f,-1.0f, 1.0f, 1.0f, 1.0f, -1.0f, 1.0f,-1.0f, -1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, -1.0f, 1.0f, 1.0f, 1.0f,-1.0f, 1.0f }; static float g_cube_colour_data[] = { 0.583f, 0.771f, 0.014f, 0.609f, 0.115f, 0.436f, 0.327f, 0.483f, 0.844f, 0.822f, 0.569f, 0.201f, 0.435f, 0.602f, 0.223f, 0.310f, 0.747f, 0.185f, 0.597f, 0.770f, 0.761f, 0.559f, 0.436f, 0.730f, 0.359f, 0.583f, 0.152f, 0.483f, 0.596f, 0.789f, 0.559f, 0.861f, 0.639f, 0.195f, 0.548f, 0.859f, 0.014f, 0.184f, 0.576f, 0.771f, 0.328f, 0.970f, 0.406f, 0.615f, 0.116f, 0.676f, 0.977f, 0.133f, 0.971f, 0.572f, 0.833f, 0.140f, 0.616f, 0.489f, 0.997f, 0.513f, 0.064f, 0.945f, 0.719f, 0.592f, 0.543f, 0.021f, 0.978f, 0.279f, 0.317f, 0.505f, 0.167f, 0.620f, 0.077f, 0.347f, 0.857f, 0.137f, 0.055f, 0.953f, 0.042f, 0.714f, 0.505f, 0.345f, 0.783f, 0.290f, 0.734f, 0.722f, 0.645f, 0.174f, 0.302f, 0.455f, 0.848f, 0.225f, 0.587f, 0.040f, 0.517f, 0.713f, 0.338f, 0.053f, 0.959f, 0.120f, 0.393f, 0.621f, 0.362f, 0.673f, 0.211f, 0.457f, 0.820f, 0.883f, 0.371f, 0.982f, 0.099f, 0.879f }; void test_3d_cube_setup (struct test_data *t) { va_create (&t->vao); vb_layout_create (&t->layout); vb_create (&t->vert_vbo, g_cube_vert_data, sizeof (g_cube_vert_data)); printf ("vert_vbo id=%u\n", t->vert_vbo.renderer_id); vb_layout_push_f (&t->layout, &t->vert_vbo, 3); // xyz vb_create (&t->colour_vbo, g_cube_colour_data, sizeof (g_cube_colour_data)); printf ("colour_vbo id=%u\n", t->colour_vbo.renderer_id); vb_layout_push_f (&t->layout, &t->colour_vbo, 3); // rgb va_add_vb_layout (&t->vao, &t->layout); shader_create (&t->shader, "data/cube.vs", "data/cube.fs"); shader_bind (&t->shader); mat4_t projection = m4_perspective (45.0f, 800.0f / 600.0f, 0.01f, 100.0f); mat4_t view = m4_look_at (vec3 (4, 3, 3), vec3 (0, 0, 0), vec3 (0, 1, 0)); mat4_t model = m4_identity (); t->mvp = m4_mul (m4_mul (projection, view), model); shader_set_uniform_m4f (&t->shader, "u_mvp", &t->mvp.m[0][0]); } void test_3d_cube_update (struct test_data *t, float dt) {} void test_3d_cube_render (struct test_data *t) { renderer_clear (); shader_bind (&t->shader); shader_set_uniform_m4f (&t->shader, "u_mvp", &t->mvp.m[0][0]); va_bind (&t->vao); GLCALL (glDrawArrays (GL_TRIANGLES, 0, 12 * 3)); } void test_3d_cube_render_gui (struct test_data *t, struct nk_context *nk) {} void test_3d_cube_teardown (struct test_data *t) { shader_delete (&t->shader); } #endif /* TEST_3D_CUBE_H */
def binary_search(arr, target): low = 0 high = len(arr) - 1 mid = 0 while low <= high: mid = (high + low) // 2 # Check if x is present at mid if arr[mid] < target: low = mid + 1 # If x is greater, ignore left half elif arr[mid] > target: high = mid - 1 # If x is smaller, ignore right half else: return mid # If we reach here, then the element was not present return -1
function getSumOfOddNumbers() { let total = 0; for (let i = 1; i <= 100; i++) { if (i % 2 !== 0) { total += i; } } return total; } let result = getSumOfOddNumbers(); console.log(result);
import random from dataclasses import dataclass import math import datasets from typing import Union, List, Tuple, Dict from torch.nn.utils.rnn import pad_sequence import torch from torch.utils.data import Dataset # from .arguments import DataArguments, RerankerTrainingArguments from transformers import PreTrainedTokenizer, BatchEncoding from transformers import DataCollatorWithPadding import numpy as np from tqdm import tqdm import os import random from dataclasses import dataclass import math import datasets from typing import Union, List, Tuple, Dict from torch.nn.utils.rnn import pad_sequence import torch from torch.utils.data import Dataset # from .arguments import DataArguments, RerankerTrainingArguments from transformers import PreTrainedTokenizer, BatchEncoding from transformers import DataCollatorWithPadding import numpy as np from tqdm import tqdm import os class HBERTPretrainedPointWiseDataset(Dataset): def __init__( self, args, tokenizer: PreTrainedTokenizer, dataset_cache_dir, dataset_script_dir, max_seq_len, ): self.max_seq_len = max_seq_len train_file = args.train_file if os.path.isdir(train_file): filenames = os.listdir(train_file) train_files = [os.path.join(train_file, fn) for fn in filenames] else: train_files = train_file block_size_10MB = 10<<20 print("start loading datasets, train_files: ", train_files) print(dataset_script_dir) self.nlp_dataset = datasets.load_dataset( f'{dataset_script_dir}/json.py', data_files=train_files, ignore_verifications=False, cache_dir=dataset_cache_dir, features=datasets.Features({ "text_tokens_idx":[datasets.Value("int32")], "node_tokens_idx":[datasets.Value("int32")], "inputs_type_idx":[datasets.Value("int32")], "text_labels":[datasets.Value("int32")], "node_labels":[datasets.Value("int32")], "text_layer_index":[datasets.Value("int32")], "node_layer_index":[datasets.Value("int32")], "text_num":[datasets.Value("int32")], "node_num":[datasets.Value("int32")], "waiting_mask":[datasets.Value("int32")], "position":[datasets.Value("int32")], }), block_size = block_size_10MB )['train'] self.tok = tokenizer self.SEP = [self.tok.sep_token_id] self.args = args self.total_len = len(self.nlp_dataset) print("loading dataset ok! len of dataset,", self.total_len) def __len__(self): return self.total_len def __getitem__(self, item): data = self.nlp_dataset[item] #token_type_ids = np.array([0]*len(data['tokens_idx'])) #waiting_mask = data['waiting_mask'] max_seq_len = self.max_seq_len #max_tag_len = 32 #waiting_mask = torch.BoolTensor(waiting_mask).view(-1,max_seq_len) #tag_len,_ = waiting_mask.size() #data['layer_index'] = data['layer_index']+(max_tag_len-len(data['layer_index']))*[-1] # waiting_mask = torch.cat((torch.zeros(tag_len,1),waiting_mask),dim=1)[:,:max_seq_len].contiguous().view(-1) # data = { # "input_ids": list(data['tokens_idx']), # "token_type_ids": list(token_type_ids), # "inputs_type_idx":list(data['type_idx']), # "labels": list(data['labels']), # "layer_index":torch.LongTensor(data['layer_index']), # "waiting_mask":waiting_mask, # } text_num = data['text_num'] node_num = data['node_num'] position_len = max([text_num[i]+node_num[i] for i in range(len(text_num))]) data = { "token_input_ids":torch.LongTensor(data['text_tokens_idx']), "node_input_ids":torch.LongTensor(data['node_tokens_idx']), "inputs_type_idx":torch.LongTensor(data['inputs_type_idx']), "token_labels":torch.LongTensor(data['text_labels']), "node_labels":torch.LongTensor(data['node_labels']), "token_layer_index":torch.LongTensor(data['text_layer_index']), "node_layer_index":torch.LongTensor(data['node_layer_index']), "seq_num":list(data['text_num']), "node_num":list(data['node_num']), "waiting_mask":torch.LongTensor(data['waiting_mask']), "position":list(data['position']), "position_len":position_len, } return BatchEncoding(data) @dataclass class HBERTPointCollator(DataCollatorWithPadding): """ Wrapper that does conversion from List[Tuple[encode_qry, encode_psg]] to List[qry], List[psg] and pass batch separately to the actual collator. Abstract out data detail for the model. """ def __call__( self, features ): max_seq_len = 256 max_node_len = 10 # print(features) batch_size = len(features) mlm_labels = [] inputs_type_idx = [] layer_index = [] waiting_mask = [] position = [] layer_num = len(features[0]['seq_num']) token_input_ids = [] node_input_ids = [] inputs_type_idx = [] token_labels= [] node_labels= [] token_layer_index= [] node_layer_index= [] seq_num= [] node_num= [] waiting_mask= [] for i in range(batch_size): one_position = features[i]['position'] position_len = features[i]['position_len'] one_position = [torch.LongTensor(one_position[j:j+position_len]) for j in range(0, len(one_position),position_len )] assert len(one_position) == layer_num position.extend(one_position) token_input_ids.append(features[i]['token_input_ids']) node_input_ids.append(features[i]['node_input_ids']) inputs_type_idx.append(features[i]['inputs_type_idx']) token_labels.append(features[i]['token_labels']) token_layer_index.append(features[i]['token_layer_index']) node_layer_index.append(features[i]['node_layer_index']) seq_num.append(features[i]['seq_num']) node_num.append(features[i]['node_num']) waiting_mask.append(features[i]['waiting_mask']) node_labels.append(features[i]['node_labels']) del features[i]['token_input_ids'] del features[i]['node_input_ids'] del features[i]['inputs_type_idx'] del features[i]['token_labels'] del features[i]['node_labels'] del features[i]['token_layer_index'] del features[i]['node_layer_index'] del features[i]['seq_num'] del features[i]['node_num'] del features[i]['waiting_mask'] del features[i]['position'] del features[i]['position_len'] features = {} features["token_input_ids"] = pad_sequence(token_input_ids, batch_first=True).view(batch_size,-1,max_seq_len) features["node_input_ids"] = pad_sequence(node_input_ids, batch_first=True).view(batch_size,-1,max_node_len) features["inputs_type_idx"] = pad_sequence(inputs_type_idx, batch_first=True).view(batch_size,-1,max_seq_len) features["token_labels"] = pad_sequence(token_labels, batch_first=True).view(batch_size,-1,max_seq_len) features["node_labels"] = pad_sequence(node_labels, batch_first=True).view(batch_size,-1,max_node_len) features["token_layer_index"] = pad_sequence(token_layer_index, batch_first=True) features["node_layer_index"] = pad_sequence(node_layer_index, batch_first=True) features["seq_num"] = torch.LongTensor(seq_num) features["node_num"] = torch.LongTensor(node_num) features["waiting_mask"] = pad_sequence(waiting_mask, batch_first=True).view(batch_size,-1,max_node_len) features["position"] = pad_sequence(position, batch_first=True).view(batch_size,layer_num,-1) # features['input_ids'] = features['input_ids'].view(batch_size,-1,max_seq_len) # features['token_type_ids']=features['token_type_ids'].view(batch_size,-1,max_seq_len) # features['labels'] = torch.LongTensor(mlm_labels_matrix).view(batch_size,-1,max_seq_len) # features['inputs_type_idx'] = torch.LongTensor(inputs_type_idx_matrix).view(batch_size,-1,max_seq_len) # features['layer_index'] = pad_sequence(layer_index).transpose(0,1) # print(features['layer_index'].size()) # features['waiting_mask'] = pad_sequence(waiting_mask).transpose(0,1).view(batch_size,-1,max_seq_len) # print("gen features") # print("---------------------------") # print(features) # print("#####################") return features @dataclass class HirachicalBERTPointCollator(DataCollatorWithPadding): """ Wrapper that does conversion from List[Tuple[encode_qry, encode_psg]] to List[qry], List[psg] and pass batch separately to the actual collator. Abstract out data detail for the model. """ def __call__( self, features ): max_seq_len = 32 # print(features) batch_size = len(features) mlm_labels = [] inputs_type_idx = [] layer_index = [] waiting_mask = [] for i in range(batch_size): mlm_labels.append(features[i]['labels']) inputs_type_idx.append(features[i]['inputs_type_idx']) layer_index.append(features[i]['layer_index']) waiting_mask.append(features[i]['waiting_mask']) del features[i]['labels'] del features[i]['inputs_type_idx'] del features[i]['layer_index'] del features[i]['waiting_mask'] # print("++++++++++++++++++++") #print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@") features = super().__call__(features) max_len = features['input_ids'].size()[1] # print("max_len", max_len) mlm_labels_matrix = np.ones([batch_size, max_len]) * -100 inputs_type_idx_matrix = np.zeros([batch_size,max_len]) for i in range(batch_size): mlm_labels_matrix[i][:len(mlm_labels[i])] = mlm_labels[i] inputs_type_idx_matrix[i][:len(inputs_type_idx[i])]=inputs_type_idx[i] features['input_ids'] = features['input_ids'].view(batch_size,-1,max_seq_len) features['token_type_ids']=features['token_type_ids'].view(batch_size,-1,max_seq_len) features['labels'] = torch.LongTensor(mlm_labels_matrix).view(batch_size,-1,max_seq_len) features['inputs_type_idx'] = torch.LongTensor(inputs_type_idx_matrix).view(batch_size,-1,max_seq_len) features['layer_index'] = pad_sequence(layer_index).transpose(0,1) print(features['layer_index'].size()) features['waiting_mask'] = pad_sequence(waiting_mask).transpose(0,1).view(batch_size,-1,max_seq_len) # print("gen features") # print("---------------------------") # print(features) # print("#####################") return features class HirachicalBERTPretrainedPointWiseDataset(Dataset): def __init__( self, args, tokenizer: PreTrainedTokenizer, dataset_cache_dir, dataset_script_dir, ): train_file = args.train_file if os.path.isdir(train_file): filenames = os.listdir(train_file) train_files = [os.path.join(train_file, fn) for fn in filenames] else: train_files = train_file block_size_10MB = 10<<20 print("start loading datasets, train_files: ", train_files) print(dataset_script_dir) self.nlp_dataset = datasets.load_dataset( f'{dataset_script_dir}/json.py', data_files=train_files, ignore_verifications=False, cache_dir=dataset_cache_dir, features=datasets.Features({ "tokens_idx":[datasets.Value("int32")], "type_idx":[datasets.Value("int32")], "labels":[datasets.Value("int32")], "layer_index":[datasets.Value("int32")], "waiting_mask":[datasets.Value("int32")], }), block_size = block_size_10MB )['train'] self.tok = tokenizer self.SEP = [self.tok.sep_token_id] self.args = args self.total_len = len(self.nlp_dataset) print("loading dataset ok! len of dataset,", self.total_len) def __len__(self): return self.total_len def __getitem__(self, item): data = self.nlp_dataset[item] token_type_ids = np.array([0]*len(data['tokens_idx'])) waiting_mask = data['waiting_mask'] max_seq_len = 32 #max_tag_len = 32 waiting_mask = torch.BoolTensor(waiting_mask).view(-1,max_seq_len) tag_len,_ = waiting_mask.size() #data['layer_index'] = data['layer_index']+(max_tag_len-len(data['layer_index']))*[-1] waiting_mask = torch.cat((torch.zeros(tag_len,1),waiting_mask),dim=1)[:,:max_seq_len].contiguous().view(-1) data = { "input_ids": list(data['tokens_idx']), "token_type_ids": list(token_type_ids), "inputs_type_idx":list(data['type_idx']), "labels": list(data['labels']), "layer_index":torch.LongTensor(data['layer_index']), "waiting_mask":waiting_mask, } return BatchEncoding(data) class BERTGATPretrainedPointWiseDataset(Dataset): def __init__( self, args, tokenizer: PreTrainedTokenizer, dataset_cache_dir, dataset_script_dir, ): train_file = args.train_file if os.path.isdir(train_file): filenames = os.listdir(train_file) train_files = [os.path.join(train_file, fn) for fn in filenames] else: train_files = train_file block_size_10MB = 10<<20 print("start loading datasets, train_files: ", train_files) print(dataset_script_dir) self.nlp_dataset = datasets.load_dataset( f'{dataset_script_dir}/json.py', data_files=train_files, ignore_verifications=False, cache_dir=dataset_cache_dir, features=datasets.Features({ "segment_ids": [datasets.Value("int32")], "tokens_idx":[datasets.Value("int32")], "type_idx":[datasets.Value("int32")], "labels":[datasets.Value("int32")], "attention_mask":[datasets.Value("int32")], "mask_tag_idx":[datasets.Value("int32")], }), block_size = block_size_10MB )['train'] self.tok = tokenizer self.SEP = [self.tok.sep_token_id] self.args = args self.total_len = len(self.nlp_dataset) print("loading dataset ok! len of dataset,", self.total_len) def __len__(self): return self.total_len def __getitem__(self, item): data = self.nlp_dataset[item] mask_tag_idx = data['mask_tag_idx'] above_mask = np.array([0]*int(len(data['tokens_idx'])/128)) above_mask[mask_tag_idx]=1 above_mask = np.insert(above_mask,0,[0]) token_type_ids = np.array([0]*len(data['tokens_idx'])) data = { "input_ids": list(data['tokens_idx']), "token_type_ids": list(token_type_ids), "inputs_type_idx":list(data['type_idx']), "labels": list(data['labels']), "attention_mask":list(data['attention_mask']), "above_mask_idx":torch.BoolTensor(above_mask), } return BatchEncoding(data) class BERTPretrainedPointWiseDataset(Dataset): def __init__( self, args, tokenizer: PreTrainedTokenizer, dataset_cache_dir, dataset_script_dir, ): train_file = args.train_file if os.path.isdir(train_file): filenames = os.listdir(train_file) train_files = [os.path.join(train_file, fn) for fn in filenames] else: train_files = train_file print("start loading datasets, train_files: ", train_files) self.nlp_dataset = datasets.load_dataset( f'{dataset_script_dir}/json.py', data_files=train_files, ignore_verifications=False, cache_dir=dataset_cache_dir, features=datasets.Features({ "masked_lm_labels": [datasets.Value("string")], "masked_lm_positions": [datasets.Value("int32")], "segment_ids": [datasets.Value("int32")], "tokens":[datasets.Value("string")], "tokens_idx":[datasets.Value("int32")], "type_idx":[datasets.Value("int32")], "masked_lm_labels_idxs":[datasets.Value("int32")], }) )['train'] self.tok = tokenizer self.SEP = [self.tok.sep_token_id] self.args = args self.total_len = len(self.nlp_dataset) print("loading dataset ok! len of dataset,", self.total_len) def __len__(self): return self.total_len def __getitem__(self, item): data = self.nlp_dataset[item] labels = np.array([-100] * len(data['tokens_idx'])) masked_lm_positions = data['masked_lm_positions'] masked_lm_labels = data['masked_lm_labels_idxs'] type_idx = data['type_idx'] labels[masked_lm_positions] = masked_lm_labels token_type_ids = np.array([0]*len(data['tokens_idx'])) data = { "input_ids": list(data['tokens_idx']), "token_type_ids": list(token_type_ids), "inputs_type_idx":list(data['type_idx']), "labels": list(labels) } return BatchEncoding(data) class BERTPretrainedPairWiseDataset(Dataset): def __init__( self, args, tokenizer: PreTrainedTokenizer, dataset_cache_dir, dataset_script_dir, ): train_file = args.train_file if os.path.isdir(train_file): filenames = os.listdir(train_file) train_files = [os.path.join(train_file, fn) for fn in filenames] else: train_files = train_file print("start loading datasets, train_files: ", train_files) mymydatasets = [] for i in range(10): print("start loading dataset", i) nlp_dataset = datasets.load_dataset( f'{dataset_script_dir}/json.py', data_files=train_files, ignore_verifications=False, cache_dir=dataset_cache_dir + str(i), features=datasets.Features({ "pos":{ 'label': datasets.Value("int32"), "masked_lm_positions": [datasets.Value("int32")], "segment_ids": [datasets.Value("int32")], "tokens_idx":[datasets.Value("int32")], "masked_lm_labels_idxs":[datasets.Value("int32")], }, "neg":{ 'label': datasets.Value("int32"), "masked_lm_positions": [datasets.Value("int32")], "segment_ids": [datasets.Value("int32")], "tokens_idx":[datasets.Value("int32")], "masked_lm_labels_idxs":[datasets.Value("int32")], } }) )['train'] mymydatasets.append(nlp_dataset) # nlp_dataset = nlp_dataset.shuffle(2021) # nlp_dataset = nlp_dataset[:args.limit] self.nlp_dataset = nlp_dataset self.tok = tokenizer self.SEP = [self.tok.sep_token_id] self.args = args self.total_len = len(self.nlp_dataset) print("loading dataset ok! len of dataset,", self.total_len) def __len__(self): return self.total_len def __getitem__(self, item): pairdata = self.nlp_dataset[item] examples = [pairdata['pos'], pairdata['neg']] group_batch = [] for e in examples: labels = np.array([-100] * len(e['tokens_idx'])) masked_lm_positions = e['masked_lm_positions'] masked_lm_labels = e['masked_lm_labels_idxs'] labels[masked_lm_positions] = masked_lm_labels data = { "input_ids": list(e['tokens_idx']), "token_type_ids": list(e['segment_ids']), "labels": list(labels), "next_sentence_label": e['label'] } group_batch.append(BatchEncoding(data)) return group_batch @dataclass class PointCollator(DataCollatorWithPadding): """ Wrapper that does conversion from List[Tuple[encode_qry, encode_psg]] to List[qry], List[psg] and pass batch separately to the actual collator. Abstract out data detail for the model. """ def __call__( self, features ): # print(features) batch_size = len(features) mlm_labels = [] inputs_type_idx = [] for i in range(batch_size): mlm_labels.append(features[i]['labels']) inputs_type_idx.append(features[i]['inputs_type_idx']) del features[i]['labels'] del features[i]['inputs_type_idx'] # print("++++++++++++++++++++") #print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@") features = super().__call__(features) max_len = features['input_ids'].size()[1] # print("max_len", max_len) mlm_labels_matrix = np.ones([batch_size, max_len]) * -100 inputs_type_idx_matrix = np.zeros([batch_size,max_len]) for i in range(batch_size): mlm_labels_matrix[i][:len(mlm_labels[i])] = mlm_labels[i] inputs_type_idx_matrix[i][:len(inputs_type_idx[i])]=inputs_type_idx[i] features['labels'] = torch.LongTensor(mlm_labels_matrix) #features['inputs_type_idx'] = torch.LongTensor(inputs_type_idx_matrix) # print("gen features") # print("---------------------------") # print(features) # print("#####################") return features @dataclass class PairCollator(DataCollatorWithPadding): """ Wrapper that does conversion from List[Tuple[encode_qry, encode_psg]] to List[qry], List[psg] and pass batch separately to the actual collator. Abstract out data detail for the model. """ def __call__( self, features ): # print(features) features_flattened = [] for f in features: features_flattened += [f[0], f[1]] features = features_flattened batch_size = len(features) mlm_labels = [] for i in range(batch_size): mlm_labels.append(features[i]['labels']) del features[i]['labels'] # print("++++++++++++++++++++") # print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@") features = super().__call__(features) max_len = features['input_ids'].size()[1] # print("max_len", max_len) mlm_labels_matrix = np.ones([batch_size, max_len]) * -100 for i in range(batch_size): mlm_labels_matrix[i][:len(mlm_labels[i])] = mlm_labels[i] features['labels'] = torch.LongTensor(mlm_labels_matrix) # print("gen features") # print("---------------------------") # print(features) # print("#####################") # print(features) return features @dataclass class BERTGATPointCollator(DataCollatorWithPadding): """ Wrapper that does conversion from List[Tuple[encode_qry, encode_psg]] to List[qry], List[psg] and pass batch separately to the actual collator. Abstract out data detail for the model. """ def __call__( self, features ): max_seq_len = 128 max_tag_len = 32 # print(features) batch_size = len(features) mlm_labels = [] inputs_type_idx = [] attention_mask = [] above_mask_idx = [] for i in range(batch_size): mlm_labels.append(features[i]['labels']) inputs_type_idx.append(features[i]['inputs_type_idx']) temp = features[i]['attention_mask'] temp = [temp[i:i+max_tag_len] for i in range(0,len(temp),max_tag_len)] temp = [([0]+temp[i]) for i in range(len(temp))] temp = [[1]*(max_tag_len+1)] + temp attention_mask.append(temp) above_mask_idx.append(features[i]['above_mask_idx']) del features[i]['labels'] del features[i]['inputs_type_idx'] del features[i]['attention_mask'] del features[i]['above_mask_idx'] # print("++++++++++++++++++++") #print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@") features = super().__call__(features) max_len = features['input_ids'].size()[1] # print("max_len", max_len) mlm_labels_matrix = np.ones([batch_size, max_len]) * -100 inputs_type_idx_matrix = np.zeros([batch_size,max_len]) for i in range(batch_size): mlm_labels_matrix[i][:len(mlm_labels[i])] = mlm_labels[i] inputs_type_idx_matrix[i][:len(inputs_type_idx[i])]=inputs_type_idx[i] features['input_ids'] = features['input_ids'].view(batch_size,-1,max_seq_len) features['token_type_ids']=features['token_type_ids'].view(batch_size,-1,max_seq_len) features['labels'] = torch.LongTensor(mlm_labels_matrix).view(batch_size,-1,max_seq_len) features['inputs_type_idx'] = torch.LongTensor(inputs_type_idx_matrix).view(batch_size,-1,max_seq_len) features['attention_mask'] = torch.LongTensor(attention_mask) features['above_mask_idx'] = torch.nn.utils.rnn.pad_sequence(above_mask_idx,padding_value=0).transpose(0,1) # print("gen features") # print("---------------------------") # print(features) # print("#####################") return features
<reponame>brycahta/container-web-scraper-example import time import datetime import boto3 from botocore.errorfactory import ClientError from selenium import webdriver from selenium.webdriver.firefox.options import Options options = Options() options.headless = True driver=webdriver.Firefox(options=options, executable_path='/opt/geckodriver') print('start your scraping project')
/* * $Id: main.c,v 1.6 2002/10/17 20:22:09 ljb Exp $ * originally Id: main.c,v 1.6 1998/07/28 23:04:38 gerald Exp */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <irr_rpsl_check.h> /* Global config file information struct * (See read_conf.c) */ config_info_t ci; extern int optind; extern char *optarg; extern FILE *yyin; int line_num; extern int yydebug; int DAEMON_FLAG = 0; extern int CANONICALIZE_OBJS_FLAG; extern int QUICK_CHECK_FLAG; extern int INFO_HEADERS_FLAG; extern int yyparse(void); FILE *dfile; int verbose = 0; config_info_t ci; void daemonize (); trace_t *default_trace = NULL; int main (int argc, char *argv[]) { int errors, c; char *usage = "Usage: %s [-cdfhoqtv] [filename]\n -c turn on object canonicalization\n -d run in daemon mode\n -f specify the IRRd config file (default '/etc/irrd.conf')\n -s send notifications to the sender only\n -h include parse information headers at the begining of each object\n -o <output file> divert output to file, default to STDOUT\n -q quick check; no object output, report OK or report first error and stop\n -t <trace file> turn on tracing information to <trace file>\n [filename] file for input in non-daemon mode\n\n This programs syntax checks IRR objects. The -q quick check option implies\n no -c or -h options (i.e., no canonicalization or header information).\n -v turn on debug verbose mode\n"; char *name = argv[0]; char *file_name = NULL, *config_fname = NULL; char pid_string[100]; dfile = stdout; yydebug = 0; errors = 0; default_trace = New_Trace2 ("irr_rpsl_check"); sprintf (pid_string, "PID%d", (int) getpid ()); set_trace (default_trace, TRACE_PREPEND_STRING, pid_string, 0); while ((c = getopt (argc, argv, "vcdf:hqt:o:")) != -1) switch (c) { case 'd': DAEMON_FLAG = 1; break; case 'c': CANONICALIZE_OBJS_FLAG = 1; break; case 'h': /* the header processing assumes canonicalization * is also occuring. header processing pulls items * from the canonicalize buffer. */ INFO_HEADERS_FLAG = 1; CANONICALIZE_OBJS_FLAG = 1; break; case 'o': if (!strcasecmp (optarg, "stderr")) ofile = stderr; else if (!strcasecmp (optarg, "stdout")) ofile = stdout; else if (*optarg == '-') { fprintf (stderr, "\"%s\" does not look like a valid debug output file!\n", optarg); errors++; } else if (optind == argc && !DAEMON_FLAG) { fprintf (stderr, "Missing input file!\n"); errors++; } else if ((ofile = fopen (optarg, "w")) == NULL) { fprintf (stderr, "Error opening output file \"%s\"\n", optarg); errors++; } break; case 'q': QUICK_CHECK_FLAG = 1; break; case 'v': set_trace (default_trace, TRACE_FLAGS, TR_ALL, TRACE_LOGFILE, "stdout", NULL); verbose = 1; break; case 't': if (!strcasecmp (optarg, "stderr")) dfile = stderr; else if (!strcasecmp (optarg, "stdout")) dfile = stdout; else if (*optarg == '-') { fprintf (stderr, "\"%s\" does not look like a valid debug output file!\n", optarg); errors++; } else if (optind == argc && !DAEMON_FLAG) { fprintf (stderr, "Missing input file!\n"); errors++; } else if ((dfile = fopen (optarg, "w")) == NULL) { fprintf (stderr, "Error opening redirect debug file \"%s\"\n", optarg); errors++; } break; case 'f': if (!strcasecmp (optarg, "stderr") || !strcasecmp (optarg, "stdout")) errors++; else if (*optarg == '-') { fprintf (stderr, "\"%s\" does not look like a valid IRRd configuration file!\n", optarg); errors++; } else if (optind == argc && !DAEMON_FLAG) { fprintf (stderr, "Missing input file!\n"); errors++; } else config_fname = optarg; break; default: errors++; break; } /* input file */ if (!errors) for ( ; optind < argc; optind++) { if (file_name == NULL) file_name = argv[optind]; else { errors++; break; } } /* output file */ if (!errors && ofile == NULL) ofile = stdout; /* trace debug file */ if (!errors && dfile == NULL) { if ((dfile = fopen ("/dev/null", "w")) == NULL) { fprintf (stderr, "Could not open /dev/null for debug output, exit!\n"); exit (1); } } if (!DAEMON_FLAG && (file_name == NULL)) { fprintf (stderr, "No input file specified!\n"); errors++; } if (QUICK_CHECK_FLAG && (CANONICALIZE_OBJS_FLAG || INFO_HEADERS_FLAG)) { fprintf (stderr, "-q flag implies no -c and -h flags!\n"); errors++; } if (errors) { fprintf (stderr, usage, name); printf ("\nirr_rpsl_check compiled on %s\n",__DATE__); exit (1); } /* pick off the authoritative sourcess */ if (parse_irrd_conf_file (config_fname, default_trace) < 0) exit (0); if (DAEMON_FLAG) { daemonize (); return 0; } if ((yyin = fopen (file_name, "r")) == NULL) { fprintf (stderr, "Error opening input file \"%s\", exit!\n", file_name); exit (1); } /* parse_irrd_conf_file (&ci, config_fname);*/ yyparse (); return 0; } /* called from inetd */ void daemonize () { yyin = stdin; yyparse (); }
require 'rails_helper' feature 'viewing list of plans', :dbclean => :after_each do scenario 'when there are many plans' do user = create :user visit root_path sign_in_with(user.email, user.password) plan = create :plan visit('/plans') expect(page).to have_content(plan.name) end end
<filename>src/main/java/org/rs2server/rs2/model/skills/slayer/SlayerMasterWidget.java package org.rs2server.rs2.model.skills.slayer; import org.rs2server.rs2.domain.model.player.PlayerStatisticsEntity; import org.rs2server.rs2.model.bit.BitConfigBuilder; import org.rs2server.rs2.model.player.Player; import javax.annotation.Nonnull; /** * @author Twelve */ public class SlayerMasterWidget { private static final int TASK_WIDGET = 426; private static final int TASK_CONFIG = 1096; private static final int REWARD_POINT_CONFIG = 661; private static final int REWARD_BIT = 6; private static final int FIFTH_SLOT_CONFIG = 1191; private static final int FIFTH_SLOT = 7; private final Player player; public SlayerMasterWidget(@Nonnull Player player) { this.player = player; } public final BitConfigBuilder rewardPointBuilder() { PlayerStatisticsEntity statistics = player.getDatabaseEntity().getStatistics(); return BitConfigBuilder.of(REWARD_POINT_CONFIG).set(statistics.getSlayerRewardPoints(), REWARD_BIT); } public final BitConfigBuilder fifthSlotBuilder() { return BitConfigBuilder.of(FIFTH_SLOT_CONFIG).set(FIFTH_SLOT, FIFTH_SLOT); } public final void open() { player.sendBitConfig(rewardPointBuilder().build()); player.sendBitConfig(fifthSlotBuilder().build()); player.getActionSender().sendInterface(TASK_WIDGET, false); } }
/** * */ package jframe.pay.dao.service; import jframe.core.plugin.annotation.Service; /** * @author dzh * @date Sep 2, 2015 2:45:57 AM * @since 1.0 */ @Service(clazz = "jframe.pay.dao.service.MysqlPayDaoService", id = "jframe.pay.service.dao") public interface PayDaoService extends UsrDao, OrderDao, MemcachedKey { }
import { Controller, Post, Param, Res, Get, Body } from '@nestjs/common' import { UrlService } from './url.service' @Controller('u') export class UrlController { constructor(private urlService: UrlService) {} @Get(':shortcut') async redirect(@Param() params, @Res() res): Promise<void> { try { const shortcut = params.shortcut const url = await this.urlService.find(shortcut) if (url) { res.redirect(url.original) return } res.status(404).json('Not found') } catch (err) { res.status(400).json(err) } } }
import {Location} from 'history'; import {t} from 'app/locale'; import {NewQuery} from 'app/types'; import EventView from 'app/utils/discover/eventView'; import {decodeScalar} from 'app/utils/queryString'; import {tokenizeSearch, stringifyQueryObject} from 'app/utils/tokenizeSearch'; export const DEFAULT_STATS_PERIOD = '24h'; export const COLUMN_TITLES = [ 'transaction', 'project', 'tpm', 'p50', 'p95', 'failure rate', 'apdex(300)', 'users', 'user misery', ]; export function generatePerformanceEventView(location: Location): EventView { const {query} = location; const hasStartAndEnd = query.start && query.end; const savedQuery: NewQuery = { id: undefined, name: t('Performance'), query: 'event.type:transaction', projects: [], fields: [ 'transaction', 'project', 'epm()', 'p50()', 'p95()', 'failure_rate()', 'apdex(300)', 'count_unique(user)', 'user_misery(300)', ], version: 2, }; if (!query.statsPeriod && !hasStartAndEnd) { savedQuery.range = DEFAULT_STATS_PERIOD; } savedQuery.orderby = decodeScalar(query.sort) || '-epm'; const searchQuery = decodeScalar(query.query) || ''; const conditions = Object.assign(tokenizeSearch(searchQuery), { 'event.type': ['transaction'], }); // If there is a bare text search, we want to treat it as a search // on the transaction name. if (conditions.query.length > 0) { conditions.transaction = [`*${conditions.query.join(' ')}*`]; conditions.query = []; } savedQuery.query = stringifyQueryObject(conditions); return EventView.fromNewQueryWithLocation(savedQuery, location); }
<filename>src/app/core/chart-transition.js const transition = { SELECT: "select", SHOW: "show", TIME: "time", NONE: "none" } const transitions = { select: { allow: [transition.SELECT, transition.SHOW], from: (state, dim) => { const markerSelect = (state.marker || {}).select; return markerSelect ? markerSelect.map(selection => selection[dim]) : null; }, to: (values, dim) => { return { marker: { select: values.map(value => ({ [dim]: value })) } } } }, show: { allow: [transition.SELECT, transition.SHOW], from: (state, dim) => { const values = (((state.entities || {}).show || {})[dim] || {}).$in; return values ? values.slice(0) : null; }, to: (values, dim) => { if (values.length == 0) return {}; return { entities: { show: { [dim]: { $in: values } } } } } }, time: { allow: [transition.TIME], from: state => (state.time || {}).value, to: value => ({ time: { value } } ) } } function getTransitionModel(oldModel, oldTransition, newTransition) { const result = { state: {} }; if (!oldTransition || !newTransition || oldTransition.includes(transition.NONE) || newTransition.includes(transition.NONE)) return {}; const dim = "country"; newTransition.forEach(transitionTo => { const transitionFrom = oldTransition.filter(transition => transitions[transitionTo].allow.includes(transition))[0]; const values = transitions[transitionFrom].from(oldModel.state || {}, dim); if (!values) return; Object.assign(result.state, transitions[transitionTo].to(values, dim)); }); if (!Object.keys(result.state).length) { delete result.state; } return result; } export { getTransitionModel };
package ylog import ( "bytes" "fmt" "io" "sync" "time" ) type logWriter struct { writerMux *sync.Mutex writer io.Writer buffer *bytes.Buffer objectQueue chan *logObject } func newLogWriter(writer io.Writer) *logWriter { return &logWriter{ writer: writer, buffer: &bytes.Buffer{}, objectQueue: make(chan *logObject, 10000), writerMux: new(sync.Mutex), } } func (l *logWriter) startRun() { go l.guardRun() } func (l *logWriter) guardRun() { defer func() { err := recover() if err != nil { // Exit abnormal, restart go l.guardRun() } }() l.cycle() } func (l *logWriter) cycle() { ticker := time.NewTicker(time.Millisecond * 100) for { select { case obj := <-l.objectQueue: l.writerMux.Lock() _, err := l.writeObjectToBuffer(obj) if err != nil { fmt.Printf("logWriter write to buffer error: %v", err) } if l.buffer.Len() > 4*1024*1024 /* 4MB */ { _, err := l.writeBufferToWriter() if err != nil { fmt.Printf("logWriter write to writer error: %v", err) } } l.writerMux.Unlock() case <-ticker.C: l.writerMux.Lock() if l.buffer.Len() != 0 { _, err := l.writeBufferToWriter() if err != nil { fmt.Printf("logWriter write to writer error: %v", err) } } l.writerMux.Unlock() } } } func formatLog(obj *logObject) string { return fmt.Sprintf(fmt.Sprintf("%s %s %s:%d %s\n", obj.logTime.Format(time.RFC3339Nano), LogLevelToString(obj.level), obj.file, obj.line, obj.format), obj.args...) } func (l *logWriter) writeObjectToBuffer(obj *logObject) (int, error) { return l.buffer.WriteString(formatLog(obj)) } func (l *logWriter) writeBufferToWriter() (int, error) { defer l.buffer.Reset() return l.writer.Write(l.buffer.Bytes()) } func (l *logWriter) forceWriteObject(obj *logObject) { // To make sure panic and fatal log was written before process exit l.writerMux.Lock() _, _ = l.writeObjectToBuffer(obj) _, _ = l.writeBufferToWriter() l.writerMux.Unlock() }
MININIX_PKG_HOMEPAGE=https://www.passwordstore.org MININIX_PKG_DESCRIPTION="Lightweight directory-based password manager" MININIX_PKG_VERSION=1.7.3 MININIX_PKG_SHA256=2b6c65846ebace9a15a118503dcd31b6440949a30d3b5291dfb5b1615b99a3f4 MININIX_PKG_SRCURL=https://git.zx2c4.com/password-store/snapshot/password-store-${MININIX_PKG_VERSION}.tar.xz MININIX_PKG_BUILD_IN_SRC=yes # Depend on coreutils as pass uses [:graph:] when calling tr, which busybox tr does not support: MININIX_PKG_DEPENDS="bash, gnupg (>= 2.2.9-1), tree, coreutils" MININIX_PKG_RECOMMENDS="git" MININIX_PKG_SUGGESTS="pass-otp" MININIX_PKG_PLATFORM_INDEPENDENT=yes
#!/bin/sh test_description='rebase should handle arbitrary git message' . ./test-lib.sh cat >F <<\EOF This is an example of a commit log message that does not conform to git commit convention. It has two paragraphs, but its first paragraph is not friendly to oneline summary format. EOF cat >G <<\EOF commit log message containing a diff EOF test_expect_success setup ' >file1 && >file2 && git add file1 file2 && test_tick && git commit -m "Initial commit" && git branch diff-in-message && git checkout -b multi-line-subject && cat F >file2 && git add file2 && test_tick && git commit -F F && git cat-file commit HEAD | sed -e "1,/^\$/d" >F0 && git checkout diff-in-message && echo "commit log message containing a diff" >G && echo "" >>G && cat G >file2 && git add file2 && git diff --cached >>G && test_tick && git commit -F G && git cat-file commit HEAD | sed -e "1,/^\$/d" >G0 && git checkout master && echo One >file1 && test_tick && git add file1 && git commit -m "Second commit" ' test_expect_success 'rebase commit with multi-line subject' ' git rebase master multi-line-subject && git cat-file commit HEAD | sed -e "1,/^\$/d" >F1 && test_cmp F0 F1 && test_cmp F F0 ' test_expect_success 'rebase commit with diff in message' ' git rebase master diff-in-message && git cat-file commit HEAD | sed -e "1,/^$/d" >G1 && test_cmp G0 G1 && test_cmp G G0 ' test_done
<gh_stars>10-100 package utils import ( "github.com/stretchr/testify/assert" "io" "io/ioutil" "os" "path" "strings" "testing" ) func TestFormatXml(t *testing.T) { files := map[string]string{ "unformatted.xml": "formatted.xml", "unformatted2.xml": "formatted2.xml", "unformatted3.xml": "formatted3.xml", "unformatted4.xml": "formatted4.xml", } for unformattedFile, expectedFile := range files { unformattedXmlReader := getFileReader(path.Join("..", "..", "test", "data", unformattedFile)) bytes, readErr := ioutil.ReadFile(path.Join("..", "..", "test", "data", expectedFile)) assert.Nil(t, readErr) expectedXml := string(bytes) output := new(strings.Builder) formatErr := FormatXml(unformattedXmlReader, output, " ", ColorsDisabled) assert.Nil(t, formatErr) assert.Equal(t, expectedXml, output.String()) } } func getFileReader(filename string) io.Reader { reader, err := os.Open(filename) if err != nil { panic(err) } return reader }
export * from './depart.service' ; export * from './menu.service' ; export * from './staff.service' ; export * from './role.service';
<gh_stars>0 // Code generated by protoc-gen-validate. DO NOT EDIT. // source: flyteidl/event/event.proto package event import ( "bytes" "errors" "fmt" "net" "net/mail" "net/url" "regexp" "strings" "time" "unicode/utf8" "github.com/golang/protobuf/ptypes" core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" ) // ensure the imports are used var ( _ = bytes.MinRead _ = errors.New("") _ = fmt.Print _ = utf8.UTFMax _ = (*regexp.Regexp)(nil) _ = (*strings.Reader)(nil) _ = net.IPv4len _ = time.Duration(0) _ = (*url.URL)(nil) _ = (*mail.Address)(nil) _ = ptypes.DynamicAny{} _ = core.WorkflowExecution_Phase(0) _ = core.NodeExecution_Phase(0) _ = core.TaskExecution_Phase(0) ) // define the regex for a UUID once up-front var _event_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") // Validate checks the field values on WorkflowExecutionEvent with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. func (m *WorkflowExecutionEvent) Validate() error { if m == nil { return nil } if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return WorkflowExecutionEventValidationError{ field: "ExecutionId", reason: "embedded message failed validation", cause: err, } } } // no validation rules for ProducerId // no validation rules for Phase if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return WorkflowExecutionEventValidationError{ field: "OccurredAt", reason: "embedded message failed validation", cause: err, } } } switch m.OutputResult.(type) { case *WorkflowExecutionEvent_OutputUri: // no validation rules for OutputUri case *WorkflowExecutionEvent_Error: if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return WorkflowExecutionEventValidationError{ field: "Error", reason: "embedded message failed validation", cause: err, } } } } return nil } // WorkflowExecutionEventValidationError is the validation error returned by // WorkflowExecutionEvent.Validate if the designated constraints aren't met. type WorkflowExecutionEventValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e WorkflowExecutionEventValidationError) Field() string { return e.field } // Reason function returns reason value. func (e WorkflowExecutionEventValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e WorkflowExecutionEventValidationError) Cause() error { return e.cause } // Key function returns key value. func (e WorkflowExecutionEventValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e WorkflowExecutionEventValidationError) ErrorName() string { return "WorkflowExecutionEventValidationError" } // Error satisfies the builtin error interface func (e WorkflowExecutionEventValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sWorkflowExecutionEvent.%s: %s%s", key, e.field, e.reason, cause) } var _ error = WorkflowExecutionEventValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = WorkflowExecutionEventValidationError{} // Validate checks the field values on NodeExecutionEvent with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. func (m *NodeExecutionEvent) Validate() error { if m == nil { return nil } if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return NodeExecutionEventValidationError{ field: "Id", reason: "embedded message failed validation", cause: err, } } } // no validation rules for ProducerId // no validation rules for Phase if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return NodeExecutionEventValidationError{ field: "OccurredAt", reason: "embedded message failed validation", cause: err, } } } // no validation rules for InputUri if v, ok := interface{}(m.GetParentTaskMetadata()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return NodeExecutionEventValidationError{ field: "ParentTaskMetadata", reason: "embedded message failed validation", cause: err, } } } switch m.OutputResult.(type) { case *NodeExecutionEvent_OutputUri: // no validation rules for OutputUri case *NodeExecutionEvent_Error: if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return NodeExecutionEventValidationError{ field: "Error", reason: "embedded message failed validation", cause: err, } } } } switch m.TargetMetadata.(type) { case *NodeExecutionEvent_WorkflowNodeMetadata: if v, ok := interface{}(m.GetWorkflowNodeMetadata()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return NodeExecutionEventValidationError{ field: "WorkflowNodeMetadata", reason: "embedded message failed validation", cause: err, } } } } return nil } // NodeExecutionEventValidationError is the validation error returned by // NodeExecutionEvent.Validate if the designated constraints aren't met. type NodeExecutionEventValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e NodeExecutionEventValidationError) Field() string { return e.field } // Reason function returns reason value. func (e NodeExecutionEventValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e NodeExecutionEventValidationError) Cause() error { return e.cause } // Key function returns key value. func (e NodeExecutionEventValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e NodeExecutionEventValidationError) ErrorName() string { return "NodeExecutionEventValidationError" } // Error satisfies the builtin error interface func (e NodeExecutionEventValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sNodeExecutionEvent.%s: %s%s", key, e.field, e.reason, cause) } var _ error = NodeExecutionEventValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = NodeExecutionEventValidationError{} // Validate checks the field values on WorkflowNodeMetadata with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. func (m *WorkflowNodeMetadata) Validate() error { if m == nil { return nil } if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return WorkflowNodeMetadataValidationError{ field: "ExecutionId", reason: "embedded message failed validation", cause: err, } } } return nil } // WorkflowNodeMetadataValidationError is the validation error returned by // WorkflowNodeMetadata.Validate if the designated constraints aren't met. type WorkflowNodeMetadataValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e WorkflowNodeMetadataValidationError) Field() string { return e.field } // Reason function returns reason value. func (e WorkflowNodeMetadataValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e WorkflowNodeMetadataValidationError) Cause() error { return e.cause } // Key function returns key value. func (e WorkflowNodeMetadataValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e WorkflowNodeMetadataValidationError) ErrorName() string { return "WorkflowNodeMetadataValidationError" } // Error satisfies the builtin error interface func (e WorkflowNodeMetadataValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sWorkflowNodeMetadata.%s: %s%s", key, e.field, e.reason, cause) } var _ error = WorkflowNodeMetadataValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = WorkflowNodeMetadataValidationError{} // Validate checks the field values on ParentTaskExecutionMetadata with the // rules defined in the proto definition for this message. If any rules are // violated, an error is returned. func (m *ParentTaskExecutionMetadata) Validate() error { if m == nil { return nil } if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ParentTaskExecutionMetadataValidationError{ field: "Id", reason: "embedded message failed validation", cause: err, } } } return nil } // ParentTaskExecutionMetadataValidationError is the validation error returned // by ParentTaskExecutionMetadata.Validate if the designated constraints // aren't met. type ParentTaskExecutionMetadataValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e ParentTaskExecutionMetadataValidationError) Field() string { return e.field } // Reason function returns reason value. func (e ParentTaskExecutionMetadataValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e ParentTaskExecutionMetadataValidationError) Cause() error { return e.cause } // Key function returns key value. func (e ParentTaskExecutionMetadataValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e ParentTaskExecutionMetadataValidationError) ErrorName() string { return "ParentTaskExecutionMetadataValidationError" } // Error satisfies the builtin error interface func (e ParentTaskExecutionMetadataValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sParentTaskExecutionMetadata.%s: %s%s", key, e.field, e.reason, cause) } var _ error = ParentTaskExecutionMetadataValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = ParentTaskExecutionMetadataValidationError{} // Validate checks the field values on TaskExecutionEvent with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. func (m *TaskExecutionEvent) Validate() error { if m == nil { return nil } if v, ok := interface{}(m.GetTaskId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TaskExecutionEventValidationError{ field: "TaskId", reason: "embedded message failed validation", cause: err, } } } if v, ok := interface{}(m.GetParentNodeExecutionId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TaskExecutionEventValidationError{ field: "ParentNodeExecutionId", reason: "embedded message failed validation", cause: err, } } } // no validation rules for RetryAttempt // no validation rules for Phase // no validation rules for ProducerId for idx, item := range m.GetLogs() { _, _ = idx, item if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TaskExecutionEventValidationError{ field: fmt.Sprintf("Logs[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TaskExecutionEventValidationError{ field: "OccurredAt", reason: "embedded message failed validation", cause: err, } } } // no validation rules for InputUri if v, ok := interface{}(m.GetCustomInfo()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TaskExecutionEventValidationError{ field: "CustomInfo", reason: "embedded message failed validation", cause: err, } } } // no validation rules for PhaseVersion switch m.OutputResult.(type) { case *TaskExecutionEvent_OutputUri: // no validation rules for OutputUri case *TaskExecutionEvent_Error: if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TaskExecutionEventValidationError{ field: "Error", reason: "embedded message failed validation", cause: err, } } } } return nil } // TaskExecutionEventValidationError is the validation error returned by // TaskExecutionEvent.Validate if the designated constraints aren't met. type TaskExecutionEventValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e TaskExecutionEventValidationError) Field() string { return e.field } // Reason function returns reason value. func (e TaskExecutionEventValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e TaskExecutionEventValidationError) Cause() error { return e.cause } // Key function returns key value. func (e TaskExecutionEventValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e TaskExecutionEventValidationError) ErrorName() string { return "TaskExecutionEventValidationError" } // Error satisfies the builtin error interface func (e TaskExecutionEventValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sTaskExecutionEvent.%s: %s%s", key, e.field, e.reason, cause) } var _ error = TaskExecutionEventValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = TaskExecutionEventValidationError{}
<filename>android/app/src/main/java/com/bluebubbles/messaging/services/FlutterFirebaseMessagingBackgroundExecutor.java package com.bluebubbles.messaging.services; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.AssetManager; import android.os.Handler; import android.os.Looper; import android.util.Log; import androidx.annotation.NonNull; import com.google.firebase.messaging.RemoteMessage; import io.flutter.embedding.engine.FlutterEngine; import io.flutter.embedding.engine.FlutterShellArgs; import io.flutter.embedding.engine.dart.DartExecutor; import io.flutter.embedding.engine.dart.DartExecutor.DartCallback; import io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry; import io.flutter.plugin.common.BinaryMessenger; import io.flutter.plugin.common.MethodCall; import io.flutter.plugin.common.MethodChannel; import io.flutter.plugin.common.MethodChannel.MethodCallHandler; import io.flutter.plugin.common.MethodChannel.Result; import io.flutter.view.FlutterCallbackInformation; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicBoolean; import static com.bluebubbles.messaging.method_call_handler.handlers.InitializeBackgroundHandle.BACKGROUND_SERVICE_SHARED_PREF; import static com.bluebubbles.messaging.method_call_handler.handlers.InitializeBackgroundHandle.BACKGROUND_HANDLE_SHARED_PREF_KEY; import com.bluebubbles.messaging.MainActivity; import com.bluebubbles.messaging.method_call_handler.handlers.AlarmScheduler; import com.bluebubbles.messaging.method_call_handler.handlers.ClearChatNotifs; import com.bluebubbles.messaging.method_call_handler.handlers.ClearFailedToSend; import com.bluebubbles.messaging.method_call_handler.handlers.ClearSocketIssue; import com.bluebubbles.messaging.method_call_handler.handlers.CreateNotificationChannel; import com.bluebubbles.messaging.method_call_handler.handlers.DownloadHandler; import com.bluebubbles.messaging.method_call_handler.handlers.FailedToSend; import com.bluebubbles.messaging.method_call_handler.handlers.FetchMessagesHandler; import com.bluebubbles.messaging.method_call_handler.handlers.FirebaseAuth; import com.bluebubbles.messaging.method_call_handler.handlers.GetLastLocation; import com.bluebubbles.messaging.method_call_handler.handlers.GetServerUrl; import com.bluebubbles.messaging.method_call_handler.handlers.InitializeBackgroundHandle; import com.bluebubbles.messaging.method_call_handler.handlers.NewMessageNotification; import com.bluebubbles.messaging.method_call_handler.handlers.OpenCamera; import com.bluebubbles.messaging.method_call_handler.handlers.OpenFile; import com.bluebubbles.messaging.method_call_handler.handlers.PickFile; import com.bluebubbles.messaging.method_call_handler.handlers.PushShareTargets; import com.bluebubbles.messaging.method_call_handler.handlers.SaveToFile; import com.bluebubbles.messaging.method_call_handler.handlers.SocketIssueWarning; import com.bluebubbles.messaging.method_call_handler.handlers.SetNextRestart; import com.bluebubbles.messaging.method_call_handler.handlers.OpenContactForm; import com.bluebubbles.messaging.method_call_handler.handlers.ViewContactForm; import com.bluebubbles.messaging.workers.DartWorker; /** * An background execution abstraction which handles initializing a background isolate running a * callback dispatcher, used to invoke Dart callbacks while backgrounded. */ public class FlutterFirebaseMessagingBackgroundExecutor implements MethodCallHandler { private static final String TAG = "FLTFireBGExecutor"; private final AtomicBoolean isCallbackDispatcherReady = new AtomicBoolean(false); /** * The {@link MethodChannel} that connects the Android side of this plugin with the background * Dart isolate that was created by this plugin. */ private MethodChannel backgroundChannel; private FlutterEngine backgroundFlutterEngine; /** * Sets the Dart callback handle for the Dart method that is responsible for initializing the * background Dart isolate, preparing it to receive Dart callback tasks requests. */ public static void setCallbackDispatcher(long callbackHandle) { Context context = ContextHolder.getApplicationContext(); SharedPreferences prefs = context.getSharedPreferences(BACKGROUND_SERVICE_SHARED_PREF, Context.MODE_PRIVATE); prefs.edit().putLong(BACKGROUND_HANDLE_SHARED_PREF_KEY, callbackHandle).apply(); } /** * Returns true when the background isolate has started and is ready to handle background * messages. */ public boolean isNotRunning() { return !isCallbackDispatcherReady.get(); } private void onInitialized() { isCallbackDispatcherReady.set(true); FlutterFirebaseMessagingBackgroundService.onInitialized(); } @Override public void onMethodCall(MethodCall call, @NonNull Result result) { String method = call.method; Context context = ContextHolder.getApplicationContext(); if (call.method.equals(FirebaseAuth.TAG)) { new FirebaseAuth(context, call, result).Handle(); } else if(call.method.equals(FetchMessagesHandler.TAG)) { new FetchMessagesHandler(context, call, result).Handle(); } else if (call.method.equals(CreateNotificationChannel.TAG)) { new CreateNotificationChannel(context, call, result).Handle(); } else if (call.method.equals(NewMessageNotification.TAG)) { new NewMessageNotification(context, call, result).Handle(); } else if (call.method.equals(SocketIssueWarning.TAG)) { new SocketIssueWarning(context, call, result).Handle(); } else if (call.method.equals(ClearSocketIssue.TAG)) { new ClearSocketIssue(context, call, result).Handle(); } else if (call.method.equals(OpenFile.TAG)) { new OpenFile(context, call, result).Handle(); } else if (call.method.equals(ClearChatNotifs.TAG)) { new ClearChatNotifs(context, call, result).Handle(); } else if (call.method.equals(GetLastLocation.TAG)) { new GetLastLocation(context, call, result).Handle(); } else if (call.method.equals(SaveToFile.TAG)) { new SaveToFile(context, call, result).Handle(); } else if(call.method.equals(PushShareTargets.TAG)) { new PushShareTargets(context, call, result).Handle(); } else if (call.method.equals("get-starting-intent")) { String intent = ((MainActivity) context).getIntent().getStringExtra("chatGuid"); ((MainActivity) context).getIntent().putExtra("chatGuid", (String) null); result.success(intent); } else if (call.method.equals(InitializeBackgroundHandle.TAG)) { new InitializeBackgroundHandle(context, call, result).Handle(); } else if (call.method.equals(GetServerUrl.TAG)) { new GetServerUrl(context, call, result).Handle(); } else if (call.method.equals(PickFile.TAG)) { new PickFile(context, call, result).Handle(); } else if(call.method.equals(OpenCamera.TAG)) { new OpenCamera(context, call, result).Handle(); } else if (call.method.equals(AlarmScheduler.TAG)) { new AlarmScheduler(context, call, result).Handle(); } else if (call.method.equals(SetNextRestart.TAG)) { new SetNextRestart(context, call, result).Handle(); } else if (call.method.equals(DownloadHandler.TAG)) { new DownloadHandler(context, call, result).Handle(); } else if (call.method.equals(OpenContactForm.TAG)) { new OpenContactForm(context, call, result).Handle(); } else if (call.method.equals(ViewContactForm.TAG)) { new ViewContactForm(context, call, result).Handle(); } else if (call.method.equals(FailedToSend.TAG)) { new FailedToSend(context, call, result).Handle(); } else if (call.method.equals(ClearFailedToSend.TAG)) { new ClearFailedToSend(context, call, result).Handle(); } else if (method.equals("MessagingBackground#initialized")) { // This message is sent by the background method channel as soon as the background isolate // is running. From this point forward, the Android side of this plugin can send // callback handles through the background method channel, and the Dart side will execute // the Dart methods corresponding to those callback handles. onInitialized(); result.success(true); } else { result.notImplemented(); } } /** * Starts running a background Dart isolate within a new {@link FlutterEngine} using a previously * used entrypoint. * * <p>The isolate is configured as follows: * * <ul> * <li>Bundle Path: {@code io.flutter.view.FlutterMain.findAppBundlePath(context)}. * <li>Entrypoint: The Dart method used the last time this plugin was initialized in the * foreground. * <li>Run args: none. * </ul> * * <p>Preconditions: * * <ul> * <li>The given callback must correspond to a registered Dart callback. If the handle does not * resolve to a Dart callback then this method does nothing. * <li>A static {@link #pluginRegistrantCallback} must exist, otherwise a {@link * PluginRegistrantException} will be thrown. * </ul> */ public void startBackgroundIsolate() { if (isNotRunning()) { long callbackHandle = getPluginCallbackHandle(); if (callbackHandle != 0) { Log.i(TAG, "Found background isolate callback handle"); startBackgroundIsolate(callbackHandle, null); } else { Log.i(TAG, "No callback handler available for background isolate"); } } } /** * Starts running a background Dart isolate within a new {@link FlutterEngine}. * * <p>The isolate is configured as follows: * * <ul> * <li>Bundle Path: {@code io.flutter.view.FlutterMain.findAppBundlePath(context)}. * <li>Entrypoint: The Dart method represented by {@code callbackHandle}. * <li>Run args: none. * </ul> * * <p>Preconditions: * * <ul> * <li>The given {@code callbackHandle} must correspond to a registered Dart callback. If the * handle does not resolve to a Dart callback then this method does nothing. * <li>A static {@link #pluginRegistrantCallback} must exist, otherwise a {@link * PluginRegistrantException} will be thrown. * </ul> */ public void startBackgroundIsolate(long callbackHandle, FlutterShellArgs shellArgs) { if (backgroundFlutterEngine != null) { Log.e(TAG, "Background isolate already started."); return; } Handler mainHandler = new Handler(Looper.getMainLooper()); Runnable myRunnable = () -> { io.flutter.view.FlutterMain.startInitialization(ContextHolder.getApplicationContext()); io.flutter.view.FlutterMain.ensureInitializationCompleteAsync( ContextHolder.getApplicationContext(), null, mainHandler, () -> { String appBundlePath = io.flutter.view.FlutterMain.findAppBundlePath(); AssetManager assets = ContextHolder.getApplicationContext().getAssets(); if (isNotRunning()) { if (shellArgs != null) { Log.i( TAG, "Creating background FlutterEngine instance, with args: " + Arrays.toString(shellArgs.toArray())); backgroundFlutterEngine = new FlutterEngine( ContextHolder.getApplicationContext(), shellArgs.toArray()); } else { Log.i(TAG, "Creating background FlutterEngine instance."); backgroundFlutterEngine = new FlutterEngine(ContextHolder.getApplicationContext()); } // We need to create an instance of `FlutterEngine` before looking up the // callback. If we don't, the callback cache won't be initialized and the // lookup will fail. FlutterCallbackInformation flutterCallback = FlutterCallbackInformation.lookupCallbackInformation(callbackHandle); DartExecutor executor = backgroundFlutterEngine.getDartExecutor(); initializeMethodChannel(executor); DartCallback dartCallback = new DartCallback(assets, appBundlePath, flutterCallback); executor.executeDartCallback(dartCallback); } }); }; mainHandler.post(myRunnable); } boolean isDartBackgroundHandlerRegistered() { return getPluginCallbackHandle() != 0; } /** * Executes the desired Dart callback in a background Dart isolate. * * <p>The given {@code intent} should contain a {@code long} extra called "callbackHandle", which * corresponds to a callback registered with the Dart VM. */ public void executeDartCallbackInBackgroundIsolate(Intent intent, final CountDownLatch latch) { if (backgroundFlutterEngine == null) { Log.i( TAG, "A background message could not be handled in Dart as no onBackgroundMessage handler has been registered."); return; } Result result = null; if (latch != null) { result = new Result() { @Override public void success(Object result) { // If another thread is waiting, then wake that thread when the callback returns a result. latch.countDown(); } @Override public void error(String errorCode, String errorMessage, Object errorDetails) { latch.countDown(); } @Override public void notImplemented() { latch.countDown(); } }; } // Handle the message event in Dart. RemoteMessage remoteMessage = intent.getParcelableExtra("notification"); if (remoteMessage != null) { backgroundChannel.invokeMethod(remoteMessage.getData().get("type"), remoteMessage.getData().get("data"), result); } else { Log.e(TAG, "RemoteMessage instance not found in Intent."); } } /** Get the registered Dart callback handle for the messaging plugin. Returns 0 if not set. */ private long getPluginCallbackHandle() { if (ContextHolder.getApplicationContext() == null) { return 0; } SharedPreferences prefs = ContextHolder.getApplicationContext().getSharedPreferences(BACKGROUND_SERVICE_SHARED_PREF, Context.MODE_PRIVATE); return prefs.getLong(BACKGROUND_HANDLE_SHARED_PREF_KEY, 0); } private void initializeMethodChannel(BinaryMessenger isolate) { // backgroundChannel is the channel responsible for receiving the following messages from // the background isolate that was setup by this plugin method call: // - "FirebaseBackgroundMessaging#initialized" // // This channel is also responsible for sending requests from Android to Dart to execute Dart // callbacks in the background isolate. backgroundChannel = new MethodChannel(isolate, "com.bluebubbles.messaging"); backgroundChannel.setMethodCallHandler(this); } }
#!/usr/bin/env bash # Make the script fail if any command in it fail set -e python3.5 -m venv env --without-pip source env/bin/activate python --version wget https://bootstrap.pypa.io/get-pip.py python get-pip.py pip install cvra-packager~=1.0.0 case $BUILD_TYPE in build) pushd $HOME wget https://launchpad.net/gcc-arm-embedded/4.9/4.9-2014-q4-major/+download/gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2 tar -xf gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2 popd ;; tests) # Install cpputest pushd .. wget "https://github.com/cpputest/cpputest/releases/download/v3.8/cpputest-3.8.tar.gz" -O cpputest.tar.gz tar -xzf cpputest.tar.gz cd cpputest-3.8/ ./configure --prefix=$HOME/cpputest make make install popd ;; client-tests) pushd client python setup.py install popd ;; *) echo "Unknown build type $BUILD_TYPE" exit 1 ;; esac
// Make notes editable, configure NSIS installer. const app = require('electron'); const ipcRenderer = require('electron').ipcRenderer; const clipboard = require('electron').clipboard; const open = require("open"); const Store = require('electron-store'); const isbn = require('node-isbn'); const isbnValidator = require('isbn-validate'); const moment = require('moment'); const uuidv1 = require('uuid/v1'); const store = new Store(); var timelineSource; var timelineTemplate; var infoFinishedReadingSource; var infoFinishedReadingTemplate; var infoCurrentlyReadingSource; var infoCurrentlyReadingTemplate; var finishedReadingListSource; var finishedReadingListTemplate; var currentlyReadingListSource; var currentlyReadingListTemplate; var toReadListSource; var toReadListTemplate; var tagSelectSource; var tagSelectTemplate; var editTagSelectSource; var editTagSelectTemplate; var tagManagerListSource; var tagManagerListTemplate; // Checks if users is launching app for first time, opens Help modal, and creates the structure of the store app.ipcRenderer.on('firstAppLaunch', (event, message) => { console.log('Received First Launch Message'); $('#helpModal').modal('open'); store.clear(); var today = moment(new Date()); store.set('startDate', today); store.set('timeline', [{ 'event': 'Started using Readit', 'date': today, 'icon': { 'name': 'flag', 'color': 'rainbow' } }]); store.set('tags', []); store.set('toRead', []); store.set('currentlyReading', []); store.set('finishedReading', []); }); // Initializes Handlebars Templates function initializeHandlebarsTemplates() { timelineSource = document.getElementById("timelineTemplate").innerHTML; timelineTemplate = Handlebars.compile(timelineSource); infoFinishedReadingSource = document.getElementById("infoFinishedReadingTemplate").innerHTML; infoFinishedReadingTemplate = Handlebars.compile(infoFinishedReadingSource); infoCurrentlyReadingSource = document.getElementById("infoCurrentlyReadingTemplate").innerHTML; infoCurrentlyReadingTemplate = Handlebars.compile(infoCurrentlyReadingSource); finishedReadingListSource = document.getElementById("finishedReadingListTemplate").innerHTML; finishedReadingListTemplate = Handlebars.compile(finishedReadingListSource); currentlyReadingListSource = document.getElementById("currentlyReadingListTemplate").innerHTML; currentlyReadingListTemplate = Handlebars.compile(currentlyReadingListSource); toReadListSource = document.getElementById("toReadListTemplate").innerHTML; toReadListTemplate = Handlebars.compile(toReadListSource); tagSelectSource = document.getElementById("tagSelectTemplate").innerHTML; tagSelectTemplate = Handlebars.compile(tagSelectSource); editTagSelectSource = document.getElementById("editTagSelectTemplate").innerHTML; editTagSelectTemplate = Handlebars.compile(editTagSelectSource); tagManagerListSource = document.getElementById("tagManagerListTemplate").innerHTML; tagManagerListTemplate = Handlebars.compile(tagManagerListSource); } // Calculates days since first app launch, and updates the widget function daysSinceStartWidget() { var today = moment(new Date()); $('#daysSinceStart').text(today.diff(store.get('startDate'), 'days')); } // Calculates the total number of finished books function finishedBooksWidget() { var finishedBooksArray = store.get('finishedReading'); if (finishedBooksArray) { $('#finishedBooksTotal').text(finishedBooksArray.length); } else { $('#finishedBooksTotal').text('0'); } } // Calculate the total number of finished books based on week, month, and year function filterTotalFinishedBooksWidget(filter) { if (!filter) { $('#filterTotalFinishedBooksDropdown li a').click(function () { filterTotalFinishedBooksWidget($(this).data('filter')); }); filter = 'week'; } var finishedBooksArray = store.get('finishedReading'); var totalBooksReadInWeek = 0; if (finishedBooksArray) { for (var i = 0; i < finishedBooksArray.length; i++) { if (moment(finishedBooksArray[i].dateFinished).isSame(new Date(), filter)) { totalBooksReadInWeek += 1; } } } $('#thisText').text(filter); $('#thisValue').text(totalBooksReadInWeek); } // Shows and hides previous and next arrows based on current slide function changeCarouselNavigation() { var helpCarousel = $('#helpCarousel'); var helpCarouselInstance = M.Carousel.getInstance(helpCarousel); var carouselLength = $('#helpCarousel .indicators li').length; if (!helpCarouselInstance) { $('.previousCarousel .btn-floating').removeClass('scale-out'); $('.nextCarousel .btn-floating').removeClass('scale-out'); } else { if (helpCarouselInstance.center == 0) { $('.previousCarousel .btn-floating').addClass('scale-out'); } else if (helpCarouselInstance.center == carouselLength - 1) { $('.nextCarousel .btn-floating').addClass('scale-out'); } else { $('.previousCarousel .btn-floating').removeClass('scale-out'); $('.nextCarousel .btn-floating').removeClass('scale-out'); } } } // Initializes the Help Carousel function initializeHelpCarousel() { var helpCarousel = $('#helpCarousel'); var helpCarouselInstance = M.Carousel.init(helpCarousel, { fullWidth: true, indicators: true, noWrap: true, onCycleTo: changeCarouselNavigation }); $('.nextCarousel').click(function (e) { e.preventDefault(); e.stopPropagation(); helpCarousel.carousel('next'); }); $('.previousCarousel').click(function (e) { e.preventDefault(); e.stopPropagation(); helpCarousel.carousel('prev'); }); } // Destroys Help Carousel function destroyHelpCarousel() { $('#helpCarousel').carousel('set', 0); $('#helpCarousel').carousel('destroy'); $('#helpCarousel .indicators').remove(); } // Initializes all Materialize widgets function initializeMaterializeWidgets() { $('.tabs').tabs(); $('select').formSelect(); $('.tooltipped').tooltip(); $('.filterTotalFinishedBooksDropdownTrigger').dropdown(); filterTotalFinishedBooksWidget(); initializeChips(); var helpModal = $('#helpModal'); var helpModalInstance = M.Modal.init(helpModal, { 'dismissible': false, 'onOpenEnd': initializeHelpCarousel, 'onCloseStart': destroyHelpCarousel }); var resetModal = $('#resetModal'); var resetModalInstance = M.Modal.init(resetModal, { 'dismissible': false, 'onCloseEnd': clearResetForm, }); var newBookModal = $('#newBookModal'); var newBookModalInstance = M.Modal.init(newBookModal, { 'onOpenStart': populateTagSelect, 'onCloseEnd': clearNewBookForm, 'dismissible': false }); var newTagModal = $('#newTagModal'); var newTagModalInstance = M.Modal.init(newTagModal, { 'onOpenStart': populateBookSelect, 'onOpenEnd': newTagModalFix, 'onCloseEnd': clearNewTagForm, 'dismissible': false }); var editBookModal = $('#editBookModal'); var editBookModalInstance = M.Modal.init(editBookModal, { 'onOpenStart': initializeChips, 'onCloseEnd': clearEditBookForm, 'dismissible': false }); var infoCurrentlyReadingBookModal = $('#infoCurrentlyReadingBookModal'); var infoCurrentlyReadingBookModalInstance = M.Modal.init(infoCurrentlyReadingBookModal, { 'dismissible': false }); var infoFinishedReadingBookModal = $('#infoFinishedReadingBookModal'); var infoFinishedReadingBookModalInstance = M.Modal.init(infoFinishedReadingBookModal, { 'dismissible': false }); } // Populates tag selection on newBookModal function populateTagSelect() { var tagArray = store.get('tags'); var tagSelectHtml = tagSelectTemplate(tagArray); $('#disabledTag').after(tagSelectHtml); initializeChips(); $('select').formSelect(); } // Initializes chips for editBookModal and newBookModal function initializeChips() { $('.editTagChips, .tagChips').chips({ placeholder: 'Add new tags', secondaryPlaceholder: '+Tag', }); } // Refreshes tab content on click function tabHandlers() { $('.timelineTab').click(function () { populateTimeline(); var elems = document.querySelector('#startDate'); var instances = M.Datepicker.init(elems, {}); var elems = document.querySelector('#endDate'); var instances = M.Datepicker.init(elems, {}); }); $('.tagManagerTab').click(function () { populateTagManagerList(); }); } // Adds and removes Animate.css classes to elements function animateCSS(element, animationName, callback) { const node = document.querySelector(element) node.classList.add('animated', animationName) function handleAnimationEnd() { node.classList.remove('animated', animationName) node.removeEventListener('animationend', handleAnimationEnd) if (typeof callback === 'function') callback() } node.addEventListener('animationend', handleAnimationEnd) } // Checks if device is connected to Internet function isOnline() { return navigator.onLine; } // Isbn Handler for editBookModal and newBookModal function isbnHandler(source) { if (!source) { $('.editIsbnBtn').click(function () { isbnHandler('edit'); }); $('.isbnBtn').click(function () { isbnHandler('new'); }); } else { var isbnElement; var tagChipsInstance; var titleElement; var authorElement; var tagChipsElement; if (source == 'edit') { isbnElement = '#editIsbn'; titleElement = '#editTitle'; authorElement = '#editAuthor'; tagChipsElement = '.editTagChips'; } else if (source == 'new') { isbnElement = '#isbn'; titleElement = '#title'; authorElement = '#author'; tagChipsElement = '.tagChips'; } if (isOnline()) { isbnNumber = removeSpaces($(isbnElement).val()); if (isbnNumber && isbnValidator.Validate(isbnNumber)) { isbn.resolve(isbnNumber, function (err, book) { if (err) { M.toast({ html: 'Book not found', classes: 'red' }); } else { var title = book.title; var author = book.authors.join(", "); var tags = book.categories; $(titleElement).val(title); $(authorElement).val(author); tagChipsInstance = M.Chips.getInstance($(tagChipsElement)); for (var i = 0; i < tags.length; i++) { tagChipsInstance.addChip({ tag: tags[i] }); } animateCSS(titleElement, 'fadeIn'); animateCSS(authorElement, 'fadeIn'); animateCSS(tagChipsElement, 'fadeIn'); M.toast({ html: 'Updated Fields', classes: 'green' }); } }); } else { M.toast({ html: 'Invalid ISBN', classes: 'orange' }); } } else { M.toast({ html: 'No Internet Connection', classes: 'red' }); } } } // Applies title case to string function titleCase(str) { var splitStr = str.toLowerCase().split(' '); for (var i = 0; i < splitStr.length; i++) { splitStr[i] = splitStr[i].charAt(0).toUpperCase() + splitStr[i].substring(1); } return splitStr.join(' '); } // Removes spaces from string function removeSpaces(str) { return str.replace(/ /g, ''); } // Checks if a duplicate book title exists function checkBookTitleExists(title, bookUuid) { var toReadArray = store.get('toRead'); var currentlyReadingArray = store.get('currentlyReading'); var finishedReadingArray = store.get('finishedReading'); var allBooksArray = toReadArray.concat(currentlyReadingArray, finishedReadingArray); for (var i = 0; i < allBooksArray.length; i++) { if (bookUuid == null) { if (allBooksArray[i].title.toLowerCase() == title.toLowerCase()) { return true; } } else { if (allBooksArray[i].title.toLowerCase() == title.toLowerCase() && allBooksArray[i].uuid !== bookUuid) { return true; } } } return false; } // Checks whether current item is unique function onlyUnique(value, index, self) { return self.indexOf(value) === index; } // Handler for new book form function newBookFormHandler() { $('.newBookBtn').click(function () { var title = removeSpaces($('#title').val()); var author = removeSpaces($('#author').val()); if (checkBookTitleExists(title, null)) { animateCSS('#title', 'bounce'); M.toast({ html: 'Title already in use', classes: 'orange' }); } else if (!title || !author) { animateCSS('#title', 'bounce'); animateCSS('#author', 'bounce'); M.toast({ html: 'Required fields are missing', classes: 'orange' }); } else if (removeSpaces($('.tagChips input').val())) { animateCSS('.tagChips', 'bounce'); M.toast({ html: "Please check that your new tags are registered", classes: 'orange' }); } else { var today = moment(new Date()); var tags = $('#tags').formSelect('getSelectedValues'); var tagChipsArray = M.Chips.getInstance($('.tagChips')).chipsData.map(function (obj) { return obj.tag; }); tags = tags.concat(tagChipsArray); tags = tags.map(function (tag) { return titleCase(tag); }); tags = tags.filter(onlyUnique); var tagArray = store.get('tags'); for (var i = 0; i < tags.length; i++) { if (!tagArray.includes(titleCase(tags[i]))) { tagArray.push(titleCase(tags[i])); tagArray.sort(); } } store.set('tags', tagArray); var uuid = uuidv1(); var book = { 'uuid': uuid, 'title': $('#title').val(), 'author': $('#author').val(), 'tags': tags.sort(), 'notes': $('#notes').val(), 'dateAdded': today } var toReadArray = store.get('toRead'); toReadArray.push(book); store.set('toRead', toReadArray); var timelineEntry = { 'event': 'Added: ' + $('#title').val(), 'date': today, 'icon': { 'name': 'add', 'color': 'green' }, 'uuid': uuid } var timelineArray = store.get('timeline'); timelineArray.unshift(timelineEntry); store.set('timeline', timelineArray); $('#newBookModal').modal('close'); M.toast({ html: 'Book Added', classes: 'green' }); populateToReadList(); } }); } function undoNotes(source) { if (!source) { $('.undoCurrentlyReadingNotesBtn, .undoFinishedReadingNotesBtn').unbind('click'); $('.undoCurrentlyReadingNotesBtn').click(function () { undoNotes('currentlyReading'); }); $('.undoFinishedReadingNotesBtn').click(function () { undoNotes('finishedReading'); }); } else if (source == "currentlyReading" || source == "finishedReading") { var notesElement; var initialNotes; if (source == "currentlyReading") { notesElement = '#infoCurrentlyReadingNotes'; initialNotes = $('#infoCurrentlyReadingInitialNotes').text(); } else if (source == "finishedReading") { notesElement = '#infoFinishedReadingNotes'; initialNotes = $('#infoFinishedReadingInitialNotes').text(); } $(notesElement).val(initialNotes); animateCSS(notesElement, 'fadeIn'); } } function editNotesChanged(source) { if (!source) { $('#infoCurrentlyReadingNotes, #infoFinishedReadingNotes').off('input'); $('#infoCurrentlyReadingNotes').on('input', function() { console.log('Change'); editNotesChanged('currentlyReading'); }); $('#infoFinishedReadingNotes').on('input', function() { editNotesChanged('finishedReading'); }); } else if (source == "currentlyReading" || source == "finishedReading") { var editBtn; var initialNotes; var notes; if (source == "currentlyReading") { editBtn = $('.editCurrentlyReadingNotesBtn'); initialNotes = $('#infoCurrentlyReadingInitialNotes').text(); notes = $('#infoCurrentlyReadingNotes').val(); } else if (source == "finishedReading") { editBtn = $('.editFinishedReadingNotesBtn'); initialNotes = $('#infoFinishedReadingInitialNotes').text(); notes = $('#infoFinishedReadingNotes').val(); } if (removeSpaces(notes) != "" && notes != initialNotes) { editBtn.removeClass('disabled'); } else { editBtn.addClass('disabled'); } } } function editNotesHandler(source) { if (!source) { $('.editCurrentlyReadingNotesBtn').click(function () { editNotesHandler('currentlyReading'); }); $('.editFinishedReadingNotesBtn').click(function () { editNotesHandler('finishedReading'); }); } else if (source == "currentlyReading" || source == "finishedReading") { var editModal; var notes; var uuid; if (source == "currentlyReading") { editModal = $('#infoCurrentlyReadingBookModal'); notes = $('#infoCurrentlyReadingNotes').val(); uuid = $('#infoCurrentlyReadingUuid').text(); } else if (source == "finishedReading") { editModal = $('#infoFinishedReadingBookModal'); notes = $('#infoFinishedReadingNotes').val(); uuid = $('#infoFinishedReadingUuid').text(); } var dataArray = store.get(source); for (var i = 0; i < dataArray.length; i++) { if (dataArray[i].uuid == uuid) { dataArray[i].notes = notes; } } store.set(source, dataArray); editModal.modal('close'); M.toast({ html: 'Notes Edited', classes: 'green' }); } } // Handler for edit book form function editBookFormHandler() { $('.editBookSubmitBtn').click(function () { if (checkBookTitleExists($('#editTitle').val(), $('#editBookUuid').val())) { animateCSS('#editTitle', 'bounce'); M.toast({ html: 'Title already in use', classes: 'orange' }); } else if (!title || !author) { animateCSS('#editTitle', 'bounce'); animateCSS('#editAuthor', 'bounce'); M.toast({ html: 'Required fields are missing', classes: 'orange' }); } else if (removeSpaces($('.editTagChips input').val())) { animateCSS('.editTagChips', 'bounce'); M.toast({ html: "Please check that your new tags are registered", classes: 'orange' }); } else { var tags = $('#editTags').formSelect('getSelectedValues'); var tagChipsArray = M.Chips.getInstance($('.editTagChips')).chipsData.map(function (obj) { return obj.tag; }); tags = tags.concat(tagChipsArray); tags = tags.map(function (tag) { return titleCase(tag); }); tags = tags.filter(onlyUnique); var tagArray = store.get('tags'); for (var i = 0; i < tags.length; i++) { if (!tagArray.includes(titleCase(tags[i]))) { tagArray.push(titleCase(tags[i])); tagArray.sort(); } } store.set('tags', tagArray); var toReadArray = store.get('toRead'); for (var j = 0; j < toReadArray.length; j++) { if (toReadArray[j].uuid == $('#editBookUuid').val()) { toReadArray[j].title = $('#editTitle').val(); toReadArray[j].author = $('#editAuthor').val(); toReadArray[j].tags = tags.sort(); toReadArray[j].notes = $('#editNotes').val(); } } store.set('toRead', toReadArray); populateToReadList(); var timelineArray = store.get('timeline'); for (var k = 0; k < timelineArray.length; k++) { if (timelineArray[k].uuid == $('#editBookUuid').val()) { var event = timelineArray[k].event; timelineArray[k].event = event.split(/:(.+)/)[0] + ": " + $('#editTitle').val(); } } store.set('timeline', timelineArray); $('#editBookModal').modal('close'); M.toast({ html: 'Book Edited', classes: 'green' }); } }); } // Clears new book form function clearNewBookForm() { $('#title, #author, #notes, .tagChips input, #isbn').val(''); $('#tags option:not(#disabledTag)').remove(); $('select').formSelect(); $('.tagChips .chip').remove(); } // Clears edit book form function clearEditBookForm() { $('#editTitle, #editAuthor, #editNotes, .editTagChips input, #editIsbn').val(''); $('#editTags option:not(#disabledEditTag)').remove(); $('select').formSelect(); $('.editTagChips .chip').remove(); } // Clears new tag form function clearNewTagForm() { $('#newTag, .addBooksChips input').val(''); $('.addBooksChips .chip').remove(); } // Clears reset form function clearResetForm() { $('#resetName').val(''); $('.resetBtn').addClass('disabled'); } // Populates timeline function populateTimeline() { var timelineArray = store.get('timeline'); timelineArray.map(function (event) { var formattedDate = moment(event.date).format('llll'); event.date = formattedDate; return event; }) var timelineHtml = timelineTemplate(timelineArray); $('.timeline').html(timelineHtml); } // Populates toReadList function populateToReadList() { var toReadArray = store.get('toRead'); var toReadListHtml = toReadListTemplate(toReadArray); $('.toReadListContainer').html(toReadListHtml); $('.tooltipped').tooltip(); } // Populates currentlyReadingList function populateCurrentlyReadingList() { var currentlyReadingArray = store.get('currentlyReading'); var currentlyReadingListHtml = currentlyReadingListTemplate(currentlyReadingArray); $('.currentlyReadingListContainer').html(currentlyReadingListHtml); $('.tooltipped').tooltip(); } // Populates finishedReadinglist function populateFinishedReadingList() { var finishedReadingArray = store.get('finishedReading'); var finishedReadingListHtml = finishedReadingListTemplate(finishedReadingArray); $('.finishedReadingListContainer').html(finishedReadingListHtml); $('.tooltipped').tooltip(); } // Handler for search on toReadList function toReadListSearchHandler() { $('.toReadListSearchBox').on('input', function () { var search = $('.toReadListSearchBox').val().toLowerCase().trim(); if (removeSpaces(search) != '') { var toReadArray = store.get('toRead'); toReadArray = toReadArray.filter(function (book) { if (book.title.toLowerCase().includes(search) || book.author.toLowerCase().includes(search)) { return book; } else { for (var i = 0; i < book.tags.length; i++) { if (book.tags[i].toLowerCase().includes(search)) { return book; } } } }); if (toReadArray.length == 0) { var toReadListHtml = '<div class="emptyListContainer center"><img class="emptyListImage emptyNotFoundImage animated pulse" src="./assets/notFound.svg"><div class="emptyListDescription">Oh noes! <br> Your search had no results.</div></div>' $('.toReadListContainer').html(toReadListHtml); } else { var toReadListHtml = toReadListTemplate(toReadArray); $('.toReadListContainer').html(toReadListHtml); $('.tooltipped').tooltip(); } } else { populateToReadList(); } }); } // Handler for search on currentlyReadingList function currentlyReadingListSearchHandler() { $('.currentlyReadingListSearchBox').on('input', function () { var search = $('.currentlyReadingListSearchBox').val().toLowerCase().trim(); if (removeSpaces(search) != '') { var currentlyReadingArray = store.get('currentlyReading'); currentlyReadingArray = currentlyReadingArray.filter(function (book) { if (book.title.toLowerCase().includes(search) || book.author.toLowerCase().includes(search)) { return book; } else { for (var i = 0; i < book.tags.length; i++) { if (book.tags[i].toLowerCase().includes(search)) { return book; } } } }); if (currentlyReadingArray.length == 0) { var currentlyReadingListHtml = '<div class="emptyListContainer center"><img class="emptyListImage emptyNotFoundImage animated pulse" src="./assets/notFound.svg"><div class="emptyListDescription">Oh noes! <br> Your search had no results.</div></div>'; $('.currentlyReadingListContainer').html(currentlyReadingListHtml); } else { var currentlyReadingListHtml = currentlyReadingListTemplate(currentlyReadingArray); $('.currentlyReadingListContainer').html(currentlyReadingListHtml); $('.tooltipped').tooltip(); } } else { populateCurrentlyReadingList(); } }); } // Handler for search on finishedReadingList function finishedReadingListSearchHandler() { $('.finishedReadingListSearchBox').on('input', function () { var search = $('.finishedReadingListSearchBox').val().toLowerCase().trim(); if (removeSpaces(search) != '') { var finishedReadingArray = store.get('finishedReading'); finishedReadingArray = finishedReadingArray.filter(function (book) { if (book.title.toLowerCase().includes(search) || book.author.toLowerCase().includes(search)) { return book; } else { for (var i = 0; i < book.tags.length; i++) { if (book.tags[i].toLowerCase().includes(search)) { return book; } } } }); if (finishedReadingArray.length == 0) { var finishedReadingListHtml = '<div class="emptyListContainer center"><img class="emptyListImage emptyNotFoundImage animated pulse" src="./assets/notFound.svg"><div class="emptyListDescription">Oh noes! <br> Your search had no results.</div></div>'; $('.finishedReadingListContainer').html(finishedReadingListHtml); } else { var finishedReadingListHtml = finishedReadingListTemplate(finishedReadingArray); $('.finishedReadingListContainer').html(finishedReadingListHtml); $('.tooltipped').tooltip(); } } else { populateFinishedReadingList(); } }); } // Handler for tagManagerList function tagManagerListSearchHandler() { $('.tagManagerListSearchBox').on('input', function () { var search = titleCase($('.tagManagerListSearchBox').val().trim()); if (removeSpaces(search) != '') { var tagArray = store.get('tags'); tagArray = tagArray.filter(function (tag) { if (tag.includes(search)) { return tag; } }); var toReadArray = store.get('toRead'); var currentlyReadingArray = store.get('currentlyReading'); var finishedReadingArray = store.get('finishedReading'); var allBooksArray = toReadArray.concat(currentlyReadingArray, finishedReadingArray); var finalTagArray = []; for (var i = 0; i < tagArray.length; i++) { var bookCount = 0; var tagName = tagArray[i]; for (var j = 0; j < allBooksArray.length; j++) { var bookArray = allBooksArray[j].tags.map(tag => titleCase(tag)); if (bookArray.includes(titleCase(tagName))) { bookCount += 1; } } var tagObject = { 'name': tagName, 'bookCount': bookCount } finalTagArray.push(tagObject); } finalTagArray.sort(alphabetizeTagNames); if (tagArray.length == 0) { var tagManagerListHtml = '<div class="emptyTagManagerListContainer center"><img class="emptyTagManagerListImage animated pulse" src="./assets/notFound.svg"><div class="emptyListDescription">Oh noes! <br> Your search had no results.</div></div>'; $('.tagManagerListContainer').html(tagManagerListHtml); } else { var tagManagerListHtml = tagManagerListTemplate(finalTagArray); $('.tagManagerListContainer').html(tagManagerListHtml); $('.tooltipped').tooltip(); } } else { populateTagManagerList(); } }); } // Handler for search on timeline function timelineSearchHandler() { $('.timelineSearchBtn').click(function () { var search = $('.timelineSearch').val().trim().toLowerCase(); var startDate = $('#startDate').val(); var endDate = $('#endDate').val(); var initialTimelineArray = store.get('timeline'); var timelineArray = initialTimelineArray; if (removeSpaces(search) == '' && !startDate && !endDate) { M.toast({ html: 'At least one field is required', classes: 'orange' }); animateCSS('.timelineSearchBox', 'bounce'); animateCSS('#startDate', 'bounce'); animateCSS('#endDate', 'bounce'); } if (startDate && endDate) { startDate = moment($('#startDate').val(), 'MMM DD, YYYY'); endDate = moment($('#endDate').val(), 'MMM DD, YYYY'); if (endDate.isBefore(startDate)) { M.toast({ html: 'End Date is not at least 1 day after Start Date', classes: 'orange' }); animateCSS('#startDate', 'bounce'); animateCSS('#endDate', 'bounce'); return; } if (removeSpaces(search) == '') { timelineArray = timelineArray.filter(function (event) { if (moment(event.date).isBetween(startDate, endDate, 'day', '[]')) { return event; } }); } else { timelineArray = timelineArray.filter(function (event) { if (moment(event.date).isBetween(startDate, endDate, 'day', '[]') && event.event.toLowerCase().includes(search)) { return event; } }); } } else if (startDate && !endDate) { if (removeSpaces(search) == '') { timelineArray = timelineArray.filter(function (event) { if (moment(event.date).isSameOrAfter(startDate, 'day')) { return event; } }); } else { timelineArray = timelineArray.filter(function (event) { if (moment(event.date).isSameOrAfter(startDate, 'day') && event.event.toLowerCase().includes(search)) { return event; } }); } } else if (!startDate && endDate) { if (removeSpaces(search) == '') { timelineArray = timelineArray.filter(function (event) { if (moment(event.date).isSameOrBefore(endDate, 'day')) { return event; } }); } else { timelineArray = timelineArray.filter(function (event) { if (moment(event.date).isSameOrBefore(endDate, 'day') && event.event.toLowerCase().includes(search)) { return event; } }); } } else if (removeSpaces(search) != '') { timelineArray = timelineArray.filter(function (event) { if (event.event.toLowerCase().includes(search.toLowerCase())) { return event; } }); } if (timelineArray.length < 1) { M.toast({ html: 'No results', classes: 'orange' }); timelineArray = initialTimelineArray; } timelineArray.map(function (event) { var formattedDate = moment(event.date).format('llll'); event.date = formattedDate; return event; }) var timelineHtml = timelineTemplate(timelineArray); $('.timeline').html(timelineHtml); }); $('.timelineClearBtn').click(function () { $('.timelineSearch').val(''); var elems = document.querySelector('#startDate'); var instances = M.Datepicker.init(elems, {}); var elems = document.querySelector('#endDate'); var instances = M.Datepicker.init(elems, {}); $('#startDate').val(''); $('#endDate').val(''); animateCSS('.timelineSearchBox', 'bounce'); animateCSS('#startDate', 'bounce'); animateCSS('#endDate', 'bounce'); populateTimeline(); }); } // Handler for new tag form CHECK FOR UNSUBMITTED function newTagFormHandler() { $('.newTagSubmitBtn').click(function () { var tag = titleCase($('#newTag').val()); var bookChipsInstance = M.Chips.getInstance($('.addBooksChips')); var bookChipsArray = bookChipsInstance.chipsData; var tagArray = store.get('tags'); if (!removeSpaces(tag)) { animateCSS('#newTag', 'bounce'); M.toast({ html: 'No tag specified', classes: 'orange' }); } else if (tagArray.includes(tag)) { animateCSS('#newTag', 'bounce'); M.toast({ html: 'Tag already exists', classes: 'orange' }); } else if ($('.addBooksChips input').val()) { M.toast({ html: 'Please check that your books are registered', classes: 'orange' }); } else { if (bookChipsArray.length > 0) { bookChipsArray = bookChipsArray.map(function (chip) { return chip.tag.toLowerCase(); }); var toReadArray = store.get('toRead'); var currentlyReadingArray = store.get('currentlyReading'); var finishedReadingArray = store.get('finishedReading'); var allBooksArray = [{ 'toRead': toReadArray }, { 'currentlyReading': currentlyReadingArray }, { 'finishedReading': finishedReadingArray } ]; for (var i = 0; i < allBooksArray.length; i++) { for (var j = 0; j < allBooksArray[i][Object.keys(allBooksArray[i])[0]].length; j++) { if (bookChipsArray.length != 0) { var categoryArray = allBooksArray[i][Object.keys(allBooksArray[i])[0]]; var categoryBook = categoryArray[j]; if (bookChipsArray.includes(categoryBook.title.toLowerCase())) { categoryBook.tags.push(tag); categoryBook.tags.sort(); allBooksArray[i][Object.keys(allBooksArray[i])[0]][j] = categoryBook; bookChipsArray = bookChipsArray.filter(function (book) { if (book != categoryBook.title) { return book; } }) } } else { break; } } } store.set('toRead', allBooksArray[0].toRead); store.set('currentlyReading', allBooksArray[1].currentlyReading); store.set('finishedReading', allBooksArray[2].finishedReading); } tagArray.push(tag); tagArray.sort(); store.set('tags', tagArray); $('#newTagModal').modal('close'); M.toast({ html: 'Tag Added', classes: 'green' }); populateTagManagerList(); } }); } // Checks if duplicate or faulty book chips have been added (CHECK THIS) function validateBookChip() { var bookChipsInstance = M.Chips.getInstance($('.addBooksChips')); var lastBookChipIndex = bookChipsInstance.chipsData.length - 1; var bookChipsArray = bookChipsInstance.chipsData; var lastBookTitle = bookChipsArray[lastBookChipIndex].tag.toLowerCase(); var toReadArray = store.get('toRead'); var currentlyReadingArray = store.get('currentlyReading'); var finishedReadingArray = store.get('finishedReading'); var allBooksArray = toReadArray.concat(currentlyReadingArray, finishedReadingArray); bookChipsArray = bookChipsArray.map(function (book) { return book.tag.toLowerCase(); }); if (bookChipsArray.length === new Set(bookChipsArray).size && bookChipsArray.length > 1) { bookChipsInstance.deleteChip(lastBookChipIndex); M.toast({ html: 'Book already added', classes: 'orange' }); } else if (!(allBooksArray.filter(book => book.title.toLowerCase() === lastBookTitle).length > 0)) { bookChipsInstance.deleteChip(lastBookChipIndex); M.toast({ html: 'Book does not exist', classes: 'orange' }); } } // Populates book select on new tag form function populateBookSelect() { var toReadArray = store.get('toRead'); var currentlyReadingArray = store.get('currentlyReading'); var finishedReadingArray = store.get('finishedReading'); var allBooksArray = toReadArray.concat(currentlyReadingArray, finishedReadingArray); var booksAutocompleteObject = {}; allBooksArray.sort(function (a, b) { var textA = a.title; var textB = b.title; return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; }); for (var i = 0; i < allBooksArray.length; i++) { booksAutocompleteObject[allBooksArray[i].title] = null; } $('.addBooksChips').chips({ placeholder: 'Tag Books', secondaryPlaceholder: '+Book', onChipAdd: validateBookChip, autocompleteOptions: { data: booksAutocompleteObject, limit: 10 } }); } // Fixes positioning of book select in newTagModal function newTagModalFix() { $('#newTagModal').css('display', 'inline-table'); } // Alphabetizes tag names function alphabetizeTagNames(a, b) { if (a.name < b.name) { return -1; } if (a.name > b.name) { return 1; } return 0; } // Populates tagManagerList function populateTagManagerList() { var tagArray = store.get('tags'); var toReadArray = store.get('toRead'); var currentlyReadingArray = store.get('currentlyReading'); var finishedReadingArray = store.get('finishedReading'); var allBooksArray = toReadArray.concat(currentlyReadingArray, finishedReadingArray); var finalTagArray = []; for (var i = 0; i < tagArray.length; i++) { var bookCount = 0; var tagName = tagArray[i]; for (var j = 0; j < allBooksArray.length; j++) { var bookArray = allBooksArray[j].tags.map(tag => titleCase(tag)); if (bookArray.includes(titleCase(tagName))) { bookCount += 1; } } var tagObject = { 'name': tagName, 'bookCount': bookCount } finalTagArray.push(tagObject); } finalTagArray.sort(alphabetizeTagNames); tagManagerListHtml = tagManagerListTemplate(finalTagArray); $('.tagManagerListContainer').html(tagManagerListHtml); $('.tooltipped').tooltip(); } // Creating a custom function on Array object to subtract two arrays Array.prototype.diff = function (a) { return this.filter(function (i) { return a.indexOf(titleCase(i)) < 0; }); }; // Button handlers for tagManagerList function tagManagerListBtnHandlers() { $(document).on('click', '.deleteTagToastBtn', function () { var deleteToastHTML = '<span>Confirm Delete?</span><a data-tag="' + $(this).data('tag') + '" class="deleteTagBtn btn-floating toast-action green"><i class="material-icons white-text">done</i></a>'; M.toast({ html: deleteToastHTML, classes: 'red' }); }); $(document).on('click', '.deleteTagBtn', function () { var toastElement = $(this).parent(); var toastInstance = M.Toast.getInstance(toastElement); toastInstance.dismiss(); var targetTag = $(this).data('tag'); var tagArray = store.get('tags'); tagArray = tagArray.filter(function (tag) { if (tag !== targetTag) { return tag; } }); store.set('tags', tagArray); var toReadArray = store.get('toRead'); var currentlyReadingArray = store.get('currentlyReading'); var finishedReadingArray = store.get('finishedReading'); var allBooksArray = [{ 'toRead': toReadArray }, { 'currentlyReading': currentlyReadingArray }, { 'finishedReading': finishedReadingArray } ]; for (var i = 0; i < allBooksArray.length; i++) { for (var j = 0; j < allBooksArray[i][Object.keys(allBooksArray[i])[0]].length; j++) { var categoryArray = allBooksArray[i][Object.keys(allBooksArray[i])[0]]; var categoryBook = categoryArray[j]; categoryBook.tags = categoryBook.tags.filter(function (tag) { if (tag !== targetTag) { return tag; } }); categoryBook.tags.sort(); allBooksArray[i][Object.keys(allBooksArray[i])[0]][j] = categoryBook; } } store.set('toRead', allBooksArray[0].toRead); store.set('currentlyReading', allBooksArray[1].currentlyReading); store.set('finishedReading', allBooksArray[2].finishedReading); populateTagManagerList(); M.toast({ html: 'Removed Tag', classes: 'green' }); }); } // Button handlers for finishedReading books function finishedReadingBookBtnHandlers() { $(document).on('click', '.deleteFinishedReadingBookBtn', function () { var toastElement = $(this).parent(); var toastInstance = M.Toast.getInstance(toastElement); toastInstance.dismiss(); var targetUuid = $(this).data('uuid'); var finishedReadingArray = store.get('finishedReading'); finishedReadingArray = finishedReadingArray.filter(function (book) { return book.uuid !== targetUuid; }); store.set('finishedReading', finishedReadingArray); var today = moment(new Date()); var title = $('.finishedReadingBookTitle[data-uuid=' + targetUuid + ']').text(); var timelineEntry = { 'event': 'Removed: ' + title, 'date': today, 'icon': { 'name': 'delete', 'color': 'red' } } var timelineArray = store.get('timeline'); timelineArray.unshift(timelineEntry); store.set('timeline', timelineArray); populateFinishedReadingList(); finishedBooksWidget(); filterTotalFinishedBooksWidget(); M.toast({ html: 'Removed Book', classes: 'green' }); }); $(document).on('click', '.deleteFinishedReadingToastBtn', function () { var deleteToastHTML = '<span>Confirm Delete?</span><a data-uuid="' + $(this).data('uuid') + '" class="deleteFinishedReadingBookBtn btn-floating toast-action green"><i class="material-icons white-text">done</i></a>'; M.toast({ html: deleteToastHTML, classes: 'red' }); }); $(document).on('click', '.infoFinishedReadingBookBtn', function () { var targetUuid = $(this).data('uuid'); var finishedReadingArray = store.get('finishedReading'); var targetBook = {}; finishedReadingArray = finishedReadingArray.filter(function (book) { if (book.uuid == targetUuid) { targetBook = book; } return book.uuid !== targetUuid; }); targetBook.dateAdded = moment(targetBook.dateAdded).format('llll'); targetBook.dateStarted = moment(targetBook.dateStarted).format('llll'); targetBook.dateFinished = moment(targetBook.dateFinished).format('llll'); if (!targetBook.notes) { targetBook.notes = "No Additional Notes"; } var infoFinishedReadingHtml = infoFinishedReadingTemplate(targetBook); $('.infoFinishedReadingWrapper').html(infoFinishedReadingHtml); undoNotes(); editNotesChanged(); $('.tooltipped').tooltip(); $('#infoFinishedReadingBookModal').modal('open'); }); } // Button handlers for currentlyReading books function currentlyReadingBookBtnHandlers() { $(document).on('click', '.addToFinishedReadingToastBtn', function () { var addToastHTML = '<span>Confirm Action?</span><a data-uuid="' + $(this).data('uuid') + '" class="addToFinishedReadingBtn btn-floating toast-action green"><i class="material-icons white-text">done</i></a>'; M.toast({ html: addToastHTML, classes: 'orange' }); }); $(document).on('click', '.addToFinishedReadingBtn', function () { var toastElement = $(this).parent(); var toastInstance = M.Toast.getInstance(toastElement); toastInstance.dismiss(); var targetUuid = $(this).data('uuid'); var currentlyReadingArray = store.get('currentlyReading'); var targetBook = {}; currentlyReadingArray = currentlyReadingArray.filter(function (book) { if (book.uuid == targetUuid) { targetBook = book; } return book.uuid !== targetUuid; }); store.set('currentlyReading', currentlyReadingArray); var today = moment(new Date()); targetBook = { "uuid": targetBook.uuid, "title": targetBook.title, "author": targetBook.author, "tags": targetBook.tags, "notes": targetBook.notes, "dateAdded": targetBook.dateAdded, "dateStarted": targetBook.dateStarted, "dateFinished": today } var finishedReadingArray = store.get('finishedReading'); finishedReadingArray.unshift(targetBook); store.set('finishedReading', finishedReadingArray); var timelineEntry = { 'event': 'Finished: ' + targetBook.title, 'date': today, 'icon': { 'name': 'done', 'color': 'blue' } } var timelineArray = store.get('timeline'); timelineArray.unshift(timelineEntry); store.set('timeline', timelineArray); populateCurrentlyReadingList(); populateFinishedReadingList(); finishedBooksWidget(); filterTotalFinishedBooksWidget(); M.toast({ html: 'Moved Book', classes: 'green' }); }); $(document).on('click', '.deleteCurrentlyReadingBookBtn', function () { var toastElement = $(this).parent(); var toastInstance = M.Toast.getInstance(toastElement); toastInstance.dismiss(); var targetUuid = $(this).data('uuid'); var currentlyReadingArray = store.get('currentlyReading'); currentlyReadingArray = currentlyReadingArray.filter(function (book) { return book.uuid !== targetUuid; }); store.set('currentlyReading', currentlyReadingArray); var today = moment(new Date()); var title = $('.currentlyReadingBookTitle[data-uuid=' + targetUuid + ']').text(); var timelineEntry = { 'event': 'Removed: ' + title, 'date': today, 'icon': { 'name': 'delete', 'color': 'red' } } var timelineArray = store.get('timeline'); timelineArray.unshift(timelineEntry); store.set('timeline', timelineArray); populateCurrentlyReadingList(); M.toast({ html: 'Removed Book', classes: 'green' }); }); $(document).on('click', '.deleteCurrentlyReadingToastBtn', function () { var deleteToastHTML = '<span>Confirm Delete?</span><a data-uuid="' + $(this).data('uuid') + '" class="deleteCurrentlyReadingBookBtn btn-floating toast-action green"><i class="material-icons white-text">done</i></a>'; M.toast({ html: deleteToastHTML, classes: 'red' }); }); $(document).on('click', '.infoCurrentlyReadingBookBtn', function () { var targetUuid = $(this).data('uuid'); var currentlyReadingArray = store.get('currentlyReading'); var targetBook = {}; currentlyReadingArray = currentlyReadingArray.filter(function (book) { if (book.uuid == targetUuid) { targetBook = book; } return book.uuid !== targetUuid; }); targetBook.dateAdded = moment(targetBook.dateAdded).format('llll'); targetBook.dateStarted = moment(targetBook.dateStarted).format('llll'); // if (!targetBook.notes) { // targetBook.notes = "No Additional Notes"; // } var infoCurrentlyReadingHtml = infoCurrentlyReadingTemplate(targetBook); $('.infoCurrentlyReadingWrapper').html(infoCurrentlyReadingHtml); undoNotes(); editNotesChanged(); $('.tooltipped').tooltip(); $('#infoCurrentlyReadingBookModal').modal('open'); }); } // Button handlers for toRead books function toReadBookBtnHandlers() { $(document).on('click', '.deleteToReadBookBtn', function () { var toastElement = $(this).parent(); var toastInstance = M.Toast.getInstance(toastElement); toastInstance.dismiss(); var targetUuid = $(this).data('uuid'); var toReadArray = store.get('toRead'); toReadArray = toReadArray.filter(function (book) { return book.uuid !== targetUuid; }); store.set('toRead', toReadArray); var today = moment(new Date()); var title = $('.toReadBookTitle[data-uuid=' + targetUuid + ']').text(); var timelineEntry = { 'event': 'Removed: ' + title, 'date': today, 'icon': { 'name': 'delete', 'color': 'red' } } var timelineArray = store.get('timeline'); timelineArray.unshift(timelineEntry); store.set('timeline', timelineArray); populateToReadList(); M.toast({ html: 'Removed Book', classes: 'green' }); }); $(document).on('click', '.deleteToReadBookToastBtn', function () { var deleteToastHTML = '<span>Confirm Delete?</span><a data-uuid="' + $(this).data('uuid') + '" class="deleteToReadBookBtn btn-floating toast-action green"><i class="material-icons white-text">done</i></a>'; M.toast({ html: deleteToastHTML, classes: 'red' }); }); $(document).on('click', '.addToCurrentlyReadingBtn', function () { var toastElement = $(this).parent(); var toastInstance = M.Toast.getInstance(toastElement); toastInstance.dismiss(); var targetUuid = $(this).data('uuid'); var toReadArray = store.get('toRead'); var targetBook = {}; toReadArray = toReadArray.filter(function (book) { if (book.uuid == targetUuid) { targetBook = book; } return book.uuid !== targetUuid; }); store.set('toRead', toReadArray); var today = moment(new Date()); targetBook = { "uuid": targetBook.uuid, "title": targetBook.title, "author": targetBook.author, "tags": targetBook.tags, "notes": targetBook.notes, "dateAdded": targetBook.dateAdded, "dateStarted": today } var currentlyReadingArray = store.get('currentlyReading'); currentlyReadingArray.unshift(targetBook); store.set('currentlyReading', currentlyReadingArray); var timelineEntry = { 'event': 'Reading: ' + targetBook.title, 'date': today, 'icon': { 'name': 'book', 'color': 'red' } } var timelineArray = store.get('timeline'); timelineArray.unshift(timelineEntry); store.set('timeline', timelineArray); populateToReadList(); populateCurrentlyReadingList(); M.toast({ html: 'Moved Book', classes: 'green' }); }); $(document).on('click', '.addToCurrentlyReadingToastBtn', function () { var addToastHTML = '<span>Confirm Action?</span><a data-uuid="' + $(this).data('uuid') + '" class="addToCurrentlyReadingBtn btn-floating toast-action green"><i class="material-icons white-text">done</i></a>'; M.toast({ html: addToastHTML, classes: 'orange' }); }); $(document).on('click', '.editBookBtn', function () { var targetUuid = $(this).data('uuid'); var toReadArray = store.get('toRead'); var targetBook = toReadArray.filter(book => { return book.uuid == targetUuid; })[0]; $('#editTitle').val(targetBook.title); $('#editAuthor').val(targetBook.author); $('#editBookUuid').val(targetBook.uuid); if (targetBook.tags) { var selectedTags = targetBook.tags; var allTags = store.get('tags'); var unselectedTags = allTags.diff(selectedTags); var combinedTags = { 'selectedTags': selectedTags, 'unselectedTags': unselectedTags } var editTagSelectHtml = editTagSelectTemplate(combinedTags); $('#disabledEditTag').after(editTagSelectHtml); $('select').formSelect(); } if (targetBook.notes) { $('#editNotes').val(targetBook.notes); } $('#editBookModal').modal('open'); }); } // Checks if JSON is parsable function tryParseJSON(jsonString) { try { var jsonObject = JSON.parse(jsonString); if (jsonObject && typeof jsonObject === "object") { return jsonObject; } } catch (error) {} return false; }; // Checks if JSON is in Readit's appropriate format function isReaditJSON(jsonObject) { var requiredKeysArray = [ 'startDate', 'timeline', 'tags', 'toRead', 'currentlyReading', 'finishedReading' ]; for (var i = 0; i < requiredKeysArray.length; i++) { if (!jsonObject.hasOwnProperty(requiredKeysArray[i])) { return false; } } return true; } // Button handlers for settings function settingsBtnHandlers() { $('.uploadBtn').click(function () { var reader = new FileReader(); reader.onload = function (e) { var text = reader.result; if (tryParseJSON(text) && isReaditJSON(tryParseJSON(text))) { var jsonObject = tryParseJSON(text); store.set(jsonObject); populateToReadList(); populateCurrentlyReadingList(); populateFinishedReadingList(); daysSinceStartWidget(); finishedBooksWidget(); filterTotalFinishedBooksWidget(); M.toast({ html: 'Imported new data', classes: 'green' }); } else { M.toast({ html: 'Invalid JSON', classes: 'orange' }); } } try { reader.readAsText($('#uploadFile').prop('files')[0]); } catch (error) { M.toast({ html: 'Invalid JSON', classes: 'orange' }); } }); ipcRenderer.on("downloadJSONComplete", (event, file) => { M.toast({ html: 'Downloaded file to ' + file, classes: 'green' }); }); $('.downloadBtn').click(function () { ipcRenderer.send("downloadJSON", { url: store.path }); }); $('#resetName').on('input', function () { var resetName = $(this).val().trim(); if (resetName.toLowerCase() == "readit") { $('.resetBtn').removeClass('disabled'); } else { $('.resetBtn').addClass('disabled'); } }); $('.resetBtn').click(function () { var today = moment(new Date()); store.set({ "startDate": today, "timeline": [{ "event": "Started using Readit", "date": today, "icon": { "name": "flag", "color": "rainbow pulse" } }], "tags": [], "toRead": [], "currentlyReading": [], "finishedReading": [] }); $('#resetModal').modal('close'); populateToReadList(); populateCurrentlyReadingList(); populateFinishedReadingList(); daysSinceStartWidget(); finishedBooksWidget(); filterTotalFinishedBooksWidget(); M.toast({ html: 'All data has been reset', classes: 'green' }); }); } // Creates an obfuscation effect (Spent way too much time on this) function obfuscateEffect() { var obfuscateInterval; var initialText = $('.obfuscate').text(); $('.obfuscate').hover(function () { obfuscateInterval = setInterval(animateObfuscatedText, 25); }, function () { clearInterval(obfuscateInterval); $('.obfuscate').text(initialText); }); function animateObfuscatedText() { var text = $('.obfuscate').text(); var alphabet = [ "", "i,;.:!|î", "l'`Ììí·´", "It[]ÍÎÏ諸•°", " kf(){}*¤²”\"", "ABCDEFGHJKLMNOPQRSTUVWXYZabcdeghjmnopqrsuvwxyz" + "/?$%&+-#_¯=^¨£ÀÁÂÃÄÅÇÈÉÊËÑÒÓÔÕÖÙÚÛÜÝ" + "àáâãäåçèéêëñðòóôõöùúûüýÿ0123456789Ææß×¼½¿¬«»", "~@®÷±", "µµµµµ", ]; var newText = ""; for (var i = 0; i < text.length; i++) { var newCharacter = text[i]; var length = -1; var position = -1; for (var j = 1; j < alphabet.length; j++) { for (var k = 0; k < alphabet[j].length; k++) { if (alphabet[j][k] == newCharacter) { length = j; position = k; break; } } if (length >= 0) break; } if (length >= 0) { var newPosition; do { newPosition = Math.floor(Math.random() * alphabet[length].length); } while (newPosition == position); newText += alphabet[length][newPosition]; } else newText += newCharacter; } $('.obfuscate').text(newText); } } // Changes profile image to a gif on hover function animateProfileImage() { $('.profileImage').mouseenter(function () { $('.profileImage').attr('src', 'assets/profile.gif'); }); $('.profileImage').mouseleave(function () { $('.profileImage').attr('src', 'assets/profile.png'); }) } // Button handlers for socials function socialBtnHandlers() { $('.linkedin').click(function () { open("https://www.linkedin.com/in/sohamashodiya/"); }); $('.github').click(function () { open("https://github.com/sohamashodiya"); }); $('.discord').click(function () { clipboard.writeText('Vell•सोहम•eity#3427'); M.toast({ html: 'Copied Discord ID', classes: 'green' }); }); $('.twitter').click(function () { open("https://twitter.com/sohamashodiya"); }); } $(document).ready(function () { initializeMaterializeWidgets(); initializeHandlebarsTemplates(); daysSinceStartWidget(); finishedBooksWidget(); filterTotalFinishedBooksWidget(); isbnHandler(); newTagFormHandler(); newBookFormHandler(); editBookFormHandler(); editNotesHandler(); populateToReadList(); populateCurrentlyReadingList(); populateFinishedReadingList(); toReadListSearchHandler(); currentlyReadingListSearchHandler(); finishedReadingListSearchHandler(); toReadBookBtnHandlers(); currentlyReadingBookBtnHandlers(); finishedReadingBookBtnHandlers(); tabHandlers(); timelineSearchHandler(); tagManagerListSearchHandler() tagManagerListBtnHandlers(); settingsBtnHandlers(); socialBtnHandlers(); animateProfileImage(); obfuscateEffect(); });
import { GraphQLClient } from 'graphql-request'; const getDataFromBackend = async ({ query, variables, preview }) => { const endpoint = preview ? `https://graphql.datocms.com/preview` : `https://graphql.datocms.com/`; const client = new GraphQLClient(endpoint, { headers: { authorization: `Bearer ${process.env.NEXT_DATOCMS_API_TOKEN}`, }, }); const data = await client.request(query, variables); return data; }; export default getDataFromBackend;
import { createGlobalStyle, css } from 'styled-components' const GlobalStyles = createGlobalStyle` * { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } ${({ theme }) => css` html { font-size: 62.5%; } html, body, #__next { height: 100%; background: ${theme.colors.background}; color: ${theme.colors.white}; } body { font-family: ${theme.font.family}; } p, a { font-size: 2rem; line-height: ${theme.sizes.medium}; } a { color: ${theme.colors.highlight}; } `} ` export default GlobalStyles
<filename>src/app/app.component.ts<gh_stars>1-10 import { Component, ViewChild } from "@angular/core"; import { MatSidenav } from "@angular/material/sidenav"; import { Router } from "@angular/router"; import { TranslateService } from "@ngx-translate/core"; @Component({ selector: "app-root", templateUrl: "./app.component.html", styleUrls: ["./app.component.scss"], }) export class AppComponent { @ViewChild("sidenav") public sidenav: MatSidenav; constructor( private translateService: TranslateService, public router: Router ) { this.translateService.addLangs(["tr", "en"]); this.translateService.use("tr"); } public navigateToRoute(route: string): void { void this.router.navigate([route]); void this.sidenav.close(); } public toggleSidenav(): void { void this.sidenav.toggle(); } public changeLang(lang: string): void { this.translateService.use(lang); } }
TextView dateView; Date currentTime = Calendar.getInstance().getTime(); SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy"); String date = dateFormat.format(currentTime); dateView = findViewById(R.id.dateView); dateView.setText(date);
REM update.sql REM Chapter 4, Oracle9i PL/SQL Programming by <NAME> REM This block demonstrates some UPDATE statements. DECLARE v_Major students.major%TYPE; v_CreditIncrease NUMBER := 3; BEGIN -- This UPDATE statement will add 3 to the current_credits -- field of all students who are majoring in History. v_Major := 'History'; UPDATE students SET current_credits = current_credits + v_CreditIncrease WHERE major = v_Major; -- This UPDATE statement will update both columns of -- temp_table, for all rows. UPDATE temp_table SET num_col = 1, char_col = 'abcd'; END; /
#!/bin/sh for i in src/*.cpp; do echo $i done
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_filepath_pa.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: asfaihi <<EMAIL>> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/07/08 16:47:17 by asfaihi #+# #+# */ /* Updated: 2021/09/28 14:30:18 by asfaihi ### ########.fr */ /* */ /* ************************************************************************** */ #include "parsing.h" static void get_file_quote(t_redir *redir, char *s, t_list *env_lst, t_prs *prs) { char *temp; char *tmp; if (s[prs->i] == '"') { temp = double_quotes(s, env_lst, prs); tmp = redir->file; redir->file = ft_strjoin(redir->file, temp); free(temp); free(tmp); if (redir->file == NULL) redir->file = ft_strdup(""); } if (s[prs->i] == '\'') { temp = single_quotes(s, prs); tmp = redir->file; redir->file = ft_strjoin(redir->file, temp); free(temp); free(tmp); } } static void join_filepath(t_redir *redir, char *s, t_list *env_lst, t_prs *prs) { char *temp; char *tmp; int j; j = prs->i; if (s[prs->i] && s[prs->i] != '"' && s[prs->i] != '\'' && s[prs->i] != '>' && s[prs->i] != '<') { while (s[prs->i] && s[prs->i] != ' ' && s[prs->i] != '<' && s[prs->i] != '>' && s[prs->i] != '"' && s[prs->i] != '\'') prs->i++; temp = ft_substr(s, j, prs->i - j); tmp = env_var_checker(temp, env_lst, prs); free(temp); temp = redir->file; redir->file = ft_strjoin(redir->file, tmp); free(tmp); free(temp); } } void get_filepath(t_redir *redir, char *s, t_list *env_lst, t_prs *prs) { while (s[prs->i] == ' ') prs->i++; if (s[prs->i] == '$') if (check_ambigous_redirect(s, env_lst, prs) == -1) prs->ambigous = 1; while (s[prs->i]) { join_filepath(redir, s, env_lst, prs); get_file_quote(redir, s, env_lst, prs); if (!s[prs->i] || s[prs->i] == ' ' || s[prs->i] == '>' || s[prs->i] == '<') break ; } while (s[prs->i] == ' ') prs->i++; }
cd '/scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_05_GermlineCNVCaller_2_scatterCall/result/lindsay_exomeseq_3772_ITER_009' set -o pipefail cd /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_05_GermlineCNVCaller_2_scatterCall/result/lindsay_exomeseq_3772_ITER_009 export MKL_NUM_THREADS=1 export OMP_NUM_THREADS=1 gatk --java-options "-Xmx40G" GermlineCNVCaller \ --run-mode COHORT \ -L /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_05_GermlineCNVCaller_1_scatterIntervals/result/lindsay_exomeseq_3772.9.interval_list \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_09B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_12B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_175_06.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_175_09.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_175_10.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_175_12.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_175_18.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_175_19.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_175_23.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_175_27.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_175_33.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_181.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_181F1.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_196.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_196F1.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_196F2.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_23B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_03.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_09.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_13.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_15.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_21.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_22.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_37.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_38.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_39.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_273_40.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_31B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_38B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_42B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_56B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_60B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_64B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_67B.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_C04.count.hdf5 \ --input /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_02_CollectReadCounts/result/P_C08.count.hdf5 \ --contig-ploidy-calls /scratch/cqs/shengq2/jennifer/20200407_lindsay_exomeseq_3772_hg38/bwa_refine_nosoftclip_gatk4_CNV_Germline_04_DetermineGermlineContigPloidyCohortMode/result/lindsay_exomeseq_3772-calls \ --interval-merging-rule OVERLAPPING_ONLY \ --output . \ --output-prefix gcc \ --verbosity DEBUG \ --p-alt 1e-6 \ --p-active 1e-2 \ --cnv-coherence-length 10000.0 \ --class-coherence-length 10000.0 \ --max-copy-number 5 \ --max-bias-factors 5 \ --mapping-error-rate 0.01 \ --interval-psi-scale 0.001 \ --sample-psi-scale 0.0001 \ --depth-correction-tau 10000.0 \ --log-mean-bias-standard-deviation 0.1 \ --init-ard-rel-unexplained-variance 0.1 \ --num-gc-bins 20 \ --gc-curve-standard-deviation 1.0 \ --copy-number-posterior-expectation-mode HYBRID \ --enable-bias-factors true \ --active-class-padding-hybrid-mode 50000 \ --learning-rate 0.05 \ --adamax-beta-1 0.9 \ --adamax-beta-2 0.99 \ --log-emission-samples-per-round 50 \ --log-emission-sampling-median-rel-error 0.005 \ --log-emission-sampling-rounds 10 \ --max-advi-iter-first-epoch 5000 \ --max-advi-iter-subsequent-epochs 100 \ --min-training-epochs 10 \ --max-training-epochs 100 \ --initial-temperature 2.0 \ --num-thermal-advi-iters 2500 \ --convergence-snr-averaging-window 500 \ --convergence-snr-trigger-threshold 0.1 \ --convergence-snr-countdown-window 10 \ --max-calling-iters 10 \ --caller-update-convergence-threshold 0.001 \ --caller-internal-admixing-rate 0.75 \ --caller-external-admixing-rate 1.00 \ --disable-annealing false rm -rf .cache .conda .config .theano
# Import libraries import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense # Inputs height = 60 weight = 150 age = 25 # Create neural network model = Sequential() model.add(Dense(1, input_dim=3, activation='sigmoid')) model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) # Train the model X = [[height, weight, age]] y = [1] #male model.fit(X, y, epochs=2) # Make prediction X_new = [[65, 160, 28]] y_pred = model.predict(X_new) print(y_pred)
#!/bin/bash # Kill the lora_gateway shell script and Python program ps aux | grep lora_gateway | grep -v grep sudo pkill -f lora_gateway ps aux | grep lora_gateway | grep -v grep
#!/usr/bin/env sh set -o errexit set -o nounset # Check that $DJANGO_ENV is set to "production", # fail otherwise, since it may break things: echo "ENV is $DJANGO_ENV" if [ "$DJANGO_ENV" != 'production' ]; then echo 'Error: DJANGO_ENV is not set to "production".' echo 'Application will not start.' exit 1 fi export DJANGO_ENV # Run python specific scripts: # Running migrations in startup script might not be the best option, see: # docs/_pages/template/going-to-production.rst python /code/manage.py migrate --noinput python /code/manage.py collectstatic --noinput python /code/manage.py compilemessages # Start gunicorn with 4 workers: /usr/local/bin/gunicorn server.wsgi -w 4 -b 0.0.0.0:8000 --chdir=/code
const path = require('path'); function resolve (dir) { return path.join(__dirname, dir) } module.exports = { lintOnSave: true, chainWebpack: (config)=>{ config.resolve.alias .set('@$', resolve('src')) .set('assets',resolve('src/assets')) .set('components',resolve('src/components')) .set('layout',resolve('src/layout')) .set('base',resolve('src/base')) .set('static',resolve('src/static')) }, devServer: { proxy: { // 首页数据 '/ajax_home_list_show': { target: 'https://m.smzdm.com/', changeOrigin: true, headers: { referer: 'https://m.smzdm.com/' } }, // 推荐商品 '/ajax_hot_recommend': { target: 'https://m.smzdm.com/', changeOrigin: true, headers: { referer: 'https://m.smzdm.com/' } }, // 国内数据 '/ajax_post_list_show': { target: 'https://m.smzdm.com/', changeOrigin: true, headers: { referer: 'https://m.smzdm.com/' } }, // 海淘数据 '/ajax_haitao_list_show': { target: 'https://haitao.m.smzdm.com/', changeOrigin: true, headers: { referer: 'https://haitao.m.smzdm.com/' } }, // 全部商品 '/ajax_faxian_list_show': { target: 'https://faxian.m.smzdm.com/', changeOrigin: true, headers: { referer: 'https://faxian.m.smzdm.com/' } }, // 好文 '/ajax_get_list_html': { target: 'https://post.m.smzdm.com/', changeOrigin: true, headers: { referer: 'https://post.m.smzdm.com/' } }, // 白菜党 '/ajax_search_list': { target: 'https://m.smzdm.com/search/ajax_search_list', changeOrigin: true, headers: { referer: 'https://m.smzdm.com/' } }, // 图片地址 '/tpQnam': { target: 'https://tp-qnam.smzdm.com/', changeOrigin: true, pathRewrite: { '^/tpQnam' : '' }, headers: { referer: 'https://m.smzdm.com/' } }, '/y': { target: 'https://y.zdmimg.com/', changeOrigin: true, pathRewrite: { '^/y' : '' }, headers: { referer: 'https://m.smzdm.com/' } }, '/tpQna': { target: 'https://tp-qna.smzdm.com/', changeOrigin: true, pathRewrite: { '^/tpQna' : '' }, headers: { referer: 'https://m.smzdm.com/' } }, '/qnY': { target: 'https://qny.smzdm.com/', changeOrigin: true, pathRewrite: { '^/qnY' : '' }, headers: { referer: 'https://m.smzdm.com/' } }, '/tpY': { target: 'https://tp-y.zdmimg.com/', changeOrigin: true, pathRewrite: { '^/tpY' : '' }, headers: { referer: 'https://m.smzdm.com/' } }, '/tpQny': { target: 'https://tp-qny.smzdm.com/', changeOrigin: true, pathRewrite: { '^/tpQny' : '' }, headers: { referer: 'https://m.smzdm.com/' } }, '/a': { target: 'https://a.zdmimg.com/', changeOrigin: true, pathRewrite: { '^/a' : '' }, headers: { referer: 'https://m.smzdm.com/' } }, '/Qna': { target: 'https://qna.smzdm.com/', changeOrigin: true, pathRewrite: { '^/Qna' : '' }, headers: { referer: 'https://m.smzdm.com/' } }, '/avatarImg': { target: 'https://avatarimg.smzdm.com/', changeOrigin: true, pathRewrite: { '^/avatarImg' : '' }, headers: { referer: 'https://post.m.smzdm.com/', } } } } }
# Prompt the user to enter a positive integer n = int(input("Enter a positive integer: ")) # Initialize an empty list to store the factors factors = [] # Iterate through all numbers from 1 to n for i in range(1, n + 1): # Check if i is a factor of n if n % i == 0: # If i is a factor, add it to the list of factors factors.append(i) # Print the factors in ascending order for factor in factors: print(factor)
#pragma once #include "TNAH/Core/Core.h" #include "TNAH/Core/FileStructures.h" #include "ComponentIdentification.h" namespace tnah { /**********************************************************************************************//** * @class AudioSourceComponent * * @brief An audio source component. * * @author Chris * @date 10/09/2021 **************************************************************************************************/ class AudioSourceComponent { public: /**********************************************************************************************//** * @fn AudioSourceComponent::AudioSourceComponent(Resource file = {"defaultsoundfile.wav"}, float minDistance = 1.0f, float volume = 1.0f, bool threeDim = true, bool loop = false) * * @brief Constructor * * @author Chris * @date 10/09/2021 * * @param file (Optional) The file. * @param minDistance (Optional) The minimum distance. * @param volume (Optional) The volume. * @param threeDim (Optional) True to three dim. * @param loop (Optional) True to loop. **************************************************************************************************/ AudioSourceComponent(Resource file = {"defaultsoundfile.wav"}, float minDistance = 1.0f, float volume = 0.5f, bool threeDim = true, bool loop = false) : m_MinDistance(minDistance), m_Volume(volume), m_Loop(loop), m_SourceReference(0), m_PlayReference(0), m_Playing(false), m_Loaded(false), m_Shoot(false), m_3D(threeDim),m_StartLoad(true), m_Paused(false) {m_File = file;} /**********************************************************************************************//** * @fn bool AudioSourceComponent::GetStartLoad() const * * @brief Gets start load * * @author Chris * @date 10/09/2021 * * @returns True if it succeeds, false if it fails. **************************************************************************************************/ bool GetStartLoad() const { return m_StartLoad; } /**********************************************************************************************//** * @fn void AudioSourceComponent::SetStartLoad(const bool b) * * @brief Sets start load * * @author Chris * @date 10/09/2021 * * @param b True to b. **************************************************************************************************/ void SetStartLoad(const bool b) {m_StartLoad = b;} /** @brief Source reference */ int m_SourceReference; /** @brief The play reference */ int m_PlayReference; /** @brief The minimum distance */ float m_MinDistance; /** @brief The volume */ float m_Volume; /** @brief True to loop */ bool m_Loop; /** @brief True to playing */ bool m_Playing; /** @brief True if paused */ bool m_Paused; /** @brief True if the data was loaded */ bool m_Loaded; /** @brief True to shoot */ bool m_Shoot; /** @brief True if 3D */ bool m_3D; /** @brief The file */ Resource m_File; private: /** @brief True to start load */ bool m_StartLoad; friend class EditorUI; inline static std::string s_SearchString = "audio source component"; inline static ComponentTypes s_Types = { {ComponentVariations::AudioSource}, {{ComponentCategory::Audio}} }; }; /**********************************************************************************************//** * @class AudioListenerComponent * * @brief An audio listener component. * * @author Chris * @date 10/09/2021 **************************************************************************************************/ class AudioListenerComponent { public: /**********************************************************************************************//** * @fn AudioListenerComponent::AudioListenerComponent(bool active = false) * * @brief Constructor * * @author Chris * @date 10/09/2021 * * @param active (Optional) True to active. **************************************************************************************************/ AudioListenerComponent(bool active = false) : m_ActiveListing(active) {} /** @brief True to active listing */ bool m_ActiveListing; private: friend class EditorUI; inline static std::string s_SearchString = "audio listener component"; inline static ComponentTypes s_Types = { {ComponentVariations::AudioListener}, {{ComponentCategory::Audio}} }; }; }
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 16 Jan 2018 pada 09.58 -- Versi Server: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `tb_device` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_device` -- CREATE TABLE `tb_device` ( `No` int(11) NOT NULL, `server_IP` text NOT NULL, `server_port` text NOT NULL, `device_sn` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_device` -- INSERT INTO `tb_device` (`No`, `server_IP`, `server_port`, `device_sn`) VALUES (29, '192.168.1.10', '8080', '66595015390139'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_scanlog` -- CREATE TABLE `tb_scanlog` ( `sn` text NOT NULL, `scan_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `pin` text NOT NULL, `verifymode` int(11) NOT NULL, `iomode` int(11) NOT NULL, `workcode` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_scanlog` -- INSERT INTO `tb_scanlog` (`sn`, `scan_date`, `pin`, `verifymode`, `iomode`, `workcode`) VALUES ('66595015390139', '2018-01-16 09:44:03', '4', 1, 1, 0), ('66595015390139', '2018-01-16 09:44:06', '1', 1, 1, 0), ('66595015390139', '2018-01-16 09:44:15', '2', 1, 1, 0), ('66595015390139', '2018-01-16 09:44:35', '5', 1, 1, 0), ('66595015390139', '2018-01-16 09:44:46', '3', 1, 1, 0), ('66595015390139', '2018-01-16 09:45:03', '4', 1, 1, 0), ('66595015390139', '2018-01-16 09:46:10', '5', 1, 1, 0), ('66595015390139', '2018-01-16 09:46:24', '4', 1, 1, 0), ('66595015390139', '2018-01-16 09:47:22', '2', 1, 1, 0), ('66595015390139', '2018-01-16 09:47:30', '5', 1, 1, 0), ('66595015390139', '2018-01-16 09:47:42', '4', 1, 1, 0), ('66595015390139', '2018-01-16 09:47:48', '3', 1, 1, 0), ('66595015390139', '2018-01-16 09:48:08', '1', 1, 1, 0), ('66595015390139', '2018-01-16 09:48:33', '5', 1, 1, 0), ('66595015390139', '2018-01-16 09:48:44', '4', 1, 1, 0), ('66595015390139', '2018-01-16 09:49:09', '2', 1, 1, 0), ('66595015390139', '2018-01-16 09:49:18', '3', 1, 1, 0), ('66595015390139', '2018-01-16 09:49:34', '1', 1, 1, 0), ('66595015390139', '2018-01-16 09:49:55', '5', 1, 1, 0), ('66595015390139', '2018-01-16 09:50:02', '4', 1, 1, 0), ('66595015390139', '2018-01-16 09:51:01', '3', 1, 1, 0), ('66595015390139', '2018-01-16 09:51:10', '4', 1, 1, 0), ('66595015390139', '2018-01-16 09:51:17', '5', 1, 1, 0), ('66595015390139', '2018-01-16 08:54:29', '1', 1, 1, 0), ('66595015390139', '2018-01-16 08:54:34', '3', 1, 1, 0); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_template` -- CREATE TABLE `tb_template` ( `pin` text NOT NULL, `finger_idx` int(11) NOT NULL, `alg_ver` int(11) NOT NULL, `template` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_template` -- INSERT INTO `tb_template` (`pin`, `finger_idx`, `alg_ver`, `template`) VALUES ('1', 0, 39, '1E:14:0B:17:13:12:1B:0C:52:7A:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:8B:F1:33:0C:79:48:24:52:5F:63:65:7C:63:7B:C3:07:21:1F:2B:2C:3B:3D:38:37:3F:3F:31:31:3F:31:11:32:35:09:23:3F:3C:8F:78:E8:4E:A5:7C:57:E3:F1:3D:3D:C3:C4:C7:CF:C3:C3:C5:FD:CE:37:55:F5:5F:A9:47:64:DC:50:CA:D3:DB:C8:DF:D9:CA:C0:E9:C5:D4:D4:DF:C8:FF:E1:DD:E2:E9:F5:D8:E9:F3:F1:EB:EB:EE:F7:FD:E6:F0:C8:FF:EE:E6:E7:ED:F6:F8:FE:FC:C0:EA:F9:F5:CC:90:98:8E:86:89:81:8E:8B:83:BA:9E:91:95:87:90:8C:86:95:97:9B:8A:AD:86:8E:93:8C:91:A2:A7:A8:A8:B0:85:FA:A7:6A:48:56:5F:04:9F:5C:0C:94:CF:C3:D8:D9:E3:C8:FF:3E:93:FF:3B:92:21:C3:99:2B:F0:08:F1:FD:DF:CA:6D:1F:CF:C2:3B:05:30:32:18:1B:06:1B:7E:67:60:2B:3E:CA:19:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:2A:EC:D4:24:06:C0:39:32:11:22:CB:CD:D0:DF:22:A3:A0:D7:1E:CD:69:62:83:C9:C9:2E:70:72:3C:3C:A7:D1:27:3C:5A:A8:78:81:2E:2D:93:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:D7:E6:FD:4C:83:EA:29:C8:1F:BE:FD:EC:EB:63:B9:E8:1F:46:95:E4:03:82:69:F0:C6:BE:5D:D4:2B:5A:11:90:DF:5E:F5:94:7B:09:3A:BB:03:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:08:09:0A:0B:14:15:16:17:50:EE:ED:D0:1D:1D:1E:1F:EC:E6:B0:ED:64:65:66:A7:9F:CE:88:6C:6C:6D:6E:93:97:C3:94:6B:74:75:82:88:8F:8E:4D:73:7C:BD:81:80:87:86:79:7B:44:BA:B9:B8:BF:7E:42:43:BC:B2:B1:B0:B7:4A:4A:4B:A9:AA:A9:A8:AF:51:52:A3:A3:A2:A1:A0:57:59:5A:A4:5B:5A:59:58:A1:A1:72:5C:53:52:51:A0:A8:A9:55:54:4B:4A:49:B7:B0:41:4D:4C:43:42:B1:BF:B8:46:45:51:7B:7A:85:87:70:7E:2D:7D:73:92:8E:8F:77:D6:63:74:6B:90:96:47:6F:44:fc00:db20:35b:7399::5:65:64:E7:E5:76:18:1F:1E:1D:FC:EC:ED:13:10:17:16:15:E8:F4:25:09:08:0F:0E:ED:F3:FC:03:01:00:07:06:FB:FB:04:3A:39:38:3F:D6:C2:C3:38:32:31:30:D7:C9:CA:CB:2F:8A:A3:A8:D0:D1:D2:C3:F9:DD:DF:DF:D8:D9:DA:DB:24:25:26:27:20:21:22:23:2C:2D:2E:2F:28:D6:D5:CC:D3:CA:C9:C8:C2:7D:14:71:0C:57:3A:72:78:3E:D6:16:D3:FA:F2:00:DF:27:F1:13:D3:1B:0F:B6:D4:D9:E2:EC:CD:B9:D8:81:17:53:EE:EC:1B:5F:E2:E0:DF:5A:E6:E4:A3:66:96:98:64:63:92:9C:60:6F:9E:90:64:77:96:94:8B:72:86:88:8F:76:83:8C:83:7A:8F:80:47:87:8B:84:40:5D:86:B8:44:51:82:BC:48:5D:8E:B0:4C:A9:B5:B4:53:B5:A9:A8:90:AD:57:50:90:AF:57:50:A8:AF:4D:50:4B:5F:AD:B0:4B:50:AD:B0:4F:4E:4D:4C:43:42:41:40:27:26:25:24:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:17:16:15:14:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:47:46:45:44:5B:5A:59:58:5F:5E:5D:5C:53:52:51:50:37:36:35:34:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:E7:E6:E5:E4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:D7:D6:D5:D4:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:27:26:25:24:DB:DA:D9:D8:DF:DE:DD:DC:D3:D2:D1:D0:D7:D6:D5:D4:CB:CA:C9:C8:CF:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:F7:F6:F5:F4:EB:EA:E9:E8:EF:EE:ED:EC:E3:E2:E1:E0:E7:E6:E5:E4:9B:9A:99:98:9F:9E:9D:9C:93:92:91:90:97:96:95:94:8B:8A:89:88:8F:8E:8D:8C:83:82:81:80:87:86:85:84:BB:BA:B9:B8:BF:BE:BD:BC:B3:B2:B1:B0:B7:B6:B5:B4:AB:AA:A9:A8:AF:AE:AD:AC:A3:A2:A1:A0:A7:A6:A5:A4:5B:5A:59:58:5F:5E:5D:5C:53:52:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:37:36:35:34:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:27:26:25:24:DB:DA:D9:D8:DF:DE:DD:DC:D3:D2:D1:D0:D7:D6:D5:D4:CB:CA:C9:C8:CF:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:F7:F6:F5:F4:EB:EA:E9:E8:EF:EE:ED:EC:E3:E2:E1:E0:E7:E6:E5:E4:9B:9A:99:98:9F:9E:9D:9C:93:92:91:90:97:96:95:94:8B:8A:89:88:8F:8E:8D:8C:83:82:81:80:87:86:85:84:BB:BA:B9:B8:BF:BE:BD:BC:B3:B2:B1:B0:B7:B6:B5:B4:AB:AA:A9:A8:AF:AE:AD:AC:A3:A2:A1:A0:A7:A6:A5:A4:5B:5A:59:58:5F:5E:5D:5C:53:52:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:37:36:35:34:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:27:26:25:24:DB:DA:D9:D8:DF:DE:DD:DC:D3:D2:D1:D0:D7:D6:D5:D4:CB:CA:C9:C8:CF:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:F7:F6:F5:F4:EB:EA:E9:E8:EF:EE:ED:EC:E3:E2:E1:E0:E7:E6:E5:E4:9B:9A:99:98:9F:9E:9D:9C:93:92:91:90:97:96:95:94:8B:8A:89:88:8F:8E:8D:8C:83:82:81:80:87:86:85:84:BB:BA:B9:B8:BF:BE:BD:BC:B3:B2:B1:B0:B7:B6:B5:B4:AB:AA:A9:A8:AF:AE:AD:AC:A3:A2:A1:A0:A7:A6:A5:A4:5B:5A:59:58:5F:5E:5D:5C:53:52:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:37:36:35:34:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:27:26:25:24:DB:DA:D9:D8:DF:DE:DD:DC:D3:D2:D1:D0:D7:D6:D5:D4:'), ('1', 1, 39, '1E:14:0B:17:13:12:1B:0C:52:7A:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:8B:87:F6:0C:F0:43:24:5F:58:5F:7D:6C:7B:7C:D5:07:37:39:39:19:2D:3B:3B:35:28:3D:33:13:23:3B:23:29:31:34:2E:38:72:E5:F9:61:DF:2C:02:0B:D2:E5:3fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b:C5:C6:AF:FE:F7:5C:11:B1:ED:FF:1A:76:C2:C5:DE:EF:C3:CA:E4:E6:DD:DD:C2:D3:CC:D0:EE:E8:EA:FD:EE:FD:F9:F2:E2:D5:D9:EB:FB:E4:DD:EF:EB:E5:F8:E3:E8:ED:CE:F0:F6:C6:E8:F4:EE:FB:FB:C2:99:9E:9A:85:B9:84:99:80:95:91:9B:86:BF:9E:9E:87:A9:93:91:9E:98:89:87:9F:96:AF:9D:94:9E:BF:C2:C9:8B:F9:4B:BC:70:9B:AD:09:90:A9:57:AB:20:2A:FE:39:27:02:E6:D4:CE:C1:D8:C7:CA:FE:F3:00:39:DD:2C:34:FE:FB:D7:EC:EE:F2:08:2E:F3:2F:2D:FC:1B:23:02:CD:E3:03:3C:39:36:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:F6:0C:1B:24:23:3F:2A:D7:AD:40:A7:E3:12:F7:F9:D2:AB:E4:EA:F2:75:78:B5:A9:A3:DD:3F:B5:3E:25:06:06:D1:9B:A9:2D:30:CA:02:92:93:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:E7:E6:9D:DC:53:CA:B1:50:AF:AE:AC:ED:8B:9A:99:51:A6:EE:74:E5:03:BA:D8:80:BF:AE:D4:84:BB:52:A9:B0:C5:1C:5F:A7:28:D8:B2:15:9A:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:08:09:DA:E1:EB:1A:16:17:10:E5:B8:ED:E3:1F:1E:1F:D8:E6:E5:E4:6B:65:66:67:9C:9E:9D:DC:6C:6D:6E:AF:97:96:95:64:74:75:76:8B:8F:CE:D8:70:7C:7D:AE:80:87:D2:40:7B:44:45:B9:B8:FF:EB:45:43:4C:BD:B1:B0:B7:F6:fc00:e968:6179::de52:7100:52:53:AC:A2:A1:A0:27:59:5A:5B:5B:5A:59:58:A7:A1:A2:53:53:52:51:D0:A8:A9:AA:54:4B:4A:49:B8:B0:B1:42:4C:43:42:41:BF:B8:B9:45:14:7A:7A:89:87:80:61:7D:69:73:F2:8E:8F:88:77:D5:7E:6B:9E:96:97:50:6E:C7:6C:23:9D:9E:9F:64:C6:6F:64:E3:E5:E6:27:1F:1E:1D:9C:EC:ED:EE:43:16:16:15:E8:F4:F5:76:1D:0F:0E:CD:F3:FC:FD:56:01:07:06:F9:FB:C4:45:3C:38:3F:CE:C2:C3:CC:0D:39:30:F7:C9:CA:CB:D4:81:83:82:D1:D1:D2:D3:DC:DD:DE:DF:D8:D9:DA:DB:24:25:26:27:20:21:22:23:2C:2D:2E:2F:28:51:43:CC:D3:CA:C9:C8:3D:6E:1F:17:24:7C:F5:2A:5C:13:3C:CC:06:17:F8:00:BB:10:30:11:B8:F7:0D:EC:C1:D3:E0:10:F4:8D:F0:8D:E8:EE:ED:EC:DF:22:E0:E0:1B:26:E4:E4:67:64:9A:98:67:61:A2:9C:53:6D:AE:90:6F:AD:AA:94:35:B1:8E:88:B1:4E:8A:8C:8D:42:8E:80:47:47:8A:84:7C:45:B6:B8:78:41:42:BD:4C:4D:4E:B1:48:B1:4D:B5:54:AD:A9:A8:6F:53:AA:AC:63:5D:A6:A0:5F:59:B8:A4:A0:B5:44:58:A4:BE:40:5C:AC:AC:AC:AC:A4:A4:A4:A4:BC:BC:BC:BC:A4:A4:A4:A4:AC:AC:AC:AC:A4:A4:A4:A4:9C:9C:9C:9C:E4:E4:E4:E4:EC:EC:EC:EC:E4:E4:E4:E4:FC:FC:FC:FC:E4:E4:E4:E4:EC:EC:EC:EC:E4:E4:E4:E4:9C:9C:9C:9C:A4:A4:A4:A4:AC:AC:AC:AC:A4:A4:A4:A4:BC:BC:BC:BC:A4:A4:A4:A4:AC:AC:AC:AC:A4:A4:A4:A4:9C:9C:9C:9C:64:64:64:64:6C:6C:6C:6C:64:64:64:64:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:27:26:25:24:DB:DA:D9:D8:DF:DE:DD:DC:D3:D2:D1:D0:D7:D6:D5:D4:CB:CA:C9:C8:CF:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:F7:F6:F5:F4:EB:EA:E9:E8:EF:EE:ED:EC:E3:E2:E1:E0:E7:E6:E5:E4:9B:9A:99:98:9F:9E:9D:9C:93:92:91:90:97:96:95:94:8B:8A:89:88:8F:8E:8D:8C:83:82:81:80:87:86:85:84:BB:BA:B9:B8:BF:BE:BD:BC:B3:B2:B1:B0:B7:B6:B5:B4:AB:AA:A9:A8:AF:AE:AD:AC:A3:A2:A1:A0:A7:A6:A5:A4:5B:5A:59:58:5F:5E:5D:5C:53:52:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:37:36:35:34:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:27:26:25:24:DB:DA:D9:D8:DF:DE:DD:DC:D3:D2:D1:D0:D7:D6:D5:D4:CB:CA:C9:C8:CF:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:F7:F6:F5:F4:EB:EA:E9:E8:EF:EE:ED:EC:E3:E2:E1:E0:E7:E6:E5:E4:9B:9A:99:98:9F:9E:9D:9C:93:92:91:90:97:96:95:94:8B:8A:89:88:8F:8E:8D:8C:83:82:81:80:87:86:85:84:BB:BA:B9:B8:BF:BE:BD:BC:B3:B2:B1:B0:B7:B6:B5:B4:AB:AA:A9:A8:AF:AE:AD:AC:A3:A2:A1:A0:A7:A6:A5:A4:5B:5A:59:58:5F:5E:5D:5C:53:52:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:37:36:35:34:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:27:26:25:24:DB:DA:D9:D8:DF:DE:DD:DC:D3:D2:D1:D0:D7:D6:D5:D4:CB:CA:C9:C8:CF:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:F7:F6:F5:F4:EB:EA:E9:E8:EF:EE:ED:EC:E3:E2:E1:E0:E7:E6:E5:E4:9B:9A:99:98:9F:9E:9D:9C:93:92:91:90:97:96:95:94:8B:8A:89:88:8F:8E:8D:8C:83:82:81:80:87:86:85:84:BB:BA:B9:B8:BF:BE:BD:BC:B3:B2:B1:B0:B7:B6:B5:B4:AB:AA:A9:A8:AF:AE:AD:AC:A3:A2:A1:A0:A7:A6:A5:A4:5B:5A:59:58:5F:5E:5D:5C:53:52:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:37:36:35:34:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:27:26:25:24:DB:DA:D9:D8:DF:DE:DD:DC:D3:D2:D1:D0:D7:D6:D5:D4:'); INSERT INTO `tb_template` (`pin`, `finger_idx`, `alg_ver`, `template`) VALUES ('1', 12, 39, '45:4E:52:4C:46:41:43:45:01:00:00:00:20:4E:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01:01:00:01:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:03:30:00:00:B5:09:2B:FF:EF:01:F1:08:16:F8:F2:10:1F:E1:14:DC:0D:F3:00:20:2F:F0:BE:03:F7:FA:F2:E4:EC:FF:FE:EF:06:00:EB:F8:DD:01:0D:1E:03:0B:FD:18:E4:E9:F3:E8:FF:0B:FA:07:FE:10:F4:FF:EE:0D:FC:00:E9:E8:12:01:06:FC:E3:01:FA:15:F9:0E:1C:2A:F0:12:F0:08:08:11:00:0D:F7:00:DB:14:FF:08:00:08:F2:1D:08:11:0B:EC:0C:11:0C:F6:0F:28:1E:F9:0A:02:08:01:F7:FF:0C:02:FF:02:F7:1B:F2:06:18:EE:FF:03:AD:37:EA:19:EE:E8:0B:EE:EE:E9:02:22:2B:15:E5:13:08:1E:18:14:F6:21:E5:FC:F8:EC:09:1D:0A:F0:1A:FE:0E:E4:11:10:FB:EA:15:08:FC:EF:F8:09:25:0C:03:FE:FA:07:F4:EF:04:F4:EA:FF:E8:0A:01:08:F4:E7:03:F4:EE:00:00:FD:0A:F9:13:F4:F7:FE:00:00:06:FA:08:F4:FE:F4:F5:0E:08:FC:F1:E1:1A:F9:0C:FD:16:11:08:FE:FB:07:F3:0D:F9:D9:04:F4:09:FB:FB:08:F6:08:11:EE:09:03:23:09:E7:EF:FD:F8:BD:42:FE:1C:D5:F2:D1:E2:27:04:2F:0A:09:FF:05:F9:07:0D:F8:FD:F5:F7:1B:1F:05:25:F8:04:03:D7:0F:09:EE:35:DD:1A:0A:08:16:F0:00:08:FF:EF:E3:08:14:07:01:18:07:0D:16:03:01:E4:FA:28:00:1C:00:EF:0A:00:12:E4:F0:2E:24:0A:0B:01:02:E9:E6:F9:F2:DF:07:05:10:F8:FE:FD:10:05:F0:0C:15:00:0E:04:00:07:00:08:06:E1:0A:18:08:FE:1A:E4:12:14:E9:00:01:08:F9:14:EA:E4:EC:EA:34:04:F3:08:15:F4:F1:00:0E:F0:06:F6:EB:F2:FF:0C:05:01:14:FE:F9:0C:06:0C:F8:F1:FC:03:09:F4:11:13:03:FE:13:D4:12:B7:01:FA:F2:FD:FA:24:06:06:F6:12:14:31:24:FC:F0:EE:2D:06:24:0D:FA:0C:FA:E7:1D:D8:0B:0D:E7:04:EA:1A:E4:FE:F3:15:E2:19:F7:10:EF:2F:F2:00:F5:0E:0E:0D:E5:F8:09:FE:F4:11:F0:1B:F5:FD:24:18:F9:F1:ED:DB:EE:12:19:F7:FD:00:E6:FA:F6:E9:EE:F4:D2:F8:FD:FB:0E:0C:E0:FF:01:F7:12:F7:0D:08:12:FA:0A:F4:F9:E2:ED:23:FF:07:03:FE:0A:13:F5:F4:0C:E1:FE:00:FA:F7:FD:F7:0B:07:08:08:EC:19:FF:05:FC:F0:F5:13:1F:15:F5:01:06:E8:E3:03:03:F4:F4:EE:FB:0C:0E:06:03:F5:17:EF:00:03:00:14:15:16:00:03:F5:F8:4F:DB:03:FC:0E:FC:36:04:E3:00:01:00:27:FE:FF:FB:02:06:F9:D8:18:EF:FE:09:D4:0B:08:12:FD:1D:E7:07:D3:28:02:E8:FD:00:FA:E0:DF:00:DD:EE:F5:EF:00:30:F7:F9:EE:F4:12:17:EB:FB:E2:EC:19:F4:00:04:FE:F4:F0:F5:03:EC:FE:00:0E:0C:0B:0A:FE:E0:02:E9:EC:FF:F9:08:11:15:05:EC:FA:0F:0B:10:F6:05:F2:F9:FC:05:09:FD:00:F3:13:10:0E:04:10:07:0D:F7:F7:EF:11:FD:E7:EF:10:FF:00:E9:0D:17:DF:11:0B:FF:0A:04:FA:02:0C:FB:FE:10:FC:F5:10:1B:05:06:E9:01:0B:08:FA:FA:25:0D:06:E9:08:1A:10:F6:0E:49:FD:D4:01:08:02:02:D2:F8:DD:0C:FE:F0:15:29:02:D8:09:DF:FF:02:09:DC:1A:F6:FA:F6:CD:EF:E0:12:06:0C:D9:D8:F9:0B:ED:E3:0F:F8:F5:0F:1E:EA:15:06:CF:FD:FD:11:F1:02:F0:0D:00:03:F4:2F:0B:F2:0A:E8:04:E9:ED:02:F5:01:F7:01:FC:13:1F:FF:05:00:07:E1:14:07:09:F6:02:F4:0E:0B:EE:F7:E1:00:06:01:F4:EC:FC:FC:F3:07:0E:FB:06:FA:17:0E:02:06:25:1A:FD:EC:F3:0E:07:01:15:0A:02:08:FD:E4:0A:03:FE:07:EF:0C:F5:03:F3:0D:01:EC:FF:08:FD:08:FD:1E:0A:03:F5:FC:ED:01:FC:F8:E5:02:F5:14:E7:4A:CB:0F:19:F9:1A:D9:36:26:F8:28:14:FE:E8:15:15:FF:0E:F9:16:F7:FC:17:17:1F:ED:FA:FC:EA:EF:11:08:F6:EF:DB:18:FB:0C:1D:FD:FA:08:F2:FE:FE:FB:D4:F3:FC:F1:09:FC:E7:11:08:F5:0F:08:F5:F9:FF:E7:05:FF:EB:FE:B0:20:00:1C:07:1D:DF:D4:F9:01:14:F1:E4:21:10:FC:00:FA:26:F2:0E:E7:0B:00:16:ED:FA:FD:F1:28:F2:08:F8:0C:14:F8:F6:E6:FC:EB:E5:30:16:EB:F0:EB:04:0B:F4:11:02:02:05:05:09:09:DB:08:F5:0E:00:0B:EC:F2:0C:C3:2C:DF:21:E9:03:DA:21:E7:F4:F4:D6:DC:1A:0F:26:15:22:E5:06:2A:FF:DC:F1:F8:F3:DD:19:D4:02:EE:2F:DA:03:C9:FD:29:03:FB:E6:E9:DE:F4:FE:E7:08:1A:0D:D3:02:EB:13:24:F2:24:FF:00:E5:F8:0C:13:0C:0F:DF:24:02:08:EE:FC:08:01:12:11:13:0E:F4:F0:FB:1C:2C:F7:F7:06:00:FC:0B:E9:EF:33:F2:E7:FB:FC:12:F8:04:23:FC:D8:FB:ED:03:F2:0C:00:F0:F6:0A:0B:12:00:05:28:1D:FF:FD:00:1A:06:01:00:00:00:00:03:30:00:00:B1:09:31:FF:E3:06:F5:01:19:FD:F9:0A:1A:D6:0B:E5:0D:E7:01:22:21:F7:CC:0A:FA:FF:F3:EC:E1:02:01:F4:0C:FE:E5:F4:DC:06:18:1D:0C:07:FC:0D:EB:F3:F7:E2:01:09:F9:09:00:14:F7:FE:EC:1C:F8:01:E2:EF:1A:FA:0C:00:E7:07:F9:1B:F8:13:20:1F:E7:13:EB:13:05:1A:F5:0D:F6:01:DC:0A:00:0A:04:01:F8:1D:13:10:10:EF:11:0E:0A:02:0E:27:0F:F5:04:07:01:FA:FC:FA:09:09:F9:00:F0:0F:F1:04:16:F1:FD:FA:A9:34:E5:1F:E7:EE:0F:F7:E3:EA:00:1D:2A:13:F1:1C:00:1F:10:14:EC:1A:EA:F9:F9:F7:FF:1E:11:F4:14:FE:12:E4:0A:15:FB:EE:12:06:FF:EE:FC:04:28:09:FB:FA:FA:03:EF:EE:06:F8:F4:FF:E8:12:FF:10:ED:E8:00:F5:F8:01:00:01:11:FA:15:EF:ED:05:05:01:00:F6:08:FD:06:EE:F5:0D:0C:F6:F2:DF:15:FE:11:FF:0F:10:0E:01:F8:0B:F5:08:02:DA:00:F5:06:FF:F7:13:F9:02:0B:EF:11:0B:23:09:EE:F6:00:F4:C6:3C:FC:26:D0:F8:CE:EB:2C:F8:32:0A:02:03:04:FF:FE:14:03:FB:EF:F9:0F:2A:00:2C:0D:00:06:E1:0E:00:EC:43:E3:1B:0B:06:16:E5:00:13:05:EB:ED:00:19:FD:F9:0E:03:0A:1B:0F:F8:EA:00:23:FC:1C:0D:E5:0D:FD:1F:DE:F0:25:20:09:17:06:10:ED:DF:FE:ED:DE:00:FF:08:ED:F6:F8:00:FF:F5:17:14:00:0E:03:03:05:07:FA:07:EC:04:0C:FA:05:18:E8:15:1C:E3:04:FF:12:ED:08:EA:F0:F5:F2:1D:0A:F8:03:18:F6:E6:F5:0D:FE:06:03:F5:EE:FE:03:01:FB:14:FB:F4:08:01:12:F4:F5:FF:FA:08:EE:0D:0F:09:FF:15:DE:11:B1:00:FF:F3:F3:00:2D:FE:17:ED:0E:1A:2A:1A:FA:F8:EA:25:0C:23:FE:F5:0B:F2:DB:1D:D5:0F:01:E6:12:F1:0F:E5:06:ED:16:E5:24:FA:0E:EB:2B:F6:F8:FB:00:0D:0B:E6:01:11:FE:F1:0B:F4:23:F3:F6:1A:1F:F8:F1:E2:DF:E4:0B:09:EF:03:01:F1:F1:EF:F1:DE:E3:E1:F3:00:EB:09:0D:DD:FA:F9:F9:04:0A:0F:09:11:F6:13:F8:F4:EB:EB:24:FE:05:04:00:06:16:F8:F8:01:EC:FB:0A:FE:FC:F7:F8:04:0F:FB:13:F3:14:04:02:F7:00:03:04:1D:22:F8:00:09:E8:E4:0A:03:F4:F9:EB:01:0F:07:FF:FD:F8:0D:E5:FF:02:F6:0F:07:0C:06:0D:02:EE:4A:D8:F9:02:13:F7:38:10:DB:FC:FB:00:24:0D:F5:FD:FC:17:F8:E2:13:F5:FE:0F:CC:10:04:0E:F7:26:EF:09:CB:1C:0A:E4:04:F5:FA:E2:E4:F9:D8:EE:EE:F7:05:33:F6:00:F3:F6:18:1E:F0:F8:E3:EF:14:EA:F8:08:08:FB:ED:F1:03:FD:00:05:0F:12:0C:0C:FB:E5:05:F5:E7:FC:01:03:0F:11:FD:EA:08:0D:04:24:F8:02:F0:FD:F5:07:03:05:02:FE:14:FB:12:0C:11:0D:00:FB:F6:EE:00:FD:EA:F2:07:00:FD:F6:03:19:EC:0B:10:03:0B:04:F9:03:10:F8:01:06:00:EC:0C:17:00:FD:EB:FF:18:05:FA:F1:15:07:01:E7:04:12:0B:F1:11:3C:F6:D0:F7:01:08:02:D1:F3:D4:12:FC:F6:18:2D:05:D5:05:F0:04:10:05:EA:1A:EE:EA:00:D5:ED:E6:1A:FE:11:DA:D4:FD:00:ED:E6:20:F3:EE:0E:1D:F2:10:00:DA:EF:FC:12:F7:FF:EC:0B:FC:00:F2:3B:13:F4:0C:F1:0D:EF:F1:FE:F7:FA:FB:00:00:08:19:00:09:01:13:E4:1B:07:04:F9:04:F2:08:0F:EA:F6:E0:F6:06:03:F5:E1:FA:00:EE:01:0F:FB:FF:FD:10:08:00:0B:29:17:05:F6:02:0C:0F:0A:18:02:FE:17:08:E1:0D:00:04:FF:F9:09:F0:06:F8:0C:FC:F9:02:0E:00:FE:FC:1A:08:F3:EE:F9:F1:F9:00:FF:EF:0D:F2:10:EE:45:C1:20:11:FE:0D:E0:2E:12:FC:2A:0E:F8:EA:0D:05:F3:0F:F0:0D:F5:FB:0D:08:11:F2:F7:18:EA:EC:10:06:F6:E3:D9:16:FE:09:19:04:F7:F4:F5:E8:00:F6:D5:EF:FA:00:18:F5:D9:19:03:EC:14:0F:F8:FC:FD:F0:FF:F8:DA:F6:B2:1F:F7:1F:04:12:E1:D8:F8:F3:0D:FC:ED:1C:09:00:FB:F6:1F:EF:1C:ED:07:F8:0D:F7:F1:FA:EC:2E:EC:06:EF:14:1C:FB:FC:E6:F7:E6:E4:3A:10:02:FC:ED:01:0B:E6:FE:05:11:FC:0A:02:FC:DA:0F:F4:11:06:03:E8:FC:0E:CA:27:D1:16:D9:FB:D2:1D:E6:EB:F7:F2:C7:15:15:1C:0C:16:E4:1A:25:06:DA:E3:F2:E9:EA:0C:D3:09:EC:1C:C4:08:D7:00:3A:14:F3:DE:ED:DB:FA:FA:E1:09:0F:0D:DD:10:E6:0C:18:F6:1A:06:02:F1:ED:19:14:0E:16:E1:21:00:12:EB:F5:0C:09:1E:1B:14:0B:F9:DC:F2:10:22:FD:06:0B:00:FF:0C:ED:FB:2C:F4:EB:FA:05:0C:FD:FE:10:FC:D1:F3:F4:FB:EE:13:01:F7:02:0F:06:07:15:08:21:19:00:E6:06:0C:03:01:00:00:00:00:03:30:00:00:B7:0E:2F:05:E2:FF:F3:07:1E:F8:F6:10:22:DA:1D:E4:07:ED:F7:23:2B:F0:D1:05:F4:00:FE:EF:F0:F9:F4:F6:08:03:E8:FA:DC:04:18:1C:02:11:00:19:E7:FC:F2:ED:00:02:F3:09:04:12:01:FB:F2:10:03:0B:E5:E8:12:F9:03:00:F7:03:FB:17:F7:0E:22:26:F0:0A:ED:20:08:19:F2:0D:F5:06:DD:17:F3:07:00:07:F2:14:09:13:14:F5:0F:1D:11:FF:0E:1F:18:F2:0A:05:05:FA:F2:FD:0E:06:FA:FC:F6:1C:FB:01:1F:F2:F7:00:B0:37:E4:18:EC:EF:0F:E9:E5:E9:0A:22:24:10:E5:18:04:25:15:16:FD:20:EE:FF:FC:ED:0A:1A:0A:FD:10:FC:0A:E3:10:11:FD:EC:11:04:02:E8:F7:09:27:0A:F4:F7:F4:0E:E9:F2:0E:EF:F6:02:E7:0E:00:0F:E9:EB:00:FB:F9:03:FC:F6:01:FB:14:EB:F3:FD:05:FA:03:F0:07:FE:01:F1:F1:0D:0D:05:F7:E5:1B:FB:12:00:13:0E:08:0A:FC:05:F8:05:FD:DC:01:F7:0D:F9:FA:15:F7:04:0F:F1:05:01:24:01:E5:FB:05:EC:BE:3D:FB:22:D6:FD:D2:EA:27:FA:34:0B:0B:FF:03:EF:FC:0E:00:FF:F4:F1:13:28:00:26:01:FF:02:E4:0C:F4:EF:3D:E1:23:13:10:10:E1:F6:0F:0A:F4:F0:04:16:09:FD:1E:FD:06:18:07:FC:DC:FF:1D:0F:1B:10:D8:0E:FC:21:F7:F7:15:1F:14:16:11:12:EA:EF:FC:F7:DF:06:0D:05:E2:F9:FA:09:00:F8:19:11:00:0E:0F:F9:04:FF:FB:04:E2:F9:0A:02:F9:14:EB:18:11:F6:FD:FB:10:FF:0A:F3:E5:FA:F7:23:FA:EF:F5:18:F7:ED:FD:09:FA:13:04:F0:F5:F9:09:03:08:1F:F2:F4:12:0D:1D:EB:F5:FE:F9:0C:ED:02:15:FA:FF:14:E0:0F:AE:04:FE:F0:F7:FF:24:FB:13:F8:0E:0A:2A:1B:08:F5:E8:30:0F:29:04:FB:12:F6:E6:25:CF:09:0B:E3:10:F0:0D:E4:FC:EC:16:E3:25:F3:0D:F0:28:F3:F8:FB:00:17:03:EB:01:10:07:F7:0E:F4:1A:ED:FB:1C:25:FC:F1:E5:D3:EB:11:15:EC:02:01:EC:00:03:E8:DE:E9:D7:02:04:FB:09:05:DA:FD:02:02:01:FF:09:04:10:F4:04:F0:EC:E9:F6:23:08:FE:0A:FD:09:08:FB:FD:0D:ED:F7:04:F3:F9:F5:F9:01:0C:0C:06:F3:1E:FA:09:F7:FD:00:00:1E:1C:F7:02:03:F3:E9:00:02:F6:F4:EE:01:0D:12:04:F7:E9:10:F0:FD:07:FE:12:0C:0A:F5:10:F7:F6:4F:DE:FE:FD:14:FE:46:0B:ED:FE:F4:FE:2E:02:FE:F9:F9:11:F8:E1:16:EA:0A:04:D2:10:FE:11:F9:1E:F5:08:D3:25:03:EA:FE:01:FD:EA:E9:FC:D9:E7:EF:F0:00:28:F9:FC:E3:F5:19:13:F2:F8:DE:F0:1B:E9:EE:0B:08:FF:E4:FA:03:ED:00:05:01:0D:0B:05:F7:DF:04:EB:E8:FE:FD:06:FF:0C:FF:ED:00:05:FB:19:F9:05:F3:FF:EE:00:08:FF:FE:FD:15:07:07:0B:10:04:F5:00:FC:F8:FC:F0:F3:E7:13:FD:FF:F5:04:14:DF:03:08:00:08:09:EE:F8:06:01:F9:13:00:E7:0A:19:FF:00:EA:05:10:FB:F8:FC:18:07:01:E4:FF:16:07:EE:15:44:FA:D9:FA:07:07:0A:C8:EC:DF:0F:FC:F1:1C:32:00:D7:0B:E9:09:0A:03:E1:15:FB:EC:F5:CD:ED:E1:17:F9:10:E0:D9:F0:00:E5:F1:09:F6:F5:10:1B:EC:1B:06:DE:FE:FF:0C:F6:F4:F3:07:FF:00:F2:39:06:ED:0A:ED:11:F1:FC:02:F2:01:ED:00:F8:08:1A:00:05:06:1C:E7:1E:07:00:F3:0E:F3:02:06:EB:F9:E5:F8:07:03:F5:DD:F6:0C:E9:03:08:EE:01:FD:1E:0F:FE:02:1E:0F:FD:F4:FC:0D:00:05:0E:FE:05:11:FC:E5:03:00:FE:FE:F2:08:fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b:F8:07:FF:23:00:FA:ED:FE:E5:04:01:FA:EB:07:F6:0B:EF:43:C3:19:11:FC:17:DB:34:15:F5:27:11:04:E3:09:08:ED:0B:F6:12:F0:FF:0F:16:16:E9:F4:11:F3:E9:0D:0F:FD:F3:DA:13:02:07:20:FE:F5:F4:FF:E6:00:01:D6:ED:EE:FB:18:F7:DD:12:04:E8:0F:01:F1:F9:F9:F2:00:FD:E9:EE:B1:26:F2:1A:05:17:E0:DB:02:FF:05:F4:E9:24:10:00:F4:F8:17:F9:1E:E5:12:00:0C:EB:F2:F7:EA:2C:E5:02:EB:14:16:F9:FA:E4:F7:E3:E2:27:04:00:F7:E9:F8:0C:E8:00:09:06:FE:00:FD:FF:DB:0B:F9:15:0A:0A:ED:F4:0F:C2:25:DC:1E:DE:FE:E9:2F:FF:F8:F2:DD:C9:1B:0E:2A:16:24:E9:06:1B:05:DB:F7:E4:F8:E3:0E:DF:0B:ED:28:CF:05:D3:02:1F:15:07:EC:E9:EA:FF:F9:E4:1E:0F:F1:CD:0C:E9:01:22:01:1C:FF:13:E3:F6:1C:1A:23:1F:E9:1B:00:FF:E3:FE:FC:F5:22:16:14:06:EC:EB:03:14:28:08:E7:00:00:FB:03:E4:FE:29:F2:EB:04:04:1F:0D:FC:07:01:D0:FE:EA:05:F0:16:07:E5:F5:04:FA:00:0E:00:22:0F:00:E7:05:11:02:01:00:00:00:00:03:30:00:00:B9:0A:2D:00:E3:FF:F4:01:21:FC:FA:12:1C:D6:18:E5:0F:ED:FF:21:21:F9:C7:09:F9:FF:FA:E9:EB:FF:01:F3:06:00:E4:F5:D7:07:1C:1E:0C:09:FF:14:EC:F2:F5:EB:FE:0A:F8:0F:FE:10:FF:02:EB:17:F9:03:E0:EB:17:FD:07:FB:EB:09:FB:1B:FE:0D:1C:24:EC:14:F1:1B:FF:1C:F6:0E:F4:03:D4:0E:fdf8:f53e:61e4::18:13:F4:11:1D:12:F3:0B:1C:10:F8:08:02:00:FE:FE:F8:0B:08:FB:FF:F8:13:F4:FC:13:F0:FF:FB:B0:36:E6:1B:ED:F0:10:EB:E3:E8:00:1F:27:0E:E8:1C:02:26:14:10:F2:1D:EE:FB:F6:F3:05:1B:11:FD:15:FD:0B:E0:0D:17:01:E9:11:08:03:ED:F7:08:2D:08:F8:F7:F2:05:F0:F0:02:FC:EF:00:E5:0D:FE:0D:F0:EB:FF:FB:F8:05:FC:FC:0A:FB:1B:EC:F1:00:00:00:03:F8:04:F9:02:EF:F4:09:0A:FC:F4:E0:18:FC:0D:F9:0F:0E:0D:00:FA:09:F2:0D:FC:DA:FF:F7:09:F6:F8:14:FC:04:0C:F0:10:04:22:02:E8:F6:03:F0:C0:3D:F9:23:D3:F7:CC:E7:2A:F2:31:0E:0C:01:01:F5:FF:12:FF:00:F2:F9:10:1C:09:2A:06:00:F9:E1:09:F7:EE:3D:E3:1E:12:05:20:E3:FE:11:08:F5:EF:FF:18:07:FA:1B:03:0F:1C:09:FC:E4:FC:1F:00:18:13:E2:13:FA:12:EA:FE:26:1B:0E:16:12:0C:EF:E5:F3:EF:E3:FD:08:FF:ED:FC:F5:02:FB:F1:12:10:04:0F:03:FC:03:06:FB:07:E6:05:0D:FD:04:0F:E8:21:19:E5:02:FD:0B:EC:06:ED:EC:EE:F6:22:04:00:00:19:FA:E9:FA:0A:02:08:06:F5:E8:F1:04:03:04:1B:EF:ED:0C:FF:0E:F2:EB:FD:F7:08:F2:0A:20:04:FB:0F:E2:12:AB:00:00:F5:F2:02:24:F9:13:F3:10:17:31:1D:0A:F2:ED:29:0C:1E:01:F6:13:F8:E3:2B:CC:0A:02:E3:14:F6:0F:DC:08:F1:14:EA:24:F7:0E:F2:2D:FC:FA:F7:00:11:0C:E7:02:10:00:F4:11:F5:22:F1:FA:19:1E:FC:F4:E8:DB:E9:09:13:F0:03:FE:F4:F4:F7:F1:E4:E2:E4:F6:00:F2:0E:06:DA:00:00:02:0B:0C:0D:0E:14:F1:0D:FE:EE:EA:ED:1F:FE:03:09:00:07:0E:F7:F5:0B:E1:00:05:FC:F7:00:F8:00:10:00:07:F3:14:01:01:F6:00:FD:02:1E:27:F6:06:07:EE:F2:0B:FD:F3:F4:F0:05:0E:0A:00:FD:F8:09:EB:07:FD:FA:16:02:0C:05:14:F4:F5:4C:E0:FD:FE:0C:F9:44:0B:DF:F1:F8:FB:24:00:00:FE:03:0A:FD:D9:17:F3:05:07:C7:0F:01:0E:FD:23:F3:07:CD:22:09:EB:03:FE:FB:E8:E9:03:DE:F7:F0:F9:FF:2E:F5:F8:E8:EE:16:15:F6:00:DA:EE:0F:EB:FB:0C:09:F8:ED:FB:00:F4:02:06:04:0B:07:09:FA:DF:07:E9:E5:09:03:06:11:11:FD:EA:06:0E:FE:1A:FA:00:F4:F6:F5:03:02:0A:04:00:13:00:15:0D:16:00:FB:FC:F8:F5:0A:F7:EB:EC:13:FB:FF:F4:01:11:EA:03:0C:02:16:0B:F7:FB:0A:F5:FD:0A:01:ED:04:17:04:F9:E7:00:17:FB:FB:FC:1F:02:03:E8:02:10:0C:F2:17:3E:F3:DB:FA:07:03:01:CA:EE:D0:02:FD:F6:17:2B:FA:DD:06:E7:0C:0D:0C:DF:1C:F5:E9:F5:D1:EF:DD:17:FF:16:DD:D9:F8:F8:E6:E9:12:F7:F0:10:14:F0:10:07:D6:F5:03:09:F8:FC:EA:03:FD:05:FA:37:09:F5:05:EF:0B:EF:F6:00:F8:00:F3:FD:FF:08:1F:03:06:05:17:E0:1A:01:0E:FF:00:E9:08:0E:EF:F6:D7:FD:07:07:FD:DC:F8:09:F2:FF:0E:F5:FF:FB:17:0D:FE:02:22:16:F7:EE:FE:0C:09:0A:12:FF:FA:17:06:E2:05:FB:07:F7:F4:10:EF:00:F2:02:07:F6:FE:07:FE:08:F9:19:0D:F5:F5:05:EF:F9:03:F6:EA:0A:F6:10:F1:45:C3:1F:10:FC:0D:E4:31:15:FB:26:0E:FD:EC:10:06:F4:0C:EF:0D:FA:FB:0B:07:1A:EE:00:19:ED:EE:14:08:F7:EB:D4:17:F5:09:1C:0A:FD:F8:F9:EE:FF:F5:D4:EC:EF:F5:12:FD:DE:1A:04:E6:17:08:F1:FC:FE:EE:00:00:DE:F2:AF:23:F9:24:03:11:E4:DC:FB:F4:0C:FB:E7:1B:0B:FC:F2:FF:24:F2:1B:F3:04:F9:09:F1:EF:FA:EC:29:E8:06:EF:13:1B:FD:F9:E2:F6:E6:E0:32:0F:FA:F7:ED:01:08:E5:04:08:07:FF:06:00:FE:E0:0B:F5:16:04:06:E4:F6:11:C5:1E:DA:20:DD:06:DD:2D:E2:00:F9:E3:D2:1A:19:27:15:25:E6:0B:24:0B:D9:EC:E3:F7:ED:0D:D4:07:E7:22:D1:02:D8:FD:26:17:01:DE:E7:DB:FB:FC:DE:04:0F:FE:D5:0B:DC:15:14:09:10:09:10:F3:E7:1F:0D:1A:1A:E0:24:01:07:E6:FE:08:0F:26:11:13:0B:F5:E8:FF:17:1C:05:F6:02:FC:03:FD:EB:F1:2D:F7:EE:FA:09:15:04:00:10:F7:D1:F2:F1:F5:F0:10:06:DF:FD:19:04:09:01:FB:22:18:FD:E9:00:0F:00:01:00:00:00:00:03:30:00:00:B2:11:30:00:E9:00:FC:00:21:FC:F9:12:19:DB:1C:EC:13:E9:FF:1D:27:FB:C6:09:F9:02:FE:E7:EC:05:00:ED:08:00:E8:F3:D7:07:17:1A:0B:08:00:0F:E8:F5:FB:E9:00:0B:F2:0B:04:0E:FF:00:E7:13:F3:FF:E5:ED:16:FB:0D:FE:EE:0A:FF:21:FC:0A:20:2A:ED:17:F8:16:04:1F:F1:08:FC:01:E0:0F:02:0C:01:FC:F6:1E:0E:11:12:F0:0C:1C:0F:F5:0F:1D:14:FB:09:05:00:FE:F9:F4:0B:09:F6:FA:F3:0F:EF:00:11:F2:00:F9:AE:39:E6:1B:EC:F4:11:F0:E4:E9:00:1A:24:0C:E2:17:05:25:14:13:F9:21:F1:FC:FC:F2:03:1F:0F:F8:19:01:10:E3:0D:1A:FA:EF:16:08:00:EA:F7:08:2B:0A:FC:FD:F2:08:F6:ED:04:FD:F3:FE:EA:0E:00:0E:F5:EC:FD:FD:F7:05:FA:FF:05:FB:16:EE:F2:FD:01:00:01:F5:04:F8:04:EF:F4:0B:11:F8:F3:E3:1B:01:0B:F9:0D:12:09:FF:FE:0E:F3:10:FB:DA:00:F5:13:FE:F4:15:FA:05:0C:F0:12:09:1E:0A:E8:F6:02:EF:C1:3F:FC:24:D6:FE:CE:DF:24:F3:2D:0F:0C:05:05:F8:FF:09:FF:02:E8:F9:15:24:02:2C:04:FB:03:DA:0B:FF:F1:3D:DD:1D:11:06:19:EB:02:10:0B:F2:EF:02:18:06:00:1A:04:0A:16:0D:00:E3:F9:15:FF:19:0F:E2:09:FE:14:E6:FC:27:1C:10:21:08:15:EC:E1:FB:E6:DD:00:07:04:E7:EE:FB:02:01:F5:19:0B:FE:06:FB:F9:07:01:F9:04:EA:FF:0C:FD:09:11:EF:1B:13:E7:FF:FB:10:F5:0B:E9:E6:EA:F6:26:04:F8:00:13:EF:E6:FA:0C:02:06:00:FA:E8:F7:05:01:09:17:F6:EE:03:0A:0A:EC:EA:02:00:06:F2:00:12:0A:FC:14:E0:14:AA:06:09:EC:F4:02:27:F9:0D:FE:0B:15:2D:15:07:EE:EA:2A:0B:21:03:F8:0B:F6:DF:26:CA:0B:08:DD:16:F4:10:DC:FF:EB:17:E7:19:F5:0E:EF:28:F9:F7:FE:02:15:05:EA:FC:15:FF:F4:06:FB:1D:F3:F7:17:24:00:F1:E9:D8:EA:09:17:F4:FF:FB:F8:F4:F4:F6:DC:EC:E1:FD:FB:F5:11:04:E2:FB:04:FE:0C:05:04:09:0D:F3:0A:EE:F5:E9:ED:21:00:03:04:F9:09:17:F7:F5:05:E9:FD:04:00:F6:02:F6:FF:10:02:09:F5:1A:FF:08:F4:08:01:04:1F:22:F1:02:06:EF:EB:0D:01:F7:EE:F3:05:06:0D:05:02:F5:07:E7:FE:07:F6:16:06:06:FF:16:F4:F7:49:DF:FF:FD:0C:F8:41:18:DF:F9:F6:F7:26:04:FF:03:04:07:F8:DC:16:EE:03:0A:CD:18:FB:0E:F6:26:F1:08:CC:23:0B:E5:03:FD:00:DF:E4:00:DF:F2:F5:F2:FF:2E:F8:FB:EC:F9:15:1A:FB:F9:E0:F1:0F:F3:F5:09:07:F7:EC:F8:FD:F3:03:07:10:0C:0A:0C:04:E1:04:EE:E8:02:FA:06:12:11:08:E8:0C:11:00:13:FA:FB:ED:FA:F5:01:08:0A:FB:02:0A:FC:10:0F:18:05:FE:07:F4:F1:09:F8:E8:F0:14:FB:03:F9:03:17:EC:05:0D:08:17:0D:FD:FF:10:F6:FE:09:00:ED:0E:1F:04:00:EA:FE:13:FA:F7:FE:14:00:02:E5:0D:11:0B:F4:15:3C:F9:DB:FA:08:02:FF:D1:E9:D3:0D:FD:FF:1A:30:F9:E2:05:E7:05:0B:09:DE:1A:F3:E8:F4:CD:EE:E4:1D:FB:13:DD:DA:F9:FE:E8:DF:14:F8:F2:0F:1B:F0:10:05:D4:FB:04:10:F9:01:F1:08:02:03:F0:37:09:F6:03:EA:07:F2:F9:FC:F2:00:FB:F8:F8:06:21:03:04:FE:16:EB:1A:01:0B:00:07:EF:0B:0C:EC:EF:D8:F9:05:03:F9:DE:FD:01:F1:F8:13:F2:FF:00:0D:0F:FB:07:23:20:FA:EE:0B:06:06:01:0F:09:F7:12:0B:E4:0F:03:FE:F9:F4:11:EF:08:F7:02:0C:F5:02:09:00:09:03:19:07:F6:F0:00:EB:F9:06:FB:F5:10:F2:0E:E9:49:BD:1D:15:F7:14:E0:2E:0C:FD:25:12:FE:EB:0D:0C:F0:0F:FB:0F:F6:00:10:11:1B:F8:FA:1F:EB:E9:0D:FE:FB:ED:DA:1A:F2:07:17:00:F7:FE:F8:E3:F8:FB:D8:F7:F5:00:1B:06:DA:15:01:EF:13:06:F0:F3:FD:F0:FE:FC:EA:F0:AF:28:F6:1E:04:15:E3:DB:FB:F8:0D:F5:E0:22:17:FA:F6:F4:1A:F2:1D:EB:07:F9:0D:F8:EB:FC:EA:28:EE:00:F3:0C:19:FB:F3:E2:F2:DF:E0:2C:0F:FB:FC:E9:00:0B:EF:04:06:09:F9:08:FD:FC:DC:03:F4:0F:02:05:F0:F5:0D:D1:1A:E0:1B:D8:0B:D6:2C:EC:FA:FB:E6:DB:1F:1A:2F:11:1D:E4:0F:20:09:D5:E6:EF:FC:E7:15:D7:04:E6:20:D1:06:CB:FE:29:15:FB:E5:E3:D7:F4:F5:E1:08:10:12:CE:06:E8:0E:1D:0C:1B:03:1A:EA:EE:14:16:12:15:EC:20:FD:FC:EC:F5:FF:17:1A:12:0C:13:F4:F9:F8:13:1D:FC:F9:0B:00:00:F8:E1:F7:37:F7:ED:F7:08:04:00:FB:0D:00:DD:FC:EF:01:E3:21:09:DF:F3:24:FE:05:12:09:26:0F:F9:EA:02:02:01:01:00:00:00:00:03:30:00:00:B4:0E:2F:03:E2:00:F9:06:26:F7:F8:14:1A:DC:1B:E9:0D:EE:00:22:25:FC:CD:07:FF:FE:00:EF:E6:FF:FF:F4:09:06:E8:F1:D9:04:16:1F:01:04:01:14:EC:F2:F8:ED:03:0C:F3:0E:FE:0B:FB:FB:EE:16:F7:00:E5:EA:15:F7:07:FC:EC:0F:FC:1A:FC:14:1C:2E:EA:11:F4:1A:00:1C:F4:05:F3:05:D7:0C:00:09:00:02:F9:16:11:15:0D:EB:10:18:0C:F6:0D:21:0D:F8:0C:05:FE:FC:FA:F1:0D:0C:F8:F9:F7:12:ED:03:18:EE:FD:FB:AB:38:E6:1D:EC:F2:11:EA:E3:EA:00:18:22:10:E7:13:04:28:11:11:F6:1F:EB:FB:FC:F5:00:1B:0F:00:16:01:0C:E0:14:16:00:EB:11:05:FE:E8:F6:0B:2B:07:FC:FD:F6:07:F2:EF:03:FB:F2:00:E3:0B:FD:0D:F0:EA:FB:F8:F9:06:FF:FD:07:F8:18:EE:F8:00:FF:00:03:F7:06:F6:04:F1:F7:0A:11:FF:EF:DE:1A:FF:0B:FC:14:0F:0A:00:FC:0A:F5:10:FB:E0:FD:F8:0F:FD:F7:15:00:02:10:EF:0C:0A:22:08:E8:F2:FE:F7:BB:3E:F9:24:D9:FB:CF:E2:25:F7:2B:0A:15:01:04:F6:00:15:FC:00:EA:FB:16:1F:06:29:04:00:F9:DD:0F:00:F0:43:DF:18:0B:02:1B:E3:FE:0F:07:F0:EB:02:0B:08:F5:1B:0A:0B:1A:09:FB:E4:F8:17:09:1B:0F:E1:0C:00:19:E1:F9:2A:16:0C:15:08:17:EB:E0:F8:F1:DA:03:08:06:F3:F6:F7:04:00:F9:18:0E:FC:0C:FE:F7:FF:05:FE:05:F1:02:0A:00:00:14:EF:16:17:F0:FE:00:0B:F2:07:EA:E7:EE:F9:28:06:FE:00:0F:EF:EC:00:17:00:06:FF:F6:E9:F2:07:FC:04:13:F6:ED:09:06:0D:F1:EA:00:F5:0E:F3:08:1B:09:FE:1D:DB:14:A9:04:01:ED:FA:00:2B:FC:10:FA:0E:1A:2F:14:0B:F1:EC:29:0F:24:FE:FC:10:FA:E7:2D:D1:0B:02:DB:11:F7:0F:E3:03:EA:0E:E3:1A:FA:0E:F3:29:FB:F7:FB:05:09:08:E8:01:16:00:F7:13:F0:1C:F6:FA:1B:1A:00:EE:EE:D9:EC:0A:1B:F1:FC:FF:EF:F7:F9:F3:DD:E6:E5:FA:00:F9:11:09:EA:F5:00:F8:0B:03:09:09:0E:F4:04:EE:F4:E7:EE:24:06:04:04:00:00:15:FB:F6:0C:E5:FE:05:02:FF:00:EC:04:0E:FD:0C:F4:11:F9:03:F4:FC:00:0B:21:26:FA:04:0E:EE:ED:07:FF:F9:F0:EB:06:0C:0D:03:FB:F1:0F:E9:FD:03:FD:1C:07:05:01:14:F3:F9:53:E0:FF:FC:0C:FC:41:0F:E0:F5:F4:F8:28:FD:FE:01:03:0A:F6:DC:10:F0:07:0F:D4:15:00:0A:FC:25:EC:08:CB:24:10:E0:00:FB:FE:E4:E5:01:E1:ED:F2:F4:FE:30:FC:F9:EC:F2:15:1B:F8:F9:E3:F0:14:F0:F4:07:0C:F9:EA:F5:FC:F3:FF:07:04:0A:04:0C:FC:E4:06:E8:EA:01:FD:0A:09:11:04:EB:06:09:01:0F:F7:00:E7:FB:F2:05:0A:03:02:FF:11:FD:0E:0E:14:04:02:02:FA:F4:07:F1:E8:F6:13:FC:07:F4:0C:14:EA:08:0A:01:14:0F:F7:FC:10:F5:FF:0F:FF:EC:0E:17:04:02:E8:FC:13:FB:F8:FC:1B:01:FD:EC:03:16:09:EF:12:45:F7:DA:FB:0A:00:02:CB:F0:D7:09:F9:FD:1C:2F:F6:DE:04:E3:05:05:08:DA:12:F1:EC:FE:CA:ED:EB:1C:FF:13:DC:D9:F8:FF:E9:E1:17:FE:F5:0A:1B:F0:0F:01:D4:FE:00:10:F8:FC:EC:01:00:00:F6:34:06:F6:06:EA:0B:EF:F9:FE:F2:00:F2:FD:FC:0B:18:07:07:02:16:E5:19:FC:0B:F6:0B:ED:04:0D:E8:F0:DD:FC:04:03:F5:E3:FB:07:EE:01:14:F5:FC:F9:0F:0F:01:05:22:12:FA:EC:04:03:03:03:0F:06:FA:15:02:E4:0B:FE:FD:FC:F1:0E:EA:09:F4:06:07:F2:00:0B:FF:0A:00:18:06:F8:EE:00:EA:FF:00:FF:EA:0C:F2:0F:EB:44:C5:1C:0E:02:13:DA:30:17:00:2B:10:07:EF:07:05:EF:10:00:13:F7:00:13:13:1A:F3:FC:1C:EE:E8:15:07:FC:F7:D2:11:FF:02:19:08:FA:F8:F7:EC:F9:FD:D6:F7:F0:FB:1A:04:D8:19:09:EC:1A:03:F6:F5:FE:F2:00:F8:E5:F7:B1:26:F6:21:00:13:DF:DB:FF:F5:03:FC:EA:1B:0C:FF:F5:F9:21:F6:18:E7:09:FC:08:F6:EB:FC:E9:2B:E4:0D:FA:12:1B:FC:F6:EA:F5:E3:E0:33:0E:FF:F7:E8:04:0D:E8:FF:09:02:FA:02:03:02:DA:12:F9:13:07:07:ED:F4:08:C1:1C:E1:20:DF:08:DE:32:E4:06:F9:E5:D7:1A:10:26:0B:27:E2:12:18:08:D7:EC:F4:F2:E8:1D:D4:0B:E6:1C:D5:04:D3:FD:2E:12:F7:E3:ED:DB:FA:F3:EE:0A:17:02:D7:0F:EA:0A:1D:08:15:F9:12:E6:E5:13:16:10:11:E7:22:FE:FC:F0:FE:F8:06:21:0E:16:13:F5:EC:FB:17:1C:FD:F4:04:FD:01:04:E9:EC:37:F6:E6:FC:06:0A:FC:F9:19:01:D0:F4:EF:0A:E7:1A:0A:E9:F9:26:FC:03:12:08:25:1A:05:E5:05:0C:00:01:00:00:00:00:03:30:00:00:B4:0E:2E:00:E9:06:FB:02:1D:F7:F8:10:1C:D8:1A:E5:09:F1:FC:1E:20:FA:CA:05:F9:02:FC:F2:EB:FF:FD:EE:01:04:EB:FA:D2:05:1D:1C:09:08:F9:15:DE:F2:F5:F8:FE:0B:EE:08:01:10:01:FF:EA:12:00:00:E3:F0:13:FA:0A:FD:F3:fc00:e968:6179::de52:7100:0F:F0:1A:0A:21:F1:0D:F4:03:DC:0E:FF:11:FD:01:F4:17:13:10:0F:ED:0A:1A:06:FA:0F:1E:18:F9:0B:02:04:F6:FA:FC:0F:0B:F6:FD:F5:0F:F5:01:1E:EB:02:FF:AC:39:E9:1B:EA:F2:0E:F1:E5:ED:02:1E:24:0A:E0:19:00:22:14:12:F9:1E:F6:FF:FA:F1:01:1C:0A:FD:19:00:0D:E1:0C:12:FF:E3:0C:02:FC:ED:F5:02:2E:0A:FB:FA:F7:0A:F2:F1:02:F4:F3:01:E0:0C:04:0F:ED:E8:FD:FA:F9:06:FC:FD:08:F8:16:EE:F4:F8:01:FF:03:F6:07:F9:07:EF:F8:0C:0D:FE:ED:E4:19:FF:0C:FD:13:0F:0D:FF:F9:07:F6:0B:FE:D7:FB:F6:0C:FA:FB:17:FA:05:10:EF:0A:07:21:04:E8:F2:02:F5:B9:3A:FB:1F:D8:FC:CB:DE:21:FA:35:0E:11:FF:07:F7:00:13:F9:FD:F3:EF:16:2A:0A:2C:07:00:00:E0:10:06:F4:3A:E3:13:0B:01:19:DB:F8:0D:01:F1:F1:00:13:07:FE:23:00:11:13:08:FD:DA:F5:1C:08:13:0E:E1:19:FD:14:EB:F9:28:18:13:17:09:08:F0:E2:FC:F0:D9:F9:00:00:F0:F8:F4:04:F9:F2:0C:0F:01:10:FA:F9:02:00:FA:06:EC:03:10:00:03:17:ED:1E:13:E8:FD:00:15:F3:11:F1:EA:F7:F6:2B:03:F7:07:0F:F4:EF:03:0E:00:03:00:F2:F1:F8:07:08:01:17:F4:F6:FF:0A:0B:EE:E6:FA:F8:09:F1:04:1C:04:FF:11:DD:15:AD:04:FD:ED:F9:02:2D:FA:0C:F9:0D:18:34:1D:0A:E7:ED:2D:0F:22:04:F4:0F:F7:DF:26:C7:11:04:DD:0E:EC:0A:E6:01:F0:13:E6:1F:F7:0F:F2:2A:F7:FB:FD:FD:12:08:EC:05:11:02:F4:0A:F5:1D:ED:00:1F:19:00:FC:E8:E8:E8:10:17:F0:FD:07:F1:EE:EF:E9:E9:E9:E0:FA:00:F5:0B:05:E1:F9:FE:FB:0A:06:06:0F:09:F7:0E:ED:F7:E7:F1:20:FE:04:0D:FB:07:15:F4:FD:09:E6:01:06:03:F4:FF:FB:02:0D:08:02:F2:16:F9:09:FB:FF:FC:08:21:1D:F9:00:01:F1:EB:03:06:F2:EF:F1:00:10:0A:07:F8:FA:0D:EF:00:03:00:13:13:07:F8:15:F7:F7:52:DE:FB:01:10:F8:42:12:E6:F2:F1:F8:28:01:F6:FE:02:06:F7:E2:19:F3:07:0D:CE:14:06:10:F9:24:EE:11:CE:22:0A:EB:FB:FD:FA:EB:E4:FC:E0:F2:F0:FA:FF:2C:01:FB:ED:F1:16:1D:EE:F8:E1:EF:11:EC:F4:0A:04:00:F2:FC:F9:F9:fdf8:f53e:61e4::18:06:F2:EC:02:03:09:12:0A:06:E9:05:08:FC:17:FE:05:F1:FD:F4:FF:0A:02:00:02:0C:00:0B:0E:16:04:FB:06:FC:E9:00:F7:EE:F0:08:F6:00:F2:08:1D:DF:0D:02:0B:0E:0A:FA:FE:12:F7:00:10:00:E9:07:17:00:02:EA:01:10:FD:EB:F7:1A:03:07:EA:06:12:07:F5:10:45:F5:D9:F7:01:02:03:CC:E6:D8:05:F8:F8:20:32:F8:E2:05:EA:04:0F:0C:E0:18:F4:EF:00:D2:E5:E3:16:00:12:E1:D6:F7:04:EA:E7:13:FA:EE:0C:19:F0:0D:07:D7:FE:FA:08:F7:FC:E6:06:FB:FA:EF:37:03:F2:07:F6:07:EF:F2:FE:F7:FC:FB:FC:FC:01:1D:00:0A:03:1C:E8:16:04:08:01:09:ED:0C:05:EE:EF:E3:F7:07:01:F8:DB:FC:00:F0:00:14:F6:FE:FC:15:12:FC:0A:28:13:F9:F7:02:0E:07:0E:0D:09:F6:0F:04:E3:0D:FE:04:01:ED:11:F0:04:F7:06:05:F8:FA:0D:03:05:FF:1D:00:F8:E9:02:E9:03:05:FB:EA:0E:F3:10:F4:45:C2:17:12:FD:11:E6:39:13:FC:25:17:FD:E3:0E:06:E8:06:F3:0F:E8:FB:14:12:1C:ED:FC:1D:F7:E9:0F:04:F7:EF:E0:16:F9:0E:1C:FF:FA:FB:F3:EF:F9:02:D1:F1:F4:F5:13:FC:E2:12:03:F3:11:07:ED:F7:F9:EE:FA:F6:E5:F1:AD:1F:F5:20:0D:15:E2:DC:FF:FA:0A:F5:E7:1F:14:FD:F1:F6:18:F6:16:E3:0E:FA:0E:F0:F1:FC:EF:22:EC:04:EA:10:18:FA:FA:E5:F4:E2:E6:37:0C:FF:F9:E4:01:0F:F0:08:05:05:FD:08:00:FD:E1:0E:01:0F:07:0A:E3:F7:15:C0:20:D3:19:DC:FF:E2:32:EA:FE:F9:EB:CF:24:1F:21:08:2C:DB:0F:20:FE:D9:F2:FC:F3:DF:13:C8:0C:F3:1A:D4:07:D0:01:2F:0F:04:DA:DD:ED:00:EE:E8:06:11:04:E0:0A:E6:0A:1E:01:14:09:12:EF:F4:21:12:11:2C:E4:10:06:FF:E7:F8:FD:0D:13:11:17:12:F2:EB:F1:12:17:FD:FA:01:F8:00:06:E8:FC:34:FA:E6:04:16:04:FF:FF:10:FF:D8:00:E5:FE:EE:14:00:EC:F2:1E:01:09:09:F8:22:0D:F4:E9:FC:03:FA:01:00:00:00:00:03:30:00:00:B5:13:2D:FC:E4:FA:F9:02:21:F3:FA:16:19:D8:22:F0:11:E7:08:22:1F:FF:CE:09:FC:02:04:FB:EB:FA:FE:F0:09:04:E6:F4:D5:05:1E:20:10:04:F9:16:E1:F2:F6:F2:07:0A:F2:09:05:0C:FF:00:E3:16:F2:08:DE:F5:14:F6:06:F4:E8:0C:FA:1B:FC:0C:1F:23:E2:12:F6:14:07:1D:F2:0B:FC:04:DC:0A:05:0E:00:00:FF:16:13:13:0D:EB:0E:18:07:F6:08:1C:12:FA:06:00:01:01:F6:F0:0F:10:FE:FC:F1:10:F5:00:10:FC:FD:F9:AD:37:EB:18:E7:F3:0D:EC:E8:E7:02:21:21:0D:DF:19:00:28:12:11:FA:20:F6:01:F9:F9:FE:1A:18:FF:11:00:08:E2:10:17:01:ED:13:FF:FF:ED:F4:08:30:08:FF:FB:F5:04:F4:F5:00:F6:F1:01:E0:0E:FD:0D:F0:EF:FB:02:FA:09:F8:FE:0B:F6:12:EE:F0:04:FE:04:03:FA:0B:F7:06:EA:FA:0A:11:FC:F0:DE:1A:03:0E:00:0F:0C:0D:04:FB:0C:F6:10:FF:DE:FB:F5:0E:FC:FB:11:FF:0B:0C:EE:0C:0C:24:07:E7:F5:FF:F4:fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b:21:F6:36:06:0F:05:09:F3:04:13:FB:02:E7:03:15:21:02:29:07:00:FB:DB:0C:04:F5:3D:EA:18:03:02:1E:E6:FA:0D:07:EE:EE:F8:13:0A:04:21:FF:13:1D:08:FE:E2:F3:0B:0E:1C:10:DD:1A:01:1B:EE:FD:27:1F:16:14:00:0C:F2:DB:F2:ED:D2:07:09:00:E9:F4:F5:03:FA:EC:16:0E:00:10:01:FC:FC:0C:F7:07:F3:01:0E:02:F9:0B:EF:17:12:E8:02:FC:0D:F5:12:EF:EF:EB:F4:1E:0C:FA:00:12:F8:E5:00:0F:F7:00:FA:F0:E9:F5:09:F7:01:14:F1:EC:FE:05:03:FA:F4:FF:F1:09:F6:F9:13:00:F5:1A:E4:15:AD:06:05:F1:FB:05:26:F7:0F:03:0F:18:32:1B:0C:EF:ED:28:0E:26:FF:FB:0D:01:E9:2A:CC:0E:FE:DE:09:F4:09:E2:02:F1:10:E5:1B:0C:10:E8:2E:F9:F5:F8:FE:16:06:F0:0A:15:06:F5:13:FA:1B:F3:F3:21:28:05:F4:F0:DF:E5:05:13:F4:F5:FE:F2:EF:F1:F1:E0:E9:E2:FC:02:F8:09:04:E9:FC:FC:FD:0E:07:06:0B:0A:F8:0B:EF:F2:E4:F1:21:00:03:FC:FF:09:12:F9:FB:07:E1:00:08:01:00:FF:00:04:09:04:0C:F7:12:FC:05:F4:00:06:03:22:29:01:02:00:F1:EB:03:FB:00:E7:EE:03:12:13:00:F6:F9:0D:E0:FD:FC:F7:17:09:05:00:15:F5:F7:4F:DB:FA:00:08:F8:41:03:E4:FB:F2:F1:2F:01:FB:FF:01:03:F5:E3:16:F8:0B:11:D3:1B:FF:11:F7:23:EA:0A:C8:21:0F:EB:FD:FA:FC:E5:E5:FE:E8:EF:F5:FA:FA:21:00:F6:E7:EB:0F:21:EF:FF:DC:F0:14:EA:EE:06:07:FE:EC:FA:FA:F4:FD:12:0B:06:08:05:FF:E1:08:E5:F2:00:FD:07:08:07:04:F1:06:0B:F3:18:F4:03:ED:F4:F0:04:03:04:04:01:0C:FB:0E:0E:15:03:FF:FE:FB:EC:04:F9:EC:F2:10:FC:FD:00:05:14:EA:0F:09:02:0B:0C:EF:FC:0E:F8:FD:11:02:ED:08:20:06:05:E6:02:11:FA:F8:F8:1A:FE:05:E6:05:14:06:FB:1D:40:F3:D4:F6:04:FD:FC:CA:F1:DF:07:04:F5:1E:37:F8:E7:05:E8:02:0A:0C:DF:18:F0:E8:00:C9:EB:EB:11:FD:17:E2:D6:F3:00:E8:E6:17:F9:F1:0D:14:F6:0C:06:D6:06:FB:05:FD:F9:EF:F8:00:F4:F0:33:00:F3:07:F4:0A:F5:00:FC:F1:FA:F6:00:FA:02:1C:02:04:04:15:E8:18:04:0D:F6:02:EE:05:00:ED:EB:E1:F7:07:01:FF:DA:FC:00:E9:00:11:F8:F9:FD:18:0C:02:05:20:17:01:F1:FF:0B:FA:11:0F:05:FC:15:08:E6:08:FC:00:FA:EF:12:EA:06:F9:0D:0D:F2:FC:10:00:0B:01:1B:09:F5:E7:03:E8:FA:02:00:EB:07:EC:0F:E8:43:BB:17:09:00:18:DC:34:13:FC:23:16:06:EB:0A:0C:F2:10:FD:0E:F2:FC:0A:17:11:EF:F8:1C:EE:EA:0C:08:00:EA:D7:11:F7:FD:1F:06:04:00:FE:E7:FC:F4:E0:FF:ED:FD:17:05:D4:0A:05:EA:12:07:F2:F5:08:EF:FF:EC:E4:F1:B6:2E:F5:23:01:18:E5:E3:F8:F2:03:FE:E8:20:0F:F6:F2:F9:25:F1:1E:F0:0C:F6:0E:FA:EA:01:F0:29:ED:08:F5:0F:19:00:FC:E8:EC:E3:E6:34:0E:FE:FE:EC:05:0A:E4:04:FF:08:01:0B:FB:00:DB:11:FE:15:05:10:EC:F7:0C:BA:28:D5:22:E3:16:DD:2E:F4:06:FA:E8:CA:1F:1C:2B:07:35:E1:15:19:04:E7:E4:FF:F3:E6:1A:CE:09:DF:0F:D9:02:CF:06:2C:00:FF:E3:DA:EA:06:EB:EF:07:1A:FE:D0:0D:E9:04:1E:0B:10:FE:18:ED:ED:1F:17:0F:0C:F8:17:03:FA:ED:F9:F9:06:1F:05:15:10:FC:EF:F7:17:11:00:FB:FB:01:FB:FF:F2:FC:2A:F4:DF:02:10:06:FF:09:14:FC:D3:FE:EC:FC:F0:20:05:E2:F8:1B:03:0B:17:01:27:0E:F2:F6:F5:09:F9:01:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:'); INSERT INTO `tb_template` (`pin`, `finger_idx`, `alg_ver`, `template`) VALUES ('1', 10, 39, 'fdf8:f53e:61e4::18:01:4D:46:4B:1B:D1:82:14:4B:FF:52:20:76:D1:D1:4A:2D:33:C2:AF:AB:43:CE:D9:0C:19:16:1E:E1:25:02:49:'), ('1', 11, 39, '49:44:43:5F:48:53:31:3A:38:37:31:36:36:39:32:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:'), ('2', 0, 39, 'fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b:52:7A:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:8B:5D:B0:0C:C9:56:38:68:5A:59:75:7C:83:6F:C1:07:3B:37:11:3D:3C:3C:11:33:2A:3C:2F:2D:17:26:3F:2F:3E:3D:0C:2E:79:8A:78:55:08:52:15:B1:D1:5E:38:05:CC:C9:CF:F8:CA:C2:C2:C0:75:2E:CD:DD:B9:6F:7C:04:BB:7D:C5:C5:D0:CC:CE:DF:EB:EA:E2:CC:E3:D2:E4:E4:DF:EE:FD:E5:EC:DF:F0:E8:EA:D2:D2:D8:F3:F6:DF:F6:C2:F6:C4:E8:EA:F2:F3:ED:FC:E1:E1:EA:C5:D4:E3:C3:89:93:86:96:AC:99:95:BD:8E:94:81:A1:92:8E:81:B4:BB:82:AB:9F:BD:9F:82:87:A5:A7:9D:91:B5:CE:CB:C5:94:F2:46:03:11:E7:A6:67:A5:B9:76:AB:DA:FA:F0:E7:0E:DC:34:1F:08:C4:92:0A:D6:DE:02:0D:2F:13:C0:2E:D3:22:0F:E0:EF:D0:9E:1C:6B:CF:0D:0E:CA:F1:DF:CD:EB:3B:7C:28:C4:7B:62:CC:C0:6B:D2:D3:0D:29:CA:E6:1B:7A:79:78:7F:7E:7D:7C:73:72:71:70:F0:C1:F9:01:18:35:AC:E6:A9:8E:01:B4:F5:EF:CB:FC:3E:C3:BF:F6:6F:D3:D2:AE:5B:25:9C:B0:99:82:8E:BB:62:9A:A2:69:8B:25:28:D8:8B:53:63:C8:B4:6B:D6:DD:14:10:B2:9F:85:3A:39:38:3F:3E:3D:3C:33:32:31:30:FF:8E:F5:F4:F3:32:01:F8:07:AF:95:3D:F3:F2:99:E0:5F:E6:4C:7C:13:BA:19:60:3F:26:0D:6C:EB:6A:91:18:1F:1E:54:1C:83:C2:E1:90:87:7E:FD:34:39:F1:44:C5:62:53:D8:70:AF:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:08:49:6F:FE:EB:15:16:17:E0:46:45:EC:23:1D:1E:1F:67:6C:EF:64:61:65:66:97:9F:9E:9D:BC:6C:6D:AE:90:96:96:95:56:74:75:86:88:8F:8E:8D:70:7C:FD:81:80:87:86:45:7B:44:B9:B9:B8:BF:BE:41:43:8C:B2:B1:B0:B7:76:4A:4B:A8:AA:A9:A8:AF:56:52:13:A3:A2:A1:A0:27:59:5A:F3:5B:5A:59:58:AF:A1:22:59:53:52:51:50:A9:A9:02:54:4B:4A:49:B8:B0:F1:4C:4C:43:42:41:BC:B8:49:45:44:7B:7A:F9:87:80:7E:7D:7C:73:72:89:8F:78:76:75:74:41:FA:96:97:6C:6E:6D:CC:61:9C:9E:5F:67:66:45:4E:EB:E5:E6:1B:1F:8E:17:1C:EB:ED:2E:10:3D:BF:15:94:F4:F5:06:A8:8D:04:0D:F6:FC:FD:01:2A:07:06:A7:FB:C4:05:39:38:15:3E:C2:C3:CC:39:31:90:35:D6:CA:CB:94:2E:29:02:EF:D1:D2:D3:0C:22:81:22:D8:D9:DA:DB:D8:DA:D9:2C:20:21:22:23:D3:D6:21:2F:28:5C:4D:C4:F3:CA:C9:C8:38:52:39:14:1F:6A:C6:73:7A:1D:2E:3E:F0:1B:1E:24:AE:16:F0:ED:D3:1E:E7:D7:CF:CB:EF:F1:FE:84:C4:BB:EF:F2:11:ED:1F:1D:FC:E0:1B:19:F8:EA:67:65:64:97:5C:41:72:93:50:6D:6E:97:74:2E:6A:93:77:32:76:89:73:8E:8D:8C:FF:82:BD:80:F7:46:B8:84:C8:7A:46:BF:3C:4D:52:BB:40:41:5E:B7:47:45:4A:B5:5B:6B:54:A9:6F:53:AA:AC:63:5D:A6:A0:5F:59:B8:A4:A0:B5:44:58:A4:BE:40:5C:AC:AC:AC:AC:A4:A4:A4:A4:BC:BC:BC:BC:A4:A4:A4:A4:AC:AC:AC:AC:A4:A4:A4:A4:9C:9C:9C:9C:E4:E4:E4:E4:EC:EC:EC:EC:E4:E4:E4:E4:FC:FC:FC:FC:E4:E4:E4:E4:EC:EC:EC:EC:E4:E4:E4:E4:9C:9C:9C:9C:A4:A4:A4:A4:AC:AC:AC:AC:A4:A4:A4:A4:BC:BC:BC:BC:A4:A4:A4:A4:AC:AC:AC:AC:A4:A4:A4:A4:9C:9C:9C:9C:64:64:64:64:6C:6C:6C:6C:64:64:64:64:E4:D7:D4:39:DE:2C:DD:21:23:21:D5:0F:2C:D4:2F:CC:DF:33:34:DA:2A:DF:2A:DD:2F:C1:CE:2F:D2:D6:D2:35:DF:CD:C0:3E:CD:3A:C3:C7:2D:35:20:C0:C1:C7:31:28:07:06:0A:FF:F1:05:FB:06:E4:FC:F3:F6:D2:EC:08:18:18:E4:EE:E9:FA:E4:EF:E4:1E:06:EB:E3:19:E1:0A:E8:6E:99:6A:95:9E:72:62:94:6E:9A:6C:8E:9D:95:60:68:66:8B:75:70:6A:8C:78:98:64:C8:4A:8F:9E:7F:9F:5D:8D:9C:41:90:AB:40:55:A9:A6:4D:BF:49:A1:41:49:A3:BC:B5:44:52:53:44:42:BD:AB:54:4E:7B:BF:5D:A9:B9:A6:A0:51:AA:A1:A0:A6:88:A0:AE:A0:59:AB:B1:44:5C:BE:45:41:BD:B6:B1:AA:49:BC:A9:BF:F0:67:46:59:43:66:A5:AD:81:7E:6A:8C:98:52:62:8D:70:8D:50:87:7A:8C:61:69:7E:82:94:90:9D:4B:90:69:98:6B:72:9D:92:FD:E6:F2:FD:2F:08:F6:EC:F8:16:1A:E4:06:14:17:11:0E:03:00:D3:07:FB:03:0C:08:EE:F3:0C:C4:2A:DA:25:D2:39:E3:19:D8:CA:C9:EA:EF:28:3E:16:22:14:D0:32:01:D5:F5:D9:D7:DD:F0:35:F7:20:CF:0F:FD:25:EC:D9:F2:D9:22:3E:36:00:29:22:34:DA:CB:DD:04:D4:3E:C7:EF:38:ED:37:CF:2B:35:C0:D0:CE:CE:1F:E3:C4:CD:2A:07:F2:F8:EA:EE:ED:F3:08:03:09:ED:DC:00:01:F3:F4:17:E1:00:07:DC:1C:0A:17:1F:F0:19:E4:C4:1A:3D:1F:76:99:6B:94:9F:6E:6B:96:98:80:91:95:BF:8B:6A:69:8B:90:8F:89:8F:8E:8D:8C:80:B2:81:80:36:8F:B4:7B:58:BC:4C:B9:A6:43:44:B6:A9:64:BA:55:BA:51:B4:96:8A:5D:65:A2:55:51:5E:40:42:A0:A0:54:AB:58:40:50:87:5C:41:45:53:59:A1:51:B8:A1:A6:B2:56:5F:AC:5D:4B:5E:BE:B6:A3:52:B5:4D:A1:AD:5B:BA:4B:46:A2:43:82:61:81:6B:5F:61:9A:6F:98:61:74:6A:82:7B:83:75:B7:60:69:62:6B:6F:95:71:70:72:71:8F:76:68:6F:66:15:3D:16:ED:1B:19:1C:E6:EF:E8:18:19:EE:16:E5:1B:FA:0E:1F:F9:F2:F4:A4:38:E6:1D:E6:EE:08:F1:E6:EE:3B:27:13:2B:CE:22:3D:23:23:26:DD:2A:DD:CF:CC:C3:D4:34:38:DC:3B:D0:3F:C8:29:37:DA:CE:35:20:DA:CA:27:DE:F1:D1:24:24:27:DF:3C:3C:D7:28:23:29:3D:C6:34:DA:24:20:CF:3B:35:CD:C3:C3:D0:3A:D2:29:28:C1:FE:FB:F9:0E:F7:03:FB:12:06:FF:FD:06:05:29:E0:0A:FA:15:E6:F8:E1:EF:15:E7:16:EA:E3:3A:E7:13:E3:1B:6C:89:60:9A:94:71:8C:97:B0:9B:7F:66:97:62:53:A8:77:AC:59:70:41:65:A1:74:B1:88:83:83:83:79:7B:90:B8:41:56:41:B0:94:BD:90:BE:B2:B7:51:B9:B6:59:F7:48:B1:A2:AE:B9:4B:AD:BF:A6:49:4C:A0:BE:5B:5C:AA:58:50:42:57:A7:B4:5D:7F:AF:4E:5C:B5:5A:AB:4A:8A:BB:6F:69:41:58:48:5D:A1:9C:BC:AC:9E:47:B9:4D:A9:8D:82:79:87:8A:69:69:7C:7D:71:72:75:70:8C:72:98:6F:66:93:6D:77:86:78:70:80:66:9E:72:8A:6E:8F:94:EE:E8:04:12:E7:1D:05:EA:F5:E7:1C:EE:11:15:E0:FA:F5:09:08:F3:1B:F5:F9:04:02:10:F5:F5:F8:FC:0D:EA:36:35:30:C7:2A:E0:2C:8D:33:CD:C2:C3:37:1B:CB:23:C6:24:33:02:35:D4:D5:C6:06:2E:02:DE:D2:2D:D7:FF:C6:0F:D6:D9:39:CC:2C:D3:36:D4:3C:C6:32:F2:2F:DA:'), ('2', 10, 39, '50:57:44:5F:48:53:31:3A:01:4D:46:4B:1B:D1:82:14:4B:FF:52:20:76:D1:D1:4A:2D:33:C2:AF:AB:43:CE:D9:0C:19:16:1E:E1:25:02:49:'), ('3', 0, 39, 'fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b:52:7A:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:8B:D2:05:0D:58:4D:28:52:5E:62:6D:84:07:06:45:04:3B:3B:23:31:38:34:2D:34:2A:2C:2A:32:31:27:2D:38:3C:27:3D:3A:DF:62:AD:5B:EF:7F:F7:A0:85:1D:30:3D:FA:C3:FF:C4:C5:C1:F5:FD:21:9A:5C:58:82:18:33:5F:CB:F6:D4:D2:CE:C4:C1:D0:C1:C6:C1:DC:C2:DC:C6:C3:FE:FB:F2:F1:F1:EE:FE:F2:F4:F7:FA:F6:EB:F7:EB:F1:E2:CB:F8:EA:EB:F3:F6:EF:E3:F1:FB:EF:F8:F0:F0:C4:82:91:9F:B9:8D:9A:83:9E:8B:B1:B5:B0:80:85:8A:B6:9D:87:A8:90:87:8A:8F:8B:83:82:81:80:87:86:85:84:BB:BA:B9:B8:BF:BE:BD:BC:B3:B2:B1:B0:C8:D5:EB:30:F6:E4:FD:95:F3:EA:04:E2:10:9C:E0:2A:C4:8D:91:1B:EC:0D:3C:20:75:D1:2E:CF:34:CD:60:26:D7:6C:3E:2F:DD:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:F7:FC:07:FE:03:F1:C1:F9:28:CD:01:DF:E5:32:D0:5D:A0:CE:5E:CA:CA:C8:CC:CE:6F:CC:80:9B:8D:9C:4D:D9:C6:4F:D9:2D:D6:0A:09:08:0F:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:B7:B6:B5:CC:AB:A2:A1:20:AF:BE:DD:BC:D3:A2:31:58:B6:3E:A5:CC:3B:7A:D1:A1:4F:06:5D:2C:D3:A2:59:A8:BD:D4:D7:56:1E:CA:C9:C8:CF:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:08:09:0A:0B:14:15:16:17:10:11:12:13:1C:1D:1E:1F:18:19:1A:1B:64:65:66:93:9F:9E:9D:6C:6C:6D:AE:90:97:96:95:6A:74:75:8A:88:CF:8B:4D:73:7C:BD:81:80:D3:86:7D:7B:44:B9:B9:F8:BA:3E:42:43:8C:B2:B1:B0:B7:4A:4A:4B:A9:AE:A9:A8:2F:50:52:83:E3:A2:A1:A0:4F:59:5A:A6:5F:5A:59:58:A0:A1:62:5C:53:52:51:90:A8:A9:57:54:5B:4A:49:B4:B0:71:4D:4C:43:42:81:BF:B8:49:45:44:7B:7A:85:87:D0:7E:7D:7C:73:72:8E:8F:71:76:75:74:6B:9A:96:C7:6F:6E:6D:6C:63:9D:9E:62:67:66:65:64:DB:E5:26:18:1F:1E:1D:1C:EF:ED:10:10:17:16:15:D4:F4:B5:09:08:0F:0E:0D:F0:FC:0C:01:04:07:06:C5:FB:84:3A:79:38:3F:3E:C1:C3:38:32:35:90:35:C6:fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b:D2:D3:DC:C9:8B:DE:D8:D9:DA:DB:24:25:22:27:20:21:22:23:2C:2D:2E:2F:28:D6:D5:CC:D3:CA:C9:C8:2B:54:15:29:2F:0E:F7:31:5E:0E:23:DD:0C:1C:07:0E:B2:09:35:0A:BA:FD:F5:E5:CD:DA:E0:2F:FC:8B:C9:BC:EF:EE:ED:EC:E3:E2:E1:E0:E7:E6:E5:E4:9B:9A:99:98:9F:9E:9D:9C:93:92:91:90:97:96:95:94:8B:8A:89:88:8F:8E:8D:8C:83:82:81:80:87:86:85:84:BB:BA:B9:B8:BF:BE:BD:BC:B3:B2:B1:B0:B7:B6:B5:B4:AB:AA:A9:A8:90:AD:57:50:90:AF:57:50:A8:AF:4D:50:4B:5F:AD:B0:4B:50:AD:B0:4F:4E:4D:4C:43:42:41:40:27:26:25:24:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:17:16:15:14:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:47:46:45:44:5B:5A:59:58:5F:5E:5D:5C:53:52:51:50:37:36:35:34:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:E7:E6:E5:E4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:D7:D6:D5:D4:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:E4:D7:D4:39:DE:2C:DD:21:23:21:D5:0F:2C:D4:2F:CC:DF:33:34:DA:2A:DF:2A:DD:2F:C1:CE:2F:D2:D6:D2:35:DF:CD:C0:3E:CD:3A:C3:C7:2D:35:20:C0:C1:C7:31:28:07:06:0A:FF:F1:05:FB:06:E4:FC:F3:F6:D2:EC:08:18:18:E4:EE:E9:FA:E4:EF:E4:1E:06:EB:E3:19:E1:0A:E8:6E:99:6A:95:9E:72:62:94:6E:9A:6C:8E:9D:95:60:68:66:8B:75:70:6A:8C:78:98:64:C8:4A:8F:9E:7F:9F:5D:8D:9C:41:90:AB:40:55:A9:A6:4D:BF:49:A1:41:49:A3:BC:B5:44:52:53:44:42:BD:AB:54:4E:7B:BF:5D:A9:B9:A6:A0:51:AA:A1:A0:A6:88:A0:AE:A0:59:AB:B1:44:5C:BE:45:41:BD:B6:B1:AA:49:BC:A9:BF:F0:67:46:59:43:66:A5:AD:81:7E:6A:8C:98:52:62:8D:70:8D:50:87:7A:8C:61:69:7E:82:94:90:9D:4B:90:69:98:6B:72:9D:92:FD:E6:F2:FD:2F:08:F6:EC:F8:16:1A:E4:06:14:17:11:0E:03:00:D3:07:FB:03:0C:08:EE:F3:0C:C4:2A:DA:25:D2:39:E3:19:D8:CA:C9:EA:EF:28:3E:16:22:14:D0:32:01:D5:F5:D9:D7:DD:F0:35:F7:20:CF:0F:FD:25:EC:D9:F2:D9:22:3E:36:00:29:22:34:DA:CB:DD:fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b:CF:2B:35:C0:D0:CE:CE:1F:E3:C4:CD:2A:07:F2:F8:EA:EE:ED:F3:08:03:09:ED:DC:00:01:F3:F4:17:E1:00:07:DC:1C:0A:17:1F:F0:19:E4:C4:1A:3D:1F:76:99:6B:94:9F:6E:6B:96:98:80:91:95:BF:8B:6A:69:8B:90:8F:89:8F:8E:8D:8C:80:B2:81:80:36:8F:B4:7B:58:BC:4C:B9:A6:43:44:B6:A9:64:BA:55:BA:51:B4:96:8A:5D:65:A2:55:51:5E:40:42:A0:A0:54:AB:58:40:50:87:5C:41:45:53:59:A1:51:B8:A1:A6:B2:56:5F:AC:5D:4B:5E:BE:B6:A3:52:B5:4D:A1:AD:5B:BA:4B:46:A2:43:82:61:81:6B:5F:61:9A:6F:98:61:74:6A:82:7B:83:75:B7:60:69:62:6B:6F:95:71:70:72:71:8F:76:6fc00:e968:6179::de52:7100:19:1C:E6:EF:E8:18:19:EE:16:E5:1B:FA:0E:1F:F9:F2:F4:A4:38:E6:1D:E6:EE:08:F1:E6:EE:3B:27:13:2B:CE:22:3D:23:23:26:DD:2A:DD:CF:CC:C3:D4:34:38:DC:3B:D0:3F:C8:29:37:DA:CE:35:20:DA:CA:27:DE:F1:D1:24:24:27:DF:3C:3C:D7:28:23:29:3D:C6:34:DA:24:20:CF:3B:35:CD:C3:C3:D0:3A:D2:29:28:C1:FE:FB:F9:0E:F7:03:FB:12:06:FF:FD:06:05:29:E0:0A:FA:15:E6:F8:E1:EF:15:E7:16:EA:E3:3A:E7:13:E3:1B:6C:89:60:9A:94:71:8C:97:B0:9B:7F:66:97:62:53:A8:77:AC:59:70:41:65:A1:74:B1:88:83:83:83:79:7B:90:B8:41:56:41:B0:94:BD:90:BE:B2:B7:51:B9:B6:59:F7:48:B1:A2:AE:B9:4B:AD:BF:A6:49:4C:A0:BE:5B:5C:AA:58:50:42:57:A7:B4:5D:7F:AF:4E:5C:B5:5A:AB:4A:8A:BB:6F:69:41:58:48:5D:A1:9C:BC:AC:9E:47:B9:4D:A9:8D:82:79:87:8A:69:69:7C:7D:71:72:75:70:8C:72:98:6F:66:93:6D:77:86:78:70:80:66:9E:72:8A:6E:8F:94:EE:E8:04:12:E7:1D:05:EA:F5:E7:1C:EE:11:15:E0:FA:F5:09:08:F3:1B:F5:F9:04:02:10:F5:F5:F8:FC:0D:EA:36:35:30:C7:2A:E0:2C:8D:33:CD:C2:C3:37:1B:CB:23:C6:24:33:02:35:D4:D5:C6:06:2E:02:DE:D2:2D:D7:FF:C6:0F:D6:D9:39:CC:2C:D3:36:D4:3C:C6:32:F2:2F:DA:'), ('3', 10, 39, '50:57:44:5F:48:53:31:3A:01:4D:46:4B:1B:D1:82:14:4B:FF:52:20:76:D1:D1:4A:2D:33:C2:AF:AB:43:CE:D9:0C:19:16:1E:E1:25:02:49:'), ('4', 0, 39, 'fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b:52:7A:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:8B:D5:BF:0B:16:37:2C:5D:5A:5E:75:7C:60:86:CA:07:36:34:39:39:2B:3C:38:3F:2A:3E:3E:22:27:32:32:3E:23:2C:32:34:0D:BF:B2:F0:F7:99:76:A0:9B:41:39:3D:FF:C6:C1:F9:FC:C6:C7:F5:28:06:6B:FA:FB:C8:75:1B:42:CB:C7:C9:DE:DC:D9:DF:C6:D1:CE:C5:CA:CE:D1:C5:F6:F9:E4:E6:F1:F8:EA:F3:F4:E8:F3:E4:FA:F8:ED:FB:EA:EF:FA:E6:EB:F4:E9:ED:E3:EF:EE:E7:F4:F7:F3:E8:95:8E:96:88:88:95:84:87:8D:8D:86:96:9C:B6:96:84:83:82:8C:9B:9D:9F:99:94:93:9D:93:AC:C7:BE:C5:AC:FA:EE:BC:A2:27:5D:76:AC:FF:75:81:65:E8:27:CB:F1:34:0A:E7:19:27:93:3B:97:30:D5:22:33:FD:2E:2A:33:FD:1E:FA:0E:EB:02:FB:1F:EF:03:67:62:3A:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:07:04:38:E1:31:F4:C2:10:D8:25:5A:DF:AB:E2:EC:E3:F3:C6:C6:C4:96:4D:DA:A9:97:DE:5A:DA:D5:70:98:92:BA:16:15:14:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:97:EE:DD:F4:4B:FA:E1:C8:07:0E:4D:EC:03:7A:E1:F0:EF:96:9C:E5:03:7A:F9:08:3F:86:3D:1C:5B:76:64:E5:BB:D6:D5:D4:CB:CA:C9:C8:CF:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:08:09:0A:0B:14:15:16:17:10:11:12:13:1C:1D:1E:1F:18:19:1A:1B:64:65:66:B7:9F:9E:9D:5C:6C:6D:6E:90:97:96:95:68:74:75:86:88:8F:8E:0D:73:7C:7D:81:80:87:86:7D:7B:44:B5:B9:B8:BF:BE:42:43:4C:B2:B1:B0:B7:46:4A:4B:A4:AA:A9:A8:AF:50:52:53:A5:88:A1:A0:47:59:5A:BB:F2:58:59:58:A3:A1:A2:CC:79:52:51:B0:A8:A9:5A:70:4B:4A:49:B4:B0:B1:67:4D:43:42:81:BF:B8:E9:EF:44:7B:7A:85:87:80:54:7D:7C:73:B2:8E:8F:D8:74:F5:74:6B:96:96:97:6C:6E:65:6C:B3:9D:9E:4F:67:CE:65:64:E7:E5:E6:1A:9F:14:1D:F8:EC:ED:2E:10:BF:16:01:EA:F4:F5:0A:08:0F:0E:0D:F3:FC:FD:01:00:07:06:F5:FB:C4:35:39:38:3F:3E:C2:C3:CC:1D:38:30:37:C9:CA:CB:D4:80:83:82:D1:D1:D2:D3:DC:DD:DE:DF:D8:D9:DA:DB:24:25:26:27:20:21:22:23:2C:2D:2E:2F:28:A7:4B:CC:D3:CA:C9:C8:C9:67:2E:0E:06:51:CA:77:7A:22:C7:1D:D9:04:02:08:D4:1A:EB:F8:E8:02:F8:B2:C7:CE:D5:F8:FD:B3:C8:8E:EF:2E:EC:EC:E3:1A:E0:E0:3B:19:E4:E4:47:65:9E:98:43:E1:9A:9C:53:ED:56:91:57:A9:55:95:4B:B3:49:89:8F:8E:8D:8C:83:82:81:80:84:BE:82:84:C8:C5:B6:B8:4C:C1:B2:BC:4D:CD:BE:B0:59:49:B2:B4:25:55:A8:A8:6F:53:AA:AC:63:5D:A6:A0:5F:59:B8:A4:A0:B5:44:58:A4:BE:40:5C:AC:AC:AC:AC:A4:A4:A4:A4:BC:BC:BC:BC:A4:A4:A4:A4:AC:AC:AC:AC:A4:A4:A4:A4:9C:9C:9C:9C:E4:E4:E4:E4:EC:EC:EC:EC:E4:E4:E4:E4:FC:FC:FC:FC:E4:E4:E4:E4:EC:EC:EC:EC:E4:E4:E4:E4:9C:9C:9C:9C:A4:A4:A4:A4:AC:AC:AC:AC:A4:A4:A4:A4:BC:BC:BC:BC:A4:A4:A4:A4:AC:AC:AC:AC:A4:A4:A4:A4:9C:9C:9C:9C:64:64:64:64:6C:6C:6C:6C:64:64:64:64:E4:D7:D4:39:DE:2C:DD:21:23:21:D5:0F:2C:D4:2F:CC:DF:33:34:DA:2A:DF:2A:DD:2F:C1:CE:2F:D2:D6:D2:35:DF:CD:C0:3E:CD:3A:C3:C7:2D:35:20:C0:C1:C7:31:28:07:06:0A:FF:F1:05:FB:06:E4:FC:F3:F6:D2:EC:08:18:18:E4:EE:E9:FA:E4:EF:E4:1E:06:EB:E3:19:E1:0A:E8:6E:99:6A:95:9E:72:62:94:6E:9A:6C:8E:9D:95:60:68:66:8B:75:70:6A:8C:78:98:64:C8:4A:8F:9E:7F:9F:5D:8D:9C:41:90:AB:40:55:A9:A6:4D:BF:49:A1:41:49:A3:BC:B5:44:52:53:44:42:BD:AB:54:4E:7B:BF:5D:A9:B9:A6:A0:51:AA:A1:A0:A6:88:A0:AE:A0:59:AB:B1:44:5C:BE:45:41:BD:B6:B1:AA:49:BC:A9:BF:F0:67:46:59:43:66:A5:AD:81:7E:6A:8C:98:52:62:8D:70:8D:50:87:7A:8C:61:69:7E:82:94:90:9D:4B:90:69:98:6B:72:9D:92:FD:E6:F2:FD:2F:08:F6:EC:F8:16:1A:E4:06:14:17:11:0E:03:00:D3:07:FB:03:0C:08:EE:F3:0C:C4:2A:DA:25:D2:39:E3:19:D8:CA:C9:EA:EF:28:3E:16:22:14:D0:32:01:D5:F5:D9:D7:DD:F0:35:F7:20:CF:0F:FD:25:EC:D9:F2:D9:22:3E:36:00:29:22:34:DA:CB:DD:04:D4:3E:C7:EF:38:ED:37:CF:2B:35:C0:D0:CE:CE:1F:E3:C4:CD:2A:07:F2:F8:EA:EE:ED:F3:08:03:09:ED:DC:00:01:F3:F4:17:E1:00:07:DC:1C:0A:17:1F:F0:19:E4:C4:1A:3D:1F:76:99:6B:94:9F:6E:6B:96:98:80:91:95:BF:8B:6A:69:8B:90:8F:89:8F:8E:8D:8C:80:B2:81:80:36:8F:B4:7B:58:BC:4C:B9:A6:43:44:B6:A9:64:BA:55:BA:51:B4:96:8A:5D:65:A2:55:51:5E:40:42:A0:A0:54:AB:58:40:50:87:5C:41:45:53:59:A1:51:B8:A1:A6:B2:56:5F:AC:5D:4B:5E:BE:B6:A3:52:B5:4D:A1:AD:5B:BA:4B:46:A2:43:82:61:81:6B:5F:61:9A:6F:98:61:74:6A:82:7B:83:75:B7:60:69:62:6B:6F:95:71:70:72:71:8F:76:68:6F:66:15:3D:16:ED:1B:19:1C:E6:EF:E8:18:19:EE:16:E5:1B:FA:0E:1F:F9:F2:F4:A4:38:E6:1D:E6:EE:08:F1:E6:EE:3B:27:13:2B:CE:22:3D:23:23:26:DD:2A:DD:CF:CC:C3:D4:34:38:DC:3B:D0:3F:C8:29:37:DA:CE:35:20:DA:CA:27:DE:F1:D1:24:24:27:DF:3C:3C:D7:28:23:29:3D:C6:34:DA:24:20:CF:3B:35:CD:C3:C3:D0:3A:D2:29:28:C1:FE:FB:F9:0E:F7:03:FB:12:06:FF:FD:06:05:29:E0:0A:FA:15:E6:F8:E1:EF:15:E7:16:EA:E3:3A:E7:13:E3:1B:6C:89:60:9A:94:71:8C:97:B0:9B:7F:66:97:62:53:A8:77:AC:59:70:41:65:A1:74:B1:88:83:83:83:79:7B:90:B8:41:56:41:B0:94:BD:90:BE:B2:B7:51:B9:B6:59:F7:48:B1:A2:AE:B9:4B:AD:BF:A6:49:4C:A0:BE:5B:5C:AA:58:50:42:57:A7:B4:5D:7F:AF:4E:5C:B5:5A:AB:4A:8A:BB:6F:69:41:58:48:5D:A1:9C:BC:AC:9E:47:B9:4D:A9:8D:82:79:87:8A:69:69:7C:7D:71:72:75:70:8C:72:98:6F:66:93:6D:77:86:78:70:80:66:9E:72:8A:6E:8F:94:EE:E8:04:12:E7:1D:05:EA:F5:E7:1C:EE:11:15:E0:FA:F5:09:08:F3:1B:F5:F9:04:02:10:F5:F5:F8:FC:0D:EA:36:35:30:C7:2A:E0:2C:8D:33:CD:C2:C3:37:1B:CB:23:C6:24:33:02:35:D4:D5:C6:06:2E:02:DE:D2:2D:D7:FF:C6:0F:D6:D9:39:CC:2C:D3:36:D4:3C:C6:32:F2:2F:DA:'), ('4', 10, 39, '50:57:44:5F:48:53:31:3A:01:4D:46:4B:1B:D1:82:14:4B:FF:52:20:76:D1:D1:4A:2D:33:C2:AF:AB:43:CE:D9:0C:19:16:1E:E1:25:02:49:'), ('5', 0, 39, '1E:14:0B:17:13:12:1B:0C:52:7A:51:50:57:56:55:54:4B:4A:49:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:77:76:75:74:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:67:66:65:64:1B:1A:19:18:1F:1E:1D:1C:13:12:11:10:17:16:15:14:8B:CD:28:0B:66:33:2A:59:5B:5F:85:6C:8E:62:CF:07:2C:35:39:3E:3A:25:37:2E:13:2D:32:24:36:2F:24:3D:3D:27:0B:20:9C:F2:11:EF:49:4C:65:E3:A7:04:3D:3D:C4:C6:C2:C7:C8:C6:F4:C3:DC:7B:53:F3:7C:6A:B8:78:04:38:D6:CC:C1:C1:DD:CB:C6:D2:D4:DF:D6:C2:C5:D3:E0:F4:EE:EC:DF:F7:F2:FF:F4:EC:FF:E7:E8:F2:E5:F0:E3:E5:FC:F7:FB:CD:F9:EC:F6:E9:ED:E1:FA:E4:C1:C1:85:BC:97:94:8C:97:88:88:82:89:98:91:8C:9A:95:9F:9F:9A:86:8B:98:89:9C:82:91:A6:A0:9E:B6:B7:AB:CB:F0:A6:0E:9C:96:44:8E:52:5D:A6:78:50:CE:EC:E6:16:09:00:36:1C:1D:C3:C1:2C:DB:DD:25:35:3C:3B:2F:DC:D3:D7:0E:D4:9B:EF:F6:2C:DC:06:D9:C5:1B:82:0E:26:02:30:31:48:4F:4E:4D:4C:43:42:41:40:47:46:45:44:7B:7A:79:78:7F:7E:7D:7C:73:72:71:70:F6:F5:33:19:EA:E2:39:05:E8:C3:2D:DB:D8:AA:11:E6:EE:C6:D6:B7:80:B8:2F:6E:BC:25:54:92:1D:22:0D:6D:98:B4:A0:91:27:2B:1C:08:0F:0E:0D:0C:03:02:01:00:07:06:05:04:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:E7:F6:85:E4:EB:EA:C9:F0:E7:F6:85:44:42:52:E9:70:66:2E:4D:A5:33:BA:F9:09:A7:2E:35:04:5B:7A:59:98:14:BD:1E:1E:EE:C6:C5:C8:CF:CE:CD:CC:C3:C2:C1:C0:C7:C6:C5:C4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:08:09:FA:5C:EB:14:16:17:10:51:6D:E6:62:1D:1E:1F:18:E4:4D:E4:6F:65:66:67:34:1C:97:9C:6D:6D:6E:2F:9D:3E:95:44:74:75:76:20:8F:8E:8D:78:7C:7D:9E:80:87:86:85:7B:44:45:BA:B8:BF:BE:59:43:4C:BD:B1:B0:B7:B6:4A:4B:54:AA:A9:A8:AF:6E:52:53:AC:A2:A1:A0:E7:5E:5A:5B:59:5A:19:58:9F:A1:A2:63:53:52:51:50:83:A9:AA:57:4B:4A:49:48:B3:B1:72:4C:56:42:41:80:B8:B9:12:14:7A:7A:39:85:80:01:78:69:73:72:B0:8F:88:21:75:74:6B:6A:95:97:90:6E:6D:6C:6A:B7:9E:9F:58:66:65:74:4B:E7:E6:E7:48:1E:1D:1C:C6:ED:EE:6F:12:16:15:D4:F4:F5:F6:5F:0E:0E:A9:F2:FC:FD:FE:22:07:46:FC:FB:C4:C5:86:39:3F:DA:C2:C3:CC:CD:1A:60:A6:C9:CA:CB:D4:D5:2A:82:D1:D1:D2:D3:DC:DD:DE:DF:D8:D9:DA:DB:24:25:26:27:20:21:22:23:2C:2D:2E:2F:28:4D:5B:CC:D3:CA:C9:C8:DD:76:25:05:22:5F:3B:76:04:3B:D0:11:EE:00:00:17:D9:31:FE:17:E5:11:02:CA:EE:D9:D0:F1:C6:80:C1:96:EC:EE:ED:EC:1D:E5:E1:E0:19:E9:E5:E4:65:65:1E:9B:63:60:6A:9F:8F:6E:6E:93:97:4A:EA:94:FB:56:B6:88:73:8E:B5:8C:7F:82:B9:80:7B:87:82:84:7B:47:BE:B8:7F:41:BA:BC:4B:4D:AC:B0:4C:59:A8:B4:50:4A:B4:A8:90:AD:57:50:90:AF:57:50:A8:AF:4D:50:4B:5F:AD:B0:4B:50:AD:B0:4F:4E:4D:4C:43:42:41:40:27:26:25:24:3B:3A:39:38:3F:3E:3D:3C:33:32:31:30:17:16:15:14:6B:6A:69:68:6F:6E:6D:6C:63:62:61:60:47:46:45:44:5B:5A:59:58:5F:5E:5D:5C:53:52:51:50:37:36:35:34:0B:0A:09:08:0F:0E:0D:0C:03:02:01:00:E7:E6:E5:E4:FB:FA:F9:F8:FF:FE:FD:FC:F3:F2:F1:F0:D7:D6:D5:D4:2B:2A:29:28:2F:2E:2D:2C:23:22:21:20:E4:D7:D4:39:DE:2C:DD:21:23:21:D5:0F:2C:D4:2F:CC:DF:33:34:DA:2A:DF:2A:DD:2F:C1:CE:2F:D2:D6:D2:35:DF:CD:C0:3E:CD:3A:C3:C7:2D:35:20:C0:C1:C7:31:28:07:06:0A:FF:F1:05:FB:06:E4:FC:F3:F6:D2:EC:08:18:18:E4:EE:E9:FA:E4:EF:E4:1E:06:EB:E3:19:E1:0A:E8:6E:99:6A:95:9E:72:62:94:6E:9A:6C:8E:9D:95:60:68:66:8B:75:70:6A:8C:78:98:64:C8:4A:8F:9E:7F:9F:5D:8D:9C:41:90:AB:40:55:A9:A6:4D:BF:49:A1:41:49:A3:BC:B5:44:52:53:44:42:BD:AB:54:4E:7B:BF:5D:A9:B9:A6:A0:51:AA:A1:A0:A6:88:A0:AE:A0:59:AB:B1:44:5C:BE:45:41:BD:B6:B1:AA:49:BC:A9:BF:F0:67:46:59:43:66:A5:AD:81:7E:6A:8C:98:52:62:8D:70:8D:50:87:7A:8C:61:69:7E:82:94:90:9D:4B:90:69:98:6B:72:9D:92:FD:E6:F2:FD:2F:08:F6:EC:F8:16:1A:E4:06:14:17:11:0E:03:00:D3:07:FB:03:0C:08:EE:fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b:E3:19:D8:CA:C9:EA:EF:28:3E:16:22:14:D0:32:01:D5:F5:D9:D7:DD:F0:35:F7:20:CF:0F:FD:25:EC:D9:F2:D9:22:3E:36:00:29:22:34:DA:CB:DD:04:D4:3E:C7:EF:38:ED:37:CF:2B:35:C0:D0:CE:CE:1F:E3:C4:CD:2A:07:F2:F8:EA:EE:ED:F3:08:03:09:ED:DC:00:01:F3:F4:17:E1:00:07:DC:1C:0A:17:1F:F0:19:E4:C4:1A:3D:1F:76:99:6B:94:9F:6E:6B:96:98:80:91:95:BF:8B:6A:69:8B:90:8F:89:8F:8E:8D:8C:80:B2:81:80:36:8F:B4:7B:58:BC:4C:B9:A6:43:44:B6:A9:64:BA:55:BA:51:B4:96:8A:5D:65:A2:55:51:5E:40:42:A0:A0:54:AB:58:40:50:87:5C:41:45:53:59:A1:51:B8:A1:A6:B2:56:5F:AC:5D:4B:5E:BE:B6:A3:52:B5:4D:A1:AD:5B:BA:4B:46:A2:43:82:61:81:6B:5F:61:9A:6F:98:61:74:6A:82:7B:83:75:B7:60:69:62:6B:6F:95:71:70:72:71:8F:76:68:6F:66:15:3D:16:ED:1B:19:1C:E6:EF:E8:18:19:EE:16:E5:1B:FA:0E:1F:F9:F2:F4:A4:38:E6:1D:E6:EE:08:F1:E6:EE:3B:27:13:2B:CE:22:3D:23:23:26:DD:2A:DD:CF:CC:C3:D4:34:38:DC:3B:D0:3F:C8:29:37:DA:CE:35:20:DA:CA:27:DE:F1:D1:24:24:27:DF:3C:3C:D7:28:23:29:3D:C6:34:DA:24:20:CF:3B:35:CD:C3:C3:D0:3A:D2:29:28:C1:FE:FB:F9:0E:F7:03:FB:12:06:FF:FD:06:05:29:E0:0A:FA:15:E6:F8:E1:EF:15:E7:16:EA:E3:3A:E7:13:E3:1B:6C:89:60:9fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b:66:97:62:53:A8:77:AC:59:70:41:65:A1:74:B1:88:83:83:83:79:7B:90:B8:41:56:41:B0:94:BD:90:BE:B2:B7:51:B9:B6:59:F7:48:B1:A2:AE:B9:4B:AD:BF:A6:49:4C:A0:BE:5B:5C:AA:58:50:42:57:A7:B4:5D:7F:AF:4E:5C:B5:5A:AB:4A:8A:BB:6F:69:41:58:48:5D:A1:9C:BC:AC:9E:47:B9:4D:A9:8D:82:79:87:8A:69:69:7C:7D:71:72:75:70:8C:72:98:6F:66:93:6D:77:86:78:70:80:66:9E:72:8A:6E:8F:94:EE:E8:04:12:E7:1D:05:EA:F5:E7:1C:EE:11:15:E0:FA:F5:09:08:F3:1B:F5:F9:04:02:10:F5:F5:F8:FC:0D:EA:36:35:30:C7:2A:E0:2C:8D:33:CD:C2:C3:37:1B:CB:23:C6:24:33:02:35:fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b:2D:D7:FF:C6:0F:D6:D9:39:CC:2C:D3:36:D4:3C:C6:32:F2:2F:DA:'), ('5', 10, 39, '50:57:44:5F:48:53:31:3A:01:4D:46:4B:1B:D1:82:14:4B:FF:52:20:76:D1:D1:4A:2D:33:C2:AF:AB:43:CE:D9:0C:19:16:1E:E1:25:02:49:'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_user` -- CREATE TABLE `tb_user` ( `pin` text NOT NULL, `nama` text NOT NULL, `pwd` text NOT NULL, `rfid` text NOT NULL, `privilege` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_user` -- INSERT INTO `tb_user` (`pin`, `nama`, `pwd`, `rfid`, `privilege`) VALUES ('1', 'yuswa', '<PASSWORD>', '<PASSWORD>', 0), ('2', 'arbi', '123456', '', 0), ('3', 'timo', '123456', '', 0), ('4', 'kevin', '123456', '', 0), ('5', 'okto', '123456', '', 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `tb_device` -- ALTER TABLE `tb_device` ADD PRIMARY KEY (`No`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tb_device` -- ALTER TABLE `tb_device` MODIFY `No` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
# python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 0 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 1 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 2 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 3 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 4 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 5 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 6 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 7 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 8 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 9 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 10 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 11 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 12 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 13 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 14 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 15 # python test_unet.py --model_file unet_models.txt --save False --gpu 0 --index 16 python test_unet.py --model_file unet_models.txt --save True --gpu 1 --index 3 # python test_unet.py --model_file unet_models.txt --save False --gpu 1 --index 17 # python test_unet.py --model_file unet_models.txt --save False --gpu 1 --index 18 # python test_unet.py --model_file unet_models.txt --save False --gpu 1 --index 19
#! /usr/bin/env bats load ../environment setup() { test_filter } teardown() { remove_bats_test_dirs } @test "$SUITE: error if argument not a positive integer" { local err_msg='The argument to test_break_after_num_iterations ' err_msg+='must be a positive integer at:' local top_stack_line="/bats-exec-test:[0-9]+ run" run test_break_after_num_iterations assert_failure assert_line_equals 0 "$err_msg" assert_line_matches 1 "$top_stack_line" run test_break_after_num_iterations 0 assert_failure assert_line_equals 0 "$err_msg" assert_line_matches 1 "$top_stack_line" run test_break_after_num_iterations -1 assert_failure assert_line_equals 0 "$err_msg" assert_line_matches 1 "$top_stack_line" run test_break_after_num_iterations 2foobar7 assert_failure assert_line_equals 0 "$err_msg" assert_line_matches 1 "$top_stack_line" } @test "$SUITE: break after specified number of iterations" { create_bats_test_script 'test-break-after-n' \ 'for ((i=0; i != 5; ++i)); do' \ ' test_break_after_num_iterations "$1"' \ 'done' TEST_DEBUG='true' run "$BATS_TEST_ROOTDIR/test-break-after-n" 5 assert_failure 'Breaking after iteration 5 at:' \ " $BATS_TEST_ROOTDIR/test-break-after-n:3 main" } @test "$SUITE: does nothing if count not reached" { create_bats_test_script 'test-break-after-n' \ 'for ((i=0; i != 5; ++i)); do' \ ' test_break_after_num_iterations "$1"' \ 'done' TEST_DEBUG='true' run "$BATS_TEST_ROOTDIR/test-break-after-n" 6 assert_success '' } @test "$SUITE: does nothing if TEST_DEBUG is null" { create_bats_test_script 'test-break-after-n' \ 'for ((i=0; i != 5; ++i)); do' \ ' test_break_after_num_iterations "$1"' \ 'done' TEST_DEBUG= run "$BATS_TEST_ROOTDIR/test-break-after-n" 5 assert_success '' } @test "$SUITE: break after recursive calls" { create_bats_test_script 'test-break-after-n' \ 'recursive_func() {' \ ' test_break_after_num_iterations "$N"' \ ' recursive_func' \ '}' \ 'N="$1"' \ 'recursive_func' TEST_DEBUG='true' run "$BATS_TEST_ROOTDIR/test-break-after-n" 3 assert_failure 'Breaking after iteration 3 at:' \ " $BATS_TEST_ROOTDIR/test-break-after-n:3 recursive_func" \ " $BATS_TEST_ROOTDIR/test-break-after-n:4 recursive_func" \ " $BATS_TEST_ROOTDIR/test-break-after-n:4 recursive_func" \ " $BATS_TEST_ROOTDIR/test-break-after-n:7 main" } @test "$SUITE: counts isolated between lines in same file" { create_bats_test_script 'test-break-after-n' \ 'for ((i=0; i != 5; ++i)); do' \ ' test_break_after_num_iterations "$(($1+1))"' \ ' test_break_after_num_iterations "$1"' \ 'done' TEST_DEBUG='true' run "$BATS_TEST_ROOTDIR/test-break-after-n" 5 assert_failure 'Breaking after iteration 5 at:' \ " $BATS_TEST_ROOTDIR/test-break-after-n:4 main" } @test "$SUITE: counts isolated across files" { # Note we're using `$0` instead of `BASH_SOURCE[0]` because of a bug in Bash # versions before 4.4 wherein `BASH_SOURCE` isn't set for the main script. create_bats_test_script 'test-break-after-n' \ 'for ((i=0; i != 5; ++i)); do' \ ' . "${0%/*}/foo"' \ ' . "${0%/*}/bar"' \ 'done' create_bats_test_script 'foo' \ ' test_break_after_num_iterations "$(($1+1))"' create_bats_test_script 'bar' \ ' test_break_after_num_iterations "$1"' TEST_DEBUG='true' run "$BATS_TEST_ROOTDIR/test-break-after-n" 5 assert_failure 'Breaking after iteration 5 at:' \ " $BATS_TEST_ROOTDIR/bar:2 source" \ " $BATS_TEST_ROOTDIR/test-break-after-n:4 main" } @test "$SUITE: prints values of variables on break" { create_bats_test_script 'test-break-after-n' \ 'declare stuff=("foo" "bar" "baz")' \ 'for ((i=0; i != 5; ++i)); do' \ ' test_break_after_num_iterations "$@" "stuff[*]" i' \ 'done' TEST_DEBUG='true' run "$BATS_TEST_ROOTDIR/test-break-after-n" 5 assert_failure 'Breaking after iteration 5 at:' \ " $BATS_TEST_ROOTDIR/test-break-after-n:4 main" \ 'stuff[*]: foo bar baz' \ 'i: 4' }
<reponame>Kun-a-Kun/Algorithms-Fourth-Edition-Exercises package Chapter1_4High; import java.util.Arrays; //Exercise 1.4.22 public class FibonacciSearch { //仅用加减实现的二分查找,只能使用加法和减法以及常数的额外内存空间 private final int FI_SIZE = 20; public int fbSearch(int[] array, int target) { if (array == null || array.length == 0) { return -1; } else { int length = array.length; //制造一个长度为20的斐波那契数列 int[] fb = makeFbArray(FI_SIZE); int k = 0; //找出数组的长度在斐波数列(减1)中的位置,将决定如何拆分,即F(n-2)+F(n-1)=F(n)中,F(n-1)<length<F(n), //这样就可以把数组array根据length拆分成前F(n-2)个元素与后F(n-1)个元素两部分,看目标数在前后哪一个部分里面, //然后递归拆分,模拟二分查找 while (length > fb[k] - 1) { k++; } //构造一个长度为fb[k]-1的新数列 int[] temp = Arrays.copyOf(array, fb[k] - 1); for (int i = length; i < temp.length; i++) { if (i >= length) { temp[i] = array[length - 1]; //用array数组的最后一个元素将temp数组大于length部分的位置填充满,length大小之前的元素都来自array } } int low = 0; int high = array.length - 1; while (low <= high) { int middle = low + fb[k - 1] - 1; if (temp[middle] > target) { high = middle - 1; k = k - 1; //如果目标元素在后面那一段,也就是F(n-1)那一段,原本长度是F(n),k减1就变成 F(n-1)那一段,在此基础上再进行斐波那契数列拆分,变成F(n-2)和F(n-3)两部分 } else if (temp[middle] < target) { low = middle + 1; k = k - 2; //如果目标元素在前面那一段,也就是F(n-2)那一段,原本长度是F(n),k减2变成F(n-2)那一段,在此基础上在进行斐波那契数列拆分,变成F(n-3)和F(n-4)两部分 } else { if (middle <= high) { //若相等则说明mid即为查找到的位置 return middle; } else { //middle的值已经大于high,进入扩展数组的填充部分,即最后一个数就是要找的数 return high; } } } return -1; } } public static int[] makeFbArray(int length) { int[] array = null; if (length > 2) { array = new int[length]; array[0] = 1; array[1] = 1; for (int i = 2; i < length; i++) { array[i] = array[i - 1] + array[i - 2]; } } return array; } public static void main(String[] args) { int[] array = {1, 5, 15, 22, 25, 31, 39, 42, 47, 49, 59, 68, 88, 88, 88, 88, 88}; FibonacciSearch search = new FibonacciSearch(); System.out.println("result: " + search.fbSearch(array, 31)); } }
class PhotographerProfile { constructor(photographer) { this._photographer = photographer } createPhotographerProfile() { const $wrapper = document.querySelector('.photograph-header') const photographerHeader = ` <div class="photograph-profile"> <h1 class="name-user">${this._photographer.name}</h1> <p class="city-user">${this._photographer.city}, ${this._photographer.country}</p> <p class="verbatim-user">${this._photographer.tagline}</p> </div> <button id="contact_button" class="contact-button">Contactez-moi</button> <div class="user-pic"> <img class="user-pic-element" src="assets/photographers/${this._photographer.portrait}" alt="Photo de profil du photographe ${this._photographer.name}"/> </div> <div class="tab-bottom"> <div class="compteur-like"><p class="total-likes">297 081</p> <span class="fas fa-heart heart-bottom" aria-hidden="true"></span></div> <div class="tjm-photographer">${this._photographer.price}€/jour</div> </div> ` $wrapper.innerHTML = photographerHeader return $wrapper } }
<filename>src/main/java/com/tzf/dashboard/modules/share/service/impl/ShareDateInformationServiceImpl.java package com.tzf.dashboard.modules.share.service.impl; import com.tzf.dashboard.modules.share.model.ShareDateInformation; import com.tzf.dashboard.modules.share.mapper.ShareDateInformationMapper; import com.tzf.dashboard.modules.share.service.ShareDateInformationService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; /** * <p> * 日期节点数据 服务实现类 * </p> * * @author wuxuan * @since 2021-12-16 */ @Service public class ShareDateInformationServiceImpl extends ServiceImpl<ShareDateInformationMapper, ShareDateInformation> implements ShareDateInformationService { }
public static String findLongestWord(String str) { String[] arr = str.split("\\s+"); int len = 0; String longestWord = ""; for (String s : arr) { if (s.length() > len) { len = s.length(); longestWord = s; } } return longestWord; }
<gh_stars>1-10 import React from 'react'; import PageCenter from 'components/PageCenter'; import ConnectionError from 'components/ConnectionError'; export default class BasicLayout extends React.Component { render() { return ( <PageCenter> <ConnectionError /> {this.props.children} </PageCenter> ); } }
<reponame>pulsar-chem/BPModule #!/usr/bin/env python3 import os import sys import argparse import traceback # Add the pulsar path thispath = os.path.dirname(os.path.realpath(__file__)) psrpath = os.path.join(os.path.dirname(thispath), "../", "modules") sys.path.insert(0, psrpath) import pulsar as psr def Run(mm): try: out = psr.output.get_global_output() # Load the python modules # supermodule module name key mm.load_module("TestModules", "TestExtLib", "TESTEXTLIB") mm.print(out) mm.sanity_check() b1 = mm.get_module("TESTEXTLIB", 0) b1.run_test() psr.output.print_global_output("\n") psr.output.print_global_output("\nDone testing\n") except Exception as e: psr.output.print_global_output("Caught exception in main handler\n") traceback.print_exc() psr.output.print_global_error("\n") psr.output.print_global_error(str(e)) psr.output.print_global_error("\n") psr.initialize(sys.argv, color = True, debug = True) with psr.ModuleAdministrator() as mm: Run(mm) psr.finalize()
<reponame>JosephOrigho/quizApp<gh_stars>1-10 angular.module('quizApp').factory('Question', function () { var Question = function () { var self = this; this.question = ""; this.choices = { choice1: "", choice2: "", choice3: "", choice4: "" }; this.answer = ""; }; return Question; });
/* Copyright (c) 2001-2011, The HSQL Development Group * 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 the HSQL Development Group 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 HSQL DEVELOPMENT GROUP, HSQLDB.ORG, * 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. */ package org.hsqldb.persist; import java.io.EOFException; import java.io.InputStream; import org.hsqldb.ColumnSchema; import org.hsqldb.Database; import org.hsqldb.HsqlException; import org.hsqldb.HsqlNameManager.HsqlName; import org.hsqldb.Row; import org.hsqldb.Session; import org.hsqldb.Statement; import org.hsqldb.StatementDML; import org.hsqldb.StatementSchema; import org.hsqldb.StatementTypes; import org.hsqldb.Table; import org.hsqldb.error.Error; import org.hsqldb.error.ErrorCode; import org.hsqldb.lib.IntKeyHashMap; import org.hsqldb.lib.StopWatch; import org.hsqldb.map.ValuePool; import org.hsqldb.result.Result; import org.hsqldb.scriptio.ScriptReaderBase; import org.hsqldb.scriptio.ScriptReaderDecode; import org.hsqldb.scriptio.ScriptReaderText; import org.hsqldb.types.Type; /** * Restores the state of a Database instance from an SQL log file. <p> * * If there is an error, processing stops at that line and the message is * logged to the application log. If memory runs out, an exception is thrown. * * @author <NAME> (<EMAIL>) * @version 2.2.7 * @since 1.7.2 */ public class ScriptRunner { public static void runScript(Database database, InputStream inputStream) { Crypto crypto = database.logger.getCrypto(); ScriptReaderBase scr; if (crypto == null) { scr = new ScriptReaderText(database, inputStream); } else { try { scr = new ScriptReaderDecode(database, inputStream, crypto, true); } catch (Throwable e) { database.logger.logSevereEvent("opening log file", e); return; } } runScript(database, scr); } /** * This is used to read the *.log file and manage any necessary * transaction rollback. */ public static void runScript(Database database, String logFilename) { Crypto crypto = database.logger.getCrypto(); ScriptReaderBase scr; try { if (crypto == null) { scr = new ScriptReaderText(database, logFilename, false); } else { scr = new ScriptReaderDecode(database, logFilename, crypto, true); } } catch (Throwable e) { // catch out-of-memory errors and terminate if (e instanceof EOFException) { // end of file - normal end } else { // stop processing on bad script line database.logger.logSevereEvent("opening log file", e); } return; } runScript(database, scr); } private static void runScript(Database database, ScriptReaderBase scr) { IntKeyHashMap sessionMap = new IntKeyHashMap(); Session current = null; int currentId = 0; String statement; int statementType; Statement dummy = new StatementDML(StatementTypes.UPDATE_CURSOR, StatementTypes.X_SQL_DATA_CHANGE, null); String databaseFile = database.getPath(); boolean fullReplay = database.getURLProperties().isPropertyTrue( HsqlDatabaseProperties.hsqldb_full_log_replay); dummy.setCompileTimestamp(Long.MAX_VALUE); database.setReferentialIntegrity(false); try { StopWatch sw = new StopWatch(); while (scr.readLoggedStatement(current)) { int sessionId = scr.getSessionNumber(); if (current == null || currentId != sessionId) { currentId = sessionId; current = (Session) sessionMap.get(currentId); if (current == null) { current = database.getSessionManager().newSessionForLog( database); sessionMap.put(currentId, current); } } if (current.isClosed()) { sessionMap.remove(currentId); continue; } Result result = null; statementType = scr.getStatementType(); switch (statementType) { case ScriptReaderBase.ANY_STATEMENT : statement = scr.getLoggedStatement(); Statement cs; try { cs = current.compileStatement(statement); if (database.getProperties().isVersion18()) { // convert BIT columns in .log to BOOLEAN if (cs.getType() == StatementTypes.CREATE_TABLE) { Table table = (Table) ((StatementSchema) cs) .getArguments()[0]; for (int i = 0; i < table.getColumnCount(); i++) { ColumnSchema column = table.getColumn(i); if (column.getDataType().isBitType()) { column.setType(Type.SQL_BOOLEAN); } } } } result = current.executeCompiledStatement(cs, ValuePool.emptyObjectArray, 0); } catch (Throwable e) { result = Result.newErrorResult(e); } if (result != null && result.isError()) { if (result.getException() != null) { throw result.getException(); } throw Error.error(result); } break; case ScriptReaderBase.COMMIT_STATEMENT : current.commit(false); break; case ScriptReaderBase.INSERT_STATEMENT : { current.sessionContext.currentStatement = dummy; current.beginAction(dummy); Object[] data = scr.getData(); scr.getCurrentTable().insertNoCheckFromLog(current, data); current.endAction(Result.updateOneResult); break; } case ScriptReaderBase.DELETE_STATEMENT : { current.sessionContext.currentStatement = dummy; current.beginAction(dummy); Table table = scr.getCurrentTable(); PersistentStore store = table.getRowStore(current); Object[] data = scr.getData(); Row row = table.getDeleteRowFromLog(current, data); if (row != null) { current.addDeleteAction(table, store, row, null); } current.endAction(Result.updateOneResult); break; } case ScriptReaderBase.SET_SCHEMA_STATEMENT : { HsqlName name = database.schemaManager.findSchemaHsqlName( scr.getCurrentSchema()); current.setCurrentSchemaHsqlName(name); break; } case ScriptReaderBase.SESSION_ID : { break; } } if (current.isClosed()) { sessionMap.remove(currentId); } } } catch (HsqlException e) { // stop processing on bad log line String error = "statement error processing log " + databaseFile + "line: " + scr.getLineNumber(); database.logger.logSevereEvent(error, e); if (fullReplay) { throw Error.error(e, ErrorCode.ERROR_IN_SCRIPT_FILE, error); } } catch (OutOfMemoryError e) { String error = "out of memory processing log" + databaseFile + " line: " + scr.getLineNumber(); // catch out-of-memory errors and terminate database.logger.logSevereEvent(error, e); throw Error.error(ErrorCode.OUT_OF_MEMORY); } catch (Throwable e) { // stop processing on bad script line String error = "statement error processing log " + databaseFile + "line: " + scr.getLineNumber(); database.logger.logSevereEvent(error, e); if (fullReplay) { throw Error.error(e, ErrorCode.ERROR_IN_SCRIPT_FILE, error); } } finally { if (scr != null) { scr.close(); } database.getSessionManager().closeAllSessions(); database.setReferentialIntegrity(true); } } }