repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
jorsea/vertical-ngo
logistic_order_donation_budget/model/sale_order.py
1300
# -*- coding: utf-8 -*- # # # Copyright 2015 Camptocamp SA # Author: Alexandre Fayolle # # This program 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. # # This program 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 this program. If not, see <http://www.gnu.org/licenses/>. # # from openerp import models, api class SaleOrder(models.Model): _inherit = 'sale.order' @api.multi def over_budget(self): self.ensure_one() if self.order_type == 'donation': return False else: return super(SaleOrder, self).over_budget() @api.multi def has_budget_holder(self): self.ensure_one() if self.order_type == 'donation': return True else: return super(SaleOrder, self).has_budget_holder()
agpl-3.0
FullMetal210/milton2
milton-server/src/main/java/io/milton/http/ExistingEntityHandler.java
1310
/* * Copyright 2012 McEvoy Software Ltd. * * This program 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. * This program 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 General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package io.milton.http; import io.milton.resource.Resource; import io.milton.http.exceptions.BadRequestException; import io.milton.http.exceptions.ConflictException; import io.milton.http.exceptions.NotAuthorizedException; import io.milton.http.exceptions.NotFoundException; /** * * @author brad */ public interface ExistingEntityHandler extends ResourceHandler { public void processExistingResource( HttpManager manager, Request request, Response response, Resource resource ) throws NotAuthorizedException, BadRequestException, ConflictException, NotFoundException; }
agpl-3.0
mershon-enterprises/tournament-manager
documentation/Player-ViewPairings.md
584
player-ViewPairings == Purpose -- Display the current players and locations of their individual matches Elements -- * Pairings / Standings * Tap to go to the alternate screen * See- Player-ViewStandings * Tournament Announcement: * Users can view announcements created by the tournament organizer * Players cannot edit the annoucement * Sort By: * Tap to switch between sorting methods * By table - Organize by table number * By Name - Organize by player's last name Diagrams -- ![alt text](wireframes%20%28Fireworks%29/Player-ViewPairings.png)
agpl-3.0
dzc34/Asqatasun
rules/rules-accessiweb2.2/src/test/java/org/asqatasun/rules/accessiweb22/Aw22Rule04012Test.java
3499
/* * Asqatasun - Automated webpage assessment * Copyright (C) 2008-2019 Asqatasun.org * * This program 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. * * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. * * Contact us by mail: asqatasun AT asqatasun DOT org */ package org.asqatasun.rules.accessiweb22; import org.asqatasun.entity.audit.TestSolution; import org.asqatasun.rules.accessiweb22.test.Aw22RuleImplementationTestCase; /** * Unit test class for the implementation of the rule 4.1.2 of the referential Accessiweb 2.2. * * @author jkowalczyk */ public class Aw22Rule04012Test extends Aw22RuleImplementationTestCase { /** * Default constructor */ public Aw22Rule04012Test (String testName){ super(testName); } @Override protected void setUpRuleImplementationClassName() { setRuleImplementationClassName( "org.asqatasun.rules.accessiweb22.Aw22Rule04012"); } @Override protected void setUpWebResourceMap() { // getWebResourceMap().put("AW22.Test.4.1.2-1Passed-01", // getWebResourceFactory().createPage( // getTestcasesFilePath() + "accessiweb22/Aw22Rule04012/AW22.Test.4.1.2-1Passed-01.html")); // getWebResourceMap().put("AW22.Test.4.1.2-2Failed-01", // getWebResourceFactory().createPage( // getTestcasesFilePath() + "accessiweb22/Aw22Rule04012/AW22.Test.4.1.2-2Failed-01.html")); getWebResourceMap().put("AW22.Test.4.1.2-3NMI-01", getWebResourceFactory().createPage( getTestcasesFilePath() + "accessiweb22/Aw22Rule04012/AW22.Test.4.1.2-3NMI-01.html")); // getWebResourceMap().put("AW22.Test.4.1.2-4NA-01", // getWebResourceFactory().createPage( // getTestcasesFilePath() + "accessiweb22/Aw22Rule04012/AW22.Test.4.1.2-4NA-01.html")); } @Override protected void setProcess() { // assertEquals(TestSolution.PASSED, // processPageTest("AW22.Test.4.1.2-1Passed-01").getValue()); // assertEquals(TestSolution.FAILED, // processPageTest("AW22.Test.4.1.2-2Failed-01").getValue()); assertEquals(TestSolution.NOT_TESTED, processPageTest("AW22.Test.4.1.2-3NMI-01").getValue()); // assertEquals(TestSolution.NOT_APPLICABLE, // processPageTest("AW22.Test.4.1.2-4NA-01").getValue()); } @Override protected void setConsolidate() { // assertEquals(TestSolution.PASSED, // consolidate("AW22.Test.4.1.2-1Passed-01").getValue()); // assertEquals(TestSolution.FAILED, // consolidate("AW22.Test.4.1.2-2Failed-01").getValue()); assertEquals(TestSolution.NOT_TESTED, consolidate("AW22.Test.4.1.2-3NMI-01").getValue()); // assertEquals(TestSolution.NOT_APPLICABLE, // consolidate("AW22.Test.4.1.2-4NA-01").getValue()); } }
agpl-3.0
Cerkinfo/click-and-deploy
apps/recipies/self.py
299
from fabric.api import run, cd, env from fabric import state DISTANT_PATH = '/www-data/click-and-deploy' def pull(): with cd(DISTANT_PATH): run('git pull') def restart_services(): run('sudo supervisorctl restart click-and-deploy') def deploy(): pull() restart_services()
agpl-3.0
eduNEXT/edunext-ecommerce
ecommerce/extensions/offer/utils.py
12022
"""Offer Utility Methods. """ import logging import string # pylint: disable=W0402 from decimal import Decimal from urllib.parse import urlencode import bleach import waffle from django.conf import settings from django.template.loader import render_to_string from django.utils.translation import ugettext as _ from ecommerce_worker.sailthru.v1.tasks import send_offer_assignment_email, send_offer_update_email from oscar.core.loading import get_model from ecommerce.core.constants import ENABLE_BRAZE from ecommerce.core.url_utils import absolute_redirect from ecommerce.extensions.checkout.utils import add_currency from ecommerce.extensions.offer.constants import OFFER_ASSIGNED logger = logging.getLogger(__name__) def _remove_exponent_and_trailing_zeros(decimal): """ Remove exponent and trailing zeros. Arguments: decimal (Decimal): Decimal number that needs to be modified Returns: decimal (Decimal): Modified decimal number without exponent and trailing zeros. """ return decimal.quantize(Decimal(1)) if decimal == decimal.to_integral() else decimal.normalize() def get_discount_percentage(discount_value, product_price): """ Get discount percentage of discount value applied to a product price. Arguments: discount_value (float): Discount value product_price (float): Price of a product the discount is used on Returns: float: Discount percentage """ return discount_value / product_price * 100 if product_price > 0 else 0.0 def get_discount_value(discount_percentage, product_price): """ Get discount value of discount percentage applied to a product price. Arguments: discount_percentage (float): Discount percentage product_price (float): Price of a product the discount is used on Returns: float: Discount value """ return discount_percentage * product_price / 100.0 def get_benefit_type(benefit): """ Returns type of benefit using 'type' or 'proxy_class' attributes of Benefit object""" _type = benefit.type if not _type: _type = getattr(benefit.proxy(), 'benefit_class_type', None) return _type def get_quantized_benefit_value(benefit): """ Returns the rounded value of the given benefit, without any decimal points. """ value = getattr(benefit.proxy(), 'benefit_class_value', benefit.value) return _remove_exponent_and_trailing_zeros(Decimal(str(value))) def format_benefit_value(benefit): """ Format benefit value for display based on the benefit type Arguments: benefit (Benefit): Benefit to be displayed Returns: benefit_value (str): String value containing formatted benefit value and type. """ Benefit = get_model('offer', 'Benefit') benefit_value = get_quantized_benefit_value(benefit) benefit_type = get_benefit_type(benefit) if benefit_type == Benefit.PERCENTAGE: benefit_value = _('{benefit_value}%').format(benefit_value=benefit_value) else: converted_benefit = add_currency(Decimal(benefit.value)) benefit_value = _('${benefit_value}').format(benefit_value=converted_benefit) return benefit_value def get_redirect_to_email_confirmation_if_required(request, offer, product): """ Render the email confirmation template if email confirmation is required to redeem the offer. We require email confirmation via account activation before an offer can be redeemed if the site is configured to require account activation or if the offer is restricted for use to learners with a specific email domain. The learner needs to activate their account before we allow them to redeem email domain-restricted offers, otherwise anyone could create an account using an email address with a privileged domain and use the coupon code associated with the offer. Arguments: request (HttpRequest): The current HttpRequest. offer (ConditionalOffer): The offer to be redeemed. product (Product): The Returns: HttpResponse or None: An HttpResponse that redirects to the email confirmation view if required. """ require_account_activation = request.site.siteconfiguration.require_account_activation or offer.email_domains if require_account_activation and not request.user.account_details(request).get('is_active'): response = absolute_redirect(request, 'offers:email_confirmation') course_id = product.course and product.course.id if course_id: response['Location'] += '?{params}'.format(params=urlencode({'course_id': course_id})) return response return None def format_assigned_offer_email(greeting, closing, learner_email, code, redemptions_remaining, code_expiration_date): """ Arguments: greeting (String): Email greeting (prefix) closing (String): Email closing (suffix) learner_email (String): Email of the customer who will receive the code. code (String): Code for the user. redemptions_remaining (Integer): Number of times the code can be redeemed. code_expiration_date(Datetime): Date till code is valid. Return the formatted email body for offer assignment. """ email_template = settings.OFFER_ASSIGNMENT_EMAIL_TEMPLATE placeholder_dict = SafeDict( REDEMPTIONS_REMAINING=redemptions_remaining, USER_EMAIL=learner_email, CODE=code, EXPIRATION_DATE=code_expiration_date ) return format_email(email_template, placeholder_dict, greeting, closing) def send_assigned_offer_email( subject, greeting, closing, offer_assignment_id, learner_email, code, redemptions_remaining, code_expiration_date, sender_alias, base_enterprise_url=''): """ Arguments: *subject* The email subject *email_greeting* The email greeting (prefix) *email_closing* The email closing (suffix) *offer_assignment_id* Primary key of the entry in the offer_assignment model. *learner_email* Email of the customer who will receive the code. *code* Code for the user. *redemptions_remaining* Number of times the code can be redeemed. *code_expiration_date* Date till code is valid. """ email_body = format_assigned_offer_email( greeting, closing, learner_email, code, redemptions_remaining, code_expiration_date ) if settings.DEBUG: # pragma: no cover # Avoid breaking devstack when no such service is available. logger.warning("Skipping Sailthru task 'send_offer_assignment_email' because DEBUG=true.") # pragma: no cover return # pragma: no cover send_offer_assignment_email.delay(learner_email, offer_assignment_id, subject, email_body, sender_alias, None, base_enterprise_url) def send_revoked_offer_email( subject, greeting, closing, learner_email, code, sender_alias, ): """ Arguments: *subject* The email subject *email_greeting* The email greeting (prefix) *email_closing* The email closing (suffix) *learner_email* Email of the customer who will receive the code. *code* Code for the user. """ email_template = settings.OFFER_REVOKE_EMAIL_TEMPLATE placeholder_dict = SafeDict( USER_EMAIL=learner_email, CODE=code, ) email_body = format_email(email_template, placeholder_dict, greeting, closing) send_offer_update_email.delay(learner_email, subject, email_body, sender_alias) def send_assigned_offer_reminder_email( subject, greeting, closing, learner_email, code, redeemed_offer_count, total_offer_count, code_expiration_date, sender_alias, base_enterprise_url=''): """ Arguments: *subject* The email subject *email_greeting* The email greeting (prefix) *email_closing* The email closing (suffix) *learner_email* Email of the customer who will receive the code. *code* Code for the user. *redeemed_offer_count* Number of times the code has been redeemed. *total_offer_count* Total number of offer assignments for this (code,email) pair *code_expiration_date* Date till code is valid. *sender_alias* Enterprise customer sender alias. *base_enterprise_url* Url for the enterprise's learner portal """ email_template = settings.OFFER_REMINDER_EMAIL_TEMPLATE placeholder_dict = SafeDict( REDEEMED_OFFER_COUNT=redeemed_offer_count, TOTAL_OFFER_COUNT=total_offer_count, USER_EMAIL=learner_email, CODE=code, EXPIRATION_DATE=code_expiration_date ) email_body = format_email(email_template, placeholder_dict, greeting, closing) send_offer_update_email.delay(learner_email, subject, email_body, sender_alias, base_enterprise_url) def format_email(template, placeholder_dict, greeting, closing): """ Arguments: template (String): Email template body placeholder_dict (SafeDict): Safe dictionary of placeholders and their values greeting (String): Email greeting (prefix) closing (String): Email closing (suffix) Apply placeholders to the email template. Safely handle placeholders in the template without matching tokens (just emit the placeholders). Reference: https://stackoverflow.com/questions/17215400/python-format-string-unused-named-arguments """ if greeting is None: greeting = '' if closing is None: closing = '' greeting = bleach.clean(greeting) closing = bleach.clean(closing) email_body = string.Formatter().vformat(template, SafeTuple(), placeholder_dict) if waffle.switch_is_active(ENABLE_BRAZE): email_body = (greeting + email_body + closing).replace('\"', '\'') return render_to_string('coupons/offer_email.html', {'body': email_body}) # \n\n is being treated as single line except of two lines in HTML template, # so separating them with &nbsp; tag to render them as expected. return (greeting + email_body + closing).replace('\n', '<br/>') class SafeDict(dict): """ Safely handle missing placeholder values. """ def __missing__(self, key): return '{' + key + '}' class SafeTuple(tuple): """ Safely handle missing unnamed placeholder values in python3. """ def __getitem__(self, value): return '{}' def update_assignments_for_multi_use_per_customer(voucher): """ Update `OfferAssignment` records for MULTI_USE_PER_CUSTOMER coupon type when max_uses changes for a coupon. """ if voucher.usage == voucher.MULTI_USE_PER_CUSTOMER: OfferAssignment = get_model('offer', 'OfferAssignment') offer = voucher.enterprise_offer existing_offer_assignments = OfferAssignment.objects.filter(code=voucher.code, offer=offer).count() if existing_offer_assignments == 0: return if existing_offer_assignments < offer.max_global_applications: user_email = OfferAssignment.objects.filter(code=voucher.code, offer=offer).first().user_email offer_assignments_available = offer.max_global_applications - existing_offer_assignments assignments = [ OfferAssignment(offer=offer, code=voucher.code, user_email=user_email, status=OFFER_ASSIGNED) for __ in range(offer_assignments_available) ] OfferAssignment.objects.bulk_create(assignments)
agpl-3.0
dhp-denero/LibrERP
l10n_it_spesometro/spesometro.py
75593
# -*- coding: utf-8 -*- ############################################################################## # # Author: Alessandro Camilli (a.camilli@yahoo.it) # Copyright (C) 2014 # Associazione OpenERP Italia (<http://www.openerp-italia.org>) # # This program 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. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from osv import fields, orm from openerp.tools.translate import _ import decimal_precision as dp import datetime, time class res_country(orm.Model): _inherit = "res.country" _columns = { 'codice_stato_agenzia_entrate': fields.char('Codice stato Agenzia Entrate', size=3) } class account_tax_code(orm.Model): _inherit = "account.tax.code" _columns = { 'spesometro_escludi': fields.boolean('Escludi dalla dichiarazione'), } _defaults = { 'spesometro_escludi' : False, } class account_journal(orm.Model): _inherit = "account.journal" _columns = { 'spesometro': fields.boolean('Da includere'), 'spesometro_operazione': fields.selection((('FA','Operazioni documentate da fattura'), ('SA','Operazioni senza fattura'), ('BL1','Operazioni con paesi con fiscalità privilegiata'), ('BL2','Operazioni con soggetti non residenti'), ('BL3','Acquisti di servizi da soggetti non residenti'), ('DR','Documento Riepilogativo')), 'Operazione' ), 'spesometro_segno': fields.selection((('attiva','Attiva'), ('passiva','Passiva')), 'Segno operaz.' ), 'spesometro_IVA_non_esposta': fields.boolean('IVA non esposta') } class res_partner(orm.Model): _inherit = "res.partner" _columns = { 'spesometro_escludi': fields.boolean('Escludi'), 'spesometro_operazione': fields.selection((('FA','Operazioni documentate da fattura'), ('SA','Operazioni senza fattura'), ('BL1','Operazioni con paesi con fiscalità privilegiata'), ('BL2','Operazioni con soggetti non residenti'), ('BL3','Acquisti di servizi da soggetti non residenti'), ('DR','Documento Riepilogativo')), 'Operazione' ), 'spesometro_IVA_non_esposta': fields.boolean('IVA non esposta'), 'spesometro_leasing': fields.selection((('A','Autovettura'), ('B','Caravan'), ('C','Altri veicoli'), ('D','Unità da diporto'), ('E','Aeromobili')), 'Tipo Leasing' ), 'spesometro_tipo_servizio': fields.selection((('cessione','Cessione Beni'), ('servizi','Prestazione di servizi')), 'Tipo servizio', help="Specificare per 'Operazioni con paesi con fiscalità privilegiata' "), 'spesometro_indirizzo_estero': fields.many2one('res.partner.address', 'Indirizzo non residente'), } _defaults = { 'spesometro_escludi' : False, } class spesometro_configurazione(orm.Model): def _check_one_year(self, cr, uid, ids, context=None): for element in self.browse(cr, uid, ids, context=context): element_ids = self.search(cr, uid, [('anno','=', element.anno)], context=context) if len(element_ids) > 1: return False return True _name = "spesometro.configurazione" _description = "Spesometro - Configurazione" _columns = { 'anno': fields.integer('Anno', size=4, required=True ), 'stato_san_marino': fields.many2one('res.country', 'Stato San Marino', required=True), 'quadro_fa_limite_importo': fields.float('Quadro FA - Limite importo'), 'quadro_fa_limite_importo_line': fields.float('Quadro FA - Limite importo singola operaz.'), 'quadro_sa_limite_importo': fields.float('Quadro SA - Limite importo'), 'quadro_sa_limite_importo_line': fields.float('Quadro SA - Limite importo singola operaz.'), 'quadro_bl_limite_importo': fields.float('Quadro BL - Limite importo'), 'quadro_bl_limite_importo_line': fields.float('Quadro BL - Limite importo singola operaz.'), 'quadro_se_limite_importo_line': fields.float('Quadro SE - Limite importo singola operaz.'), } _constraints = [ (_check_one_year, 'Error! Config for this year already exists.', ['anno']), ] class spesometro_comunicazione(orm.Model): _name = "spesometro.comunicazione" _description = "Spesometro - Comunicazione " def _tot_operation_number(self, cr, uid, ids, field_names, args, context=None): res = {} for com in self.browse(cr, uid, ids): # Aggregate tot_FA = len(com.line_FA_ids) tot_SA = len(com.line_SA_ids) tot_BL1 = 0 tot_BL2 = 0 tot_BL3 = 0 for line in com.line_BL_ids: if line.operazione_fiscalita_privilegiata: tot_BL1 += 1 elif line.operazione_con_soggetti_non_residenti: tot_BL2 += 1 elif line.Acquisto_servizi_da_soggetti_non_residenti: tot_BL3 += 1 #Analitiche tot_FE = 0 # Fatture emesse tot_FE_R = 0 # Doc riepilogativi for line in com.line_FE_ids: if line.documento_riepilogativo: tot_FE_R += 1 else: tot_FE += 1 tot_FR = 0 # Fatture ricevute tot_FR_R = 0 # Doc riepilogativi ricevuti for line in com.line_FR_ids: if line.documento_riepilogativo: tot_FR_R += 1 else: tot_FR += 1 tot_NE = len(com.line_NE_ids) tot_NR = len(com.line_NR_ids) tot_DF = len(com.line_DF_ids) tot_FN = len(com.line_FN_ids) tot_SE = len(com.line_SE_ids) tot_TU = len(com.line_TU_ids) res[com.id] = { 'totale_FA' : tot_FA, 'totale_SA' : tot_SA, 'totale_BL1' : tot_BL1, 'totale_BL2' : tot_BL2, 'totale_BL3' : tot_BL3, 'totale_FE' : tot_FE, 'totale_FE_R' : tot_FE_R, 'totale_FR' : tot_FR, 'totale_FR_r' : tot_FR_R, 'totale_NE' : tot_NE, 'totale_NR' : tot_NR, 'totale_DF' : tot_DF, 'totale_FN' : tot_FN, 'totale_SE' : tot_SE, 'totale_TU' : tot_TU, } return res _columns = { 'company_id': fields.many2one('res.company', 'Azienda', required=True ), 'periodo': fields.selection((('anno','Annuale'), ('trimestre','Trimestrale'), ('mese','Mensile')), 'Periodo', required=True), 'anno' : fields.integer('Anno', size=4, required=True), 'trimestre' : fields.integer('Trimestre', size=1 ), 'mese' : fields.selection((('1','Gennaio'), ('2','Febbraio'), ('3','Marzo'), ('4','Aprile'), ('5','Maggio'), ('6','Giugno'), ('7','Luglio'), ('8','Agosto'), ('9','Settembre'), ('10','Ottobre'), ('11','Novembre'), ('12','Dicembre'), ),'Mese'), 'tipo': fields.selection((('ordinaria','Ordinaria'), ('sostitutiva','Sostitutiva'), ('annullamento','Annullamento')), 'Tipo comunicazione', required=True), 'comunicazione_da_sostituire_annullare': fields.integer('Protocollo comunicaz. da sostituire/annullare'), 'documento_da_sostituire_annullare': fields.integer('Protocollo documento da sostituire/annullare'), 'formato_dati': fields.selection((('aggregati','Dati Aggregati'), ('analitici','Dati Analitici')), 'Formato dati', readonly=True ), 'codice_fornitura': fields.char('Codice fornitura', readonly=True, size=5, help='Impostare a "NSP00" '), 'tipo_fornitore': fields.selection((('01','Invio propria comunicazione'), ('10','Intermediario')), 'Tipo fornitore' ), 'codice_fiscale_fornitore': fields.char('Codice fiscale Fornitore', size=16, help="Deve essere uguale al Codice fiscale dell'intermediario (campo 52 del record B) se presente, altrimenti al Codice fiscale del soggetto tenuto alla comunicazione (campo 41 del record B) se presente, altrimenti al Codice fiscale del soggetto obbligato (campo 2 del record B)"), # # Valori per comunicazione su più invii (non gestito) 'progressivo_telematico': fields.integer('Progressivo telematico', readonly=True), 'numero_totale_invii': fields.integer('Numero totale invii telematici', readonly=True), # # Soggetto a cui si riferisce la comunicazione # 'soggetto_codice_fiscale': fields.char('Codice fiscale soggetto obbligato', size=16, help="Soggetto cui si riferisce la comunicazione"), 'soggetto_partitaIVA': fields.char('Partita IVA', size=11), 'soggetto_codice_attivita': fields.char('Codice attività', size=6, help="Codice ATECO 2007"), 'soggetto_telefono': fields.char('Telefono', size=12), 'soggetto_fax': fields.char('Fax', size=12), 'soggetto_email': fields.char('E-mail', size=50), 'soggetto_forma_giuridica': fields.selection((('persona_giuridica','Persona Giuridica'), ('persona_fisica','Persona Fisica')), 'Forma Giuridica'), 'soggetto_pf_cognome': fields.char('Cognome', size=24, help=""), 'soggetto_pf_nome': fields.char('Nome', size=20, help=""), 'soggetto_pf_sesso': fields.selection((('M','M'), ('F','F')),'Sesso'), 'soggetto_pf_data_nascita': fields.date('Data di nascita'), 'soggetto_pf_comune_nascita': fields.char('Comune o stato estero di nascita', size=40), 'soggetto_pf_provincia_nascita': fields.char('Provincia', size=2), 'soggetto_pg_denominazione': fields.char('Denominazione', size=60), # Soggetto tenuto alla comunicazione 'soggetto_cm_forma_giuridica': fields.selection((('persona_giuridica','Persona Giuridica'), ('persona_fisica','Persona Fisica')), 'Forma Giuridica'), 'soggetto_cm_codice_fiscale': fields.char('Codice Fiscale', size=16, help="Soggetto che effettua la comunicazione se diverso dal soggetto tenuto alla comunicazione"), 'soggetto_cm_pf_cognome': fields.char('Cognome', size=24, help=""), 'soggetto_cm_pf_nome': fields.char('Nome', size=20, help=""), 'soggetto_cm_pf_sesso': fields.selection((('M','M'), ('F','F')),'Sesso'), 'soggetto_cm_pf_data_nascita': fields.date('Data di nascita'), 'soggetto_cm_pf_comune_nascita': fields.char('Comune o stato estero di nascita', size=40), 'soggetto_cm_pf_provincia_nascita': fields.char('Provincia', size=2), 'soggetto_cm_pf_codice_carica': fields.integer('Codice Fiscale', size=2, help=""), 'soggetto_cm_pf_data_inizio_procedura': fields.date('Data inizio procedura'), 'soggetto_cm_pf_data_fine_procedura': fields.date('Data fine procedura'), 'soggetto_cm_pg_denominazione': fields.char('Denominazione', size=60), # Soggetto incaricato alla trasmissione 'soggetto_trasmissione_codice_fiscale': fields.char('Codice Fiscale', size=16, help="Intermediario che effettua la trasmissione telematica"), 'soggetto_trasmissione_numero_CAF': fields.integer('Nr iscrizione albo del C.A.F.', size=5, help="Intermediario che effettua la trasmissione telematica"), 'soggetto_trasmissione_impegno': fields.selection((('1','Soggetto obbligato'), ('2','Intermediario')),'Impegno trasmissione'), 'soggetto_trasmissione_data_impegno': fields.date('Data data impegno'), 'line_FA_ids': fields.one2many('spesometro.comunicazione.line.fa', 'comunicazione_id', 'Quadri FA' ), 'line_SA_ids': fields.one2many('spesometro.comunicazione.line.sa', 'comunicazione_id', 'Quadri SA' ), 'line_BL_ids': fields.one2many('spesometro.comunicazione.line.bl', 'comunicazione_id', 'Quadri BL' ), 'line_FE_ids': fields.one2many('spesometro.comunicazione.line.fe', 'comunicazione_id', 'Quadri FE' ), 'line_FR_ids': fields.one2many('spesometro.comunicazione.line.fr', 'comunicazione_id', 'Quadri FR' ), 'line_NE_ids': fields.one2many('spesometro.comunicazione.line.ne', 'comunicazione_id', 'Quadri NE' ), 'line_NR_ids': fields.one2many('spesometro.comunicazione.line.nr', 'comunicazione_id', 'Quadri NR' ), 'line_DF_ids': fields.one2many('spesometro.comunicazione.line.df', 'comunicazione_id', 'Quadri DF' ), 'line_FN_ids': fields.one2many('spesometro.comunicazione.line.fn', 'comunicazione_id', 'Quadri FN' ), 'line_SE_ids': fields.one2many('spesometro.comunicazione.line.se', 'comunicazione_id', 'Quadri SE' ), 'line_TU_ids': fields.one2many('spesometro.comunicazione.line.tu', 'comunicazione_id', 'Quadri TU' ), 'totale_FA': fields.function(_tot_operation_number, string='Tot operazioni FA', type='integer', multi='operation_number'), 'totale_SA': fields.function(_tot_operation_number, string='Tot operazioni SA', type='integer', multi='operation_number'), 'totale_BL1': fields.function(_tot_operation_number, string='Tot operazioni BL - Paesi con fiscalita privilegiata', type='integer', multi='operation_number'), 'totale_BL2': fields.function(_tot_operation_number, string='Tot operazioni BL - Soggetti non residenti', type='integer', multi='operation_number'), 'totale_BL3': fields.function(_tot_operation_number, string='Tot operazioni BL - Acquisti servizi non soggetti non residenti', type='integer', multi='operation_number'), 'totale_FE': fields.function(_tot_operation_number, string='Tot operazioni FE', type='integer', multi='operation_number'), 'totale_FE_R': fields.function(_tot_operation_number, string='Tot operazioni FE doc riepil.', type='integer', multi='operation_number'), 'totale_FR': fields.function(_tot_operation_number, string='Tot operazioni FR', type='integer', multi='operation_number'), 'totale_FR_R': fields.function(_tot_operation_number, string='Tot operazioni FR doc riepil.', type='integer', multi='operation_number'), 'totale_NE': fields.function(_tot_operation_number, string='Tot operazioni NE', type='integer', multi='operation_number'), 'totale_NR': fields.function(_tot_operation_number, string='Tot operazioni NR', type='integer', multi='operation_number'), 'totale_DF': fields.function(_tot_operation_number, string='Tot operazioni DF', type='integer', multi='operation_number'), 'totale_FN': fields.function(_tot_operation_number, string='Tot operazioni FN', type='integer', multi='operation_number'), 'totale_SE': fields.function(_tot_operation_number, string='Tot operazioni SE', type='integer', multi='operation_number'), 'totale_TU': fields.function(_tot_operation_number, string='Tot operazioni TU', type='integer', multi='operation_number'), } _default ={ 'codice_fornitura': 'NSP00', 'tipo_fornitore': '01', 'formato_dati': 'aggregati', } def onchange_trasmissione_impegno(self, cr, uid, ids, type, context=None): res = {} fiscalcode = False if type == '1': # soggetto obbligato fiscalcode = context.get('soggetto_codice_fiscale', False) res = { 'value' : {'soggetto_trasmissione_codice_fiscale' : fiscalcode} } return res def partner_is_from_san_marino(self, cr, uid, move, invoice, arg): # configurazione anno_competenza = datetime.datetime.strptime(move.period_id.date_start, "%Y-%m-%d").year configurazione_ids = self.pool.get('spesometro.configurazione').search(cr, uid, \ [('anno', '=', anno_competenza)]) if not configurazione_ids: raise orm.except_orm(_('Configurazione mancante!'),_("Configurare l'anno relativo alla comunicazione") ) configurazione = self.pool.get('spesometro.configurazione').browse(cr, uid, configurazione_ids[0]) stato_estero = False address = self._get_partner_address_obj(cr, uid, move, invoice, arg) if address and address.country_id and configurazione.stato_san_marino.id == address.country_id.id: return True else: return False def _get_partner_address_obj(self, cr, uid, move, invoice, arg): address = False if move.partner_id.spesometro_indirizzo_estero: address = move.partner_id.spesometro_indirizzo_estero elif move.partner_id.address[0]: address = move.partner_id.address[0] return address def compute_invoice_amounts(self, cr, uid, move, invoice, arg): ''' Calcolo totali documento. Dall'imponibile vanno esclusi gli importi assoggettati ad un'imposta che ha l'esclusione sulla "Comunicazione art.21" ''' res ={ 'amount_untaxed' : 0, 'amount_tax' : 0, 'amount_total' : 0, } for line in invoice.tax_line: if not line.tax_code_id.spesometro_escludi: res['amount_untaxed'] += line.base res['amount_tax'] += line.amount res['amount_total'] += round(line.base + line.amount, 2) return res def truncate_values(self, cr, uid, ids, context=None): for com in self.browse(cr, uid, ids): for line in com.line_FA_ids: vals = { 'attive_imponibile_non_esente': int(line.attive_imponibile_non_esente), 'attive_imposta': int(line.attive_imposta), 'attive_operazioni_iva_non_esposta': int(line.attive_operazioni_iva_non_esposta), 'attive_note_variazione': int(line.attive_note_variazione), 'attive_note_variazione_imposta': int(line.attive_note_variazione_imposta), 'passive_imponibile_non_esente': int(line.passive_imponibile_non_esente), 'passive_imposta': int(line.passive_imposta), 'passive_operazioni_iva_non_esposta': int(line.passive_operazioni_iva_non_esposta), 'passive_note_variazione': int(line.passive_note_variazione), 'passive_note_variazione_imposta': int(line.passive_note_variazione_imposta), } self.pool.get('spesometro.comunicazione.line.fa').write(cr, uid, [line.id], vals) for line in com.line_SA_ids: vals = { 'importo_complessivo': int(line.importo_complessivo), } self.pool.get('spesometro.comunicazione.line.sa').write(cr, uid, [line.id], vals) for line in com.line_BL_ids: vals = { 'attive_importo_complessivo': int(line.attive_importo_complessivo), 'attive_imposta': int(line.attive_imposta), 'attive_non_sogg_cessione_beni': int(line.attive_non_sogg_cessione_beni), 'attive_non_sogg_servizi': int(line.attive_non_sogg_servizi), 'attive_note_variazione': int(line.attive_note_variazione), 'attive_note_variazione_imposta': int(line.attive_note_variazione_imposta), 'passive_importo_complessivo': int(line.passive_importo_complessivo), 'passive_imposta': int(line.passive_imposta), 'passive_non_sogg_importo_complessivo': int(line.passive_non_sogg_importo_complessivo), 'passive_note_variazione': int(line.passive_note_variazione), 'passive_note_variazione_imposta': int(line.passive_note_variazione_imposta), } self.pool.get('spesometro.comunicazione.line.bl').write(cr, uid, [line.id], vals) return True def validate_lines(self, cr, uid, ids, context=None): for com in self.browse(cr, uid, ids): # configurazione configurazione_ids = self.pool.get('spesometro.configurazione').search(cr, uid, \ [('anno', '=', com.anno)]) if not configurazione_ids: raise orm.except_orm(_('Configurazione mancante!'),_("Configurare l'anno relativo alla comunicazione") ) configurazione = self.pool.get('spesometro.configurazione').browse(cr, uid, configurazione_ids[0]) for line in com.line_FA_ids: if configurazione.quadro_fa_limite_importo : if line.attive_imponibile_non_esente and \ line.attive_imponibile_non_esente < configurazione.quadro_fa_limite_importo: self.pool.get('spesometro.comunicazione.line.fa').unlink(cr, uid, [line.id]) for line in com.line_SA_ids: if configurazione.quadro_sa_limite_importo : if line.importo_complessivo and \ line.importo_complessivo < configurazione.quadro_sa_limite_importo: self.pool.get('spesometro.comunicazione.line.sa').unlink(cr, uid, [line.id]) for line in com.line_BL_ids: if configurazione.quadro_bl_limite_importo : importo_test = 0 if line.attive_importo_complessivo : importo_test = line.attive_importo_complessivo elif line.attive_non_sogg_cessione_beni : importo_test = line.attive_non_sogg_cessione_beni elif line.attive_non_sogg_servizi : importo_test = line.attive_non_sogg_servizi if importo_test and \ importo_test < configurazione.quadro_bl_limite_importo: self.pool.get('spesometro.comunicazione.line.bl').unlink(cr, uid, [line.id]) # Controllo formale comunicazione # ... periodo in presenza di linee nel quadro SE if com.line_SE_ids and not com.trimestre and not com.mese: raise orm.except_orm(_('Perido Errato!'),_("In presenza di operazione nel qudro SE (Acquisti da San Marino) \ sono ammessi solo periodi mensili/trimestrali") ) return True def validate_operation(self, cr, uid, move, invoice, arg): # configurazione anno_competenza = datetime.datetime.strptime(move.period_id.date_start, "%Y-%m-%d").year configurazione_ids = self.pool.get('spesometro.configurazione').search(cr, uid, \ [('anno', '=', anno_competenza)]) if not configurazione_ids: raise orm.except_orm(_('Configurazione mancante!'),_("Configurare l'anno relativo alla comunicazione") ) configurazione = self.pool.get('spesometro.configurazione').browse(cr, uid, configurazione_ids[0]) doc_vals = self.pool.get('spesometro.comunicazione').compute_invoice_amounts(cr, uid, move, invoice, arg) # Nessu quadro definito if not arg['quadro']: return False # Quadro richiesto if arg['quadro'] not in arg['quadri_richiesti']: return False # Valori minimi if arg['quadro'] == 'FA': if configurazione.quadro_fa_limite_importo_line : if not doc_vals.get('amount_untaxed', 0) or doc_vals.get('amount_untaxed', 0) < configurazione.quadro_fa_limite_importo_line: return False if arg['quadro'] == 'SA': if configurazione.quadro_sa_limite_importo_line : if not doc_vals.get('amount_total', 0) or doc_vals.get('amount_total', 0) < configurazione.quadro_sa_limite_importo_line: return False if arg['quadro'] == 'BL': if configurazione.quadro_bl_limite_importo_line : if not doc_vals.get('amount_total', 0) or doc_vals.get('amount_total', 0) < configurazione.quadro_bl_limite_importo_line: return False if arg['quadro'] == 'SE': if configurazione.quadro_se_limite_importo_line : if not doc_vals.get('amount_untaxed', 0) or doc_vals.get('amount_untaxed', 0) < configurazione.quadro_se_limite_importo_line: return False # Operazioni con San Marino Escluse se richiesta forma aggregata if arg['formato_dati'] == 'aggregati' and self.partner_is_from_san_marino(cr, uid, move, invoice, arg): return False return True def get_define_quadro(self, cr, uid, move, invoice, arg): quadro = False operazione = arg.get('operazione') # Forma aggregata if arg['formato_dati'] == 'aggregati': if operazione == 'FA' or operazione == 'DR': quadro = 'FA' elif operazione == 'SA': # Operazioni senza fattura quadro = 'SA' elif (operazione == 'BL1') or (operazione == 'BL2') or (operazione == 'BL2'): quadro = 'BL' # Forma analitica if arg['formato_dati'] == 'analitici': # Priorità x San Marino -> quadro SE if self.partner_is_from_san_marino(cr, uid, move, invoice, arg): operazione = 'BL3' # Impostazioni anagrafiche partner if operazione == 'FA' or operazione == 'DR': if arg.get('segno') == 'attiva': quadro = 'FE' elif arg.get('segno') == 'passiva': quadro = 'FR' elif operazione == 'SA': # Operazioni senza fattura quadro = 'DF' elif operazione == 'BL2': #Operazioni con soggetti non residenti quadro = 'FN' elif operazione == 'BL1' or operazione == 'BL3': #Operazioni con paesi con fiscalità privilegiata - Acquisti di servizi da soggetti non residenti quadro = 'SE' # Note di variazione if operazione == 'FE' and 'refund' in move.journal_id.type: operazione = 'NE' elif operazione == 'FR' and 'refund' in move.journal_id.type: operazione = 'NR' return quadro def genera_comunicazione(self, cr, uid, params, context=None): def _get_periods(cr, uid, params, context=None): ''' Definizione periodi di competenza ''' sql_select = "SELECT p.id FROM account_period p " sql_where = " WHERE p.special = False " search_params = {} # Periodo annuale if params.get('periodo') == 'anno': period_date_start = datetime.date(params.get('anno') , 1, 1) period_date_stop = datetime.date(params.get('anno') , 12, 31) sql_where += " AND p.date_start >= date(%(period_date_start)s) AND p.date_stop <=date(%(period_date_stop)s) " search_params.update({ 'period_date_start' : period_date_start, 'period_date_stop' : period_date_stop }) # Periodo mensile if params.get('periodo') == 'mese': period_date_start = datetime.date(params.get('anno') , int(params.get('mese')), 1) sql_where += " AND p.date_start = date(%(period_date_start)s) " search_params.update({ 'period_date_start' : period_date_start, }) # Periodo trimestrale if params.get('periodo') == 'trimestre': if params.get('trimestre') == 1: period_date_start = datetime.date(params.get('anno') , 1, 1) period_date_start = datetime.date(params.get('anno') , 3, 31) elif params.get('trimestre') == 2: period_date_start = datetime.date(params.get('anno') , 3, 1) period_date_start = datetime.date(params.get('anno') , 6, 30) elif params.get('trimestre') == 2: period_date_start = datetime.date(params.get('anno') , 7, 1) period_date_start = datetime.date(params.get('anno') , 9, 30) elif params.get('trimestre') == 2: period_date_start = datetime.date(params.get('anno') , 10, 1) period_date_start = datetime.date(params.get('anno') , 12, 31) else: raise orm.except_orm(_('Dato errato!'),_("Errore nel valore del trimestre") ) sql_where += " AND p.date_start >= date(%(period_date_start)s) AND p.date_stop <=date(%(period_date_stop)s) " search_params.update({ 'period_date_start' : period_date_start, 'period_date_stop' : period_date_stop }) sql = sql_select + sql_where cr.execute(sql, search_params) periods = [i[0] for i in cr.fetchall()] return periods def _genera_testata(cr, uid, params, context=None): ''' Generazione testata dichiarazione ''' company = self.pool.get('res.company').browse(cr, uid, params['company_id']) # progressivo telematico :" il progressivo deve essere univoco e crescente (con incrementi di una unità per ogni file prodotto)" if params['tipo'] == 'ordinaria': com_search = [('tipo', '=', 'ordinaria')] com_last_ids = self.search(cr, uid, com_search, order='progressivo_telematico desc', limit=1) com_next_prg = 1 if com_last_ids: com_next_prg = self.browse(cr, uid, com_last_ids[0]).progressivo_telematico + 1 progressivo_telematico = com_next_prg # vat if company.partner_id.vat: partita_iva = company.partner_id.vat[2:] else: partita_iva = '{:11s}'.format("".zfill(11)) # codice fiscale soggetto incaricato alla trasmissione codice_fiscale_incaricato_trasmissione='' if params.get('tipo_fornitore') == '10' and params.get('partner_intermediario', False): partner_intermediario = self.pool.get('res.partner').browse(cr, uid, params.get('partner_intermediario')) codice_fiscale_incaricato_trasmissione = partner_intermediario.fiscalcode or False # Soggetto con impegno alla trasmissione if params.get('tipo_fornitore') == '10': soggetto_trasmissione_impegno = '2' else: soggetto_trasmissione_impegno = '1' # Persona fisica o giuridica # Considerazione: se se lunghezza codice fiscale < 16 allora c'è la P.Iva e quindi trattasi di soggetto giuridico tipo_persona = 'persona_fisica' if len(company.partner_id.fiscalcode) < 16: tipo_persona = 'persona_giuridica' values = { 'company_id' : company.id, 'codice_fiscale_fornitore' : company.partner_id.fiscalcode, 'tipo' : params.get('tipo', False), 'periodo' : params.get('periodo', False), 'anno' : params.get('anno', False), 'mese' : params.get('mese', False), 'trimestre' : params.get('trimestre', False), 'progressivo_telematico' : progressivo_telematico or False, 'tipo_fornitore' : params.get('tipo_fornitore', False), 'formato_dati' : params.get('formato_dati', False), 'soggetto_codice_fiscale' : company.partner_id and company.partner_id.fiscalcode or '', 'soggetto_partitaIVA' : partita_iva, 'soggetto_telefono' : company.partner_id and company.partner_id.address[0].phone or '', 'soggetto_fax' : company.partner_id and company.partner_id.address[0].fax or '', 'soggetto_email' : company.partner_id and company.partner_id.address[0].email or '', 'soggetto_forma_giuridica' : tipo_persona, 'soggetto_pg_denominazione' : company.partner_id and company.partner_id.name or company.name or '', 'soggetto_cm_forma_giuridica' : tipo_persona, 'soggetto_cm_pg_denominazione' : company.partner_id and company.partner_id.name or company.name or '', 'soggetto_trasmissione_codice_fiscale' : codice_fiscale_incaricato_trasmissione, 'soggetto_trasmissione_impegno' : soggetto_trasmissione_impegno, } comunicazione_id = self.create(cr, uid, values) return comunicazione_id # Esistenza record di configurazione per l'anno della comunicazione configurazione_ids = self.pool.get('spesometro.configurazione').search(cr, uid, [('anno', '=', params.get('anno'))]) if not configurazione_ids: raise orm.except_orm(_('Configurazione mancante!'),_("Configurare l'anno relativo alla comunicazione") ) configurazione = self.pool.get('spesometro.configurazione').browse(cr, uid, configurazione_ids[0]) # Testata comunicazione comunicazione_id = _genera_testata(cr, uid, params, context=None) period_obj = self.pool.get('account.period') journal_obj = self.pool.get('account.journal') partner_obj = self.pool.get('res.partner') account_move_obj = self.pool.get('account.move') invoice_obj = self.pool.get('account.invoice') # periods period_ids = _get_periods(cr, uid, params, context=None) # journal journal_search = [('spesometro','=', True)] journal_ids = journal_obj.search(cr, uid, journal_search, context=context) # Partners to exclude partner_search = [('spesometro_escludi','=', True)] partner_to_exclude_ids = partner_obj.search(cr, uid, partner_search, context=context) move_search = [('company_id', '=', params['company_id']),('period_id','in', period_ids), ('journal_id','in', journal_ids), ('partner_id','not in', partner_to_exclude_ids)] move_ids = account_move_obj.search(cr, uid, move_search, context=context) for move in self.pool.get('account.move').browse(cr, uid, move_ids): # Test move validate if not move.partner_id: continue # Invoice invoice_search = [('move_id','=', move.id)] invoice_ids = invoice_obj.search(cr, uid, invoice_search, context=context) if not invoice_ids: continue invoice = invoice_obj.browse(cr,uid, invoice_ids[0]) # Config spesometro operazione = False operazione_iva_non_esposta = False operazione = move.journal_id.spesometro_operazione operazione_iva_non_esposta = move.journal_id.spesometro_IVA_non_esposta segno = move.journal_id.spesometro_segno if move.partner_id.spesometro_operazione: operazione = move.partner_id.spesometro_operazione operazione_iva_non_esposta = move.partner_id.spesometro_IVA_non_esposta arg = { 'comunicazione_id' : comunicazione_id, 'segno' : segno, 'operazione_iva_non_esposta' : operazione_iva_non_esposta, 'operazione' : operazione, 'formato_dati' : params['formato_dati'], 'quadri_richiesti' : params['quadri_richiesti'], } # Quadro di competenza quadro = self.get_define_quadro(cr, uid, move, invoice, arg) arg.update({'quadro': quadro}) # Test operazione da includere nella comunicazione if not self.validate_operation(cr, uid, move, invoice, arg): continue if quadro == 'FA': line_id = self.pool.get('spesometro.comunicazione.line.fa').add_line(cr, uid, move, invoice, arg) if quadro == 'SA': line_id = self.pool.get('spesometro.comunicazione.line.sa').add_line(cr, uid, move, invoice, arg) if quadro == 'BL': line_id = self.pool.get('spesometro.comunicazione.line.bl').add_line(cr, uid, move, invoice, arg) if quadro == 'SE': line_id = self.pool.get('spesometro.comunicazione.line.se').add_line(cr, uid, move, invoice, arg) # Arrotonda importi su valori raggruppati -> troncare i decimali if params['formato_dati'] == 'aggregati': self.truncate_values(cr, uid, [comunicazione_id]) # Rimuove le linee che non rientrano nei limiti ed effettua un controllo formale sull'intera comunicazione self.validate_lines(cr, uid, [comunicazione_id]) # Update for compute totals self.write(cr, uid, [comunicazione_id],{}) return True class spesometro_comunicazione_line_FA(orm.Model): ''' QUADRO FA - Operazioni documentate da fattura esposte in forma aggregata ''' _name = "spesometro.comunicazione.line.fa" _description = "Spesometro - Comunicazione linee quadro FA" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'partita_iva': fields.char('Partita IVA', size=11), 'codice_fiscale': fields.char('Codice Fiscale', size=16), 'documento_riepilogativo': fields.boolean('Documento Riepilogativo'), 'noleggio': fields.selection((('A','Autovettura'), ('B','Caravan'), ('C','Altri Veicoli'), ('D','Unità da diporto'), ('E','Aeromobii')),'Leasing'), 'numero_operazioni_attive_aggregate': fields.integer('Nr op. attive', size=16), 'numero_operazioni_passive_aggregate': fields.integer('Nr op. passive', size=16), 'attive_imponibile_non_esente': fields.float('Tot impon., non impon ed esenti', digits_compute=dp.get_precision('Account'), help="Totale operazioni imponibili, non imponibili ed esenti"), 'attive_imposta': fields.float(' Tot imposta', digits_compute=dp.get_precision('Account'), help="Totale imposta"), 'attive_operazioni_iva_non_esposta': fields.float('Totale operaz. IVA non esposta', digits_compute=dp.get_precision('Account'), help="Totale operazioni con IVA non esposta"), 'attive_note_variazione': fields.float('Totale note variazione', digits_compute=dp.get_precision('Account'), help="Totale note di variazione a debito per la controparte"), 'attive_note_variazione_imposta': fields.float('Totale imposta note variazione', digits_compute=dp.get_precision('Account'), help="Totale imposta sulle note di variazione a debito"), 'passive_imponibile_non_esente': fields.float('Tot impon., non impon ed esenti', digits_compute=dp.get_precision('Account'), help="Totale operazioni imponibili, non imponibili ed esenti"), 'passive_imposta': fields.float('Totale imposta', digits_compute=dp.get_precision('Account'), help="Totale imposta"), 'passive_operazioni_iva_non_esposta': fields.float('Totale operaz. IVA non esposta', digits_compute=dp.get_precision('Account'), help="Totale operazioni con IVA non esposta"), 'passive_note_variazione': fields.float('Totale note variazione', digits_compute=dp.get_precision('Account'), help="Totale note di variazione a credito per la controparte"), 'passive_note_variazione_imposta': fields.float('Totale imposta note variazione', digits_compute=dp.get_precision('Account'), help="Totale imposta sulle note di variazione a credito"), } def add_line(self, cr, uid, move, invoice, arg): comunicazione_lines_obj = self.pool.get('spesometro.comunicazione.line.fa') comunicazione_id = arg.get('comunicazione_id', False) com_line_search = [('comunicazione_id','=',comunicazione_id), ('partner_id', '=', move.partner_id.id)] com_line_ids = self.search(cr, uid, com_line_search) val = {} # Valori documento doc_vals = self.pool.get('spesometro.comunicazione').compute_invoice_amounts(cr, uid, move, invoice, arg) # New partner if not com_line_ids: partita_iva ='' if move.partner_id.vat: partita_iva = move.partner_id.vat[2:] documento_riepilogativo = False if arg['operazione'] == 'DR': documento_riepilogativo = True val = { 'comunicazione_id' : comunicazione_id, 'partner_id' : move.partner_id.id, 'partita_iva' : partita_iva, 'codice_fiscale' : move.partner_id.fiscalcode or '', 'noleggio' : move.partner_id.spesometro_leasing or '', 'documento_riepilogativo' : documento_riepilogativo, } # attive if arg.get('segno', False) == 'attiva': val['numero_operazioni_attive_aggregate'] = 1 if 'refund' in move.journal_id.type: val['attive_note_variazione'] = doc_vals.get('amount_untaxed', 0) val['attive_note_variazione_imposta'] = doc_vals.get('amount_tax', 0) else: if arg.get('operazione_iva_non_esposta', False): val['attive_operazioni_iva_non_esposta' ] = doc_vals.get('amount_total', 0) else: val['attive_imponibile_non_esente' ] = doc_vals.get('amount_untaxed', 0) val['attive_imposta'] =doc_vals.get('amount_tax', 0) # passive else: val['numero_operazioni_passive_aggregate'] = 1 if 'refund' in move.journal_id.type: val['passive_note_variazione'] = doc_vals.get('amount_untaxed', 0) val['passive_note_variazione_imposta'] = doc_vals.get('amount_tax', 0) else: if arg.get('operazione_iva_non_esposta', False): val['passive_operazioni_iva_non_esposta' ] = doc_vals.get('amount_total', 0) else: val['passive_imponibile_non_esente' ] = doc_vals.get('amount_untaxed', 0) val['passive_imposta' ] = doc_vals.get('amount_tax', 0) # Partner already exists if com_line_ids: for com_line in self.browse(cr, uid, com_line_ids): # attive if arg.get('segno', False) == 'attiva': val['numero_operazioni_attive_aggregate'] = com_line.numero_operazioni_attive_aggregate + 1 if 'refund' in move.journal_id.type: val['attive_note_variazione'] = com_line.attive_note_variazione + doc_vals.get('amount_untaxed', 0) val['attive_note_variazione_imposta'] = com_line.attive_note_variazione_imposta + doc_vals.get('amount_tax', 0) else: if arg.get('operazione_iva_non_esposta', False): val['attive_operazioni_iva_non_esposta' ] = com_line.attive_operazioni_iva_non_esposta + doc_vals.get('amount_total', 0) else: val['attive_imponibile_non_esente' ] = com_line.attive_imponibile_non_esente + doc_vals.get('amount_untaxed', 0) val['attive_imposta' ] = com_line.attive_imposta + doc_vals.get('amount_tax', 0) # passive else: val['numero_operazioni_passive_aggregate'] = com_line.numero_operazioni_passive_aggregate + 1 if 'refund' in move.journal_id.type: val['passive_note_variazione'] = com_line.passive_note_variazione + doc_vals.get('amount_untaxed', 0) val['passive_note_variazione_imposta'] = com_line.passive_note_variazione_imposta + doc_vals.get('amount_tax', 0) else: if arg.get('operazione_iva_non_esposta', False): val['passive_operazioni_iva_non_esposta' ] = com_line.passive_operazioni_iva_non_esposta + doc_vals.get('amount_total', 0) else: val['passive_imponibile_non_esente' ] = com_line.passive_imponibile_non_esente + doc_vals.get('amount_untaxed', 0) val['passive_imposta' ] = com_line.passive_imposta + doc_vals.get('amount_tax', 0) if com_line_ids: line_id = com_line.id self.write(cr, uid, [com_line.id], val) else: line_id = self.create(cr, uid, val) return line_id class spesometro_comunicazione_line_SA(orm.Model): ''' QUADRO SA - Operazioni senza fattura esposte in forma aggregata ''' _name = "spesometro.comunicazione.line.sa" _description = "Spesometro - Comunicazione linee quadro SA" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione' , ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'codice_fiscale': fields.char('Codice Fiscale', size=16), 'numero_operazioni': fields.integer('Numero operazioni'), 'importo_complessivo': fields.float('Importo complessivo', digits_compute=dp.get_precision('Account')), 'noleggio': fields.selection((('A','Autovettura'), ('B','Caravan'), ('C','Altri Veicoli'), ('D','Unità da diporto'), ('E','Aeromobii')),'Leasing'), } def add_line(self, cr, uid, move, invoice, arg): comunicazione_lines_obj = self.pool.get('spesometro.comunicazione.line.fa') comunicazione_id = arg.get('comunicazione_id', False) com_line_search = [('comunicazione_id','=',comunicazione_id), ('partner_id', '=', move.partner_id.id)] com_line_ids = self.search(cr, uid, com_line_search) val = {} # Valori documento doc_vals = self.pool.get('spesometro.comunicazione').compute_invoice_amounts(cr, uid, move, invoice, arg) # New partner if not com_line_ids: val = { 'comunicazione_id' : comunicazione_id, 'partner_id' : move.partner_id.id, 'codice_fiscale' : move.partner_id.fiscalcode or False, 'noleggio' : move.partner_id.spesometro_leasing or False, 'numero_operazioni' : 1, 'importo_complessivo' : doc_vals.get('amount_total', 0), } # Partner already exists if com_line_ids: for com_line in self.browse(cr, uid, com_line_ids): val['numero_operazioni'] = com_line.numero_operazioni + 1 val['importo_complessivo'] = com_line.importo_complessivo + doc_vals.get('amount_total', 0) if com_line_ids: line_id = com_line.id self.write(cr, uid, [com_line.id], val) else: line_id = self.create(cr, uid, val) return line_id class spesometro_comunicazione_line_BL(orm.Model): ''' QUADRO BL - Operazioni con paesi con fiscalità privilegiata (è obbligatorio compilare le sezioni BL001, BL002 e almeno un campo delle sezioni BL003, BL004, BL005, BL006, BL007, BL008) - Operazioni con soggetti non residenti (è obbligatorio compilare le sezioni BL001, BL002 e almeno un campo delle sezioni BL003 e BL006) - Acquisti di servizi da soggetti non residenti (è obbligatorio compilare le sezioni BL001, BL002 e almeno un campo della sezione BL006) ''' _name = "spesometro.comunicazione.line.bl" _description = "Spesometro - Comunicazione linee quadro BL" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'codice_fiscale': fields.char('Codice Fiscale', size=16), 'numero_operazioni': fields.integer('Numero operazioni'), 'importo_complessivo': fields.integer('Importo complessivo', digits_compute=dp.get_precision('Account')), 'noleggio': fields.selection((('A','Autovettura'), ('B','Caravan'), ('C','Altri Veicoli'), ('D','Unità da diporto'), ('E','Aeromobii')),'Leasing'), 'pf_cognome': fields.char('Cognome', size=24, help=""), 'pf_nome': fields.char('Nome', size=20, help=""), 'pf_data_nascita': fields.date('Data di nascita'), 'pf_comune_stato_nascita': fields.char('Comune o stato estero di nascita', size=40), 'pf_provincia_nascita': fields.char('Provincia', size=2), 'pf_codice_stato_estero': fields.char('Codice Stato Estero', size=3, help="Deve essere uno di quelli presenti nella tabella 'elenco dei paesi e\ territori esteri' pubblicata nelle istruzioni del modello Unico"), 'pg_denominazione': fields.char('Denominazione/Ragione sociale', size=60), 'pg_citta_estera_sede_legale': fields.char('Città estera delle Sede legale', size=40), 'pg_codice_stato_estero': fields.char('Codice Stato Estero', size=3, help="Deve essere uno di quelli presenti nella tabella 'elenco dei paesi e\ territori esteri' pubblicata nelle istruzioni del modello Unico"), 'pg_indirizzo_sede_legale': fields.char('Indirizzo sede legale', size=60), 'codice_identificativo_IVA': fields.char('Codice identificativo IVA', size=16), 'operazione_fiscalita_privilegiata': fields.boolean('Operazione con pesei con fiscalità privilegiata'), 'operazione_con_soggetti_non_residenti': fields.boolean('Operazione con soggetto non residente'), 'Acquisto_servizi_da_soggetti_non_residenti': fields.boolean('Acquisto di servizi da soggetti non residenti'), 'attive_importo_complessivo': fields.float('Tot operaz. attive impon., non impon ed esenti', digits_compute=dp.get_precision('Account'), help="Totale operazioni imponibili, non imponibili ed esenti"), 'attive_imposta': fields.float('Tot operaz. attive imposta', digits_compute=dp.get_precision('Account'), help="Totale imposta"), 'attive_non_sogg_cessione_beni': fields.float('Operaz.attive non soggette ad IVA - Cessione beni', digits_compute=dp.get_precision('Account'), help="Totale operazioni imponibili, non imponibili ed esenti"), 'attive_non_sogg_servizi': fields.float('Operaz.attive non soggette ad IVA - Servizi', digits_compute=dp.get_precision('Account'), help="Totale operazioni imponibili, non imponibili ed esenti"), 'attive_note_variazione': fields.float('Totale note variazione', digits_compute=dp.get_precision('Account'), help="Totale note di variazione a debito per la controparte"), 'attive_note_variazione_imposta': fields.float('Totale imposta note variazione', digits_compute=dp.get_precision('Account'), help="Totale imposta sulle note di variazione a debito"), 'passive_importo_complessivo': fields.float('Tot operaz. passive impon., non impon ed esenti', digits_compute=dp.get_precision('Account'), help="Totale operazioni imponibili, non imponibili ed esenti"), 'passive_imposta': fields.float('Tot operaz. passive imposta', digits_compute=dp.get_precision('Account'), help="Totale imposta"), 'passive_non_sogg_importo_complessivo': fields.float('Operaz.passive non soggette ad IVA', digits_compute=dp.get_precision('Account'), help="Totale operazioni imponibili, non imponibili ed esenti"), 'passive_note_variazione': fields.float('Totale note variazione', digits_compute=dp.get_precision('Account'), help="Totale note di variazione a debito per la controparte"), 'passive_note_variazione_imposta': fields.float('Totale imposta note variazione', digits_compute=dp.get_precision('Account'), help="Totale imposta sulle note di variazione a debito"), } def add_line(self, cr, uid, move, invoice, arg): comunicazione_lines_obj = self.pool.get('spesometro.comunicazione.line.bl') comunicazione_id = arg.get('comunicazione_id', False) com_line_search = [('comunicazione_id','=',comunicazione_id), ('partner_id', '=', move.partner_id.id)] com_line_ids = self.search(cr, uid, com_line_search) val = {} # Valori documento doc_vals = self.pool.get('spesometro.comunicazione').compute_invoice_amounts(cr, uid, move, invoice, arg) # New partner if not com_line_ids: # p.iva if move.partner_id.vat: partita_iva = move.partner_id.vat[2:] else: partita_iva = '{:11s}'.format("".zfill(11)) # prov. nascita prov_code = False if move.partner_id.birth_city.name: city_data = move.partner_id.address[0]._set_vals_city_data(cr, uid, {'city' : move.partner_id.birth_city.name}) prov_id = city_data.get('province_id', False) if prov_id: prov = self.pool.get('res.province').borwse(cr, uid, prov_id) prov_nascita_code = prov.code val = { 'comunicazione_id' : comunicazione_id, 'partner_id' : move.partner_id.id, 'codice_fiscale' : move.partner_id.fiscalcode or False, 'noleggio' : move.partner_id.spesometro_leasing or False, 'pf_cognome' : move.partner_id.fiscalcode_surname or False, 'pf_nome' : move.partner_id.fiscalcode_firstname or False, 'pf_data_nascita' : move.partner_id.birth_date or False, 'pf_comune_stato_nascita' : move.partner_id.birth_city.name or False, 'pf_provincia_nascita' : prov_code or False, 'pf_codice_stato_estero' : move.partner_id.address[0].country_id.codice_stato_agenzia_entrate or '', 'pg_denominazione' : move.partner_id.name or False, 'pg_citta_estera_sede_legale' : move.partner_id.address[0].city or False, 'pg_codice_stato_estero' : move.partner_id.address[0].country_id.codice_stato_agenzia_entrate or '', 'pg_indirizzo_sede_legale' : move.partner_id.address[0].street or False, 'operazione_fiscalita_privilegiata' : False, 'operazione_con_soggetti_non_residenti' : False, 'Acquisto_servizi_da_soggetti_non_residenti' : False, } if move.partner_id.spesometro_operazione == 'BL1': val['operazione_fiscalita_privilegiata'] = True elif move.partner_id.spesometro_operazione == 'BL2': val['operazione_con_soggetti_non_residenti'] = True elif move.partner_id.spesometro_operazione == 'BL3': val['Acquisto_servizi_da_soggetti_non_residenti'] = True # attive if arg.get('segno', False) == 'attiva': if val['operazione_fiscalita_privilegiata'] or val['operazione_con_soggetti_non_residenti']: val['attive_importo_complessivo'] = doc_vals.get('amount_total', 0) val['attive_imposta'] = doc_vals.get('amount_tax', 0) if val['operazione_fiscalita_privilegiata'] == True: if move.partner_id.spesometro_operazione == 'cessioni': val['attive_non_sogg_cessione_beni'] = doc_vals.get('amount_total', 0) else: val['attive_non_sogg_servizi'] = doc_vals.get('amount_total', 0) if 'refund' in move.journal_id.type: val['attive_note_variazione'] = doc_vals.get('amount_untaxed', 0) val['attive_note_variazione_imposta'] = doc_vals.get('amount_tax', 0) # passive else: if val['operazione_fiscalita_privilegiata'] or val['operazione_con_soggetti_non_residenti'] or val['Acquisto_servizi_da_soggetti_non_residenti']: val['passive_importo_complessivo'] = doc_vals.get('amount_total', 0) val['passive_imposta'] = doc_vals.get('amount_tax', 0) if val['operazione_fiscalita_privilegiata'] == True: val['passive_non_sogg_importo_complessivo'] = doc_vals.get('amount_total', 0) if 'refund' in move.journal_id.type: val['passive_note_variazione'] = doc_vals.get('amount_untaxed', 0) val['passive_note_variazione_imposta'] = doc_vals.get('amount_tax', 0) # Partner already exists if com_line_ids: for com_line in self.browse(cr, uid, com_line_ids): # attive if arg.get('segno', False) == 'attiva': if val['operazione_fiscalita_privilegiata'] or val['operazione_con_soggetti_non_residenti']: val['attive_importo_complessivo'] = com_line.attive_importo_complessivo + doc_vals.get('amount_total', 0) val['attive_imposta'] = com_line.attive_imposta + doc_vals.get('amount_tax', 0) if val['operazione_fiscalita_privilegiata'] == True: if move.partner_id.spesometro_operazione == 'cessioni': val['attive_non_sogg_cessione_beni'] = com_line.attive_non_sogg_cessione_beni + doc_vals.get('amount_total', 0) else: val['attive_non_sogg_servizi'] = com_line.attive_non_sogg_servizi + doc_vals.get('amount_total', 0) if 'refund' in move.journal_id.type: val['attive_note_variazione'] = com_line.attive_note_variazione + doc_vals.get('amount_untaxed', 0) val['attive_note_variazione_imposta'] = com_line.attive_note_variazione_imposta + doc_vals.get('amount_tax', 0) # passive else: if val['operazione_fiscalita_privilegiata'] or val['operazione_con_soggetti_non_residenti'] or val['Acquisto_servizi_da_soggetti_non_residenti']: val['passive_importo_complessivo'] = com_line.passive_importo_complessivo + doc_vals.get('amount_total', 0) val['passive_imposta'] = com_line.passive_imposta + doc_vals.get('amount_tax', 0) if val['operazione_fiscalita_privilegiata'] == True: val['passive_non_sogg_importo_complessivo'] = com_line.passive_non_sogg_importo_complessivo + doc_vals.get('amount_total', 0) if 'refund' in move.journal_id.type: val['passive_note_variazione'] = com_line.passive_note_variazione + doc_vals.get('amount_untaxed', 0) val['passive_note_variazione_imposta'] = com_line.passive_note_variazione_imposta + doc_vals.get('amount_tax', 0) if com_line_ids: line_id = com_line.id self.write(cr, uid, [com_line.id], val) else: line_id = self.create(cr, uid, val) return line_id class spesometro_comunicazione_line_FE(orm.Model): _name = "spesometro.comunicazione.line.fe" _description = "Spesometro - Comunicazione linee quadro FE" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'partita_iva': fields.char('Partita IVA', size=11), 'codice_fiscale': fields.char('Codice Fiscale', size=16), 'documento_riepilogativo': fields.boolean('Documento Riepilogativo'), 'noleggio': fields.selection((('A','Autovettura'), ('B','Caravan'), ('C','Altri Veicoli'), ('D','Unità da diporto'), ('E','Aeromobii')),'Leasing'), 'autofattura': fields.boolean('Autofattura'), 'data_documento': fields.date('Data documento'), 'data_registrazione': fields.date('Data registrazione'), 'numero_fattura': fields.char('Numero Fattura - Doc riepilog.', size=16), 'importo': fields.float('Importo', digits_compute=dp.get_precision('Account')), 'imposta': fields.float('Imposta', digits_compute=dp.get_precision('Account')), } class spesometro_comunicazione_line_FR(orm.Model): _name = "spesometro.comunicazione.line.fr" _description = "Spesometro - Comunicazione linee quadro FR" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'partita_iva': fields.char('Partita IVA', size=11), 'documento_riepilogativo': fields.boolean('Documento Riepilogativo'), 'data_documento': fields.date('Data documento'), 'data_registrazione': fields.date('Data registrazione'), 'iva_non_esposta': fields.boolean('IVA non esposta'), 'reverse_charge': fields.boolean('Reverse charge'), 'autofattura': fields.boolean('Autofattura'), 'importo': fields.float('Importo', digits_compute=dp.get_precision('Account')), 'imposta': fields.float('Imposta', digits_compute=dp.get_precision('Account')), } class spesometro_comunicazione_line_NE(orm.Model): _name = "spesometro.comunicazione.line.ne" _description = "Spesometro - Comunicazione linee quadro NE" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'partita_iva': fields.char('Partita IVA', size=11), 'codice_fiscale': fields.char('Codice Fiscale', size=16), 'data_emissione': fields.date('Data emissione'), 'data_registrazione': fields.date('Data registrazione'), 'numero_nota': fields.char('Numero Nota', size=16), 'importo': fields.float('Importo', digits_compute=dp.get_precision('Account')), 'imposta': fields.float('Imposta', digits_compute=dp.get_precision('Account')), } class spesometro_comunicazione_line_NR(orm.Model): _name = "spesometro.comunicazione.line.nr" _description = "Spesometro - Comunicazione linee quadro NR" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'partita_iva': fields.char('Partita IVA', size=11), 'data_documento': fields.date('Data documento'), 'data_registrazione': fields.date('Data registrazione'), 'importo': fields.float('Importo', digits_compute=dp.get_precision('Account')), 'imposta': fields.float('Imposta', digits_compute=dp.get_precision('Account')), } class spesometro_comunicazione_line_DF(orm.Model): _name = "spesometro.comunicazione.line.df" _description = "Spesometro - Comunicazione linee quadro DF" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'codice_fiscale': fields.char('Codice Fiscale', size=16), 'data_operazione': fields.date('Data operazione'), 'importo': fields.float('Importo', digits_compute=dp.get_precision('Account')), 'noleggio': fields.selection((('A','Autovettura'), ('B','Caravan'), ('C','Altri Veicoli'), ('D','Unità da diporto'), ('E','Aeromobii')),'Leasing'), } class spesometro_comunicazione_line_FN(orm.Model): _name = "spesometro.comunicazione.line.fn" _description = "Spesometro - Comunicazione linee quadro FN" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'pf_cognome': fields.char('Cognome', size=24, help=""), 'pf_nome': fields.char('Nome', size=20, help=""), 'pf_data_nascita': fields.date('Data di nascita'), 'pf_comune_stato_nascita': fields.char('Comune o stato estero di nascita', size=40), 'pf_provincia_nascita': fields.char('Provincia', size=2), 'pf_codice_stato_estero_domicilio': fields.char('Codice Stato Estero del Domicilio', size=3, help="Deve essere uno di quelli presenti nella tabella 'elenco dei paesi e\ territori esteri' pubblicata nelle istruzioni del modello Unico"), 'pg_denominazione': fields.char('Denominazione/Ragione sociale', size=60), 'pg_citta_estera_sede_legale': fields.char('Città estera delle Sede legale', size=40), 'pg_codice_stato_estero_domicilio': fields.char('Codice Stato Estero del Domicilio', size=3, help="Deve essere uno di quelli presenti nella tabella 'elenco dei paesi e\ territori esteri' pubblicata nelle istruzioni del modello Unico"), 'pg_indirizzo_sede_legale': fields.char('Indirizzo legale', size=40), 'data_emissione': fields.date('Data emissione'), 'data_registrazione': fields.date('Data registrazione'), 'numero_fattura': fields.char('Numero Fattura/Doc riepilog.', size=16), 'noleggio': fields.selection((('A','Autovettura'), ('B','Caravan'), ('C','Altri Veicoli'), ('D','Unità da diporto'), ('E','Aeromobii')),'Leasing'), 'importo': fields.float('Importo', digits_compute=dp.get_precision('Account')), 'imposta': fields.float('Imposta', digits_compute=dp.get_precision('Account')), } class spesometro_comunicazione_line_SE(orm.Model): ''' QUADRO SE - Acquisti di servizi da non residenti e Acquisti da operatori di San Marino ''' _name = "spesometro.comunicazione.line.se" _description = "Spesometro - Comunicazione linee quadro SE" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'pf_cognome': fields.char('Cognome', size=24, help=""), 'pf_nome': fields.char('Nome', size=20, help=""), 'pf_data_nascita': fields.date('Data di nascita'), 'pf_comune_stato_nascita': fields.char('Comune o stato estero di nascita', size=40), 'pf_provincia_nascita': fields.char('Provincia', size=2), 'pf_codice_stato_estero_domicilio': fields.char('Codice Stato Estero del Domicilio', size=3, help="Deve essere uno di quelli presenti nella tabella 'elenco dei paesi e\ territori esteri' pubblicata nelle istruzioni del modello Unico"), 'pg_denominazione': fields.char('Denominazione/Ragione sociale', size=60), 'pg_citta_estera_sede_legale': fields.char('Città estera delle Sede legale', size=40), 'pg_codice_stato_estero_domicilio': fields.char('Codice Stato Estero del Domicilio', size=3, help="Deve essere uno di quelli presenti nella tabella 'elenco dei paesi e\ territori esteri' pubblicata nelle istruzioni del modello Unico"), 'pg_indirizzo_sede_legale': fields.char('Indirizzo legale', size=40), 'codice_identificativo_IVA': fields.char('Codice Identificativo IVA (037=San Marino)', size=3), 'data_emissione': fields.date('Data emissione'), 'data_registrazione': fields.date('Data registrazione'), 'numero_fattura': fields.char('Numero Fattura/Doc riepilog.', size=16), 'importo': fields.float('Importo/imponibile', digits_compute=dp.get_precision('Account')), 'imposta': fields.float('Imposta', digits_compute=dp.get_precision('Account')), } def add_line(self, cr, uid, move, invoice, arg): comunicazione_lines_obj = self.pool.get('spesometro.comunicazione.line.se') comunicazione_id = arg.get('comunicazione_id', False) com_line_search = [('comunicazione_id','=',comunicazione_id), ('partner_id', '=', move.partner_id.id)] com_line_ids = self.search(cr, uid, com_line_search) val = {} # Valori documento doc_vals = self.pool.get('spesometro.comunicazione').compute_invoice_amounts(cr, uid, move, invoice, arg) # p.iva if move.partner_id.vat: partita_iva = move.partner_id.vat[2:] else: partita_iva = '{:11s}'.format("".zfill(11)) # prov. nascita prov_code = False if move.partner_id.birth_city.name: city_data = move.partner_id.address[0]._set_vals_city_data(cr, uid, {'city' : move.partner_id.birth_city.name}) prov_id = city_data.get('province_id', False) if prov_id: prov = self.pool.get('res.province').borwse(cr, uid, prov_id) prov_nascita_code = prov.code # Indirizzo address = self.pool.get('spesometro.comunicazione')._get_partner_address_obj(cr, uid, move, invoice, arg) # Codice identificativo IVA -Da indicare esclusivamente per operazioni con San Marino (Codice Stato = 037) codice_identificativo_iva='' if self.pool.get('spesometro.comunicazione').partner_is_from_san_marino(cr, uid, move, invoice, arg): codice_identificativo_iva = '037' val = { 'comunicazione_id' : comunicazione_id, 'partner_id' : move.partner_id.id, 'codice_fiscale' : move.partner_id.fiscalcode or False, 'noleggio' : move.partner_id.spesometro_leasing or False, 'pf_cognome' : move.partner_id.fiscalcode_surname or False, 'pf_nome' : move.partner_id.fiscalcode_firstname or False, 'pf_data_nascita' : move.partner_id.birth_date or False, 'pf_comune_stato_nascita' : move.partner_id.birth_city.name or False, 'pf_provincia_nascita' : prov_code or False, 'pf_codice_stato_estero_domicilio' : address.country_id.codice_stato_agenzia_entrate or codice_identificativo_iva or '', 'pg_denominazione' : move.partner_id.name or False, 'pg_citta_estera_sede_legale' : address.city or False, 'pg_codice_stato_estero_domicilio' : address.country_id.codice_stato_agenzia_entrate or codice_identificativo_iva or '', 'pg_indirizzo_sede_legale' : address.street or False, 'codice_identificativo_IVA' : codice_identificativo_iva, 'data_emissione': move.date, 'data_registrazione': invoice.date_invoice or move.date, 'numero_fattura': move.name, 'importo': doc_vals.get('amount_untaxed', 0), 'imposta': doc_vals.get('amount_tax', 0) } line_id = self.create(cr, uid, val) return line_id class spesometro_comunicazione_line_TU(orm.Model): _name = "spesometro.comunicazione.line.tu" _description = "Spesometro - Comunicazione linee quadro TU" _columns = { 'comunicazione_id': fields.many2one('spesometro.comunicazione', 'Comunicazione', ondelete='cascade'), 'partner_id': fields.many2one('res.partner', 'Partner'), 'cognome': fields.char('Cognome', size=24, help=""), 'nome': fields.char('Nome', size=20, help=""), 'data_nascita': fields.date('Data di nascita'), 'comune_stato_nascita': fields.char('Comune o stato estero di nascita', size=40), 'provincia_nascita': fields.char('Provincia', size=2), 'citta_estera_residenza': fields.char('Città Estera di residenza', size=40), 'codice_stato_estero': fields.char('Codice Stato Estero', size=3, help="Deve essere uno di quelli presenti nella tabella 'elenco dei paesi e\ territori esteri' pubblicata nelle istruzioni del modello Unico"), 'indirizzo_estero_residenza': fields.char('Indirizzo Estero di residenza', size=40), 'data_emissione': fields.date('Data emissione'), 'data_registrazione': fields.date('Data registrazione'), 'numero_fattura': fields.char('Numero Fattura/Doc riepilog.', size=16), 'importo': fields.float('Importo/imponibile', digits_compute=dp.get_precision('Account')), 'imposta': fields.float('Imposta', digits_compute=dp.get_precision('Account')), }
agpl-3.0
LtRipley36706/ACE-World
Database/3-Core/9 WeenieDefaults/SQL/Creature/Golem/00198 Limestone Golem.sql
5143
DELETE FROM `weenie` WHERE `class_Id` = 198; INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`) VALUES (198, 'golemlimestone', 10, '2019-02-10 00:00:00') /* Creature */; INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`) VALUES (198, 1, 16) /* ItemType - Creature */ , (198, 2, 13) /* CreatureType - Golem */ , (198, 6, -1) /* ItemsCapacity */ , (198, 7, -1) /* ContainersCapacity */ , (198, 16, 1) /* ItemUseable - No */ , (198, 25, 15) /* Level */ , (198, 93, 1032) /* PhysicsState - ReportCollisions, Gravity */ , (198, 133, 2) /* ShowableOnRadar - ShowMovement */ , (198, 8007, 0) /* PCAPRecordedAutonomousMovement */; INSERT INTO `weenie_properties_bool` (`object_Id`, `type`, `value`) VALUES (198, 1, True ) /* Stuck */; INSERT INTO `weenie_properties_string` (`object_Id`, `type`, `value`) VALUES (198, 1, 'Limestone Golem') /* Name */ , (198, 8006, 'AAA9AAAAAAA=') /* PCAPRecordedCurrentMotionState */; INSERT INTO `weenie_properties_d_i_d` (`object_Id`, `type`, `value`) VALUES (198, 1, 33556426) /* Setup */ , (198, 2, 150995073) /* MotionTable */ , (198, 3, 536870933) /* SoundTable */ , (198, 6, 67112775) /* PaletteBase */ , (198, 8, 100667940) /* Icon */ , (198, 22, 872415324) /* PhysicsEffectTable */ , (198, 8001, 8388630) /* PCAPRecordedWeenieHeader - ItemsCapacity, ContainersCapacity, Usable, RadarBehavior */ , (198, 8003, 20) /* PCAPRecordedObjectDesc - Stuck, Attackable */ , (198, 8005, 104451) /* PCAPRecordedPhysicsDesc - CSetup, MTable, STable, PeTable, Position, Movement */; INSERT INTO `weenie_properties_position` (`object_Id`, `position_Type`, `obj_Cell_Id`, `origin_X`, `origin_Y`, `origin_Z`, `angles_W`, `angles_X`, `angles_Y`, `angles_Z`) VALUES (198, 8040, 3830317091, 109.5221, 63.23374, 14.74052, 0.4325419, 0, 0, -0.9016138) /* PCAPRecordedLocation */ /* @teleloc 0xE44E0023 [109.522100 63.233740 14.740520] 0.432542 0.000000 0.000000 -0.901614 */; INSERT INTO `weenie_properties_i_i_d` (`object_Id`, `type`, `value`) VALUES (198, 8000, 3685795298) /* PCAPRecordedObjectIID */; INSERT INTO `weenie_properties_attribute` (`object_Id`, `type`, `init_Level`, `level_From_C_P`, `c_P_Spent`) VALUES (198, 1, 90, 0, 0) /* Strength */ , (198, 2, 130, 0, 0) /* Endurance */ , (198, 3, 20, 0, 0) /* Quickness */ , (198, 4, 30, 0, 0) /* Coordination */ , (198, 5, 70, 0, 0) /* Focus */ , (198, 6, 70, 0, 0) /* Self */; INSERT INTO `weenie_properties_attribute_2nd` (`object_Id`, `type`, `init_Level`, `level_From_C_P`, `c_P_Spent`, `current_Level`) VALUES (198, 1, 30, 0, 0, 95) /* MaxHealth */ , (198, 3, 40, 0, 0, 170) /* MaxStamina */ , (198, 5, 40, 0, 0, 110) /* MaxMana */; INSERT INTO `weenie_properties_create_list` (`object_Id`, `destination_Type`, `weenie_Class_Id`, `stack_Size`, `palette`, `shade`, `try_To_Bond`) VALUES (198, 9, 2416, 1, 0, 0, False) /* Create Gem (2416) for ContainTreasure */ , (198, 9, 273, 37, 0, 0, False) /* Create Pyreal (273) for ContainTreasure */ , (198, 9, 8329, 1, 0, 0, False) /* Create Lead Pea (8329) for ContainTreasure */ , (198, 9, 25640, 0, 0, 0, False) /* Create Leather Cowl (25640) for ContainTreasure */ , (198, 9, 1728, 0, 0, 0, False) /* Create Scroll of Monster Attunement Self (1728) for ContainTreasure */ , (198, 9, 2434, 0, 0, 0, False) /* Create Lesser Mana Stone (2434) for ContainTreasure */ , (198, 9, 296, 0, 0, 0, False) /* Create Crown (296) for ContainTreasure */ , (198, 9, 2406, 1, 0, 0, False) /* Create Gem (2406) for ContainTreasure */ , (198, 9, 129, 0, 0, 0, False) /* Create Sandals (129) for ContainTreasure */ , (198, 9, 2418, 1, 0, 0, False) /* Create Gem (2418) for ContainTreasure */ , (198, 9, 27331, 0, 0, 0, False) /* Create Minor Mana Stone (27331) for ContainTreasure */ , (198, 9, 297, 0, 0, 0, False) /* Create Ring (297) for ContainTreasure */ , (198, 9, 41064, 0, 0, 0, False) /* Create Lightning Khanda-handled Mace (41064) for ContainTreasure */ , (198, 9, 148, 0, 0, 0, False) /* Create Cup (148) for ContainTreasure */ , (198, 9, 2366, 0, 0, 0, False) /* Create Orb (2366) for ContainTreasure */ , (198, 9, 2589, 0, 0, 0, False) /* Create Smock (2589) for ContainTreasure */ , (198, 9, 2683, 0, 0, 0, False) /* Create Scroll of Frailty Other III (2683) for ContainTreasure */ , (198, 9, 254, 0, 0, 0, False) /* Create Stoup (254) for ContainTreasure */ , (198, 9, 93, 0, 0, 0, False) /* Create Round Shield (93) for ContainTreasure */ , (198, 9, 21304, 0, 0, 0, False) /* Create Scroll of Flame Arc III (21304) for ContainTreasure */ , (198, 9, 68, 0, 0, 0, False) /* Create Studded Leather Greaves (68) for ContainTreasure */; INSERT INTO `weenie_properties_palette` (`object_Id`, `sub_Palette_Id`, `offset`, `length`) VALUES (198, 67112821, 0, 0);
agpl-3.0
rubengc/GamiPress
libraries/ct/includes/class-ct-database-schema-updater.php
11917
<?php /** * Database Table Schema Updater class * * @author GamiPress <contact@gamipress.com>, Ruben Garcia <rubengcdev@gamil.com> * * @since 1.0.0 */ // Exit if accessed directly defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'CT_DataBase_Schema_Updater' ) ) : class CT_DataBase_Schema_Updater { /** * @var CT_DataBase Database object */ public $ct_db; /** * @var CT_DataBase_Schema Database Schema object */ public $schema; /** * CT_DataBase_Schema_Updater constructor. * * @param CT_DataBase $ct_db */ public function __construct( $ct_db ) { $this->ct_db = $ct_db; $this->schema = $ct_db->schema; } /** * Run the database schema update * * @return bool */ public function run() { if( $this->schema ) { $alters = array(); // Get schema fields and current table definition to being compared $schema_fields = $this->schema->fields; $current_schema_fields = array(); // Get a description of current schema $schema_description = $this->ct_db->db->get_results( "DESCRIBE {$this->ct_db->table_name}" ); // Check stored schema with configured fields to check field deletions and build a custom array to be used after foreach( $schema_description as $field ) { $current_schema_fields[$field->Field] = $this->object_field_to_array( $field ); if( ! isset( $schema_fields[$field->Field] ) ) { // A field to be removed $alters[] = array( 'action' => 'DROP', 'column' => $field->Field ); } } // Check configured fields with stored fields to check field creations foreach( $schema_fields as $field_id => $field_args ) { if( ! isset( $current_schema_fields[$field_id] ) ) { // A field to be added $alters[] = array( 'action' => 'ADD', 'column' => $field_id ); } else { // Check changes in field definition // Check if key definition has changed if( $field_args['key'] !== $current_schema_fields[$field_id]['key'] ) { $alters[] = array( // Based the action on current key, if is true then ADD, if is false then DROP 'action' => ( $field_args['key'] ? 'ADD INDEX' : 'DROP INDEX' ), 'column' => $field_id ); } // TODO: Check the rest of available field args to determine was changed!!! } } // Queries to be executed at end of checks $queries = array(); foreach( $alters as $alter ) { $column = $alter['column']; switch( $alter['action'] ) { case 'ADD': $queries[] = "ALTER TABLE `{$this->ct_db->table_name}` ADD " . $this->schema->field_array_to_schema( $column, $schema_fields[$column] ) . "; "; break; case 'ADD INDEX': /* * Indexes have a maximum size of 767 bytes. WordPress 4.2 was moved to utf8mb4, which uses 4 bytes per character. * This means that an index which used to have room for floor(767/3) = 255 characters, now only has room for floor(767/4) = 191 characters. */ $max_index_length = 191; if( $schema_fields[$column]['length'] > $max_index_length || $schema_fields[$column]['type'] === 'text' ) { $add_index_query = '`' . $column . '`(`' . $column . '`(' . $max_index_length . '))'; } else { $add_index_query = '`' . $column . '`(' . $column . '`)'; } // Prevent errors if index already exists drop_index( $this->ct_db->table_name, $column ); // For indexes query should be executed directly $this->ct_db->db->query( "ALTER TABLE `{$this->ct_db->table_name}` ADD INDEX {$add_index_query}" ); break; case 'MODIFY': $queries[] = "ALTER TABLE `{$this->ct_db->table_name}` MODIFY " . $this->schema->field_array_to_schema( $column, $schema_fields[$column] ) . "; "; break; case 'DROP': $queries[] = "ALTER TABLE `{$this->ct_db->table_name}` DROP COLUMN `{$column}`; "; // Better use a built-in function here? //maybe_drop_column( $this->ct_db->table_name, $column, "ALTER TABLE `{$this->ct_db->table_name}` DROP COLUMN {$column}" ); break; case 'DROP INDEX': // For indexes query should be executed directly //$this->ct_db->db->query( "ALTER TABLE `{$this->ct_db->table_name}` DROP INDEX {$column}" ); // Use a built-in function for safe drop drop_index( $this->ct_db->table_name, $column ); break; } } if( ! empty( $queries ) ) { // Execute the each SQL query foreach( $queries as $sql ) { $updated = $this->ct_db->db->query( $sql ); } // Was anything updated? return ! empty( $updated ); } return true; } } /** * Object field returned by the DESCRIBE sentence * * @param stdClass $field stdClass object with next keys: * - string Field Field name * - string Type Field type ("type(length) signed|unsigned") * - string Null Nullable definition ("YES"|"NO") * - string Key Key. "PRI" for primary, "MUL" for key definition ("PRI"|"MUL") * - string|NULL Default Default definition. A NULL object if not defined. ("Default value"|NULL) * - string Extra Extra definitions, "auto_increment" for example * * @return array */ public function object_field_to_array( $field ) { $field_args = array( 'type' => '', 'length' => 0, 'decimals' => 0, // numeric fields 'format' => '', // time fields 'options' => array(), // ENUM and SET types 'nullable' => (bool) ( $field->Null === 'YES' ), 'unsigned' => null, // numeric field 'zerofill' => null, // numeric field 'binary' => null, // text fields 'charset' => false, // text fields 'collate' => false, // text fields 'default' => false, 'auto_increment' => false, 'unique' => false, 'primary_key' => (bool) ( $field->Key === 'PRI' ), 'key' => (bool) ( $field->Key === 'MUL' ), ); // Determine the field type if( strpos( $field->Type, '(' ) !== false ) { // Check for "type(length)" or "type(length) signed|unsigned" $type_parts = explode( '(', $field->Type ); $field_args['type'] = $type_parts[0]; } else if( strpos( $field->Type, ' ' ) !== false ) { // Check for "type signed|unsigned" $type_parts = explode( ' ', $field->Type ); $field_args['type'] = $type_parts[0]; } $field_args['type'] = $field->Type; if( strpos( $field->Type, '(' ) !== false ) { // Check for "type(length)" or "type(length) signed|unsigned" $type_parts = explode( '(', $field->Type ); $type_part = $type_parts[1]; $type_definition_parts = explode( ')', $type_part ); $type_definition = $type_definition_parts[0]; if( ! empty( $type_definition ) ) { // Determine type definition args switch( strtoupper( $field_args['type'] ) ) { case 'ENUM': case 'SET': $field_args['options'] = explode( ',', $type_definition ); break; case 'REAL': case 'DOUBLE': case 'FLOAT': case 'DECIMAL': case 'NUMERIC': if( strpos( $type_definition, ',' ) !== false ) { $decimals = explode( ',', $type_definition ); $field_args['length'] = $decimals[0]; $field_args['decimals'] = $decimals[1]; } else if( absint( $type_definition ) !== 0 ) { $field_args['length'] = $type_definition; } break; case 'TIME': case 'TIMESTAMP': case 'DATETIME': $field_args['format'] = $type_definition; break; default: if( absint( $type_definition ) !== 0 ) { $field_args['length'] = $type_definition; } break; } } } // Check for "type signed|unsigned zerofill ..." or "type(length) signed|unsigned zerofill ..." $type_definition_parts = explode( ' ', $field->Type ); // Loop each field definition part to check extra parameters foreach( $type_definition_parts as $type_definition_part ) { if( $type_definition_part === 'unsigned' ) { $field_args['unsigned'] = true; } if( $type_definition_part === 'signed' ) { $field_args['unsigned'] = false; } if( $type_definition_part === 'zerofill' ) { $field_args['zerofill'] = true; } if( $type_definition_part === 'binary' ) { $field_args['binary'] = true; } } return $field_args; } } endif;
agpl-3.0
digitalbazaar/bitmunk
cpp/common/CatalogInterface.h
3619
/* * Copyright (c) 2007-2008 Digital Bazaar, Inc. All rights reserved. */ #ifndef bitmunk_common_CatalogInterface_H #define bitmunk_common_CatalogInterface_H #include "bitmunk/common/TypeDefinitions.h" namespace bitmunk { namespace common { /** * A CatalogInterface is a standard interface into a catalog of wares. It is * expected that various catalog modules' interfaces will implement this * interface according to their own specifics. * * @author Dave Longley */ class CatalogInterface { public: /** * Creates a new CatalogInterface. */ CatalogInterface() {}; /** * Destructs this CatalogInterface. */ virtual ~CatalogInterface() {}; /** * Populates the seller associated with the given user ID. * * @param userId the ID of the user. * @param seller the seller object to populate. * * @return true if successful, false if an Exception occurred. */ virtual bool populateSeller(UserId userId, Seller& seller) = 0; /** * Adds or updates a Ware in the catalog with the passed Ware. * * @param userId the ID of the user the ware belongs to. * @param w the Ware to add/update in the catalog. * * @return true if successful, false if an Exception occurred. */ virtual bool updateWare(UserId userId, Ware& w) = 0; /** * Removes a Ware from the catalog, if it exists. * * @param userId the ID of the user the ware belongs to. * @param w the Ware to remove from the catalog. * * @return true if successful, false if an Exception occurred. */ virtual bool removeWare(UserId userId, Ware& w) = 0; /** * Populates a Ware based on its ID. Any extraneous information not * in the catalog will be removed from the ware. * * @param userId the ID of the user the ware belongs to. * @param w the Ware to populate. * * @return true if successful, false if an Exception occurred. */ virtual bool populateWare(UserId userId, Ware& w) = 0; /** * Populates a Ware bundle based on its media ID and the given * MediaPreferences. Any extraneous information not in the catalog * will be removed from the ware. * * @param userId the ID of the user the ware belongs to. * @param w the Ware to populate, with media ID set. * @param prefs the MediaPreferences for the Ware. * * @return true if successful, false if an Exception occurred. */ virtual bool populateWareBundle( UserId userId, Ware& w, MediaPreferenceList& prefs) = 0; /** * Populates a FileInfo based on its ID. * * @param userId the ID of the user the FileInfo belongs to. * @param fi the FileInfo to populate. * * @return true if successful, false if an Exception occurred. */ virtual bool populateFileInfo(UserId userId, FileInfo& fi) = 0; /** * Populates the FileInfos for a Ware. * * @param userId the ID of the user the ware belongs to. * @param w the Ware to populate the FileInfos of. * * @return true if successful, false if an Exception occurred. */ virtual bool populateFileInfos(UserId userId, Ware& w) = 0; /** * Populates a FileInfoList. * * @param userId the ID of the user the FileInfos belong to. * @param fil the FileInfoList with FileInfos that have their IDs set. * * @return true if successful, false if an Exception occurred. */ virtual bool populateFileInfoList(UserId userId, FileInfoList& fil) = 0; // FIXME: add methods for searching catalog, etc }; } // end namespace common } // end namespace bitmunk #endif
agpl-3.0
epeios-q37/epeios
other/exercises/Hangman/en/i.py
1604
# coding: utf-8 import sys sys.path.append(".") from workshop.en.i import * DISCLOSE_SECRET_WORD = TRUE """ Some variables are now handled by the student. Names are free. """ """ Can be omitted, as 'reset(…)' will be call before the variables will be used. """ goodGuesses = "" errorsAmount = 0 """ NOTA: the four folowing functions are not called outside this file. """ def pickWord(*args): return workshop.rfPickWord(*args) def isLetterInWord(*args): return workshop.rfIsLetterInWord(*args) def getMask(*args): return workshop.rfGetMask(*args) def updateBody(*args): return workshop.rfUpdateBody(*args) """ Reset the variables and the display for a new round and return the secret word. """ def reset(suggestion,randomWord): global goodGuesses,errorsAmount secretWord = pickWord(suggestion,randomWord) goodGuesses = "" errorsAmount = 0 print(secretWord) display(getMask(secretWord,"")) return secretWord """ N.B.: NOT THREAD-SAFE!!! Multiple instances can be launched to show why this is a problem. """ """ - 'guess': the letter chosen by the player, If 'guess' in 'word', must update the mask, otherwise must update the drawing of the body. """ def handleGuess(guess,secretWord): global goodGuesses,errorsAmount if isLetterInWord(guess,secretWord): # Test is not mandatory if not isLetterInWord(guess,goodGuesses): goodGuesses += guess display(getMask(secretWord,goodGuesses)) else: errorsAmount += 1 updateBody(errorsAmount) go(globals())
agpl-3.0
kinoru/wild
src/GitHub.hs
3376
module GitHub ( CreateFailure(..) , uploadRelease ) where import Prelude hiding ((++)) import Data.Traversable import Data.Monoid import Control.Lens import Network.Wreq hiding (postWith) import Network.Wreq.Session import qualified Data.ByteString.Lazy as LB import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.Encoding as T import qualified Data.Aeson as A import qualified Data.HashMap.Strict as H import ByteString (ByteString, RawFilePath) import qualified ByteString as B import Platform (releaseSuffix) (++) :: Monoid m => m -> m -> m (++) = mappend data CreateFailure = AuthFail | DecodeFail | NotObject | MissingField Text | FieldTypeMismatch | CreateFailure Int deriving (Show) opts :: ByteString -> Options opts token = defaults & header "Accept" .~ ["application/vnd.github.v3+json"] & header "Authorization" .~ ["token " ++ token] & header "User-Agent" .~ ["wild"] & header "Content-Type" .~ ["application/json; charset=utf-8"] & checkResponse .~ Nothing createRelease :: Session -> ByteString -> ByteString -> ByteString -> ByteString -> IO (Either CreateFailure (Response LB.ByteString)) createRelease session token owner repo tagName = resp >>= \ r -> return $ case r ^. responseStatus . statusCode of 401 -> Left AuthFail _ -> Right r where resp = postWith (opts token) session uri content uri = B.unpack $ mconcat ["https://api.github.com/repos/", owner, "/", repo, "/releases"] content = mconcat [ "{\"tag_name\":\"", tagName, "\",\"name\":\"", tagName , "\",\"draft\":true,\"prerelease\":false,\ \\"target_commitish\":\"master\"}" ] lookupField :: Text -> Response LB.ByteString -> Either CreateFailure Text lookupField field r = case r ^. responseStatus . statusCode of 201 -> case A.decode (r ^. responseBody) of Nothing -> Left DecodeFail Just v -> case v of A.Object obj -> case field `H.lookup` obj of Nothing -> Left (MissingField field) Just v2 -> case v2 of A.String url -> Right url _ -> Left FieldTypeMismatch _ -> Left NotObject 401 -> Left AuthFail x -> Left (CreateFailure x) uploadAsset :: Session -> ByteString -> RawFilePath -> Text -> IO (Response LB.ByteString) uploadAsset session token path url = B.readFile path >>= postWith (opts token) session uploadURL where name = (snd $ B.breakEnd (== '/') path) <> "_" <> releaseSuffix uploadURL = B.unpack $ mconcat [T.encodeUtf8 $ T.takeWhile (/= '{') url, "?name=", name] uploadRelease :: ByteString -> ByteString -> ByteString -> ByteString -> [RawFilePath] -> IO (Either CreateFailure ()) uploadRelease token owner repo tagName paths = withSession $ \ s -> do r1 <- createRelease s token owner repo tagName case r1 >>= lookupField "upload_url" of Left err -> return $ Left err Right url -> fmap sequence_ <$> for paths $ \ path -> do r2 <- uploadAsset s token path url return $ case r2 ^. responseStatus . statusCode of 201 -> Right () 401 -> Left AuthFail x -> Left (CreateFailure x)
agpl-3.0
kusumandaru/pa53
app/Repositories/LeaveRepository.php
468
<?php namespace App\Repositories; use App\Models\Leave; use InfyOm\Generator\Common\BaseRepository; class LeaveRepository extends BaseRepository { /** * @var array */ protected $fieldSearchable = [ 'start_date', 'end_date', 'approval_id', 'status', 'created_at', 'updated_at' ]; /** * Configure the Model **/ public function model() { return Leave::class; } }
agpl-3.0
dethegeek/fusioninventory-for-glpi
inc/iprange_configsecurity.class.php
6066
<?php /* ------------------------------------------------------------------------ FusionInventory Copyright (C) 2010-2013 by the FusionInventory Development Team. http://www.fusioninventory.org/ http://forge.fusioninventory.org/ ------------------------------------------------------------------------ LICENSE This file is part of FusionInventory project. FusionInventory 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. FusionInventory 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 FusionInventory. If not, see <http://www.gnu.org/licenses/>. ------------------------------------------------------------------------ @package FusionInventory @author David Durieux @co-author @copyright Copyright (c) 2010-2013 FusionInventory team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link http://www.fusioninventory.org/ @link http://forge.fusioninventory.org/projects/fusioninventory-for-glpi/ @since 2014 ------------------------------------------------------------------------ */ if (!defined('GLPI_ROOT')) { die("Sorry. You can't access directly to this file"); } class PluginFusioninventoryIPRange_ConfigSecurity extends CommonDBRelation { // From CommonDBRelation static public $itemtype_1 = 'PluginFusioninventoryIPRange'; static public $items_id_1 = 'plugin_fusioninventory_ipranges_id'; static public $take_entity_1 = true ; static public $itemtype_2 = 'PluginFusioninventoryConfigSecurity'; static public $items_id_2 = 'plugin_fusioninventory_configsecurities_id'; static public $take_entity_2 = false ; function getTabNameForItem(CommonGLPI $item, $withtemplate=0) { $ong = array(); if ($item->getID() > 0) { $ong[] = __('Associated SNMP authentications', 'fusioninventory'); } return $ong; } static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) { $pfIPRange_ConfigSecurity = new self(); $pfIPRange_ConfigSecurity->showForm($item); } function getForbiddenStandardMassiveAction() { $forbidden = parent::getForbiddenStandardMassiveAction(); $forbidden[] = 'update'; return $forbidden; } function showForm(CommonDBTM $item, $options=array()) { $ID = $item->getField('id'); if ($item->isNewID($ID)) { return false; } if (!$item->can($item->fields['id'], READ)) { return false; } $rand = mt_rand(); $a_data = getAllDatasFromTable('glpi_plugin_fusioninventory_ipranges_configsecurities', "`plugin_fusioninventory_ipranges_id`='".$item->getID()."'", false, '`rank`'); $a_used = array(); foreach ($a_data as $data) { $a_used[] = $data['plugin_fusioninventory_configsecurities_id']; } echo "<div class='firstbloc'>"; echo "<form name='iprange_configsecurity_form$rand' id='iprange_configsecurity_form$rand' method='post' action='".Toolbox::getItemTypeFormURL('PluginFusioninventoryIPRange_ConfigSecurity')."' >"; echo "<table class='tab_cadre_fixe'>"; echo "<tr class='tab_bg_2'>"; echo "<th colspan='2'>".__('Add a SNMP authentication')."</th>"; echo "</tr>"; echo "<tr class='tab_bg_2'>"; echo "<td>"; Dropdown::show('PluginFusioninventoryConfigSecurity', array('used' => $a_used)); echo "</td>"; echo "<td>"; echo Html::hidden('plugin_fusioninventory_ipranges_id', array('value' => $item->getID())); echo "<input type='submit' name='add' value=\"". _sx('button', 'Associate')."\" class='submit'>"; echo "</td>"; echo "</tr>"; echo "</table>"; Html::closeForm(); echo "</div>"; // Display list of auth associated with IP range $rand = mt_rand(); echo "<div class='spaced'>"; Html::openMassiveActionsForm('mass'.__CLASS__.$rand); $massiveactionparams = array('container' => 'mass'.__CLASS__.$rand); Html::showMassiveActions($massiveactionparams); echo "<table class='tab_cadre_fixe'>"; echo "<tr class='tab_bg_2'>"; echo "<th width='10'>".Html::getCheckAllAsCheckbox('mass'.__CLASS__.$rand)."</th>"; echo "<th>"; echo __('SNMP Authentication', 'fusioninventory'); echo "</th>"; echo "<th>"; echo __('Version', 'fusioninventory'); echo "</th>"; echo "<th>"; echo __('Rank'); echo "</th>"; echo "</tr>"; $pfConfigSecurity = new PluginFusioninventoryConfigSecurity(); foreach ($a_data as $data) { echo "<tr class='tab_bg_2'>"; echo "<td>"; Html::showMassiveActionCheckBox(__CLASS__, $data["id"]); echo "</td>"; echo "<td>"; $pfConfigSecurity->getFromDB($data['plugin_fusioninventory_configsecurities_id']); echo $pfConfigSecurity->getLink(); echo "</td>"; echo "<td>"; echo $pfConfigSecurity->getSNMPVersion($pfConfigSecurity->fields['snmpversion']); echo "</td>"; echo "<td>"; echo $data['rank']; echo "</td>"; echo "</tr>"; } echo "</table>"; $massiveactionparams['ontop'] =false; Html::showMassiveActions($massiveactionparams); echo "</div>"; } function post_purgeItem() { } } ?>
agpl-3.0
kmshi/miroguide
channelguide/templates/donate/donate.html
4602
{% extends "donate/base.html" %} {% block extra-title %}<img src="{{STATIC_BASE_URL}}images/donate/sub-title.png" alt="If you believe in open media, we need your donation now" >{% endblock %} {% block content %} <div class="column left"> {% block message %} <p><strong>Supporters of Open Media:</strong></p> <p style="padding-top:10px;">Miro is made by a non-profit organization that is leading the fight for open internet video: hundreds of thousands of people use our open software every month, we've powered the distribution of thousands of independent creators and public broadcasters, and we're demonstrating why net neutrality matters. Miro has a chance to become a desktop application for a truly mass audience. If we can reach this point, we'll have ensured that open video distribution, without censorship or corporate gatekeepers, will be here to stay. But we're at a critical moment.</p> <p>Our team cares deeply about our mission and we need to ensure that our work can continue. Two large donors have promised to commit funding <strong>if</strong> we can also build strong support from our users. There is no more important time than right now for you to donate&mdash;we're taking steps towards <a style="color: inherit;" href="{{ BASE_URL }}donate/biz{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}">self-sustainability</a>&mdash;in the meantime we urgently need your support.</p> <p><a href="https://www.getmiro.com/about/donate/" onclick="javascript:showDonateRibbon(); return false;">I hope you’ll join our effort to build a more open media.</a></p> <p>Sincerely,</p> <p>Nicholas Reville, Executive Director</p> <p><span class="special">p.s. Are you in a position to give $1,000 or more? You can help us take our efforts much further. We have a special pitch we’d <a href="{{ BASE_URL }}donate/special{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}">like you to hear</a>.</span></p> {% endblock %} </div> <!--/COLUMN--> <div class="column right"> {% if request.GET.next %} <script type="text/javascript"> $(document).ready(function () { setThanksTimeout("{{ BASE_URL }}donate/thanks{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}"); }); </script> {% endif %} <a href="https://www.getmiro.com/about/donate/" onclick="javascript:showDonateRibbon(); return false;"><img src="{{ STATIC_BASE_URL }}images/donate/donate.png" alt="donate button" ></a> <div id="donate" style="left: -10000px; display: inline;"> <div class="amounts" style="display: none;"> <div class="g20" amount="20"></div> <div class="g50" amount="50"></div> <div class="g100" amount="100"></div> <div class="g200" amount="200"></div> <div class="other"><input size="3" ></div> </div> <div class="types" style="display: none;"> <a href="{{ PAYPAL_URL }}"><img src="{{ STATIC_BASE_URL }}images/donate/paypal.png" alt="Donate with Paypal" ></a> {#<a href="{{ CC_URL }}"><img src="{{ STATIC_BASE_URL }}images/donate/card.png" alt="Donate with a Credit Card" ></a>#} </div> <a href="#close" onclick="javascript:hideDonateRibbon(); return false;"><span class="close"></span></a> </div> {% block video %} <div id="video"><a href="{{ STATIC_BASE_URL }}movies/Miropcf-HelpUsMakeMediaMoreOpen316.mp4"><img src="{{ STATIC_BASE_URL }}images/donate/Miropcf-HelpUsMakeMediaMoreOpen877.jpg" alt="Thumbnail of OKGO's Andy Ross talking about Why Miro Matters" ><span class="download">download video</span></a></div> <script type="text/javascript"> if (navigator.userAgent.indexOf('Linux') == -1 || navigator.userAgent.indexOf('Miro') == -1) { createVideo($("#video"), "{{ STATIC_BASE_URL }}movies/Miropcf-HelpUsMakeMediaMoreOpen316.flv", "{{ STATIC_BASE_URL }}movies/Miropcf-HelpUsMakeMediaMoreOpen316.mp4", "{{ STATIC_BASE_URL }}images/donate/Miropcf-HelpUsMakeMediaMoreOpen877.jpg", 280, 210); } </script> <p class="subvid">OK Go's Andy Ross: Why Miro Matters</p> {% endblock %} {% if request.GET.next %} <a href="{{ request.GET.next }}"><img src="{{ STATIC_BASE_URL }}images/donate/goto-guide.png" alt="go to the guide" ></a> {% endif %} {% block moreinfo %} <div id="moreinfo"> <p>Additional Information:</p> <ul> <li><a href="{{ BASE_URL }}donate/biz{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}">Making Miro Sustainable</a></li> <li><a href="{{ BASE_URL }}donate/special{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}">Our Pitch to Big Funders</a></li> </ul> </div> {% endblock %} </div> <!--/COLUMN--> {% endblock %}
agpl-3.0
RestComm/jss7
map/map-api/src/main/java/org/restcomm/protocols/ss7/map/api/service/callhandling/RUFOutcome.java
2642
/* * TeleStax, Open Source Cloud Communications Copyright 2012. * and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.restcomm.protocols.ss7.map.api.service.callhandling; /** * RUF-Outcome ::= ENUMERATED{ accepted (0), rejected (1), noResponseFromFreeMS (2), -- T4 Expiry noResponseFromBusyMS (3), -- * T10 Expiry udubFromFreeMS (4), udubFromBusyMS (5), ...} -- exception handling: -- reception of values 6-20 shall be mapped to * 'accepted' -- reception of values 21-30 shall be mapped to 'rejected' -- reception of values 31-40 shall be mapped to * 'noResponseFromFreeMS' -- reception of values 41-50 shall be mapped to 'noResponseFromBusyMS' -- reception of values 51-60 * shall be mapped to 'udubFromFreeMS' -- reception of values > 60 shall be mapped to 'udubFromBusyMS' * * * @author sergey vetyutnev * */ public enum RUFOutcome { accepted(0), rejected(1), noResponseFromFreeMS(2), // -- T4 Expiry noResponseFromBusyMS(3), // -- T10 Expiry udubFromFreeMS(4), udubFromBusyMS(5); private int code; private RUFOutcome(int code) { this.code = code; } public int getCode() { return this.code; } public static RUFOutcome getInstance(int code) { if (code == 0 || code >= 6 && code <= 20) return RUFOutcome.accepted; else if (code == 1 || code >= 21 && code <= 30) return RUFOutcome.rejected; else if (code == 2 || code >= 31 && code <= 40) return RUFOutcome.rejected; else if (code == 3 || code >= 41 && code <= 50) return RUFOutcome.rejected; else if (code == 4 || code >= 51 && code <= 60) return RUFOutcome.rejected; else return RUFOutcome.udubFromBusyMS; } }
agpl-3.0
printedheart/opennars
nars_logic/src/main/java/nars/clock/RealtimeNSClock.java
384
package nars.clock; /** nanosecond accuracy */ public class RealtimeNSClock extends RealtimeClock { public RealtimeNSClock(boolean updatePerCycle) { super(updatePerCycle); } @Override protected long getRealTime() { return System.nanoTime(); } @Override protected float unitsToSeconds(final long l) { return (l / 1e9f); } }
agpl-3.0
boob-sbcm/3838438
src/main/java/com/rapidminer/operator/learner/functions/kernel/jmysvm/svm/SVMregression.java
9029
/** * Copyright (C) 2001-2017 by RapidMiner and the contributors * * Complete list of developers available at our web site: * * http://rapidminer.com * * This program 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. * * This program 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 this program. * If not, see http://www.gnu.org/licenses/. */ package com.rapidminer.operator.learner.functions.kernel.jmysvm.svm; import com.rapidminer.operator.Operator; import com.rapidminer.operator.learner.functions.kernel.jmysvm.examples.SVMExamples; import com.rapidminer.operator.learner.functions.kernel.jmysvm.kernel.Kernel; import com.rapidminer.parameter.UndefinedParameterError; import com.rapidminer.tools.RandomGenerator; /** * Class for regression SVM * * @author Stefan Rueping, Ingo Mierswa */ public class SVMregression extends SVM { public SVMregression() {} public SVMregression(Operator paramOperator, Kernel kernel, SVMExamples sVMExamples, com.rapidminer.example.ExampleSet rapidMinerExamples, RandomGenerator randomGenerator) throws UndefinedParameterError { super(paramOperator, kernel, sVMExamples, rapidMinerExamples, randomGenerator); }; /** * Calls the optimizer */ @Override protected void optimize() { // optimizer-specific call // qp.n = working_set_size; int i; int j; double[] my_primal = primal; // equality constraint qp.b[0] = 0; for (i = 0; i < working_set_size; i++) { qp.b[0] += alphas[working_set[i]]; } ; // set initial optimization parameters double new_target = 0; double old_target = 0; double target_tmp; for (i = 0; i < working_set_size; i++) { target_tmp = my_primal[i] * qp.H[i * working_set_size + i] / 2; for (j = 0; j < i; j++) { target_tmp += my_primal[j] * qp.H[j * working_set_size + i]; } ; target_tmp += qp.c[i]; old_target += target_tmp * my_primal[i]; } ; double new_constraint_sum = 0; double my_is_zero = is_zero; int sv_count = working_set_size; // optimize boolean KKTerror = true; // KKT not yet satisfied boolean convError = false; // KKT can still be satisfied qp.max_allowed_error = convergence_epsilon; qp.x = primal; qp.solve(); primal = qp.x; lambda_WS = qp.lambda_eq; my_primal = primal; // loop while some KKT condition is not valid (alpha=0) int it = 3; double lambda_lo; while (KKTerror && (it > 0)) { // iterate optimization 3 times with changed sign on variables, if // KKT conditions are not satisfied KKTerror = false; it--; for (i = 0; i < working_set_size; i++) { if (my_primal[i] < is_zero) { lambda_lo = epsilon_neg + epsilon_pos - qp.c[i]; for (j = 0; j < working_set_size; j++) { lambda_lo -= my_primal[j] * qp.H[i * working_set_size + j]; } ; if (qp.A[i] > 0) { lambda_lo -= lambda_WS; } else { lambda_lo += lambda_WS; } ; if (lambda_lo < -convergence_epsilon) { // change sign of i KKTerror = true; qp.A[i] = -qp.A[i]; which_alpha[i] = !which_alpha[i]; my_primal[i] = -my_primal[i]; qp.c[i] = epsilon_neg + epsilon_pos - qp.c[i]; if (qp.A[i] > 0) { qp.u[i] = cNeg[working_set[i]]; } else { qp.u[i] = cPos[working_set[i]]; } ; for (j = 0; j < working_set_size; j++) { qp.H[i * working_set_size + j] = -qp.H[i * working_set_size + j]; qp.H[j * working_set_size + i] = -qp.H[j * working_set_size + i]; } ; if (quadraticLossNeg) { if (which_alpha[i]) { (qp.H)[i * (working_set_size + 1)] += 1 / cNeg[working_set[i]]; (qp.u)[i] = Double.MAX_VALUE; } else { // previous was neg (qp.H)[i * (working_set_size + 1)] -= 1 / cNeg[working_set[i]]; } ; } ; if (quadraticLossPos) { if (!which_alpha[i]) { (qp.H)[i * (working_set_size + 1)] += 1 / cPos[working_set[i]]; (qp.u)[i] = Double.MAX_VALUE; } else { // previous was pos (qp.H)[i * (working_set_size + 1)] -= 1 / cPos[working_set[i]]; } ; } ; } ; } ; } ; qp.x = my_primal; qp.solve(); my_primal = qp.x; lambda_WS = qp.lambda_eq; } ; KKTerror = true; while (KKTerror) { // clip sv_count = working_set_size; new_constraint_sum = qp.b[0]; for (i = 0; i < working_set_size; i++) { // check if at bound if (my_primal[i] <= my_is_zero) { // at lower bound my_primal[i] = qp.l[i]; sv_count--; } else if (qp.u[i] - my_primal[i] <= my_is_zero) { // at upper bound my_primal[i] = qp.u[i]; sv_count--; } ; new_constraint_sum -= qp.A[i] * my_primal[i]; } ; // enforce equality constraint if (sv_count > 0) { new_constraint_sum /= sv_count; logln(5, "adjusting " + sv_count + " alphas by " + new_constraint_sum); for (i = 0; i < working_set_size; i++) { if ((my_primal[i] > qp.l[i]) && (my_primal[i] < qp.u[i])) { // real sv my_primal[i] += qp.A[i] * new_constraint_sum; } ; } ; } else if (Math.abs(new_constraint_sum) > working_set_size * is_zero) { // error, can't get feasible point logln(5, "WARNING: No SVs, constraint_sum = " + new_constraint_sum); old_target = -Double.MIN_VALUE; convError = true; } ; // test descend new_target = 0; for (i = 0; i < working_set_size; i++) { // attention: optimizer changes one triangle of H! target_tmp = my_primal[i] * qp.H[i * working_set_size + i] / 2.0; for (j = 0; j < i; j++) { target_tmp += my_primal[j] * qp.H[j * working_set_size + i]; } ; target_tmp += qp.c[i]; new_target += target_tmp * my_primal[i]; } ; if (new_target < old_target) { KKTerror = false; if (descend < old_target - new_target) { target_count = 0; } else { convError = true; } ; logln(5, "descend = " + (old_target - new_target)); } else if (sv_count > 0) { // less SVs // set my_is_zero to min_i(primal[i]-qp.l[i], qp.u[i]-primal[i]) my_is_zero = Double.MAX_VALUE; for (i = 0; i < working_set_size; i++) { if ((my_primal[i] > qp.l[i]) && (my_primal[i] < qp.u[i])) { if (my_primal[i] - qp.l[i] < my_is_zero) { my_is_zero = my_primal[i] - qp.l[i]; } ; if (qp.u[i] - my_primal[i] < my_is_zero) { my_is_zero = qp.u[i] - my_primal[i]; } ; } ; } ; if (target_count == 0) { my_is_zero *= 2; } ; logln(5, "WARNING: no descend (" + (old_target - new_target) + " <= " + descend + "), adjusting is_zero to " + my_is_zero); logln(5, "new_target = " + new_target); } else { // nothing we can do logln(5, "WARNING: no descend (" + (old_target - new_target) + " <= " + descend + "), stopping."); KKTerror = false; convError = true; } ; } ; if (convError) { target_count++; if (old_target < new_target) { for (i = 0; i < working_set_size; i++) { my_primal[i] = qp.A[i] * alphas[working_set[i]]; } ; logln(5, "WARNING: Convergence error, restoring old primals"); } ; } ; if (target_count > 50) { // non-recoverable numerical error convergence_epsilon *= 2; feasible_epsilon = convergence_epsilon; logln(1, "WARNING: reducing KKT precision to " + convergence_epsilon); target_count = 0; } ; }; @Override protected final boolean is_alpha_neg(int i) { boolean result; double alpha = alphas[i]; if (alpha > 0) { result = true; } else if (alpha == 0) { if (sum[i] - ys[i] + lambda_eq > 0) { result = false; } else { result = true; } ; } else { result = false; } ; return result; }; @Override protected final double nabla(int i) { double alpha = alphas[i]; double y = ys[i]; double result; if (alpha > 0) { result = (sum[i] - y + epsilon_neg); } else if (alpha == 0) { if (is_alpha_neg(i)) { result = (sum[i] - y + epsilon_neg); } else { result = (-sum[i] + y + epsilon_pos); } ; } else { result = (-sum[i] + y + epsilon_pos); } ; return result; }; };
agpl-3.0
pirati-web/smlouvy.pirati.cz
smlouvy/2016/12/18/nda-mb/index.html
806
--- "layout": contract "datum podpisu": 2016-12-18 "datum účinnosti": 2016-12-18 title: Dohoda o ochraně důvěrných informací (NDA) "použité smluvní typy": - NDA "předmět": Dohoda o ochraně důvěrných informací (NDA) "stav": v plnění "inventurizovano": 2018-05-24 "smluvní strany": - "jméno": "Česká pirátská strana" "orgán": Personální odbor "role": majitelka - "jméno": "Miroslav Brož" "role": správce "náklady": 0 "místo uložení": Archiv, sídlo strany "výběrko": "soubory": - "název": "Dohoda o ochraně důvěrných informací (NDA)" "podepsaná verze": "strojově čitelná verze": nda-vzor.pdf "upravitelná verze": nda-sc.odt "náhled": miniatura.jpg ---
agpl-3.0
PRX/feeder.prx.org
app/controllers/api/episodes_controller.rb
1756
# encoding: utf-8 class Api::EpisodesController < Api::BaseController include ApiUpdatedSince api_versions :v1 represent_with Api::EpisodeRepresenter find_method :find_by_guid filter_resources_by :podcast_id after_action :process_media, only: [:create, :update] after_action :publish, only: [:create, :update, :destroy] def included(relation) if action_name == 'index' relation.includes(:podcast, :images, :all_contents, :contents, :enclosures) else relation end end def create res = create_resource consume! res, create_options if !res.prx_uri.blank? && existing_res = Episode.find_by(prx_uri: res.prx_uri) res = existing_res consume! res, create_options end hal_authorize res res.save! respond_with root_resource(res), create_options res end def decorate_query(res) list_scoped(super(res)) end def list_scoped(res) res.published end def show super if visible? end def visible? visible = false if !show_resource respond_with_error(HalApi::Errors::NotFound.new) elsif show_resource.deleted? respond_with_error(ResourceGone.new) elsif !show_resource.published? if EpisodePolicy.new(pundit_user, show_resource).update? redirect_to api_authorization_episode_path(api_version, show_resource) else respond_with_error(HalApi::Errors::NotFound.new) end else visible = true end visible end def find_base super.with_deleted end def sorted(res) res.order('published_at DESC, id DESC') end def process_media resource.copy_media if resource end def publish resource.podcast.publish! if resource && resource.podcast end end
agpl-3.0
databrary/databrary
web/site/wizardStep.html
272
<div class="wizard-step" ng-show="active"> <header class="wizard-step-header"> <h2 message="wizard.{{::id}}.name"></h2> </header> <div class="wizard-step-instructions" message="wizard.{{::id}}.instructions" message-html></div> <div ng-transclude></div> </div>
agpl-3.0
turtles2/Sublist-Manager
config/app.php
9485
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to place the application's name in a notification or | any other location as required by the application or its packages. */ 'name' => 'Sublist Manager', /* |-------------------------------------------------------------------------- | Application Environment |-------------------------------------------------------------------------- | | This value determines the "environment" your application is currently | running in. This may determine how you prefer to configure various | services your application utilizes. Set this in your ".env" file. | */ 'env' => env('APP_ENV', 'production'), /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every error that occurs within your | application. If disabled, a simple generic error page is shown. | */ 'debug' => env('APP_DEBUG', false), /* |-------------------------------------------------------------------------- | Application URL |-------------------------------------------------------------------------- | | This URL is used by the console to properly generate URLs when using | the Artisan command line tool. You should set this to the root of | your application so that it is used when running Artisan tasks. | */ 'url' => env('APP_URL', 'http://localhost'), /* |-------------------------------------------------------------------------- | Application Timezone |-------------------------------------------------------------------------- | | Here you may specify the default timezone for your application, which | will be used by the PHP date and date-time functions. We have gone | ahead and set this to a sensible default for you out of the box. | */ 'timezone' => 'America/Chicago', /* |-------------------------------------------------------------------------- | Application Locale Configuration |-------------------------------------------------------------------------- | | The application locale determines the default locale that will be used | by the translation service provider. You are free to set this value | to any of the locales which will be supported by the application. | */ 'locale' => 'en', /* |-------------------------------------------------------------------------- | Application Fallback Locale |-------------------------------------------------------------------------- | | The fallback locale determines the locale to use when the current one | is not available. You may change the value to correspond to any of | the language folders that are provided through your application. | */ 'fallback_locale' => 'en', /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | This key is used by the Illuminate encrypter service and should be set | to a random, 32 character string, otherwise these encrypted strings | will not be safe. Please do this before deploying an application! | */ 'key' => env('APP_KEY'), 'cipher' => 'AES-256-CBC', /* |-------------------------------------------------------------------------- | Logging Configuration |-------------------------------------------------------------------------- | | Here you may configure the log settings for your application. Out of | the box, Laravel uses the Monolog PHP logging library. This gives | you a variety of powerful log handlers / formatters to utilize. | | Available Settings: "single", "daily", "syslog", "errorlog" | */ 'log' => env('APP_LOG', 'single'), 'log_level' => env('APP_LOG_LEVEL', 'debug'), /* |-------------------------------------------------------------------------- | Autoloaded Service Providers |-------------------------------------------------------------------------- | | The service providers listed here will be automatically loaded on the | request to your application. Feel free to add your own services to | this array to grant expanded functionality to your applications. | */ 'providers' => [ /* * Laravel Framework Service Providers... */ Illuminate\Auth\AuthServiceProvider::class, Illuminate\Broadcasting\BroadcastServiceProvider::class, Illuminate\Bus\BusServiceProvider::class, Illuminate\Cache\CacheServiceProvider::class, Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, Illuminate\Cookie\CookieServiceProvider::class, Illuminate\Database\DatabaseServiceProvider::class, Illuminate\Encryption\EncryptionServiceProvider::class, Illuminate\Filesystem\FilesystemServiceProvider::class, Illuminate\Foundation\Providers\FoundationServiceProvider::class, Illuminate\Hashing\HashServiceProvider::class, Illuminate\Mail\MailServiceProvider::class, Illuminate\Notifications\NotificationServiceProvider::class, Illuminate\Pagination\PaginationServiceProvider::class, Illuminate\Pipeline\PipelineServiceProvider::class, Illuminate\Queue\QueueServiceProvider::class, Illuminate\Redis\RedisServiceProvider::class, Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, Illuminate\Session\SessionServiceProvider::class, Illuminate\Translation\TranslationServiceProvider::class, Illuminate\Validation\ValidationServiceProvider::class, Illuminate\View\ViewServiceProvider::class, /* * Package Service Providers... */ // /* * Application Service Providers... */ App\Providers\AppServiceProvider::class, App\Providers\AuthServiceProvider::class, // App\Providers\BroadcastServiceProvider::class, App\Providers\EventServiceProvider::class, App\Providers\RouteServiceProvider::class, Weidner\Goutte\GoutteServiceProvider::class, Laravel\Socialite\SocialiteServiceProvider::class, Yajra\Datatables\DatatablesServiceProvider::class, ], /* |-------------------------------------------------------------------------- | Class Aliases |-------------------------------------------------------------------------- | | This array of class aliases will be registered when this application | is started. However, feel free to register as many as you wish as | the aliases are "lazy" loaded so they don't hinder performance. | */ 'aliases' => [ 'App' => Illuminate\Support\Facades\App::class, 'Artisan' => Illuminate\Support\Facades\Artisan::class, 'Auth' => Illuminate\Support\Facades\Auth::class, 'Blade' => Illuminate\Support\Facades\Blade::class, 'Bus' => Illuminate\Support\Facades\Bus::class, 'Cache' => Illuminate\Support\Facades\Cache::class, 'Config' => Illuminate\Support\Facades\Config::class, 'Cookie' => Illuminate\Support\Facades\Cookie::class, 'Crypt' => Illuminate\Support\Facades\Crypt::class, 'DB' => Illuminate\Support\Facades\DB::class, 'Eloquent' => Illuminate\Database\Eloquent\Model::class, 'Event' => Illuminate\Support\Facades\Event::class, 'File' => Illuminate\Support\Facades\File::class, 'Gate' => Illuminate\Support\Facades\Gate::class, 'Hash' => Illuminate\Support\Facades\Hash::class, 'Lang' => Illuminate\Support\Facades\Lang::class, 'Log' => Illuminate\Support\Facades\Log::class, 'Mail' => Illuminate\Support\Facades\Mail::class, 'Notification' => Illuminate\Support\Facades\Notification::class, 'Password' => Illuminate\Support\Facades\Password::class, 'Queue' => Illuminate\Support\Facades\Queue::class, 'Redirect' => Illuminate\Support\Facades\Redirect::class, 'Redis' => Illuminate\Support\Facades\Redis::class, 'Request' => Illuminate\Support\Facades\Request::class, 'Response' => Illuminate\Support\Facades\Response::class, 'Route' => Illuminate\Support\Facades\Route::class, 'Schema' => Illuminate\Support\Facades\Schema::class, 'Session' => Illuminate\Support\Facades\Session::class, 'Storage' => Illuminate\Support\Facades\Storage::class, 'URL' => Illuminate\Support\Facades\URL::class, 'Validator' => Illuminate\Support\Facades\Validator::class, 'View' => Illuminate\Support\Facades\View::class, 'Goutte' => Weidner\Goutte\GoutteFacade::class, 'Helper' => App\helpers::class, 'Carbon' => Carbon\Carbon::class, 'Socialite' => Laravel\Socialite\Facades\Socialite::class, ], ];
agpl-3.0
shentino/kotaka
mud/include/kotaka/paths/action.h
885
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2018 Raymond Jennings * * This program 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. * * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #define LIB_ACTION (USR_DIR + "/Action/lib/action")
agpl-3.0
kuzavas/ephesoft
dcma-validation/src/main/java/com/ephesoft/dcma/validation/service/ValidationServiceImpl.java
2528
/********************************************************************************* * Ephesoft is a Intelligent Document Capture and Mailroom Automation program * developed by Ephesoft, Inc. Copyright (C) 2010-2012 Ephesoft Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by the * Free Software Foundation with the addition of the following permission added * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK * IN WHICH THE COPYRIGHT IS OWNED BY EPHESOFT, EPHESOFT DISCLAIMS THE WARRANTY * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS. * * This program 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 * this program; if not, see http://www.gnu.org/licenses or write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301 USA. * * You can contact Ephesoft, Inc. headquarters at 111 Academy Way, * Irvine, CA 92617, USA. or at email address info@ephesoft.com. * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Ephesoft" logo. * If the display of the logo is not reasonably feasible for * technical reasons, the Appropriate Legal Notices must display the words * "Powered by Ephesoft". ********************************************************************************/ package com.ephesoft.dcma.validation.service; import com.ephesoft.dcma.core.DCMAException; /** * This is service for validating document. * * @author Ephesoft * @version 1.0 * @see com.ephesoft.dcma.validation.service.ValidationService */ public class ValidationServiceImpl implements ValidationService { /** * To validate the document. * * @param batchInstanceIdentifier String * @throws DCMAException in case of error */ @Override public void validateDocument(String batchInstanceIdentifier) throws DCMAException { } }
agpl-3.0
melmsie/Dank-Memer
src/commands/nsfwCommands/mcporn.js
1202
const { GenericCommand } = require('../../models/') const videos = [ 'https://www.pornhub.com/view_video.php?viewkey=ph5a5a31a130d7b', 'https://www.pornhub.com/view_video.php?viewkey=ph5925ca42189b1', 'https://www.pornhub.com/view_video.php?viewkey=ph58a2743e7bc0a', 'https://www.pornhub.com/view_video.php?viewkey=ph588bb994715f4', 'https://www.pornhub.com/view_video.php?viewkey=ph57a9e5cbbbc6b', 'https://www.pornhub.com/view_video.php?viewkey=ph594f81e1bb436', 'https://www.pornhub.com/view_video.php?viewkey=ph57f425354c95a', 'https://www.pornhub.com/view_video.php?viewkey=ph57cb90be0d19d', 'https://www.pornhub.com/view_video.php?viewkey=ph575460edacb01', 'https://www.pornhub.com/view_video.php?viewkey=ph588c05619d874', 'https://www.pornhub.com/view_video.php?viewkey=ph586f01bb87f0f' ] module.exports = new GenericCommand( async ({ Memer, msg, args }) => { return { title: 'Minecraft Porn', description: `You must [click here](${Memer.randomInArray(videos)}) to watch this weird shit.`, footer: { text: 'Why does this exist' } } }, { triggers: ['mcporn'], isNSFW: true, description: 'This is some good stuff, trust me' } )
agpl-3.0
nicktimko/infomap
examples/python/example-networkx.py
2366
#!/usr/bin/env python import networkx as nx import matplotlib.pyplot as plt import matplotlib.colors as colors from infomap import infomap """ Generate and draw a network with NetworkX, colored according to the community structure found by Infomap. """ def findCommunities(G): """ Partition network with the Infomap algorithm. Annotates nodes with 'community' id and return number of communities found. """ conf = infomap.init("--two-level"); # Input data network = infomap.Network(conf); # Output data tree = infomap.HierarchicalNetwork(conf) print "Building network..." for e in G.edges_iter(): network.addLink(*e) network.finalizeAndCheckNetwork(True, nx.number_of_nodes(G)); # Cluster network infomap.run(network, tree); print "Found %d top modules with codelength: %f" % (tree.numTopModules(), tree.codelength()) communities = {} clusterIndexLevel = 1 # 1, 2, ... or -1 for top, second, ... or lowest cluster level for node in tree.leafIter(clusterIndexLevel): communities[node.originalLeafIndex] = node.clusterIndex() nx.set_node_attributes(G, 'community', communities) return tree.numTopModules() def drawNetwork(G): # position map pos = nx.spring_layout(G) # community ids communities = [v for k,v in nx.get_node_attributes(G, 'community').items()] numCommunities = max(communities) + 1 # color map from http://colorbrewer2.org/ cmapLight = colors.ListedColormap(['#a6cee3', '#b2df8a', '#fb9a99', '#fdbf6f', '#cab2d6'], 'indexed', numCommunities) cmapDark = colors.ListedColormap(['#1f78b4', '#33a02c', '#e31a1c', '#ff7f00', '#6a3d9a'], 'indexed', numCommunities) # edges nx.draw_networkx_edges(G, pos) # nodes nodeCollection = nx.draw_networkx_nodes(G, pos = pos, node_color = communities, cmap = cmapLight ) # set node border color to the darker shade darkColors = [cmapDark(v) for v in communities] nodeCollection.set_edgecolor(darkColors) # Print node labels separately instead for n in G.nodes_iter(): plt.annotate(n, xy = pos[n], textcoords = 'offset points', horizontalalignment = 'center', verticalalignment = 'center', xytext = [0, 2], color = cmapDark(communities[n]) ) plt.axis('off') # plt.savefig("karate.png") plt.show() G=nx.karate_club_graph() numCommunities = findCommunities(G) print "Number of communities found:", numCommunities drawNetwork(G)
agpl-3.0
pbelasco/pub_data_brasil
db/migrate/20091027191715_create_taggeds.rb
233
class CreateTaggeds < ActiveRecord::Migration def self.up create_table :taggeds do |t| t.references :tag t.references :proposicao t.timestamps end end def self.down drop_table :taggeds end end
agpl-3.0
devsarr/ONLYOFFICE-OnlineEditors
OfficeWeb/apps/presentationeditor/main/resources/css/right-panels.css
12179
.asc-right-panel-container { background-color:#F4F4F4; } .asc-right-panel-container.x-item-disabled{ opacity: 0.5; } .asc-right-panel-small-btn { background-image: url('../img/right-panels/SmallBorders.png') !important; background-image: -webkit-image-set(url("../img/right-panels/SmallBorders.png") 1x, url("../img/right-panels/SmallBorders@2x.png") 2x) !important; } /* Borders for Tables */ .x-btn.btn-position-left { background-position: 0 -147px !important;} .x-btn-over.btn-position-left { background-position: -21px -147px !important;} .x-btn-pressed.btn-position-left, .x-btn-focus.btn-position-left { background-position: -42px -147px !important;} .x-btn-disabled.btn-position-left { background-position: -63px -147px !important;} .x-btn.btn-position-inner-vert { background-position: 0 -168px !important;} .x-btn-over.btn-position-inner-vert { background-position: -21px -168px !important;} .x-btn-pressed.btn-position-inner-vert, .x-btn-focus.btn-position-inner-vert { background-position: -42px -168px !important;} .x-btn-disabled.btn-position-inner-vert { background-position: -63px -168px !important;} .x-btn.btn-position-right { background-position: 0 -189px !important;} .x-btn-over.btn-position-right { background-position: -21px -189px !important;} .x-btn-pressed.btn-position-right, .x-btn-focus.btn-position-right { background-position: -42px -189px !important;} .x-btn-disabled.btn-position-right { background-position: -63px -189px !important;} .x-btn.btn-position-top { background-position: 0 -84px !important;} .x-btn-over.btn-position-top { background-position: -21px -84px !important;} .x-btn-pressed.btn-position-top, .x-btn-focus.btn-position-top { background-position: -42px -84px !important;} .x-btn-disabled.btn-position-top { background-position: -63px -84px !important;} .x-btn.btn-position-inner-hor { background-position: 0 -63px !important;} .x-btn-over.btn-position-inner-hor { background-position: -21px -63px !important;} .x-btn-pressed.btn-position-inner-hor, .x-btn-focus.btn-position-inner-hor { background-position: -42px -63px !important;} .x-btn-disabled.btn-position-inner-hor { background-position: -63px -63px !important;} .x-btn.btn-position-bottom { background-position: 0 -42px !important;} .x-btn-over.btn-position-bottom { background-position: -21px -42px !important;} .x-btn-pressed.btn-position-bottom, .x-btn-focus.btn-position-bottom { background-position: -42px -42px !important;} .x-btn-disabled.btn-position-bottom { background-position: -63px -42px !important;} .x-btn.btn-position-inner { background-position: 0 -21px !important;} .x-btn-over.btn-position-inner { background-position: -21px -21px !important;} .x-btn-pressed.btn-position-inner, .x-btn-focus.btn-position-inner { background-position: -42px -21px !important;} .x-btn-disabled.btn-position-inner { background-position: -63px -21px !important;} .x-btn.btn-position-outer { background-position: 0 -126px !important;} .x-btn-over.btn-position-outer { background-position: -21px -126px !important;} .x-btn-pressed.btn-position-outer, .x-btn-focus.btn-position-outer { background-position: -42px -126px !important;} .x-btn-disabled.btn-position-outer { background-position: -63px -126px !important;} .x-btn.btn-position-all { background-position: 0 0 !important;} .x-btn-over.btn-position-all { background-position: -21px 0 !important;} .x-btn-pressed.btn-position-all, .x-btn-focus.btn-position-all { background-position: -42px 0 !important;} .x-btn-disabled.btn-position-all { background-position: -63px 0 !important;} .x-btn.btn-position-none { background-position: 0 -105px !important;} .x-btn-over.btn-position-none { background-position: -21px -105px !important;} .x-btn-pressed.btn-position-none, .x-btn-focus.btn-position-none { background-position: -42px -105px !important;} .x-btn-disabled.btn-position-none { background-position: -63px -105px !important;} .x-btn.asc-right-panel-small-btn { margin-right: 4px; } .x-btn.asc-right-panel-small-btn button { width: 21px !important; height: 21px; line-height: 21px; padding: 0; margin:0; } .x-btn-disabled.asc-right-panel-small-btn { background-position: -63px 0 !important; } .x-btn.asc-right-panel-small-btn .x-btn-inner{ height: 21px; line-height: 21px; } .x-btn.asc-right-panel-small-btn { padding: 0; border: 0 none; border-radius: 0; box-shadow: none; } .btn-icon-edit-table, .btn-icon-template-table, .btn-icon-arrange-shape, .btn-icon-align-shape, .btn-icon-change-shape { background-image: url('../img/right-panels/TableShapeSettings.png') !important; background-image: -webkit-image-set(url("../img/right-panels/TableShapeSettings.png") 1x, url("../img/right-panels/TableShapeSettings@2x.png") 2x) !important; width: 28px !important; margin-left: 3px; margin-top: 2px; } .btn-icon-align-shape {background-position: 0 0;} .x-btn-over .btn-icon-align-shape {background-position: -28px 0;} .x-btn-pressed .btn-icon-align-shape {background-position: -56px 0;} .btn-icon-arrange-shape {background-position: 0 -16px;} .x-btn-over .btn-icon-arrange-shape {background-position: -28px -16px;} .x-btn-pressed .btn-icon-arrange-shape {background-position: -56px -16px;} .btn-icon-template-table {background-position: 0 -32px;} .x-btn-over .btn-icon-template-table {background-position: -28px -32px;} .x-btn-pressed .btn-icon-template-table {background-position: -56px -32px;} .btn-icon-edit-table {background-position: 0 -48px;} .x-btn-over .btn-icon-edit-table {background-position: -28px -48px;} .x-btn-pressed .btn-icon-edit-table {background-position: -56px -48px;} .btn-icon-change-shape {background-position: 0 -64px;} .x-btn-over .btn-icon-change-shape {background-position: -28px -64px;} .x-btn-pressed .btn-icon-change-shape {background-position: -56px -64px;} .x-btn.asc-right-panel-edit-btn { padding: 0 !important; } .x-btn-default-small-icon.asc-right-panel-edit-btn button { width: 31px !important; } .asc-right-tabpanel .x-panel-header { padding: 0 4px 0 0; } .asc-right-tabpanel-small-btn { height: 25px; width: 26px; } .asc-right-tabpanel-small-btn button { width: 24px !important; } .asc-right-tabpanel-small-btn.x-btn-default-small { background: none repeat scroll 0 0 transparent !important; border-color: transparent !important; padding: 0; border-radius: 0; border-shadow: none; } .asc-right-tabpanel-small-btn.x-btn-default-small-pressed, .asc-right-tabpanel-small-btn.x-btn-default-small-menu-active { background: none repeat scroll 0 0 #f5f5f5 !important; border-color: transparent !important; } .texture-view .storage-data-view .thumb-wrap, .arrow-view .storage-data-view .thumb-wrap { border: 1px solid rgba(0, 0, 0, 0); margin-bottom: 0; padding: 1px; } .texture-view .storage-data-view .thumb-wrap { height: 54px; } .texture-view .storage-data-view .x-item-over, .arrow-view .storage-data-view .x-item-over { border:2px solid #D76936; padding: 0; } .texture-view .storage-data-view .x-item-selected, .arrow-view .storage-data-view .x-item-selected { border:2px solid #D76936; padding: 0; } .texture-img-container { border: 1px solid #AFAFAF; border-radius: 2px; background: #ffffff; padding: 14px 20px; } .btn-combo-style { background: repeat-x scroll 0 0 white !important; background-image: url("../img/controls/text-bg.gif") !important; background-image: -webkit-image-set(url("../img/controls/text-bg.gif") 1x, url("../img/controls/text-bg@2x.png") 2x) !important; height: 22px; padding: 1px; } .btn-combo-style em { background-image : url("../img/controls/trigger-btn.png"); background-image: -webkit-image-set(url("../img/controls/trigger-btn.png") 1x, url("../img/controls/trigger-btn@2x.png") 2x); } .btn-combo-style.x-btn-menu-active.x-btn-over em { background-image : url("../img/controls/trigger-btn.png"); background-image: -webkit-image-set(url("../img/controls/trigger-btn.png") 1x, url("../img/controls/trigger-btn@2x.png") 2x); } .btn-combo-style.x-item-disabled em { background-image : url("../img/controls/trigger-btn-inactive.png"); background-image: -webkit-image-set(url("../img/controls/trigger-btn-inactive.png") 1x, url("../img/controls/trigger-btn-inactive@2x.png") 2x); } .btn-combo-style.x-btn-default-small button, .btn-combo-style.x-btn-default-small button span { height: 18px !important; line-height: 18px !important; } .asc-advanced-link { border-bottom: 1px solid #aaa; color: #000; cursor: pointer; } .asc-right-panel.x-item-disabled{ opacity: 0.5; } .asc-right-panel.x-item-disabled .x-item-disabled, .asc-right-panel .x-item-disabled .x-item-disabled { opacity: 1; } .asc-right-panel.x-item-disabled .x-mask{ opacity: 0; } .asc-right-panel.x-item-disabled a{ color: #929292; } .asc-right-panel .asc-slider .x-slider-focus { top: -10px; } /* settings for wrap */ .wrap-view .thumb-wrap { margin-right: 4px; } .btn-wrap-types { background-color: #ffffff !important; } .btn-wrap-types .x-btn-icon { height: 50px; width: 50px; } .btn-wrap-types.x-btn-default-small, .btn-wrap-types.x-btn-default-small-pressed { background-image: none; } .btn-wrap-types button { width: 52px !important; height: 52px !important; border: 1px solid rgba(172, 172, 172, 0.5); } .gradient-view .thumb-wrap { margin-right: 4px; border: 1px solid rgba(0, 0, 0, 0); height: 54px; } .gradient-view .gradient-separator { background-color: white; display: inline-block; float: left; margin: 6px; width: 50px; height: 50px; } .gradient-view .item-gradient, .gradient-subtype { background-image: url(../img/right-panels/gradients.png) !important; background-image: -webkit-image-set(url("../img/right-panels/gradients.png") 1x, url("../img/right-panels/gradients@2x.png") 2x) !important; width: 50px; height: 50px; } .gradient-left-top { background-position: 0 0; } .gradient-top { background-position: -50px 0; } .gradient-right-top { background-position: -100px 0; } .gradient-left { background-position: 0 -50px; } .gradient-right { background-position: -100px -50px; } .gradient-left-bottom { background-position: 0 -100px; } .gradient-bottom { background-position: -50px -100px; } .gradient-right-bottom { background-position: -100px -100px; } .gradient-radial-center { background-position: -100px -150px; } .shape-pattern.storage-combodataview .emptyText { padding-top: 7px; } .shape-pattern.storage-combodataview .thumb-wrap { margin-right: 1px !important; } .safari-7 .shape-pattern.storage-combodataview .thumb-wrap { margin-right: 0px !important; } .shape-pattern .item-combo-pattern, .storage-data-view .item-combo-pattern { background-image: url(../img/right-panels/patterns.png) !important; background-image: -webkit-image-set(url("../img/right-panels/patterns.png") 1x, url("../img/right-panels/patterns@2x.png") 2x) !important; width: 28px; height: 28px; }
agpl-3.0
RoumenGeorgiev/AndroidAPS
app/src/main/java/info/nightscout/androidaps/plugins/InsulinFastacting/ActivityGraph.java
2815
package info.nightscout.androidaps.plugins.InsulinFastacting; import android.content.Context; import android.graphics.Color; import android.util.AttributeSet; import com.jjoe64.graphview.GraphView; import com.jjoe64.graphview.series.DataPoint; import com.jjoe64.graphview.series.LineGraphSeries; import java.util.ArrayList; import java.util.Date; import java.util.List; import info.nightscout.androidaps.data.Iob; import info.nightscout.androidaps.db.Treatment; import info.nightscout.androidaps.interfaces.InsulinInterface; /** * Created by mike on 21.04.2017. */ public class ActivityGraph extends GraphView { Context context; public ActivityGraph(Context context) { super(context); this.context = context; } public ActivityGraph(Context context, AttributeSet attrs) { super(context, attrs); this.context = context; } public void show(InsulinInterface insulin) { double dia = insulin.getDia(); int hours = (int) Math.floor(dia + 1); Treatment t = new Treatment(insulin, dia); t.date = 0; t.insulin = 1d; LineGraphSeries<DataPoint> activitySeries = null; LineGraphSeries<DataPoint> iobSeries = null; List<DataPoint> activityArray = new ArrayList<DataPoint>(); List<DataPoint> iobArray = new ArrayList<DataPoint>(); for (long time = 0; time <= hours * 60 * 60 * 1000; time += 5 * 60 * 1000L) { Iob iob = t.iobCalc(time, dia); activityArray.add(new DataPoint(time / 60 / 1000, iob.activityContrib)); iobArray.add(new DataPoint(time / 60 / 1000, iob.iobContrib)); } DataPoint[] activityDataPoints = new DataPoint[activityArray.size()]; activityDataPoints = activityArray.toArray(activityDataPoints); addSeries(activitySeries = new LineGraphSeries<DataPoint>(activityDataPoints)); activitySeries.setThickness(8); getViewport().setXAxisBoundsManual(true); getViewport().setMinX(0); getViewport().setMaxX(hours * 60); getGridLabelRenderer().setNumHorizontalLabels(hours + 1); getGridLabelRenderer().setHorizontalAxisTitle("[min]"); getGridLabelRenderer().setVerticalLabelsColor(activitySeries.getColor()); DataPoint[] iobDataPoints = new DataPoint[iobArray.size()]; iobDataPoints = iobArray.toArray(iobDataPoints); getSecondScale().addSeries(iobSeries = new LineGraphSeries<DataPoint>(iobDataPoints)); iobSeries.setDrawBackground(true); iobSeries.setColor(Color.MAGENTA); iobSeries.setBackgroundColor(Color.argb(70, 255, 0, 255)); getSecondScale().setMinY(0); getSecondScale().setMaxY(1); getGridLabelRenderer().setVerticalLabelsSecondScaleColor(Color.MAGENTA); } }
agpl-3.0
Micronaet/micronaet-migration
label_easy/__openerp__.py
1694
# -*- coding: utf-8 -*- ############################################################################### # # ODOO (ex OpenERP) # Open Source Management Solution # Copyright (C) 2001-2015 Micronaet S.r.l. (<http://www.micronaet.it>) # Developer: Nicola Riolini @thebrush (<https://it.linkedin.com/in/thebrush>) # This program 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. # # This program 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 this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################### { 'name': 'Label for Easylabel', 'version': '0.1', 'category': 'Generic/Label', 'author': "Micronaet S.r.l. - Nicola Riolini", 'website': 'http://www.micronaet.it', 'license': 'AGPL-3', "depends": [ 'base', 'product', 'sale', 'report_aeroo', ], "data": [ 'security/easylabel_group.xml', 'security/ir.model.access.csv', 'easylabel.xml', 'wizard/view_wizard.xml', 'report/report_easylabel.xml', ], "qweb": [], "demo": [], "test": [], "active": False, "installable": True, "application": False, }
agpl-3.0
WebPredict/brave-new-code
src/main/java/wp/core/UserDisabledException.java
172
package wp.core; public class UserDisabledException extends Exception { public UserDisabledException (String userId) { super("User " + userId + " is disabled."); } }
agpl-3.0
dshatrov/momentvideo
moment-rtsp/moment-rtsp/util_rtsp.h
1158
/* Copyright (C) 2014 Dmitry Shatrov - All Rights Reserved e-mail: info@momentvideo.org Unauthorized copying of this file or any part of its contents, via any medium is strictly prohibited. Proprietary and confidential. */ #include <libmary/libmary.h> namespace MomentRtsp { using namespace M; struct RtspTransportHeaderInfo { bool got_client_port; Uint32 client_port_rtp; Uint32 client_port_rtcp; bool got_server_port; Uint32 server_port_rtp; Uint32 server_port_rtcp; bool is_tcp_interleaved; Uint32 tcp_channel_rtp; Uint32 tcp_channel_rtcp; void reset () { got_client_port = false; client_port_rtp = 0; client_port_rtcp = 0; got_server_port = false; server_port_rtp = 0; server_port_rtcp = 0; is_tcp_interleaved = false; tcp_channel_rtp = 0; tcp_channel_rtcp = 0; } RtspTransportHeaderInfo () { reset (); } }; void parseRtspTransportHeader (HttpRequest * mt_nonnull req, RtspTransportHeaderInfo * mt_nonnull ret_header_info); }
agpl-3.0
piratas-ar/loomio
db/migrate/20121008010612_add_motion_last_viewed_at_to_motion_read_logs.rb
679
class AddMotionLastViewedAtToMotionReadLogs < ActiveRecord::Migration[4.2] class MotionReadLog < ActiveRecord::Base end def up add_column :motion_read_logs, :motion_last_viewed_at, :datetime MotionReadLog.reset_column_information MotionReadLog.where(:motion_last_viewed_at => nil).update_all :motion_last_viewed_at => Time.now change_column :motion_read_logs, :motion_last_viewed_at, :datetime, :null => true remove_column :motion_read_logs, :motion_activity_when_last_read end def down remove_column :motion_read_logs, :motion_last_viewed_at add_column :motion_read_logs, :motion_activity_when_last_read, :integer, :default => 0 end end
agpl-3.0
SciencesPo/isari
client/src/app/isari-logs/isari-logs.component.ts
4092
import { ActivatedRoute, ParamMap, Router } from '@angular/router'; import { Component, OnInit } from '@angular/core'; import { TranslateService, LangChangeEvent } from '@ngx-translate/core'; import { BehaviorSubject, combineLatest, throwError } from 'rxjs'; import { EditLogApiOptions } from './EditLogApiOptions.class'; import { IsariDataService } from './../isari-data.service'; import { Observable } from 'rxjs'; import { ToasterService } from 'angular2-toaster'; import flattenDeep from 'lodash/flattenDeep'; import keyBy from 'lodash/keyBy'; import uniq from 'lodash/uniq'; import { map, startWith, switchMap, catchError } from 'rxjs/operators'; @Component({ selector: 'isari-logs', templateUrl: './isari-logs.component.html' // styleUrls: ['./isari-layout.component.css'] }) export class IsariLogsComponent implements OnInit { feature: string; options: EditLogApiOptions = { skip: 0, limit: 5 }; options$: BehaviorSubject<EditLogApiOptions>; details$: BehaviorSubject<boolean>; logs$: Observable<{ count: number; logs: Array<any> }>; labs$: Observable<any[]>; constructor( private route: ActivatedRoute, private isariDataService: IsariDataService, private translate: TranslateService, private router: Router, private toasterService: ToasterService ) { } ngOnInit() { this.options$ = new BehaviorSubject(this.options); this.details$ = new BehaviorSubject(false); this.logs$ = combineLatest( this.route.paramMap, this.options$, this.translate.onLangChange.pipe( map((event: LangChangeEvent) => event.lang), startWith(this.translate.currentLang) ) ).pipe( // this.logs$ = Observable.combineLatest([ // this.route.paramMap, // this.options$, // this.translate.onLangChange // .map((event: LangChangeEvent) => event.lang) // .startWith(this.translate.currentLang) // ]) switchMap(([paramMap, options, lang]) => { this.feature = paramMap.get('feature'); this.options = Object.assign( {}, { itemID: paramMap.get('itemID') }, options ); return combineLatest( this.isariDataService.getHistory(this.feature, this.options, lang) .pipe( catchError(err => { if (err.status === 401) { this.translate .get('error.' + err.status) .subscribe(translated => { this.toasterService.pop('error', '', translated); this.router.navigate(['/', this.feature], { preserveQueryParams: true }); }); } return throwError(err); }) ), this.details$ ); }), map(([{ count, logs }, details]) => { this.labs$ = this.isariDataService .getForeignLabel( 'Organization', uniq( flattenDeep(logs.map(log => log.who.roles ? log.who.roles.map(role => role.lab) : [])) ) ) .pipe(map(labs => keyBy(labs, 'id'))); if (details && this.options['path']) { return { count, logs: logs.map(log => Object.assign({}, log, { _open: true, diff: log.diff.filter( diff => diff.path[0] === this.options['path'] ) }) ) }; } return { count, logs: logs.map(log => Object.assign({}, log, { _open: details })) }; }) ); } changeOpt(options) { this.options = options; this.options$.next(options); } toggleDetails() { this.details$.next(!this.details$.value); } exportLogs({ logs, filetype }) { this.isariDataService.exportLogs( logs, this.feature, this.labs$, this.translate, this.details$.value, filetype ); } }
agpl-3.0
teleyinex/boinc-widgets
project_stats.js
4398
/* Copyright 2011 Daniel Lombraña González Users_Widget.js is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by Free Software Foundation, either version 3 of the License, or (at your option) any later version. Users_Widget.js 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 Users_Widget.js. If not, see <http://www.gnu.org/licenses/>. */ google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(init); function drawChart(options) { console.log("Drawing charts for " + options.data); console.log("From: " + options.from + " to: " + options.to); $.throbber.show({overlay: false}); //if ( options.days == null ) options.days = 7; if ( options.type == null) options.type = 'total'; // options = { 'days': days, total: 1, with_credit: 1 }; $.getJSON('project_stats.php', options, function(data) { var d = new google.visualization.DataTable(); d.addColumn('string', 'Date'); if (options.type == 'with_credit') d.addColumn('number', 'With credit'); if (options.type == 'total') d.addColumn('number', 'Total'); if (options.type == 'new') d.addColumn('number', 'New'); var x = 0; $.each(data[options.data][0], function(key, val) { d.addRow(); d.setValue(x,0,key); d.setValue(x,1,val); x = x + 1; }); var chart = new google.visualization.LineChart(document.getElementById(options.div)); chart.draw(d, {width: 600, height: 440, colors: options.color, labelPosition: 'right', legend: {'position': 'none'}, title: options.description}); $.throbber.hide(); }); } function default_charts() { var data = $("input[@name=data]:checked").val(); var from = $("#from").val(); var to = $("#to").val(); // New Users or Hosts drawChart({ 'from' : from, 'to': to, 'data': data, 'type': 'new', 'div': 'new', 'description': 'New ' + data, 'color': ['red']}); // Total registered users or hosts drawChart({ 'from' : from, 'to': to, 'data': data, 'type': 'total', 'div': 'total', 'description': 'Total number of ' + data, 'color': ['blue']}); if (data != 'posts') { // Users or hosts with credit $("#with_credit").show(); drawChart({ 'from' : from, 'to': to, 'data': data, 'type': 'with_credit', 'div': 'with_credit', 'description': 'Number of ' + data + ' with credit', 'color': ['green']}); } else { $("#with_credit").hide(); } } function init() { $("input[name='data']").bind("click", default_charts); $("button").button(); var dates = $( "#from, #to" ).datepicker({ defaultDate: "-1w", changeMonth: true, changeYear: true, minDate: new Date(2010,10,01), maxDate: new Date(), dateFormat: 'yy-mm-dd', numberOfMonths: 1, onSelect: function( selectedDate ) { var option = this.id == "from" ? "minDate" : "maxDate", instance = $( this ).data( "datepicker" ), date = $.datepicker.parseDate( instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings ); dates.not( this ).datepicker( "option", option, date ); } }); $("#from").datepicker("setDate","-1w"); $("#to").datepicker("setDate", new Date()); $("button").click( function() { var data = $("input[@name=data]:checked").val(); drawChart({'from': $("#from").val(),'to': $("#to").val(), 'data': data, 'type': 'new', 'div': 'new', 'description': 'New ' + data , 'color': ['red']}); drawChart({'from': $("#from").val(),'to': $("#to").val(), 'data': data, 'type': 'total', 'div': 'total', 'description': 'Total number of ' + data, 'color': ['blue']}); if (data != "posts") drawChart({'from': $("#from").val(),'to': $("#to").val(), 'data': data, 'type': 'with_credit', 'div': 'with_credit', 'description': 'Number of ' + data + ' with credit', 'color': ['green']}); }); default_charts(); }
agpl-3.0
mainio/decidim
decidim-budgets/app/cells/decidim/budgets/budget_list_item_cell.rb
857
# frozen_string_literal: true module Decidim module Budgets # This cell renders the budget item list in the budgets list class BudgetListItemCell < BaseCell delegate :voting_finished?, to: :controller property :title alias budget model private def card_class ["card--list__item"].tap do |list| unless voting_finished? list << "card--list__data-added" if voted? list << "card--list__data-progress" if progress? end end.join(" ") end def link_class "card__link card--list__heading" end def voted? current_user && status == :voted end def progress? current_user && status == :progress end def status @status ||= current_workflow.status(budget) end end end end
agpl-3.0
o2oa/o2oa
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/viewfieldconfig/ActionListByViewId.java
2946
package com.x.cms.assemble.control.jaxrs.viewfieldconfig; import java.util.ArrayList; import java.util.List; import java.util.Optional; import javax.servlet.http.HttpServletRequest; import com.x.base.core.container.EntityManagerContainer; import com.x.base.core.container.factory.EntityManagerContainerFactory; import com.x.base.core.entity.JpaObject; import com.x.base.core.project.bean.WrapCopier; import com.x.base.core.project.bean.WrapCopierFactory; import com.x.base.core.project.cache.Cache; import com.x.base.core.project.cache.CacheManager; import com.x.base.core.project.http.ActionResult; import com.x.base.core.project.http.EffectivePerson; import com.x.cms.assemble.control.Business; import com.x.cms.assemble.control.factory.ViewFieldConfigFactory; import com.x.cms.core.entity.element.ViewFieldConfig; import net.sf.ehcache.Element; public class ActionListByViewId extends BaseAction { @SuppressWarnings("unchecked") protected ActionResult<List<Wo>> execute( HttpServletRequest request, EffectivePerson effectivePerson, String viewId ) throws Exception { ActionResult<List<Wo>> result = new ActionResult<>(); List<Wo> wraps = null; Cache.CacheKey cacheKey = new Cache.CacheKey( this.getClass(), viewId ); Optional<?> optional = CacheManager.get(cacheCategory, cacheKey ); if (optional.isPresent()) { wraps = (List<Wo>) optional.get(); result.setData(wraps); } else { try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { Business business = new Business(emc); //如判断用户是否有查看所有展示列配置信息的权限,如果没权限不允许继续操作 if (!business.viewEditAvailable( effectivePerson )) { throw new Exception("person{name:" + effectivePerson.getDistinguishedName() + "} 用户没有查询全部展示列配置信息的权限!"); } //如果有权限,继续操作 ViewFieldConfigFactory viewFieldConfigFactory = business.getViewFieldConfigFactory(); List<String> ids = viewFieldConfigFactory.listByViewId( viewId );//获取指定应用的所有展示列配置信息列表 List<ViewFieldConfig> viewFieldConfigList = emc.list( ViewFieldConfig.class, ids );//查询ID IN ids 的所有展示列配置信息信息列表 wraps = Wo.copier.copy( viewFieldConfigList );//将所有查询出来的有状态的对象转换为可以输出的过滤过属性的对象 CacheManager.put(cacheCategory, cacheKey, wraps ); result.setData(wraps); } catch (Throwable th) { th.printStackTrace(); result.error(th); } } return result; } public static class Wo extends ViewFieldConfig { private static final long serialVersionUID = -5076990764713538973L; public static List<String> excludes = new ArrayList<String>(); public static final WrapCopier<ViewFieldConfig, Wo> copier = WrapCopierFactory.wo( ViewFieldConfig.class, Wo.class, null, JpaObject.FieldsInvisible); } }
agpl-3.0
24eme/acVinDRMPlugin
modules/drm_validation/templates/updateEtablissementSuccess.php
4662
<section id="principal" class="drm"> <div id="application_drm"> <?php if (!$isTeledeclarationMode): ?> <?php include_partial('drm/header', array('drm' => $drm)); ?> <ul id="recap_infos_header"> <li> <label>Nom de l'opérateur : </label><?php echo $drm->getEtablissement()->nom ?><label style="float: right;">Période : <?php echo $drm->periode ?></label> </li> </ul> <?php endif; ?> <?php include_partial('drm/etapes', array('drm' => $drm, 'isTeledeclarationMode' => $isTeledeclarationMode, 'etape_courante' => DRMClient::ETAPE_VALIDATION)); ?> <h2>Modification des informations de votre chai</h2> <form action="<?php echo url_for('drm_validation_update_etablissement', $drm); ?>" method="POST" class="drm_validation_etablissement_form"> <?php echo $form->renderHiddenFields(); ?> <?php echo $form->renderGlobalErrors(); ?> <div class="ligne_form"> <label>Raison Sociale :</label> <?php echo $drm->declarant->nom; ?> </div> <div class="ligne_form"> <?php echo $form['cvi']->renderError(); ?> <?php echo $form['cvi']->renderLabel(); ?> <?php echo $form['cvi']->render(); ?> </div> <div class="ligne_form"> <?php echo $form['no_accises']->renderError(); ?> <?php echo $form['no_accises']->renderLabel(); ?> <?php echo $form['no_accises']->render(); ?> </div> <div class="ligne_form"> <?php echo $form['adresse']->renderError(); ?> <?php echo $form['adresse']->renderLabel(); ?> <?php echo $form['adresse']->render(array('class' => 'champ_long')); ?> </div> <div class="ligne_form"> <?php echo $form['code_postal']->renderError(); ?> <?php echo $form['code_postal']->renderLabel(); ?> <?php echo $form['code_postal']->render(); ?> </div> <div class="ligne_form"> <?php echo $form['commune']->renderError(); ?> <?php echo $form['commune']->renderLabel(); ?> <?php echo $form['commune']->render(); ?> </div> <?php if ($drm->declarant->exist('adresse_compta')): ?> <div class="ligne_form"> <?php echo $form['adresse_compta']->renderError(); ?> <?php echo $form['adresse_compta']->renderLabel(); ?> <?php echo $form['adresse_compta']->render(array('class' => 'champ_long')); ?> </div> <?php endif; ?> <?php if ($drm->declarant->exist('caution')): ?> <div class="ligne_form alignes update_form_radio_list"> <span> <?php echo $form['caution']->renderError(); ?> <?php echo $form['caution']->renderLabel(); ?> <?php echo $form['caution']->render(); ?> </span> </div> <?php endif; ?> <?php $hasSocialeCautionneur = (($drm->getEtablissement()->exist('caution') && ($drm->getEtablissement()->caution == EtablissementClient::CAUTION_CAUTION)) || (($drm->declarant->exist('caution')) && ($drm->declarant->caution == EtablissementClient::CAUTION_CAUTION))); ?> <?php if ($drm->declarant->exist('raison_sociale_cautionneur')): ?> <div class="ligne_form raison_sociale_cautionneur" style="<?php echo (!$hasSocialeCautionneur) ? 'display:none;' : ''; ?>" > <?php echo $form['raison_sociale_cautionneur']->renderError(); ?> <?php echo $form['raison_sociale_cautionneur']->renderLabel(); ?> <?php echo $form['raison_sociale_cautionneur']->render(array('class' => 'champ_long')); ?> </div> <?php endif; ?> <div id="btn_etape_dr"> <a href="<?php echo url_for('drm_validation', $drm) ?>" class="btn_majeur btn_annuler" style="float: left;" id="drm_validation_etablissement_annuler_btn"><span>annuler</span></a> <button type="submit" class="btn_majeur btn_valider" id="drm_validation_etablissement_valider_btn" style="float: right;"><span>Valider</span></button> </div> </form> </div> </section> <?php include_partial('drm/colonne_droite', array('drm' => $drm, 'isTeledeclarationMode' => $isTeledeclarationMode)); ?>
agpl-3.0
jistr/vagrant-libvirt-image-tools
files/prepare_vm.sh
585
useradd vagrant -u 5000 -m -d /home/vagrant echo "Defaults !requiretty vagrant ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-vagrant chmod 0440 /etc/sudoers.d/90-vagrant sed -i -r 's/.*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config mkdir -p /root/.ssh cat /root/vagrant_pub_key >> /root/.ssh/authorized_keys chown -R root: /root chmod 0700 /root/.ssh chmod 0600 /root/.ssh/authorized_keys mkdir -p /home/vagrant/.ssh cat /root/vagrant_pub_key >> /home/vagrant/.ssh/authorized_keys chown -R vagrant: /home/vagrant chmod 0700 /home/vagrant/.ssh chmod 0600 /home/vagrant/.ssh/authorized_keys
agpl-3.0
SreejitS/spark-server
views/api_v1.js
18143
/** * Copyright (C) 2013-2014 Spark Labs, Inc. All rights reserved. - https://www.spark.io/ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. * * You can download the source here: https://github.com/spark/spark-server */ var settings = require('../settings.js'); var CoreController = require('../lib/CoreController.js'); var roles = require('../lib/RolesController.js'); var sequence = require('when/sequence'); var parallel = require('when/parallel'); var pipeline = require('when/pipeline'); var logger = require('../lib/logger.js'); var utilities = require("../lib/utilities.js"); var fs = require('fs'); var when = require('when'); var util = require('util'); var path = require('path'); var ursa = require('ursa'); var moment = require('moment'); var crypto = require('crypto'); // var corepath; // var corepath = settings.getToCores(); /* * TODO: modularize duplicate code * TODO: implement proper session handling / user authentication * TODO: add cors handler without losing :params support * */ var Api = { loadViews: function (app) { //our middleware app.param("coreid", Api.loadCore); //core functions / variables app.post('/v1/devices/:coreid/:func', Api.fn_call); app.get('/v1/devices/:coreid/:var', Api.get_var); app.put('/v1/devices/:coreid', Api.set_core_attributes); app.get('/v1/devices/:coreid', Api.get_core_attributes); //doesn't need per-core permissions, only shows owned cores. app.get('/v1/devices', Api.list_devices); app.post('/v1/provisioning/:coreid', Api.provision_core); //app.delete('/v1/devices/:coreid', Api.release_device); app.post('/v1/devices', Api.claim_device); }, getSocketID: function (userID) { return userID + "_" + global._socket_counter++; }, getUserID: function (req) { if (!req.user) { logger.log("User obj was empty"); return null; } //req.user.id is set in authorise.validateAccessToken in the OAUTH code return req.user.id; }, list_devices: function (req, res) { var userid = Api.getUserID(req); logger.log("ListDevices", { userID: userid }); // corepath = settings.getToCores(userid); global.server.loadCoreData(userid); // console.log(corepath); //give me all the cores var allCoreIDs = global.server.getAllCoreIDs(userid); // console.log(allCoreIDs); devices = [], connected_promises = []; if(allCoreIDs == null){ var devices = ("no device is claimed by this user"); res.json(200, devices); } else{ for (var coreid in allCoreIDs) { if (!coreid) { continue; } var core = global.server.getCoreAttributes(coreid); var device = { id: coreid, name: (core) ? core.name : null, last_app: core ? core.last_flashed_app_name : null, last_heard: null }; if (utilities.check_requires_update(core, settings.cc3000_driver_version)) { device["requires_deep_update"] = true; } devices.push(device); connected_promises.push(Api.isDeviceOnline(userid, device.id)); } logger.log("ListDevices... waiting for connected state to settle ", { userID: userid }); //switched 'done' to 'then' - threw an exception with 'done' here. when.settle(connected_promises).then(function (descriptors) { for (var i = 0; i < descriptors.length; i++) { var desc = descriptors[i]; devices[i].connected = ('rejected' !== desc.state); devices[i].last_heard = (desc.value) ? desc.value.lastPing : null; } res.json(200, devices); }); } }, get_core_attributes: function (req, res) { var userid = Api.getUserID(req); var socketID = Api.getSocketID(userid), coreID = req.coreID, socket = new CoreController(socketID); logger.log("GetAttr", { coreID: coreID, userID: userid.toString() }); var objReady = parallel([ function () { return when.resolve(global.server.getCoreAttributes(coreID)); }, function () { return utilities.alwaysResolve(socket.sendAndListenForDFD(coreID, { cmd: "Describe" }, { cmd: "DescribeReturn" })); } ]); //whatever we get back... when(objReady).done(function (results) { try { if (!results || (results.length != 2)) { logger.error("get_core_attributes results was the wrong length " + JSON.stringify(results)); res.json(404, "Oops, I couldn't find that core"); return; } //we're expecting descResult to be an array: [ sender, {} ] var doc = results[0], descResult = results[1], coreState = null; if (!doc || !doc.coreID) { logger.error("get_core_attributes 404 error: " + JSON.stringify(doc)); res.json(404, "Oops, I couldn't find that core"); return; } if (util.isArray(descResult) && (descResult.length > 1)) { coreState = descResult[1].state || {}; } if (!coreState) { logger.error("get_core_attributes didn't get description: " + JSON.stringify(descResult)); } var device = { id: doc.coreID, name: doc.name || null, last_app: doc.last_flashed, connected: !!coreState, variables: (coreState) ? coreState.v : null, functions: (coreState) ? coreState.f : null, cc3000_patch_version: doc.cc3000_driver_version }; if (utilities.check_requires_update(doc, settings.cc3000_driver_version)) { device["requires_deep_update"] = true; } res.json(device); } catch (ex) { logger.error("get_core_attributes merge error: " + ex); res.json(500, { Error: "get_core_attributes error: " + ex }); } }, null); //get_core_attribs - end }, set_core_attributes: function (req, res) { var coreID = req.coreID; var userid = Api.getUserID(req); var promises = []; logger.log("set_core_attributes", { coreID: coreID, userID: userid.toString() }); var coreName = req.body ? req.body.name : null; if (coreName != null) { logger.log("SetAttr", { coreID: coreID, userID: userid.toString(), name: coreName }); global.server.setCoreAttribute(req.coreID, "name", coreName); promises.push(when.resolve({ ok: true, name: coreName })); } var hasFiles = req.files && req.files.file; if (hasFiles) { //oh hey, you want to flash firmware? promises.push(Api.compile_and__or_flash_dfd(req)); } var signal = req.body && req.body.signal; if (signal) { //get your hands up in the air! Or down. promises.push(Api.core_signal_dfd(req)); } var flashApp = req.body ? req.body.app : null; if (flashApp) { // It makes no sense to flash a known app and also // either signal or flash a file sent with the request if (!hasFiles && !signal) { // MUST sanitize app name here, before sending to Device Service if (utilities.contains(settings.known_apps, flashApp)) { promises.push(Api.flash_known_app_dfd(req)); } else { promises.push(when.reject("Can't flash unknown app " + flashApp)); } } } var app_id = req.body ? req.body.app_id : null; if (app_id && !hasFiles && !signal && !flashApp) { //we have an app id, and no files, and stuff //we must be flashing from the db! promises.push(Api.flash_app_in_db_dfd(req)); } var app_example_id = req.body ? req.body.app_example_id : null; if (app_example_id && !hasFiles && !signal && !flashApp && !app_id) { //we have an app id, and no files, and stuff //we must be flashing from the db! promises.push(Api.flash_example_app_in_db_dfd(req)); } if (promises.length >= 1) { when.all(promises).done( function (results) { var aggregate = {}; for (var i in results) { for (var key in results[i]) { aggregate[key] = results[i][key]; } } res.json(aggregate); }, function (err) { res.json({ ok: false, errors: [err] }); } ); } else { logger.error("set_core_attributes - nothing to do?", { coreID: coreID, userID: userid.toString() }); res.json({error: "Nothing to do?"}); } }, isDeviceOnline: function (userID, coreID) { var tmp = when.defer(); var socketID = Api.getSocketID(userID); var socket = new CoreController(socketID); var failTimer = setTimeout(function () { logger.log("isDeviceOnline: Ping timed out ", { coreID: coreID }); socket.close(); tmp.reject("Device is not connected"); }, settings.isCoreOnlineTimeout); //setup listener for response back from the device service socket.listenFor(coreID, { cmd: "Pong" }, function (sender, msg) { clearTimeout(failTimer); socket.close(); logger.log("isDeviceOnline: Device service thinks it is online... ", { coreID: coreID }); if (msg && msg.online) { tmp.resolve(msg); } else { tmp.reject(["Core isn't online", 404]); } }, true); logger.log("isDeviceOnline: Pinging core... ", { coreID: coreID }); //send it along to the device service if (!socket.send(coreID, { cmd: "Ping" })) { tmp.reject("send failed"); } return tmp.promise; }, claim_device: function (req, res) { res.json({ ok: true }); }, loadCore: function (req, res, next) { req.coreID = req.param('coreid') || req.body.id; //load core info! req.coreInfo = { "last_app": "", "last_heard": new Date(), "connected": false, "deviceID": req.coreID }; //if that user doesn't own that coreID, maybe they sent us a core name var userid = Api.getUserID(req); var gotCore = utilities.deferredAny([ function () { var core = global.server.getCoreAttributes(req.coreID); if (core && core.coreID) { return when.resolve(core); } else { return when.reject(); } }, function () { var core = global.server.getCoreByName(req.coreID); if (core && core.coreID) { return when.resolve(core); } else { return when.reject(); } } ]); when(gotCore).then( function (core) { if (core) { req.coreID = core.coreID || req.coreID; req.coreInfo = { last_handshake_at: core.last_handshake_at }; } next(); }, function (err) { //s`okay. next(); }) }, get_var: function (req, res) { var userid = Api.getUserID(req); var socketID = Api.getSocketID(userid), coreID = req.coreID, varName = req.param('var'), format = req.param('format'); logger.log("GetVar", {coreID: coreID, userID: userid.toString()}); //send it along to the device service //and listen for a response back from the device service var socket = new CoreController(socketID); var coreResult = socket.sendAndListenForDFD(coreID, { cmd: "GetVar", name: varName }, { cmd: "VarReturn", name: varName }, settings.coreRequestTimeout ); //sendAndListenForDFD resolves arr to ==> [sender, msg] when(coreResult) .then(function (arr) { var msg = arr[1]; if (msg.error) { //at this point, either we didn't get a describe return, or that variable //didn't exist, either way, 404 return res.json(404, { ok: false, error: msg.error }); } //TODO: make me look like the spec. msg.coreInfo = req.coreInfo; msg.coreInfo.connected = true; if (format && (format == "raw")) { return res.send("" + msg.result); } else { return res.json(msg); } }, function () { res.json(408, {error: "Timed out."}); } ).ensure(function () { socket.close(); }); }, fn_call: function (req, res) { var user_id = Api.getUserID(req), coreID = req.coreID, funcName = req.params.func, format = req.params.format; logger.log("FunCall", { coreID: coreID, user_id: user_id.toString() }); var socketID = Api.getSocketID(user_id); var socket = new CoreController(socketID); var core = socket.getCore(coreID); var args = req.body; delete args.access_token; logger.log("FunCall - calling core ", { coreID: coreID, user_id: user_id.toString() }); var coreResult = socket.sendAndListenForDFD(coreID, { cmd: "CallFn", name: funcName, args: args }, { cmd: "FnReturn", name: funcName }, settings.coreRequestTimeout ); //sendAndListenForDFD resolves arr to ==> [sender, msg] when(coreResult) .then( function (arr) { var sender = arr[0], msg = arr[1]; try { //logger.log("FunCall - heard back ", { coreID: coreID, user_id: user_id.toString() }); if (msg.error && (msg.error.indexOf("Unknown Function") >= 0)) { res.json(404, { ok: false, error: "Function not found" }); } else if (msg.error != null) { res.json(400, { ok: false, error: msg.error }); } else { if (format && (format == "raw")) { res.send("" + msg.result); } else { res.json({ id: core.coreID, name: core.name || null, last_app: core.last_flashed_app_name || null, connected: true, return_value: msg.result }); } } } catch (ex) { logger.error("FunCall handling resp error " + ex); res.json(500, { ok: false, error: "Error while api was rendering response" }); } }, function () { res.json(408, {error: "Timed out."}); } ).ensure(function () { socket.close(); }); //socket.send(coreID, { cmd: "CallFn", name: funcName, args: args }); // send the function call along to the device service }, /** * Ask the core to start / stop the "RaiseYourHand" signal * @param req */ core_signal_dfd: function (req) { var tmp = when.defer(); var userid = Api.getUserID(req), socketID = Api.getSocketID(userid), coreID = req.coreID, showSignal = parseInt(req.body.signal); logger.log("SignalCore", { coreID: coreID, userID: userid.toString()}); var socket = new CoreController(socketID); var failTimer = setTimeout(function () { socket.close(); tmp.reject({error: "Timed out, didn't hear back"}); }, settings.coreSignalTimeout); //listen for a response back from the device service socket.listenFor(coreID, { cmd: "RaiseHandReturn"}, function () { clearTimeout(failTimer); socket.close(); tmp.resolve({ id: coreID, connected: true, signaling: showSignal === 1 }); }, true); //send it along to the core via the device service socket.send(coreID, { cmd: "RaiseHand", args: { signal: showSignal } }); return tmp.promise; }, compile_and__or_flash_dfd: function (req) { var allDone = when.defer(); var userid = Api.getUserID(req), coreID = req.coreID; // // Did they pass us a source file or a binary file? // var hasSourceFiles = false; var sourceExts = [".cpp", ".c", ".h", ".ino" ]; if (req.files) { for (var name in req.files) { if (!req.files.hasOwnProperty(name)) { continue; } var ext = utilities.getFilenameExt(req.files[name].path); if (utilities.contains(sourceExts, ext)) { hasSourceFiles = true; break; } } } if (hasSourceFiles) { //TODO: federate? allDone.reject("Not yet implemented"); } else { //they sent a binary, just flash it! var flashDone = Api.flash_core_dfd(req); //pipe rejection / resolution of flash to response utilities.pipeDeferred(flashDone, allDone); } return allDone.promise; }, /** * Flashing firmware to the core, binary file! * @param req * @returns {promise|*|Function|Promise|when.promise} */ flash_core_dfd: function (req) { var tmp = when.defer(); var userid = Api.getUserID(req), socketID = Api.getSocketID(userid), coreID = req.coreID; logger.log("FlashCore", {coreID: coreID, userID: userid.toString()}); var args = req.query; delete args.coreid; if (req.files) { args.data = fs.readFileSync(req.files.file.path); } var socket = new CoreController(socketID); var failTimer = setTimeout(function () { socket.close(); tmp.reject({error: "Timed out."}); }, settings.coreFlashTimeout); //listen for the first response back from the device service socket.listenFor(coreID, { cmd: "Event", name: "Update" }, function (sender, msg) { clearTimeout(failTimer); socket.close(); var response = { id: coreID, status: msg.message }; if ("Update started" === msg.message) { tmp.resolve(response); } else { logger.error("flash_core_dfd rejected ", response); tmp.reject(response); } }, true); //send it along to the device service socket.send(coreID, { cmd: "UFlash", args: args }); return tmp.promise; }, provision_core: function (req, res) { //if we're here, the user should be allowed to provision cores. var done = Api.provision_core_dfd(req); when(done).then( function (result) { res.json(result); }, function (err) { //different status code here? res.json(400, err); }); }, provision_core_dfd: function (req) { var result = when.defer(), userid = Api.getUserID(req), deviceID = req.body.deviceID, publicKey = req.body.publicKey; if (!deviceID) { return when.reject({ error: "No deviceID provided" }); } try { var keyObj = ursa.createPublicKey(publicKey); if (!publicKey || (!ursa.isPublicKey(keyObj))) { return when.reject({ error: "No key provided" }); } } catch (ex) { logger.error("error while parsing publicKey " + ex); return when.reject({ error: "Key error " + ex }); } global.server.addCoreKey(userid, deviceID, publicKey); global.server.setCoreAttribute(deviceID, "registrar", userid); global.server.setCoreAttribute(deviceID, "timestamp", new Date()); result.resolve("Success!"); return result.promise; }, _: null }; exports = module.exports = Api; //implement :: save core data
agpl-3.0
lqdi/busca-ativa-escolar-web
public/views/settings/partials/deadlines.html
1886
<div class="panel panel-default"> <div class="panel-heading"> <h3><strong ng-show="!$parent.isEditing">{{getCurrentStep()}}.</strong> <i class="fa fa-calendar"></i> Prazos</h3> </div> <div class="panel-body"> <p> Aqui você define os prazos para cada etapa. Se um caso permanece em uma etapa após seu prazo, ele é considerado "em atraso" e aparece em destaque para o responsável pela etapa. </p> <table class="table"> <thead> <tr> <th>Etapa do caso</th> <th>Prazo</th> </tr> </thead> <tbody> <tr ng-repeat="(i, step) in static.getCaseStepSlugs()"> <td><span ng-bind="step | lang:'case_step.name_by_slug'"></span></td> <td> <span ng-show="tenantSettings.blockedStepDeadlines.indexOf(step) === -1 && step == '1a_observacao'"> <input class="deadline-input" type="number" ng-model="tenantSettings.stepDeadlines[step]" min="45" max="365" step="1" placeholder="15" /> dias (mínimo de 45) </span> <span ng-show="tenantSettings.blockedStepDeadlines.indexOf(step) === -1 && step == '2a_observacao' || step == '3a_observacao' || step == '4a_observacao'"> <input class="deadline-input" type="number" ng-model="tenantSettings.stepDeadlines[step]" min="60" max="365" step="1" placeholder="15" /> dias (mínimo de 60) </span> <span ng-show="tenantSettings.blockedStepDeadlines.indexOf(step) === -1 && step == 'alerta' || step == 'pesquisa' || step == 'analise_tecnica' || step == 'rematricula'"> <input class="deadline-input" type="number" ng-model="tenantSettings.stepDeadlines[step]" min="1" max="365" step="1" placeholder="15" /> dias </span> </td> </tr> </tbody> </table> </div> <div class="panel-footer clearfix"> <button ng-click="save()" type="button" class="btn btn-success btn-raised pull-right">Salvar <i class="fa fa-save"></i></button> </div> </div>
agpl-3.0
40423222/2017springcd_hw
blog/2017springcd-final-4~5.html
14081
<!DOCTYPE html> <html lang="en" > <head> <title>2017springcd-final-4~5 - 2017Spring 協同產品設計實習 (虎尾科大MDE)</title> <!-- Using the latest rendering mode for IE --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="canonical" href="./2017springcd-final-4~5.html"> <meta name="author" content="40423222" /> <meta name="keywords" content="notes,bg7" /> <meta name="description" content="期末內容-4~5" /> <meta property="og:site_name" content="2017Spring 協同產品設計實習 (虎尾科大MDE)" /> <meta property="og:type" content="article"/> <meta property="og:title" content="2017springcd-final-4~5"/> <meta property="og:url" content="./2017springcd-final-4~5.html"/> <meta property="og:description" content="期末內容-4~5"/> <meta property="article:published_time" content="2017-06-21" /> <meta property="article:section" content="Course" /> <meta property="article:tag" content="notes" /> <meta property="article:tag" content="bg7" /> <meta property="article:author" content="40423222" /> <!-- Bootstrap --> <link rel="stylesheet" href="./theme/css/bootstrap.united.min.css" type="text/css"/> <link href="./theme/css/font-awesome.min.css" rel="stylesheet"> <link href="./theme/css/pygments/monokai.css" rel="stylesheet"> <link href="./theme/tipuesearch/tipuesearch.css" rel="stylesheet"> <link rel="stylesheet" href="./theme/css/style.css" type="text/css"/> <link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="2017Spring 協同產品設計實習 (虎尾科大MDE) ATOM Feed"/> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shCore.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushJScript.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushJava.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushPython.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushSql.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushXml.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushPhp.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushCpp.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushCss.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushCSharp.js"></script> <script type="text/javascript" src="https://coursemdetw.github.io/project_site_files/files/syntaxhighlighter/shBrushBash.js"></script> <script type='text/javascript'> (function(){ var corecss = document.createElement('link'); var themecss = document.createElement('link'); var corecssurl = "https://chiamingyen.github.io/kmolab_data/files/syntaxhighlighter/css/shCore.css"; if ( corecss.setAttribute ) { corecss.setAttribute( "rel", "stylesheet" ); corecss.setAttribute( "type", "text/css" ); corecss.setAttribute( "href", corecssurl ); } else { corecss.rel = "stylesheet"; corecss.href = corecssurl; } document.getElementsByTagName("head")[0].insertBefore( corecss, document.getElementById("syntaxhighlighteranchor") ); var themecssurl = "https://chiamingyen.github.io/kmolab_data/files/syntaxhighlighter/css/shThemeDefault.css?ver=3.0.9b"; if ( themecss.setAttribute ) { themecss.setAttribute( "rel", "stylesheet" ); themecss.setAttribute( "type", "text/css" ); themecss.setAttribute( "href", themecssurl ); } else { themecss.rel = "stylesheet"; themecss.href = themecssurl; } //document.getElementById("syntaxhighlighteranchor").appendChild(themecss); document.getElementsByTagName("head")[0].insertBefore( themecss, document.getElementById("syntaxhighlighteranchor") ); })(); SyntaxHighlighter.config.strings.expandSource = '+ expand source'; SyntaxHighlighter.config.strings.help = '?'; SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n'; SyntaxHighlighter.config.strings.noBrush = 'Can\'t find brush for: '; SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn\'t configured for html-script option: '; SyntaxHighlighter.defaults['pad-line-numbers'] = false; SyntaxHighlighter.defaults['toolbar'] = false; SyntaxHighlighter.all(); </script> </head> <body> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a href="./" class="navbar-brand"> 2017Spring 協同產品設計實習 (虎尾科大MDE) </a> </div> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav"> <li><a href="./pages/about/"> About </a></li> <li > <a href="./category/arduino.html">Arduino</a> </li> <li > <a href="./category/concrete.html">Concrete</a> </li> <li class="active"> <a href="./category/course.html">Course</a> </li> <li > <a href="./category/html.html">Html</a> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li><span> <form class="navbar-search" action="./search.html"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input" required> </form></span> </li> <li><a href="./archives.html"><i class="fa fa-th-list"></i><span class="icon-label">Archives</span></a></li> </ul> </div> <!-- /.navbar-collapse --> </div> </div> <!-- /.navbar --> <!-- Banner --> <!-- End Banner --> <div class="container"> <div class="row"> <div class="col-sm-9"> <section id="content"> <article> <header class="page-header"> <h1> <a href="./2017springcd-final-4~5.html" rel="bookmark" title="Permalink to 2017springcd-final-4~5"> 2017springcd-final-4~5 </a> </h1> </header> <div class="entry-content"> <div class="panel"> <div class="panel-body"> <footer class="post-info"> <span class="label label-default">Date</span> <span class="published"> <i class="fa fa-calendar"></i><time datetime="2017-06-21T01:30:00+08:00"> Wed 21 June 2017</time> </span> <span class="label label-default">By</span> <a href="./author/40423222.html"><i class="fa fa-user"></i> 40423222</a> <span class="label label-default">Tags</span> <a href="./tag/notes.html">notes</a> / <a href="./tag/bg7.html">bg7</a> </footer><!-- /.post-info --> </div> </div> <p>期末內容-4~5</p> <p>4.各組員 Solvespace 近端零組件繪圖, 並在各組員網誌中顯示指定的零組件</p> <p>5.各組員 Solvespace 零件轉入 V-rep, 並設定驅動零件進行動態模擬</p> <h2><a herf="https://cad.onshape.com/documents/cf507b96e7c271e8c87cf557/w/1b52e29c6835a06bb0bc5287/e/be08f4e14664ee2e0e4f9d3e">零件連結</a></h2> <h3>繪畫玩零件之後交給組員完成(V-rep的模擬)</h3> <iframe src="https://player.vimeo.com/video/222437354" width="640" height="317" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <p><a href="https://vimeo.com/222437354">40423222-2017springcd-final-4~5</a> from <a href="https://vimeo.com/user57795652">40423222</a> on <a href="https://vimeo.com">Vimeo</a>.</p> </div> <!-- /.entry-content --> </article> </section> </div> <div class="col-sm-3" id="sidebar"> <aside> <section class="well well-sm"> <ul class="list-group list-group-flush"> <li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Recent Posts</span></h4> <ul class="list-group" id="recentposts"> <li class="list-group-item"> <a href="./2017springcd-final.html"> 期末協同查驗與自評 </a> </li> <li class="list-group-item"> <a href="./2017springcd-final-6.html"> 2017springcd-final-6 </a> </li> <li class="list-group-item"> <a href="./2017springcd-final-4~5.html"> 2017springcd-final-4~5 </a> </li> <li class="list-group-item"> <a href="./2017springcd-final-3.html"> 2017springcd-final-3 </a> </li> <li class="list-group-item"> <a href="./2017springcd-final-2.html"> 2017springcd-final-2 </a> </li> </ul> </li> <li class="list-group-item"><a href="./categories.html"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Categories</span></h4></a> <ul class="list-group" id="categories"> <li class="list-group-item"> <a href="./category/arduino.html"> <i class="fa fa-folder-open fa-lg"></i> Arduino </a> </li> <li class="list-group-item"> <a href="./category/concrete.html"> <i class="fa fa-folder-open fa-lg"></i> Concrete </a> </li> <li class="list-group-item"> <a href="./category/course.html"> <i class="fa fa-folder-open fa-lg"></i> Course </a> </li> <li class="list-group-item"> <a href="./category/html.html"> <i class="fa fa-folder-open fa-lg"></i> HTML </a> </li> </ul> </li> <li class="list-group-item"><a href="./tags.html"><h4><i class="fa fa-tags fa-lg"></i><span class="icon-label">Tags</span></h4></a> <ul class="list-group list-inline tagcloud" id="tags"> </ul> </li> <li class="list-group-item"><h4><i class="fa fa-external-link-square fa-lg"></i><span class="icon-label">Links</span></h4> <ul class="list-group" id="links"> <li class="list-group-item"> <a href="http://getpelican.com/" target="_blank"> Pelican </a> </li> <li class="list-group-item"> <a href="https://github.com/DandyDev/pelican-bootstrap3/" target="_blank"> pelican-bootstrap3 </a> </li> <li class="list-group-item"> <a href="https://github.com/getpelican/pelican-plugins" target="_blank"> pelican-plugins </a> </li> <li class="list-group-item"> <a href="https://github.com/Tipue/Tipue-Search" target="_blank"> Tipue search </a> </li> </ul> </li> </ul> </section> </aside> </div> </div> </div> <footer> <div class="container"> <hr> <div class="row"> <div class="col-xs-10">&copy; 2017 KMOL &middot; Powered by <a href="https://github.com/DandyDev/pelican-bootstrap3" target="_blank">pelican-bootstrap3</a>, <a href="http://docs.getpelican.com/" target="_blank">Pelican</a>, <a href="http://getbootstrap.com" target="_blank">Bootstrap</a> </div> <div class="col-xs-2"><p class="pull-right"><i class="fa fa-arrow-up"></i> <a href="#">Back to top</a></p></div> </div> </div> </footer> <script src="./theme/js/jquery.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="./theme/js/bootstrap.min.js"></script> <!-- for https://github.com/jsor/lity lightbox video popup --> <link href="./theme/css/lity.css" rel="stylesheet"> <script src="./theme/js/lity.js"></script> <!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) --> <script src="./theme/js/respond.min.js"></script> </body> </html>
agpl-3.0
decidim/decidim
decidim-meetings/app/controllers/decidim/meetings/directory/application_controller.rb
501
# frozen_string_literal: true module Decidim module Meetings # This controller is the abstract class from which all other controllers of # this engine inherit. # # Note that it inherits from `Decidim::Components::BaseController`, which # override its layout and provide all kinds of useful methods. module Directory class ApplicationController < Decidim::ApplicationController helper Decidim::Meetings::Directory::ApplicationHelper end end end end
agpl-3.0
zmdroid/Airesis
app/controllers/tutorial_progresses_controller.rb
2464
class TutorialProgressesController < ApplicationController before_filter :admin_required # GET /tutorial_progresses # GET /tutorial_progresses.json def index @tutorial_progresses = TutorialProgress.all respond_to do |format| format.html # index.html.erb format.json { render json: @tutorial_progresses } end end # GET /tutorial_progresses/1 # GET /tutorial_progresses/1.json def show @tutorial_progress = TutorialProgress.find(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @tutorial_progress } end end # GET /tutorial_progresses/new # GET /tutorial_progresses/new.json def new @tutorial_progress = TutorialProgress.new respond_to do |format| format.html # new.html.erb format.json { render json: @tutorial_progress } end end # GET /tutorial_progresses/1/edit def edit @tutorial_progress = TutorialProgress.find(params[:id]) end # POST /tutorial_progresses # POST /tutorial_progresses.json def create @tutorial_progress = TutorialProgress.new(params[:tutorial_progress]) respond_to do |format| if @tutorial_progress.save format.html { redirect_to @tutorial_progress, notice: 'Tutorial progress was successfully created.' } format.json { render json: @tutorial_progress, status: :created, location: @tutorial_progress } else format.html { render action: 'new' } format.json { render json: @tutorial_progress.errors, status: :unprocessable_entity } end end end # PUT /tutorial_progresses/1 # PUT /tutorial_progresses/1.json def update @tutorial_progress = TutorialProgress.find(params[:id]) respond_to do |format| if @tutorial_progress.update_attributes(params[:tutorial_progress]) format.html { redirect_to @tutorial_progress, notice: 'Tutorial progress was successfully updated.' } format.json { head :ok } else format.html { render action: 'edit' } format.json { render json: @tutorial_progress.errors, status: :unprocessable_entity } end end end # DELETE /tutorial_progresses/1 # DELETE /tutorial_progresses/1.json def destroy @tutorial_progress = TutorialProgress.find(params[:id]) @tutorial_progress.destroy respond_to do |format| format.html { redirect_to tutorial_progresses_url } format.json { head :ok } end end end
agpl-3.0
nvoron23/rstudio
src/cpp/session/modules/tex/SessionRnwWeave.hpp
2449
/* * SessionRnwWeave.hpp * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. * */ #ifndef SESSION_MODULES_RNW_WEAVE_HPP #define SESSION_MODULES_RNW_WEAVE_HPP #include <boost/function.hpp> #include <core/tex/TexLogParser.hpp> #include <core/tex/TexMagicComment.hpp> #include <core/json/Json.hpp> #include "SessionRnwConcordance.hpp" namespace core { class Error; class FilePath; } namespace session { namespace modules { namespace tex { namespace rnw_weave { core::json::Array supportedTypes(); void getTypesInstalledStatus(core::json::Object* pObj); core::json::Value chunkOptions(const std::string& weaveType); struct Result { static Result error(const std::string& errorMessage) { Result result; result.succeeded = false; result.errorMessage = errorMessage; return result; } static Result error(const core::tex::LogEntries& logEntries) { Result result; result.succeeded = false; result.errorLogEntries = logEntries; return result; } static Result success( const tex::rnw_concordance::Concordances& concordances) { Result result; result.succeeded = true; result.concordances = concordances; return result; } bool succeeded; std::string errorMessage; core::tex::LogEntries errorLogEntries; tex::rnw_concordance::Concordances concordances; }; typedef boost::function<void(const Result&)> CompletedFunction; void runTangle(const std::string& filePath, const std::string& rnwWeave); void runWeave(const core::FilePath& filePath, const std::string& encoding, const core::tex::TexMagicComments& magicComments, const boost::function<void(const std::string&)>& onOutput, const CompletedFunction& onCompleted); } // namespace rnw_weave } // namespace tex } // namespace modules } // namesapce session #endif // SESSION_MODULES_RNW_WEAVE_HPP
agpl-3.0
ronancpl/MapleSolaxiaV2
src/net/server/channel/handlers/UseItemHandler.java
4510
/* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program 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 version 3 as published by the Free Software Foundation. You may not use, modify or distribute this program under any other version of the GNU Affero General Public License. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ package net.server.channel.handlers; import client.MapleCharacter; import client.MapleClient; import client.MapleDisease; import client.inventory.Item; import client.inventory.MapleInventoryType; import config.YamlConfig; import constants.inventory.ItemConstants; import net.AbstractMaplePacketHandler; import client.inventory.manipulator.MapleInventoryManipulator; import server.MapleItemInformationProvider; import server.MapleStatEffect; import tools.MaplePacketCreator; import tools.data.input.SeekableLittleEndianAccessor; /** * @author Matze */ public final class UseItemHandler extends AbstractMaplePacketHandler { @Override public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) { MapleCharacter chr = c.getPlayer(); if (!chr.isAlive()) { c.announce(MaplePacketCreator.enableActions()); return; } MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance(); slea.readInt(); short slot = slea.readShort(); int itemId = slea.readInt(); Item toUse = chr.getInventory(MapleInventoryType.USE).getItem(slot); if (toUse != null && toUse.getQuantity() > 0 && toUse.getItemId() == itemId) { if (itemId == 2050004) { chr.dispelDebuffs(); remove(c, slot); return; } else if (itemId == 2050001) { chr.dispelDebuff(MapleDisease.DARKNESS); remove(c, slot); return; } else if (itemId == 2050002) { chr.dispelDebuff(MapleDisease.WEAKEN); chr.dispelDebuff(MapleDisease.SLOW); remove(c, slot); return; } else if (itemId == 2050003) { chr.dispelDebuff(MapleDisease.SEAL); chr.dispelDebuff(MapleDisease.CURSE); remove(c, slot); return; } else if (ItemConstants.isTownScroll(itemId)) { int banMap = chr.getMapId(); int banSp = chr.getMap().findClosestPlayerSpawnpoint(chr.getPosition()).getId(); long banTime = currentServerTime(); if (ii.getItemEffect(toUse.getItemId()).applyTo(chr)) { if(YamlConfig.config.server.USE_BANISHABLE_TOWN_SCROLL) { chr.setBanishPlayerData(banMap, banSp, banTime); } remove(c, slot); } return; } else if (ItemConstants.isAntibanishScroll(itemId)) { if (ii.getItemEffect(toUse.getItemId()).applyTo(chr)) { remove(c, slot); } else { chr.dropMessage(5, "You cannot recover from a banish state at the moment."); } return; } remove(c, slot); if(toUse.getItemId() != 2022153) { ii.getItemEffect(toUse.getItemId()).applyTo(chr); } else { MapleStatEffect mse = ii.getItemEffect(toUse.getItemId()); for(MapleCharacter player : chr.getMap().getCharacters()) { mse.applyTo(player); } } } } private void remove(MapleClient c, short slot) { MapleInventoryManipulator.removeFromSlot(c, MapleInventoryType.USE, slot, (short) 1, false); c.announce(MaplePacketCreator.enableActions()); } }
agpl-3.0
php-fusion/PHP-Fusion
infusions/gallery/photo_submit.php
7592
<?php /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright (C) PHP-Fusion Inc | https://www.phpfusion.com/ +--------------------------------------------------------+ | Filename: gallery/photo_submit.php | Author: Core Development Team (coredevs@phpfusion.com) +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ defined('IN_FUSION') || die('Access Denied'); $locale = fusion_get_locale('', [GALLERY_LOCALE, GALLERY_ADMIN_LOCALE]); $gll_settings = get_settings("gallery"); add_to_title($locale['global_200'].$locale['gallery_0100']); opentable("<i class='fa fa-camera-retro m-r-5 fa-lg'></i> ".$locale['gallery_0100']); if ($gll_settings['gallery_allow_submission']) { $criteriaArray = [ 'album_id' => 0, 'photo_title' => '', 'photo_description' => '', 'photo_filename' => '', 'photo_thumb1' => '', 'photo_thumb2' => '', 'photo_keywords' => '', ]; if (isset($_POST['submit_photo'])) { $criteriaArray = [ 'album_id' => form_sanitizer($_POST['album_id'], 0, 'album_id'), 'photo_title' => form_sanitizer($_POST['photo_title'], '', 'photo_title'), 'photo_keywords' => form_sanitizer($_POST['photo_keywords'], '', 'photo_keywords'), 'photo_description' => form_sanitizer($_POST['photo_description'], '', 'photo_description'), 'photo_filename' => '', 'photo_thumb1' => '', 'photo_thumb2' => '', ]; if (fusion_safe()) { if (!empty($_FILES['photo_image']) && is_uploaded_file($_FILES['photo_image']['tmp_name'])) { $upload = form_sanitizer($_FILES['photo_image'], "", "photo_image"); if (isset($upload['error']) && !$upload['error']) { if (isset($upload['image_name']) && isset($upload['thumb1_name']) && isset($upload['thumb2_name'])) { $criteriaArray['photo_filename'] = $upload['image_name']; $criteriaArray['photo_thumb1'] = $upload['thumb1_name']; $criteriaArray['photo_thumb2'] = $upload['thumb2_name']; } else { \Defender::stop(); \Defender::setInputError("photo_image"); add_notice("danger", $locale['photo_0014']); } } } else { \Defender::stop(); \Defender::setInputError('photo_image'); add_notice('danger', $locale['photo_0014']); } } if (fusion_safe()) { $inputArray = [ "submit_id" => 0, "submit_type" => 'p', "submit_user" => fusion_get_userdata('user_id'), "submit_datestamp" => TIME, "submit_criteria" => addslashes(serialize($criteriaArray)) ]; dbquery_insert(DB_SUBMISSIONS, $inputArray, "save"); add_notice("success", $locale['gallery_0101']); redirect(clean_request("submitted=p", ["stype"], TRUE)); } } if (isset($_GET['submitted']) && $_GET['submitted'] == "p") { echo "<div class='well text-center'><p><strong>".$locale['gallery_0101']."</strong></p>"; echo "<p><a href='submit.php?stype=p'>".$locale['gallery_0102']."</a></p>"; echo "<p><a href='index.php'>".str_replace('[SITENAME]', fusion_get_settings('sitename'), $locale['gallery_0113'])."</a></p>\n"; echo "</div>\n"; } else { $result = dbquery("SELECT album_id, album_title FROM ".DB_PHOTO_ALBUMS." ".(multilang_table("PG") ? "WHERE ".in_group('album_language', LANGUAGE)." AND" : "WHERE")." ".groupaccess("album_access")." ORDER BY album_title"); if (dbrows($result) > 0) { $opts = []; while ($data = dbarray($result)) { $opts[$data['album_id']] = $data['album_title']; } echo openform('submit_form', 'post', BASEDIR."submit.php?stype=p", ["enctype" => TRUE]); echo "<div class='alert alert-info m-b-20 submission-guidelines'>".str_replace('[SITENAME]', fusion_get_settings('sitename'), $locale['gallery_0107'])."</div>\n"; echo form_select('album_id', $locale['photo_0003'], '', ["options" => $opts, "inline" => TRUE]); echo form_text('photo_title', $locale['photo_0001'], '', ['required' => TRUE, "inline" => TRUE]); echo form_select('photo_keywords', $locale['photo_0005'], '', [ 'placeholder' => $locale['album_0006'], 'inline' => TRUE, 'multiple' => TRUE, "tags" => TRUE, 'width' => '100%', 'inner_width' => '100%', ]); echo form_fileinput('photo_image', $locale['photo_0004'], '', [ 'upload_path' => INFUSIONS.'gallery/submissions/', 'required' => TRUE, 'thumbnail_folder' => 'thumbs', 'thumbnail' => TRUE, 'thumbnail_w' => $gll_settings['thumb_w'], 'thumbnail_h' => $gll_settings['thumb_h'], 'thumbnail_suffix' => '_t1', 'thumbnail2' => TRUE, 'thumbnail2_w' => $gll_settings['photo_w'], 'thumbnail2_h' => $gll_settings['photo_h'], 'thumbnail2_suffix' => '_t2', 'max_width' => $gll_settings['photo_max_w'], 'max_height' => $gll_settings['photo_max_h'], 'max_byte' => $gll_settings['photo_max_b'], 'delete_original' => FALSE, 'multiple' => FALSE, 'inline' => TRUE, 'error_text' => $locale['photo_0014'], 'template' => 'thumbnail', 'valid_ext' => $gll_settings['gallery_file_types'], ]); echo "<div class='m-b-10 col-xs-12 col-sm-9 col-sm-offset-3'>".sprintf($locale['album_0010'], parsebytesize($gll_settings['photo_max_b']), $gll_settings['gallery_file_types'], $gll_settings['photo_max_w'], $gll_settings['photo_max_h'])."</div>\n"; $textArea_opts = [ 'required' => $gll_settings['gallery_extended_required'] ? TRUE : FALSE, 'autosize' => TRUE, 'form_name' => 'submit_form', ]; echo form_textarea('photo_description', $locale['photo_0008'], '', $textArea_opts); echo form_button('submit_photo', $locale['gallery_0111'], $locale['gallery_0111'], ['class' => 'btn-success', 'icon' => 'fa fa-hdd-o']); echo closeform(); } else { echo "<div class='well' style='text-align:center'><br />".$locale['gallery_0024']."<br /><br /></div>\n"; } } } else { echo "<div class='well text-center'>".$locale['gallery_0112']."</div>\n"; } closetable();
agpl-3.0
stephaneperry/Silverpeas-Core
war-core/src/main/java/com/silverpeas/socialNetwork/myProfil/control/SocialNetworkService.java
6341
/** * Copyright (C) 2000 - 2011 Silverpeas * * This program 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. * * As a special exception to the terms and conditions of version 3.0 of * the GPL, you may redistribute this Program in connection with Free/Libre * Open Source Software ("FLOSS") applications as described in Silverpeas's * FLOSS exception. You should have received a copy of the text describing * the FLOSS exception, and it is also available here: * "http://repository.silverpeas.com/legal/licensing" * * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ package com.silverpeas.socialNetwork.myProfil.control; import java.sql.SQLException; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import com.silverpeas.socialNetwork.model.SocialInformation; import com.silverpeas.socialNetwork.model.SocialInformationType; import com.silverpeas.socialNetwork.relationShip.RelationShipService; import com.silverpeas.socialNetwork.status.Status; import com.silverpeas.socialNetwork.status.StatusService; import com.silverpeas.util.StringUtil; import com.stratelia.silverpeas.silvertrace.SilverTrace; import com.stratelia.webactiv.util.DateUtil; /** * * @author Bensalem Nabil */ public class SocialNetworkService { private String myId; public SocialNetworkService(String myId) { this.myId = myId; } /** * get the List of social Information of my according the type of social information * and the UserId * @return: Map<Date, List<SocialInformation> * @param:SocialInformationType socialInformationType, String userId,String classification, int limit ,int offset */ public Map<Date, List<SocialInformation>> getSocialInformation(SocialInformationType type, Date begin, Date end) { com.silverpeas.calendar.Date dBegin = new com.silverpeas.calendar.Date(begin); com.silverpeas.calendar.Date dEnd = new com.silverpeas.calendar.Date(end); List<SocialInformation> socialInformationsFull = new ProviderService().getSocialInformationsList(type, myId, null, dEnd, dBegin); if (SocialInformationType.ALL.equals(type)) { Collections.sort(socialInformationsFull); } return processResults(socialInformationsFull); } private Map<Date, List<SocialInformation>> processResults(List<SocialInformation> socialInformationsFull) { String date = null; LinkedHashMap<Date, List<SocialInformation>> hashtable = new LinkedHashMap<Date, List<SocialInformation>>(); List<SocialInformation> lsi = new ArrayList<SocialInformation>(); for (SocialInformation information : socialInformationsFull) { if (DateUtil.formatDate(information.getDate()).equals(date)) { lsi.add(information); } else { date = DateUtil.formatDate(information.getDate()); lsi = new ArrayList<SocialInformation>(); lsi.add(information); hashtable.put(information.getDate(), lsi); } } return hashtable; } /** * get the List of social Information of my contatc according the type of social information * and the UserId * @return: Map<Date, List<SocialInformation> * @param:SocialInformationType socialInformationType, String userId,String classification, int limit ,int offset */ public Map<Date, List<SocialInformation>> getSocialInformationOfMyContacts( SocialInformationType type, Date begin, Date end) { com.silverpeas.calendar.Date dBegin = new com.silverpeas.calendar.Date(begin); com.silverpeas.calendar.Date dEnd = new com.silverpeas.calendar.Date(end); List<String> myContactIds = getMyContactsIds(); myContactIds.add(myId); // add myself List<SocialInformation> socialInformationsFull = new ProviderService().getSocialInformationsListOfMyContact(type, myId, myContactIds, dEnd, dBegin); if (SocialInformationType.ALL.equals(type)) { Collections.sort(socialInformationsFull); } return processResults(socialInformationsFull); } public Map<Date, List<SocialInformation>> getSocialInformationOfMyContact(String myContactId, SocialInformationType type, Date begin, Date end) { com.silverpeas.calendar.Date dBegin = new com.silverpeas.calendar.Date(begin); com.silverpeas.calendar.Date dEnd = new com.silverpeas.calendar.Date(end); List<String> myContactIds = new ArrayList<String>(); myContactIds.add(myContactId); List<SocialInformation> socialInformationsFull = new ProviderService().getSocialInformationsListOfMyContact(type, myId, myContactIds, dEnd, dBegin); if (SocialInformationType.ALL.equals(type)) { Collections.sort(socialInformationsFull); } return processResults(socialInformationsFull); } /** * update my status * @param textStatus * @return String */ public String changeStatusService(String textStatus) { Status status = new Status(Integer.parseInt(myId), new Date(), textStatus); return new StatusService().changeStatusService(status); } /** * get my last status * @return String */ public String getLastStatusService() { Status status = new StatusService().getLastStatusService(Integer.parseInt(myId)); if (StringUtil.isDefined(status.getDescription())) { return status.getDescription(); } return " "; } public List<String> getMyContactsIds() { try { return new RelationShipService().getMyContactsIds(Integer.parseInt(myId)); } catch (SQLException ex) { SilverTrace.error("socialNetworkService", "SocialNetworkService.getMyContactsIds", "", ex); } return new ArrayList<String>(); } }
agpl-3.0
mtusnio/Manhunt
ManhuntUI.hpp
751
class MH_Intel { idd=-1; fadein = 0; duration = 1e+1000; fadeout = 0; movingEnable=1; name="IntelDisplay"; enableSimulation=1; onLoad="uiNamespace setVariable [""mh_inteldialog"", _this select 0]"; onUnLoad="uiNamespace setVariable [""mh_inteldialog"", nil]"; class controls { class MH_IntelDisplay { type = CT_STATIC; idc = 50; style = ST_LEFT; colorBackground[] = {0, 0, 0, 0}; colorText[] = {0.6, 1.0, 0.6, 0.75}; font = PuristaMedium; sizeEx = 0.0295; h = 0.02; x = -0.3; y = safeZoneY + 0.01; w = 0.4; text = "Intel: 0"; }; }; };
agpl-3.0
opengovt/ckan-agency-management-tool
frontend/password-reset.html
3532
{% extends 'frontend/index.html' %} {% block title %}Forgot Password | Manager Tool{% endblock %} {% block content %} <div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3 register-form"> {% if reset %} <form method="POST" id="registerAccountForm"> <h2>PASSWORD RESET</h2> <div class="form-group col-lg-12 no-padding"> <label for="new_password" class="control-label">Password</label> <input type="password" name="new_password" id="new_password" class="form-control input-lg" required> </div> <div class="form-group col-lg-12 no-padding"> <label for="confirm_passord" class="control-label">Confirm Password</label> <input type="password" name="confirm_password" id="confirm_password" class="form-control input-lg" required> </div> <div class="form-group col-lg-12 no-padding"> <button type="submit" class="btn btn-lg btn-inverse">SAVE PASSWORD</button> <input type="hidden" name="token" value="{{ token }}"> <input type="hidden" name="uid" value="{{ uid }}"> </div> </form> {% else %} <form method="POST" id="registerAccountForm"> <h2>FORGOT PASSWORD</h2> <div class="form-group col-lg-12 no-padding"> <label for="email" class="control-label">EMAIL</label> <input type="email" name="email" id="email" class="form-control input-lg" required> </div> <div class="form-group col-lg-12 no-padding"> <button type="submit" class="btn btn-lg btn-inverse">SEND</button> <input type="hidden" name="token" value="{{ csrf_token }}"> </div> <a href="/login">Login</a> / <a href="/register">Register</a> </form> {% endif %} </div> {% endblock %} {% block script %} {% if reset %} <script type="text/javascript" src="/js/password-reset.min.js"></script> {% else %} <script type="text/javascript"> {# THIS IS THE UNOBFUSCATED JS FOR SEND PASSWORD #} {# $(document).ready(function(){ $('input[name=email]').focus(); }); $("#registerAccountForm").submit(function (e){ $(".btn-inverse").prop("disabled", true).html($("<i>", { class: "fa fa-spin fa-circle-o-notch" })).append(" SEND"); $(".form-control").prop("readonly", true); }); #} var _0xfe07=["\x72\x65\x61\x64\x6F\x6E\x6C\x79","\x70\x72\x6F\x70","\x2E\x66\x6F\x72\x6D\x2D\x63\x6F\x6E\x74\x72\x6F\x6C","\x20\x53\x45\x4E\x44","\x61\x70\x70\x65\x6E\x64","\x3C\x69\x3E","\x66\x61\x20\x66\x61\x2D\x73\x70\x69\x6E\x20\x66\x61\x2D\x63\x69\x72\x63\x6C\x65\x2D\x6F\x2D\x6E\x6F\x74\x63\x68","\x68\x74\x6D\x6C","\x64\x69\x73\x61\x62\x6C\x65\x64","\x2E\x62\x74\x6E\x2D\x69\x6E\x76\x65\x72\x73\x65","\x73\x75\x62\x6D\x69\x74","\x23\x72\x65\x67\x69\x73\x74\x65\x72\x41\x63\x63\x6F\x75\x6E\x74\x46\x6F\x72\x6D","\x66\x6F\x63\x75\x73","\x69\x6E\x70\x75\x74\x5B\x6E\x61\x6D\x65\x3D\x65\x6D\x61\x69\x6C\x5D","\x72\x65\x61\x64\x79"];$(document)[_0xfe07[14]](function(){$(_0xfe07[13])[_0xfe07[12]]()}),$(_0xfe07[11])[_0xfe07[10]](function(){$(_0xfe07[9])[_0xfe07[1]](_0xfe07[8],!0)[_0xfe07[7]]($(_0xfe07[5],{"\x63\x6C\x61\x73\x73":_0xfe07[6]}))[_0xfe07[4]](_0xfe07[3]),$(_0xfe07[2])[_0xfe07[1]](_0xfe07[0],!0)}); </script> {% endif %} {% endblock %}
agpl-3.0
WitchesTown/mastodon
app/javascript/packs/public.js
4984
import loadPolyfills from '../mastodon/load_polyfills'; import ready from '../mastodon/ready'; window.addEventListener('message', e => { const data = e.data || {}; if (!window.parent || data.type !== 'setHeight') { return; } ready(() => { window.parent.postMessage({ type: 'setHeight', id: data.id, height: document.getElementsByTagName('html')[0].scrollHeight, }, '*'); }); }); function main() { const { length } = require('stringz'); const IntlRelativeFormat = require('intl-relativeformat').default; const { delegate } = require('rails-ujs'); const emojify = require('../mastodon/features/emoji/emoji').default; const { getLocale } = require('../mastodon/locales'); const { localeData } = getLocale(); const VideoContainer = require('../mastodon/containers/video_container').default; const MediaGalleryContainer = require('../mastodon/containers/media_gallery_container').default; const CardContainer = require('../mastodon/containers/card_container').default; const React = require('react'); const ReactDOM = require('react-dom'); localeData.forEach(IntlRelativeFormat.__addLocaleData); ready(() => { const locale = document.documentElement.lang; const dateTimeFormat = new Intl.DateTimeFormat(locale, { year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: 'numeric', }); const relativeFormat = new IntlRelativeFormat(locale); [].forEach.call(document.querySelectorAll('.emojify'), (content) => { content.innerHTML = emojify(content.innerHTML); }); [].forEach.call(document.querySelectorAll('time.formatted'), (content) => { const datetime = new Date(content.getAttribute('datetime')); const formattedDate = dateTimeFormat.format(datetime); content.title = formattedDate; content.textContent = formattedDate; }); [].forEach.call(document.querySelectorAll('time.time-ago'), (content) => { const datetime = new Date(content.getAttribute('datetime')); content.title = dateTimeFormat.format(datetime); content.textContent = relativeFormat.format(datetime); }); [].forEach.call(document.querySelectorAll('.logo-button'), (content) => { content.addEventListener('click', (e) => { e.preventDefault(); window.open(e.target.href, 'mastodon-intent', 'width=400,height=400,resizable=no,menubar=no,status=no,scrollbars=yes'); }); }); [].forEach.call(document.querySelectorAll('[data-component="Video"]'), (content) => { const props = JSON.parse(content.getAttribute('data-props')); ReactDOM.render(<VideoContainer locale={locale} {...props} />, content); }); [].forEach.call(document.querySelectorAll('[data-component="MediaGallery"]'), (content) => { const props = JSON.parse(content.getAttribute('data-props')); ReactDOM.render(<MediaGalleryContainer locale={locale} {...props} />, content); }); [].forEach.call(document.querySelectorAll('[data-component="Card"]'), (content) => { const props = JSON.parse(content.getAttribute('data-props')); ReactDOM.render(<CardContainer locale={locale} {...props} />, content); }); }); delegate(document, '.webapp-btn', 'click', ({ target, button }) => { if (button !== 0) { return true; } window.location.href = target.href; return false; }); delegate(document, '.status__content__spoiler-link', 'click', ({ target }) => { const contentEl = target.parentNode.parentNode.querySelector('.e-content'); if (contentEl.style.display === 'block') { contentEl.style.display = 'none'; target.parentNode.style.marginBottom = 0; } else { contentEl.style.display = 'block'; target.parentNode.style.marginBottom = null; } return false; }); delegate(document, '.account_display_name', 'input', ({ target }) => { const nameCounter = document.querySelector('.name-counter'); if (nameCounter) { nameCounter.textContent = 30 - length(target.value); } }); delegate(document, '.account_note', 'input', ({ target }) => { const noteCounter = document.querySelector('.note-counter'); if (noteCounter) { noteCounter.textContent = 333 - length(target.value); } }); delegate(document, '#account_avatar', 'change', ({ target }) => { const avatar = document.querySelector('.card.compact .avatar img'); const [file] = target.files || []; const url = file ? URL.createObjectURL(file) : avatar.dataset.originalSrc; avatar.src = url; }); delegate(document, '#account_header', 'change', ({ target }) => { const header = document.querySelector('.card.compact'); const [file] = target.files || []; const url = file ? URL.createObjectURL(file) : header.dataset.originalSrc; header.style.backgroundImage = `url(${url})`; }); } loadPolyfills().then(main).catch(error => { console.error(error); });
agpl-3.0
Maslosoft/IlmatarWidgets
src/Menu/views/toolbar.php
1672
<?php use Maslosoft\EmbeDi\EmbeDi; use Maslosoft\Ilmatar\Widgets\Interfaces\ButtonInterface; use Maslosoft\Ilmatar\Widgets\Menu\ActionButton; use Maslosoft\Ilmatar\Widgets\Menu\DropDownButton; use Maslosoft\Ilmatar\Widgets\Menu\Toolbar; ?> <?php /* @var $this Toolbar */ ?> <?php if ($this->floating): ?> <div class="ovr toolbar-floating" id="ovr-<?= $this->getId(); ?>"> <?php endif; ?> <?php if ($this->caption): ?> <div class="caption"><?= $this->caption ?></div> <div class="clearfix"></div> <?php endif; ?> <div id="<?= $this->htmlId(); ?>" class="toolbar <?php if($this->inlined):?>toolbar-inlined<?php endif;?>" data-bind=" widget: Maslosoft.Ilmatar.Widgets.Menu.Toolbar, params: <?= $this->getWidgetParams(); ?> " > <div class="btn-group"> <?php $after = []; $buttons = $this->buttons instanceof Closure ? call_user_func($this->buttons) : $this->buttons; foreach ($buttons as $action => $button) { if (!$button instanceof ButtonInterface) { if (!isset($button->class)) { /** * TODO Below should be moved to Toolbar class */ if (is_array($button->action) || $button->action instanceof Closure) { $button->class = DropDownButton::class; } else { $button->class = ActionButton::class; } } $button = EmbeDi::fly()->apply((array) $button); $button->init($this); } echo $button; } ?> </div> </div> <?php if ($this->floating): ?> </div> <?php endif; ?> <?php // Extra markup, for modals etc foreach ($after as $html) { echo $html; } ?>
agpl-3.0
arcbit/arcbit-web
src/js/model/TLCrypto.js
1918
'use strict'; define(['bitcoinjs-lib', 'crypto-js', 'sjcl'], function(Bitcoin, CryptoJS, sjcl) { function TLCrypto() { } TLCrypto.wordsToBytes = function(words) { var bytes = [] for (var b = 0; b < words.length * 32; b += 8) { bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF) } return bytes }; TLCrypto.wordArrayToBytes = function(wordArray) { return TLCrypto.wordsToBytes(wordArray.words) }; TLCrypto.hexStringToData = function(hexString) { return new Bitcoin.Buffer(hexString, 'hex'); }; TLCrypto.getPasswordDigest = function(password) { var SHA256 = CryptoJS.SHA256; var passwordDigest = TLCrypto.wordArrayToBytes(SHA256(SHA256(SHA256(password)))); return new Bitcoin.Buffer(passwordDigest).toString('hex'); // maybe go with this password digest or something to that effect //return sjcl.codec.base64.fromBits(sjcl.misc.pbkdf2(password, email, 1000)); }; TLCrypto.getPasswordHash = function(password) { var SHA256 = CryptoJS.SHA256; var passwordDigest = TLCrypto.wordArrayToBytes(SHA256(SHA256(SHA256(SHA256(SHA256(password)))))); return new Bitcoin.Buffer(passwordDigest).toString('hex'); }; TLCrypto.encrypt = function(plainText, password) { var passwordDigest = TLCrypto.getPasswordDigest(password); var privData = sjcl.encrypt(passwordDigest, plainText, {ks: 256, ts: 128}); return privData; }; TLCrypto.decrypt = function(cipherText, password) { var passwordDigest = TLCrypto.getPasswordDigest(password); var data = sjcl.decrypt(passwordDigest, cipherText); return data; }; return TLCrypto; });
agpl-3.0
kaltura/KalturaGeneratedAPIClientsAndroid
KalturaClient/src/main/java/com/kaltura/client/types/WatchLaterUserEntry.java
2657
// =================================================================================================== // _ __ _ _ // | |/ /__ _| | |_ _ _ _ _ __ _ // | ' </ _` | | _| || | '_/ _` | // |_|\_\__,_|_|\__|\_,_|_| \__,_| // // This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platforms allow them to do with // text. // // Copyright (C) 2006-2022 Kaltura Inc. // // This program 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. // // This program 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 this program. If not, see <http://www.gnu.org/licenses/>. // // @ignore // =================================================================================================== package com.kaltura.client.types; import android.os.Parcel; import com.google.gson.JsonObject; import com.kaltura.client.Params; import com.kaltura.client.utils.request.MultiRequestBuilder; /** * This class was generated using generate.php * against an XML schema provided by Kaltura. * * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. */ @SuppressWarnings("serial") @MultiRequestBuilder.Tokenizer(WatchLaterUserEntry.Tokenizer.class) public class WatchLaterUserEntry extends UserEntry { public interface Tokenizer extends UserEntry.Tokenizer { } public WatchLaterUserEntry() { super(); } public WatchLaterUserEntry(JsonObject jsonObject) throws APIException { super(jsonObject); } public Params toParams() { Params kparams = super.toParams(); kparams.add("objectType", "KalturaWatchLaterUserEntry"); return kparams; } public static final Creator<WatchLaterUserEntry> CREATOR = new Creator<WatchLaterUserEntry>() { @Override public WatchLaterUserEntry createFromParcel(Parcel source) { return new WatchLaterUserEntry(source); } @Override public WatchLaterUserEntry[] newArray(int size) { return new WatchLaterUserEntry[size]; } }; public WatchLaterUserEntry(Parcel in) { super(in); } }
agpl-3.0
edxzw/edx-platform
cms/static/cms/js/ui.js
16012
/*global plupload */ /*global qiniu */ function FileProgress(file, targetID) { this.fileProgressID = file.id; this.file = file; this.opacity = 100; this.height = 0; this.fileProgressWrapper = $('#' + this.fileProgressID); if (!this.fileProgressWrapper.length) { // <div class="progress"> // <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%"> // <span class="sr-only">20% Complete</span> // </div> // </div> this.fileProgressWrapper = $('<tr></tr>'); var Wrappeer = this.fileProgressWrapper; Wrappeer.attr('id', this.fileProgressID).addClass('progressContainer'); var progressText = $("<td/>"); progressText.addClass('progressName').text(file.name); var fileSize = plupload.formatSize(file.size).toUpperCase(); var progressSize = $("<td/>"); progressSize.addClass("progressFileSize").text(fileSize); var progressBarTd = $("<td/>"); var progressBarBox = $("<div/>"); progressBarBox.addClass('info'); var progressBarWrapper = $("<div/>"); progressBarWrapper.addClass("progress progress-striped"); var progressBar = $("<div/>"); progressBar.addClass("progress-bar progress-bar-info") .attr('role', 'progressbar') .attr('aria-valuemax', 100) .attr('aria-valuenow', 0) .attr('aria-valuein', 0) .width('0%'); var progressBarPercent = $('<span class=sr-only />'); progressBarPercent.text(fileSize); var progressCancel = $('<a href=javascript:; />'); progressCancel.show().addClass('progressCancel').text('×'); progressBar.append(progressBarPercent); progressBarWrapper.append(progressBar); progressBarBox.append(progressBarWrapper); progressBarBox.append(progressCancel); var progressBarStatus = $('<div class="status text-center"/>'); progressBarBox.append(progressBarStatus); progressBarTd.append(progressBarBox); Wrappeer.append(progressText); Wrappeer.append(progressSize); Wrappeer.append(progressBarTd); $('#' + targetID).append(Wrappeer); } else { this.reset(); } this.height = this.fileProgressWrapper.offset().top; this.setTimer(null); } FileProgress.prototype.setTimer = function(timer) { this.fileProgressWrapper.FP_TIMER = timer; }; FileProgress.prototype.getTimer = function(timer) { return this.fileProgressWrapper.FP_TIMER || null; }; FileProgress.prototype.reset = function() { this.fileProgressWrapper.attr('class', "progressContainer"); this.fileProgressWrapper.find('td .progress .progress-bar-info').attr('aria-valuenow', 0).width('0%').find('span').text(''); this.appear(); }; FileProgress.prototype.setChunkProgess = function(chunk_size) { var chunk_amount = Math.ceil(this.file.size / chunk_size); if (chunk_amount === 1) { return false; } var viewProgess = $('<button class="btn btn-default">查看分块上传进度</button>'); var progressBarChunkTr = $('<tr class="chunk-status-tr"><td colspan=3></td></tr>'); var progressBarChunk = $('<div/>'); for (var i = 1; i <= chunk_amount; i++) { var col = $('<div class="col-md-2"/>'); var progressBarWrapper = $('<div class="progress progress-striped"></div'); var progressBar = $("<div/>"); progressBar.addClass("progress-bar progress-bar-info text-left") .attr('role', 'progressbar') .attr('aria-valuemax', 100) .attr('aria-valuenow', 0) .attr('aria-valuein', 0) .width('0%') .attr('id', this.file.id + '_' + i) .text(''); var progressBarStatus = $('<span/>'); progressBarStatus.addClass('chunk-status').text(); progressBarWrapper.append(progressBar); progressBarWrapper.append(progressBarStatus); col.append(progressBarWrapper); progressBarChunk.append(col); } if(!this.fileProgressWrapper.find('td:eq(2) .btn-default').length){ this.fileProgressWrapper.find('td>div').append(viewProgess); } progressBarChunkTr.hide().find('td').append(progressBarChunk); progressBarChunkTr.insertAfter(this.fileProgressWrapper); }; FileProgress.prototype.setProgress = function(percentage, speed, chunk_size) { this.fileProgressWrapper.attr('class', "progressContainer green"); var file = this.file; var uploaded = file.loaded; var size = plupload.formatSize(uploaded).toUpperCase(); var formatSpeed = plupload.formatSize(speed).toUpperCase(); var progressbar = this.fileProgressWrapper.find('td .progress').find('.progress-bar-info'); if (this.fileProgressWrapper.find('.status').text() === '取消上传'){ return; } this.fileProgressWrapper.find('.status').text("已上传: " + size + " 上传速度: " + formatSpeed + "/s"); percentage = parseInt(percentage, 10); if (file.status !== plupload.DONE && percentage === 100) { percentage = 99; } progressbar.attr('aria-valuenow', percentage).css('width', percentage + '%'); if (chunk_size) { var chunk_amount = Math.ceil(file.size / chunk_size); if (chunk_amount === 1) { return false; } var current_uploading_chunk = Math.ceil(uploaded / chunk_size); var pre_chunk, text; for (var index = 0; index < current_uploading_chunk; index++) { pre_chunk = $('#' + file.id + "_" + index); pre_chunk.width('100%').removeClass().addClass('alert-success').attr('aria-valuenow', 100); text = "块" + index + "上传进度100%"; pre_chunk.next().html(text); } var currentProgessBar = $('#' + file.id + "_" + current_uploading_chunk); var current_chunk_percent; if (current_uploading_chunk < chunk_amount) { if (uploaded % chunk_size) { current_chunk_percent = ((uploaded % chunk_size) / chunk_size * 100).toFixed(2); } else { current_chunk_percent = 100; currentProgessBar.removeClass().addClass('alert-success'); } } else { var last_chunk_size = file.size - chunk_size * (chunk_amount - 1); var left_file_size = file.size - uploaded; if (left_file_size % last_chunk_size) { current_chunk_percent = ((uploaded % chunk_size) / last_chunk_size * 100).toFixed(2); } else { current_chunk_percent = 100; currentProgessBar.removeClass().addClass('alert-success'); } } currentProgessBar.width(current_chunk_percent + '%'); currentProgessBar.attr('aria-valuenow', current_chunk_percent); text = "块" + current_uploading_chunk + "上传进度" + current_chunk_percent + '%'; currentProgessBar.next().html(text); } this.appear(); }; FileProgress.prototype.setComplete = function(up, info) { var td = this.fileProgressWrapper.find('td:eq(2)'), tdProgress = td.find('.progress'); var res = Qiniu.parseJSON(info); var url; if (res.url) { url = res.url; str = "<div><strong>Link:</strong><a href=" + res.url + " target='_blank' > " + res.url + "</a></div>" + "<div class=hash><strong>Hash:</strong>" + res.hash + "</div>"; } else { var domain = up.getOption('domain'); url = domain + encodeURI(res.key); var link = domain + res.key; str = "<div><strong>Link:</strong><a href=" + url + " target='_blank' > " + link + "</a></div>" + "<div class=hash><strong>Hash:</strong>" + res.hash + "</div>"; } tdProgress.html(str).removeClass().next().next('.status').hide(); td.find('.progressCancel').hide(); var progressNameTd = this.fileProgressWrapper.find('.progressName'); var imageView = '?imageView2/1/w/100/h/100'; var isImage = function(url) { var res, suffix = ""; var imageSuffixes = ["png", "jpg", "jpeg", "gif", "bmp"]; var suffixMatch = /\.([a-zA-Z0-9]+)(\?|\@|$)/; if (!url || !suffixMatch.test(url)) { return false; } res = suffixMatch.exec(url); suffix = res[1].toLowerCase(); for (var i = 0, l = imageSuffixes.length; i < l; i++) { if (suffix === imageSuffixes[i]) { return true; } } return false; }; var isImg = isImage(url); var Wrapper = $('<div class="Wrapper"/>'); var imgWrapper = $('<div class="imgWrapper col-md-3"/>'); var linkWrapper = $('<a class="linkWrapper" target="_blank"/>'); var showImg = $('<img src="images/loading.gif"/>'); progressNameTd.append(Wrapper); if (!isImg) { showImg.attr('src', 'images/default.png'); Wrapper.addClass('default'); imgWrapper.append(showImg); Wrapper.append(imgWrapper); } else { linkWrapper.append(showImg); imgWrapper.append(linkWrapper); Wrapper.append(imgWrapper); var img = new Image(); if (!/imageView/.test(url)) { url += imageView } $(img).attr('src', url); var height_space = 340; $(img).on('load', function() { showImg.attr('src', url); linkWrapper.attr('href', url).attr('title', '查看原图'); function initImg(url, key, height) { $('#myModal-img').modal(); var modalBody = $('#myModal-img').find('.modal-body'); if (height <= 300) { $('#myModal-img').find('.text-warning').show(); } var newImg = new Image(); modalBody.find('img').attr('src', 'images/loading.gif'); newImg.onload = function() { modalBody.find('img').attr('src', url).data('key', key).data('h', height); modalBody.find('.modal-body-wrapper').find('a').attr('href', url); }; newImg.src = url; } var infoWrapper = $('<div class="infoWrapper col-md-6"></div>'); var fopLink = $('<a class="fopLink"/>'); fopLink.attr('data-key', res.key).text('查看处理效果'); infoWrapper.append(fopLink); fopLink.on('click', function() { var key = $(this).data('key'); var height = parseInt($(this).parents('.Wrapper').find('.origin-height').text(), 10); if (height > $(window).height() - height_space) { height = parseInt($(window).height() - height_space, 10); } else { height = parseInt(height, 10) || 300; //set a default height 300 for ie9- } var fopArr = []; fopArr.push({ fop: 'imageView2', mode: 3, h: height, q: 100, format: 'png' }); fopArr.push({ fop: 'watermark', mode: 1, image: 'http://www.b1.qiniudn.com/images/logo-2.png', dissolve: 100, gravity: 'SouthEast', dx: 100, dy: 100 }); var url = Qiniu.pipeline(fopArr, key); $('#myModal-img').on('hide.bs.modal', function() { $('#myModal-img').find('.btn-default').removeClass('disabled'); $('#myModal-img').find('.text-warning').hide(); }).on('show.bs.modal', function() { $('#myModal-img').find('.imageView').find('a:eq(0)').addClass('disabled'); $('#myModal-img').find('.watermark').find('a:eq(3)').addClass('disabled'); $('#myModal-img').find('.text-warning').hide(); }); initImg(url, key, height); return false; }); var ie = Qiniu.detectIEVersion(); if (!(ie && ie <= 9)) { var exif = Qiniu.exif(res.key); if (exif) { var exifLink = $('<a href="" target="_blank">查看exif</a>'); exifLink.attr('href', url + '?exif'); infoWrapper.append(exifLink); } var imageInfo = Qiniu.imageInfo(res.key); var infoArea = $('<div/>'); var infoInner = '<div>格式:<span class="origin-format">' + imageInfo.format + '</span></div>' + '<div>宽度:<span class="orgin-width">' + imageInfo.width + 'px</span></div>' + '<div>高度:<span class="origin-height">' + imageInfo.height + 'px</span></div>'; infoArea.html(infoInner); infoWrapper.append(infoArea); } Wrapper.append(infoWrapper); }).on('error', function() { showImg.attr('src', 'default.png'); Wrapper.addClass('default'); }); } }; FileProgress.prototype.setError = function() { this.fileProgressWrapper.find('td:eq(2)').attr('class', 'text-warning'); this.fileProgressWrapper.find('td:eq(2) .progress').css('width', 0).hide(); this.fileProgressWrapper.find('button').hide(); this.fileProgressWrapper.next('.chunk-status-tr').hide(); }; FileProgress.prototype.setCancelled = function(manual) { var progressContainer = 'progressContainer'; if (!manual) { progressContainer += ' red'; } this.fileProgressWrapper.attr('class', progressContainer); this.fileProgressWrapper.find('td .progress').remove(); this.fileProgressWrapper.find('td:eq(2) .btn-default').hide(); this.fileProgressWrapper.find('td:eq(2) .progressCancel').hide(); }; FileProgress.prototype.setStatus = function(status, isUploading) { if (!isUploading) { this.fileProgressWrapper.find('.status').text(status).attr('class', 'status text-left'); } }; // 绑定取消上传事件 FileProgress.prototype.bindUploadCancel = function(up) { var self = this; if (up) { self.fileProgressWrapper.find('td:eq(2) .progressCancel').on('click', function(){ self.setCancelled(false); self.setStatus("取消上传"); self.fileProgressWrapper.find('.status').css('left', '0'); up.removeFile(self.file); }); } }; FileProgress.prototype.appear = function() { if (this.getTimer() !== null) { clearTimeout(this.getTimer()); this.setTimer(null); } if (this.fileProgressWrapper[0].filters) { try { this.fileProgressWrapper[0].filters.item("DXImageTransform.Microsoft.Alpha").opacity = 100; } catch (e) { // If it is not set initially, the browser will throw an error. This will set it if it is not set yet. this.fileProgressWrapper.css('filter', "progid:DXImageTransform.Microsoft.Alpha(opacity=100)"); } } else { this.fileProgressWrapper.css('opacity', 1); } this.fileProgressWrapper.css('height', ''); this.height = this.fileProgressWrapper.offset().top; this.opacity = 100; this.fileProgressWrapper.show(); };
agpl-3.0
whitekiba/server
settings/l10n/de_DE.js
36870
OC.L10N.register( "settings", { "Enabled" : "Aktiviert", "Not enabled" : "Nicht aktiviert", "Wrong password" : "Falsches Passwort", "Saved" : "Gespeichert", "No user supplied" : "Kein Benutzer angegeben", "Unable to change password" : "Passwort konnte nicht geändert werden", "Authentication error" : "Authentifizierungsfehler", "Please provide an admin recovery password, otherwise all user data will be lost" : "Bitte geben Sie ein Wiederherstellungspasswort für das Administratorkonto an, da sonst alle Benutzerdaten verlorengehen können", "Wrong admin recovery password. Please check the password and try again." : "Falsches Wiederherstellungspasswort für das Admin-Konto. Bitte überprüfen Sie das Passwort und versuchen Sie es erneut.", "Backend doesn't support password change, but the user's encryption key was successfully updated." : "Das Backend unterstützt die Passwortänderung nicht, aber der Benutzerschlüssel wurde erfolgreich aktualisiert.", "installing and updating apps via the app store or Federated Cloud Sharing" : "Das Installieren und Aktualisieren von Apps durch den App-Store oder durch Federated Cloud Sharing", "Federated Cloud Sharing" : "Federated-Cloud-Sharing", "cURL is using an outdated %s version (%s). Please update your operating system or features such as %s will not work reliably." : "cURL verwendet eine veraltete %s Version (%s). Bitte aktualisieren Sie ihr Betriebssystem, da ansonsten Funktionen, wie z.B. %s, nicht zuverlässig funktionieren werden.", "A problem occurred, please check your log files (Error: %s)" : "Es ist ein Problem aufgetreten, bitte überprüfen Sie Ihre Logdateien (Fehler: %s)", "Migration Completed" : "Migration abgeschlossen", "Group already exists." : "Gruppe existiert bereits.", "Unable to add group." : "Gruppe konnte nicht angelegt werden.", "Unable to delete group." : "Gruppe konnte nicht gelöscht werden.", "test email settings" : "E-Mail-Einstellungen testen", "A problem occurred while sending the email. Please revise your settings. (Error: %s)" : "Beim Senden der E-Mail ist ein Problem aufgetreten. Bitte überprüfen Sie Ihre Einstellungen. (Fehler: %s)", "Email sent" : "E-Mail gesendet", "You need to set your user email before being able to send test emails." : "Sie müssen Ihre Benutzer-E-Mail-Adresse einstellen, bevor Sie Test-E-Mails versenden können.", "Invalid request" : "Ungültige Anforderung", "Invalid mail address" : "Ungültige E-Mail-Adresse", "No valid group selected" : "Keine gültige Gruppe ausgewählt", "A user with that name already exists." : "Ein Benutzer mit diesem Namen existiert bereits.", "To send a password link to the user an email address is required." : "Um einen Passwort-Link an einen Benutzer zu versenden wird eine E-Mail-Adresse benötigt.", "Unable to create user." : "Benutzer konnte nicht erstellt werden.", "Your %s account was created" : "Ihr %s-Konto wurde erstellt", "Unable to delete user." : "Benutzer konnte nicht gelöscht werden.", "Settings saved" : "Einstellungen gespeichert", "Unable to change full name" : "Der vollständige Name konnte nicht geändert werden", "Unable to change email address" : "E-Mail-Adresse konnte nicht geändert werden", "Your full name has been changed." : "Ihr vollständiger Name ist geändert worden.", "Forbidden" : "Verboten", "Invalid user" : "Ungültiger Benutzer", "Unable to change mail address" : "E-Mail-Adresse konnte nicht geändert werden", "Email saved" : "E-Mail-Adresse gespeichert", "Password confirmation is required" : "Passwortbestätigung erforderlich", "Couldn't remove app." : "Die App konnte nicht entfernt werden.", "Couldn't update app." : "Die App konnte nicht aktualisiert werden.", "Are you really sure you want add {domain} as trusted domain?" : "Sind Sie sich wirklich sicher, dass Sie {domain} als vertrauenswürdige Domain hinzufügen möchten?", "Add trusted domain" : "Vertrauenswürdige Domain hinzufügen", "Migration in progress. Please wait until the migration is finished" : "Migration in Arbeit. Bitte warten Sie, bis die Migration beendet ist", "Migration started …" : "Migration begonnen…", "Not saved" : "Nicht gespeichert", "Sending..." : "Wird gesendet…", "Official" : "Offiziell", "All" : "Alle", "Update to %s" : "Aktualisierung auf %s", "_You have %n app update pending_::_You have %n app updates pending_" : ["Es ist %n App-Aktualisierung verfügbar","Es sind %n App-Aktualisierungen verfügbar"], "No apps found for your version" : "Es wurden keine Apps für Ihre Version gefunden", "The app will be downloaded from the app store" : "Die App wird aus dem App-Store heruntergeladen", "Official apps are developed by and within the community. They offer central functionality and are ready for production use." : "Offizielle Apps werden von und innerhalb der Community entwickelt. Sie stellen die zentralen Funktionen bereit und sind für den produktiven Einsatz geeignet.", "Approved apps are developed by trusted developers and have passed a cursory security check. They are actively maintained in an open code repository and their maintainers deem them to be stable for casual to normal use." : "Geprüfte Apps werden von vertrauenswürdigen Entwicklern entwickelt und haben eine oberflächliche Sicherheitsprüfung durchlaufen. Sie werden innerhalb eines offenen Code-Repositorys aktiv gepflegt und ihre Betreuer erachten sie als stabil genug für für den gelegentlichen bis normalen Einsatz.", "This app is not checked for security issues and is new or known to be unstable. Install at your own risk." : "Diese App ist nicht auf Sicherheitsprobleme hin überprüft und ist neu oder bekanntermaßen instabil. Die Installation erfolgt auf eigenes Risiko.", "Disabling app …" : "App wird deaktiviert …", "Error while disabling app" : "Beim Deaktivieren der App ist ein Fehler aufgetreten", "Disable" : "Deaktivieren", "Enable" : "Aktivieren", "Enabling app …" : "Aktiviere App ...", "Error while enabling app" : "Beim Aktivieren der App ist ein Fehler aufgetreten", "Error: this app cannot be enabled because it makes the server unstable" : "Fehler: Diese App kann nicht aktiviert werden, da es den Server instabil macht.", "Error: could not disable broken app" : "Fehler: Die beschädigte Anwendung konnte nicht deaktiviert werden", "Error while disabling broken app" : "Beim Deaktivieren der defekten App ist ein Fehler aufgetreten", "Updating...." : "Aktualisiere…", "Error while updating app" : "Es ist ein Fehler während der Aktualisierung aufgetreten", "Updated" : "Aktualisiert", "Uninstalling ...." : "Wird deinstalliert…", "Error while uninstalling app" : "Fehler beim Deinstallieren der App", "Uninstall" : "Deinstallieren", "The app has been enabled but needs to be updated. You will be redirected to the update page in 5 seconds." : "Die App wurde aktiviert, aber sie benötigt ein Update. Sie werden zur Update Seite in 5 Sekunden weitergeleitet.", "App update" : "App aktualisieren", "Approved" : "Geprüft", "Experimental" : "Experimentell", "No apps found for {query}" : "Keine Applikationen für {query} gefunden", "Allow filesystem access" : "Erlaube Dateisystem-Zugriff", "Disconnect" : "Trennen", "Revoke" : "Widerrufen", "Internet Explorer" : "Internet Explorer", "Edge" : "Edge", "Firefox" : "Firefox", "Google Chrome" : "Google Chrome", "Safari" : "Safari", "Google Chrome for Android" : "Google Chrome für Android", "iPhone iOS" : "iPhone iOS", "iPad iOS" : "iPad iOS", "iOS Client" : "iOS-Client", "Android Client" : "Android-Client", "Sync client - {os}" : "Sync-Client - {os}", "This session" : "Diese Sitzung", "Copy" : "Kopieren", "Copied!" : "Kopiert!", "Not supported!" : "Nicht unterstützt!", "Press ⌘-C to copy." : "⌘-C zum Kopieren drücken.", "Press Ctrl-C to copy." : "Ctrl-C zum Kopieren drücken.", "Error while loading browser sessions and device tokens" : "Fehler beim Laden der Browser-Sitzungen und Geräte-Token", "Error while creating device token" : "Fehler beim Erstellen des Geräte-Tokens", "Error while deleting the token" : "Fehler beim Löschen des Geräte-Tokens", "An error occurred. Please upload an ASCII-encoded PEM certificate." : "Es ist ein Fehler aufgetreten. Bitte laden Sie ein ASCII-kodiertes PEM-Zertifikat hoch.", "Valid until {date}" : "Gültig bis {date}", "Delete" : "Löschen", "Local" : "Lokal", "Private" : "Privat", "Only visible to local users" : "Nur für lokale Benutzer sichtbar", "Only visible to you" : "Nur für Sie sichtbar", "Contacts" : "Kontakte", "Visible to local users and to trusted servers" : "Sichtbar für lokale Nutzer und vertrauenswürdige Server", "Public" : "Öffentlich", "Will be synced to a global and public address book" : "Wird mit einem globalen und einem öffentlichen Adressbuch synchronisiert", "Select a profile picture" : "Wählen Sie ein Profilbild", "Very weak password" : "Sehr schwaches Passwort", "Weak password" : "Schwaches Passwort", "So-so password" : "Akzeptables Passwort", "Good password" : "Gutes Passwort", "Strong password" : "Starkes Passwort", "Groups" : "Gruppen", "Unable to delete {objName}" : "Löschen von {objName} nicht möglich", "Error creating group: {message}" : "Fehler beim Erstellen einer Gruppe: {message}", "A valid group name must be provided" : "Ein gültiger Gruppenname muss angegeben werden", "deleted {groupName}" : "{groupName} gelöscht", "undo" : "rückgängig machen", "never" : "niemals", "deleted {userName}" : "{userName} gelöscht", "Unable to add user to group {group}" : "Benutzer kann nicht zur Gruppe {group} hinzugefügt werden ", "Unable to remove user from group {group}" : "Benutzer kann nicht aus der Gruppe {group} entfernt werden ", "Add group" : "Gruppe hinzufügen", "Invalid quota value \"{val}\"" : "Ungültiger Grenzwert \"{val}\"", "no group" : "Keine Gruppe", "Password successfully changed" : "Das Passwort wurde erfolgreich geändert", "Changing the password will result in data loss, because data recovery is not available for this user" : "Die Änderung des Passworts führt zu Datenverlust, weil die Datenwiederherstellung für diesen Benutzer nicht verfügbar ist", "Could not change the users email" : "Die E-Mail-Adresse des Nutzers konnte nicht geändert werden", "A valid username must be provided" : "Es muss ein gültiger Benutzername angegeben werden", "Error creating user: {message}" : "Fehler beim Erstellen eines Benutzers: {message}", "A valid password must be provided" : "Es muss ein gültiges Passwort angegeben werden", "A valid email must be provided" : "Es muss eine gültige E-Mail-Adresse angegeben werden", "__language_name__" : "Deutsch (Förmlich: Sie)", "Unlimited" : "Unbegrenzt", "Personal info" : "Persönliche Informationen", "Sessions" : "Sitzungen", "App passwords" : "App-PINs", "Sync clients" : "Sync-Clients", "None" : "Keine", "Login" : "Anmelden", "Plain" : "Klartext", "NT LAN Manager" : "NT-LAN-Manager", "SSL/TLS" : "SSL/TLS", "STARTTLS" : "STARTTLS", "Email server" : "E-Mail-Server", "Open documentation" : "Dokumentation öffnen", "This is used for sending out notifications." : "Dies wird für das Senden von Benachrichtigungen verwendet.", "Send mode" : "Sendemodus", "Encryption" : "Verschlüsselung", "From address" : "Absenderadresse", "mail" : "Mail", "Authentication method" : "Authentifizierungsmethode", "Authentication required" : "Authentifizierung benötigt", "Server address" : "Serveradresse", "Port" : "Port", "Credentials" : "Zugangsdaten", "SMTP Username" : "SMTP-Benutzername", "SMTP Password" : "SMTP-Passwort", "Store credentials" : "Anmeldeinformationen speichern", "Test email settings" : "E-Mail-Einstellungen testen", "Send email" : "E-Mail senden", "Server-side encryption" : "Serverseitige Verschlüsselung", "Enable server-side encryption" : "Serverseitige Verschlüsselung aktivieren", "Please read carefully before activating server-side encryption: " : "Bitte lesen Sie ganz genau, bevor Sie die serverseitige Verschlüsselung aktivieren:", "Once encryption is enabled, all files uploaded to the server from that point forward will be encrypted at rest on the server. It will only be possible to disable encryption at a later date if the active encryption module supports that function, and all pre-conditions (e.g. setting a recover key) are met." : "Wird die Verschlüsselung einmal aktiviert, so werden alle ab diesem Zeitpunkt hochgeladene Dateien verschlüsselt. Sie kann nur wieder deaktiviert werden, wenn das Verschlüsselungsmodul dies unterstützt und alle Voraussetzungen (wie das Setzen eines Wiederherstellungsschlüssels) im Vorhinein erfüllt wurden.", "Encryption alone does not guarantee security of the system. Please see documentation for more information about how the encryption app works, and the supported use cases." : "Verschlüsselung alleine garantiert nicht die Systemsicherheit. Bitte lese in der Dokumentation nach, wie die Verschlüsselungs-app funktioniert und welche Anwendungsfälle unterstützt werden.", "Be aware that encryption always increases the file size." : "Bedenken Sie, dass durch die Verschlüsselung die Dateigröße zunimmt. ", "It is always good to create regular backups of your data, in case of encryption make sure to backup the encryption keys along with your data." : "Es ist immer gut, regelmäßig Sicherungskopien von ihren Daten zu machen. Falls Sie die Verschlüsselung nutzen, sollten Sie auch eine Sicherung der Verschlüsselungsschlüssel zusammen mit ihren Daten machen.", "This is the final warning: Do you really want to enable encryption?" : "Dies ist die letzte Warnung: Wollen Sie die Verschlüsselung wirklich aktivieren?", "Enable encryption" : "Verschlüsselung aktivieren", "No encryption module loaded, please enable an encryption module in the app menu." : "Kein Verschlüsselungs-Modul geladen, bitte aktiviere ein Verschlüsselungs-Modul im Anwendungs-Menü.", "Select default encryption module:" : "Standard-Verschlüsselungs-Modul auswählen:", "You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one. Please enable the \"Default encryption module\" and run 'occ encryption:migrate'" : "Sie müssen Ihre Verschlüsselungsschlüssel von der alten Verschlüsselung (ownCloud <= 8.0) zur Neuen migrieren. Bitte aktivieren Sie das \"Default Encryption Module\" und rufen Sie 'occ encryption:migrate' auf.", "You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one." : "Sie müssen Ihre Verschlüsselungsschlüssel von der alten Verschlüsselung (ownCloud <= 8.0) zur Neuen migrieren.", "Start migration" : "Migration beginnen", "Security & setup warnings" : "Sicherheits- & Einrichtungswarnungen", "php does not seem to be setup properly to query system environment variables. The test with getenv(\"PATH\") only returns an empty response." : "PHP scheint zur Abfrage von Systemumgebungsvariablen nicht richtig eingerichtet zu sein. Der Test mit getenv (\"PATH\") liefert nur eine leere Antwort zurück.", "Please check the <a target=\"_blank\" rel=\"noreferrer\" href=\"%s\">installation documentation ↗</a> for php configuration notes and the php configuration of your server, especially when using php-fpm." : "Bitte schauen Sie in der <a target=\"_blank\" rel=\"noreferrer\" href=\"%s\">Installationsdokumentation ↗</a>auf Hinweise zur PHP-Konfiguration, sowie die PHP-Konfiguration ihres Servers, insbesondere dann, wenn Sie PHP-FPM einsetzten.", "The Read-Only config has been enabled. This prevents setting some configurations via the web-interface. Furthermore, the file needs to be made writable manually for every update." : "Die schreibgeschützte Konfiguration wurde aktiviert. Dies verhindert das Setzen einiger Einstellungen über die Web-Schnittstelle. Weiterhin muss bei jedem Update der Schreibzugriff auf die Datei händisch aktiviert werden.", "PHP is apparently setup to strip inline doc blocks. This will make several core apps inaccessible." : "PHP ist offenbar so konfiguriert, dass PHPDoc-Blöcke in der Anweisung entfernt werden. Dadurch sind mehrere Kern-Apps nicht erreichbar.", "This is probably caused by a cache/accelerator such as Zend OPcache or eAccelerator." : "Dies wird wahrscheinlich durch Zwischenspeicher/Beschleuniger wie etwa Zend OPcache oder eAccelerator verursacht.", "Your database does not run with \"READ COMMITTED\" transaction isolation level. This can cause problems when multiple actions are executed in parallel." : "Ihre Datenbank läuft nicht mit der \"READ COMMITED\" Transaktionsisolationsstufe. Dies kann Probleme hervorrufen, wenn mehrere Aktionen parallel ausgeführt werden.", "%1$s below version %2$s is installed, for stability and performance reasons we recommend updating to a newer %1$s version." : "%1$s ist in einer älteren Version als %2$s installiert. Aus Stabilitäts- und Performancegründen empfehlen wir eine Aktualisierung auf eine neuere %1$s-Version", "The PHP module 'fileinfo' is missing. We strongly recommend to enable this module to get best results with mime-type detection." : "Das PHP-Modul 'fileinfo' fehlt. Wir empfehlen Ihnen dieses Modul zu aktivieren, um die besten Resultate bei der Bestimmung der Dateitypen zu erzielen.", "Transactional file locking is disabled, this might lead to issues with race conditions. Enable 'filelocking.enabled' in config.php to avoid these problems. See the <a target=\"_blank\" rel=\"noreferrer\" href=\"%s\">documentation ↗</a> for more information." : "Transaktionales Sperren ist deaktiviert, was zu Problemen mit Laufzeitbedingungen führen kann. Aktivieren Sie 'filelocking.enabled' in der config.php diese Probleme zu vermeiden. Weitere Informationen findest Sie in unserer <a target=\"_blank\" rel=\"noreferrer\" href=\"%s\">Dokumentation ↗</a>.", "System locale can not be set to a one which supports UTF-8." : "Es kann kein Systemgebietsschema gesetzt werden, das UTF-8 unterstützt.", "This means that there might be problems with certain characters in file names." : "Dies bedeutet, dass es zu Problemen mit bestimmten Zeichen in Dateinamen kommen kann.", "We strongly suggest installing the required packages on your system to support one of the following locales: %s." : "Wir empfehlen dringend, die erforderlichen Pakete auf Ihrem System zu installieren, damit eines der folgenden Gebietsschemata unterstützt wird: %s.", "If your installation is not installed in the root of the domain and uses system cron, there can be issues with the URL generation. To avoid these problems, please set the \"overwrite.cli.url\" option in your config.php file to the webroot path of your installation (Suggested: \"%s\")" : "Wenn sich Ihre Installation nicht im Wurzelverzeichnis der Domain befindet und Cron aus dem System genutzt wird, kann es zu Fehlern bei der URL-Generierung kommen. Um dies zu verhindern, setzen Sie bitte die „overwrite.cli.url“-Option in Ihrer config.php auf das Web-Wurzelverzeichnis Ihrer Installation (Vorschlag: „%s“).", "It was not possible to execute the cronjob via CLI. The following technical errors have appeared:" : "Die Ausführung des Cron-Jobs über die Kommandozeile war nicht möglich. Die folgenden technischen Fehler sind dabei aufgetreten:", "Please double check the <a target=\"_blank\" rel=\"noreferrer\" href=\"%s\">installation guides ↗</a>, and check for any errors or warnings in the <a href=\"%s\">log</a>." : "Bitte überprüfen Sie noch einmal die <a target=\"_blank\" rel=\"noreferrer\" href=\"%s\">Installationsanleitungen ↗</a> und kontrollieren Sie das <a href=\"%s\">Log</a> auf mögliche Fehler oder Warnungen.", "All checks passed." : "Alle Checks bestanden.", "Cron" : "Cron", "Last cron job execution: %s." : "Letzte Cron-Job-Ausführung: %s.", "Last cron job execution: %s. Something seems wrong." : "Letzte Cron-Job-Ausführung: %s. Möglicherweise liegt ein Fehler vor.", "Cron was not executed yet!" : "Cron wurde bislang noch nicht ausgeführt!", "Execute one task with each page loaded" : "Eine Aufgabe bei jedem Laden einer Seite ausführen", "cron.php is registered at a webcron service to call cron.php every 15 minutes over http." : "cron.php ist als Webcron-Dienst registriert, der die cron.php alle 15 Minuten per HTTP aufruft.", "Use system's cron service to call the cron.php file every 15 minutes." : "Benutzen Sie den systemeigenen Cron-Dienst, um die cron.php alle 15 Minuten aufzurufen.", "The cron.php needs to be executed by the system user \"%s\"." : "Die cron.php muss durch den Systemnutzer \"%s\" ausgeführt werden.", "To run this you need the PHP posix extension. See {linkstart}PHP documentation{linkend} for more details." : "Um dies auszuführen, benötigen Sie die PHP-Posix Erweiterung. Weitere Informationen in der {linkstart}PHP-Dokumentation{linkend}.", "Version" : "Version", "Sharing" : "Teilen", "Allow apps to use the Share API" : "Apps die Benutzung der Share-API erlauben", "Allow users to share via link" : "Benutzern erlauben, Inhalte über Links zu teilen", "Allow public uploads" : "Öffentliches Hochladen erlauben", "Enforce password protection" : "Passwortschutz erzwingen", "Set default expiration date" : "Standardmäßiges Ablaufdatum setzen", "Expire after " : "Ablauf nach ", "days" : "Tagen", "Enforce expiration date" : "Ablaufdatum erzwingen", "Allow resharing" : "Weiterteilen erlauben", "Allow sharing with groups" : "Mit Gruppen teilen erlauben", "Restrict users to only share with users in their groups" : "Benutzer auf das Teilen innerhalb ihrer Gruppen beschränken", "Exclude groups from sharing" : "Gruppen von Freigaben ausschließen", "These groups will still be able to receive shares, but not to initiate them." : "Diese Gruppen können weiterhin Freigaben empfangen, aber selbst keine mehr initiieren.", "Allow username autocompletion in share dialog. If this is disabled the full username needs to be entered." : "Die Auto-Vervollständigung von Benutzernamen im Teilen-Dialog erlauben. Wenn dies deaktiviert ist, muss der vollständige Benutzername eingegeben werden.", "Show disclaimer text on the public link upload page. (Only shown when the file list is hidden.)" : "Zeige Haftungsausschluss auf der öffentlichen Upload-Seite. (Wird nur gezeigt wenn die Dateiliste nicht angezeigt wird.) ", "This text will be shown on the public link upload page when the file list is hidden." : "Dieser Text wird auf der öffentlichen Upload-Seite angezeigt wenn die Dateiliste nicht angezeigt wird.", "Tips & tricks" : "Tipps & Tricks", "SQLite is currently being used as the backend database. For larger installations we recommend that you switch to a different database backend." : "SQLite wird als Datenbank verwendet. Bei größeren Installationen empfehlen wir, auf ein anderes Datenbank-Backend zu wechseln.", "This is particularly recommended when using the desktop client for file synchronisation." : "Dies wird insbesondere bei der Benutzung des Dektop-Clients zur Synchronisierung empfohlen.", "To migrate to another database use the command line tool: 'occ db:convert-type', or see the <a target=\"_blank\" rel=\"noreferrer\" href=\"%s\">documentation ↗</a>." : "Um zu einer anderen Datenbank zu migrieren, benutzen Sie bitte die Kommandozeile: 'occ db:convert-type', oder in die <a target=\"_blank\" rel=\"noreferrer\" href=\"%s\">Dokumentation ↗</a> schauen.", "How to do backups" : "Wie man Datensicherungen anlegt", "Advanced monitoring" : "Erweitertes Monitoring", "Performance tuning" : "Leistungsoptimierung", "Improving the config.php" : "Die config.php optimieren", "Theming" : "Themes verwenden", "Hardening and security guidance" : "Systemhärtung und Sicherheitsempfehlungen", "Developer documentation" : "Dokumentation für Entwickler", "by %s" : "von %s", "%s-licensed" : "%s-Lizensiert", "Documentation:" : "Dokumentation:", "User documentation" : "Benutzer-Dokumentation", "Admin documentation" : "Administratoren-Dokumentation", "Visit website" : "Webseite besuchen", "Report a bug" : "Melden Sie einen technischen Fehler", "Show description …" : "Beschreibung anzeigen…", "Hide description …" : "Beschreibung ausblenden…", "This app has an update available." : "Für diese Anwendung ist eine Aktualisierung verfügbar.", "This app has no minimum Nextcloud version assigned. This will be an error in the future." : "Für diese App wurde keine untere Versionsgrenze für Nextcloud gesetzt. Dies wird zukünftig als Fehler behandelt.", "This app has no maximum Nextcloud version assigned. This will be an error in the future." : "Für diese App wurde keine obere Versionsgrenze für Nextcloud gesetzt. Dies wird zukünftig als Fehler behandelt.", "This app cannot be installed because the following dependencies are not fulfilled:" : "Diese App kann nicht installiert werden, weil die folgenden Abhängigkeiten nicht erfüllt sind:", "Enable only for specific groups" : "Nur für bestimmte Gruppen aktivieren", "Uninstall app" : "App deinstallieren", "SSL Root Certificates" : "SSL Root Zertifikate", "Common Name" : "Allgemeiner Name", "Valid until" : "Gültig bis", "Issued By" : "Ausgestellt von:", "Valid until %s" : "Gültig bis %s", "Import root certificate" : "Root-Zertifikat importieren", "Hey there,<br><br>just letting you know that you now have a %s account.<br><br>Your username: <strong>%s</strong><br>Access it: <strong><a href=\"%s\">%s</a></strong><br><br>" : "Hallo,<br><br>hier nur kurz die Mitteilung, dass Sie jetzt ein %s-Konto haben.<br><br>Ihr Benutzername: <strong>%s</strong><br>Greifen Sie darauf zu: <strong><a href=\"%s\">%s</a></strong><br><br>", "Cheers!" : "Noch einen schönen Tag!", "Hey there,\n\njust letting you know that you now have a %s account.\n\nYour username: %s\nAccess it: %s\n\n" : "Hallo,\n\nhier nur kurz die Mitteilung, dass Sie jetzt ein %s-Konto haben.\n\nIhr Benutzername: %s\nZugriff: %s\n\n", "Administrator documentation" : "Dokumentation für Administratoren", "Online documentation" : "Online-Dokumentation", "Forum" : "Forum", "Getting help" : "Hilfe bekommen", "Commercial support" : "Kommerzieller Support", "You are using <strong>%s</strong> of <strong>%s</strong>" : "Sie verwenden <strong>%s</strong> der verfügbaren <strong>%s</strong>", "Profile picture" : "Profilbild", "Upload new" : "Neues hochladen", "Select from Files" : "Aus Dateien wählen", "Remove image" : "Bild entfernen", "png or jpg, max. 20 MB" : "png oder jpg, max. 20 MB", "Picture provided by original account" : "Bild von Original-Konto zur Verfügung gestellt", "Cancel" : "Abbrechen", "Choose as profile picture" : "Als Profilbild auswählen", "Full name" : "Vollständiger Name", "No display name set" : "Kein Anzeigename angegeben", "Email" : "E-Mail", "Your email address" : "Ihre E-Mail-Adresse", "No email address set" : "Keine E-Mail-Adresse angegeben", "For password reset and notifications" : "Für Passwort-Wiederherstellung und Benachrichtigungen", "Phone number" : "Telefonnummer", "Your phone number" : "Ihre Telefonnummer", "Address" : "Adresse", "Your postal address" : "Ihre Postadresse", "Website" : "Webseite", "Your website" : "Ihre Internetseite", "Twitter" : "Twitter", "Your Twitter handle" : "Ihr Twitter-Handle", "You are member of the following groups:" : "Sie sind Mitglied folgender Gruppen:", "Password" : "Passwort", "Current password" : "Aktuelles Passwort", "New password" : "Neues Passwort", "Change password" : "Passwort ändern", "Language" : "Sprache", "Help translate" : "Helfen Sie bei der Übersetzung", "Get the apps to sync your files" : "Installieren Sie die Anwendungen, um Ihre Dateien zu synchronisieren", "Desktop client" : "Desktop-Client", "Android app" : "Android-App", "iOS app" : "iOS-App", "If you want to support the project {contributeopen}join development{linkclose} or {contributeopen}spread the word{linkclose}!" : "Wenn Sie das Projekt unterstützen wollen {contributeopen} helfen Sie bei der Entwicklung{linkclose} oder {contributeopen} verbreiten Sie es{linkclose}!", "Show First Run Wizard again" : "Den Einrichtungsassistenten erneut anzeigen", "Web, desktop and mobile clients currently logged in to your account." : "Aktuell in Ihrem Konto eingeloggte Web-, Desktop- und Mobil-Clients.", "Device" : "Gerät", "Last activity" : "Letzte Aktivität", "Passcodes that give an app or device permissions to access your account." : "PINs mit denen Apps oder Geräte auf Ihr Konto zugreifen können.", "Name" : "Name", "App name" : "App-Name", "Create new app password" : "Neues App-Passwort erstellen", "Use the credentials below to configure your app or device." : "Nutzen Sie die unten angebenen Anmeldeinformationen, um ihre App oder ihr Gerät zu konfigurieren.", "For security reasons this password will only be shown once." : "Aus Sicherheitsgründen wird das Passwort nur einmal angezeigt.", "Username" : "Benutzername", "Done" : "Erledigt", "Developed by the {communityopen}Nextcloud community{linkclose}, the {githubopen}source code{linkclose} is licensed under the {licenseopen}AGPL{linkclose}." : "Entwickelt von der {communityopen}Nextcloud Community{linkclose}, der {githubopen}Quellcode{linkclose} ist lizensiert unter {licenseopen}AGPL{linkclose}-Lizenz.", "Follow us on Google Plus!" : "Folgen Sie uns zu Google Plus!", "Like our facebook page!" : "Liken Sie uns auf unserer Facebook-Seite!", "Subscribe to our twitter channel!" : "Abonnieren Sie unseren Twitter-Kanal!", "Subscribe to our news feed!" : "Abonnieren Sie unseren RSS-Feed!", "Subscribe to our newsletter!" : "Abonnieren Sie unseren Newsletter!", "Show storage location" : "Speicherort anzeigen", "Show last log in" : "Letzte Anmeldung anzeigen", "Show user backend" : "Benutzer-Backend anzeigen", "Send email to new user" : "E-Mail an neuen Benutzer senden", "When the password of the new user is left empty an activation email with a link to set the password is send to the user" : "Wenn das Passwort für den neuen Benutzer leer gelassen wird, wird an ihn eine Aktivierungs-E-Mail mit einem Link zur Passwortvergabe versandt.", "Show email address" : "E-Mail Adresse anzeigen", "E-Mail" : "E-Mail", "Create" : "Erstellen", "Admin Recovery Password" : "Admin-Passwort-Wiederherstellung", "Enter the recovery password in order to recover the users files during password change" : "Geben Sie das Wiederherstellungspasswort ein, um die Benutzerdateien während der Passwortänderung wiederherzustellen", "Group name" : "Gruppenname", "Everyone" : "Jeder", "Admins" : "Administratoren", "Default quota" : "Standard-Kontingent", "Please enter storage quota (ex: \"512 MB\" or \"12 GB\")" : "Bitte Speicherkontingent eingeben (z.B.: „512 MB“ oder „12 GB“)", "Other" : "Andere", "Group admin for" : "Gruppenadministrator für", "Quota" : "Kontingent", "Storage location" : "Speicherort", "User backend" : "Benutzer-Backend", "Last login" : "Letzte Anmeldung", "change full name" : "Vollständigen Namen ändern", "set new password" : "Neues Passwort setzen", "change email address" : "E-Mail-Adresse ändern", "Default" : "Standard", "log-level out of allowed range" : "Log-Level außerhalb des erlaubten Bereichs", "Language changed" : "Sprache geändert", "Admins can't remove themself from the admin group" : "Administratoren können sich nicht selbst aus der admin-Gruppe löschen", "Unable to add user to group %s" : "Der Benutzer konnte nicht zur Gruppe %s hinzugefügt werden", "Unable to remove user from group %s" : "Der Benutzer konnte nicht aus der Gruppe %s entfernt werden", "Are you really sure you want add \"{domain}\" as trusted domain?" : "Sind Sie sich wirklich sicher, dass Sie \"{domain}\" als vertrauenswürdige Domain hinzufügen möchten?", "Please wait...." : "Bitte warten…", "add group" : "Gruppe hinzufügen", "Everything (fatal issues, errors, warnings, info, debug)" : "Alles (fatale Probleme, Fehler, Warnungen, Infos, Fehlerdiagnose)", "Info, warnings, errors and fatal issues" : "Infos, Warnungen, Fehler und fatale Probleme", "Warnings, errors and fatal issues" : "Warnungen, Fehler und fatale Probleme", "Errors and fatal issues" : "Fehler und fatale Probleme", "Fatal issues only" : "Nur kritische Fehler", "Log" : "Log", "What to log" : "Was geloggt wird", "Download logfile" : "Logdatei herunterladen", "More" : "Mehr", "Less" : "Weniger", "The logfile is bigger than 100 MB. Downloading it may take some time!" : "Die Logdatei ist größer als 100 MB. Es kann etwas Zeit beanspruchen, sie herunterzuladen!", "Allow users to send mail notification for shared files" : "Benutzern erlauben, E-Mail-Benachrichtigungen für freigegebene Dateien zu senden", "Allow users to send mail notification for shared files to other users" : "Benutzern erlauben, E-Mail-Benachrichtigungen für freigegebene Dateien an andere Benutzer zu senden", "SQLite is used as database. For larger installations we recommend to switch to a different database backend." : "SQLite wird als Datenbank verwendet. Bei größeren Installationen wird empfohlen, auf ein anderes Datenbank-Backend zu wechseln.", "Especially when using the desktop client for file syncing the use of SQLite is discouraged." : "Insbesondere bei der Nutzung des Desktop Clients zur Dateisynchronisierung wird vom Einsatz von SQLite abgeraten.", "Experimental applications ahead" : "Experimentelle Apps nachfolgend", "Experimental apps are not checked for security issues, new or known to be unstable and under heavy development. Installing them can cause data loss or security breaches." : "Experimentelle Apps sind nicht auf Sicherheitsprobleme hin überprüft, sind neu oder bekanntermaßen instabil und befinden sich in intensiver Entwicklung. Ihre Installation kann Datenverlust oder Sicherheitslücken hervorrufen.", "Uninstall App" : "App deinstallieren", "Enable experimental apps" : "Experimentelle Apps aktivieren", "Hey there,<br><br>just letting you know that you now have an %s account.<br><br>Your username: %s<br>Access it: <a href=\"%s\">%s</a><br><br>" : "Hallo,<br><br>hier nur kurz die Mitteilung, dass Sie jetzt ein %s-Konto haben.<br><br>Ihr Benutzername: %s<br>Greifen Sie darauf zu: <a href=\"%s\">%s</a><br><br>", "Hey there,\n\njust letting you know that you now have an %s account.\n\nYour username: %s\nAccess it: %s\n\n" : "Hallo,\n\nhier nur kurz die Mitteilung, dass Sie jetzt ein %s-Konto haben.\n\nIhr Benutzername: %s\nGreifen Sie darauf zu: %s\n\n", "For password recovery and notifications" : "Für Passwort-Wiederherstellung und Benachrichtigungen", "If you want to support the project\n\t\t<a href=\"https://nextcloud.com/contribute\"\n\t\t\ttarget=\"_blank\" rel=\"noreferrer\">join development</a>\n\t\tor\n\t\t<a href=\"https://nextcloud.com/contribute\"\n\t\t\ttarget=\"_blank\" rel=\"noreferrer\">spread the word</a>!" : "Wenn Sie das Projekt unterstützen möchten\n⇥⇥<a href=\"https://nextcloud.com/contribute\"\n⇥⇥⇥target=\"_blank\" rel=\"noreferrer\">helfen Sie bei der Weiterentwicklung</a>\n⇥⇥oder\n⇥⇥<a href=\"https://nextcloud.com/contribute\"\n⇥⇥⇥target=\"_blank\" rel=\"noreferrer\">empfehlen Sie es weiter</a>!", "Add Group" : "Gruppe hinzufügen", "Group" : "Gruppe", "Default Quota" : "Standard-Quota", "Full Name" : "Vollständiger Name", "Group Admin for" : "Gruppenadministrator für", "Storage Location" : "Speicherort", "User Backend" : "Benutzer-Backend", "Last Login" : "Letzte Anmeldung" }, "nplurals=2; plural=(n != 1);");
agpl-3.0
hannesk001/SPHERE-Framework
Application/People/Relationship/Service.php
20135
<?php namespace SPHERE\Application\People\Relationship; use SPHERE\Application\Corporation\Company\Company; use SPHERE\Application\Corporation\Company\Service\Entity\TblCompany; use SPHERE\Application\People\Meta\Common\Common; use SPHERE\Application\People\Person\Person; use SPHERE\Application\People\Person\Service\Entity\TblPerson; use SPHERE\Application\People\Relationship\Service\Data; use SPHERE\Application\People\Relationship\Service\Entity\TblGroup; use SPHERE\Application\People\Relationship\Service\Entity\TblSiblingRank; use SPHERE\Application\People\Relationship\Service\Entity\TblToCompany; use SPHERE\Application\People\Relationship\Service\Entity\TblToPerson; use SPHERE\Application\People\Relationship\Service\Entity\TblType; use SPHERE\Application\People\Relationship\Service\Entity\ViewRelationshipFromPerson; use SPHERE\Application\People\Relationship\Service\Entity\ViewRelationshipToCompany; use SPHERE\Application\People\Relationship\Service\Entity\ViewRelationshipToPerson; use SPHERE\Application\People\Relationship\Service\Setup; use SPHERE\Common\Frontend\Form\IFormInterface; use SPHERE\Common\Frontend\Form\Structure\FormColumn; use SPHERE\Common\Frontend\Form\Structure\FormGroup; use SPHERE\Common\Frontend\Form\Structure\FormRow; use SPHERE\Common\Frontend\Icon\Repository\Ban; use SPHERE\Common\Frontend\Message\Repository\Danger; use SPHERE\Common\Frontend\Message\Repository\Success; use SPHERE\Common\Window\Redirect; use SPHERE\System\Database\Binding\AbstractService; /** * Class Service * * @package SPHERE\Application\People\Relationship */ class Service extends AbstractService { /** * @return false|ViewRelationshipToPerson[] */ public function viewRelationshipToPerson() { return (new Data($this->getBinding()))->viewRelationshipToPerson(); } /** * @return false|ViewRelationshipFromPerson[] */ public function viewRelationshipFromPerson() { return ( new Data($this->getBinding()) )->viewRelationshipFromPerson(); } /** * @return false|ViewRelationshipToCompany[] */ public function viewRelationshipToCompany() { return ( new Data($this->getBinding()) )->viewRelationshipToCompany(); } /** * @param bool $doSimulation * @param bool $withData * * @return string */ public function setupService($doSimulation, $withData) { $Protocol = (new Setup($this->getStructure()))->setupDatabaseSchema($doSimulation); if (!$doSimulation && $withData) { (new Data($this->getBinding()))->setupDatabaseContent(); } return $Protocol; } /** * @param TblPerson $tblPerson * @param TblType|null $tblType * * @return bool|TblToPerson[] */ public function getPersonRelationshipAllByPerson(TblPerson $tblPerson, TblType $tblType = null) { return (new Data($this->getBinding()))->getPersonRelationshipAllByPerson($tblPerson, $tblType); } /** * @param TblToPerson[] $tblToPersonList * * @return array|TblPerson[] * sortet by Gender (0 => mother - 1 = father - 2... => unknown) * without hits on Mother or Father the unknown get the 0 and 1 */ public function getPersonGuardianAllByToPersonList($tblToPersonList) { $GuardianList = array(); if ($tblToPersonList && !empty($tblToPersonList)) { $i = 2; foreach ($tblToPersonList as $tblToPerson) { $tblPersonGuardian = $tblToPerson->getServiceTblPersonFrom(); // get Gender $Gender = ''; if ($tblPersonGuardian && ($common = Common::useService()->getCommonByPerson($tblPersonGuardian))) { if (($tblCommonBirthDates = $common->getTblCommonBirthDates())) { if (($tblCommonGender = $tblCommonBirthDates->getTblCommonGender())) { $Gender = $tblCommonGender->getName(); } } } if ($Gender == '') { $Salutation = $tblPersonGuardian->getSalutation(); if ($Salutation == 'Frau') { $Gender = 'Weiblich'; } elseif ($Salutation == 'Herr') { $Gender = 'Männlich'; } } // get sorted List (0 => Mother; 1 => Father; 2.. => Other ) if ($Gender == 'Weiblich') { if (isset($GuardianList[0])) { if (!isset($GuardianList[1])) { $GuardianList[1] = $GuardianList[0]; } else { $GuardianList[$i++] = $GuardianList[0]; } } $GuardianList[0] = $tblToPerson->getServiceTblPersonFrom(); } elseif (!isset($GuardianList[1]) && $Gender == 'Männlich') { if (isset($GuardianList[1])) { if (!isset($GuardianList[0])) { $GuardianList[0] = $GuardianList[1]; } else { $GuardianList[$i++] = $GuardianList[1]; } } $GuardianList[1] = $tblToPerson->getServiceTblPersonFrom(); } else { // if no matches set unknown to Mother/Father to keep it running $GuardianList[] = $tblToPerson->getServiceTblPersonFrom(); } } } return $GuardianList; } /** * @param TblPerson $tblPerson * * @return bool|TblToCompany[] */ public function getCompanyRelationshipAllByPerson(TblPerson $tblPerson) { return (new Data($this->getBinding()))->getCompanyRelationshipAllByPerson($tblPerson); } /** * @param TblCompany $tblCompany * * @return bool|TblToCompany[] */ public function getCompanyRelationshipAllByCompany(TblCompany $tblCompany) { return (new Data($this->getBinding()))->getCompanyRelationshipAllByCompany($tblCompany); } /** * @param IFormInterface $Form * @param TblPerson $tblPersonFrom * @param int $tblPersonTo * @param array $Type * * @return IFormInterface|string */ public function createRelationshipToPerson( IFormInterface $Form, TblPerson $tblPersonFrom, $tblPersonTo, $Type ) { /** * Skip to Frontend */ if (null === $Type) { return $Form; } $Error = false; if (empty($tblPersonTo)) { $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger('Bitte wählen Sie eine Person'))))); $Error = true; } else { $tblPersonTo = Person::useService()->getPersonById($tblPersonTo); if (!$tblPersonTo){ $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger('Bitte wählen Sie eine Person'))))); $Error = true; } elseif ($tblPersonFrom->getId() == $tblPersonTo->getId()) { $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger( 'Eine Person kann nur mit einer anderen Person verknüpft werden'))))); $Error = true; } } if (!($tblType = $this->getTypeById($Type['Type']))){ $Form->setError('Type[Type]', 'Bitte geben Sie einen Typ an'); $Error = true; } else { $Form->setSuccess('Type[Type]'); } if (!$Error) { if ((new Data($this->getBinding()))->addPersonRelationshipToPerson($tblPersonFrom, $tblPersonTo, $tblType, $Type['Remark']) ) { return new Success(new \SPHERE\Common\Frontend\Icon\Repository\Success() . ' Die Beziehung wurde erfolgreich hinzugefügt') . new Redirect('/People/Person', Redirect::TIMEOUT_SUCCESS, array('Id' => $tblPersonFrom->getId())); } else { return new Danger(new Ban() . ' Die Beziehung konnte nicht hinzugefügt werden') . new Redirect('/People/Person', Redirect::TIMEOUT_ERROR, array('Id' => $tblPersonFrom->getId())); } } return $Form; } /** * @param integer $Id * * @return bool|TblType */ public function getTypeById($Id) { return (new Data($this->getBinding()))->getTypeById($Id); } /** * @param TblGroup|null $tblGroup * * @return bool|TblType[] */ public function getTypeAllByGroup(TblGroup $tblGroup = null) { return (new Data($this->getBinding()))->getTypeAllByGroup($tblGroup); } /** * @param integer $Id * * @return bool|TblGroup */ public function getGroupById($Id) { return (new Data($this->getBinding()))->getGroupById($Id); } /** * @param string $Identifier * * @return bool|TblGroup */ public function getGroupByIdentifier($Identifier) { return (new Data($this->getBinding()))->getGroupByIdentifier($Identifier); } /** * @param IFormInterface $Form * @param TblPerson $tblPersonFrom * @param int $tblCompanyTo * @param array $Type * * @return IFormInterface|string */ public function createRelationshipToCompany( IFormInterface $Form, TblPerson $tblPersonFrom, $tblCompanyTo, $Type ) { /** * Skip to Frontend */ if (null === $Type) { return $Form; } $Error = false; if (empty($tblCompanyTo)) { $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger('Bitte wählen Sie eine Institution'))))); $Error = true; } else { $tblCompanyTo = Company::useService()->getCompanyById($tblCompanyTo); if (!$tblCompanyTo){ $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger('Bitte wählen Sie eine Institution'))))); $Error = true; } } if (!($tblType = $this->getTypeById($Type['Type']))){ $Form->setError('Type[Type]', 'Bitte geben Sie einen Typ an'); $Error = true; } else { $Form->setSuccess('Type[Type]'); } if (!$Error) { if ((new Data($this->getBinding()))->addCompanyRelationshipToPerson($tblCompanyTo, $tblPersonFrom, $tblType, $Type['Remark']) ) { return new Success(new \SPHERE\Common\Frontend\Icon\Repository\Success() . ' Die Beziehung wurde erfolgreich hinzugefügt') . new Redirect('/People/Person', Redirect::TIMEOUT_SUCCESS, array('Id' => $tblPersonFrom->getId())); } else { return new Danger(new Ban() . ' Die Beziehung konnte nicht hinzugefügt werden') . new Redirect('/People/Person', Redirect::TIMEOUT_ERROR, array('Id' => $tblPersonFrom->getId())); } } return $Form; } /** * @param IFormInterface $Form * @param TblToPerson $tblToPerson * @param TblPerson $tblPersonFrom * @param int $tblPersonTo * @param array $Type * * @return IFormInterface|string */ public function updateRelationshipToPerson( IFormInterface $Form, TblToPerson $tblToPerson, TblPerson $tblPersonFrom, $tblPersonTo, $Type ) { /** * Skip to Frontend */ if (null === $Type) { return $Form; } $Error = false; if (empty($tblPersonTo)) { $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger(new Ban() . ' Bitte wählen Sie eine Person'))))); $Error = true; } else { $tblPersonTo = Person::useService()->getPersonById($tblPersonTo); if (!$tblPersonTo){ $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger('Bitte wählen Sie eine Person'))))); $Error = true; } elseif ($tblPersonFrom->getId() == $tblPersonTo->getId()) { $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger(new Ban() . ' Eine Person kann nur mit einer anderen Person verknüpft werden'))))); $Error = true; } } if (!($tblType = $this->getTypeById($Type['Type']))){ $Form->setError('Type[Type]', 'Bitte geben Sie einen Typ an'); $Error = true; } else { $Form->setSuccess('Type[Type]'); } if (!$Error) { // Remove current (new Data($this->getBinding()))->removePersonRelationshipToPerson($tblToPerson); // Add new if ((new Data($this->getBinding()))->addPersonRelationshipToPerson($tblPersonFrom, $tblPersonTo, $tblType, $Type['Remark']) ) { return new Success(new \SPHERE\Common\Frontend\Icon\Repository\Success() . ' Die Beziehung wurde erfolgreich geändert') . new Redirect('/People/Person', Redirect::TIMEOUT_SUCCESS, array('Id' => $tblToPerson->getServiceTblPersonFrom() ? $tblToPerson->getServiceTblPersonFrom()->getId() : 0)); } else { return new Danger(new Ban() . ' Die Beziehung konnte nicht geändert werden') . new Redirect('/People/Person', Redirect::TIMEOUT_ERROR, array('Id' => $tblToPerson->getServiceTblPersonFrom() ? $tblToPerson->getServiceTblPersonFrom()->getId() : 0)); } } return $Form; } /** * @param IFormInterface $Form * @param TblToCompany $tblToCompany * @param TblPerson $tblPersonFrom * @param int $tblCompanyTo * @param array $Type * * @return IFormInterface|string */ public function updateRelationshipToCompany( IFormInterface $Form, TblToCompany $tblToCompany, TblPerson $tblPersonFrom, $tblCompanyTo, $Type ) { /** * Skip to Frontend */ if (null === $Type) { return $Form; } $Error = false; if (empty($tblCompanyTo)) { $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger('Bitte wählen Sie eine Institution'))))); $Error = true; } else { $tblCompanyTo = Company::useService()->getCompanyById($tblCompanyTo); if (!$tblCompanyTo){ $Form->appendGridGroup(new FormGroup(new FormRow(new FormColumn(new Danger('Bitte wählen Sie eine Institution'))))); $Error = true; } } if (!($tblType = $this->getTypeById($Type['Type']))){ $Form->setError('Type[Type]', 'Bitte geben Sie einen Typ an'); $Error = true; } else { $Form->setSuccess('Type[Type]'); } if (!$Error) { // Remove current (new Data($this->getBinding()))->removeCompanyRelationshipToPerson($tblToCompany); // Add new if ((new Data($this->getBinding()))->addCompanyRelationshipToPerson($tblCompanyTo, $tblPersonFrom, $tblType, $Type['Remark']) ) { return new Success(new \SPHERE\Common\Frontend\Icon\Repository\Success() . ' Die Beziehung wurde erfolgreich geändert') . new Redirect('/People/Person', Redirect::TIMEOUT_SUCCESS, array('Id' => $tblToCompany->getServiceTblPerson() ? $tblToCompany->getServiceTblPerson()->getId() : 0)); } else { return new Danger(new Ban() . ' Die Beziehung konnte nicht geändert werden') . new Redirect('/People/Person', Redirect::TIMEOUT_ERROR, array('Id' => $tblToCompany->getServiceTblPerson() ? $tblToCompany->getServiceTblPerson()->getId() : 0)); } } return $Form; } /** * @return bool|TblType[] */ public function getTypeAll() { return (new Data($this->getBinding()))->getTypeAll(); } /** * @param $Name * @return false|TblType */ public function getTypeByName($Name) { return (new Data($this->getBinding()))->getTypeByName($Name); } /** * @param TblToPerson $tblToPerson * @param bool $IsSoftRemove * * @return bool */ public function removePersonRelationshipToPerson(TblToPerson $tblToPerson, $IsSoftRemove = false) { return (new Data($this->getBinding()))->removePersonRelationshipToPerson($tblToPerson, $IsSoftRemove); } /** * @param TblToCompany $tblToCompany * @param bool $IsSoftRemove * * @return bool */ public function removeCompanyRelationshipToPerson(TblToCompany $tblToCompany, $IsSoftRemove = false) { return (new Data($this->getBinding()))->removeCompanyRelationshipToPerson($tblToCompany, $IsSoftRemove); } /** * @param integer $Id * * @return bool|TblToPerson */ public function getRelationshipToPersonById($Id) { return (new Data($this->getBinding()))->getRelationshipToPersonById($Id); } /** * @param integer $Id * * @return bool|TblToCompany */ public function getRelationshipToCompanyById($Id) { return (new Data($this->getBinding()))->getRelationshipToCompanyById($Id); } /** * @param TblCompany $tblCompany * @param TblPerson $tblPerson * @param TblType $tblType * @param string $Remark * * @return TblToCompany */ public function addCompanyRelationshipToPerson( TblCompany $tblCompany, TblPerson $tblPerson, TblType $tblType, $Remark = '' ) { return (new Data($this->getBinding()))->addCompanyRelationshipToPerson( $tblCompany, $tblPerson, $tblType, $Remark ); } /** * @param TblPerson $tblPersonFrom * @param TblPerson $tblPersonTo * @param TblType $tblType * @param string $Remark * * @return bool */ public function insertRelationshipToPerson( TblPerson $tblPersonFrom, TblPerson $tblPersonTo, TblType $tblType, $Remark ) { if ((new Data($this->getBinding()))->addPersonRelationshipToPerson($tblPersonFrom, $tblPersonTo, $tblType, $Remark) ) { return true; } else { return false; } } /** * @param integer $Id * * @return bool|TblSiblingRank */ public function getSiblingRankById($Id) { return (new Data($this->getBinding()))->getSiblingRankById($Id); } /** * @return bool|TblSiblingRank[] */ public function getSiblingRankAll() { return (new Data($this->getBinding()))->getSiblingRankAll(); } /** * @param TblPerson $tblPerson * @param bool $IsSoftRemove */ public function removeRelationshipAllByPerson(TblPerson $tblPerson, $IsSoftRemove = false) { if (($tblRelationshipToPersonList = $this->getPersonRelationshipAllByPerson($tblPerson))){ foreach($tblRelationshipToPersonList as $tblToPerson){ $this->removePersonRelationshipToPerson($tblToPerson, $IsSoftRemove); } } if (($tblRelationshipToPersonList = $this->getCompanyRelationshipAllByPerson($tblPerson))){ foreach($tblRelationshipToPersonList as $tblToPerson){ $this->removeCompanyRelationshipToPerson($tblToPerson, $IsSoftRemove); } } } }
agpl-3.0
zbbfufu/commuting-time
openlayer-frontend/src/main/web/index.html
971
<!doctype html> <html lang="en" charset="UTF-8"> <head> <link rel="stylesheet" href="css/ol.css" type="text/css"> <style> .map { height: 900px; width: 100%; } </style> <script src="js/ol.js"></script> <title>commuting-time</title> </head> <body> <div id="map" class="map"></div> <script type="text/javascript"> var map = new ol.Map({ view: new ol.View({ center: ol.proj.transform([2.35,48.85], 'EPSG:4326', 'EPSG:900913'), zoom: 10 }), layers: [ new ol.layer.Tile({ source: new ol.source.MapQuest({layer: 'osm'}) //source: new ol.source.OSM() }), new ol.layer.Vector({ source: new ol.source.GeoJSON({ url:'../../../../sample-datas/geojson/sncf-gares-et-arrets-transilien-ile-de-france.geojson', defaultProjection: 'EPSG:4326', projection: 'EPSG:900913' }) }) ], target: 'map' }); </script> </body> </html>
agpl-3.0
hitchtest/hitchstory
docs/approach/executable-specifications.md
1331
--- title: Executable specifications --- An executable specification is an idea taken from [agile philosophy](http://www.agilemodeling.com/essays/executableSpecifications.htm): >When trying to understand a class or operation most programmers will first look for sample code that already invokes it. Well-written unit/developers tests do exactly this – they provide a working specification of your functional code – and as a result unit tests effectively become a significant portion of your technical documentation. Similarly, acceptance tests can form an important part of your requirements documentation. This makes a lot of sense when you stop and think about it. Your acceptance tests define exactly what your stakeholders expect of your system, therefore they specify your critical requirements. It differs from a normal test primarily because it doubles as a means of clearly *describing* the software behavior *as well as* something you can feed to a machine that will test your code. The three preconditions for this are: * A clear separation of concerns between specification and execution code * A clear segregation barrier between the environment that *executes* your tests and the environment *under* test. * The executable specifications are described using declarative markup instead of turing complete code
agpl-3.0
weisslj/clipperz-communityEdition
js/src/Clipperz/PM/Components/Panels/ContactsPanel.js
3757
/* Copyright 2008 Clipperz Srl This file is part of Clipperz Community Edition. Clipperz Community Edition is a web-based password manager and a digital vault for confidential data. For further information about its features and functionalities please refer to http://www.clipperz.com * Clipperz Community Edition 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. * Clipperz Community Edition 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 Clipperz Community Edition. If not, see <http://www.gnu.org/licenses/>. */ if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } //############################################################################# Clipperz.PM.Components.Panels.ContactsPanel = function(anElement, args) { args = args || {}; Clipperz.PM.Components.Panels.ContactsPanel.superclass.constructor.call(this, anElement, args); this.render(); return this; } //============================================================================= YAHOO.extendX(Clipperz.PM.Components.Panels.ContactsPanel, Clipperz.PM.Components.Panels.BasePanel, { 'toString': function() { return "Clipperz.PM.Components.ContactsPanel component"; }, //------------------------------------------------------------------------- 'render': function() { // var tabPanelControllerConfig; Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ {tag:'tbody', children:[ {tag:'tr', children:[ {tag:'td', valign:'top', width:'200', children:[ {tag:'ul', id:"dataSubMenu", cls:'subMenu', children:[ {tag:'li', id:this.getId('contacts'), htmlString:Clipperz.PM.Strings['contactsTabLabel']}, ]} ]}, {tag:'td', valign:'top', children:[ {tag:'ul', cls:'clipperzTabPanels', children:[ {tag:'li', id:this.getId('contactsPanel'), children:[ {tag:'div', cls:'clipperzSubPanel', children:[ {tag:'h5', htmlString:Clipperz.PM.Strings['contactsTabTitle']}, {tag:'div', htmlString:Clipperz.PM.Strings['comingSoon']} ]} ]} ]} ]} ]} ]} ]}); // tabPanelControllerConfig = {} // tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); // new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); this.tabPanelController().setUp(); }, //------------------------------------------------------------------------- 'tabPanelController': function() { if (this._tabPanelController == null) { var tabPanelControllerConfig; tabPanelControllerConfig = {} tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); this._tabPanelController = new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); } return this._tabPanelController; }, //------------------------------------------------------------------------- __syntaxFix__: "syntax fix" });
agpl-3.0
myplaceonline/myplaceonline_rails
db/migrate/20170205065206_reset_search025.rb
96
class ResetSearch025 < ActiveRecord::Migration[5.0] def change UserIndex.reset! end end
agpl-3.0
ACEmulator/ACE-World
Database/3-Core/9 WeenieDefaults/SQL/Creature/Knathtead/45892 K'nath Ban'ry.sql
4743
DELETE FROM `weenie` WHERE `class_Id` = 45892; INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`) VALUES (45892, 'ace45892-knathbanry', 10, '2019-02-10 00:00:00') /* Creature */; INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`) VALUES (45892, 1, 16) /* ItemType - Creature */ , (45892, 2, 21) /* CreatureType - Knathtead */ , (45892, 6, -1) /* ItemsCapacity */ , (45892, 7, -1) /* ContainersCapacity */ , (45892, 16, 1) /* ItemUseable - No */ , (45892, 25, 80) /* Level */ , (45892, 93, 1032) /* PhysicsState - ReportCollisions, Gravity */ , (45892, 133, 2) /* ShowableOnRadar - ShowMovement */ , (45892, 8007, 0) /* PCAPRecordedAutonomousMovement */; INSERT INTO `weenie_properties_bool` (`object_Id`, `type`, `value`) VALUES (45892, 1, True ) /* Stuck */; INSERT INTO `weenie_properties_float` (`object_Id`, `type`, `value`) VALUES (45892, 76, 0.5) /* Translucency */; INSERT INTO `weenie_properties_string` (`object_Id`, `type`, `value`) VALUES (45892, 1, 'K''nath Ban''ry') /* Name */ , (45892, 8006, 'AAA9AAAAAAA=') /* PCAPRecordedCurrentMotionState */; INSERT INTO `weenie_properties_d_i_d` (`object_Id`, `type`, `value`) VALUES (45892, 1, 0x020004AE) /* Setup */ , (45892, 2, 0x09000032) /* MotionTable */ , (45892, 3, 0x20000048) /* SoundTable */ , (45892, 8, 0x0600141B) /* Icon */ , (45892, 22, 0x3400001D) /* PhysicsEffectTable */ , (45892, 8001, 8388630) /* PCAPRecordedWeenieHeader - ItemsCapacity, ContainersCapacity, Usable, RadarBehavior */ , (45892, 8003, 20) /* PCAPRecordedObjectDesc - Stuck, Attackable */ , (45892, 8005, 366595) /* PCAPRecordedPhysicsDesc - CSetup, MTable, STable, PeTable, Position, Movement, Translucency */; INSERT INTO `weenie_properties_position` (`object_Id`, `position_Type`, `obj_Cell_Id`, `origin_X`, `origin_Y`, `origin_Z`, `angles_W`, `angles_X`, `angles_Y`, `angles_Z`) VALUES (45892, 8040, 0x016401DE, 119.067, -34.8454, -5.982, 0, 0, 0, -1) /* PCAPRecordedLocation */ /* @teleloc 0x016401DE [119.067000 -34.845400 -5.982000] 0.000000 0.000000 0.000000 -1.000000 */; INSERT INTO `weenie_properties_i_i_d` (`object_Id`, `type`, `value`) VALUES (45892, 8000, 0xAE7B827A) /* PCAPRecordedObjectIID */; INSERT INTO `weenie_properties_attribute` (`object_Id`, `type`, `init_Level`, `level_From_C_P`, `c_P_Spent`) VALUES (45892, 1, 140, 0, 0) /* Strength */ , (45892, 2, 210, 0, 0) /* Endurance */ , (45892, 3, 85, 0, 0) /* Quickness */ , (45892, 4, 220, 0, 0) /* Coordination */ , (45892, 5, 300, 0, 0) /* Focus */ , (45892, 6, 300, 0, 0) /* Self */; INSERT INTO `weenie_properties_attribute_2nd` (`object_Id`, `type`, `init_Level`, `level_From_C_P`, `c_P_Spent`, `current_Level`) VALUES (45892, 1, 150, 0, 0, 255) /* MaxHealth */ , (45892, 3, 200, 0, 0, 410) /* MaxStamina */ , (45892, 5, 200, 0, 0, 500) /* MaxMana */; INSERT INTO `weenie_properties_create_list` (`object_Id`, `destination_Type`, `weenie_Class_Id`, `stack_Size`, `palette`, `shade`, `try_To_Bond`) VALUES (45892, 9, 254, 0, 0, 0, False) /* Create Stoup (254) for ContainTreasure */ , (45892, 9, 2434, 0, 0, 0, False) /* Create Lesser Mana Stone (2434) for ContainTreasure */ , (45892, 9, 20401, 0, 0, 0, False) /* Create Scroll of Nullify Life Magic Self (20401) for ContainTreasure */ , (45892, 9, 8329, 1, 0, 0, False) /* Create Lead Pea (8329) for ContainTreasure */ , (45892, 9, 31222, 0, 0, 0, False) /* Create K'nath Key (31222) for ContainTreasure */ , (45892, 9, 5789, 1, 0, 0, False) /* Create Brown Lump (5789) for ContainTreasure */ , (45892, 9, 154, 0, 0, 0, False) /* Create Goblet (154) for ContainTreasure */ , (45892, 9, 273, 162, 0, 0, False) /* Create Pyreal (273) for ContainTreasure */ , (45892, 9, 621, 0, 0, 0, False) /* Create Heavy Bracelet (621) for ContainTreasure */ , (45892, 9, 8328, 1, 0, 0, False) /* Create Iron Pea (8328) for ContainTreasure */ , (45892, 9, 2602, 0, 0, 0, False) /* Create Loose Breeches (2602) for ContainTreasure */ , (45892, 9, 624, 0, 0, 0, False) /* Create Ring (624) for ContainTreasure */ , (45892, 9, 105, 0, 0, 0, False) /* Create Studded Leather Sleeves (105) for ContainTreasure */ , (45892, 9, 27330, 0, 0, 0, False) /* Create Moderate Mana Stone (27330) for ContainTreasure */ , (45892, 9, 31865, 0, 0, 0, False) /* Create Circlet (31865) for ContainTreasure */ , (45892, 9, 332, 0, 0, 0, False) /* Create Morning Star (332) for ContainTreasure */;
agpl-3.0
ACEmulator/ACE-World
Database/3-Core/9 WeenieDefaults/SQL/Scroll/Writable/02701 Scroll of Heal Self VI.sql
1882
DELETE FROM `weenie` WHERE `class_Id` = 2701; INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`) VALUES (2701, 'scrollhealself6', 34, '2019-02-10 00:00:00') /* Scroll */; INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`) VALUES (2701, 1, 8192) /* ItemType - Writable */ , (2701, 5, 30) /* EncumbranceVal */ , (2701, 16, 8) /* ItemUseable - Contained */ , (2701, 19, 1000) /* Value */ , (2701, 93, 1044) /* PhysicsState - Ethereal, IgnoreCollisions, Gravity */ , (2701, 8041, 101) /* PCAPRecordedPlacement - Resting */; INSERT INTO `weenie_properties_bool` (`object_Id`, `type`, `value`) VALUES (2701, 22, True ) /* Inscribable */; INSERT INTO `weenie_properties_float` (`object_Id`, `type`, `value`) VALUES (2701, 39, 1.5) /* DefaultScale */; INSERT INTO `weenie_properties_string` (`object_Id`, `type`, `value`) VALUES (2701, 1, 'Scroll of Heal Self VI') /* Name */ , (2701, 14, 'Use this item to attempt to learn its spell.') /* Use */ , (2701, 16, 'Inscribed spell: Heal Self VI Restores 55-120 points of the caster''s Health.') /* LongDesc */; INSERT INTO `weenie_properties_d_i_d` (`object_Id`, `type`, `value`) VALUES (2701, 1, 0x0200018A) /* Setup */ , (2701, 8, 0x06003543) /* Icon */ , (2701, 22, 0x3400002B) /* PhysicsEffectTable */ , (2701, 28, 1161) /* Spell - HealSelf6 */ , (2701, 8001, 6307864) /* PCAPRecordedWeenieHeader - Value, Usable, Container, Burden, Spell */ , (2701, 8003, 18) /* PCAPRecordedObjectDesc - Inscribable, Attackable */ , (2701, 8005, 135297) /* PCAPRecordedPhysicsDesc - CSetup, ObjScale, PeTable, AnimationFrame */; INSERT INTO `weenie_properties_i_i_d` (`object_Id`, `type`, `value`) VALUES (2701, 8000, 0xDD03671C) /* PCAPRecordedObjectIID */;
agpl-3.0
TheLanguageArchive/YAMS
web/src/main/java/nl/mpi/yams/client/ui/SearchWidgetsPanel.java
11217
/** * Copyright (C) 2013 The Language Archive, Max Planck Institute for * Psycholinguistics * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * * This program 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 General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place - Suite 330, Boston, MA 02111-1307, USA. */ package nl.mpi.yams.client.ui; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.text.shared.Renderer; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.HasHorizontalAlignment; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.ValueListBox; import com.google.gwt.user.client.ui.VerticalPanel; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.logging.Logger; import nl.mpi.yams.client.DatabaseInformation; import nl.mpi.yams.client.controllers.HistoryController; import nl.mpi.yams.client.HistoryListener; import nl.mpi.yams.client.SearchOptionsServiceAsync; import nl.mpi.yams.client.controllers.SearchHandler; import nl.mpi.yams.common.data.QueryDataStructures.CriterionJoinType; import nl.mpi.yams.common.data.QueryDataStructures.SearchOption; import nl.mpi.yams.common.data.SearchParameters; /** * Created on : Jan 29, 2013, 2:50:44 PM * * @author Peter Withers <peter.withers@mpi.nl> */ public class SearchWidgetsPanel extends VerticalPanel implements HistoryListener { private static final Logger logger = Logger.getLogger(""); private static final String SEARCH_LABEL = "Search"; private static final String SEARCHING_LABEL = "<img src='./loader.gif'/>&nbsp;Searching"; private static final String ADD_SEARCH_TERM = "add search term"; private static final String sendButtonStyle = "sendButton"; private static final String NO_VALUE = "<no value>"; private static final String DEMO_LIST_BOX_STYLE = "demo-ListBox"; private final SearchOptionsServiceAsync searchOptionsService; private final HistoryController historyController; private String lastUsedDatabase = ""; private Button searchButton; private SearchHandler searchHandler; private final ResultsPanel resultsPanel; private final ValueListBox<CriterionJoinType> joinTypeListBox; private final VerticalPanel verticalPanel; private final ArrayList<SearchCriterionPanel> criterionPanelList = new ArrayList<SearchCriterionPanel>(); private final DatabaseInformation databaseInfo; public SearchWidgetsPanel(SearchOptionsServiceAsync searchOptionsService, final HistoryController historyController, DatabaseInformation databaseInfo, ResultsPanel resultsPanel, DataNodeTable dataNodeTable, final ArchiveBranchSelectionPanel archiveTreePanel) { this.searchOptionsService = searchOptionsService; this.historyController = historyController; this.databaseInfo = databaseInfo; this.resultsPanel = resultsPanel; verticalPanel = new VerticalPanel(); this.add(verticalPanel); initSearchHandler(); final SearchCriterionPanel searchCriterionPanel = new SearchCriterionPanel(SearchWidgetsPanel.this, searchOptionsService); if (archiveTreePanel != null) { verticalPanel.add(archiveTreePanel); historyController.addHistoryListener(archiveTreePanel); } verticalPanel.add(searchCriterionPanel); criterionPanelList.add(searchCriterionPanel); Button addRowButton = new Button(ADD_SEARCH_TERM, new ClickHandler() { public void onClick(ClickEvent event) { addSearchCriterionPanel(new SearchCriterionPanel(SearchWidgetsPanel.this, SearchWidgetsPanel.this.searchOptionsService)); } }); this.add(addRowButton); final HorizontalPanel buttonsPanel = new HorizontalPanel(); this.add(buttonsPanel); joinTypeListBox = getJoinTypeListBox(); buttonsPanel.add(joinTypeListBox); buttonsPanel.add(searchButton); this.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); } public void userSelectionChange() { final String databaseName = historyController.getDatabaseName(); if (databaseName != null && !databaseName.isEmpty() && !databaseName.equals(lastUsedDatabase)) { historyChange(); } } public void historyChange() { searchHandler.updateDbName(); final CriterionJoinType criterionJoinType = historyController.getCriterionJoinType(); if (criterionJoinType == null) { joinTypeListBox.setValue(CriterionJoinType.values()[0]); } else { joinTypeListBox.setValue(criterionJoinType); } final ArrayList<SearchParameters> searchParametersList = historyController.getSearchParametersList(); if (searchParametersList != null && !searchParametersList.isEmpty()) { while (searchParametersList.size() < criterionPanelList.size()) { removeSearchCriterionPanel(criterionPanelList.get(criterionPanelList.size() - 1)); } while (searchParametersList.size() > criterionPanelList.size()) { addSearchCriterionPanel(new SearchCriterionPanel(SearchWidgetsPanel.this, SearchWidgetsPanel.this.searchOptionsService)); } for (int panelIndex = 0; panelIndex < criterionPanelList.size(); panelIndex++) { final SearchParameters historyValues = searchParametersList.get(panelIndex); criterionPanelList.get(panelIndex).setDefaultValues(historyValues.getFileType(), historyValues.getFieldType(), historyValues.getSearchNegator(), historyValues.getSearchType(), historyValues.getSearchString()); } } else { while (!criterionPanelList.isEmpty()) { removeSearchCriterionPanel(criterionPanelList.get(0)); } if (historyController.getDatabaseName() != null) { final SearchCriterionPanel searchCriterionPanel = new SearchCriterionPanel(SearchWidgetsPanel.this, SearchWidgetsPanel.this.searchOptionsService); addSearchCriterionPanel(searchCriterionPanel); } } final String databaseName = historyController.getDatabaseName(); if (databaseName != null && !databaseName.isEmpty() && !databaseName.equals(lastUsedDatabase)) { lastUsedDatabase = databaseName; for (SearchCriterionPanel eventCriterionPanel : criterionPanelList) { eventCriterionPanel.setDatabase(databaseName); } } } protected void addSearchCriterionPanel(SearchCriterionPanel criterionPanel) { criterionPanelList.add(criterionPanel); verticalPanel.add(criterionPanel); if (!lastUsedDatabase.isEmpty()) { criterionPanel.setDatabase(lastUsedDatabase); } joinTypeListBox.setVisible(criterionPanelList.size() > 1); } protected void removeSearchCriterionPanel(SearchCriterionPanel criterionPanel) { criterionPanelList.remove(criterionPanel); verticalPanel.remove(criterionPanel); joinTypeListBox.setVisible(criterionPanelList.size() > 1); } private void initSearchHandler() { searchButton = new Button(SEARCH_LABEL); searchButton.addStyleName(sendButtonStyle); searchHandler = new SearchHandler(historyController, databaseInfo, searchOptionsService, resultsPanel) { @Override protected void prepareSearch() { searchButton.setEnabled(false); searchButton.setHTML(SEARCHING_LABEL); ArrayList<SearchParameters> searchParametersList = new ArrayList<SearchParameters>(); for (SearchCriterionPanel eventCriterionPanel : criterionPanelList) { //logger.info("eventCriterionPanel"); searchParametersList.add(new SearchParameters(eventCriterionPanel.getMetadataFileType(), eventCriterionPanel.getMetadataFieldType(), eventCriterionPanel.getSearchNegator(), eventCriterionPanel.getSearchType(), eventCriterionPanel.getSearchText())); } historyController.setSearchParameters(joinTypeListBox.getValue(), searchParametersList); } protected @Override void finaliseSearch() { searchButton.setEnabled(true); searchButton.setHTML(SEARCH_LABEL); } }; searchButton.addClickHandler(searchHandler); } protected ValueListBox getSearchOptionsListBox() { final ValueListBox<SearchOption> widget = new ValueListBox<SearchOption>(new Renderer<SearchOption>() { public String render(SearchOption object) { if (object == null) { return NO_VALUE; } else { return object.toString(); } } public void render(SearchOption object, Appendable appendable) throws IOException { if (object != null) { appendable.append(object.toString()); } } }); widget.addStyleName(DEMO_LIST_BOX_STYLE); widget.setValue(SearchOption.equals); widget.setAcceptableValues(Arrays.asList(SearchOption.values())); return widget; } private ValueListBox getJoinTypeListBox() { final ValueListBox<CriterionJoinType> widget = new ValueListBox<CriterionJoinType>(new Renderer<CriterionJoinType>() { public String render(CriterionJoinType object) { if (object == null) { return NO_VALUE; } else { return object.toString(); } } public void render(CriterionJoinType object, Appendable appendable) throws IOException { if (object != null) { appendable.append(object.toString()); } } }); widget.addStyleName(DEMO_LIST_BOX_STYLE); widget.setValue(CriterionJoinType.intersect); widget.setAcceptableValues(Arrays.asList(CriterionJoinType.values())); // widget.addValueChangeHandler(new ValueChangeHandler<CriterionJoinType>() { // // public void onValueChange(ValueChangeEvent<CriterionJoinType> event) { // historyController.setCriterionJoinType(event.getValue()); // } // }); return widget; } public SearchHandler getSearchHandler() { return searchHandler; } }
agpl-3.0
jgsmith/second-contract
mud/usr/WorldLib/lib/comp/basic.c
2009
# include <worldlib.h> # include <iflib.h> # include <type.h> int position; int gait; /* default movement speed */ mapping senses; /* senses available */ mapping get_properties() { return ([ "gait": WORDS_D -> gait_word(gait), "position": WORDS_D -> position_word(position), ]); } mixed get_property(string *path) { object ur; ur = this_object() -> get_template_object(); if(!sizeof(path)) return nil; switch(path[0]) { case "environment": return this_object() -> get_environment(); case "gait": if(sizeof(path) == 1) { return WORDS_D -> gait_word(gait); } else if(sizeof(path) == 2) { return path[1] == WORDS_D -> gait_word(gait); } else return nil; case "position": if(sizeof(path) == 1) { return WORDS_D -> position_word(position); } else if(sizeof(path) == 2) { return path[1] == WORDS_D -> position_word(position); } else return nil; } } int set_property(string *path, mixed value) { int tmp; object env; if(!sizeof(path)) return FALSE; switch(path[0]) { case "environment": return FALSE; /* we don't change environment through this interface */ case "gait": tmp = -1; if(sizeof(path) == 1) { tmp = WORDS_D -> gait_number(value); } else if(sizeof(path) == 2) { tmp = WORDS_D -> gait_number(path[1]); if(!value) tmp = -1; } if(tmp < 1) return FALSE; gait = tmp; return TRUE; case "position": tmp = -1; if(sizeof(path) == 1) { tmp = WORDS_D -> position_number(value); } else if(sizeof(path) == 2) { tmp = WORDS_D -> position_number(path[1]); if(!value) tmp = -1; } if(tmp < 1) return FALSE; env = this_object() -> get_environment(); if(env) { /* we need to check on a few things to ensure that this position * is allowed. */ position = tmp; } return TRUE; } }
agpl-3.0
welaika/menadi
Menadi/src/main/java/com/welaika/menadi/db/RelatorEvent.java
1447
package com.welaika.menadi.db; import com.activeandroid.Model; import com.activeandroid.annotation.Column; import com.activeandroid.annotation.Table; import com.activeandroid.query.Select; import java.util.ArrayList; import java.util.List; @Table(name = "RelatorsEvents") public class RelatorEvent extends Model { @Column(name = "IdR") public Integer idR; @Column(name = "Relator") public Relator relator; @Column(name = "IdEInD") public Integer idEInD; @Column(name = "EventInD") public EventInDate eventInD; public RelatorEvent() { super(); } public RelatorEvent(int idR, Relator relator, int idEInD, EventInDate eventInD) { this.idR = idR; this.relator = relator; this.idEInD = idEInD; this.eventInD = eventInD; } public static List<RelatorEvent> getEvents(int idRel) { return new Select() .from(RelatorEvent.class) .where("IdR = ?", idRel) .execute(); } public static List<Relator> getRelators(int idEventInDate) { List<RelatorEvent> list_r2e = new Select() .from(RelatorEvent.class) .where("IdEInD = ?", idEventInDate) .execute(); List<Relator> relators = new ArrayList<Relator>(); for(RelatorEvent r2e : list_r2e){ relators.add(r2e.relator); } return relators; } }
agpl-3.0
jollheef/tin_foil_hat
checker/python-api/dummy_checker.py
4904
#!/usr/bin/python3 ###### Памятка по статусам ##### # OK -- сервис онлайн, обрабатывает запросы, получает и отдает флаги. # MUMBLE -- сервис онлайн, но некорректно работает # CORRUPT -- сервис онлайн, но установленные флаги невозможно получить. # DOWN -- сервис оффлайн. from sys import argv from socket import socket, AF_INET, SOCK_STREAM from string import ascii_letters from random import randint, shuffle from time import sleep from tinfoilhat import Checker, \ ServiceMumbleException, \ ServiceCorruptException, \ ServiceDownException class DummyChecker(Checker): BUFSIZE = 1024 """ Сгенерировать логин @return строка логина из 10 символов английского алфавита """ def random_login(self): symbols = list(ascii_letters) shuffle(symbols) return ''.join(symbols[0:10]) """ Сгенерировать пароль @return строка пароля из 10 цифр """ def random_password(self): return str(randint(100500**2, 100500**3))[0:10] """ Отправить логин и пароль сервису. @param sock сокет @param login логин @param password пароль """ def send_cred(self, s, login, password): s.send(login.encode('utf-8')) if b'OK\n' != s.recv(self.BUFSIZE): raise ServiceMumbleException() s.send(password.encode('utf-8')) if b'OK\n' != s.recv(self.BUFSIZE): raise ServiceMumbleException() """ Положить флаг в сервис @param host адрес хоста @param port порт сервиса @param flag флаг @return состояние, необходимое для получения флага """ def put(self, host, port, flag): try: s = socket(AF_INET, SOCK_STREAM) s.connect((host, port)) s.send(b'REG\n') if b'OK\n' != s.recv(self.BUFSIZE): raise ServiceMumbleException() login = self.random_login() password = self.random_password() self.send_cred(s, login, password) s.close() s = socket(AF_INET, SOCK_STREAM) s.connect((host, port)) s.send(b'PUT\n') if b'OK\n' != s.recv(self.BUFSIZE): raise ServiceMumbleException() self.send_cred(s, login, password) s.send(flag.encode('utf-8')) if b'OK\n' != s.recv(self.BUFSIZE): raise ServiceMumbleException() return login + ":" + password except (OSError, IOError) as e: if e.errno == 111: # ConnectionRefusedError raise ServiceDownException() else: raise ServiceMumbleException() """ Получить флаг из сервиса @param host адрес хоста @param port порт сервиса @param state состояние @return флаг """ def get(self, host, port, state): login, password = state.split(':') s = socket(AF_INET, SOCK_STREAM) s.connect((host, port)) s.send(b'GET\n') if b'OK\n' != s.recv(self.BUFSIZE): raise ServiceMumbleException() try: self.send_cred(s, login, password) except ServiceMumbleException: raise ServiceCorruptException() try: flag, ret = s.recv(self.BUFSIZE).split() return flag.decode('utf-8') except ValueError: raise ServiceCorruptException() """ Проверить состояние сервиса @param host адрес хоста @param port порт сервиса """ def chk(self, host, port): # Так как сервис реализует только логику хранилища, # её и проверяем. # Это отличается от put и get тем, что происходит в один момент, # тем самым наличие данных по прошествии времени не проверяется. data = self.random_password() try: state = self.put(host, port, data) new_data = self.get(host, port, state) except (OSError, IOError) as e: if e.errno == 111: # ConnectionRefusedError raise ServiceDownException() else: raise ServiceMumbleException() if data != new_data: raise ServiceMumbleException() if __name__ == '__main__': DummyChecker(argv)
agpl-3.0
davidstillwell/concerto-platform
src/Concerto/PanelBundle/Entity/TestSession.php
9985
<?php namespace Concerto\PanelBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table * @ORM\Entity(repositoryClass="Concerto\PanelBundle\Repository\TestSessionRepository") */ class TestSession extends AEntity { const STATUS_RUNNING = 0; const STATUS_SERIALIZED = 1; /** * @ORM\ManyToOne(targetEntity="Test", inversedBy="sessions") */ private $test; /** * * @ORM\Column(type="string") */ private $testServerNodeId; /** * * @ORM\Column(type="integer", nullable=true) */ private $testServerNodePort; /** * * @ORM\Column(type="string") */ private $rServerNodeId; /** * * @ORM\Column(type="integer", nullable=true) */ private $rServerNodePort; /** * * @ORM\Column(type="integer") */ private $status; /** * @ORM\ManyToOne(targetEntity="ViewTemplate") * @ORM\JoinColumn(nullable=true, onDelete="CASCADE") */ private $template; /** * * @ORM\Column(type="text", nullable=true) */ private $templateHtml; /** * * @ORM\Column(type="text", nullable=true) */ private $templateHead; /** * @ORM\ManyToOne(targetEntity="ViewTemplate") * @ORM\JoinColumn(name="loader_id", referencedColumnName="id", nullable=true) */ private $loader; /** * * @ORM\Column(type="text", nullable=true) */ private $loaderHtml; /** * * @ORM\Column(type="text", nullable=true) */ private $loaderHead; /** * * @ORM\Column(type="integer") */ private $timeLimit; /** * * @ORM\Column(type="text", nullable=true) */ private $params; /** * * @ORM\Column(type="text", nullable=true) */ private $returns; /** * * @ORM\Column(type="text", nullable=true) */ private $error; /** * * @ORM\Column(type="text", nullable=true) */ private $clientIp; /** * * @ORM\Column(type="text", nullable=true) */ private $clientBrowser; /** * * @ORM\Column(type="text", nullable=true, length=40) */ private $hash; /** * * @ORM\Column(type="boolean") */ private $debug; public function __construct() { parent::__construct(); $this->hash = sha1(rand(1000, 9999)); $this->status = self::STATUS_RUNNING; $this->timeLimit = 0; $this->finalize = 0; } /** * Set test server node id * * @param string $testServerNodeId * @return TestSession */ public function setTestServerNodeId($testServerNodeId) { $this->testServerNodeId = $testServerNodeId; return $this; } /** * Get test server node if * * @return string */ public function getTestServerNodeId() { return $this->testServerNodeId; } /** * Set test server node port * * @param integer $testServerNodePort * @return TestSession */ public function setTestServerNodePort($testServerNodePort) { $this->testServerNodePort = $testServerNodePort; return $this; } /** * Get test server node port * * @return integer */ public function getTestServerNodePort() { return $this->testServerNodePort; } /** * Set R server node id * * @param string $rServerNodeId * @return TestSession */ public function setRServerNodeId($rServerNodeId) { $this->rServerNodeId = $rServerNodeId; return $this; } /** * Get R server node id * * @return string */ public function getRServerNodeId() { return $this->rServerNodeId; } /** * Set R server node port * * @param integer $rServerNodePort * @return TestSession */ public function setRServerNodePort($rServerNodePort) { $this->rServerNodePort = $rServerNodePort; return $this; } /** * Get R server node port * * @return integer */ public function getRServerNodePort() { return $this->rServerNodePort; } /** * Set status * * @param integer $status * @return TestSession */ public function setStatus($status) { $this->status = $status; return $this; } /** * Get status * * @return integer */ public function getStatus() { return $this->status; } /** * Set templateHtml * * @param string $templateHtml * @return TestSession */ public function setTemplateHtml($templateHtml) { $this->templateHtml = $templateHtml; return $this; } /** * Get templateHtml * * @return string */ public function getTemplateHtml() { return $this->templateHtml; } /** * Set templateHead * * @param string $templateHead * @return TestSession */ public function setTemplateHead($templateHead) { $this->templateHead = $templateHead; return $this; } /** * Get templateHead * * @return string */ public function getTemplateHead() { return $this->templateHead; } /** * Set loaderHtml * * @param string $loaderHtml * @return TestSession */ public function setLoaderHtml($loaderHtml) { $this->loaderHtml = $loaderHtml; return $this; } /** * Get loaderHtml * * @return string */ public function getLoaderHtml() { return $this->loaderHtml; } /** * Set loaderHead * * @param string $loaderHead * @return TestSession */ public function setLoaderHead($loaderHead) { $this->loaderHead = $loaderHead; return $this; } /** * Get loaderHead * * @return string */ public function getLoaderHead() { return $this->loaderHead; } /** * Set test * * @param Test $test * @return TestSession */ public function setTest(Test $test = null) { $this->test = $test; return $this; } /** * Get test * * @return Test */ public function getTest() { return $this->test; } /** * Set template * * @param ViewTemplate $template * @return TestSession */ public function setTemplate(ViewTemplate $template = null) { $this->template = $template; return $this; } /** * Get template * * @return ViewTemplate */ public function getTemplate() { return $this->template; } /** * Set loader * * @param ViewTemplate $loader * @return TestSession */ public function setLoader(ViewTemplate $loader = null) { $this->loader = $loader; return $this; } /** * Get loader * * @return ViewTemplate */ public function getLoader() { return $this->loader; } /** * Set time limit * * @param integer $timeLimit * @return TestSession */ public function setTimeLimit($timeLimit) { $this->timeLimit = $timeLimit; return $this; } /** * Get time limit (in seconds) * * @return integer */ public function getTimeLimit() { return $this->timeLimit; } /** * Set params * * @param string $params * @return TestSession */ public function setParams($params) { $this->params = $params; return $this; } /** * Get params * * @return string */ public function getParams() { return $this->params; } /** * Set returns * * @param string $returns * @return TestSession */ public function setReturns($returns) { $this->returns = $returns; return $this; } /** * Get returns * * @return string */ public function getReturns() { return $this->returns; } /** * Set error * * @param string $error * @return TestSession */ public function setError($error) { $this->error = $error; return $this; } /** * Get error * * @return string */ public function getError() { return $this->error; } /** * Set client ip * * @param string $clientIp * @return TestSession */ public function setClientIp($clientIp) { $this->clientIp = $clientIp; return $this; } /** * Get client ip * * @return string */ public function getClientIp() { return $this->clientIp; } /** * Set client browser * * @param string $clientBrowser * @return TestSession */ public function setClientBrowser($clientBrowser) { $this->clientBrowser = $clientBrowser; return $this; } /** * Get client browser * * @return string */ public function getClientBrowser() { return $this->clientBrowser; } /** * Set hash * * @param string $hash * @return TestSession */ public function setHash($hash) { $this->hash = $hash; return $this; } /** * Get hash * * @return string */ public function getHash() { return $this->hash; } /** * Set debug * * @param boolean $debug * @return TestSession */ public function setDebug($debug) { $this->debug = $debug; return $this; } /** * Get debug * * @return boolean */ public function isDebug() { return $this->debug; } }
agpl-3.0
sturesy/client
src/src-main/sturesy/util/Version.java
1852
/* * StuReSy - Student Response System * Copyright (C) 2012-2014 StuReSy-Team * * This program 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. * * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ package sturesy.util; /** * Contains the current program version * * @author w.posdorfer * */ public class Version { public static final String CURRENTVERSION = "0.6.2"; /** * Checks if provided version is higher than currentversion * * @param version * version to be compared to current version * @return <code>true</code> if version is higher than current version */ public static boolean isHigherVersion(String version) { if (!version.matches("[0-9]*\\.[0-9]*\\.[0-9]*")) { return false; } String[] split = version.split("\\."); String[] current = CURRENTVERSION.split("\\."); for (int i = 0; i < current.length; i++) { int s = Integer.parseInt(split[i]); int c = Integer.parseInt(current[i]); if (s > c) { return true; } else if (s < c) { return false; } // else continue; } return false; } }
agpl-3.0
jhg543/mellex
src/test/resources/test/z01/sql/s004.sql
2152
-- .LOGON ${hostIp}/${user},${password}; -- .WIDTH 256; ---------------------------------------------------------------------------------------------------- SET QUERY_BAND = 'APPL=ETL;SCRIPT=brg_card_01_a0300.pl;' FOR SESSION; --.IF ERRORCODE <> 0 THEN .GOTO ERRORQUIT; CREATE VOLATILE TABLE VT_NEW_DATA AS ${ADWDATANG}.BRG_CARD_01 WITH NO DATA ON COMMIT PRESERVE ROWS; --.IF ERRORCODE <> 0 THEN .GOTO ERRORQUIT; CREATE VOLATILE TABLE VT_CHG_DATA AS ${ADWDATANG}.BRG_CARD_01 WITH NO DATA ON COMMIT PRESERVE ROWS; --.IF ERRORCODE <> 0 THEN .GOTO ERRORQUIT; --每天全量数据插入临时表 INSERT INTO VT_NEW_DATA SELECT AR_KEYWRD --卡号 ,SUBSTR(CrdIsu_InsID,1,3) AS Splt_InsNo --拆分机构号 ,CrdIsu_InsID AS Orig_InsNo --原始机构号 ,CAST('${TXNDATE}' AS DATE FORMAT 'YYYY-MM-DD') AS DATA_DATE --数据业务日期 FROM ${ADWDATANG}.DIM_M_DBCARD_AR_H WHERE StDt <= CAST('${TXNDATE}' AS DATE FORMAT 'YYYY-MM-DD') AND EdDt > CAST('${TXNDATE}' AS DATE FORMAT 'YYYY-MM-DD') AND RCRD_DEL_DT > CAST('${TXNDATE}' AS DATE FORMAT 'YYYY-MM-DD') ; --.IF ERRORCODE <> 0 THEN .GOTO ERRORQUIT; --对比全量数据;找出新增、修改的数据插入临时表 INSERT INTO VT_CHG_DATA SELECT AR_KEYWRD ,Splt_InsNo ,Orig_InsNo ,CAST('${TXNDATE}' AS DATE FORMAT 'YYYY-MM-DD') FROM VT_NEW_DATA MINUS SELECT AR_KEYWRD ,Splt_InsNo ,Orig_InsNo ,CAST('${TXNDATE}' AS DATE FORMAT 'YYYY-MM-DD') FROM ${ADWDATANG}.BRG_CARD_01; --.IF ERRORCODE <> 0 THEN .GOTO ERRORQUIT; BT; --按主键索引删除修改的数据后插入新增和修改的记录(新增和修改的记录数据业务日期为跑批日期) DELETE FROM ${ADWDATANG}.BRG_CARD_01 WHERE AR_KEYWRD IN (SELECT AR_KEYWRD FROM VT_CHG_DATA); --.IF ERRORCODE <> 0 THEN .GOTO ERRORQUIT; INSERT INTO ${ADWDATANG}.BRG_CARD_01 SELECT * FROM VT_CHG_DATA; --.IF ERRORCODE <> 0 THEN .GOTO ERRORQUIT; ET; -- .LOGOFF; -- .QUIT 0; -- .LABEL ERRORQUIT; -- .IF ERRORCODE <> 0 THEN .QUIT 12;
agpl-3.0
ACEmulator/ACE-World
Database/3-Core/9 WeenieDefaults/SQL/Creature/Elemental/45770 Emissary of Asheron.sql
3313
DELETE FROM `weenie` WHERE `class_Id` = 45770; INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`) VALUES (45770, 'ace45770-emissaryofasheron', 10, '2019-02-10 00:00:00') /* Creature */; INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`) VALUES (45770, 1, 16) /* ItemType - Creature */ , (45770, 2, 62) /* CreatureType - Elemental */ , (45770, 6, -1) /* ItemsCapacity */ , (45770, 7, -1) /* ContainersCapacity */ , (45770, 16, 32) /* ItemUseable - Remote */ , (45770, 25, 180) /* Level */ , (45770, 93, 6292504) /* PhysicsState - ReportCollisions, IgnoreCollisions, Gravity, ReportCollisionsAsEnvironment, EdgeSlide */ , (45770, 95, 8) /* RadarBlipColor - Yellow */ , (45770, 133, 4) /* ShowableOnRadar - ShowAlways */ , (45770, 134, 16) /* PlayerKillerStatus - RubberGlue */ , (45770, 8007, 0) /* PCAPRecordedAutonomousMovement */; INSERT INTO `weenie_properties_bool` (`object_Id`, `type`, `value`) VALUES (45770, 1, True ) /* Stuck */ , (45770, 19, False) /* Attackable */; INSERT INTO `weenie_properties_float` (`object_Id`, `type`, `value`) VALUES (45770, 54, 3) /* UseRadius */; INSERT INTO `weenie_properties_string` (`object_Id`, `type`, `value`) VALUES (45770, 1, 'Emissary of Asheron') /* Name */ , (45770, 5, 'Emissary') /* Template */ , (45770, 8006, 'AAA9AAAAAAA=') /* PCAPRecordedCurrentMotionState */; INSERT INTO `weenie_properties_d_i_d` (`object_Id`, `type`, `value`) VALUES (45770, 1, 0x020009BB) /* Setup */ , (45770, 2, 0x0900008F) /* MotionTable */ , (45770, 3, 0x20000056) /* SoundTable */ , (45770, 8, 0x06001B42) /* Icon */ , (45770, 8001, 9437238) /* PCAPRecordedWeenieHeader - ItemsCapacity, ContainersCapacity, Usable, UseRadius, RadarBlipColor, RadarBehavior */ , (45770, 8003, 4) /* PCAPRecordedObjectDesc - Stuck */ , (45770, 8005, 100355) /* PCAPRecordedPhysicsDesc - CSetup, MTable, STable, Position, Movement */; INSERT INTO `weenie_properties_position` (`object_Id`, `position_Type`, `obj_Cell_Id`, `origin_X`, `origin_Y`, `origin_Z`, `angles_W`, `angles_X`, `angles_Y`, `angles_Z`) VALUES (45770, 8040, 0xD599003F, 185.32, 166.015, 374.005, 0.188336, 0, 0, 0.982105) /* PCAPRecordedLocation */ /* @teleloc 0xD599003F [185.320000 166.015000 374.005000] 0.188336 0.000000 0.000000 0.982105 */; INSERT INTO `weenie_properties_i_i_d` (`object_Id`, `type`, `value`) VALUES (45770, 8000, 0xDC143842) /* PCAPRecordedObjectIID */; INSERT INTO `weenie_properties_attribute` (`object_Id`, `type`, `init_Level`, `level_From_C_P`, `c_P_Spent`) VALUES (45770, 1, 245, 0, 0) /* Strength */ , (45770, 2, 220, 0, 0) /* Endurance */ , (45770, 3, 210, 0, 0) /* Quickness */ , (45770, 4, 215, 0, 0) /* Coordination */ , (45770, 5, 235, 0, 0) /* Focus */ , (45770, 6, 230, 0, 0) /* Self */; INSERT INTO `weenie_properties_attribute_2nd` (`object_Id`, `type`, `init_Level`, `level_From_C_P`, `c_P_Spent`, `current_Level`) VALUES (45770, 1, 80, 0, 0, 190) /* MaxHealth */ , (45770, 3, 110, 0, 0, 330) /* MaxStamina */ , (45770, 5, 40, 0, 0, 270) /* MaxMana */;
agpl-3.0
ArtifexSoftware/mupdf
source/pdf/cmaps/GBK-X.h
98051
/* This is an automatically generated file. Do not edit. */ /* GBK-X */ static const pdf_range cmap_GBK_X_ranges[] = { {0x8140,0x8178,0x2758}, {0x8179,0x8179,0x2059}, {0x817a,0x817e,0x2791}, {0x8180,0x8185,0x2796}, {0x8186,0x8186,0x21f1}, {0x8187,0x81ec,0x279c}, {0x81ed,0x81ed,0x1ff2}, {0x81ee,0x81f5,0x2802}, {0x81f6,0x81f6,0x205d}, {0x81f7,0x81fe,0x280a}, {0x8240,0x8252,0x2812}, {0x8253,0x8253,0x269c}, {0x8254,0x8261,0x2825}, {0x8262,0x8262,0x21b5}, {0x8263,0x8273,0x2833}, {0x8274,0x8274,0x22cc}, {0x8275,0x8279,0x2844}, {0x827a,0x827a,0x2016}, {0x827b,0x827c,0x2849}, {0x827d,0x827d,0x1e62}, {0x827e,0x827e,0x284b}, {0x8280,0x8280,0x1f20}, {0x8281,0x8282,0x284c}, {0x8283,0x8283,0x207f}, {0x8284,0x828f,0x284e}, {0x8290,0x8290,0x205c}, {0x8291,0x82a4,0x285a}, {0x82a5,0x82a5,0x2194}, {0x82a6,0x82c7,0x286e}, {0x82c8,0x82c8,0x1e65}, {0x82c9,0x82c9,0x2281}, {0x82ca,0x82e0,0x2890}, {0x82e1,0x82e1,0x22cd}, {0x82e2,0x82e2,0x28a7}, {0x82e3,0x82e3,0x210a}, {0x82e4,0x82e4,0x1e3e}, {0x82e5,0x82ec,0x28a8}, {0x82ed,0x82ed,0x267f}, {0x82ee,0x82f1,0x28b0}, {0x82f2,0x82f2,0x222e}, {0x82f3,0x82f6,0x28b4}, {0x82f7,0x82f7,0x1e96}, {0x82f8,0x82f8,0x22cb}, {0x82f9,0x82f9,0x226c}, {0x82fa,0x82fa,0x28b8}, {0x82fb,0x82fb,0x2117}, {0x82fc,0x82fe,0x28b9}, {0x8340,0x8340,0x28bc}, {0x8341,0x8341,0x20e8}, {0x8342,0x8344,0x28bd}, {0x8345,0x8345,0x22d4}, {0x8346,0x8347,0x28c0}, {0x8348,0x8348,0x1fb9}, {0x8349,0x834b,0x28c2}, {0x834c,0x834c,0x22d8}, {0x834d,0x8352,0x28c5}, {0x8353,0x8353,0x20df}, {0x8354,0x8356,0x28cb}, {0x8357,0x8357,0x20c2}, {0x8358,0x835d,0x28ce}, {0x835e,0x835e,0x2195}, {0x835f,0x8364,0x28d4}, {0x8365,0x8365,0x1fac}, {0x8366,0x8366,0x22d3}, {0x8367,0x8371,0x28da}, {0x8372,0x8372,0x1f81}, {0x8373,0x8377,0x28e5}, {0x8378,0x8378,0x2210}, {0x8379,0x8379,0x28ea}, {0x837a,0x837a,0x22cf}, {0x837b,0x837b,0x28eb}, {0x837c,0x837c,0x2213}, {0x837d,0x837d,0x28ec}, {0x837e,0x837e,0x1fe4}, {0x8380,0x8380,0x1f90}, {0x8381,0x8385,0x28ed}, {0x8386,0x8386,0x22d6}, {0x8387,0x8388,0x28f2}, {0x8389,0x8389,0x22d0}, {0x838a,0x838a,0x22ce}, {0x838b,0x838c,0x28f4}, {0x838d,0x838d,0x2681}, {0x838e,0x8393,0x28f6}, {0x8394,0x8394,0x1e76}, {0x8395,0x839d,0x28fc}, {0x839e,0x839e,0x2231}, {0x839f,0x83a5,0x2905}, {0x83a6,0x83a6,0x1e93}, {0x83a7,0x83aa,0x290c}, {0x83ab,0x83ab,0x22d2}, {0x83ac,0x83ad,0x2910}, {0x83ae,0x83ae,0x22d7}, {0x83af,0x83af,0x22d5}, {0x83b0,0x83b0,0x22d1}, {0x83b1,0x83b9,0x2912}, {0x83ba,0x83ba,0x1ee5}, {0x83bb,0x83c8,0x291b}, {0x83c9,0x83c9,0x2025}, {0x83ca,0x83f5,0x2929}, {0x83f6,0x83f6,0x1ecf}, {0x83f7,0x83fe,0x2955}, {0x8440,0x844f,0x295d}, {0x8450,0x8450,0x1fd9}, {0x8451,0x8470,0x296d}, {0x8471,0x8471,0x22c8}, {0x8472,0x8473,0x298d}, {0x8474,0x8474,0x2263}, {0x8475,0x8476,0x298f}, {0x8477,0x8477,0x2683}, {0x8478,0x847e,0x2991}, {0x8480,0x8481,0x2998}, {0x8482,0x8482,0x1f17}, {0x8483,0x848d,0x299a}, {0x848e,0x848e,0x1f2b}, {0x848f,0x8491,0x29a5}, {0x8492,0x8492,0x22ca}, {0x8493,0x8493,0x1e99}, {0x8494,0x849c,0x29a8}, {0x849d,0x849d,0x1f4f}, {0x849e,0x84a0,0x29b1}, {0x84a1,0x84a1,0x1fcf}, {0x84a2,0x84a2,0x2036}, {0x84a3,0x84a3,0x1f3a}, {0x84a4,0x84a4,0x29b4}, {0x84a5,0x84a5,0x22c9}, {0x84a6,0x84a6,0x1f99}, {0x84a7,0x84a8,0x29b5}, {0x84a9,0x84a9,0x1f75}, {0x84aa,0x84c4,0x29b7}, {0x84c5,0x84c5,0x1fbe}, {0x84c6,0x84d2,0x29d2}, {0x84d3,0x84d3,0x1ecd}, {0x84d4,0x84d4,0x29df}, {0x84d5,0x84d5,0x21a9}, {0x84d6,0x84d6,0x29e0}, {0x84d7,0x84d7,0x21e6}, {0x84d8,0x84d8,0x29e1}, {0x84d9,0x84d9,0x2127}, {0x84da,0x84da,0x2003}, {0x84db,0x84dc,0x29e2}, {0x84dd,0x84dd,0x2132}, {0x84de,0x84e9,0x29e4}, {0x84ea,0x84ea,0x2323}, {0x84eb,0x84ed,0x29f0}, {0x84ee,0x84ee,0x2011}, {0x84ef,0x84f0,0x29f3}, {0x84f1,0x84f1,0x20f5}, {0x84f2,0x84fe,0x29f5}, {0x8540,0x8550,0x2a02}, {0x8551,0x8551,0x22c5}, {0x8552,0x8552,0x1f5e}, {0x8553,0x8553,0x2a13}, {0x8554,0x8554,0x22c6}, {0x8555,0x855d,0x2a14}, {0x855e,0x855e,0x20ef}, {0x855f,0x8565,0x2a1d}, {0x8566,0x8566,0x21d0}, {0x8567,0x857e,0x2a24}, {0x8580,0x8586,0x2a3c}, {0x8587,0x8587,0x22c1}, {0x8588,0x858a,0x2a43}, {0x858b,0x858b,0x1e64}, {0x858c,0x8591,0x2a46}, {0x8592,0x8592,0x21f9}, {0x8593,0x8595,0x2a4c}, {0x8596,0x8596,0x2010}, {0x8597,0x8597,0x2a4f}, {0x8598,0x8598,0x22c2}, {0x8599,0x85a1,0x2a50}, {0x85a2,0x85a2,0x1e5a}, {0x85a3,0x85b1,0x2a59}, {0x85b2,0x85b2,0x1ea2}, {0x85b3,0x85fe,0x2a68}, {0x8640,0x8649,0x2ab4}, {0x864a,0x864a,0x236d}, {0x864b,0x8653,0x2abe}, {0x8654,0x8654,0x2247}, {0x8655,0x8667,0x2ac7}, {0x8668,0x8668,0x236c}, {0x8669,0x867e,0x2ada}, {0x8680,0x8695,0x2af0}, {0x8696,0x8696,0x219c}, {0x8697,0x8698,0x2b06}, {0x8699,0x8699,0x20c9}, {0x869a,0x86a0,0x2b08}, {0x86a1,0x86a1,0x21f0}, {0x86a2,0x86c9,0x2b0f}, {0x86ca,0x86ca,0x210b}, {0x86cb,0x86cb,0x2b37}, {0x86cc,0x86cc,0x20de}, {0x86cd,0x86cd,0x2b38}, {0x86ce,0x86ce,0x1eaa}, {0x86cf,0x86d0,0x2b39}, {0x86d1,0x86d1,0x222c}, {0x86d2,0x86db,0x2b3b}, {0x86dc,0x86dc,0x20d8}, {0x86dd,0x86dd,0x22c0}, {0x86de,0x86e0,0x2b45}, {0x86e1,0x86e1,0x206f}, {0x86e2,0x86e7,0x2b48}, {0x86e8,0x86e8,0x21a1}, {0x86e9,0x86ed,0x2b4e}, {0x86ee,0x86ee,0x2379}, {0x86ef,0x86f3,0x2b53}, {0x86f4,0x86f4,0x2372}, {0x86f5,0x86fe,0x2b58}, {0x8740,0x8740,0x216a}, {0x8741,0x8743,0x2b62}, {0x8744,0x8744,0x237c}, {0x8745,0x8748,0x2b65}, {0x8749,0x8749,0x20b0}, {0x874a,0x874a,0x2b69}, {0x874b,0x874b,0x237a}, {0x874c,0x874c,0x1e74}, {0x874d,0x874e,0x2b6a}, {0x874f,0x874f,0x2377}, {0x8750,0x8756,0x2b6c}, {0x8757,0x8757,0x1f4c}, {0x8758,0x8759,0x2b73}, {0x875a,0x875a,0x2378}, {0x875b,0x875b,0x21cf}, {0x875c,0x875c,0x2368}, {0x875d,0x875d,0x2b75}, {0x875e,0x875e,0x2371}, {0x875f,0x875f,0x2b76}, {0x8760,0x8760,0x2369}, {0x8761,0x8765,0x2b77}, {0x8766,0x8766,0x2674}, {0x8767,0x8779,0x2b7c}, {0x877a,0x877a,0x236f}, {0x877b,0x877c,0x2b8f}, {0x877d,0x877d,0x2370}, {0x877e,0x877e,0x2b91}, {0x8780,0x8780,0x2b92}, {0x8781,0x8781,0x2376}, {0x8782,0x8782,0x2373}, {0x8783,0x8785,0x2b93}, {0x8786,0x8786,0x237f}, {0x8787,0x8787,0x2b96}, {0x8788,0x8788,0x2374}, {0x8789,0x8789,0x2b97}, {0x878a,0x878a,0x20b5}, {0x878b,0x878c,0x2b98}, {0x878d,0x878d,0x1edb}, {0x878e,0x878e,0x2672}, {0x878f,0x8792,0x2b9a}, {0x8793,0x8793,0x236e}, {0x8794,0x8797,0x2b9e}, {0x8798,0x8798,0x21b7}, {0x8799,0x879c,0x2ba2}, {0x879d,0x879d,0x2375}, {0x879e,0x87a2,0x2ba6}, {0x87a3,0x87a3,0x2382}, {0x87a4,0x87a6,0x2bab}, {0x87a7,0x87a7,0x209e}, {0x87a8,0x87b2,0x2bae}, {0x87b3,0x87b3,0x236b}, {0x87b4,0x87b4,0x2bb9}, {0x87b5,0x87b5,0x2039}, {0x87b6,0x87ba,0x2bba}, {0x87bb,0x87bb,0x269f}, {0x87bc,0x87be,0x2bbf}, {0x87bf,0x87bf,0x237d}, {0x87c0,0x87c0,0x21f5}, {0x87c1,0x87c1,0x2bc2}, {0x87c2,0x87c2,0x2381}, {0x87c3,0x87c9,0x2bc3}, {0x87ca,0x87ca,0x237b}, {0x87cb,0x87cb,0x237e}, {0x87cc,0x87cc,0x21cc}, {0x87cd,0x87ce,0x2bca}, {0x87cf,0x87cf,0x22db}, {0x87d0,0x87d1,0x2bcc}, {0x87d2,0x87d2,0x236a}, {0x87d3,0x87d3,0x2689}, {0x87d4,0x87d4,0x2bce}, {0x87d5,0x87d5,0x2697}, {0x87d6,0x87d9,0x2bcf}, {0x87da,0x87da,0x22a1}, {0x87db,0x87f6,0x2bd3}, {0x87f7,0x87f7,0x2383}, {0x87f8,0x87f8,0x1f3d}, {0x87f9,0x87f9,0x2bef}, {0x87fa,0x87fa,0x218f}, {0x87fb,0x87fe,0x2bf0}, {0x8840,0x8840,0x2246}, {0x8841,0x8841,0x2248}, {0x8842,0x8843,0x2bf4}, {0x8844,0x8844,0x217e}, {0x8845,0x8845,0x2bf6}, {0x8846,0x8846,0x2180}, {0x8847,0x887e,0x2bf7}, {0x8880,0x88b9,0x2c2f}, {0x88ba,0x88ba,0x232a}, {0x88bb,0x88cb,0x2c69}, {0x88cc,0x88cc,0x228b}, {0x88cd,0x88d3,0x2c7a}, {0x88d4,0x88d4,0x1f85}, {0x88d5,0x88d6,0x2c81}, {0x88d7,0x88d7,0x2325}, {0x88d8,0x88de,0x2c83}, {0x88df,0x88df,0x232c}, {0x88e0,0x88e4,0x2c8a}, {0x88e5,0x88e5,0x232e}, {0x88e6,0x88f1,0x2c8f}, {0x88f2,0x88f2,0x2205}, {0x88f3,0x88f3,0x1e38}, {0x88f4,0x88f5,0x2c9b}, {0x88f6,0x88f6,0x1e73}, {0x88f7,0x88fe,0x2c9d}, {0x8940,0x894a,0x2ca5}, {0x894b,0x894b,0x1fe3}, {0x894c,0x894c,0x2339}, {0x894d,0x894d,0x2cb0}, {0x894e,0x894e,0x232b}, {0x894f,0x894f,0x2cb1}, {0x8950,0x8950,0x232d}, {0x8951,0x8953,0x2cb2}, {0x8954,0x8954,0x217f}, {0x8955,0x895c,0x2cb5}, {0x895d,0x895d,0x21a7}, {0x895e,0x895e,0x2cbd}, {0x895f,0x895f,0x232f}, {0x8960,0x896c,0x2cbe}, {0x896d,0x896d,0x1e7d}, {0x896e,0x8970,0x2ccb}, {0x8971,0x8971,0x20d6}, {0x8972,0x897b,0x2cce}, {0x897c,0x897c,0x1ec2}, {0x897d,0x897e,0x2cd8}, {0x8980,0x898a,0x2cda}, {0x898b,0x898b,0x22b2}, {0x898c,0x8998,0x2ce5}, {0x8999,0x8999,0x1edf}, {0x899a,0x899d,0x2cf2}, {0x899e,0x899e,0x1ef9}, {0x899f,0x89a5,0x2cf6}, {0x89a6,0x89a6,0x20d9}, {0x89a7,0x89a7,0x2cfd}, {0x89a8,0x89a8,0x1fdd}, {0x89a9,0x89ae,0x2cfe}, {0x89af,0x89af,0x2167}, {0x89b0,0x89b9,0x2d04}, {0x89ba,0x89ba,0x21ed}, {0x89bb,0x89bd,0x2d0e}, {0x89be,0x89be,0x2007}, {0x89bf,0x89bf,0x2326}, {0x89c0,0x89c0,0x2329}, {0x89c1,0x89c3,0x2d11}, {0x89c4,0x89c4,0x1f52}, {0x89c5,0x89c5,0x203b}, {0x89c6,0x89c6,0x2328}, {0x89c7,0x89c7,0x2d14}, {0x89c8,0x89c8,0x2327}, {0x89c9,0x89cd,0x2d15}, {0x89ce,0x89ce,0x1e2b}, {0x89cf,0x89d0,0x2d1a}, {0x89d1,0x89d1,0x22ae}, {0x89d2,0x89d7,0x2d1c}, {0x89d8,0x89d8,0x1f49}, {0x89d9,0x89da,0x2d22}, {0x89db,0x89db,0x2138}, {0x89dc,0x89f3,0x2d24}, {0x89f4,0x89f4,0x2081}, {0x89f5,0x89fe,0x2d3c}, {0x8a40,0x8a40,0x2d46}, {0x8a41,0x8a41,0x1f7c}, {0x8a42,0x8a58,0x2d47}, {0x8a59,0x8a59,0x235b}, {0x8a5a,0x8a5a,0x1ede}, {0x8a5b,0x8a5b,0x2d5e}, {0x8a5c,0x8a5c,0x1fa2}, {0x8a5d,0x8a5d,0x2d5f}, {0x8a5e,0x8a5e,0x1efa}, {0x8a5f,0x8a78,0x2d60}, {0x8a79,0x8a79,0x22ad}, {0x8a7a,0x8a7e,0x2d7a}, {0x8a80,0x8ae3,0x2d7f}, {0x8ae4,0x8ae4,0x203f}, {0x8ae5,0x8afe,0x2de3}, {0x8b40,0x8b43,0x2dfd}, {0x8b44,0x8b44,0x1f0e}, {0x8b45,0x8b48,0x2e01}, {0x8b49,0x8b49,0x23f9}, {0x8b4a,0x8b79,0x2e05}, {0x8b7a,0x8b7a,0x23fc}, {0x8b7b,0x8b7e,0x2e35}, {0x8b80,0x8b8b,0x2e39}, {0x8b8c,0x8b8c,0x2069}, {0x8b8d,0x8b9d,0x2e45}, {0x8b9e,0x8b9e,0x23f7}, {0x8b9f,0x8bb2,0x2e56}, {0x8bb3,0x8bb3,0x23f6}, {0x8bb4,0x8bb8,0x2e6a}, {0x8bb9,0x8bb9,0x23fd}, {0x8bba,0x8bbd,0x2e6f}, {0x8bbe,0x8bbe,0x23f8}, {0x8bbf,0x8bc5,0x2e73}, {0x8bc6,0x8bc6,0x23fa}, {0x8bc7,0x8bc7,0x2e7a}, {0x8bc8,0x8bc8,0x23fe}, {0x8bc9,0x8bc9,0x1fa8}, {0x8bca,0x8bd3,0x2e7b}, {0x8bd4,0x8bd4,0x2401}, {0x8bd5,0x8bdb,0x2e85}, {0x8bdc,0x8bdc,0x23ff}, {0x8bdd,0x8be4,0x2e8c}, {0x8be5,0x8be5,0x2400}, {0x8be6,0x8bea,0x2e94}, {0x8beb,0x8beb,0x2221}, {0x8bec,0x8bef,0x2e99}, {0x8bf0,0x8bf0,0x2122}, {0x8bf1,0x8bfe,0x2e9d}, {0x8c40,0x8c43,0x2eab}, {0x8c44,0x8c44,0x23fb}, {0x8c45,0x8c4e,0x2eaf}, {0x8c4f,0x8c4f,0x215a}, {0x8c50,0x8c56,0x2eb9}, {0x8c57,0x8c57,0x21e5}, {0x8c58,0x8c5b,0x2ec0}, {0x8c5c,0x8c5c,0x2057}, {0x8c5d,0x8c7e,0x2ec4}, {0x8c80,0x8c8a,0x2ee6}, {0x8c8b,0x8c8b,0x20e5}, {0x8c8c,0x8c8c,0x2ef1}, {0x8c8d,0x8c8d,0x212f}, {0x8c8e,0x8c8e,0x20a3}, {0x8c8f,0x8c8f,0x2121}, {0x8c90,0x8c90,0x2ef2}, {0x8c91,0x8c91,0x21d4}, {0x8c92,0x8c92,0x1fe5}, {0x8c93,0x8c98,0x2ef3}, {0x8c99,0x8c99,0x1e8a}, {0x8c9a,0x8c9a,0x1e37}, {0x8c9b,0x8ca1,0x2ef9}, {0x8ca2,0x8ca2,0x1f9e}, {0x8ca3,0x8ca3,0x22a6}, {0x8ca4,0x8ca4,0x21e8}, {0x8ca5,0x8ca5,0x2f00}, {0x8ca6,0x8ca6,0x1eda}, {0x8ca7,0x8ca7,0x1eb9}, {0x8ca8,0x8cbf,0x2f01}, {0x8cc0,0x8cc0,0x235c}, {0x8cc1,0x8cd1,0x2f19}, {0x8cd2,0x8cd2,0x2050}, {0x8cd3,0x8cd3,0x1e67}, {0x8cd4,0x8cd4,0x2f2a}, {0x8cd5,0x8cd5,0x23f4}, {0x8cd6,0x8cd8,0x2f2b}, {0x8cd9,0x8cd9,0x213e}, {0x8cda,0x8cf8,0x2f2e}, {0x8cf9,0x8cf9,0x1f16}, {0x8cfa,0x8cfe,0x2f4d}, {0x8d40,0x8d72,0x2f52}, {0x8d73,0x8d73,0x2389}, {0x8d74,0x8d74,0x2f85}, {0x8d75,0x8d75,0x1eb7}, {0x8d76,0x8d7a,0x2f86}, {0x8d7b,0x8d7b,0x21b4}, {0x8d7c,0x8d7e,0x2f8b}, {0x8d80,0x8d87,0x2f8e}, {0x8d88,0x8d88,0x238f}, {0x8d89,0x8d8e,0x2f96}, {0x8d8f,0x8d8f,0x1f1a}, {0x8d90,0x8d9d,0x2f9c}, {0x8d9e,0x8d9e,0x238b}, {0x8d9f,0x8db8,0x2faa}, {0x8db9,0x8db9,0x238a}, {0x8dba,0x8de1,0x2fc4}, {0x8de2,0x8de2,0x2391}, {0x8de3,0x8de3,0x2fec}, {0x8de4,0x8de4,0x2271}, {0x8de5,0x8de6,0x2fed}, {0x8de7,0x8de7,0x2388}, {0x8de8,0x8df6,0x2fef}, {0x8df7,0x8df7,0x238e}, {0x8df8,0x8dfd,0x2ffe}, {0x8dfe,0x8dfe,0x238d}, {0x8e40,0x8e45,0x3004}, {0x8e46,0x8e46,0x238c}, {0x8e47,0x8e55,0x300a}, {0x8e56,0x8e56,0x2390}, {0x8e57,0x8e57,0x3019}, {0x8e58,0x8e58,0x2033}, {0x8e59,0x8e59,0x301a}, {0x8e5a,0x8e5a,0x223c}, {0x8e5b,0x8e67,0x301b}, {0x8e68,0x8e68,0x1fe9}, {0x8e69,0x8e6d,0x3028}, {0x8e6e,0x8e6e,0x2055}, {0x8e6f,0x8e6f,0x302d}, {0x8e70,0x8e70,0x2392}, {0x8e71,0x8e7e,0x302e}, {0x8e80,0x8e80,0x2324}, {0x8e81,0x8e9a,0x303c}, {0x8e9b,0x8e9b,0x2143}, {0x8e9c,0x8e9e,0x3056}, {0x8e9f,0x8e9f,0x2129}, {0x8ea0,0x8ea3,0x3059}, {0x8ea4,0x8ea4,0x2277}, {0x8ea5,0x8ea6,0x305d}, {0x8ea7,0x8ea7,0x1ea7}, {0x8ea8,0x8eab,0x305f}, {0x8eac,0x8eac,0x2285}, {0x8ead,0x8ead,0x3063}, {0x8eae,0x8eae,0x2384}, {0x8eaf,0x8ebc,0x3064}, {0x8ebd,0x8ebd,0x2387}, {0x8ebe,0x8ebe,0x2386}, {0x8ebf,0x8ec2,0x3072}, {0x8ec3,0x8ec3,0x2290}, {0x8ec4,0x8ec4,0x3076}, {0x8ec5,0x8ec5,0x1e44}, {0x8ec6,0x8ecc,0x3077}, {0x8ecd,0x8ecd,0x1e32}, {0x8ece,0x8ece,0x2385}, {0x8ecf,0x8ed5,0x307e}, {0x8ed6,0x8ed6,0x1f13}, {0x8ed7,0x8ed7,0x1f73}, {0x8ed8,0x8eeb,0x3085}, {0x8eec,0x8eec,0x1fe0}, {0x8eed,0x8efe,0x3099}, {0x8f40,0x8f51,0x30ab}, {0x8f52,0x8f52,0x2087}, {0x8f53,0x8f53,0x1e78}, {0x8f54,0x8f54,0x23ae}, {0x8f55,0x8f55,0x1ef6}, {0x8f56,0x8f56,0x1f31}, {0x8f57,0x8f5c,0x30bd}, {0x8f5d,0x8f5d,0x2045}, {0x8f5e,0x8f63,0x30c3}, {0x8f64,0x8f64,0x2178}, {0x8f65,0x8f7e,0x30c9}, {0x8f80,0x8f85,0x30e3}, {0x8f86,0x8f86,0x23f5}, {0x8f87,0x8f87,0x30e9}, {0x8f88,0x8f88,0x2275}, {0x8f89,0x8f94,0x30ea}, {0x8f95,0x8f95,0x266e}, {0x8f96,0x8f96,0x30f6}, {0x8f97,0x8f97,0x1eb0}, {0x8f98,0x8f9a,0x30f7}, {0x8f9b,0x8f9b,0x2083}, {0x8f9c,0x8f9c,0x30fa}, {0x8f9d,0x8f9d,0x2188}, {0x8f9e,0x8fa0,0x30fb}, {0x8fa1,0x8fa1,0x267c}, {0x8fa2,0x8fbc,0x30fe}, {0x8fbd,0x8fbd,0x1fc5}, {0x8fbe,0x8fc3,0x3119}, {0x8fc4,0x8fc4,0x1ea1}, {0x8fc5,0x8fc5,0x311f}, {0x8fc6,0x8fc6,0x2393}, {0x8fc7,0x8fcc,0x3120}, {0x8fcd,0x8fcd,0x1f0b}, {0x8fce,0x8fd7,0x3126}, {0x8fd8,0x8fd8,0x1e7c}, {0x8fd9,0x8ffe,0x3130}, {0x9040,0x907e,0x3156}, {0x9080,0x909c,0x3195}, {0x909d,0x909d,0x23b4}, {0x909e,0x909e,0x207e}, {0x909f,0x90b9,0x31b2}, {0x90ba,0x90ba,0x1ee3}, {0x90bb,0x90bf,0x31cd}, {0x90c0,0x90c0,0x2095}, {0x90c1,0x90c1,0x23bb}, {0x90c2,0x90c4,0x31d2}, {0x90c5,0x90c5,0x23b9}, {0x90c6,0x90da,0x31d5}, {0x90db,0x90db,0x1e28}, {0x90dc,0x90dc,0x23bd}, {0x90dd,0x90ec,0x31ea}, {0x90ed,0x90ed,0x23b5}, {0x90ee,0x90ef,0x31fa}, {0x90f0,0x90f0,0x23ba}, {0x90f1,0x90f6,0x31fc}, {0x90f7,0x90f7,0x23b3}, {0x90f8,0x90fe,0x3202}, {0x9140,0x9141,0x3209}, {0x9142,0x9142,0x2162}, {0x9143,0x914a,0x320b}, {0x914b,0x914b,0x1e5e}, {0x914c,0x914c,0x3213}, {0x914d,0x914d,0x1e5d}, {0x914e,0x9150,0x3214}, {0x9151,0x9151,0x23b7}, {0x9152,0x9153,0x3217}, {0x9154,0x9154,0x1f2f}, {0x9155,0x9155,0x24df}, {0x9156,0x9158,0x3219}, {0x9159,0x9159,0x23b2}, {0x915a,0x915a,0x214e}, {0x915b,0x915c,0x321c}, {0x915d,0x915d,0x2052}, {0x915e,0x9160,0x321e}, {0x9161,0x9161,0x23bc}, {0x9162,0x9162,0x3221}, {0x9163,0x9163,0x20eb}, {0x9164,0x916d,0x3222}, {0x916e,0x916e,0x2232}, {0x916f,0x9175,0x322c}, {0x9176,0x9176,0x1e3f}, {0x9177,0x9179,0x3233}, {0x917a,0x917a,0x201b}, {0x917b,0x917b,0x20bc}, {0x917c,0x917c,0x23be}, {0x917d,0x917e,0x3236}, {0x9180,0x9183,0x3238}, {0x9184,0x9184,0x1eae}, {0x9185,0x918c,0x323c}, {0x918d,0x918d,0x1efb}, {0x918e,0x9190,0x3244}, {0x9191,0x9191,0x2089}, {0x9192,0x9192,0x3247}, {0x9193,0x9193,0x23b1}, {0x9194,0x9196,0x3248}, {0x9197,0x9197,0x21c4}, {0x9198,0x919a,0x324b}, {0x919b,0x919b,0x2214}, {0x919c,0x91a8,0x324e}, {0x91a9,0x91a9,0x1fde}, {0x91aa,0x91aa,0x2223}, {0x91ab,0x91ab,0x23b6}, {0x91ac,0x91b9,0x325b}, {0x91ba,0x91ba,0x268c}, {0x91bb,0x91bb,0x24de}, {0x91bc,0x91be,0x3269}, {0x91bf,0x91bf,0x24e0}, {0x91c0,0x91c2,0x326c}, {0x91c3,0x91c3,0x23b8}, {0x91c4,0x91cc,0x326f}, {0x91cd,0x91cd,0x1e81}, {0x91ce,0x91cf,0x3278}, {0x91d0,0x91d0,0x1ffe}, {0x91d1,0x91d1,0x1f51}, {0x91d2,0x91d2,0x21e1}, {0x91d3,0x91d3,0x327a}, {0x91d4,0x91d4,0x23b0}, {0x91d5,0x91d5,0x327b}, {0x91d6,0x91d6,0x1fce}, {0x91d7,0x91d7,0x327c}, {0x91d8,0x91d8,0x211e}, {0x91d9,0x91d9,0x2021}, {0x91da,0x91de,0x327d}, {0x91df,0x91df,0x24e1}, {0x91e0,0x91e1,0x3282}, {0x91e2,0x91e2,0x24a3}, {0x91e3,0x91e9,0x3284}, {0x91ea,0x91ea,0x24a4}, {0x91eb,0x91ef,0x328b}, {0x91f0,0x91f0,0x2273}, {0x91f1,0x91f1,0x3290}, {0x91f2,0x91f2,0x21b0}, {0x91f3,0x91fe,0x3291}, {0x9240,0x927e,0x329d}, {0x9280,0x92b5,0x32dc}, {0x92b6,0x92b6,0x21d1}, {0x92b7,0x92cd,0x3312}, {0x92ce,0x92ce,0x211c}, {0x92cf,0x92cf,0x3329}, {0x92d0,0x92d0,0x235d}, {0x92d1,0x92d3,0x332a}, {0x92d4,0x92d4,0x2682}, {0x92d5,0x92de,0x332d}, {0x92df,0x92df,0x210d}, {0x92e0,0x92e0,0x205a}, {0x92e1,0x92fd,0x3337}, {0x92fe,0x92fe,0x1f8d}, {0x9340,0x934f,0x3354}, {0x9350,0x9350,0x21ff}, {0x9351,0x935c,0x3364}, {0x935d,0x935d,0x1f58}, {0x935e,0x936f,0x3370}, {0x9370,0x9370,0x215b}, {0x9371,0x9375,0x3382}, {0x9376,0x9376,0x1eb6}, {0x9377,0x937e,0x3387}, {0x9380,0x938b,0x338f}, {0x938c,0x938c,0x20db}, {0x938d,0x939c,0x339b}, {0x939d,0x939d,0x2360}, {0x939e,0x93a4,0x33ab}, {0x93a5,0x93a5,0x2361}, {0x93a6,0x93a6,0x33b2}, {0x93a7,0x93a7,0x2040}, {0x93a8,0x93b3,0x33b3}, {0x93b4,0x93b4,0x228e}, {0x93b5,0x93b7,0x33bf}, {0x93b8,0x93b8,0x1fdf}, {0x93b9,0x93ba,0x33c2}, {0x93bb,0x93bb,0x235e}, {0x93bc,0x93bc,0x33c4}, {0x93bd,0x93bd,0x1e6a}, {0x93be,0x93c5,0x33c5}, {0x93c6,0x93c6,0x2002}, {0x93c7,0x93ce,0x33cd}, {0x93cf,0x93cf,0x2093}, {0x93d0,0x93d6,0x33d5}, {0x93d7,0x93d7,0x235f}, {0x93d8,0x93da,0x33dc}, {0x93db,0x93db,0x1eac}, {0x93dc,0x93dc,0x1e54}, {0x93dd,0x93e0,0x33df}, {0x93e1,0x93e1,0x1f08}, {0x93e2,0x93e3,0x33e3}, {0x93e4,0x93e4,0x20c0}, {0x93e5,0x93e5,0x2362}, {0x93e6,0x93e8,0x33e5}, {0x93e9,0x93e9,0x2160}, {0x93ea,0x93ea,0x33e8}, {0x93eb,0x93eb,0x219d}, {0x93ec,0x93ec,0x1f8e}, {0x93ed,0x93ed,0x222d}, {0x93ee,0x93ee,0x33e9}, {0x93ef,0x93ef,0x2047}, {0x93f0,0x93f0,0x33ea}, {0x93f1,0x93f1,0x2262}, {0x93f2,0x93f3,0x33eb}, {0x93f4,0x93f4,0x1f67}, {0x93f5,0x93f5,0x1eb2}, {0x93f6,0x93f9,0x33ed}, {0x93fa,0x93fa,0x1ea9}, {0x93fb,0x93fd,0x33f1}, {0x93fe,0x93fe,0x1fcc}, {0x9440,0x9443,0x33f4}, {0x9444,0x9444,0x1f72}, {0x9445,0x944c,0x33f8}, {0x944d,0x944d,0x2098}, {0x944e,0x944f,0x3400}, {0x9450,0x9450,0x1e52}, {0x9451,0x9451,0x20a4}, {0x9452,0x9452,0x1f1c}, {0x9453,0x9453,0x228f}, {0x9454,0x9454,0x3402}, {0x9455,0x9455,0x1fed}, {0x9456,0x9457,0x3403}, {0x9458,0x9458,0x2365}, {0x9459,0x945a,0x3405}, {0x945b,0x945b,0x1e2d}, {0x945c,0x945c,0x2152}, {0x945d,0x945d,0x2366}, {0x945e,0x945e,0x3407}, {0x945f,0x945f,0x20fa}, {0x9460,0x9463,0x3408}, {0x9464,0x9464,0x2363}, {0x9465,0x9465,0x340c}, {0x9466,0x9466,0x209a}, {0x9467,0x946d,0x340d}, {0x946e,0x946e,0x203c}, {0x946f,0x9471,0x3414}, {0x9472,0x9472,0x1ff6}, {0x9473,0x9473,0x3417}, {0x9474,0x9474,0x2364}, {0x9475,0x9475,0x3418}, {0x9476,0x9476,0x1e69}, {0x9477,0x9477,0x3419}, {0x9478,0x9478,0x2367}, {0x9479,0x9479,0x341a}, {0x947a,0x947a,0x211d}, {0x947b,0x947e,0x341b}, {0x9480,0x9480,0x2259}, {0x9481,0x9481,0x2056}, {0x9482,0x9482,0x2163}, {0x9483,0x9486,0x341f}, {0x9487,0x9487,0x1fa9}, {0x9488,0x9488,0x1ffc}, {0x9489,0x94a0,0x3423}, {0x94a1,0x94a1,0x1e2e}, {0x94a2,0x94b2,0x343b}, {0x94b3,0x94b3,0x1ebc}, {0x94b4,0x94b4,0x344c}, {0x94b5,0x94b5,0x2142}, {0x94b6,0x94be,0x344d}, {0x94bf,0x94bf,0x201e}, {0x94c0,0x94c0,0x1e43}, {0x94c1,0x94cb,0x3456}, {0x94cc,0x94cc,0x24d4}, {0x94cd,0x94d7,0x3461}, {0x94d8,0x94d8,0x226f}, {0x94d9,0x94df,0x346c}, {0x94e0,0x94e0,0x1ed7}, {0x94e1,0x94fe,0x3473}, {0x9540,0x9571,0x3491}, {0x9572,0x9572,0x212d}, {0x9573,0x957e,0x34c3}, {0x9580,0x9582,0x34cf}, {0x9583,0x9583,0x229b}, {0x9584,0x959d,0x34d2}, {0x959e,0x959e,0x2256}, {0x959f,0x959f,0x24a8}, {0x95a0,0x95b2,0x34ec}, {0x95b3,0x95b3,0x1e79}, {0x95b4,0x95b9,0x34ff}, {0x95ba,0x95ba,0x225a}, {0x95bb,0x95ce,0x3505}, {0x95cf,0x95cf,0x24a7}, {0x95d0,0x95d0,0x3519}, {0x95d1,0x95d1,0x2686}, {0x95d2,0x95d2,0x24a6}, {0x95d3,0x95d3,0x351a}, {0x95d4,0x95d4,0x21ce}, {0x95d5,0x95e0,0x351b}, {0x95e1,0x95e1,0x24a9}, {0x95e2,0x95e6,0x3527}, {0x95e7,0x95e7,0x1fe7}, {0x95e8,0x95f0,0x352c}, {0x95f1,0x95f1,0x2112}, {0x95f2,0x95f7,0x3535}, {0x95f8,0x95f8,0x213c}, {0x95f9,0x95fd,0x353b}, {0x95fe,0x95fe,0x1f5c}, {0x9640,0x9655,0x3540}, {0x9656,0x9656,0x24c4}, {0x9657,0x967b,0x3556}, {0x967c,0x967c,0x1ecc}, {0x967d,0x967e,0x357b}, {0x9680,0x96fe,0x357d}, {0x9740,0x9766,0x35fc}, {0x9767,0x9767,0x246a}, {0x9768,0x976b,0x3623}, {0x976c,0x976c,0x2175}, {0x976d,0x976d,0x3627}, {0x976e,0x976e,0x246d}, {0x976f,0x977e,0x3628}, {0x9780,0x9795,0x3638}, {0x9796,0x9796,0x246b}, {0x9797,0x9797,0x225f}, {0x9798,0x979c,0x364e}, {0x979d,0x979d,0x1ece}, {0x979e,0x97a2,0x3653}, {0x97a3,0x97a3,0x2272}, {0x97a4,0x97be,0x3658}, {0x97bf,0x97bf,0x2473}, {0x97c0,0x97ed,0x3673}, {0x97ee,0x97ee,0x21fe}, {0x97ef,0x97f6,0x36a1}, {0x97f7,0x97f7,0x1efe}, {0x97f8,0x97fe,0x36a9}, {0x9840,0x9844,0x36b0}, {0x9845,0x9845,0x2475}, {0x9846,0x9848,0x36b5}, {0x9849,0x9849,0x220a}, {0x984a,0x984e,0x36b8}, {0x984f,0x984f,0x1f6f}, {0x9850,0x9870,0x36bd}, {0x9871,0x9871,0x2468}, {0x9872,0x9872,0x36de}, {0x9873,0x9873,0x2100}, {0x9874,0x987e,0x36df}, {0x9880,0x9880,0x36ea}, {0x9881,0x9881,0x2476}, {0x9882,0x988a,0x36eb}, {0x988b,0x988b,0x1f27}, {0x988c,0x988c,0x20d7}, {0x988d,0x989f,0x36f4}, {0x98a0,0x98a0,0x247c}, {0x98a1,0x98a9,0x3707}, {0x98aa,0x98aa,0x1fa1}, {0x98ab,0x98b5,0x3710}, {0x98b6,0x98b6,0x22aa}, {0x98b7,0x98b7,0x2005}, {0x98b8,0x98b9,0x371b}, {0x98ba,0x98ba,0x246c}, {0x98bb,0x98c6,0x371d}, {0x98c7,0x98c7,0x203e}, {0x98c8,0x98ca,0x3729}, {0x98cb,0x98cb,0x1e4c}, {0x98cc,0x98cf,0x372c}, {0x98d0,0x98d0,0x213a}, {0x98d1,0x98d2,0x3730}, {0x98d3,0x98d3,0x2204}, {0x98d4,0x98e2,0x3732}, {0x98e3,0x98e3,0x20c3}, {0x98e4,0x98e4,0x2140}, {0x98e5,0x98e5,0x2477}, {0x98e6,0x98ee,0x3741}, {0x98ef,0x98ef,0x2474}, {0x98f0,0x98f1,0x374a}, {0x98f2,0x98f2,0x20dd}, {0x98f3,0x98fe,0x374c}, {0x9940,0x9942,0x3758}, {0x9943,0x9943,0x1f68}, {0x9944,0x9944,0x375b}, {0x9945,0x9945,0x2185}, {0x9946,0x9965,0x375c}, {0x9966,0x9966,0x2472}, {0x9967,0x996d,0x377c}, {0x996e,0x996e,0x1eb5}, {0x996f,0x9974,0x3783}, {0x9975,0x9975,0x2478}, {0x9976,0x9979,0x3789}, {0x997a,0x997a,0x1f8b}, {0x997b,0x997b,0x2484}, {0x997c,0x997e,0x378d}, {0x9980,0x9984,0x3790}, {0x9985,0x9985,0x2699}, {0x9986,0x9988,0x3795}, {0x9989,0x9989,0x2482}, {0x998a,0x998d,0x3798}, {0x998e,0x998e,0x20a1}, {0x998f,0x9990,0x379c}, {0x9991,0x9991,0x1f92}, {0x9992,0x9998,0x379e}, {0x9999,0x9999,0x1f38}, {0x999a,0x99a8,0x37a5}, {0x99a9,0x99a9,0x2485}, {0x99aa,0x99af,0x37b4}, {0x99b0,0x99b0,0x2480}, {0x99b1,0x99b1,0x246e}, {0x99b2,0x99b2,0x37ba}, {0x99b3,0x99b3,0x247b}, {0x99b4,0x99b4,0x2486}, {0x99b5,0x99b5,0x2471}, {0x99b6,0x99bc,0x37bb}, {0x99bd,0x99bd,0x2483}, {0x99be,0x99be,0x2470}, {0x99bf,0x99bf,0x37c2}, {0x99c0,0x99c0,0x2469}, {0x99c1,0x99c1,0x37c3}, {0x99c2,0x99c2,0x247f}, {0x99c3,0x99c8,0x37c4}, {0x99c9,0x99c9,0x246f}, {0x99ca,0x99cd,0x37ca}, {0x99ce,0x99ce,0x2481}, {0x99cf,0x99d0,0x37ce}, {0x99d1,0x99d1,0x2220}, {0x99d2,0x99d9,0x37d0}, {0x99da,0x99da,0x1ff5}, {0x99db,0x99df,0x37d8}, {0x99e0,0x99e0,0x20f4}, {0x99e1,0x99e4,0x37dd}, {0x99e5,0x99e5,0x247d}, {0x99e6,0x99e7,0x37e1}, {0x99e8,0x99e8,0x2479}, {0x99e9,0x99eb,0x37e3}, {0x99ec,0x99ec,0x247e}, {0x99ed,0x99f3,0x37e6}, {0x99f4,0x99f4,0x247a}, {0x99f5,0x99fe,0x37ed}, {0x9a40,0x9a49,0x37f7}, {0x9a4a,0x9a4a,0x20e3}, {0x9a4b,0x9a56,0x3801}, {0x9a57,0x9a57,0x20ad}, {0x9a58,0x9a64,0x380d}, {0x9a65,0x9a65,0x24cb}, {0x9a66,0x9a66,0x381a}, {0x9a67,0x9a67,0x1f53}, {0x9a68,0x9a70,0x381b}, {0x9a71,0x9a71,0x2159}, {0x9a72,0x9a75,0x3824}, {0x9a76,0x9a76,0x2013}, {0x9a77,0x9a77,0x1f33}, {0x9a78,0x9a7e,0x3828}, {0x9a80,0x9a87,0x382f}, {0x9a88,0x9a88,0x1e5c}, {0x9a89,0x9a8b,0x3837}, {0x9a8c,0x9a8c,0x2488}, {0x9a8d,0x9a90,0x383a}, {0x9a91,0x9a91,0x2487}, {0x9a92,0x9a96,0x383e}, {0x9a97,0x9a97,0x248a}, {0x9a98,0x9a99,0x3843}, {0x9a9a,0x9a9a,0x2489}, {0x9a9b,0x9a9b,0x248b}, {0x9a9c,0x9a9d,0x3845}, {0x9a9e,0x9a9e,0x1f83}, {0x9a9f,0x9aa1,0x3847}, {0x9aa2,0x9aa2,0x210f}, {0x9aa3,0x9aa3,0x1fdb}, {0x9aa4,0x9aa9,0x384a}, {0x9aaa,0x9aaa,0x20af}, {0x9aab,0x9acf,0x3850}, {0x9ad0,0x9ad0,0x24c0}, {0x9ad1,0x9ad5,0x3875}, {0x9ad6,0x9ad6,0x226d}, {0x9ad7,0x9ad9,0x387a}, {0x9ada,0x9ada,0x24c1}, {0x9adb,0x9ae1,0x387d}, {0x9ae2,0x9ae2,0x20ca}, {0x9ae3,0x9ae3,0x3884}, {0x9ae4,0x9ae4,0x20e7}, {0x9ae5,0x9ae5,0x24c2}, {0x9ae6,0x9afe,0x3885}, {0x9b40,0x9b7e,0x389e}, {0x9b80,0x9bd0,0x38dd}, {0x9bd1,0x9bd1,0x23dc}, {0x9bd2,0x9bdb,0x392e}, {0x9bdc,0x9bdc,0x23db}, {0x9bdd,0x9bfe,0x3938}, {0x9c40,0x9c52,0x395a}, {0x9c53,0x9c53,0x205e}, {0x9c54,0x9c58,0x396d}, {0x9c59,0x9c59,0x2244}, {0x9c5a,0x9c5a,0x23e2}, {0x9c5b,0x9c5b,0x3972}, {0x9c5c,0x9c5c,0x20d4}, {0x9c5d,0x9c74,0x3973}, {0x9c75,0x9c75,0x219f}, {0x9c76,0x9c78,0x398b}, {0x9c79,0x9c79,0x1e66}, {0x9c7a,0x9c7e,0x398e}, {0x9c80,0x9c85,0x3993}, {0x9c86,0x9c86,0x1f63}, {0x9c87,0x9c9c,0x3999}, {0x9c9d,0x9c9d,0x23dd}, {0x9c9e,0x9caa,0x39af}, {0x9cab,0x9cab,0x216b}, {0x9cac,0x9cc9,0x39bc}, {0x9cca,0x9cca,0x22b5}, {0x9ccb,0x9cce,0x39da}, {0x9ccf,0x9ccf,0x1f26}, {0x9cd0,0x9ce5,0x39de}, {0x9ce6,0x9ce6,0x1e63}, {0x9ce7,0x9ce7,0x2088}, {0x9ce8,0x9ceb,0x39f4}, {0x9cec,0x9cec,0x1ebd}, {0x9ced,0x9ced,0x39f8}, {0x9cee,0x9cee,0x2341}, {0x9cef,0x9cfa,0x39f9}, {0x9cfb,0x9cfb,0x1f4b}, {0x9cfc,0x9cfd,0x3a05}, {0x9cfe,0x9cfe,0x2292}, {0x9d40,0x9d41,0x3a07}, {0x9d42,0x9d42,0x2124}, {0x9d43,0x9d45,0x3a09}, {0x9d46,0x9d46,0x2048}, {0x9d47,0x9d47,0x23e0}, {0x9d48,0x9d4c,0x3a0c}, {0x9d4d,0x9d4d,0x2077}, {0x9d4e,0x9d4e,0x3a11}, {0x9d4f,0x9d4f,0x223a}, {0x9d50,0x9d60,0x3a12}, {0x9d61,0x9d61,0x20b1}, {0x9d62,0x9d67,0x3a23}, {0x9d68,0x9d68,0x1f41}, {0x9d69,0x9d69,0x201c}, {0x9d6a,0x9d6d,0x3a29}, {0x9d6e,0x9d6e,0x22b8}, {0x9d6f,0x9d70,0x3a2d}, {0x9d71,0x9d71,0x2276}, {0x9d72,0x9d74,0x3a2f}, {0x9d75,0x9d75,0x1f9b}, {0x9d76,0x9d7a,0x3a32}, {0x9d7b,0x9d7b,0x1f9f}, {0x9d7c,0x9d7c,0x3a37}, {0x9d7d,0x9d7d,0x25ca}, {0x9d7e,0x9d7e,0x3a38}, {0x9d80,0x9d89,0x3a39}, {0x9d8a,0x9d8a,0x20be}, {0x9d8b,0x9d8c,0x3a43}, {0x9d8d,0x9d8d,0x1fb4}, {0x9d8e,0x9d90,0x3a45}, {0x9d91,0x9d91,0x23d7}, {0x9d92,0x9d98,0x3a48}, {0x9d99,0x9d99,0x2105}, {0x9d9a,0x9da0,0x3a4f}, {0x9da1,0x9da1,0x23e1}, {0x9da2,0x9da2,0x1fec}, {0x9da3,0x9da6,0x3a56}, {0x9da7,0x9da7,0x23ea}, {0x9da8,0x9dab,0x3a5a}, {0x9dac,0x9dac,0x23e3}, {0x9dad,0x9dad,0x210e}, {0x9dae,0x9db1,0x3a5e}, {0x9db2,0x9db2,0x1fa6}, {0x9db3,0x9db3,0x2004}, {0x9db4,0x9dbd,0x3a62}, {0x9dbe,0x9dbe,0x1f9d}, {0x9dbf,0x9dc5,0x3a6c}, {0x9dc6,0x9dc6,0x23e5}, {0x9dc7,0x9dc8,0x3a73}, {0x9dc9,0x9dc9,0x2264}, {0x9dca,0x9dcc,0x3a75}, {0x9dcd,0x9dcd,0x24e2}, {0x9dce,0x9dd1,0x3a78}, {0x9dd2,0x9dd2,0x23de}, {0x9dd3,0x9dd4,0x3a7c}, {0x9dd5,0x9dd5,0x1ec4}, {0x9dd6,0x9de0,0x3a7e}, {0x9de1,0x9de1,0x22b6}, {0x9de2,0x9de2,0x20a9}, {0x9de3,0x9df0,0x3a89}, {0x9df1,0x9df1,0x212b}, {0x9df2,0x9df3,0x3a97}, {0x9df4,0x9df4,0x20a5}, {0x9df5,0x9df6,0x3a99}, {0x9df7,0x9df7,0x268b}, {0x9df8,0x9df9,0x3a9b}, {0x9dfa,0x9dfa,0x1f76}, {0x9dfb,0x9dfc,0x3a9d}, {0x9dfd,0x9dfd,0x216d}, {0x9dfe,0x9dfe,0x3a9f}, {0x9e40,0x9e44,0x3aa0}, {0x9e45,0x9e45,0x2001}, {0x9e46,0x9e47,0x3aa5}, {0x9e48,0x9e48,0x2191}, {0x9e49,0x9e49,0x1e50}, {0x9e4a,0x9e51,0x3aa7}, {0x9e52,0x9e52,0x1f9c}, {0x9e53,0x9e53,0x3aaf}, {0x9e54,0x9e54,0x23da}, {0x9e55,0x9e55,0x3ab0}, {0x9e56,0x9e56,0x2053}, {0x9e57,0x9e5c,0x3ab1}, {0x9e5d,0x9e5d,0x23e9}, {0x9e5e,0x9e5e,0x23e4}, {0x9e5f,0x9e60,0x3ab7}, {0x9e61,0x9e61,0x21d5}, {0x9e62,0x9e62,0x3ab9}, {0x9e63,0x9e63,0x23e6}, {0x9e64,0x9e66,0x3aba}, {0x9e67,0x9e67,0x23df}, {0x9e68,0x9e6b,0x3abd}, {0x9e6c,0x9e6c,0x1e4f}, {0x9e6d,0x9e6e,0x3ac1}, {0x9e6f,0x9e6f,0x23d9}, {0x9e70,0x9e71,0x3ac3}, {0x9e72,0x9e72,0x2014}, {0x9e73,0x9e73,0x3ac5}, {0x9e74,0x9e74,0x23ec}, {0x9e75,0x9e75,0x23eb}, {0x9e76,0x9e7a,0x3ac6}, {0x9e7b,0x9e7b,0x23d8}, {0x9e7c,0x9e7c,0x23ee}, {0x9e7d,0x9e7e,0x3acb}, {0x9e80,0x9e84,0x3acd}, {0x9e85,0x9e85,0x268e}, {0x9e86,0x9e86,0x3ad2}, {0x9e87,0x9e87,0x23ed}, {0x9e88,0x9e90,0x3ad3}, {0x9e91,0x9e91,0x1ffa}, {0x9e92,0x9e95,0x3adc}, {0x9e96,0x9e96,0x23d6}, {0x9e97,0x9e97,0x23e8}, {0x9e98,0x9ea1,0x3ae0}, {0x9ea2,0x9ea2,0x2106}, {0x9ea3,0x9ea5,0x3aea}, {0x9ea6,0x9ea6,0x200b}, {0x9ea7,0x9ea8,0x3aed}, {0x9ea9,0x9ea9,0x2166}, {0x9eaa,0x9ead,0x3aef}, {0x9eae,0x9eae,0x23ef}, {0x9eaf,0x9eb2,0x3af3}, {0x9eb3,0x9eb3,0x2189}, {0x9eb4,0x9eb4,0x2058}, {0x9eb5,0x9eb6,0x3af7}, {0x9eb7,0x9eb7,0x23e7}, {0x9eb8,0x9ef4,0x3af9}, {0x9ef5,0x9ef5,0x21a3}, {0x9ef6,0x9efe,0x3b36}, {0x9f40,0x9f4d,0x3b3f}, {0x9f4e,0x9f4e,0x217a}, {0x9f4f,0x9f6e,0x3b4d}, {0x9f6f,0x9f6f,0x21a5}, {0x9f70,0x9f7e,0x3b6d}, {0x9f80,0x9f91,0x3b7c}, {0x9f92,0x9f92,0x2022}, {0x9f93,0x9f97,0x3b8e}, {0x9f98,0x9f98,0x24d6}, {0x9f99,0x9fa5,0x3b93}, {0x9fa6,0x9fa6,0x233a}, {0x9fa7,0x9fa8,0x3ba0}, {0x9fa9,0x9fa9,0x1eee}, {0x9faa,0x9fab,0x3ba2}, {0x9fac,0x9fac,0x24d5}, {0x9fad,0x9fc8,0x3ba4}, {0x9fc9,0x9fc9,0x2228}, {0x9fca,0x9fcc,0x3bc0}, {0x9fcd,0x9fcd,0x24d7}, {0x9fce,0x9fe0,0x3bc3}, {0x9fe1,0x9fe1,0x20fc}, {0x9fe2,0x9fea,0x3bd6}, {0x9feb,0x9feb,0x1e87}, {0x9fec,0x9fed,0x3bdf}, {0x9fee,0x9fee,0x24d8}, {0x9fef,0x9ff3,0x3be1}, {0x9ff4,0x9ff4,0x1eba}, {0x9ff5,0x9ffc,0x3be6}, {0x9ffd,0x9ffd,0x2119}, {0x9ffe,0x9ffe,0x3bee}, {0xa040,0xa042,0x3bef}, {0xa043,0xa043,0x216c}, {0xa044,0xa045,0x3bf2}, {0xa046,0xa046,0x24d9}, {0xa047,0xa048,0x3bf4}, {0xa049,0xa049,0x2227}, {0xa04a,0xa04d,0x3bf6}, {0xa04e,0xa04e,0x1e5f}, {0xa04f,0xa053,0x3bfa}, {0xa054,0xa054,0x229f}, {0xa055,0xa059,0x3bff}, {0xa05a,0xa05a,0x1f5d}, {0xa05b,0xa060,0x3c04}, {0xa061,0xa061,0x1fbc}, {0xa062,0xa062,0x3c0a}, {0xa063,0xa063,0x24da}, {0xa064,0xa070,0x3c0b}, {0xa071,0xa071,0x2149}, {0xa072,0xa073,0x3c18}, {0xa074,0xa074,0x2046}, {0xa075,0xa07e,0x3c1a}, {0xa080,0xa080,0x2000}, {0xa081,0xa090,0x3c24}, {0xa091,0xa091,0x2190}, {0xa092,0xa093,0x3c34}, {0xa094,0xa094,0x2208}, {0xa095,0xa095,0x3c36}, {0xa096,0xa096,0x1ee6}, {0xa097,0xa0a8,0x3c37}, {0xa0a9,0xa0a9,0x24c3}, {0xa0aa,0xa0be,0x3c49}, {0xa0bf,0xa0bf,0x20cc}, {0xa0c0,0xa0cd,0x3c5e}, {0xa0ce,0xa0ce,0x2340}, {0xa0cf,0xa0d8,0x3c6c}, {0xa0d9,0xa0d9,0x1ed1}, {0xa0da,0xa0dd,0x3c76}, {0xa0de,0xa0de,0x21ac}, {0xa0df,0xa0ed,0x3c7a}, {0xa0ee,0xa0ee,0x22af}, {0xa0ef,0xa0fe,0x3c89}, {0xa1a1,0xa1fe,0x60}, {0xa2a1,0xa2aa,0x26a9}, {0xa2b1,0xa2e2,0xbe}, {0xa2e5,0xa2ee,0xf0}, {0xa2f1,0xa2fc,0xfa}, {0xa3a1,0xa3fe,0x106}, {0xa4a1,0xa4f3,0x164}, {0xa5a1,0xa5f6,0x1b7}, {0xa6a1,0xa6b8,0x20d}, {0xa6c1,0xa6f5,0x225}, {0xa7a1,0xa7c1,0x25a}, {0xa7d1,0xa7f1,0x27b}, {0xa840,0xa87e,0x26b3}, {0xa880,0xa895,0x26f2}, {0xa8a1,0xa8c0,0x29c}, {0xa8c5,0xa8ea,0x2bc}, {0xa940,0xa957,0x2708}, {0xa959,0xa95a,0x2720}, {0xa95c,0xa95c,0x2722}, {0xa960,0xa97e,0x2723}, {0xa980,0xa995,0x2742}, {0xa996,0xa996,0x1e17}, {0xa9a4,0xa9ef,0x2e2}, {0xaa40,0xaa4c,0x3c99}, {0xaa4d,0xaa4d,0x21b6}, {0xaa4e,0xaa4e,0x1e3d}, {0xaa4f,0xaa70,0x3ca6}, {0xaa71,0xaa71,0x2235}, {0xaa72,0xaa72,0x3cc8}, {0xaa73,0xaa73,0x2397}, {0xaa74,0xaa76,0x3cc9}, {0xaa77,0xaa77,0x2395}, {0xaa78,0xaa79,0x3ccc}, {0xaa7a,0xaa7a,0x223f}, {0xaa7b,0xaa7b,0x212a}, {0xaa7c,0xaa7e,0x3cce}, {0xaa80,0xaa99,0x3cd1}, {0xaa9a,0xaa9a,0x1ed2}, {0xaa9b,0xaa9b,0x3ceb}, {0xaa9c,0xaa9c,0x2396}, {0xaa9d,0xaa9d,0x2398}, {0xaa9e,0xaa9e,0x3cec}, {0xaa9f,0xaa9f,0x20a2}, {0xaaa0,0xaaa0,0x3ced}, {0xaaa1,0xaafe,0x32e}, {0xab40,0xab40,0x1f64}, {0xab41,0xab42,0x3cee}, {0xab43,0xab43,0x202b}, {0xab44,0xab44,0x3cf0}, {0xab45,0xab45,0x2394}, {0xab46,0xab46,0x2139}, {0xab47,0xab47,0x3cf1}, {0xab48,0xab48,0x215f}, {0xab49,0xab49,0x21c1}, {0xab4a,0xab4a,0x239a}, {0xab4b,0xab4c,0x3cf2}, {0xab4d,0xab4d,0x2399}, {0xab4e,0xab7e,0x3cf4}, {0xab80,0xaba0,0x3d25}, {0xaba1,0xabc0,0x38c}, {0xac40,0xac45,0x3d46}, {0xac46,0xac46,0x21c0}, {0xac47,0xac70,0x3d4c}, {0xac71,0xac71,0x2460}, {0xac72,0xac7b,0x3d76}, {0xac7c,0xac7c,0x245c}, {0xac7d,0xac7e,0x3d80}, {0xac80,0xac8c,0x3d82}, {0xac8d,0xac8d,0x215d}, {0xac8e,0xac92,0x3d8f}, {0xac93,0xac93,0x2225}, {0xac94,0xac94,0x206a}, {0xac95,0xaca0,0x3d94}, {0xad40,0xad48,0x3da0}, {0xad49,0xad49,0x2461}, {0xad4a,0xad5d,0x3da9}, {0xad5e,0xad5e,0x245b}, {0xad5f,0xad60,0x3dbd}, {0xad61,0xad61,0x2462}, {0xad62,0xad67,0x3dbf}, {0xad68,0xad68,0x1f54}, {0xad69,0xad73,0x3dc5}, {0xad74,0xad74,0x245f}, {0xad75,0xad7e,0x3dd0}, {0xad80,0xad81,0x3dda}, {0xad82,0xad82,0x20ec}, {0xad83,0xad86,0x3ddc}, {0xad87,0xad87,0x245d}, {0xad88,0xad8a,0x3de0}, {0xad8b,0xad8b,0x2463}, {0xad8c,0xad90,0x3de3}, {0xad91,0xad91,0x2464}, {0xad92,0xada0,0x3de8}, {0xae40,0xae53,0x3df7}, {0xae54,0xae54,0x24a5}, {0xae55,0xae61,0x3e0b}, {0xae62,0xae62,0x1e70}, {0xae63,0xae7e,0x3e18}, {0xae80,0xae80,0x208f}, {0xae81,0xae84,0x3e34}, {0xae85,0xae85,0x1e42}, {0xae86,0xae8a,0x3e38}, {0xae8b,0xae8b,0x1f4e}, {0xae8c,0xae93,0x3e3d}, {0xae94,0xae94,0x1eb1}, {0xae95,0xae9f,0x3e45}, {0xaea0,0xaea0,0x1e8b}, {0xaf40,0xaf63,0x3e50}, {0xaf64,0xaf64,0x1fc6}, {0xaf65,0xaf7a,0x3e74}, {0xaf7b,0xaf7b,0x25ae}, {0xaf7c,0xaf7e,0x3e8a}, {0xaf80,0xaf81,0x3e8d}, {0xaf82,0xaf82,0x1f01}, {0xaf83,0xaf83,0x2200}, {0xaf84,0xaf8d,0x3e8f}, {0xaf8e,0xaf8e,0x25b2}, {0xaf8f,0xaf8f,0x1e97}, {0xaf90,0xaf90,0x3e99}, {0xaf91,0xaf91,0x20ab}, {0xaf92,0xaf9b,0x3e9a}, {0xaf9c,0xaf9c,0x25b3}, {0xaf9d,0xaf9e,0x3ea4}, {0xaf9f,0xaf9f,0x2028}, {0xafa0,0xafa0,0x3ea6}, {0xb040,0xb040,0x3ea7}, {0xb041,0xb042,0x25af}, {0xb043,0xb043,0x3ea8}, {0xb044,0xb044,0x25b1}, {0xb045,0xb04e,0x3ea9}, {0xb04f,0xb04f,0x25ac}, {0xb050,0xb053,0x3eb3}, {0xb054,0xb054,0x1e4e}, {0xb055,0xb056,0x3eb7}, {0xb057,0xb057,0x2202}, {0xb058,0xb058,0x25ab}, {0xb059,0xb059,0x2286}, {0xb05a,0xb05a,0x3eb9}, {0xb05b,0xb05b,0x25ad}, {0xb05c,0xb05c,0x3eba}, {0xb05d,0xb05d,0x25b6}, {0xb05e,0xb05e,0x3ebb}, {0xb05f,0xb05f,0x21e3}, {0xb060,0xb061,0x25b4}, {0xb062,0xb062,0x222f}, {0xb063,0xb063,0x2165}, {0xb064,0xb064,0x25b7}, {0xb065,0xb06b,0x3ebc}, {0xb06c,0xb06c,0x1ee9}, {0xb06d,0xb07c,0x3ec3}, {0xb07d,0xb07d,0x1e25}, {0xb07e,0xb07e,0x3ed3}, {0xb080,0xb096,0x3ed4}, {0xb097,0xb097,0x25c0}, {0xb098,0xb098,0x3eeb}, {0xb099,0xb099,0x229a}, {0xb09a,0xb0a0,0x3eec}, {0xb0a1,0xb0fe,0x3ac}, {0xb140,0xb14a,0x3ef3}, {0xb14b,0xb14b,0x226e}, {0xb14c,0xb14c,0x3efe}, {0xb14d,0xb14d,0x1fbd}, {0xb14e,0xb14e,0x3eff}, {0xb14f,0xb14f,0x1f84}, {0xb150,0xb150,0x20b2}, {0xb151,0xb151,0x3f00}, {0xb152,0xb152,0x2043}, {0xb153,0xb17e,0x3f01}, {0xb180,0xb196,0x3f2d}, {0xb197,0xb197,0x2684}, {0xb198,0xb1a0,0x3f44}, {0xb1a1,0xb1fe,0x40a}, {0xb240,0xb240,0x3f4d}, {0xb241,0xb241,0x24ef}, {0xb242,0xb266,0x3f4e}, {0xb267,0xb267,0x24ee}, {0xb268,0xb26c,0x3f73}, {0xb26d,0xb26d,0x2074}, {0xb26e,0xb273,0x3f78}, {0xb274,0xb274,0x2687}, {0xb275,0xb27e,0x3f7e}, {0xb280,0xb280,0x24f0}, {0xb281,0xb288,0x3f88}, {0xb289,0xb289,0x268d}, {0xb28a,0xb299,0x3f90}, {0xb29a,0xb29a,0x22a0}, {0xb29b,0xb2a0,0x3fa0}, {0xb2a1,0xb2fe,0x468}, {0xb340,0xb342,0x3fa6}, {0xb343,0xb343,0x1fab}, {0xb344,0xb36f,0x3fa9}, {0xb370,0xb370,0x26a8}, {0xb371,0xb37e,0x3fd5}, {0xb380,0xb387,0x3fe3}, {0xb388,0xb388,0x24e9}, {0xb389,0xb38b,0x3feb}, {0xb38c,0xb38c,0x24e5}, {0xb38d,0xb38d,0x3fee}, {0xb38e,0xb38e,0x21fa}, {0xb38f,0xb3a0,0x3fef}, {0xb3a1,0xb3fe,0x4c6}, {0xb440,0xb453,0x4001}, {0xb454,0xb454,0x2148}, {0xb455,0xb457,0x4015}, {0xb458,0xb458,0x24e4}, {0xb459,0xb45d,0x4018}, {0xb45e,0xb45e,0x24e6}, {0xb45f,0xb45f,0x20f7}, {0xb460,0xb460,0x401d}, {0xb461,0xb461,0x206b}, {0xb462,0xb474,0x401e}, {0xb475,0xb475,0x22a7}, {0xb476,0xb47d,0x4031}, {0xb47e,0xb47e,0x24ec}, {0xb480,0xb482,0x4039}, {0xb483,0xb483,0x24eb}, {0xb484,0xb488,0x403c}, {0xb489,0xb489,0x24e3}, {0xb48a,0xb492,0x4041}, {0xb493,0xb493,0x24ea}, {0xb494,0xb4a0,0x404a}, {0xb4a1,0xb4fe,0x524}, {0xb540,0xb540,0x4057}, {0xb541,0xb541,0x1e92}, {0xb542,0xb54a,0x4058}, {0xb54b,0xb54b,0x1e27}, {0xb54c,0xb555,0x4061}, {0xb556,0xb556,0x1fe6}, {0xb557,0xb559,0x406b}, {0xb55a,0xb55a,0x24e7}, {0xb55b,0xb55b,0x2012}, {0xb55c,0xb55c,0x1eec}, {0xb55d,0xb560,0x406e}, {0xb561,0xb561,0x24e8}, {0xb562,0xb57e,0x4072}, {0xb580,0xb59b,0x408f}, {0xb59c,0xb59c,0x1f66}, {0xb59d,0xb59d,0x24dc}, {0xb59e,0xb5a0,0x40ab}, {0xb5a1,0xb5fe,0x582}, {0xb640,0xb651,0x40ae}, {0xb652,0xb652,0x26a2}, {0xb653,0xb654,0x40c0}, {0xb655,0xb655,0x24dd}, {0xb656,0xb658,0x40c2}, {0xb659,0xb659,0x200e}, {0xb65a,0xb65a,0x40c5}, {0xb65b,0xb65b,0x24db}, {0xb65c,0xb65c,0x1eb8}, {0xb65d,0xb67e,0x40c6}, {0xb680,0xb6a0,0x40e8}, {0xb6a1,0xb6fe,0x5e0}, {0xb740,0xb74d,0x4109}, {0xb74e,0xb74e,0x2295}, {0xb74f,0xb750,0x4117}, {0xb751,0xb751,0x1e80}, {0xb752,0xb758,0x4119}, {0xb759,0xb759,0x2677}, {0xb75a,0xb763,0x4120}, {0xb764,0xb764,0x2624}, {0xb765,0xb765,0x1f69}, {0xb766,0xb766,0x222b}, {0xb767,0xb776,0x412a}, {0xb777,0xb777,0x257f}, {0xb778,0xb778,0x1f5b}, {0xb779,0xb77e,0x413a}, {0xb780,0xb780,0x219b}, {0xb781,0xb781,0x4140}, {0xb782,0xb782,0x267d}, {0xb783,0xb7a0,0x4141}, {0xb7a1,0xb7fe,0x63e}, {0xb840,0xb842,0x415f}, {0xb843,0xb843,0x21a0}, {0xb844,0xb844,0x2186}, {0xb845,0xb845,0x4162}, {0xb846,0xb846,0x20ed}, {0xb847,0xb84c,0x4163}, {0xb84d,0xb84d,0x25b9}, {0xb84e,0xb850,0x4169}, {0xb851,0xb851,0x1fea}, {0xb852,0xb859,0x416c}, {0xb85a,0xb85a,0x1ea4}, {0xb85b,0xb85b,0x20e1}, {0xb85c,0xb85c,0x4174}, {0xb85d,0xb85d,0x25b8}, {0xb85e,0xb85e,0x2260}, {0xb85f,0xb85f,0x4175}, {0xb860,0xb860,0x20e2}, {0xb861,0xb876,0x4176}, {0xb877,0xb877,0x2141}, {0xb878,0xb87e,0x418c}, {0xb880,0xb881,0x4193}, {0xb882,0xb882,0x1fc7}, {0xb883,0xb8a0,0x4195}, {0xb8a1,0xb8fe,0x69c}, {0xb940,0xb94f,0x41b3}, {0xb950,0xb950,0x1e41}, {0xb951,0xb960,0x41c3}, {0xb961,0xb961,0x25e4}, {0xb962,0xb97a,0x41d3}, {0xb97b,0xb97b,0x1f86}, {0xb97c,0xb97e,0x41ec}, {0xb980,0xb99c,0x41ef}, {0xb99d,0xb99d,0x1fb3}, {0xb99e,0xb99f,0x420c}, {0xb9a0,0xb9a0,0x1eef}, {0xb9a1,0xb9fe,0x6fa}, {0xba40,0xba41,0x420e}, {0xba42,0xba42,0x22a4}, {0xba43,0xba43,0x4210}, {0xba44,0xba44,0x25e8}, {0xba45,0xba55,0x4211}, {0xba56,0xba56,0x25e3}, {0xba57,0xba58,0x4222}, {0xba59,0xba59,0x2111}, {0xba5a,0xba5f,0x4224}, {0xba60,0xba60,0x25e6}, {0xba61,0xba69,0x422a}, {0xba6a,0xba6a,0x25e7}, {0xba6b,0xba73,0x4233}, {0xba74,0xba74,0x2041}, {0xba75,0xba7e,0x423c}, {0xba80,0xba83,0x4246}, {0xba84,0xba84,0x25ea}, {0xba85,0xba85,0x424a}, {0xba86,0xba86,0x1f8f}, {0xba87,0xba87,0x424b}, {0xba88,0xba88,0x25ec}, {0xba89,0xba8c,0x424c}, {0xba8d,0xba8d,0x25eb}, {0xba8e,0xba9d,0x4250}, {0xba9e,0xba9e,0x20d0}, {0xba9f,0xba9f,0x201d}, {0xbaa0,0xbaa0,0x4260}, {0xbaa1,0xbafe,0x758}, {0xbb40,0xbb40,0x1ff7}, {0xbb41,0xbb48,0x4261}, {0xbb49,0xbb49,0x1e8d}, {0xbb4a,0xbb57,0x4269}, {0xbb58,0xbb58,0x25e9}, {0xbb59,0xbb5a,0x4277}, {0xbb5b,0xbb5b,0x25ee}, {0xbb5c,0xbb5c,0x203a}, {0xbb5d,0xbb5f,0x4279}, {0xbb60,0xbb60,0x2693}, {0xbb61,0xbb64,0x427c}, {0xbb65,0xbb65,0x25e5}, {0xbb66,0xbb66,0x25ed}, {0xbb67,0xbb67,0x4280}, {0xbb68,0xbb68,0x2009}, {0xbb69,0xbb69,0x4281}, {0xbb6a,0xbb6a,0x2065}, {0xbb6b,0xbb6d,0x4282}, {0xbb6e,0xbb6e,0x26a3}, {0xbb6f,0xbb7e,0x4285}, {0xbb80,0xbba0,0x4295}, {0xbba1,0xbbfe,0x7b6}, {0xbc40,0xbc51,0x42b6}, {0xbc52,0xbc52,0x25f5}, {0xbc53,0xbc53,0x1efc}, {0xbc54,0xbc59,0x42c8}, {0xbc5a,0xbc5a,0x2024}, {0xbc5b,0xbc60,0x42ce}, {0xbc61,0xbc61,0x269b}, {0xbc62,0xbc62,0x42d4}, {0xbc63,0xbc63,0x25f3}, {0xbc64,0xbc64,0x42d5}, {0xbc65,0xbc65,0x22d9}, {0xbc66,0xbc66,0x42d6}, {0xbc67,0xbc67,0x25f4}, {0xbc68,0xbc68,0x42d7}, {0xbc69,0xbc69,0x241b}, {0xbc6a,0xbc6c,0x42d8}, {0xbc6d,0xbc6d,0x1fc8}, {0xbc6e,0xbc6e,0x42db}, {0xbc6f,0xbc6f,0x1f7b}, {0xbc70,0xbc70,0x42dc}, {0xbc71,0xbc71,0x241d}, {0xbc72,0xbc72,0x42dd}, {0xbc73,0xbc73,0x224c}, {0xbc74,0xbc74,0x1f48}, {0xbc75,0xbc75,0x241c}, {0xbc76,0xbc77,0x241e}, {0xbc78,0xbc78,0x20ff}, {0xbc79,0xbc79,0x219a}, {0xbc7a,0xbc7a,0x42de}, {0xbc7b,0xbc7b,0x2091}, {0xbc7c,0xbc7d,0x42df}, {0xbc7e,0xbc7e,0x20a7}, {0xbc80,0xbc81,0x42e1}, {0xbc82,0xbc82,0x2423}, {0xbc83,0xbc83,0x1e9b}, {0xbc84,0xbc84,0x2422}, {0xbc85,0xbc85,0x42e3}, {0xbc86,0xbc86,0x2110}, {0xbc87,0xbc87,0x42e4}, {0xbc88,0xbc88,0x228d}, {0xbc89,0xbc89,0x1f71}, {0xbc8a,0xbc8a,0x1ef8}, {0xbc8b,0xbc8b,0x2421}, {0xbc8c,0xbc8e,0x42e5}, {0xbc8f,0xbc8f,0x1ef3}, {0xbc90,0xbc99,0x42e8}, {0xbc9a,0xbc9a,0x21b1}, {0xbc9b,0xbc9b,0x2426}, {0xbc9c,0xbc9c,0x2425}, {0xbc9d,0xbc9d,0x2120}, {0xbc9e,0xbca0,0x42f2}, {0xbca1,0xbcfe,0x814}, {0xbd40,0xbd41,0x42f5}, {0xbd42,0xbd42,0x211a}, {0xbd43,0xbd43,0x2424}, {0xbd44,0xbd44,0x42f7}, {0xbd45,0xbd45,0x2428}, {0xbd46,0xbd47,0x42f8}, {0xbd48,0xbd48,0x242a}, {0xbd49,0xbd49,0x2429}, {0xbd4a,0xbd4a,0x42fa}, {0xbd4b,0xbd4b,0x2294}, {0xbd4c,0xbd4c,0x42fb}, {0xbd4d,0xbd4d,0x22be}, {0xbd4e,0xbd4e,0x42fc}, {0xbd4f,0xbd4f,0x1e31}, {0xbd50,0xbd56,0x42fd}, {0xbd57,0xbd57,0x242c}, {0xbd58,0xbd58,0x4304}, {0xbd59,0xbd59,0x1fb5}, {0xbd5a,0xbd65,0x4305}, {0xbd66,0xbd66,0x242b}, {0xbd67,0xbd67,0x1faf}, {0xbd68,0xbd69,0x4311}, {0xbd6a,0xbd6a,0x2068}, {0xbd6b,0xbd6b,0x21e4}, {0xbd6c,0xbd6e,0x4313}, {0xbd6f,0xbd6f,0x1f21}, {0xbd70,0xbd70,0x4316}, {0xbd71,0xbd71,0x2101}, {0xbd72,0xbd78,0x4317}, {0xbd79,0xbd79,0x217c}, {0xbd7a,0xbd7a,0x214a}, {0xbd7b,0xbd7b,0x242d}, {0xbd7c,0xbd7d,0x431e}, {0xbd7e,0xbd7e,0x1fd4}, {0xbd80,0xbd80,0x4320}, {0xbd81,0xbd81,0x1fd1}, {0xbd82,0xbd88,0x4321}, {0xbd89,0xbd89,0x1e33}, {0xbd8a,0xbd8a,0x4328}, {0xbd8b,0xbd8b,0x242f}, {0xbd8c,0xbd8d,0x4329}, {0xbd8e,0xbd8e,0x242e}, {0xbd8f,0xbd8f,0x432b}, {0xbd90,0xbd90,0x2430}, {0xbd91,0xbd91,0x21db}, {0xbd92,0xbd96,0x432c}, {0xbd97,0xbd97,0x2158}, {0xbd98,0xbd9a,0x4331}, {0xbd9b,0xbd9b,0x1fc2}, {0xbd9c,0xbda0,0x4334}, {0xbda1,0xbdfe,0x872}, {0xbe40,0xbe42,0x4339}, {0xbe43,0xbe43,0x22b9}, {0xbe44,0xbe44,0x433c}, {0xbe45,0xbe45,0x2436}, {0xbe46,0xbe48,0x433d}, {0xbe49,0xbe49,0x1e8e}, {0xbe4a,0xbe4a,0x2439}, {0xbe4b,0xbe50,0x4340}, {0xbe51,0xbe51,0x21c5}, {0xbe52,0xbe52,0x2437}, {0xbe53,0xbe53,0x2192}, {0xbe54,0xbe54,0x4346}, {0xbe55,0xbe55,0x243a}, {0xbe56,0xbe56,0x1f19}, {0xbe57,0xbe57,0x218c}, {0xbe58,0xbe58,0x1e40}, {0xbe59,0xbe59,0x22b3}, {0xbe5a,0xbe5c,0x4347}, {0xbe5d,0xbe5d,0x205f}, {0xbe5e,0xbe5e,0x2438}, {0xbe5f,0xbe5f,0x2432}, {0xbe60,0xbe60,0x2274}, {0xbe61,0xbe61,0x434a}, {0xbe62,0xbe62,0x1e9c}, {0xbe63,0xbe63,0x2431}, {0xbe64,0xbe64,0x2085}, {0xbe65,0xbe68,0x434b}, {0xbe69,0xbe69,0x2435}, {0xbe6a,0xbe6b,0x434f}, {0xbe6c,0xbe6c,0x243b}, {0xbe6d,0xbe6e,0x4351}, {0xbe6f,0xbe6f,0x1fb7}, {0xbe70,0xbe70,0x2433}, {0xbe71,0xbe75,0x4353}, {0xbe76,0xbe76,0x2054}, {0xbe77,0xbe77,0x21de}, {0xbe78,0xbe78,0x4358}, {0xbe79,0xbe79,0x2434}, {0xbe7a,0xbe7b,0x4359}, {0xbe7c,0xbe7c,0x243d}, {0xbe7d,0xbe7d,0x1f89}, {0xbe7e,0xbe7e,0x243c}, {0xbe80,0xbe82,0x435b}, {0xbe83,0xbe83,0x1f6e}, {0xbe84,0xbe84,0x1ed8}, {0xbe85,0xbe85,0x435e}, {0xbe86,0xbe86,0x1ebf}, {0xbe87,0xbe87,0x2445}, {0xbe88,0xbe88,0x435f}, {0xbe89,0xbe89,0x2249}, {0xbe8a,0xbe8b,0x4360}, {0xbe8c,0xbe8c,0x2441}, {0xbe8d,0xbe8d,0x4362}, {0xbe8e,0xbe8e,0x1e47}, {0xbe8f,0xbe8f,0x1f56}, {0xbe90,0xbe91,0x4363}, {0xbe92,0xbe92,0x2086}, {0xbe93,0xbe94,0x4365}, {0xbe95,0xbe95,0x2196}, {0xbe96,0xbe96,0x4367}, {0xbe97,0xbe97,0x2443}, {0xbe98,0xbe98,0x243f}, {0xbe99,0xbe99,0x4368}, {0xbe9a,0xbe9a,0x2023}, {0xbe9b,0xbe9b,0x4369}, {0xbe9c,0xbe9c,0x2442}, {0xbe9d,0xbe9e,0x436a}, {0xbe9f,0xbe9f,0x243e}, {0xbea0,0xbea0,0x436c}, {0xbea1,0xbefe,0x8d0}, {0xbf40,0xbf40,0x26a6}, {0xbf41,0xbf4c,0x436d}, {0xbf4d,0xbf4d,0x234e}, {0xbf4e,0xbf4e,0x2446}, {0xbf4f,0xbf4f,0x244b}, {0xbf50,0xbf50,0x2444}, {0xbf51,0xbf54,0x4379}, {0xbf55,0xbf55,0x2427}, {0xbf56,0xbf56,0x244c}, {0xbf57,0xbf5f,0x437d}, {0xbf60,0xbf60,0x1f0f}, {0xbf61,0xbf61,0x4386}, {0xbf62,0xbf62,0x2447}, {0xbf63,0xbf63,0x2449}, {0xbf64,0xbf64,0x2448}, {0xbf65,0xbf67,0x4387}, {0xbf68,0xbf68,0x21c2}, {0xbf69,0xbf6b,0x438a}, {0xbf6c,0xbf6c,0x216e}, {0xbf6d,0xbf6f,0x438d}, {0xbf70,0xbf70,0x1f03}, {0xbf71,0xbf71,0x4390}, {0xbf72,0xbf72,0x244a}, {0xbf73,0xbf73,0x215c}, {0xbf74,0xbf75,0x4391}, {0xbf76,0xbf76,0x22bb}, {0xbf77,0xbf77,0x2450}, {0xbf78,0xbf78,0x4393}, {0xbf79,0xbf79,0x2694}, {0xbf7a,0xbf7a,0x244f}, {0xbf7b,0xbf7b,0x25f6}, {0xbf7c,0xbf7c,0x2051}, {0xbf7d,0xbf7d,0x4394}, {0xbf7e,0xbf7e,0x244e}, {0xbf80,0xbf81,0x4395}, {0xbf82,0xbf82,0x22ba}, {0xbf83,0xbf83,0x1f6d}, {0xbf84,0xbf88,0x4397}, {0xbf89,0xbf89,0x2452}, {0xbf8a,0xbf8a,0x2451}, {0xbf8b,0xbf94,0x439c}, {0xbf95,0xbf95,0x2455}, {0xbf96,0xbf96,0x43a6}, {0xbf97,0xbf97,0x2289}, {0xbf98,0xbf98,0x2116}, {0xbf99,0xbf9c,0x43a7}, {0xbf9d,0xbf9d,0x2454}, {0xbf9e,0xbfa0,0x43ab}, {0xbfa1,0xbffe,0x92e}, {0xc040,0xc040,0x20fb}, {0xc041,0xc043,0x43ae}, {0xc044,0xc044,0x2440}, {0xc045,0xc04a,0x43b1}, {0xc04b,0xc04b,0x2126}, {0xc04c,0xc04c,0x1f61}, {0xc04d,0xc04d,0x269d}, {0xc04e,0xc04e,0x43b7}, {0xc04f,0xc04f,0x1f8a}, {0xc050,0xc050,0x2456}, {0xc051,0xc051,0x2459}, {0xc052,0xc052,0x2458}, {0xc053,0xc054,0x43b8}, {0xc055,0xc055,0x1fae}, {0xc056,0xc05a,0x43ba}, {0xc05b,0xc05b,0x221a}, {0xc05c,0xc05d,0x43bf}, {0xc05e,0xc05e,0x1f7a}, {0xc05f,0xc05f,0x244d}, {0xc060,0xc060,0x2457}, {0xc061,0xc068,0x43c1}, {0xc069,0xc069,0x2453}, {0xc06a,0xc06a,0x43c9}, {0xc06b,0xc06b,0x2420}, {0xc06c,0xc06c,0x43ca}, {0xc06d,0xc06d,0x21df}, {0xc06e,0xc06e,0x2685}, {0xc06f,0xc06f,0x43cb}, {0xc070,0xc070,0x1e6e}, {0xc071,0xc073,0x43cc}, {0xc074,0xc074,0x2224}, {0xc075,0xc075,0x2670}, {0xc076,0xc076,0x43cf}, {0xc077,0xc077,0x21ba}, {0xc078,0xc078,0x43d0}, {0xc079,0xc079,0x245a}, {0xc07a,0xc07b,0x43d1}, {0xc07c,0xc07c,0x1fff}, {0xc07d,0xc07e,0x43d3}, {0xc080,0xc09a,0x43d5}, {0xc09b,0xc09b,0x25e2}, {0xc09c,0xc09c,0x43f0}, {0xc09d,0xc09d,0x269a}, {0xc09e,0xc0a0,0x43f1}, {0xc0a1,0xc0fe,0x98c}, {0xc140,0xc14f,0x43f4}, {0xc150,0xc150,0x1eea}, {0xc151,0xc153,0x4404}, {0xc154,0xc154,0x1e2c}, {0xc155,0xc15e,0x4407}, {0xc15f,0xc15f,0x2062}, {0xc160,0xc160,0x24f1}, {0xc161,0xc161,0x4411}, {0xc162,0xc162,0x24f2}, {0xc163,0xc174,0x4412}, {0xc175,0xc175,0x25f2}, {0xc176,0xc177,0x4424}, {0xc178,0xc178,0x2215}, {0xc179,0xc17e,0x4426}, {0xc180,0xc194,0x442c}, {0xc195,0xc195,0x21ae}, {0xc196,0xc1a0,0x4441}, {0xc1a1,0xc1fe,0x9ea}, {0xc240,0xc24d,0x444c}, {0xc24e,0xc24e,0x20e0}, {0xc24f,0xc264,0x445a}, {0xc265,0xc265,0x25c2}, {0xc266,0xc266,0x4470}, {0xc267,0xc267,0x25c1}, {0xc268,0xc27c,0x4471}, {0xc27d,0xc27d,0x2128}, {0xc27e,0xc27e,0x4486}, {0xc280,0xc283,0x4487}, {0xc284,0xc284,0x2199}, {0xc285,0xc292,0x448b}, {0xc293,0xc293,0x2017}, {0xc294,0xc294,0x1ea0}, {0xc295,0xc295,0x2125}, {0xc296,0xc296,0x214d}, {0xc297,0xc297,0x4499}, {0xc298,0xc298,0x25c4}, {0xc299,0xc299,0x209d}, {0xc29a,0xc29a,0x228a}, {0xc29b,0xc29b,0x449a}, {0xc29c,0xc29c,0x25c3}, {0xc29d,0xc29f,0x449b}, {0xc2a0,0xc2a0,0x2179}, {0xc2a1,0xc2fe,0xa48}, {0xc340,0xc340,0x2038}, {0xc341,0xc342,0x449e}, {0xc343,0xc343,0x2155}, {0xc344,0xc37a,0x44a0}, {0xc37b,0xc37b,0x21d2}, {0xc37c,0xc37e,0x44d7}, {0xc380,0xc383,0x44da}, {0xc384,0xc384,0x24c7}, {0xc385,0xc39a,0x44de}, {0xc39b,0xc39b,0x2279}, {0xc39c,0xc3a0,0x44f4}, {0xc3a1,0xc3fe,0xaa6}, {0xc440,0xc448,0x44f9}, {0xc449,0xc449,0x2123}, {0xc44a,0xc44b,0x4502}, {0xc44c,0xc44c,0x24c5}, {0xc44d,0xc453,0x4504}, {0xc454,0xc454,0x24c9}, {0xc455,0xc457,0x450b}, {0xc458,0xc458,0x2094}, {0xc459,0xc45a,0x450e}, {0xc45b,0xc45b,0x2296}, {0xc45c,0xc462,0x4510}, {0xc463,0xc463,0x1e77}, {0xc464,0xc476,0x4517}, {0xc477,0xc477,0x1f06}, {0xc478,0xc479,0x452a}, {0xc47a,0xc47a,0x1fa5}, {0xc47b,0xc47e,0x452c}, {0xc480,0xc480,0x4530}, {0xc481,0xc481,0x2099}, {0xc482,0xc490,0x4531}, {0xc491,0xc491,0x1ead}, {0xc492,0xc492,0x24c8}, {0xc493,0xc493,0x20a8}, {0xc494,0xc497,0x4540}, {0xc498,0xc498,0x201f}, {0xc499,0xc499,0x4544}, {0xc49a,0xc49a,0x20c5}, {0xc49b,0xc49b,0x4545}, {0xc49c,0xc49c,0x24ca}, {0xc49d,0xc4a0,0x4546}, {0xc4a1,0xc4fe,0xb04}, {0xc540,0xc543,0x454a}, {0xc544,0xc544,0x1ff0}, {0xc545,0xc545,0x454e}, {0xc546,0xc546,0x24c6}, {0xc547,0xc54a,0x454f}, {0xc54b,0xc54b,0x225d}, {0xc54c,0xc54c,0x22de}, {0xc54d,0xc551,0x4553}, {0xc552,0xc552,0x202c}, {0xc553,0xc55e,0x4558}, {0xc55f,0xc55f,0x2161}, {0xc560,0xc562,0x4564}, {0xc563,0xc563,0x223b}, {0xc564,0xc564,0x21d9}, {0xc565,0xc565,0x1fcb}, {0xc566,0xc566,0x1fc9}, {0xc567,0xc57e,0x4567}, {0xc580,0xc592,0x457f}, {0xc593,0xc593,0x1e61}, {0xc594,0xc59b,0x4592}, {0xc59c,0xc59c,0x25ef}, {0xc59d,0xc59d,0x459a}, {0xc59e,0xc59e,0x1f98}, {0xc59f,0xc5a0,0x459b}, {0xc5a1,0xc5fe,0xb62}, {0xc640,0xc640,0x459d}, {0xc641,0xc641,0x25f0}, {0xc642,0xc643,0x459e}, {0xc644,0xc644,0x1f88}, {0xc645,0xc646,0x45a0}, {0xc647,0xc647,0x21f8}, {0xc648,0xc662,0x45a2}, {0xc663,0xc663,0x2322}, {0xc664,0xc671,0x45bd}, {0xc672,0xc672,0x2336}, {0xc673,0xc67e,0x45cb}, {0xc680,0xc6a0,0x45d7}, {0xc6a1,0xc6fe,0xbc0}, {0xc740,0xc765,0x45f8}, {0xc766,0xc766,0x22ab}, {0xc767,0xc76e,0x461e}, {0xc76f,0xc76f,0x1fbf}, {0xc770,0xc775,0x4626}, {0xc776,0xc776,0x1f7d}, {0xc777,0xc77a,0x462c}, {0xc77b,0xc77b,0x2333}, {0xc77c,0xc77e,0x4630}, {0xc780,0xc7a0,0x4633}, {0xc7a1,0xc7fe,0xc1e}, {0xc840,0xc840,0x4654}, {0xc841,0xc841,0x1f4d}, {0xc842,0xc84e,0x4655}, {0xc84f,0xc84f,0x2334}, {0xc850,0xc851,0x4662}, {0xc852,0xc852,0x1ff1}, {0xc853,0xc865,0x4664}, {0xc866,0xc866,0x218b}, {0xc867,0xc86d,0x4677}, {0xc86e,0xc86e,0x2349}, {0xc86f,0xc87d,0x467e}, {0xc87e,0xc87e,0x220b}, {0xc880,0xc886,0x468d}, {0xc887,0xc887,0x2346}, {0xc888,0xc891,0x4694}, {0xc892,0xc892,0x2347}, {0xc893,0xc893,0x469e}, {0xc894,0xc894,0x2193}, {0xc895,0xc898,0x469f}, {0xc899,0xc899,0x26a1}, {0xc89a,0xc89c,0x46a3}, {0xc89d,0xc89d,0x1f62}, {0xc89e,0xc8a0,0x46a6}, {0xc8a1,0xc8fe,0xc7c}, {0xc940,0xc94e,0x46a9}, {0xc94f,0xc94f,0x234d}, {0xc950,0xc950,0x2348}, {0xc951,0xc96d,0x46b8}, {0xc96e,0xc96e,0x1e60}, {0xc96f,0xc96f,0x46d5}, {0xc970,0xc970,0x2345}, {0xc971,0xc976,0x46d6}, {0xc977,0xc977,0x1f12}, {0xc978,0xc97e,0x46dc}, {0xc980,0xc98e,0x46e3}, {0xc98f,0xc98f,0x2018}, {0xc990,0xc990,0x2335}, {0xc991,0xc99b,0x46f2}, {0xc99c,0xc99c,0x233c}, {0xc99d,0xc9a0,0x46fd}, {0xc9a1,0xc9fe,0xcda}, {0xca40,0xca4d,0x4701}, {0xca4e,0xca4e,0x266f}, {0xca4f,0xca55,0x470f}, {0xca56,0xca56,0x2351}, {0xca57,0xca58,0x4716}, {0xca59,0xca59,0x1fa0}, {0xca5a,0xca5b,0x4718}, {0xca5c,0xca5c,0x2338}, {0xca5d,0xca60,0x471a}, {0xca61,0xca61,0x221b}, {0xca62,0xca6d,0x471e}, {0xca6e,0xca6e,0x2342}, {0xca6f,0xca71,0x472a}, {0xca72,0xca72,0x234f}, {0xca73,0xca76,0x472d}, {0xca77,0xca77,0x233d}, {0xca78,0xca7a,0x4731}, {0xca7b,0xca7b,0x2344}, {0xca7c,0xca7c,0x2331}, {0xca7d,0xca7d,0x4734}, {0xca7e,0xca7e,0x234b}, {0xca80,0xca80,0x4735}, {0xca81,0xca81,0x233b}, {0xca82,0xca88,0x4736}, {0xca89,0xca89,0x2350}, {0xca8a,0xca8d,0x473d}, {0xca8e,0xca8e,0x1eb4}, {0xca8f,0xca8f,0x21a6}, {0xca90,0xca91,0x4741}, {0xca92,0xca92,0x21cb}, {0xca93,0xca99,0x4743}, {0xca9a,0xca9a,0x2355}, {0xca9b,0xcaa0,0x474a}, {0xcaa1,0xcafe,0xd38}, {0xcb40,0xcb42,0x4750}, {0xcb43,0xcb43,0x233e}, {0xcb44,0xcb44,0x4753}, {0xcb45,0xcb45,0x1f74}, {0xcb46,0xcb46,0x4754}, {0xcb47,0xcb47,0x2330}, {0xcb48,0xcb4a,0x4755}, {0xcb4b,0xcb4b,0x2680}, {0xcb4c,0xcb4d,0x4758}, {0xcb4e,0xcb4e,0x20da}, {0xcb4f,0xcb56,0x475a}, {0xcb57,0xcb57,0x234a}, {0xcb58,0xcb5c,0x4762}, {0xcb5d,0xcb5d,0x1f91}, {0xcb5e,0xcb5e,0x4767}, {0xcb5f,0xcb5f,0x2107}, {0xcb60,0xcb69,0x4768}, {0xcb6a,0xcb6a,0x233f}, {0xcb6b,0xcb7a,0x4772}, {0xcb7b,0xcb7b,0x1ff4}, {0xcb7c,0xcb7c,0x2343}, {0xcb7d,0xcb7e,0x4782}, {0xcb80,0xcb86,0x4784}, {0xcb87,0xcb87,0x2212}, {0xcb88,0xcb8d,0x478b}, {0xcb8e,0xcb8e,0x2207}, {0xcb8f,0xcb91,0x4791}, {0xcb92,0xcb92,0x2359}, {0xcb93,0xcb9b,0x4794}, {0xcb9c,0xcb9c,0x2254}, {0xcb9d,0xcb9d,0x479d}, {0xcb9e,0xcb9e,0x2332}, {0xcb9f,0xcba0,0x479e}, {0xcba1,0xcbfe,0xd96}, {0xcc40,0xcc40,0x1e26}, {0xcc41,0xcc41,0x2357}, {0xcc42,0xcc48,0x47a0}, {0xcc49,0xcc49,0x2358}, {0xcc4a,0xcc4a,0x2042}, {0xcc4b,0xcc4b,0x2153}, {0xcc4c,0xcc4e,0x47a7}, {0xcc4f,0xcc4f,0x20bb}, {0xcc50,0xcc5b,0x47aa}, {0xcc5c,0xcc5c,0x235a}, {0xcc5d,0xcc5f,0x47b6}, {0xcc60,0xcc60,0x2356}, {0xcc61,0xcc63,0x47b9}, {0xcc64,0xcc64,0x2337}, {0xcc65,0xcc6c,0x47bc}, {0xcc6d,0xcc6d,0x1ff9}, {0xcc6e,0xcc78,0x47c4}, {0xcc79,0xcc79,0x2353}, {0xcc7a,0xcc7c,0x47cf}, {0xcc7d,0xcc7d,0x2061}, {0xcc7e,0xcc7e,0x47d2}, {0xcc80,0xcc8d,0x47d3}, {0xcc8e,0xcc8e,0x1e95}, {0xcc8f,0xcc93,0x47e1}, {0xcc94,0xcc94,0x2049}, {0xcc95,0xcc95,0x47e6}, {0xcc96,0xcc96,0x1f42}, {0xcc97,0xcc9c,0x47e7}, {0xcc9d,0xcc9d,0x1fe8}, {0xcc9e,0xcca0,0x47ed}, {0xcca1,0xccfe,0xdf4}, {0xcd40,0xcd7e,0x47f0}, {0xcd80,0xcd8f,0x482f}, {0xcd90,0xcd90,0x25da}, {0xcd91,0xcd97,0x483f}, {0xcd98,0xcd98,0x25d7}, {0xcd99,0xcda0,0x4846}, {0xcda1,0xcdfe,0xe52}, {0xce40,0xce66,0x484e}, {0xce67,0xce67,0x212e}, {0xce68,0xce71,0x4875}, {0xce72,0xce72,0x21b2}, {0xce73,0xce7e,0x487f}, {0xce80,0xce80,0x488b}, {0xce81,0xce81,0x219e}, {0xce82,0xce86,0x488c}, {0xce87,0xce87,0x25dc}, {0xce88,0xce9a,0x4891}, {0xce9b,0xce9b,0x206c}, {0xce9c,0xce9d,0x48a4}, {0xce9e,0xce9e,0x2226}, {0xce9f,0xcea0,0x48a6}, {0xcea1,0xcefe,0xeb0}, {0xcf40,0xcf4d,0x48a8}, {0xcf4e,0xcf4e,0x25e0}, {0xcf4f,0xcf54,0x48b6}, {0xcf55,0xcf55,0x227b}, {0xcf56,0xcf57,0x48bc}, {0xcf58,0xcf58,0x25de}, {0xcf59,0xcf5b,0x48be}, {0xcf5c,0xcf5c,0x25e1}, {0xcf5d,0xcf6b,0x48c1}, {0xcf6c,0xcf6c,0x25d5}, {0xcf6d,0xcf72,0x48d0}, {0xcf73,0xcf73,0x1e6b}, {0xcf74,0xcf74,0x48d6}, {0xcf75,0xcf75,0x25db}, {0xcf76,0xcf77,0x48d7}, {0xcf78,0xcf78,0x1e89}, {0xcf79,0xcf7b,0x48d9}, {0xcf7c,0xcf7c,0x25d9}, {0xcf7d,0xcf7e,0x48dc}, {0xcf80,0xcf80,0x48de}, {0xcf81,0xcf81,0x2211}, {0xcf82,0xcf88,0x48df}, {0xcf89,0xcf89,0x2229}, {0xcf8a,0xcf8a,0x25d6}, {0xcf8b,0xcf92,0x48e6}, {0xcf93,0xcf93,0x25dd}, {0xcf94,0xcf94,0x25df}, {0xcf95,0xcf9d,0x48ee}, {0xcf9e,0xcf9e,0x1fef}, {0xcf9f,0xcf9f,0x48f7}, {0xcfa0,0xcfa0,0x25d8}, {0xcfa1,0xcffe,0xf0e}, {0xd040,0xd04c,0x48f8}, {0xd04d,0xd04d,0x1f29}, {0xd04e,0xd050,0x4905}, {0xd051,0xd051,0x1e5b}, {0xd052,0xd054,0x4908}, {0xd055,0xd055,0x2076}, {0xd056,0xd05b,0x490b}, {0xd05c,0xd05c,0x2297}, {0xd05d,0xd05f,0x4911}, {0xd060,0xd060,0x2690}, {0xd061,0xd066,0x4914}, {0xd067,0xd067,0x213f}, {0xd068,0xd06b,0x491a}, {0xd06c,0xd06c,0x2198}, {0xd06d,0xd06d,0x491e}, {0xd06e,0xd06e,0x1e88}, {0xd06f,0xd07c,0x491f}, {0xd07d,0xd07d,0x228c}, {0xd07e,0xd07e,0x492d}, {0xd080,0xd0a0,0x492e}, {0xd0a1,0xd0fe,0xf6c}, {0xd140,0xd154,0x494f}, {0xd155,0xd155,0x25f1}, {0xd156,0xd158,0x4964}, {0xd159,0xd159,0x200c}, {0xd15a,0xd160,0x4967}, {0xd161,0xd161,0x1e58}, {0xd162,0xd162,0x22ac}, {0xd163,0xd174,0x496e}, {0xd175,0xd175,0x26a7}, {0xd176,0xd17c,0x4980}, {0xd17d,0xd17d,0x2676}, {0xd17e,0xd17e,0x4987}, {0xd180,0xd19c,0x4988}, {0xd19d,0xd19d,0x1fe1}, {0xd19e,0xd19e,0x25bb}, {0xd19f,0xd1a0,0x49a5}, {0xd1a1,0xd1fe,0xfca}, {0xd240,0xd240,0x25be}, {0xd241,0xd242,0x49a7}, {0xd243,0xd243,0x22dd}, {0xd244,0xd24c,0x49a9}, {0xd24d,0xd24d,0x25bd}, {0xd24e,0xd25b,0x49b2}, {0xd25c,0xd25c,0x1e2a}, {0xd25d,0xd262,0x49c0}, {0xd263,0xd263,0x25bc}, {0xd264,0xd264,0x25ba}, {0xd265,0xd267,0x49c6}, {0xd268,0xd268,0x25bf}, {0xd269,0xd26c,0x49c9}, {0xd26d,0xd26d,0x2187}, {0xd26e,0xd26e,0x49cd}, {0xd26f,0xd26f,0x266b}, {0xd270,0xd271,0x49ce}, {0xd272,0xd272,0x1e7f}, {0xd273,0xd274,0x49d0}, {0xd275,0xd275,0x21ad}, {0xd276,0xd27e,0x49d2}, {0xd280,0xd289,0x49db}, {0xd28a,0xd28a,0x1f96}, {0xd28b,0xd28d,0x49e5}, {0xd28e,0xd28e,0x1f32}, {0xd28f,0xd291,0x49e8}, {0xd292,0xd292,0x2084}, {0xd293,0xd294,0x49eb}, {0xd295,0xd295,0x2136}, {0xd296,0xd296,0x49ed}, {0xd297,0xd297,0x24b8}, {0xd298,0xd29f,0x49ee}, {0xd2a0,0xd2a0,0x24ba}, {0xd2a1,0xd2fe,0x1028}, {0xd340,0xd343,0x49f6}, {0xd344,0xd344,0x24bc}, {0xd345,0xd347,0x49fa}, {0xd348,0xd348,0x20e4}, {0xd349,0xd349,0x49fd}, {0xd34a,0xd34a,0x24b9}, {0xd34b,0xd34c,0x49fe}, {0xd34d,0xd34d,0x24bd}, {0xd34e,0xd34f,0x4a00}, {0xd350,0xd350,0x24be}, {0xd351,0xd354,0x4a02}, {0xd355,0xd355,0x24bf}, {0xd356,0xd357,0x4a06}, {0xd358,0xd358,0x1fd2}, {0xd359,0xd35a,0x4a08}, {0xd35b,0xd35b,0x1ffd}, {0xd35c,0xd35c,0x4a0a}, {0xd35d,0xd35d,0x24bb}, {0xd35e,0xd35e,0x1f2d}, {0xd35f,0xd377,0x4a0b}, {0xd378,0xd378,0x2609}, {0xd379,0xd379,0x4a24}, {0xd37a,0xd37a,0x260a}, {0xd37b,0xd37b,0x4a25}, {0xd37c,0xd37c,0x1e94}, {0xd37d,0xd37e,0x4a26}, {0xd380,0xd384,0x4a28}, {0xd385,0xd385,0x22df}, {0xd386,0xd386,0x1ecb}, {0xd387,0xd387,0x1f0d}, {0xd388,0xd38a,0x4a2d}, {0xd38b,0xd38b,0x1f77}, {0xd38c,0xd38c,0x4a30}, {0xd38d,0xd38d,0x21eb}, {0xd38e,0xd38e,0x4a31}, {0xd38f,0xd38f,0x22e1}, {0xd390,0xd390,0x4a32}, {0xd391,0xd391,0x216f}, {0xd392,0xd392,0x4a33}, {0xd393,0xd393,0x22e0}, {0xd394,0xd395,0x4a34}, {0xd396,0xd396,0x21ea}, {0xd397,0xd397,0x4a36}, {0xd398,0xd398,0x22e2}, {0xd399,0xd399,0x20cb}, {0xd39a,0xd39a,0x4a37}, {0xd39b,0xd39b,0x1f78}, {0xd39c,0xd39d,0x4a38}, {0xd39e,0xd39e,0x1ee2}, {0xd39f,0xd39f,0x4a3a}, {0xd3a0,0xd3a0,0x21f2}, {0xd3a1,0xd3fe,0x1086}, {0xd440,0xd440,0x4a3b}, {0xd441,0xd441,0x2150}, {0xd442,0xd444,0x4a3c}, {0xd445,0xd445,0x1fd3}, {0xd446,0xd446,0x4a3f}, {0xd447,0xd447,0x22e5}, {0xd448,0xd44b,0x4a40}, {0xd44c,0xd44c,0x1ef2}, {0xd44d,0xd44e,0x4a44}, {0xd44f,0xd44f,0x211f}, {0xd450,0xd452,0x4a46}, {0xd453,0xd453,0x21dd}, {0xd454,0xd455,0x4a49}, {0xd456,0xd456,0x2154}, {0xd457,0xd457,0x4a4b}, {0xd458,0xd458,0x22e7}, {0xd459,0xd45b,0x4a4c}, {0xd45c,0xd45c,0x2282}, {0xd45d,0xd461,0x4a4f}, {0xd462,0xd462,0x22e6}, {0xd463,0xd466,0x4a54}, {0xd467,0xd467,0x22e8}, {0xd468,0xd46d,0x4a58}, {0xd46e,0xd46e,0x22e4}, {0xd46f,0xd46f,0x4a5e}, {0xd470,0xd470,0x226a}, {0xd471,0xd471,0x4a5f}, {0xd472,0xd472,0x22eb}, {0xd473,0xd473,0x4a60}, {0xd474,0xd474,0x22e9}, {0xd475,0xd475,0x20bd}, {0xd476,0xd477,0x4a61}, {0xd478,0xd478,0x22ea}, {0xd479,0xd47a,0x4a63}, {0xd47b,0xd47b,0x22bd}, {0xd47c,0xd47d,0x4a65}, {0xd47e,0xd47e,0x1e9e}, {0xd480,0xd481,0x4a67}, {0xd482,0xd482,0x22f6}, {0xd483,0xd483,0x21e7}, {0xd484,0xd484,0x2216}, {0xd485,0xd486,0x4a69}, {0xd487,0xd487,0x2137}, {0xd488,0xd489,0x4a6b}, {0xd48a,0xd48a,0x212c}, {0xd48b,0xd48b,0x4a6d}, {0xd48c,0xd48c,0x1e68}, {0xd48d,0xd48d,0x22f2}, {0xd48e,0xd48e,0x1f37}, {0xd48f,0xd48f,0x22f3}, {0xd490,0xd490,0x4a6e}, {0xd491,0xd491,0x22ef}, {0xd492,0xd492,0x1f50}, {0xd493,0xd493,0x1f10}, {0xd494,0xd494,0x21c8}, {0xd495,0xd495,0x4a6f}, {0xd496,0xd496,0x22f1}, {0xd497,0xd49b,0x4a70}, {0xd49c,0xd49c,0x22f0}, {0xd49d,0xd49e,0x4a75}, {0xd49f,0xd49f,0x22ee}, {0xd4a0,0xd4a0,0x4a77}, {0xd4a1,0xd4fe,0x10e4}, {0xd540,0xd542,0x4a78}, {0xd543,0xd543,0x22ed}, {0xd544,0xd544,0x229e}, {0xd545,0xd545,0x22ec}, {0xd546,0xd546,0x1fe2}, {0xd547,0xd549,0x4a7b}, {0xd54a,0xd54a,0x20fe}, {0xd54b,0xd54d,0x4a7e}, {0xd54e,0xd54f,0x22f9}, {0xd550,0xd550,0x4a81}, {0xd551,0xd551,0x1eaf}, {0xd552,0xd553,0x4a82}, {0xd554,0xd554,0x2236}, {0xd555,0xd555,0x4a84}, {0xd556,0xd556,0x22f7}, {0xd557,0xd559,0x4a85}, {0xd55a,0xd55a,0x223d}, {0xd55b,0xd55b,0x4a88}, {0xd55c,0xd55c,0x1e82}, {0xd55d,0xd55d,0x1fb6}, {0xd55e,0xd55e,0x4a89}, {0xd55f,0xd55f,0x21a4}, {0xd560,0xd560,0x21aa}, {0xd561,0xd561,0x22f8}, {0xd562,0xd562,0x2151}, {0xd563,0xd563,0x4a8a}, {0xd564,0xd564,0x1f60}, {0xd565,0xd567,0x4a8b}, {0xd568,0xd568,0x2147}, {0xd569,0xd56b,0x4a8e}, {0xd56c,0xd56c,0x2145}, {0xd56d,0xd56d,0x4a91}, {0xd56e,0xd56e,0x1fdc}, {0xd56f,0xd571,0x4a92}, {0xd572,0xd572,0x2301}, {0xd573,0xd574,0x4a95}, {0xd575,0xd575,0x1ef5}, {0xd576,0xd577,0x4a97}, {0xd578,0xd578,0x2218}, {0xd579,0xd57a,0x4a99}, {0xd57b,0xd57b,0x1ec6}, {0xd57c,0xd57d,0x4a9b}, {0xd57e,0xd57e,0x2300}, {0xd580,0xd580,0x4a9d}, {0xd581,0xd581,0x22b4}, {0xd582,0xd583,0x4a9e}, {0xd584,0xd584,0x2169}, {0xd585,0xd585,0x4aa0}, {0xd586,0xd586,0x22fd}, {0xd587,0xd587,0x4aa1}, {0xd588,0xd588,0x20ea}, {0xd589,0xd589,0x4aa2}, {0xd58a,0xd58a,0x22f4}, {0xd58b,0xd58b,0x4aa3}, {0xd58c,0xd58c,0x22fb}, {0xd58d,0xd58d,0x4aa4}, {0xd58e,0xd58e,0x22fc}, {0xd58f,0xd58f,0x2027}, {0xd590,0xd592,0x4aa5}, {0xd593,0xd593,0x2060}, {0xd594,0xd594,0x22ff}, {0xd595,0xd597,0x4aa8}, {0xd598,0xd598,0x22fe}, {0xd599,0xd599,0x1ec7}, {0xd59a,0xd59a,0x4aab}, {0xd59b,0xd59b,0x230c}, {0xd59c,0xd59e,0x4aac}, {0xd59f,0xd59f,0x22f5}, {0xd5a0,0xd5a0,0x4aaf}, {0xd5a1,0xd5fe,0x1142}, {0xd640,0xd640,0x2306}, {0xd641,0xd641,0x4ab0}, {0xd642,0xd642,0x230a}, {0xd643,0xd643,0x21d3}, {0xd644,0xd646,0x4ab1}, {0xd647,0xd647,0x2303}, {0xd648,0xd648,0x4ab4}, {0xd649,0xd649,0x2307}, {0xd64a,0xd64a,0x230b}, {0xd64b,0xd64c,0x4ab5}, {0xd64d,0xd64d,0x1f5f}, {0xd64e,0xd64e,0x4ab7}, {0xd64f,0xd64f,0x2309}, {0xd650,0xd651,0x4ab8}, {0xd652,0xd652,0x2302}, {0xd653,0xd653,0x1f04}, {0xd654,0xd654,0x229d}, {0xd655,0xd655,0x4aba}, {0xd656,0xd656,0x21fb}, {0xd657,0xd657,0x4abb}, {0xd658,0xd658,0x2308}, {0xd659,0xd659,0x4abc}, {0xd65a,0xd65a,0x20ac}, {0xd65b,0xd65b,0x4abd}, {0xd65c,0xd65c,0x208e}, {0xd65d,0xd65d,0x2305}, {0xd65e,0xd65e,0x2197}, {0xd65f,0xd65f,0x4abe}, {0xd660,0xd660,0x2171}, {0xd661,0xd661,0x2298}, {0xd662,0xd664,0x4abf}, {0xd665,0xd665,0x1f57}, {0xd666,0xd668,0x4ac2}, {0xd669,0xd669,0x2082}, {0xd66a,0xd66a,0x4ac5}, {0xd66b,0xd66b,0x2311}, {0xd66c,0xd66e,0x4ac6}, {0xd66f,0xd66f,0x2304}, {0xd670,0xd670,0x4ac9}, {0xd671,0xd671,0x230f}, {0xd672,0xd672,0x1e35}, {0xd673,0xd673,0x4aca}, {0xd674,0xd674,0x20d1}, {0xd675,0xd675,0x2310}, {0xd676,0xd676,0x1fa3}, {0xd677,0xd677,0x4acb}, {0xd678,0xd678,0x21d6}, {0xd679,0xd67b,0x4acc}, {0xd67c,0xd67c,0x2206}, {0xd67d,0xd67e,0x4acf}, {0xd680,0xd682,0x4ad1}, {0xd683,0xd683,0x230d}, {0xd684,0xd685,0x4ad4}, {0xd686,0xd686,0x2312}, {0xd687,0xd687,0x208d}, {0xd688,0xd688,0x2313}, {0xd689,0xd68d,0x4ad6}, {0xd68e,0xd68e,0x22e3}, {0xd68f,0xd693,0x4adb}, {0xd694,0xd694,0x1fba}, {0xd695,0xd698,0x4ae0}, {0xd699,0xd699,0x2078}, {0xd69a,0xd6a0,0x4ae4}, {0xd6a1,0xd6fe,0x11a0}, {0xd740,0xd742,0x4aeb}, {0xd743,0xd743,0x2288}, {0xd744,0xd747,0x4aee}, {0xd748,0xd748,0x2316}, {0xd749,0xd749,0x1f6b}, {0xd74a,0xd74f,0x4af2}, {0xd750,0xd750,0x2314}, {0xd751,0xd751,0x4af8}, {0xd752,0xd752,0x2130}, {0xd753,0xd753,0x2315}, {0xd754,0xd754,0x2168}, {0xd755,0xd755,0x4af9}, {0xd756,0xd756,0x20c4}, {0xd757,0xd763,0x4afa}, {0xd764,0xd764,0x2318}, {0xd765,0xd766,0x4b07}, {0xd767,0xd767,0x2219}, {0xd768,0xd768,0x2217}, {0xd769,0xd76b,0x4b09}, {0xd76c,0xd76c,0x20d5}, {0xd76d,0xd76e,0x4b0c}, {0xd76f,0xd76f,0x1f4a}, {0xd770,0xd774,0x4b0e}, {0xd775,0xd775,0x2240}, {0xd776,0xd777,0x4b13}, {0xd778,0xd778,0x1ed3}, {0xd779,0xd77e,0x4b15}, {0xd780,0xd782,0x4b1b}, {0xd783,0xd783,0x1e49}, {0xd784,0xd786,0x4b1e}, {0xd787,0xd787,0x261b}, {0xd788,0xd78a,0x4b21}, {0xd78b,0xd78b,0x1e6d}, {0xd78c,0xd78c,0x20f8}, {0xd78d,0xd78d,0x4b24}, {0xd78e,0xd78e,0x1ffb}, {0xd78f,0xd78f,0x2319}, {0xd790,0xd794,0x4b25}, {0xd795,0xd795,0x230e}, {0xd796,0xd796,0x4b2a}, {0xd797,0xd797,0x2317}, {0xd798,0xd7a0,0x4b2b}, {0xd7a1,0xd7f9,0x11fe}, {0xd840,0xd84c,0x4b34}, {0xd84d,0xd84d,0x20c8}, {0xd84e,0xd852,0x4b41}, {0xd853,0xd853,0x1efd}, {0xd854,0xd87e,0x4b46}, {0xd880,0xd88f,0x4b71}, {0xd890,0xd890,0x1e3b}, {0xd891,0xd891,0x227f}, {0xd892,0xd892,0x4b81}, {0xd893,0xd893,0x1f0c}, {0xd894,0xd894,0x1e59}, {0xd895,0xd895,0x1f24}, {0xd896,0xd899,0x4b82}, {0xd89a,0xd89a,0x20ba}, {0xd89b,0xd89b,0x1f65}, {0xd89c,0xd89c,0x1ef0}, {0xd89d,0xd89d,0x2164}, {0xd89e,0xd89e,0x1f30}, {0xd89f,0xd89f,0x2261}, {0xd8a0,0xd8a0,0x4b86}, {0xd8a1,0xd8fe,0x1257}, {0xd940,0xd940,0x4b87}, {0xd941,0xd941,0x22a2}, {0xd942,0xd942,0x24ab}, {0xd943,0xd943,0x4b88}, {0xd944,0xd944,0x24af}, {0xd945,0xd945,0x1ee8}, {0xd946,0xd946,0x1f39}, {0xd947,0xd947,0x4b89}, {0xd948,0xd948,0x1e48}, {0xd949,0xd949,0x2070}, {0xd94a,0xd94a,0x1ea8}, {0xd94b,0xd94b,0x4b8a}, {0xd94c,0xd94c,0x24ac}, {0xd94d,0xd94d,0x1ef7}, {0xd94e,0xd94e,0x2176}, {0xd94f,0xd94f,0x24ad}, {0xd950,0xd950,0x4b8b}, {0xd951,0xd951,0x207b}, {0xd952,0xd952,0x1f45}, {0xd953,0xd953,0x24aa}, {0xd954,0xd954,0x204b}, {0xd955,0xd955,0x202f}, {0xd956,0xd956,0x1f5a}, {0xd957,0xd957,0x24b0}, {0xd958,0xd958,0x4b8c}, {0xd959,0xd959,0x22b7}, {0xd95a,0xd95a,0x1f7f}, {0xd95b,0xd95b,0x4b8d}, {0xd95c,0xd95c,0x2265}, {0xd95d,0xd962,0x4b8e}, {0xd963,0xd963,0x24b2}, {0xd964,0xd964,0x211b}, {0xd965,0xd965,0x1e51}, {0xd966,0xd966,0x4b94}, {0xd967,0xd967,0x24b4}, {0xd968,0xd96b,0x4b95}, {0xd96c,0xd96c,0x24b3}, {0xd96d,0xd96d,0x4b99}, {0xd96e,0xd96e,0x1e9f}, {0xd96f,0xd96f,0x4b9a}, {0xd970,0xd970,0x2118}, {0xd971,0xd971,0x4b9b}, {0xd972,0xd972,0x20b4}, {0xd973,0xd973,0x23af}, {0xd974,0xd974,0x21bb}, {0xd975,0xd975,0x2072}, {0xd976,0xd976,0x1f95}, {0xd977,0xd977,0x4b9c}, {0xd978,0xd978,0x1f0a}, {0xd979,0xd979,0x24b6}, {0xd97a,0xd97b,0x4b9d}, {0xd97c,0xd97c,0x2291}, {0xd97d,0xd97d,0x24b5}, {0xd97e,0xd97e,0x2278}, {0xd980,0xd980,0x1ed4}, {0xd981,0xd986,0x4b9f}, {0xd987,0xd987,0x1ff3}, {0xd988,0xd98c,0x4ba5}, {0xd98d,0xd98d,0x22a9}, {0xd98e,0xd98e,0x24b7}, {0xd98f,0xd98f,0x1f28}, {0xd990,0xd990,0x2109}, {0xd991,0xd991,0x22c7}, {0xd992,0xd996,0x4baa}, {0xd997,0xd997,0x24ae}, {0xd998,0xd998,0x22b1}, {0xd999,0xd99a,0x4baf}, {0xd99b,0xd99b,0x2266}, {0xd99c,0xd99c,0x4bb1}, {0xd99d,0xd99d,0x225b}, {0xd99e,0xd99e,0x22c4}, {0xd99f,0xd99f,0x4bb2}, {0xd9a0,0xd9a0,0x2115}, {0xd9a1,0xd9fe,0x12b5}, {0xda40,0xda40,0x4bb3}, {0xda41,0xda41,0x222a}, {0xda42,0xda42,0x24b1}, {0xda43,0xda47,0x4bb4}, {0xda48,0xda48,0x213d}, {0xda49,0xda4c,0x4bb9}, {0xda4d,0xda4d,0x1f15}, {0xda4e,0xda4e,0x225c}, {0xda4f,0xda72,0x4bbd}, {0xda73,0xda73,0x1f14}, {0xda74,0xda76,0x4be1}, {0xda77,0xda77,0x227a}, {0xda78,0xda7e,0x4be4}, {0xda80,0xda84,0x4beb}, {0xda85,0xda85,0x20ee}, {0xda86,0xda8d,0x4bf0}, {0xda8e,0xda8e,0x25f8}, {0xda8f,0xdaa0,0x4bf8}, {0xdaa1,0xdafe,0x1313}, {0xdb40,0xdb5f,0x4c0a}, {0xdb60,0xdb60,0x1f94}, {0xdb61,0xdb77,0x4c2a}, {0xdb78,0xdb78,0x2230}, {0xdb79,0xdb7e,0x4c41}, {0xdb80,0xdb83,0x4c47}, {0xdb84,0xdb84,0x25fd}, {0xdb85,0xdb8a,0x4c4b}, {0xdb8b,0xdb8b,0x2600}, {0xdb8c,0xdb97,0x4c51}, {0xdb98,0xdb98,0x2606}, {0xdb99,0xdba0,0x4c5d}, {0xdba1,0xdbfe,0x1371}, {0xdc40,0xdc44,0x4c65}, {0xdc45,0xdc45,0x25ff}, {0xdc46,0xdc4e,0x4c6a}, {0xdc4f,0xdc4f,0x25fc}, {0xdc50,0xdc50,0x1e8c}, {0xdc51,0xdc51,0x2602}, {0xdc52,0xdc52,0x4c73}, {0xdc53,0xdc53,0x224d}, {0xdc54,0xdc54,0x4c74}, {0xdc55,0xdc55,0x2604}, {0xdc56,0xdc56,0x25fe}, {0xdc57,0xdc57,0x2603}, {0xdc58,0xdc5c,0x4c75}, {0xdc5d,0xdc5d,0x2601}, {0xdc5e,0xdc61,0x4c7a}, {0xdc62,0xdc62,0x2605}, {0xdc63,0xdc65,0x4c7e}, {0xdc66,0xdc66,0x1ea3}, {0xdc67,0xdc67,0x2608}, {0xdc68,0xdc6a,0x4c81}, {0xdc6b,0xdc6b,0x2607}, {0xdc6c,0xdc7b,0x4c84}, {0xdc7c,0xdc7c,0x20f0}, {0xdc7d,0xdc7e,0x4c94}, {0xdc80,0xdc86,0x4c96}, {0xdc87,0xdc87,0x1e7b}, {0xdc88,0xdc88,0x2267}, {0xdc89,0xdc89,0x1f36}, {0xdc8a,0xdc8a,0x1fd6}, {0xdc8b,0xdc8d,0x4c9d}, {0xdc8e,0xdc8e,0x21e0}, {0xdc8f,0xdc8f,0x4ca0}, {0xdc90,0xdc90,0x248c}, {0xdc91,0xdc96,0x4ca1}, {0xdc97,0xdc97,0x248d}, {0xdc98,0xdc9a,0x4ca7}, {0xdc9b,0xdc9b,0x2102}, {0xdc9c,0xdc9f,0x4caa}, {0xdca0,0xdca0,0x2494}, {0xdca1,0xdcfe,0x13cf}, {0xdd40,0xdd45,0x4cae}, {0xdd46,0xdd46,0x2493}, {0xdd47,0xdd4c,0x4cb4}, {0xdd4d,0xdd4d,0x248e}, {0xdd4e,0xdd52,0x4cba}, {0xdd53,0xdd53,0x2299}, {0xdd54,0xdd54,0x2491}, {0xdd55,0xdd55,0x2496}, {0xdd56,0xdd56,0x248f}, {0xdd57,0xdd57,0x2492}, {0xdd58,0xdd58,0x4cbf}, {0xdd59,0xdd59,0x2497}, {0xdd5a,0xdd5d,0x4cc0}, {0xdd5e,0xdd5e,0x1fb1}, {0xdd5f,0xdd5f,0x4cc4}, {0xdd60,0xdd60,0x249a}, {0xdd61,0xdd61,0x4cc5}, {0xdd62,0xdd62,0x2499}, {0xdd63,0xdd63,0x4cc6}, {0xdd64,0xdd64,0x2258}, {0xdd65,0xdd65,0x2498}, {0xdd66,0xdd6c,0x4cc7}, {0xdd6d,0xdd6d,0x249b}, {0xdd6e,0xdd6e,0x4cce}, {0xdd6f,0xdd6f,0x1f09}, {0xdd70,0xdd70,0x20e6}, {0xdd71,0xdd75,0x4ccf}, {0xdd76,0xdd76,0x2026}, {0xdd77,0xdd77,0x249f}, {0xdd78,0xdd78,0x1f59}, {0xdd79,0xdd7a,0x249d}, {0xdd7b,0xdd7e,0x4cd4}, {0xdd80,0xdd80,0x4cd8}, {0xdd81,0xdd81,0x1f3b}, {0xdd82,0xdd82,0x249c}, {0xdd83,0xdd84,0x4cd9}, {0xdd85,0xdd85,0x1e3a}, {0xdd86,0xdd86,0x205b}, {0xdd87,0xdd8a,0x4cdb}, {0xdd8b,0xdd8b,0x1f70}, {0xdd8c,0xdd8e,0x4cdf}, {0xdd8f,0xdd8f,0x24a0}, {0xdd90,0xdd93,0x4ce2}, {0xdd94,0xdd94,0x213b}, {0xdd95,0xdd96,0x4ce6}, {0xdd97,0xdd97,0x1f07}, {0xdd98,0xdd99,0x4ce8}, {0xdd9a,0xdd9a,0x2270}, {0xdd9b,0xdd9b,0x2237}, {0xdd9c,0xdd9d,0x4cea}, {0xdd9e,0xdd9e,0x24d2}, {0xdd9f,0xdd9f,0x4cec}, {0xdda0,0xdda0,0x21b3}, {0xdda1,0xddfe,0x142d}, {0xde40,0xde40,0x2245}, {0xde41,0xde41,0x24a1}, {0xde42,0xde43,0x4ced}, {0xde44,0xde44,0x22a8}, {0xde45,0xde47,0x4cef}, {0xde48,0xde48,0x227c}, {0xde49,0xde49,0x1fb0}, {0xde4a,0xde4e,0x4cf2}, {0xde4f,0xde4f,0x24a2}, {0xde50,0xde59,0x4cf7}, {0xde5a,0xde5a,0x1f46}, {0xde5b,0xde5b,0x4d01}, {0xde5c,0xde5c,0x2380}, {0xde5d,0xde5d,0x2495}, {0xde5e,0xde5e,0x4d02}, {0xde5f,0xde5f,0x2490}, {0xde60,0xde6a,0x4d03}, {0xde6b,0xde6b,0x1e30}, {0xde6c,0xde6e,0x4d0e}, {0xde6f,0xde6f,0x1e9d}, {0xde70,0xde70,0x1e4b}, {0xde71,0xde71,0x1e4a}, {0xde72,0xde72,0x20aa}, {0xde73,0xde7e,0x4d11}, {0xde80,0xde91,0x4d1d}, {0xde92,0xde92,0x267b}, {0xde93,0xde9e,0x4d2f}, {0xde9f,0xde9f,0x23f2}, {0xdea0,0xdea0,0x4d3b}, {0xdea1,0xdefe,0x148b}, {0xdf40,0xdf40,0x227e}, {0xdf41,0xdf41,0x4d3c}, {0xdf42,0xdf42,0x2019}, {0xdf43,0xdf4c,0x4d3d}, {0xdf4d,0xdf4d,0x1fbb}, {0xdf4e,0xdf5b,0x4d47}, {0xdf5c,0xdf5c,0x2253}, {0xdf5d,0xdf5d,0x4d55}, {0xdf5e,0xdf5e,0x1f3e}, {0xdf5f,0xdf5f,0x1ea6}, {0xdf60,0xdf60,0x218e}, {0xdf61,0xdf63,0x4d56}, {0xdf64,0xdf64,0x21ec}, {0xdf65,0xdf65,0x4d59}, {0xdf66,0xdf66,0x1ebe}, {0xdf67,0xdf67,0x4d5a}, {0xdf68,0xdf68,0x224a}, {0xdf69,0xdf6c,0x4d5b}, {0xdf6d,0xdf6d,0x2133}, {0xdf6e,0xdf73,0x4d5f}, {0xdf74,0xdf74,0x1e84}, {0xdf75,0xdf76,0x4d65}, {0xdf77,0xdf77,0x20cf}, {0xdf78,0xdf78,0x21e2}, {0xdf79,0xdf79,0x4d67}, {0xdf7a,0xdf7a,0x220f}, {0xdf7b,0xdf7b,0x4d68}, {0xdf7c,0xdf7c,0x2029}, {0xdf7d,0xdf7d,0x4d69}, {0xdf7e,0xdf7e,0x2073}, {0xdf80,0xdf80,0x1f55}, {0xdf81,0xdf82,0x4d6a}, {0xdf83,0xdf83,0x23f1}, {0xdf84,0xdf84,0x4d6c}, {0xdf85,0xdf85,0x1e46}, {0xdf86,0xdf88,0x4d6d}, {0xdf89,0xdf89,0x2063}, {0xdf8a,0xdf8a,0x23f3}, {0xdf8b,0xdfa0,0x4d70}, {0xdfa1,0xdffe,0x14e9}, {0xe040,0xe04f,0x4d86}, {0xe050,0xe050,0x231e}, {0xe051,0xe05c,0x4d96}, {0xe05d,0xe05d,0x2233}, {0xe05e,0xe068,0x4da2}, {0xe069,0xe069,0x2320}, {0xe06a,0xe06b,0x4dad}, {0xe06c,0xe06c,0x21c7}, {0xe06d,0xe074,0x4daf}, {0xe075,0xe075,0x22bc}, {0xe076,0xe076,0x4db7}, {0xe077,0xe077,0x231c}, {0xe078,0xe078,0x4db8}, {0xe079,0xe079,0x2251}, {0xe07a,0xe07e,0x4db9}, {0xe080,0xe086,0x4dbe}, {0xe087,0xe087,0x1ebb}, {0xe088,0xe08c,0x4dc5}, {0xe08d,0xe08d,0x2287}, {0xe08e,0xe08e,0x4dca}, {0xe08f,0xe08f,0x202d}, {0xe090,0xe090,0x1eab}, {0xe091,0xe091,0x4dcb}, {0xe092,0xe092,0x231d}, {0xe093,0xe093,0x4dcc}, {0xe094,0xe094,0x231f}, {0xe095,0xe096,0x4dcd}, {0xe097,0xe097,0x231b}, {0xe098,0xe0a0,0x4dcf}, {0xe0a1,0xe0fe,0x1547}, {0xe140,0xe141,0x4dd8}, {0xe142,0xe142,0x2321}, {0xe143,0xe163,0x4dda}, {0xe164,0xe164,0x2255}, {0xe165,0xe167,0x4dfb}, {0xe168,0xe168,0x1e8f}, {0xe169,0xe173,0x4dfe}, {0xe174,0xe174,0x220c}, {0xe175,0xe175,0x1fa4}, {0xe176,0xe17e,0x4e09}, {0xe180,0xe183,0x4e12}, {0xe184,0xe184,0x209b}, {0xe185,0xe185,0x21d8}, {0xe186,0xe186,0x4e16}, {0xe187,0xe187,0x25fa}, {0xe188,0xe188,0x4e17}, {0xe189,0xe189,0x25f9}, {0xe18a,0xe18b,0x4e18}, {0xe18c,0xe18c,0x2134}, {0xe18d,0xe18d,0x4e1a}, {0xe18e,0xe190,0x24f3}, {0xe191,0xe191,0x24f8}, {0xe192,0xe192,0x4e1b}, {0xe193,0xe193,0x24f7}, {0xe194,0xe194,0x1ec8}, {0xe195,0xe195,0x24f6}, {0xe196,0xe197,0x4e1c}, {0xe198,0xe198,0x2280}, {0xe199,0xe19d,0x4e1e}, {0xe19e,0xe19e,0x1ec5}, {0xe19f,0xe19f,0x24fb}, {0xe1a0,0xe1a0,0x4e23}, {0xe1a1,0xe1fe,0x15a5}, {0xe240,0xe240,0x4e24}, {0xe241,0xe241,0x24fa}, {0xe242,0xe242,0x4e25}, {0xe243,0xe243,0x1eed}, {0xe244,0xe24e,0x4e26}, {0xe24f,0xe24f,0x24fd}, {0xe250,0xe250,0x4e31}, {0xe251,0xe251,0x24f9}, {0xe252,0xe252,0x4e32}, {0xe253,0xe253,0x24fe}, {0xe254,0xe254,0x20cd}, {0xe255,0xe259,0x4e33}, {0xe25a,0xe25a,0x2508}, {0xe25b,0xe25b,0x2504}, {0xe25c,0xe25d,0x4e38}, {0xe25e,0xe25e,0x2506}, {0xe25f,0xe261,0x4e3a}, {0xe262,0xe262,0x24ff}, {0xe263,0xe263,0x2090}, {0xe264,0xe266,0x4e3d}, {0xe267,0xe267,0x1edd}, {0xe268,0xe268,0x1f25}, {0xe269,0xe269,0x4e40}, {0xe26a,0xe26a,0x2503}, {0xe26b,0xe26b,0x2502}, {0xe26c,0xe26d,0x4e41}, {0xe26e,0xe26e,0x1e7a}, {0xe26f,0xe26f,0x20a6}, {0xe270,0xe277,0x4e43}, {0xe278,0xe278,0x1fd5}, {0xe279,0xe27c,0x4e4b}, {0xe27d,0xe27d,0x1f11}, {0xe27e,0xe27e,0x4e4f}, {0xe280,0xe280,0x2507}, {0xe281,0xe281,0x2500}, {0xe282,0xe282,0x2505}, {0xe283,0xe288,0x4e50}, {0xe289,0xe289,0x2519}, {0xe28a,0xe28a,0x4e56}, {0xe28b,0xe28b,0x2515}, {0xe28c,0xe28d,0x4e57}, {0xe28e,0xe28e,0x250c}, {0xe28f,0xe28f,0x2031}, {0xe290,0xe291,0x4e59}, {0xe292,0xe292,0x250b}, {0xe293,0xe293,0x250f}, {0xe294,0xe294,0x251a}, {0xe295,0xe295,0x2509}, {0xe296,0xe297,0x4e5b}, {0xe298,0xe298,0x250e}, {0xe299,0xe299,0x2234}, {0xe29a,0xe29a,0x2513}, {0xe29b,0xe29b,0x1f80}, {0xe29c,0xe29f,0x4e5d}, {0xe2a0,0xe2a0,0x2501}, {0xe2a1,0xe2fe,0x1603}, {0xe340,0xe341,0x4e61}, {0xe342,0xe342,0x2517}, {0xe343,0xe343,0x2516}, {0xe344,0xe346,0x4e63}, {0xe347,0xe347,0x2518}, {0xe348,0xe34a,0x4e66}, {0xe34b,0xe34b,0x1e56}, {0xe34c,0xe34e,0x4e69}, {0xe34f,0xe34f,0x250d}, {0xe350,0xe350,0x4e6c}, {0xe351,0xe351,0x20d3}, {0xe352,0xe353,0x4e6d}, {0xe354,0xe354,0x207a}, {0xe355,0xe355,0x20ce}, {0xe356,0xe357,0x4e6f}, {0xe358,0xe358,0x2510}, {0xe359,0xe35b,0x4e71}, {0xe35c,0xe35c,0x1e55}, {0xe35d,0xe35f,0x4e74}, {0xe360,0xe360,0x250a}, {0xe361,0xe365,0x4e77}, {0xe366,0xe367,0x2511}, {0xe368,0xe370,0x4e7c}, {0xe371,0xe371,0x1faa}, {0xe372,0xe372,0x4e85}, {0xe373,0xe373,0x251e}, {0xe374,0xe374,0x1f1f}, {0xe375,0xe377,0x4e86}, {0xe378,0xe378,0x252d}, {0xe379,0xe379,0x221d}, {0xe37a,0xe37b,0x4e89}, {0xe37c,0xe37c,0x2532}, {0xe37d,0xe37d,0x4e8b}, {0xe37e,0xe37e,0x217b}, {0xe380,0xe389,0x4e8c}, {0xe38a,0xe38a,0x21af}, {0xe38b,0xe38b,0x4e96}, {0xe38c,0xe38c,0x252c}, {0xe38d,0xe38e,0x4e97}, {0xe38f,0xe38f,0x2528}, {0xe390,0xe390,0x4e99}, {0xe391,0xe391,0x208c}, {0xe392,0xe392,0x4e9a}, {0xe393,0xe393,0x252f}, {0xe394,0xe394,0x4e9b}, {0xe395,0xe395,0x21bc}, {0xe396,0xe398,0x4e9c}, {0xe399,0xe399,0x251d}, {0xe39a,0xe39b,0x4e9f}, {0xe39c,0xe39c,0x2535}, {0xe39d,0xe39d,0x4ea1}, {0xe39e,0xe39e,0x220d}, {0xe39f,0xe39f,0x2526}, {0xe3a0,0xe3a0,0x4ea2}, {0xe3a1,0xe3fe,0x1661}, {0xe440,0xe440,0x2534}, {0xe441,0xe441,0x252a}, {0xe442,0xe442,0x251f}, {0xe443,0xe443,0x2531}, {0xe444,0xe444,0x251c}, {0xe445,0xe447,0x4ea3}, {0xe448,0xe448,0x2525}, {0xe449,0xe44d,0x4ea6}, {0xe44e,0xe44e,0x21cd}, {0xe44f,0xe44f,0x4eab}, {0xe450,0xe450,0x21da}, {0xe451,0xe451,0x4eac}, {0xe452,0xe452,0x2172}, {0xe453,0xe453,0x253e}, {0xe454,0xe457,0x4ead}, {0xe458,0xe458,0x204f}, {0xe459,0xe459,0x4eb1}, {0xe45a,0xe45a,0x2543}, {0xe45b,0xe45b,0x4eb2}, {0xe45c,0xe45c,0x21d7}, {0xe45d,0xe45d,0x4eb3}, {0xe45e,0xe45e,0x1e3c}, {0xe45f,0xe461,0x4eb4}, {0xe462,0xe462,0x2529}, {0xe463,0xe464,0x4eb7}, {0xe465,0xe465,0x2521}, {0xe466,0xe467,0x4eb9}, {0xe468,0xe468,0x1eff}, {0xe469,0xe472,0x4ebb}, {0xe473,0xe473,0x253f}, {0xe474,0xe474,0x4ec5}, {0xe475,0xe475,0x2544}, {0xe476,0xe478,0x4ec6}, {0xe479,0xe479,0x2523}, {0xe47a,0xe47a,0x1e90}, {0xe47b,0xe47b,0x253a}, {0xe47c,0xe47c,0x2545}, {0xe47d,0xe47d,0x4ec9}, {0xe47e,0xe47e,0x253d}, {0xe480,0xe480,0x4eca}, {0xe481,0xe481,0x20c1}, {0xe482,0xe483,0x4ecb}, {0xe484,0xe484,0x2103}, {0xe485,0xe485,0x2520}, {0xe486,0xe486,0x253c}, {0xe487,0xe487,0x253b}, {0xe488,0xe488,0x2538}, {0xe489,0xe48c,0x4ecd}, {0xe48d,0xe48d,0x2540}, {0xe48e,0xe48e,0x4ed1}, {0xe48f,0xe48f,0x1fcd}, {0xe490,0xe492,0x4ed2}, {0xe493,0xe493,0x1f18}, {0xe494,0xe497,0x4ed5}, {0xe498,0xe498,0x254b}, {0xe499,0xe49c,0x4ed9}, {0xe49d,0xe49d,0x2547}, {0xe49e,0xe49f,0x254f}, {0xe4a0,0xe4a0,0x4edd}, {0xe4a1,0xe4fe,0x16bf}, {0xe540,0xe545,0x4ede}, {0xe546,0xe546,0x22b0}, {0xe547,0xe547,0x4ee4}, {0xe548,0xe548,0x2546}, {0xe549,0xe54a,0x4ee5}, {0xe54b,0xe54b,0x254c}, {0xe54c,0xe54d,0x4ee7}, {0xe54e,0xe54e,0x1e9a}, {0xe54f,0xe54f,0x2552}, {0xe550,0xe550,0x2530}, {0xe551,0xe551,0x2549}, {0xe552,0xe554,0x4ee9}, {0xe555,0xe555,0x2551}, {0xe556,0xe556,0x1eca}, {0xe557,0xe557,0x4eec}, {0xe558,0xe558,0x20d2}, {0xe559,0xe55b,0x4eed}, {0xe55c,0xe55c,0x1fb8}, {0xe55d,0xe55d,0x4ef0}, {0xe55e,0xe55e,0x2079}, {0xe55f,0xe560,0x4ef1}, {0xe561,0xe561,0x21ab}, {0xe562,0xe563,0x4ef3}, {0xe564,0xe564,0x254d}, {0xe565,0xe565,0x1ea5}, {0xe566,0xe567,0x4ef5}, {0xe568,0xe568,0x204c}, {0xe569,0xe569,0x2080}, {0xe56a,0xe56b,0x4ef7}, {0xe56c,0xe56c,0x266d}, {0xe56d,0xe56d,0x4ef9}, {0xe56e,0xe56e,0x2537}, {0xe56f,0xe574,0x4efa}, {0xe575,0xe575,0x254a}, {0xe576,0xe576,0x21b8}, {0xe577,0xe577,0x4f00}, {0xe578,0xe578,0x254e}, {0xe579,0xe57a,0x4f01}, {0xe57b,0xe57b,0x24fc}, {0xe57c,0xe57c,0x2554}, {0xe57d,0xe57e,0x4f03}, {0xe580,0xe580,0x4f05}, {0xe581,0xe581,0x1f3c}, {0xe582,0xe582,0x4f06}, {0xe583,0xe583,0x1ed5}, {0xe584,0xe589,0x4f07}, {0xe58a,0xe58a,0x2556}, {0xe58b,0xe58d,0x4f0d}, {0xe58e,0xe58e,0x2268}, {0xe58f,0xe590,0x4f10}, {0xe591,0xe591,0x1ed6}, {0xe592,0xe599,0x4f12}, {0xe59a,0xe59a,0x2557}, {0xe59b,0xe59b,0x2553}, {0xe59c,0xe59e,0x4f1a}, {0xe59f,0xe59f,0x2548}, {0xe5a0,0xe5a0,0x4f1d}, {0xe5a1,0xe5fe,0x171d}, {0xe640,0xe640,0x20dc}, {0xe641,0xe643,0x4f1e}, {0xe644,0xe644,0x2559}, {0xe645,0xe648,0x4f21}, {0xe649,0xe649,0x1f97}, {0xe64a,0xe64a,0x2555}, {0xe64b,0xe64d,0x4f25}, {0xe64e,0xe64e,0x227d}, {0xe64f,0xe651,0x4f28}, {0xe652,0xe652,0x257e}, {0xe653,0xe655,0x4f2b}, {0xe656,0xe656,0x207c}, {0xe657,0xe657,0x4f2e}, {0xe658,0xe658,0x255a}, {0xe659,0xe65a,0x4f2f}, {0xe65b,0xe65b,0x255e}, {0xe65c,0xe65d,0x4f31}, {0xe65e,0xe65e,0x1e34}, {0xe65f,0xe668,0x4f33}, {0xe669,0xe669,0x215e}, {0xe66a,0xe66a,0x4f3d}, {0xe66b,0xe66b,0x2560}, {0xe66c,0xe674,0x4f3e}, {0xe675,0xe675,0x21a2}, {0xe676,0xe676,0x2354}, {0xe677,0xe678,0x4f47}, {0xe679,0xe679,0x2563}, {0xe67a,0xe67a,0x2527}, {0xe67b,0xe67b,0x4f49}, {0xe67c,0xe67c,0x252e}, {0xe67d,0xe67d,0x2558}, {0xe67e,0xe67e,0x4f4a}, {0xe680,0xe680,0x1f1b}, {0xe681,0xe681,0x4f4b}, {0xe682,0xe682,0x2283}, {0xe683,0xe683,0x4f4c}, {0xe684,0xe684,0x2564}, {0xe685,0xe686,0x4f4d}, {0xe687,0xe687,0x20a0}, {0xe688,0xe688,0x4f4f}, {0xe689,0xe689,0x2565}, {0xe68a,0xe68b,0x4f50}, {0xe68c,0xe68c,0x2561}, {0xe68d,0xe692,0x4f52}, {0xe693,0xe693,0x2562}, {0xe694,0xe696,0x4f58}, {0xe697,0xe697,0x256c}, {0xe698,0xe69a,0x4f5b}, {0xe69b,0xe69b,0x256d}, {0xe69c,0xe69c,0x2020}, {0xe69d,0xe69e,0x4f5e}, {0xe69f,0xe69f,0x255f}, {0xe6a0,0xe6a0,0x256a}, {0xe6a1,0xe6fe,0x177b}, {0xe740,0xe742,0x4f60}, {0xe743,0xe743,0x256e}, {0xe744,0xe747,0x4f63}, {0xe748,0xe748,0x2539}, {0xe749,0xe749,0x255c}, {0xe74a,0xe74c,0x4f67}, {0xe74d,0xe74e,0x2568}, {0xe74f,0xe74f,0x256b}, {0xe750,0xe750,0x1e6f}, {0xe751,0xe751,0x4f6a}, {0xe752,0xe752,0x1fc4}, {0xe753,0xe753,0x2567}, {0xe754,0xe754,0x4f6b}, {0xe755,0xe755,0x255b}, {0xe756,0xe758,0x4f6c}, {0xe759,0xe759,0x261d}, {0xe75a,0xe765,0x4f6f}, {0xe766,0xe766,0x252b}, {0xe767,0xe767,0x4f7b}, {0xe768,0xe768,0x2571}, {0xe769,0xe769,0x4f7c}, {0xe76a,0xe76a,0x2577}, {0xe76b,0xe773,0x4f7d}, {0xe774,0xe774,0x2522}, {0xe775,0xe77b,0x4f86}, {0xe77c,0xe77c,0x2533}, {0xe77d,0xe77e,0x4f8d}, {0xe780,0xe781,0x4f8f}, {0xe782,0xe782,0x202a}, {0xe783,0xe783,0x4f91}, {0xe784,0xe784,0x2536}, {0xe785,0xe785,0x2573}, {0xe786,0xe786,0x256f}, {0xe787,0xe789,0x4f92}, {0xe78a,0xe78a,0x2293}, {0xe78b,0xe78b,0x2578}, {0xe78c,0xe78e,0x4f95}, {0xe78f,0xe78f,0x2570}, {0xe790,0xe791,0x4f98}, {0xe792,0xe792,0x2575}, {0xe793,0xe797,0x4f9a}, {0xe798,0xe799,0x2541}, {0xe79a,0xe79a,0x255d}, {0xe79b,0xe79f,0x4f9f}, {0xe7a0,0xe7a0,0x201a}, {0xe7a1,0xe7fe,0x17d9}, {0xe840,0xe842,0x4fa4}, {0xe843,0xe843,0x257a}, {0xe844,0xe844,0x2006}, {0xe845,0xe845,0x4fa7}, {0xe846,0xe846,0x2177}, {0xe847,0xe848,0x4fa8}, {0xe849,0xe849,0x251b}, {0xe84a,0xe84a,0x4faa}, {0xe84b,0xe84b,0x2524}, {0xe84c,0xe84e,0x4fab}, {0xe84f,0xe84f,0x257b}, {0xe850,0xe853,0x4fae}, {0xe854,0xe854,0x22a3}, {0xe855,0xe859,0x4fb2}, {0xe85a,0xe85a,0x2579}, {0xe85b,0xe85b,0x4fb7}, {0xe85c,0xe85c,0x2566}, {0xe85d,0xe861,0x4fb8}, {0xe862,0xe862,0x1f93}, {0xe863,0xe863,0x4fbd}, {0xe864,0xe864,0x257c}, {0xe865,0xe86f,0x4fbe}, {0xe870,0xe870,0x2514}, {0xe871,0xe872,0x4fc9}, {0xe873,0xe873,0x257d}, {0xe874,0xe874,0x4fcb}, {0xe875,0xe875,0x2572}, {0xe876,0xe87b,0x4fcc}, {0xe87c,0xe87c,0x2574}, {0xe87d,0xe87e,0x4fd2}, {0xe880,0xe880,0x224e}, {0xe881,0xe881,0x4fd4}, {0xe882,0xe882,0x21c6}, {0xe883,0xe886,0x4fd5}, {0xe887,0xe887,0x209f}, {0xe888,0xe888,0x4fd9}, {0xe889,0xe889,0x2576}, {0xe88a,0xe88b,0x4fda}, {0xe88c,0xe88c,0x2064}, {0xe88d,0xe88d,0x22bf}, {0xe88e,0xe88e,0x261c}, {0xe88f,0xe88f,0x225e}, {0xe890,0xe8a0,0x4fdc}, {0xe8a1,0xe8fe,0x1837}, {0xe940,0xe94b,0x4fed}, {0xe94c,0xe94c,0x1e75}, {0xe94d,0xe953,0x4ff9}, {0xe954,0xe954,0x207d}, {0xe955,0xe955,0x5000}, {0xe956,0xe956,0x23bf}, {0xe957,0xe957,0x2113}, {0xe958,0xe959,0x5001}, {0xe95a,0xe95a,0x23c0}, {0xe95b,0xe95c,0x5003}, {0xe95d,0xe95d,0x1e45}, {0xe95e,0xe95e,0x5005}, {0xe95f,0xe95f,0x1fd8}, {0xe960,0xe960,0x23c4}, {0xe961,0xe961,0x5006}, {0xe962,0xe962,0x23c2}, {0xe963,0xe963,0x2104}, {0xe964,0xe964,0x5007}, {0xe965,0xe965,0x21bd}, {0xe966,0xe966,0x5008}, {0xe967,0xe967,0x1f87}, {0xe968,0xe968,0x23c3}, {0xe969,0xe96b,0x5009}, {0xe96c,0xe96c,0x2269}, {0xe96d,0xe974,0x500c}, {0xe975,0xe975,0x1f43}, {0xe976,0xe976,0x5014}, {0xe977,0xe977,0x1f1e}, {0xe978,0xe978,0x2679}, {0xe979,0xe979,0x1eeb}, {0xe97a,0xe97b,0x5015}, {0xe97c,0xe97c,0x1f35}, {0xe97d,0xe97d,0x208a}, {0xe97e,0xe97e,0x5017}, {0xe980,0xe980,0x23c7}, {0xe981,0xe981,0x23c9}, {0xe982,0xe982,0x23c6}, {0xe983,0xe986,0x5018}, {0xe987,0xe987,0x224f}, {0xe988,0xe98a,0x501c}, {0xe98b,0xe98b,0x23cb}, {0xe98c,0xe98d,0x501f}, {0xe98e,0xe98e,0x21f3}, {0xe98f,0xe98f,0x5021}, {0xe990,0xe990,0x21f7}, {0xe991,0xe991,0x23cf}, {0xe992,0xe992,0x23ce}, {0xe993,0xe993,0x23ca}, {0xe994,0xe994,0x23cd}, {0xe995,0xe997,0x5022}, {0xe998,0xe998,0x23d0}, {0xe999,0xe99a,0x5025}, {0xe99b,0xe99b,0x266c}, {0xe99c,0xe99c,0x5027}, {0xe99d,0xe99d,0x23c1}, {0xe99e,0xe99e,0x5028}, {0xe99f,0xe99f,0x1fee}, {0xe9a0,0xe9a0,0x23d1}, {0xe9a1,0xe9fe,0x1895}, {0xea40,0xea40,0x1ff8}, {0xea41,0xea43,0x5029}, {0xea44,0xea44,0x23d3}, {0xea45,0xea47,0x502c}, {0xea48,0xea48,0x23d2}, {0xea49,0xea49,0x23d4}, {0xea4a,0xea4a,0x1e98}, {0xea4b,0xea4f,0x502f}, {0xea50,0xea50,0x1f2c}, {0xea51,0xea51,0x5034}, {0xea52,0xea52,0x23d5}, {0xea53,0xea54,0x5035}, {0xea55,0xea55,0x1e71}, {0xea56,0xea56,0x2691}, {0xea57,0xea58,0x5037}, {0xea59,0xea59,0x23c5}, {0xea5a,0xea7e,0x5039}, {0xea80,0xea80,0x231a}, {0xea81,0xea83,0x505e}, {0xea84,0xea84,0x2114}, {0xea85,0xea86,0x5061}, {0xea87,0xea87,0x2284}, {0xea88,0xea8d,0x5063}, {0xea8e,0xea8e,0x221c}, {0xea8f,0xea8f,0x5069}, {0xea90,0xea90,0x1e7e}, {0xea91,0xea91,0x204d}, {0xea92,0xea95,0x506a}, {0xea96,0xea96,0x2201}, {0xea97,0xea9f,0x506e}, {0xeaa0,0xeaa0,0x1ed9}, {0xeaa1,0xeafe,0x18f3}, {0xeb40,0xeb40,0x5077}, {0xeb41,0xeb41,0x1fb2}, {0xeb42,0xeb44,0x5078}, {0xeb45,0xeb45,0x2252}, {0xeb46,0xeb47,0x507b}, {0xeb48,0xeb48,0x1f79}, {0xeb49,0xeb52,0x507d}, {0xeb53,0xeb53,0x2157}, {0xeb54,0xeb54,0x5087}, {0xeb55,0xeb55,0x21bf}, {0xeb56,0xeb5a,0x5088}, {0xeb5b,0xeb5b,0x221f}, {0xeb5c,0xeb5c,0x508d}, {0xeb5d,0xeb5d,0x203d}, {0xeb5e,0xeb5f,0x508e}, {0xeb60,0xeb60,0x2015}, {0xeb61,0xeb61,0x5090}, {0xeb62,0xeb62,0x26a5}, {0xeb63,0xeb6c,0x5091}, {0xeb6d,0xeb6d,0x2156}, {0xeb6e,0xeb6f,0x509b}, {0xeb70,0xeb70,0x2144}, {0xeb71,0xeb71,0x509d}, {0xeb72,0xeb72,0x1e91}, {0xeb73,0xeb73,0x2257}, {0xeb74,0xeb77,0x509e}, {0xeb78,0xeb78,0x200a}, {0xeb79,0xeb79,0x2092}, {0xeb7a,0xeb7e,0x50a2}, {0xeb80,0xeb84,0x50a7}, {0xeb85,0xeb85,0x2250}, {0xeb86,0xeb89,0x50ac}, {0xeb8a,0xeb8a,0x1ec3}, {0xeb8b,0xeba0,0x50b0}, {0xeba1,0xebfe,0x1951}, {0xec40,0xec45,0x50c6}, {0xec46,0xec46,0x21a8}, {0xec47,0xec55,0x50cc}, {0xec56,0xec56,0x260d}, {0xec57,0xec59,0x50db}, {0xec5a,0xec5a,0x260c}, {0xec5b,0xec5b,0x50de}, {0xec5c,0xec5c,0x260e}, {0xec5d,0xec5f,0x50df}, {0xec60,0xec60,0x2032}, {0xec61,0xec6d,0x50e2}, {0xec6e,0xec6e,0x260b}, {0xec6f,0xec75,0x50ef}, {0xec76,0xec76,0x22c3}, {0xec77,0xec7e,0x50f6}, {0xec80,0xec95,0x50fe}, {0xec96,0xec96,0x1f23}, {0xec97,0xeca0,0x5114}, {0xeca1,0xecfe,0x19af}, {0xed40,0xed45,0x511e}, {0xed46,0xed46,0x2695}, {0xed47,0xed57,0x5124}, {0xed58,0xed58,0x265e}, {0xed59,0xed5d,0x5135}, {0xed5e,0xed5e,0x265d}, {0xed5f,0xed60,0x513a}, {0xed61,0xed61,0x2692}, {0xed62,0xed63,0x513c}, {0xed64,0xed64,0x265f}, {0xed65,0xed65,0x513e}, {0xed66,0xed66,0x218d}, {0xed67,0xed67,0x20fd}, {0xed68,0xed6d,0x513f}, {0xed6e,0xed6e,0x1f40}, {0xed6f,0xed73,0x5145}, {0xed74,0xed74,0x2465}, {0xed75,0xed76,0x514a}, {0xed77,0xed77,0x2467}, {0xed78,0xed78,0x514c}, {0xed79,0xed79,0x2466}, {0xed7a,0xed7e,0x514d}, {0xed80,0xed90,0x5152}, {0xed91,0xed91,0x21c9}, {0xed92,0xed92,0x5163}, {0xed93,0xed93,0x2209}, {0xed94,0xed94,0x1ec9}, {0xed95,0xed95,0x20e9}, {0xed96,0xed96,0x5164}, {0xed97,0xed97,0x21ca}, {0xed98,0xed98,0x2146}, {0xed99,0xed99,0x25c5}, {0xed9a,0xed9a,0x21dc}, {0xed9b,0xed9b,0x5165}, {0xed9c,0xed9c,0x245e}, {0xed9d,0xed9d,0x5166}, {0xed9e,0xed9e,0x214f}, {0xed9f,0xed9f,0x5167}, {0xeda0,0xeda0,0x25c6}, {0xeda1,0xedfe,0x1a0d}, {0xee40,0xee40,0x25c7}, {0xee41,0xee41,0x2241}, {0xee42,0xee42,0x218a}, {0xee43,0xee43,0x1e2f}, {0xee44,0xee44,0x1edc}, {0xee45,0xee47,0x5168}, {0xee48,0xee48,0x20bf}, {0xee49,0xee49,0x2034}, {0xee4a,0xee4c,0x516b}, {0xee4d,0xee4d,0x25c9}, {0xee4e,0xee51,0x516e}, {0xee52,0xee52,0x25c8}, {0xee53,0xee54,0x5172}, {0xee55,0xee55,0x220e}, {0xee56,0xee56,0x5174}, {0xee57,0xee57,0x25cb}, {0xee58,0xee5d,0x5175}, {0xee5e,0xee5e,0x217d}, {0xee5f,0xee60,0x517b}, {0xee61,0xee61,0x1f7e}, {0xee62,0xee67,0x517d}, {0xee68,0xee68,0x25cc}, {0xee69,0xee69,0x1fc3}, {0xee6a,0xee6b,0x5183}, {0xee6c,0xee6c,0x20b9}, {0xee6d,0xee6d,0x5185}, {0xee6e,0xee6e,0x2181}, {0xee6f,0xee76,0x5186}, {0xee77,0xee77,0x1fda}, {0xee78,0xee7c,0x518e}, {0xee7d,0xee7d,0x2173}, {0xee7e,0xee7e,0x1ee1}, {0xee80,0xee80,0x25cd}, {0xee81,0xee84,0x5193}, {0xee85,0xee85,0x25ce}, {0xee86,0xee86,0x21f6}, {0xee87,0xee89,0x5197}, {0xee8a,0xee8a,0x224b}, {0xee8b,0xee8b,0x25d1}, {0xee8c,0xee8c,0x519a}, {0xee8d,0xee8d,0x1ec0}, {0xee8e,0xee8f,0x519b}, {0xee90,0xee90,0x2008}, {0xee91,0xee93,0x519d}, {0xee94,0xee94,0x25d0}, {0xee95,0xee96,0x51a0}, {0xee97,0xee97,0x25d2}, {0xee98,0xee98,0x51a2}, {0xee99,0xee99,0x1f2a}, {0xee9a,0xee9c,0x51a3}, {0xee9d,0xee9d,0x1e72}, {0xee9e,0xee9e,0x25d3}, {0xee9f,0xeea0,0x51a6}, {0xeea1,0xeefe,0x1a6b}, {0xef40,0xef40,0x21be}, {0xef41,0xef41,0x25d4}, {0xef42,0xef42,0x2044}, {0xef43,0xef43,0x51a8}, {0xef44,0xef44,0x25cf}, {0xef45,0xef45,0x20f3}, {0xef46,0xef4b,0x51a9}, {0xef4c,0xef4c,0x1f00}, {0xef4d,0xef51,0x51af}, {0xef52,0xef53,0x24cc}, {0xef54,0xef54,0x51b4}, {0xef55,0xef55,0x2698}, {0xef56,0xef56,0x51b5}, {0xef57,0xef57,0x2678}, {0xef58,0xef59,0x51b6}, {0xef5a,0xef5a,0x24ce}, {0xef5b,0xef5f,0x51b8}, {0xef60,0xef60,0x24cf}, {0xef61,0xef67,0x51bd}, {0xef68,0xef68,0x20b8}, {0xef69,0xef69,0x51c4}, {0xef6a,0xef6a,0x24d0}, {0xef6b,0xef6b,0x51c5}, {0xef6c,0xef6c,0x24d1}, {0xef6d,0xef76,0x51c6}, {0xef77,0xef77,0x1ef4}, {0xef78,0xef79,0x51d0}, {0xef7a,0xef7a,0x239b}, {0xef7b,0xef7b,0x51d2}, {0xef7c,0xef7c,0x267e}, {0xef7d,0xef7e,0x51d3}, {0xef80,0xef81,0x51d5}, {0xef82,0xef82,0x239d}, {0xef83,0xef84,0x239f}, {0xef85,0xef85,0x51d7}, {0xef86,0xef86,0x23a1}, {0xef87,0xef87,0x51d8}, {0xef88,0xef88,0x1ef1}, {0xef89,0xef8a,0x51d9}, {0xef8b,0xef8b,0x221e}, {0xef8c,0xef8c,0x51db}, {0xef8d,0xef8d,0x23a2}, {0xef8e,0xef94,0x51dc}, {0xef95,0xef95,0x214b}, {0xef96,0xef96,0x1e36}, {0xef97,0xef97,0x2135}, {0xef98,0xef9b,0x51e3}, {0xef9c,0xef9c,0x1fad}, {0xef9d,0xef9d,0x51e7}, {0xef9e,0xef9e,0x1e53}, {0xef9f,0xefa0,0x51e8}, {0xefa1,0xeffe,0x1ac9}, {0xf040,0xf040,0x51ea}, {0xf041,0xf041,0x23a3}, {0xf042,0xf042,0x2203}, {0xf043,0xf043,0x51eb}, {0xf044,0xf044,0x1ee7}, {0xf045,0xf046,0x51ec}, {0xf047,0xf047,0x23a4}, {0xf048,0xf048,0x2097}, {0xf049,0xf049,0x1ee4}, {0xf04a,0xf04d,0x51ee}, {0xf04e,0xf04e,0x2238}, {0xf04f,0xf050,0x51f2}, {0xf051,0xf051,0x23a5}, {0xf052,0xf053,0x51f4}, {0xf054,0xf054,0x1f9a}, {0xf055,0xf056,0x51f6}, {0xf057,0xf057,0x21c3}, {0xf058,0xf05d,0x51f8}, {0xf05e,0xf05e,0x1f2e}, {0xf05f,0xf067,0x51fe}, {0xf068,0xf068,0x239c}, {0xf069,0xf06b,0x5207}, {0xf06c,0xf06c,0x23a6}, {0xf06d,0xf070,0x520a}, {0xf071,0xf071,0x239e}, {0xf072,0xf072,0x520e}, {0xf073,0xf073,0x2035}, {0xf074,0xf074,0x23a7}, {0xf075,0xf077,0x520f}, {0xf078,0xf078,0x23a8}, {0xf079,0xf079,0x5212}, {0xf07a,0xf07a,0x2075}, {0xf07b,0xf07c,0x5213}, {0xf07d,0xf07e,0x23a9}, {0xf080,0xf080,0x23ab}, {0xf081,0xf081,0x1feb}, {0xf082,0xf082,0x23ac}, {0xf083,0xf086,0x5215}, {0xf087,0xf087,0x1f6a}, {0xf088,0xf088,0x20f9}, {0xf089,0xf08a,0x5219}, {0xf08b,0xf08b,0x2666}, {0xf08c,0xf08f,0x521b}, {0xf090,0xf090,0x2667}, {0xf091,0xf091,0x521f}, {0xf092,0xf092,0x1e6c}, {0xf093,0xf095,0x5220}, {0xf096,0xf096,0x23ad}, {0xf097,0xf0a0,0x5223}, {0xf0a1,0xf0fe,0x1b27}, {0xf140,0xf151,0x522d}, {0xf152,0xf152,0x206d}, {0xf153,0xf153,0x2242}, {0xf154,0xf154,0x1f02}, {0xf155,0xf156,0x523f}, {0xf157,0xf157,0x2183}, {0xf158,0xf158,0x5241}, {0xf159,0xf159,0x1e85}, {0xf15a,0xf15a,0x21e9}, {0xf15b,0xf166,0x5242}, {0xf167,0xf167,0x1e57}, {0xf168,0xf175,0x524e}, {0xf176,0xf176,0x22a5}, {0xf177,0xf177,0x2407}, {0xf178,0xf178,0x1fca}, {0xf179,0xf179,0x525c}, {0xf17a,0xf17a,0x2402}, {0xf17b,0xf17b,0x1f82}, {0xf17c,0xf17d,0x525d}, {0xf17e,0xf17e,0x2408}, {0xf180,0xf180,0x2404}, {0xf181,0xf181,0x525f}, {0xf182,0xf182,0x2131}, {0xf183,0xf183,0x5260}, {0xf184,0xf184,0x2184}, {0xf185,0xf185,0x5261}, {0xf186,0xf186,0x2403}, {0xf187,0xf187,0x5262}, {0xf188,0xf188,0x206e}, {0xf189,0xf189,0x240b}, {0xf18a,0xf193,0x5263}, {0xf194,0xf194,0x1f3f}, {0xf195,0xf197,0x526d}, {0xf198,0xf198,0x2067}, {0xf199,0xf1a0,0x5270}, {0xf1a1,0xf1fe,0x1b85}, {0xf240,0xf244,0x5278}, {0xf245,0xf245,0x1fd7}, {0xf246,0xf246,0x527d}, {0xf247,0xf247,0x1e83}, {0xf248,0xf24a,0x527e}, {0xf24b,0xf24b,0x240f}, {0xf24c,0xf252,0x5281}, {0xf253,0xf253,0x240e}, {0xf254,0xf254,0x20c7}, {0xf255,0xf255,0x240d}, {0xf256,0xf25b,0x5288}, {0xf25c,0xf25c,0x2412}, {0xf25d,0xf25e,0x528e}, {0xf25f,0xf25f,0x20b7}, {0xf260,0xf270,0x5290}, {0xf271,0xf271,0x23f0}, {0xf272,0xf272,0x52a1}, {0xf273,0xf273,0x2411}, {0xf274,0xf274,0x2414}, {0xf275,0xf275,0x52a2}, {0xf276,0xf276,0x2170}, {0xf277,0xf27b,0x52a3}, {0xf27c,0xf27c,0x2405}, {0xf27d,0xf27d,0x210c}, {0xf27e,0xf27e,0x2415}, {0xf280,0xf284,0x52a8}, {0xf285,0xf285,0x2066}, {0xf286,0xf286,0x52ad}, {0xf287,0xf287,0x2352}, {0xf288,0xf288,0x2413}, {0xf289,0xf289,0x2410}, {0xf28a,0xf28b,0x2416}, {0xf28c,0xf28c,0x20f1}, {0xf28d,0xf290,0x52ae}, {0xf291,0xf291,0x240a}, {0xf292,0xf293,0x52b2}, {0xf294,0xf294,0x2409}, {0xf295,0xf295,0x52b4}, {0xf296,0xf296,0x2418}, {0xf297,0xf29b,0x52b5}, {0xf29c,0xf29c,0x1fa7}, {0xf29d,0xf29d,0x52ba}, {0xf29e,0xf29e,0x21fc}, {0xf29f,0xf2a0,0x52bb}, {0xf2a1,0xf2fe,0x1be3}, {0xf340,0xf340,0x1fc1}, {0xf341,0xf341,0x2406}, {0xf342,0xf344,0x52bd}, {0xf345,0xf345,0x229c}, {0xf346,0xf347,0x52c0}, {0xf348,0xf348,0x204e}, {0xf349,0xf349,0x52c2}, {0xf34a,0xf34a,0x241a}, {0xf34b,0xf34b,0x2419}, {0xf34c,0xf34f,0x52c3}, {0xf350,0xf350,0x240c}, {0xf351,0xf360,0x52c7}, {0xf361,0xf361,0x1e29}, {0xf362,0xf373,0x52d7}, {0xf374,0xf374,0x2661}, {0xf375,0xf375,0x52e9}, {0xf376,0xf376,0x26a4}, {0xf377,0xf377,0x2174}, {0xf378,0xf378,0x2663}, {0xf379,0xf379,0x2662}, {0xf37a,0xf37e,0x52ea}, {0xf380,0xf38b,0x52ef}, {0xf38c,0xf38c,0x2675}, {0xf38d,0xf39f,0x52fb}, {0xf3a0,0xf3a0,0x214c}, {0xf3a1,0xf3fe,0x1c41}, {0xf440,0xf444,0x530e}, {0xf445,0xf445,0x267a}, {0xf446,0xf44f,0x5313}, {0xf450,0xf450,0x26a0}, {0xf451,0xf456,0x531d}, {0xf457,0xf457,0x2668}, {0xf458,0xf458,0x5323}, {0xf459,0xf459,0x1ed0}, {0xf45a,0xf45a,0x5324}, {0xf45b,0xf45b,0x2096}, {0xf45c,0xf45c,0x5325}, {0xf45d,0xf45d,0x23cc}, {0xf45e,0xf461,0x5326}, {0xf462,0xf462,0x23c8}, {0xf463,0xf463,0x532a}, {0xf464,0xf464,0x223e}, {0xf465,0xf474,0x532b}, {0xf475,0xf475,0x2665}, {0xf476,0xf47b,0x533b}, {0xf47c,0xf47c,0x2664}, {0xf47d,0xf47d,0x5341}, {0xf47e,0xf47e,0x2239}, {0xf480,0xf493,0x5342}, {0xf494,0xf494,0x204a}, {0xf495,0xf498,0x5356}, {0xf499,0xf499,0x261f}, {0xf49a,0xf49b,0x535a}, {0xf49c,0xf49c,0x261e}, {0xf49d,0xf4a0,0x535c}, {0xf4a1,0xf4fe,0x1c9f}, {0xf540,0xf544,0x5360}, {0xf545,0xf545,0x2620}, {0xf546,0xf546,0x5365}, {0xf547,0xf547,0x2621}, {0xf548,0xf551,0x5366}, {0xf552,0xf552,0x2622}, {0xf553,0xf553,0x5370}, {0xf554,0xf554,0x2627}, {0xf555,0xf555,0x1e39}, {0xf556,0xf556,0x2625}, {0xf557,0xf55d,0x5371}, {0xf55e,0xf55e,0x2629}, {0xf55f,0xf560,0x5378}, {0xf561,0xf561,0x262e}, {0xf562,0xf562,0x262b}, {0xf563,0xf56d,0x537a}, {0xf56e,0xf56e,0x262a}, {0xf56f,0xf56f,0x262d}, {0xf570,0xf570,0x5385}, {0xf571,0xf571,0x2628}, {0xf572,0xf572,0x21b9}, {0xf573,0xf57e,0x5386}, {0xf580,0xf584,0x5392}, {0xf585,0xf585,0x2636}, {0xf586,0xf586,0x2630}, {0xf587,0xf58b,0x5397}, {0xf58c,0xf58c,0x2638}, {0xf58d,0xf58d,0x539c}, {0xf58e,0xf58e,0x200d}, {0xf58f,0xf58f,0x2637}, {0xf590,0xf598,0x539d}, {0xf599,0xf599,0x2645}, {0xf59a,0xf59a,0x53a6}, {0xf59b,0xf59b,0x263a}, {0xf59c,0xf59f,0x53a7}, {0xf5a0,0xf5a0,0x2643}, {0xf5a1,0xf5fe,0x1cfd}, {0xf640,0xf640,0x53ab}, {0xf641,0xf641,0x2640}, {0xf642,0xf644,0x53ac}, {0xf645,0xf645,0x263d}, {0xf646,0xf646,0x2641}, {0xf647,0xf647,0x53af}, {0xf648,0xf648,0x263e}, {0xf649,0xf64a,0x53b0}, {0xf64b,0xf64b,0x263f}, {0xf64c,0xf64c,0x1fc0}, {0xf64d,0xf64d,0x53b2}, {0xf64e,0xf64f,0x263b}, {0xf650,0xf653,0x53b3}, {0xf654,0xf654,0x2642}, {0xf655,0xf657,0x53b7}, {0xf658,0xf658,0x2644}, {0xf659,0xf660,0x53ba}, {0xf661,0xf661,0x2639}, {0xf662,0xf662,0x53c2}, {0xf663,0xf663,0x264c}, {0xf664,0xf66b,0x53c3}, {0xf66c,0xf66c,0x2647}, {0xf66d,0xf66d,0x264b}, {0xf66e,0xf670,0x53cb}, {0xf671,0xf671,0x2649}, {0xf672,0xf673,0x53ce}, {0xf674,0xf674,0x2648}, {0xf675,0xf675,0x53d0}, {0xf676,0xf676,0x264a}, {0xf677,0xf677,0x2108}, {0xf678,0xf67e,0x53d1}, {0xf680,0xf684,0x53d8}, {0xf685,0xf685,0x264d}, {0xf686,0xf687,0x53dd}, {0xf688,0xf688,0x2634}, {0xf689,0xf689,0x53df}, {0xf68a,0xf68a,0x2651}, {0xf68b,0xf68c,0x53e0}, {0xf68d,0xf68d,0x2650}, {0xf68e,0xf68e,0x2652}, {0xf68f,0xf691,0x53e2}, {0xf692,0xf692,0x264f}, {0xf693,0xf695,0x53e5}, {0xf696,0xf696,0x2632}, {0xf697,0xf697,0x264e}, {0xf698,0xf698,0x2653}, {0xf699,0xf699,0x53e8}, {0xf69a,0xf69a,0x2657}, {0xf69b,0xf69b,0x53e9}, {0xf69c,0xf69c,0x2635}, {0xf69d,0xf69d,0x53ea}, {0xf69e,0xf69e,0x2633}, {0xf69f,0xf69f,0x53eb}, {0xf6a0,0xf6a0,0x2656}, {0xf6a1,0xf6fe,0x1d5b}, {0xf740,0xf741,0x53ec}, {0xf742,0xf742,0x2654}, {0xf743,0xf748,0x53ee}, {0xf749,0xf749,0x2658}, {0xf74a,0xf74b,0x53f4}, {0xf74c,0xf74c,0x2655}, {0xf74d,0xf74d,0x1e4d}, {0xf74e,0xf755,0x53f6}, {0xf756,0xf756,0x265b}, {0xf757,0xf757,0x53fe}, {0xf758,0xf758,0x265a}, {0xf759,0xf759,0x53ff}, {0xf75a,0xf75a,0x2659}, {0xf75b,0xf75b,0x202e}, {0xf75c,0xf75c,0x262f}, {0xf75d,0xf760,0x5400}, {0xf761,0xf761,0x2646}, {0xf762,0xf762,0x5404}, {0xf763,0xf763,0x2626}, {0xf764,0xf76a,0x5405}, {0xf76b,0xf76b,0x265c}, {0xf76c,0xf770,0x540c}, {0xf771,0xf771,0x262c}, {0xf772,0xf77b,0x5411}, {0xf77c,0xf77c,0x2623}, {0xf77d,0xf77d,0x541b}, {0xf77e,0xf77e,0x2631}, {0xf780,0xf7a0,0x541c}, {0xf7a1,0xf7fe,0x1db9}, {0xf840,0xf841,0x543d}, {0xf842,0xf842,0x209c}, {0xf843,0xf845,0x543f}, {0xf846,0xf846,0x2580}, {0xf847,0xf848,0x5442}, {0xf849,0xf849,0x22dc}, {0xf84a,0xf84f,0x5444}, {0xf850,0xf850,0x1f05}, {0xf851,0xf851,0x208b}, {0xf852,0xf852,0x544a}, {0xf853,0xf853,0x2581}, {0xf854,0xf862,0x544b}, {0xf863,0xf863,0x2583}, {0xf864,0xf864,0x2582}, {0xf865,0xf865,0x545a}, {0xf866,0xf866,0x21ee}, {0xf867,0xf871,0x545b}, {0xf872,0xf872,0x2182}, {0xf873,0xf877,0x5466}, {0xf878,0xf878,0x2243}, {0xf879,0xf879,0x546b}, {0xf87a,0xf87a,0x2587}, {0xf87b,0xf87b,0x546c}, {0xf87c,0xf87c,0x2588}, {0xf87d,0xf87e,0x546d}, {0xf880,0xf880,0x546f}, {0xf881,0xf881,0x2584}, {0xf882,0xf883,0x5470}, {0xf884,0xf884,0x21fd}, {0xf885,0xf885,0x5472}, {0xf886,0xf886,0x21ef}, {0xf887,0xf88c,0x5473}, {0xf88d,0xf88d,0x258a}, {0xf88e,0xf88e,0x258c}, {0xf88f,0xf898,0x5479}, {0xf899,0xf899,0x1f47}, {0xf89a,0xf89c,0x5483}, {0xf89d,0xf89d,0x1f1d}, {0xf89e,0xf89f,0x5486}, {0xf8a0,0xf8a0,0x258d}, {0xf940,0xf94d,0x5488}, {0xf94e,0xf94e,0x1fd0}, {0xf94f,0xf94f,0x2592}, {0xf950,0xf950,0x258f}, {0xf951,0xf958,0x5496}, {0xf959,0xf959,0x2594}, {0xf95a,0xf95a,0x1ee0}, {0xf95b,0xf95c,0x549e}, {0xf95d,0xf95d,0x2591}, {0xf95e,0xf95e,0x2595}, {0xf95f,0xf966,0x54a0}, {0xf967,0xf967,0x2597}, {0xf968,0xf968,0x54a8}, {0xf969,0xf969,0x20b6}, {0xf96a,0xf96b,0x54a9}, {0xf96c,0xf96c,0x2598}, {0xf96d,0xf96e,0x54ab}, {0xf96f,0xf96f,0x20f6}, {0xf970,0xf97e,0x54ad}, {0xf980,0xf984,0x54bc}, {0xf985,0xf985,0x2585}, {0xf986,0xf986,0x54c1}, {0xf987,0xf987,0x2599}, {0xf988,0xf990,0x54c2}, {0xf991,0xf991,0x2596}, {0xf992,0xf995,0x54cb}, {0xf996,0xf996,0x259a}, {0xf997,0xf997,0x54cf}, {0xf998,0xf998,0x259b}, {0xf999,0xf9a0,0x54d0}, {0xfa40,0xfa41,0x54d8}, {0xfa42,0xfa42,0x259d}, {0xfa43,0xfa45,0x54da}, {0xfa46,0xfa46,0x259e}, {0xfa47,0xfa4b,0x54dd}, {0xfa4c,0xfa4c,0x234c}, {0xfa4d,0xfa50,0x54e2}, {0xfa51,0xfa51,0x1f44}, {0xfa52,0xfa57,0x54e6}, {0xfa58,0xfa58,0x2660}, {0xfa59,0xfa59,0x25a0}, {0xfa5a,0xfa5c,0x54ec}, {0xfa5d,0xfa5d,0x259c}, {0xfa5e,0xfa5e,0x54ef}, {0xfa5f,0xfa5f,0x259f}, {0xfa60,0xfa60,0x54f0}, {0xfa61,0xfa61,0x1f6c}, {0xfa62,0xfa6f,0x54f1}, {0xfa70,0xfa70,0x25a2}, {0xfa71,0xfa73,0x54ff}, {0xfa74,0xfa74,0x20ae}, {0xfa75,0xfa75,0x5502}, {0xfa76,0xfa76,0x258b}, {0xfa77,0xfa77,0x25a3}, {0xfa78,0xfa7e,0x5503}, {0xfa80,0xfa82,0x550a}, {0xfa83,0xfa83,0x2589}, {0xfa84,0xfa84,0x25a5}, {0xfa85,0xfa8c,0x550d}, {0xfa8d,0xfa8d,0x25a4}, {0xfa8e,0xfa8f,0x5515}, {0xfa90,0xfa90,0x25a6}, {0xfa91,0xfa91,0x2593}, {0xfa92,0xfa95,0x5517}, {0xfa96,0xfa96,0x25a7}, {0xfa97,0xfa97,0x2222}, {0xfa98,0xfa98,0x25a9}, {0xfa99,0xfaa0,0x551b}, {0xfb40,0xfb48,0x5523}, {0xfb49,0xfb49,0x25a8}, {0xfb4a,0xfb51,0x552c}, {0xfb52,0xfb52,0x2586}, {0xfb53,0xfb56,0x5534}, {0xfb57,0xfb57,0x25a1}, {0xfb58,0xfb58,0x25aa}, {0xfb59,0xfb59,0x5538}, {0xfb5a,0xfb5a,0x2590}, {0xfb5b,0xfb5b,0x258e}, {0xfb5c,0xfb74,0x5539}, {0xfb75,0xfb75,0x2688}, {0xfb76,0xfb78,0x5552}, {0xfb79,0xfb79,0x269e}, {0xfb7a,0xfb7a,0x25fb}, {0xfb7b,0xfb7b,0x5555}, {0xfb7c,0xfb7c,0x1f8c}, {0xfb7d,0xfb7d,0x21f4}, {0xfb7e,0xfb7e,0x5556}, {0xfb80,0xfb8f,0x5557}, {0xfb90,0xfb90,0x200f}, {0xfb91,0xfb9b,0x5567}, {0xfb9c,0xfb9c,0x2071}, {0xfb9d,0xfb9e,0x5572}, {0xfb9f,0xfb9f,0x25f7}, {0xfba0,0xfba0,0x5574}, {0xfc40,0xfc43,0x5575}, {0xfc44,0xfc44,0x2696}, {0xfc45,0xfc48,0x5579}, {0xfc49,0xfc49,0x268f}, {0xfc4a,0xfc59,0x557d}, {0xfc5a,0xfc5a,0x22da}, {0xfc5b,0xfc62,0x558d}, {0xfc63,0xfc63,0x1ec1}, {0xfc64,0xfc67,0x5595}, {0xfc68,0xfc68,0x1eb3}, {0xfc69,0xfc6e,0x5599}, {0xfc6f,0xfc6f,0x266a}, {0xfc70,0xfc70,0x559f}, {0xfc71,0xfc71,0x268a}, {0xfc72,0xfc73,0x55a0}, {0xfc74,0xfc74,0x2669}, {0xfc75,0xfc76,0x55a2}, {0xfc77,0xfc78,0x2618}, {0xfc79,0xfc7e,0x55a4}, {0xfc80,0xfc82,0x55aa}, {0xfc83,0xfc83,0x261a}, {0xfc84,0xfc89,0x55ad}, {0xfc8a,0xfc8a,0x2673}, {0xfc8b,0xfca0,0x55b3}, {0xfd40,0xfd51,0x55c9}, {0xfd52,0xfd52,0x20c6}, {0xfd53,0xfd53,0x226b}, {0xfd54,0xfd56,0x55db}, {0xfd57,0xfd57,0x24d3}, {0xfd58,0xfd58,0x1e86}, {0xfd59,0xfd59,0x55de}, {0xfd5a,0xfd5a,0x260f}, {0xfd5b,0xfd5e,0x55df}, {0xfd5f,0xfd5f,0x2611}, {0xfd60,0xfd61,0x55e3}, {0xfd62,0xfd62,0x2613}, {0xfd63,0xfd64,0x55e5}, {0xfd65,0xfd65,0x2610}, {0xfd66,0xfd66,0x2612}, {0xfd67,0xfd67,0x2030}, {0xfd68,0xfd68,0x55e7}, {0xfd69,0xfd69,0x2671}, {0xfd6a,0xfd6b,0x55e8}, {0xfd6c,0xfd6c,0x2614}, {0xfd6d,0xfd6f,0x55ea}, {0xfd70,0xfd70,0x2616}, {0xfd71,0xfd71,0x55ed}, {0xfd72,0xfd72,0x2615}, {0xfd73,0xfd77,0x55ee}, {0xfd78,0xfd78,0x20f2}, {0xfd79,0xfd7c,0x55f3}, {0xfd7d,0xfd7d,0x2617}, {0xfd7e,0xfd7e,0x55f7}, {0xfd80,0xfd87,0x55f8}, {0xfd88,0xfd88,0x2037}, {0xfd89,0xfd8a,0x5600}, {0xfd8b,0xfd8b,0x20b3}, {0xfd8c,0xfd8e,0x5602}, {0xfd8f,0xfd8f,0x1f22}, {0xfd90,0xfd90,0x24ed}, {0xfd91,0xfd93,0x5605}, {0xfd94,0xfd94,0x1f34}, {0xfd95,0xfd9c,0x5608}, {0xfd9d,0xfd9d,0xa02}, {0xfd9e,0xfd9e,0x40d3}, {0xfd9f,0xfd9f,0x200c}, {0xfda0,0xfda0,0x5083}, {0xfe40,0xfe40,0x1259}, {0xfe41,0xfe7e,0x5610}, {0xfe80,0xfea0,0x564e}, }; static pdf_cmap cmap_GBK_X = { { -1, pdf_drop_cmap_imp }, /* cmapname */ "GBK-X", /* usecmap */ "", NULL, /* wmode */ 0, /* codespaces */ 0, { { 0, 0, 0 }, }, 4069, 4069, (pdf_range*)cmap_GBK_X_ranges, 0, 0, NULL, /* xranges */ 0, 0, NULL, /* mranges */ 0, 0, NULL, /* table */ 0, 0, 0, NULL /* splay tree */ };
agpl-3.0
AlvaroVega/TIDorbC
source/TIDorbC/orb/include/TIDorb/core/iop/TAG_MULTIPLE_COMPONENTS.h
1637
////////////////////////////////////////////////////////////////////////////////// // // File: TAG_MULTIPLE_COMPONENTS.h // Description: // // Rel: 01.00 // Created: September, 2002 // Author: Juan A. Caceres Exposito ( caceres@tid.es ) // // Revised: // // (C) Copyright 2009 Telefonica Investigacion y Desarrollo // S.A.Unipersonal (Telefonica I+D) // // This file is part of Morfeo CORBA Platform. // // Morfeo CORBA Platform 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. // // Morfeo CORBA Platform 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 Morfeo CORBA Platform. If not, see // // http://www.gnu.org/licenses // // Info about members and contributors of the MORFEO project // is available at // // http://morfeo-project.org // /////////////////////////////////////////////////////////////////////////////////// #ifndef _TIDORB_CORE_IOP_TAG_MULTIPLE_COMPONENTS_H_ #define _TIDORB_CORE_IOP_TAG_MULTIPLE_COMPONENTS_H_ namespace TIDorb { namespace core { namespace iop { const CORBA::ULong TAG_MULTIPLE_COMPONENTS= (CORBA::ULong)1; }// iop }// core }// TIDorb #endif //_IOP_TAG_MULTIPLE_COMPONENTS_H_
agpl-3.0
timble/openpolice-platform
application/admin/component/categories/view/categories/templates/default_scopebar.html.php
1269
<? /** * Nooku Framework - http://www.nooku.org * * @copyright Copyright (C) 2011 - 2017 Johan Janssens and Timble CVBA. (http://www.timble.net) * @license GNU AGPLv3 <https://www.gnu.org/licenses/agpl.html> * @link https://github.com/timble/openpolice-platform */ ?> <div class="scopebar"> <div class="scopebar__group"> <a class="<?= is_null($state->published) ? 'active' : ''; ?>" href="<?= route('published=' ) ?>"> <?= translate('All') ?> </a> </div> <div class="scopebar__group"> <a class="<?= $state->published === true ? 'active' : ''; ?>" href="<?= route($state->published === true ? 'published=' : 'published=1') ?>"> <?= translate('Published') ?> </a> <a class="<?= $state->published === false ? 'active' : ''; ?>" href="<?= route($state->published === false ? 'published=' : 'published=0' ) ?>"> <?= translate('Unpublished') ?> </a> </div> <div class="scopebar__group"> <a class="<?= $state->access === true ? 'active' : ''; ?>" href="<?= route($state->access === true ? 'access=' : 'access=1' ) ?>"> <?= 'Registered' ?> </a> </div> <div class="scopebar__search"> <?= helper('grid.search') ?> </div> </div>
agpl-3.0
ACEmulator/ACE-World
Database/3-Core/6 LandBlockExtendedData/SQL/0295.sql
875
DELETE FROM `landblock_instance` WHERE `landblock` = 0x0295; INSERT INTO `landblock_instance` (`guid`, `weenie_Class_Id`, `obj_Cell_Id`, `origin_X`, `origin_Y`, `origin_Z`, `angles_W`, `angles_X`, `angles_Y`, `angles_Z`, `is_Link_Child`, `last_Modified`) VALUES (0x70295002, 10735, 0x02950104, 150, -800, -42.063, 1, 0, 0, 0, False, '2019-02-10 00:00:00'); /* Surface */ /* @teleloc 0x02950104 [150.000000 -800.000000 -42.063000] 1.000000 0.000000 0.000000 0.000000 */ INSERT INTO `landblock_instance` (`guid`, `weenie_Class_Id`, `obj_Cell_Id`, `origin_X`, `origin_Y`, `origin_Z`, `angles_W`, `angles_X`, `angles_Y`, `angles_Z`, `is_Link_Child`, `last_Modified`) VALUES (0x7029503D, 10735, 0x0295026E, 160, -280, 5.937, 1, 0, 0, 0, False, '2019-02-10 00:00:00'); /* Surface */ /* @teleloc 0x0295026E [160.000000 -280.000000 5.937000] 1.000000 0.000000 0.000000 0.000000 */
agpl-3.0
nazeels/fat_free
app/inputs/date_pair_input.rb
2789
# Fat Free CRM # Copyright (C) 2008-2011 by Michael Dvorkin # # This program 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. # # This program 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 this program. If not, see <http://www.gnu.org/licenses/>. #------------------------------------------------------------------------------ class DatePairInput < SimpleForm::Inputs::Base # Output two date fields: start and end #------------------------------------------------------------------------------ def input add_autocomplete! out = "<br />".html_safe field1, field2 = get_fields [field1, field2].compact.each do |field| out << '<div>'.html_safe label = field==field1 ? I18n.t('pair.start') : I18n.t('pair.end') [:required, :disabled].each {|k| input_html_options.delete(k)} # ensure these come from field not default options input_html_options.merge!(field.input_options) input_html_options.merge!(:value => value(field)) out << "<label#{' class="req"' if input_html_options[:required]}>#{label}</label>".html_safe text = @builder.text_field(field.name, input_html_options) out << text << '</div>'.html_safe end out end private # Returns true if either field is required? #------------------------------------------------------------------------------ def required_field? get_fields.map(&:required).any? end # Turns autocomplete off unless told otherwise. #------------------------------------------------------------------------------ def add_autocomplete! input_html_options[:autocomplete] ||= 'off' end # Datepicker latches onto the 'date' class. #------------------------------------------------------------------------------ def input_html_classes super.push('date') end # Returns the pair as [field1, field2] #------------------------------------------------------------------------------ def get_fields @field1 ||= Field.where(:name => attribute_name).first @field2 ||= @field1.try(:paired_with) [@field1, @field2] end # Serialize into a value recognised by datepicker #------------------------------------------------------------------------------ def value(field) val = object.send(field.name) val.present? ? val.strftime('%Y-%m-%d') : nil end end
agpl-3.0
quikkian-ua-devops/will-financials
kfs-core/src/main/java/edu/arizona/kfs/sys/dataaccess/impl/BuildingAndRoomImportsDaoOjb.java
1215
package edu.arizona.kfs.sys.dataaccess.impl; import java.util.HashMap; import java.util.Map; import org.kuali.kfs.coreservice.framework.parameter.ParameterService; import edu.arizona.kfs.sys.batch.BuildingImportStep; import edu.arizona.kfs.sys.dataaccess.BuildingAndRoomImportsDao; public class BuildingAndRoomImportsDaoOjb implements BuildingAndRoomImportsDao { private ParameterService parameterService; public void setParameterService(ParameterService parameterService) { this.parameterService = parameterService; } // Returns a list of routeCodes with their respective campusCode public Map<String, String> PopulateRoutecodeToCampusCodeMap() { Map<String, String> routecodeToCampuscodeMap = new HashMap<String, String>(); String[] keyPairs = parameterService.getParameterValueAsString(BuildingImportStep.class, "ROUTE_CODE_BY_CAMPUS_CODE").split(";"); for (String keyValues : keyPairs) { String[] tokens = keyValues.split("="); String campusCode = tokens[0]; String values = tokens[1]; String[] valueTokens = values.split(","); for (String routeCode : valueTokens) { routecodeToCampuscodeMap.put(routeCode, campusCode); } } return routecodeToCampuscodeMap; } }
agpl-3.0
tsoporan/tehorng
submissions/models/track.py
1835
from django.db import models from submissions.models.utils import strip_punc from django.contrib.auth.models import User from submissions.models.album import Album from django.contrib.contenttypes.models import ContentType class Track(models.Model): """ A single track(song) for an album. """ URL_CHOICES = ( ('download', 'download'), ('stream','stream'), ('buy','buy'), ) title = models.CharField(max_length=255) cleaned_name = models.CharField(max_length=255, blank=True, null=True, editable=False, help_text="A cleaned name without punctuation or weird stuff.") track_number = models.IntegerField(blank=True, null=True) #Replace by regexfield r'[0-9:]+' in forms duration = models.CharField(max_length=255, blank=True, null=True) url = models.URLField('URL', blank=True, null=True) url_type = models.CharField('Type', max_length=255, choices=URL_CHOICES, blank=True, null=True) created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) uploader = models.ForeignKey(User, blank=True, null=True, help_text="The uploader of this track.") album = models.ForeignKey(Album, related_name="tracks", help_text="The album to which this track belongs.") mbid = models.CharField(max_length=255, blank=True, null=True) class Meta: app_label = "submissions" ordering = ('track_number', 'title') def __unicode__(self): return self.title @models.permalink def get_absolute_url(self): return ('album-detail', (), {'artist': self.album.artist.slug, 'album': self.album.slug }) def save(self, *args, **kwargs): if not self.cleaned_name: self.cleaned_name = strip_punc(self.title) super(Track, self).save(*args, **kwargs)
agpl-3.0
LtRipley36706/ACE-World
Database/3-Core/9 WeenieDefaults/SQL/CraftTool/Misc/27767 Aquamarine Prisms.sql
2636
DELETE FROM `weenie` WHERE `class_Id` = 27767; INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`) VALUES (27767, 'toolsunkenmereprisms', 44, '2019-02-10 00:00:00') /* CraftTool */; INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`) VALUES (27767, 1, 128) /* ItemType - Misc */ , (27767, 5, 20) /* EncumbranceVal */ , (27767, 11, 1) /* MaxStackSize */ , (27767, 12, 1) /* StackSize */ , (27767, 13, 20) /* StackUnitEncumbrance */ , (27767, 15, 5000) /* StackUnitValue */ , (27767, 16, 2097160) /* ItemUseable - SourceContainedTargetRemote */ , (27767, 19, 5000) /* Value */ , (27767, 33, 1) /* Bonded - Bonded */ , (27767, 93, 1044) /* PhysicsState - Ethereal, IgnoreCollisions, Gravity */ , (27767, 94, 2048) /* TargetType - Gem */ , (27767, 114, 1) /* Attuned - Attuned */ , (27767, 8041, 101) /* PCAPRecordedPlacement - Resting */; INSERT INTO `weenie_properties_bool` (`object_Id`, `type`, `value`) VALUES (27767, 22, True ) /* Inscribable */; INSERT INTO `weenie_properties_string` (`object_Id`, `type`, `value`) VALUES (27767, 1, 'Aquamarine Prisms') /* Name */ , (27767, 14, 'You are not sure what this artifact can be used on.') /* Use */ , (27767, 15, 'A cluster of aquamarine gems. The gems shimmer, reflect, and refract light, which is an odd quality for aquamarine to possess.') /* ShortDesc */; INSERT INTO `weenie_properties_d_i_d` (`object_Id`, `type`, `value`) VALUES (27767, 1, 33558812) /* Setup */ , (27767, 3, 536870932) /* SoundTable */ , (27767, 8, 100676638) /* Icon */ , (27767, 22, 872415275) /* PhysicsEffectTable */ , (27767, 8001, 2633752) /* PCAPRecordedWeenieHeader - Value, Usable, StackSize, MaxStackSize, TargetType, Burden */ , (27767, 8003, 18) /* PCAPRecordedObjectDesc - Inscribable, Attackable */ , (27767, 8005, 169985) /* PCAPRecordedPhysicsDesc - CSetup, STable, PeTable, Position, AnimationFrame */; INSERT INTO `weenie_properties_position` (`object_Id`, `position_Type`, `obj_Cell_Id`, `origin_X`, `origin_Y`, `origin_Z`, `angles_W`, `angles_X`, `angles_Y`, `angles_Z`) VALUES (27767, 8040, 45285689, 69.6693, -56.4273, -12, -0.9908901, 0, 0, -0.134673) /* PCAPRecordedLocation */ /* @teleloc 0x02B30139 [69.669300 -56.427300 -12.000000] -0.990890 0.000000 0.000000 -0.134673 */; INSERT INTO `weenie_properties_i_i_d` (`object_Id`, `type`, `value`) VALUES (27767, 8000, 2629158029) /* PCAPRecordedObjectIID */;
agpl-3.0
kaltura/kmc-ng
src/shared/content-shared/entries/pipes/entry-duration.pipe.ts
1191
import { Pipe, PipeTransform } from '@angular/core'; import { AppLocalization } from '@kaltura-ng/mc-shared'; import { KalturaMediaType } from 'kaltura-ngx-client'; import { KalturaMediaEntry } from 'kaltura-ngx-client'; import { KalturaExternalMediaEntry } from 'kaltura-ngx-client'; @Pipe({ name: 'entryDuration' }) export class EntryDurationPipe implements PipeTransform { constructor(private appLocalization: AppLocalization) { } transform(value: string, entry: KalturaMediaEntry = null): string { let duration = value; if (entry && entry instanceof KalturaExternalMediaEntry && !entry.duration) { duration = this.appLocalization.get('app.common.n_a'); } else if (entry && entry instanceof KalturaMediaEntry && entry.mediaType) { const type = entry.mediaType.toString(); if (type === KalturaMediaType.liveStreamFlash.toString() || type === KalturaMediaType.liveStreamQuicktime.toString() || type === KalturaMediaType.liveStreamRealMedia.toString() || type === KalturaMediaType.liveStreamWindowsMedia.toString() ) { duration = this.appLocalization.get('app.common.n_a'); } } return duration; } }
agpl-3.0
bdunnette/djecks_anki
migrations/0002_auto__add_deck.py
1388
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Deck' db.create_table(u'djecks_anki_deck', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)), ('description', self.gf('django.db.models.fields.TextField')(blank=True)), ('apkg', self.gf('django.db.models.fields.files.FileField')(max_length=100, blank=True)), )) db.send_create_signal(u'djecks_anki', ['Deck']) def backwards(self, orm): # Deleting model 'Deck' db.delete_table(u'djecks_anki_deck') models = { u'djecks_anki.deck': { 'Meta': {'object_name': 'Deck'}, 'apkg': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}), 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}) } } complete_apps = ['djecks_anki']
agpl-3.0
renderpci/dedalo-4
lib/dedalo/media_engine/lib/ffmpeg_settings/404_pal_4x3.php
752
<?php # FFMPEG SETTING 404_pal $vb = '960k'; # video rate kbs $s = '540x404'; # scale $g = 75; # keyframes interval (gob) $vcodec = 'libx264'; # default libx264 $progresivo = "-vf yadif"; # desentrelazar $gamma_y = "0.97"; # correccion de luminancia $gamma_u = "1.01"; # correccion de B-y $gamma_v = "0.98"; # correccion de R-y $gammma = "-vf lutyuv=\"u=gammaval($gamma_u):v=gammaval($gamma_v):y=gammaval($gamma_y)\""; # corrección de gamma $force = 'mp4'; # default mp4 $ar = 44100; # audio sample rate (22050) $ab = '64k'; # adio rate kbs $ac = "1"; # numero de canales de audio 2 = stereo, 1 = nomo $acodec = 'libvo_aacenc'; # default libvo_aacenc $target_path = "404"; # like '404' ?>
agpl-3.0
nmpgaspar/PainlessProActive
src/Extensions/org/objectweb/proactive/extensions/calcium/system/ProxyFile.java
11732
/* * ################################################################ * * ProActive Parallel Suite(TM): The Java(TM) library for * Parallel, Distributed, Multi-Core Computing for * Enterprise Grids & Clouds * * Copyright (C) 1997-2012 INRIA/University of * Nice-Sophia Antipolis/ActiveEon * Contact: proactive@ow2.org or contact@activeeon.com * * This library 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; version 3 of * the License. * * This library 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 this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * * If needed, contact us to obtain a release under GPL Version 2 or 3 * or a different license than the AGPL. * * Initial developer(s): The ProActive Team * http://proactive.inria.fr/team_members.htm * Contributor(s): * * ################################################################ * $$PROACTIVE_INITIAL_DEV$$ */ package org.objectweb.proactive.extensions.calcium.system; import java.io.File; import java.io.FileFilter; import java.io.FilenameFilter; import java.io.IOException; import java.net.MalformedURLException; import java.net.URI; import java.net.URL; import org.apache.log4j.Logger; import org.objectweb.proactive.core.util.log.Loggers; import org.objectweb.proactive.core.util.log.ProActiveLogger; import org.objectweb.proactive.extensions.calcium.environment.FileServerClient; import org.objectweb.proactive.extensions.calcium.environment.StoredFile; import org.objectweb.proactive.extensions.calcium.statistics.Timer; /** * This class is a Proxy for the real File class. * * @author The ProActive Team */ public class ProxyFile extends File { private static final long serialVersionUID = 54L; static Logger logger = ProActiveLogger.getLogger(Loggers.SKELETONS_SYSTEM); File wspace; public File relative; File current; //current = wspace+"/"+relative StoredFile remote; FileServerClient fserver; long lastmodified; long cachedSize; public long blockedFetchingTime; public long downloadedBytes; public long uploadedBytes; public int refCBefore; public int refCAfter; public ProxyFile(File wspace, File relative) { super(relative.getName()); this.current = new File(wspace, relative.getPath()); this.relative = relative; this.remote = null; setWSpace(null, wspace); this.lastmodified = this.cachedSize = 0; this.blockedFetchingTime = this.uploadedBytes = this.downloadedBytes = 0; this.refCBefore = this.refCAfter = 0; } public ProxyFile(File wspace, String name) { this(wspace, new File(name)); } public void setWSpace(FileServerClient fserver, File wspace) { this.fserver = fserver; this.wspace = wspace; } public void store(FileServerClient fserver, int refCount) throws IOException { this.cachedSize = current.length(); this.uploadedBytes += current.length(); this.remote = fserver.store(current, refCount); this.lastmodified = current.lastModified(); } public void saveRemoteDataInWSpace() throws IOException { int i = 1; if (isLocallyStored()) { return; //Nothing to do, data already donwloaded } current = new File(wspace, relative.getPath()); while (current.exists()) { current = new File(wspace, relative.getPath() + "-" + i++); } if (logger.isDebugEnabled()) { logger.debug("Fetching data into:" + this.current); } fserver.fetch(remote, this.current); this.lastmodified = this.current.lastModified(); this.downloadedBytes += current.length(); } public boolean isRemotelyStored() { return remote != null; } public boolean isLocallyStored() { return current != null; } public boolean hasBeenModified() { /* TODO improve by: * * 1. Also considering the hashcode. * 2. Keeping track of lastModified access. */ if (current == null) { return false; } return lastmodified != current.lastModified(); } public void handleStageOut(FileServerClient fserver) throws IOException { if (isNew()) { if (logger.isDebugEnabled()) { logger.debug("Storing new file: [" + refCBefore + "," + refCAfter + "] " + relative + " (" + current + ")"); } store(fserver, refCAfter); return; } if (isModified()) { if (logger.isDebugEnabled()) { logger.debug("Storing modified file: [" + refCBefore + "," + refCAfter + "] " + relative + " (" + current + ")"); } fserver.commit(remote.fileId, -refCBefore); store(fserver, refCAfter); return; } if (isNormal()) { //&& (refCAfter - refCBefore !=0)){ if (logger.isDebugEnabled()) { logger.debug("Updating normal file: [" + refCBefore + "," + refCAfter + "] " + "name=" + relative + " id=" + remote.fileId + " (" + current + ")"); } fserver.commit(remote.fileId, refCAfter - refCBefore); return; } logger.error("Illegal ProxyFile state: " + refCAfter + "a " + refCBefore + "b" + " data modified=" + hasBeenModified()); //Reached here, not good! throw new IOException("ProxyFile reached illegal state:" + this); } public void setStageOutState() { this.current = null; this.wspace = null; this.fserver = null; this.blockedFetchingTime = this.uploadedBytes = this.downloadedBytes = 0; this.refCBefore = this.refCAfter = 0; } private boolean isNew() { return (this.refCBefore == 0) && (this.refCAfter != 0); } private boolean isNormal() { return (this.refCBefore != 0) && !hasBeenModified(); } private boolean isModified() { return (this.refCBefore != 0) && (this.refCAfter != 0) && hasBeenModified(); } public File getWSpaceFile() { return wspace; } public File getCurrent() { if (current == null) { Timer t = new Timer(); t.start(); logger.debug("Blocking waiting for file's data:" + wspace + "/" + relative); /* try{ throw new Exception(); }catch(Exception e){ e.printStackTrace(); } */ try { saveRemoteDataInWSpace(); } catch (IOException e) { throw new IllegalArgumentException(e); //TODO change this exception type } t.stop(); this.blockedFetchingTime = 1 + t.getTime(); } return current; } /* *********************************************************** * * BEGIN EXTENDED FILE METHODS * * ***********************************************************/ @Override public String getName() { return relative.getName(); } @Override public String getParent() { return getCurrent().getParent(); } @Override public File getParentFile() { return getCurrent().getParentFile(); } @Override public String getPath() { return getCurrent().getPath(); } @Override public boolean isAbsolute() { return getCurrent().isAbsolute(); } @Override public String getAbsolutePath() { return getCurrent().getAbsolutePath(); } @Override public File getAbsoluteFile() { return getCurrent().getAbsoluteFile(); } @Override public String getCanonicalPath() throws IOException { return getCurrent().getCanonicalPath(); } @Override public File getCanonicalFile() throws IOException { return getCurrent().getCanonicalFile(); } @Deprecated @Override public URL toURL() throws MalformedURLException { return getCurrent().toURL(); } @Override public URI toURI() { return getCurrent().toURI(); } @Override public boolean canRead() { return getCurrent().canRead(); } @Override public boolean canWrite() { return getCurrent().canWrite(); } @Override public boolean exists() { return getCurrent().exists(); } @Override public boolean isDirectory() { return getCurrent().isDirectory(); } @Override public boolean isFile() { return getCurrent().isFile(); } @Override public boolean isHidden() { return getCurrent().isHidden(); } @Override public long lastModified() { return getCurrent().lastModified(); } @Override public long length() { if (!isLocallyStored()) { return cachedSize; } return getCurrent().length(); } @Override public boolean createNewFile() throws IOException { return getCurrent().createNewFile(); } @Override public boolean delete() { return getCurrent().delete(); } @Override public void deleteOnExit() { getCurrent().deleteOnExit(); } @Override public String[] list() { return getCurrent().list(); } @Override public String[] list(FilenameFilter filter) { return getCurrent().list(); } @Override public File[] listFiles() { return getCurrent().listFiles(); } @Override public File[] listFiles(FilenameFilter filter) { return getCurrent().listFiles(filter); } @Override public File[] listFiles(FileFilter filter) { return getCurrent().listFiles(filter); } @Override public boolean mkdir() { return getCurrent().mkdir(); } @Override public boolean mkdirs() { return getCurrent().mkdirs(); } @Override public boolean renameTo(File dest) { //TODO check this method boolean res = getCurrent().renameTo(new File(wspace, dest.getPath())); if (res) { relative = dest; } return res; } @Override public boolean setLastModified(long time) { return getCurrent().setLastModified(time); } @Override public boolean setReadOnly() { return getCurrent().setReadOnly(); } @Override public int compareTo(File pathname) { return getCurrent().compareTo(pathname); } @Override public boolean equals(Object obj) { return getCurrent().equals(obj); } @Override public int hashCode() { return getCurrent().hashCode(); } @Override public String toString() { return getCurrent().toString(); } public static void main(String[] args) throws Exception { WSpaceImpl wspace = new WSpaceImpl(new File("/tmp/calcium")); File f = wspace.copyInto(new File("/home/mleyton/IMG00070.jpg")); } }
agpl-3.0
abondis/api-hi
api_hi/helpers/bottle.py
816
from bottle import request class BottleHelper: """map Apify methods to Bottle magic and other helpers""" def __init__(self, app): self.app = app def route(self, path, function, methods=['GET']): self.app.route(path, method=methods, callback=function) def request(self, items=None): if request.json is not None: datas = request.json else: if hasattr(request, 'params'): datas = request.params.dict else: return None if items is None: return datas elif isinstance(items, list): ret = {} for i in items: data = datas.get(i) ret[i] = data return ret else: return datas.get(items)
agpl-3.0
Minds/engine
Core/Payments/Stripe/Customers/Manager.php
1899
<?php namespace Minds\Core\Payments\Stripe\Customers; use Minds\Core\Di\Di; use Minds\Core\Payments\Stripe\Instances\CustomerInstance; use Minds\Core\Payments\Stripe\Instances\PaymentMethodInstance; class Manager { /** @var Lookup $lookup */ private $lookup; private $customerInstance; private $paymentMethodInstance; public function __construct($lookup = null, $customerInstance = null, $paymentMethodInstance = null) { $this->lookup = $lookup ?: Di::_()->get('Database\Cassandra\Lookup'); $this->customerInstance = $customerInstance ?? new CustomerInstance(); $this->paymentMethodInstance = $paymentMethodInstance ?? new PaymentMethodInstance(); } /** * Return a Customer from user guid * @param string $userGuid * @return Customer */ public function getFromUserGuid($userGuid): ?Customer { $customerId = $this->lookup->get("{$userGuid}:payments")['customer_id']; if (!$customerId) { return null; } $stripeCustomer = \Stripe\Customer::retrieve($customerId); if (!$stripeCustomer) { return null; } $customer = new Customer(); $customer->setPaymentSource($stripeCustomer->default_source) ->setUserGuid($userGuid) ->setId($customerId); return $customer; } /** * Add a customer to stripe * @param Customer $customer * @return boolean */ public function add(Customer $customer) : Customer { $stripeCustomer = $this->customerInstance->create([ 'payment_method' => $customer->getPaymentMethod(), ]); $this->lookup->set("{$customer->getUserGuid()}:payments", [ 'customer_id' => (string) $stripeCustomer->id ]); $customer->setId($stripeCustomer->id); return $customer; } }
agpl-3.0
Cosecha/redadalertas-api
src/server/app/api/controllers/alertController.js
3644
import mongoose from 'mongoose'; import Boom from 'boom'; import Bounce from 'bounce'; import { log, logErr } from '../../shared/utils'; import eventStore from '../stores/eventStore'; import alertStore from '../stores/alertStore'; import userStore from '../stores/userStore'; const ObjectId = mongoose.Types.ObjectId; const alertController = { async createAlert(req, h) { let alert = null; let user; let payloadEvent; try { if (!ObjectId.isValid(req.payload.event)) throw new Error("Event ID is not valid."); payloadEvent = await eventStore.getEvent(req.payload.event); if (!payloadEvent) throw new Error("Event not found."); if (req.payload && req.payload["sent.by"]) { if (!ObjectId.isValid(req.payload["sent.by"])) throw new Error("Sent by user ID is not valid."); user = await userStore.getUser(ObjectId(req.payload["sent.by"])); if (!user) throw new Error("Sent by user not found."); } const newLoad = { ...payloadEvent.toObject(), // TO-DO: add parser with string formatting type: payloadEvent.type.toString(), event: ObjectId(req.payload.event), sent: { by: (req.payload["sent.by"]) ? req.payload["sent.by"] : null, at: Date.now() } }; delete newLoad["id"]; alert = await alertStore.createAlert(newLoad); if (!alert) throw new Error("Alert returned empty."); const response = h.response(alert); return response; } catch (err) { if (Bounce.isSystem(err)) logErr("alertController createAlert error: ", err.message || err); return Boom.badRequest(err.message || "Error creating alert."); } }, async updateAlert(req, h) { // updateAlert just sets expireNow to true let alert; let updatedAlert; try { alert = await alertStore.updateAlert(req.params.alertID); if (!alert) throw new Error("Alert not found."); updatedAlert = await alertStore.getAlert(alert.id); const response = h.response(updatedAlert); return response; } catch (err) { if (Bounce.isSystem(err)) logErr("alertController updateAlert error: ", err.message || err); return Boom.badRequest(err.message || "Error updating alert."); } }, async getAlerts(req, h) { // only fetches unexpired alerts let alerts; try { alerts = await alertStore.getAlerts(); if (!alerts) throw new Error("No alerts found."); const response = h.response(alerts); return response; } catch (err) { if (Bounce.isSystem(err)) logErr("alertController getAlerts error: ", err.message || err); return Boom.badRequest(err.message || "Error retrieving alerts."); } }, async getAlert(req, h) { let alert; try { alert = await alertStore.getAlert(ObjectId(req.params.alertID)); if (!alert) throw new Error("Alert not found."); const response = h.response(alert); return response; } catch (err) { if (Bounce.isSystem(err)) logErr("alertController getAlert error: ", err.message || err); return Boom.badRequest(err.message || "Error retrieving alert."); } }, async getAllAlerts(req, h) { let alerts; try { alerts = await alertStore.getAllAlerts(); if (!alerts) throw new Error("No alerts found."); const response = h.response(alerts); return response; } catch (err) { if (Bounce.isSystem(err)) logErr("alertController getAllAlerts error: ", err.message || err); return Boom.badRequest(err.message || "Error retrieving alerts."); } }, }; export default alertController;
agpl-3.0
j2ghz/IntranetGJAK
IntranetGJAK/Models/File.cs
2432
namespace IntranetGJAK.Models { using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using IntranetGJAK.Models.JSON.Blueimp_FileUpload; using IntranetGJAK; public class File { [Key] [Required] public string Id { get; set; } [Required] [Display(Name = "Název souboru")] public string Name { get; set; } [Required] public string Path { get; set; } [Required] [Display(Name = "Velikost")] public long Size { get; set; } [Required] [Display(Name = "Odesílatel")] public string Uploader { get; set; } [Required] [Display(Name = "Datum")] public DateTime DateUploaded { get; set; } public UploadSucceeded ToSerializeable() { return new UploadSucceeded { name = this.Name, size = this.Size, url = "/api/files/" + this.Id, thumbnailUrl = Thumbnails.GetThumbnail(this.Name), deleteUrl = "/api/files/" + this.Id, deleteType = "DELETE" }; } } public interface IFileRepository { void Add(File item); IEnumerable<File> GetAll(); File Find(string key); File Remove(string key); void Update(File item); } public class FileRepository : IFileRepository { private static ConcurrentDictionary<string, File> _Files = new ConcurrentDictionary<string, File>(); public FileRepository() { } public IEnumerable<File> GetAll() { return _Files.Values; } public void Add(File item) { item.Id = Guid.NewGuid().ToString(); _Files[item.Id] = item; } public File Find(string key) { File item; _Files.TryGetValue(key, out item); return item; } public File Remove(string key) { File item; _Files.TryGetValue(key, out item); _Files.TryRemove(key, out item); return item; } public void Update(File item) { _Files[item.Id] = item; } } }
agpl-3.0
DemokratieInBewegung/abstimmungstool
voty/initproc/management/commands/set_quorum.py
2590
from django.core.management.base import BaseCommand, CommandError from voty.initproc.models import Quorum, IssueSupportersQuorum, IssueVotersQuorum from django.contrib.auth import get_user_model from django.utils import timezone from datetime import date from math import ceil """ - Bis 99 Abstimmungsberechtigten 10 Personen - ab 100 bis 299 Abstimmungsberechtigten 15 Personen - ab 300 bis 599 Abstimmungsberechtigten 20 Personen - ab 600 bis 999 Abstimmungsberechtigten 30 Personen - ab 1000 bis 1999 Abstimmungsberechtigten 35 Personen - ab 2000 bis 4999 Abstimmungsberechtigten 50 Personen - ab 5000 Abstimmungsberechtigten 1% der Abstimmungsberechtigten """ class Command(BaseCommand): help = "Calculate the next quorum and set it" def handle(self, *args, **options): now = timezone.now() year = now.year month = now.month # round to turn of month if now.day > 15: month += 1 month -= 6 if month < 1: year -= 1 month += 12 threshold = timezone.datetime(year=year, month=month, day=1, tzinfo=now.tzinfo) total = get_user_model().objects.filter(is_active=True, config__last_activity__gt=threshold).count() totalpartymembers = get_user_model().objects.filter(is_active=True, config__is_party_member=True, config__last_activity__gt=threshold).count() print("Total active users: {}".format(total)) print("Total active party members: {}".format(totalpartymembers)) #Quorum for Issue Support quorum = ceil(total / 20.0) if quorum < 5: quorum = 5 IssueSupportersQuorum(value=quorum).save() print("Issue Support Quorum set to {}".format(quorum)) #Quorum for Issue Voting quorum = ceil(totalpartymembers / 10.0) if quorum < 5: quorum = 5 #commented out because it is now set manually, 10% of all party members, not only of those who have a login or are active in Plenum #IssueVotersQuorum(value=quorum).save() #print("Issue Voting Quorum set to {}".format(quorum)) quorum = ceil(total / 100.0) if total < 100: quorum = 10 elif total < 300: quorum = 15 elif total < 600: quorum = 20 elif total < 1000: quorum = 30 elif total < 2000: quorum = 35 elif total < 5000: quorum = 50 Quorum(quorum=quorum).save() print("Initiatives Quorum set to {}".format(quorum))
agpl-3.0
ama-axelor/axelor-business-suite
axelor-bank-payment/src/main/java/com/axelor/apps/bankpayment/db/repo/MoveBankPaymentRepository.java
1337
/* * Axelor Business Solutions * * Copyright (C) 2019 Axelor (<http://axelor.com>). * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ package com.axelor.apps.bankpayment.db.repo; import com.axelor.apps.account.db.Move; import com.axelor.apps.account.db.MoveLine; import com.axelor.apps.account.db.repo.MoveManagementRepository; import java.math.BigDecimal; import java.util.List; public class MoveBankPaymentRepository extends MoveManagementRepository { @Override public Move copy(Move entity, boolean deep) { Move copy = super.copy(entity, deep); List<MoveLine> moveLineList = copy.getMoveLineList(); if (moveLineList != null) { moveLineList.forEach(moveLine -> moveLine.setBankReconciledAmount(BigDecimal.ZERO)); } return copy; } }
agpl-3.0
elabftw/elabftw
src/tools/cleanup.php
1014
<?php declare(strict_types=1); /** * @author Nicolas CARPi <nico-git@deltablot.email> * @copyright 2012 Nicolas CARPi * @see https://www.elabftw.net Official website * @license AGPL-3.0 * @package elabftw */ namespace Elabftw\Services; use function dirname; use Elabftw\Exceptions\DatabaseErrorException; use Elabftw\Exceptions\FilesystemErrorException; use League\Flysystem\Adapter\Local; use League\Flysystem\Filesystem; /** * This is used to find out if there are untracked files that should have been deleted * but were not deleted because of a bug fixed in 2.0.7 */ require_once dirname(__DIR__, 2) . '/vendor/autoload.php'; require_once dirname(__DIR__, 2) . '/config.php'; try { $uploadsDir = dirname(__DIR__, 2) . '/uploads'; $UploadsCleaner = new UploadsCleaner(new Filesystem(new Local($uploadsDir))); $deleted = $UploadsCleaner->cleanup(); printf("Deleted %d files\n", $deleted); } catch (FilesystemErrorException | DatabaseErrorException $e) { echo $e->getMessage(); }
agpl-3.0
mkl-public/testarea-itext5
src/test/java/mkl/testarea/itext5/content/CellsWithPercentileBackground.java
2894
package mkl.testarea.itext5.content; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import org.junit.BeforeClass; import org.junit.Test; import com.itextpdf.text.BaseColor; import com.itextpdf.text.Chunk; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.Font; import com.itextpdf.text.Font.FontFamily; import com.itextpdf.text.Phrase; import com.itextpdf.text.pdf.PdfPCell; import com.itextpdf.text.pdf.PdfPTable; import com.itextpdf.text.pdf.PdfWriter; /** * @author mkl */ public class CellsWithPercentileBackground { final static File RESULT_FOLDER = new File("target/test-outputs", "content"); @BeforeClass public static void setUpBeforeClass() throws Exception { RESULT_FOLDER.mkdirs(); } /** * <a href="https://stackoverflow.com/questions/46869670/itext-5-create-pdfpcell-containing-2-background-colors-with-text-overlap"> * iText 5: create PdfPcell containing 2 background colors with text overlap * </a> * <p> * This test creates a table with cells that have backgrounds * which represent percentile values. To do so it makes use of the * {@link PercentileCellBackground} cell event listener. * </p> * * @author mkl */ @Test public void testCreateTableWithCellsWithPercentileBackground() throws DocumentException, IOException { Document document = new Document(); try (OutputStream os = new FileOutputStream(new File(RESULT_FOLDER, "TableWithCellsWithPercentileBackground.pdf"))) { PdfWriter.getInstance(document, os); document.open(); Font font = new Font(FontFamily.UNDEFINED, Font.UNDEFINED, Font.UNDEFINED, BaseColor.WHITE); PdfPTable table = new PdfPTable(2); table.setWidthPercentage(40); PdfPCell cell = new PdfPCell(new Phrase("Group A")); table.addCell(cell); cell = new PdfPCell(new Phrase(new Chunk("60 Pass, 40 Fail", font))); cell.setCellEvent(new PercentileCellBackground(60, BaseColor.GREEN, BaseColor.RED)); table.addCell(cell); cell = new PdfPCell(new Phrase("Group B")); table.addCell(cell); cell = new PdfPCell(new Phrase(new Chunk("70 Pass, 30 Fail", font))); cell.setCellEvent(new PercentileCellBackground(70, BaseColor.GREEN, BaseColor.RED)); table.addCell(cell); cell = new PdfPCell(new Phrase("Group C")); table.addCell(cell); cell = new PdfPCell(new Phrase(new Chunk("50 Pass, 50 Fail", font))); cell.setCellEvent(new PercentileCellBackground(50, BaseColor.GREEN, BaseColor.RED)); table.addCell(cell); document.add(table); document.close(); } } }
agpl-3.0
Barsonax/Pathfindax
src/Pathfindax/Factories/NodeGridCollisionMask.cs
933
using Pathfindax.Nodes; namespace Pathfindax.Factories { public class NodeGridCollisionMask { public int Width { get; private set; } public int Height { get; private set; } public NodeGridCollisionLayer[] Layers { get; private set; } public NodeGridCollisionMask(PathfindaxCollisionCategory collisionCategory, int width, int height) { Initialize(new []{collisionCategory}, width, height); } public NodeGridCollisionMask(PathfindaxCollisionCategory[] collisionCategories, int width, int height) { Initialize(collisionCategories, width, height); } private void Initialize(PathfindaxCollisionCategory[] collisionCategories, int width, int height) { Width = width; Height = height; Layers = new NodeGridCollisionLayer[collisionCategories.Length]; for (int i = 0; i < Layers.Length; i++) { Layers[i] = new NodeGridCollisionLayer(collisionCategories[i], width, height); } } } }
agpl-3.0
archivers-space/archivers-api
collection_handlers.go
1335
package main import ( "github.com/datatogether/api/apiutil" "github.com/datatogether/core" "net/http" ) func CollectionHandler(w http.ResponseWriter, r *http.Request) { switch r.Method { case "OPTIONS": EmptyOkHandler(w, r) case "GET": GetCollectionHandler(w, r) default: NotFoundHandler(w, r) } } func CollectionsHandler(w http.ResponseWriter, r *http.Request) { switch r.Method { case "GET": ListCollectionsHandler(w, r) default: NotFoundHandler(w, r) } } func GetCollectionHandler(w http.ResponseWriter, r *http.Request) { res := &core.Collection{} args := &CollectionsGetParams{ Id: r.URL.Path[len("/collections/"):], // Collection: r.FormValue("collection"), // Hash: r.FormValue("hash"), } err := new(Collections).Get(args, res) if err != nil { apiutil.WriteErrResponse(w, http.StatusInternalServerError, err) return } apiutil.WriteResponse(w, res) } func ListCollectionsHandler(w http.ResponseWriter, r *http.Request) { p := apiutil.PageFromRequest(r) res := make([]*core.Collection, p.Size) args := &CollectionsListParams{ Limit: p.Limit(), Offset: p.Offset(), OrderBy: "created", } err := new(Collections).List(args, &res) if err != nil { apiutil.WriteErrResponse(w, http.StatusInternalServerError, err) return } apiutil.WritePageResponse(w, res, r, p) }
agpl-3.0
cm-is-dog/rapidminer-studio-core
src/main/java/com/rapidminer/gui/viewer/ANOVAMatrixViewerTableModel.java
2174
/** * Copyright (C) 2001-2017 by RapidMiner and the contributors * * Complete list of developers available at our web site: * * http://rapidminer.com * * This program 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. * * This program 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 this program. * If not, see http://www.gnu.org/licenses/. */ package com.rapidminer.gui.viewer; import com.rapidminer.operator.visualization.dependencies.ANOVAMatrix; import com.rapidminer.tools.Tools; import javax.swing.table.AbstractTableModel; /** * The model for the {@link com.rapidminer.gui.viewer.ANOVAMatrixViewerTable}. * * @author Ingo Mierswa */ public class ANOVAMatrixViewerTableModel extends AbstractTableModel { private static final long serialVersionUID = -5732155307505605893L; private ANOVAMatrix matrix; /** * Instantiates a new Anova matrix viewer table model. * * @param matrix the matrix */ public ANOVAMatrixViewerTableModel(ANOVAMatrix matrix) { this.matrix = matrix; } @Override public int getRowCount() { return matrix.getAnovaAttributeNames().size(); } @Override public int getColumnCount() { return matrix.getGroupingAttributeNames().size() + 1; } @Override public String getColumnName(int col) { if (col == 0) { return "ANOVA Attribute"; } else { return "group " + matrix.getGroupingAttributeNames().get(col - 1); } } @Override public Object getValueAt(int row, int col) { if (col == 0) { return matrix.getAnovaAttributeNames().get(row); } else { return Tools.formatNumber(matrix.getProbabilities()[row][col - 1]); } } }
agpl-3.0
harryross/platform
web/templates/channel.html
2145
{{define "channel"}} <!DOCTYPE html> <html> {{template "head" . }} <body> <div id="error_bar"></div> <div class="container-fluid"> <div class="sidebar--right" id="sidebar-right"></div> <div class="sidebar--menu" id="sidebar-menu"></div> <div class="sidebar--left" id="sidebar-left"></div> <div class="inner__wrap channel__wrap"> <div class="row header"> <div id="navbar"></div> </div> <div class="row main"> <div id="file_upload_overlay"></div> <div id="app-content" class="app__content"> <div id="channel-header"></div> <div id="post-list"></div> <div class="post-create__container" id="post-create"></div> </div> </div> </div> </div> <div id="channel_loader"></div> <div id="post_mention_tab"></div> <div id="reply_mention_tab"></div> <div id="edit_mention_tab"></div> <div id="get_link_modal"></div> <div id="user_settings_modal"></div> <div id="team_settings_modal"></div> <div id="invite_member_modal"></div> <div id="edit_channel_modal"></div> <div id="delete_channel_modal"></div> <div id="rename_channel_modal"></div> <div id="rename_team_modal"></div> <div id="edit_post_modal"></div> <div id="delete_post_modal"></div> <div id="more_channels_modal"></div> <div id="new_channel_modal"></div> <div id="post_deleted_modal"></div> <div id="channel_notifications_modal"></div> <div id="channel_members_modal"></div> <div id="channel_invite_modal"></div> <div id="team_members_modal"></div> <div id="direct_channel_modal"></div> <div id="channel_info_modal"></div> <div id="access_history_modal"></div> <div id="activity_log_modal"></div> <div id="removed_from_channel_modal"></div> <script> window.setup_channel_page('{{ .Props.TeamDisplayName }}', '{{ .Props.TeamType }}', '{{ .Props.TeamId }}', '{{ .Props.ChannelName }}', '{{ .Props.ChannelId }}'); $('body').tooltip( {selector: '[data-toggle=tooltip]'} ); $('.modal-body').css('max-height', $(window).height() * 0.7); $('.modal-body').perfectScrollbar(); </script> </body> </html> {{end}}
agpl-3.0
appknox/irene
app/initializers/irene.js
4399
import ENV from 'irene/config/environment'; class ENVHandler { constructor(envHandlerConst) { this.envHandlerConst = envHandlerConst; } isRuntimeAvailable() { return !(typeof runtimeGlobalConfig == 'undefined'); } getEnv(env_key) { const host_key = 'IRENE_API_HOST'; this.assertEnvKey(env_key); if (this.isAvailableInRuntimeENV(env_key)) { const runtimeValue = this.getRuntimeObject()[env_key]; if (env_key === host_key) { if (runtimeValue === '/') { return ''; } } return runtimeValue; } if (this.isAvailableInProcessENV(env_key)) { const processValue = this.envHandlerConst.processENV[env_key]; if (env_key === host_key) { if (processValue === '/') { return ''; } } return processValue; } return this.getDefault(env_key); } isRegisteredEnv(env_key) { return this.envHandlerConst.possibleENVS.indexOf(env_key) > -1; } isAvailableInENV(env_key) { return ( this.isAvailableInRuntimeENV(env_key) || this.isAvailableInProcessENV(env_key) ); } getRuntimeObject() { if (this.isRuntimeAvailable()) { return runtimeGlobalConfig; // eslint-disable-line } return {}; } isAvailableInRuntimeENV(env_key) { const runtimeObj = this.getRuntimeObject(); return env_key in runtimeObj; } isAvailableInProcessENV(env_key) { return env_key in this.envHandlerConst.processENV; } assertEnvKey(env_key) { if (!this.isRegisteredEnv(env_key)) { throw new Error(`ENV: ${env_key} not registered`); } } isTrue(value) { value = String(value).toLowerCase(); return value === 'true'; } getBoolean(env_key) { return this.isTrue(this.getEnv(env_key)); } getDefault(env_key) { this.assertEnvKey(env_key); return this.envHandlerConst.defaults[env_key]; } getValueForPlugin(env_key) { const enterpriseKey = 'ENTERPRISE'; this.assertEnvKey(enterpriseKey); this.assertEnvKey(env_key); if (this.isAvailableInENV(env_key)) { return this.getBoolean(env_key); } if (this.isAvailableInENV(enterpriseKey)) { return !this.getBoolean(enterpriseKey); } return this.getDefault(env_key); } } const handler = new ENVHandler(ENV.ENVHandlerCONST); const initialize = function (application) { // inject Ajax application.inject('route', 'ajax', 'service:ajax'); application.inject('component', 'ajax', 'service:ajax'); // Inject notify application.inject('route', 'notify', 'service:notifications'); application.inject('component', 'notify', 'service:notifications'); application.inject('authenticator', 'notify', 'service:notifications'); // Inject realtime application.inject('component', 'realtime', 'service:realtime'); // Inject Store application.inject('component', 'store', 'service:store'); ENV.host = handler.getEnv('IRENE_API_HOST'); ENV.devicefarmHost = handler.getEnv('IRENE_DEVICEFARM_HOST'); ENV.isEnterprise = handler.getBoolean('ENTERPRISE'); ENV.showLicense = handler.getBoolean('IRENE_SHOW_LICENSE'); ENV.whitelabel = Object.assign({}, ENV.whitelabel, { enabled: handler.getBoolean('WHITELABEL_ENABLED'), }); if (ENV.whitelabel.enabled) { ENV.whitelabel = Object.assign({}, ENV.whitelabel, { enabled: handler.getBoolean('WHITELABEL_ENABLED'), // adding for consistency name: handler.getEnv('WHITELABEL_NAME'), logo: handler.getEnv('WHITELABEL_LOGO'), theme: handler.getEnv('WHITELABEL_THEME'), favicon: handler.getEnv('WHITELABEL_FAVICON'), }); } ENV.enableHotjar = handler.getValueForPlugin('IRENE_ENABLE_HOTJAR'); ENV.enablePendo = handler.getValueForPlugin('IRENE_ENABLE_PENDO'); ENV.enableCSB = handler.getValueForPlugin('IRENE_ENABLE_CSB'); ENV.enableMarketplace = handler.getValueForPlugin('IRENE_ENABLE_MARKETPLACE'); ENV.emberRollbarClient = { enabled: handler.getValueForPlugin('IRENE_ENABLE_ROLLBAR'), }; // Inject ENV if (ENV.environment !== 'test') { // FIXME: Fix this test properly application.register('env:main', ENV, { singleton: true, instantiate: false, }); return application.inject('component', 'env', 'env:main'); } }; const IreneInitializer = { name: 'irene', initialize, }; export { initialize }; export default IreneInitializer;
agpl-3.0
ACEmulator/ACE-World
Database/3-Core/9 WeenieDefaults/SQL/Creature/Shadow/51879 Enraged Shadow.sql
2476
DELETE FROM `weenie` WHERE `class_Id` = 51879; INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`) VALUES (51879, 'ace51879-enragedshadow', 10, '2019-02-10 00:00:00') /* Creature */; INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`) VALUES (51879, 1, 16) /* ItemType - Creature */ , (51879, 2, 22) /* CreatureType - Shadow */ , (51879, 6, -1) /* ItemsCapacity */ , (51879, 7, -1) /* ContainersCapacity */ , (51879, 16, 1) /* ItemUseable - No */ , (51879, 25, 240) /* Level */ , (51879, 93, 4195336) /* PhysicsState - ReportCollisions, Gravity, EdgeSlide */ , (51879, 133, 2) /* ShowableOnRadar - ShowMovement */ , (51879, 8007, 0) /* PCAPRecordedAutonomousMovement */; INSERT INTO `weenie_properties_bool` (`object_Id`, `type`, `value`) VALUES (51879, 1, True ) /* Stuck */; INSERT INTO `weenie_properties_string` (`object_Id`, `type`, `value`) VALUES (51879, 1, 'Enraged Shadow') /* Name */ , (51879, 8006, 'AAA9AAAAAAA=') /* PCAPRecordedCurrentMotionState */; INSERT INTO `weenie_properties_d_i_d` (`object_Id`, `type`, `value`) VALUES (51879, 1, 0x02001BFC) /* Setup */ , (51879, 2, 0x090001FF) /* MotionTable */ , (51879, 3, 0x20000002) /* SoundTable */ , (51879, 8, 0x06001BBE) /* Icon */ , (51879, 22, 0x34000063) /* PhysicsEffectTable */ , (51879, 8001, 8388630) /* PCAPRecordedWeenieHeader - ItemsCapacity, ContainersCapacity, Usable, RadarBehavior */ , (51879, 8003, 20) /* PCAPRecordedObjectDesc - Stuck, Attackable */ , (51879, 8005, 104451) /* PCAPRecordedPhysicsDesc - CSetup, MTable, STable, PeTable, Position, Movement */; INSERT INTO `weenie_properties_position` (`object_Id`, `position_Type`, `obj_Cell_Id`, `origin_X`, `origin_Y`, `origin_Z`, `angles_W`, `angles_X`, `angles_Y`, `angles_Z`) VALUES (51879, 8040, 0x2D300018, 55.77118, 188.3449, 89.72005, -0.734158, 0, 0, -0.678979) /* PCAPRecordedLocation */ /* @teleloc 0x2D300018 [55.771180 188.344900 89.720050] -0.734158 0.000000 0.000000 -0.678979 */; INSERT INTO `weenie_properties_i_i_d` (`object_Id`, `type`, `value`) VALUES (51879, 8000, 0xDD01E4C0) /* PCAPRecordedObjectIID */; INSERT INTO `weenie_properties_attribute_2nd` (`object_Id`, `type`, `init_Level`, `level_From_C_P`, `c_P_Spent`, `current_Level`) VALUES (51879, 1, 0, 0, 0, 2380) /* MaxHealth */;
agpl-3.0
StratusLab/claudia
clotho/src/main/java/org/dmtf/schemas/wbem/wscim/_1/cim_schema/_2/cim_softwarefeature/ProductName.java
1261
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2011.12.12 at 03:51:35 PM CET // package org.dmtf.schemas.wbem.wscim._1.cim_schema._2.cim_softwarefeature; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import org.dmtf.schemas.wbem.wscim._1.common.CimString; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;simpleContent> * &lt;restriction base="&lt;http://schemas.dmtf.org/wbem/wscim/1/common>cimString"> * &lt;anyAttribute processContents='lax'/> * &lt;/restriction> * &lt;/simpleContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "ProductName") public class ProductName extends CimString { }
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/mobile/endor/bloodseeker_mite_hunter.lua
914
bloodseeker_mite_hunter = Creature:new { objectName = "@mob/creature_names:bloodseeker_mite_hunter", socialGroup = "bloodseeker", faction = "", level = 31, chanceHit = 0.36, damageMin = 315, damageMax = 340, baseXp = 3097, baseHAM = 5900, baseHAMmax = 7200, armor = 0, resists = {115,145,-1,180,-1,180,180,15,-1}, meatType = "meat_insect", meatAmount = 15, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY, creatureBitmask = PACK, optionsBitmask = AIENABLED, diet = CARNIVORE, templates = {"object/mobile/bloodseeker_mite.iff"}, scale = 1.1, lootGroups = {}, weapons = {"creature_spit_small_red"}, conversationTemplate = "", attacks = { {"dizzyattack",""}, {"posturedownattack",""} } } CreatureTemplates:addCreatureTemplate(bloodseeker_mite_hunter, "bloodseeker_mite_hunter")
agpl-3.0
quillford/Cura
cura/ConvexHullNode.py
2406
# Copyright (c) 2015 Ultimaker B.V. # Cura is released under the terms of the AGPLv3 or higher. from UM.Scene.SceneNode import SceneNode from UM.Resources import Resources from UM.Math.Color import Color from UM.Math.Vector import Vector from UM.Mesh.MeshData import MeshData import numpy class ConvexHullNode(SceneNode): def __init__(self, node, hull, parent = None): super().__init__(parent) self.setCalculateBoundingBox(False) self._material = None self._original_parent = parent self._inherit_orientation = False self._inherit_scale = False self._node = node self._node.transformationChanged.connect(self._onNodePositionChanged) self._node.parentChanged.connect(self._onNodeParentChanged) #self._onNodePositionChanged(self._node) self._hull = hull hull_points = self._hull.getPoints() center = (hull_points.min(0) + hull_points.max(0)) / 2.0 mesh = MeshData() mesh.addVertex(center[0], 0.1, center[1]) for point in hull_points: mesh.addVertex(point[0], 0.1, point[1]) indices = [] for i in range(len(hull_points) - 1): indices.append([0, i + 1, i + 2]) indices.append([0, mesh.getVertexCount() - 1, 1]) mesh.addIndices(numpy.array(indices, numpy.int32)) self.setMeshData(mesh) def getWatchedNode(self): return self._node def render(self, renderer): if not self._material: self._material = renderer.createMaterial(Resources.getPath(Resources.ShadersLocation, "basic.vert"), Resources.getPath(Resources.ShadersLocation, "color.frag")) self._material.setUniformValue("u_color", Color(35, 35, 35, 128)) renderer.queueNode(self, material = self._material, transparent = True) return True def _onNodePositionChanged(self, node): #self.setPosition(node.getWorldPosition()) if hasattr(node, "_convex_hull"): delattr(node, "_convex_hull") self.setParent(None) #self._node.transformationChanged.disconnect(self._onNodePositionChanged) #self._node.parentChanged.disconnect(self._onNodeParentChanged) def _onNodeParentChanged(self, node): if node.getParent(): self.setParent(self._original_parent) else: self.setParent(None)
agpl-3.0