code
stringlengths
5
1.01M
repo_name
stringlengths
5
84
path
stringlengths
4
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
5
1.01M
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * @category Zend * @package Zend_Service * @subpackage DeveloperGarden * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @version $Id: BaseUserService.php 24594 2012-01-05 21:27:01Z matthew $ */ /** * @see Zend_Service_DeveloperGarden_Client_ClientAbstract */ //require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php'; /** * @see Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse */ //require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/GetQuotaInformationResponse.php'; /** * @see Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse */ //require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/ChangeQuotaPoolResponse.php'; /** * @see Zend_Service_DeveloperGarden_Response_BaseUserService_GetAccountBalanceResponse */ //require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/GetAccountBalanceResponse.php'; /** * @see Zend_Service_DeveloperGarden_BaseUserService_AccountBalance */ //require_once 'Zend/Service/DeveloperGarden/BaseUserService/AccountBalance.php'; /** * @see Zend_Service_DeveloperGarden_Request_BaseUserService_GetQuotaInformation */ //require_once 'Zend/Service/DeveloperGarden/Request/BaseUserService/GetQuotaInformation.php'; /** * @see Zend_Service_DeveloperGarden_Request_BaseUserService_ChangeQuotaPool */ //require_once 'Zend/Service/DeveloperGarden/Request/BaseUserService/ChangeQuotaPool.php'; /** * @see Zend_Service_DeveloperGarden_Request_BaseUserService_GetAccountBalance */ //require_once 'Zend/Service/DeveloperGarden/Request/BaseUserService/GetAccountBalance.php'; /** * @category Zend * @package Zend_Service * @subpackage DeveloperGarden * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @author Marco Kaiser * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Service_DeveloperGarden_BaseUserService extends Zend_Service_DeveloperGarden_Client_ClientAbstract { /** * wsdl file * * @var string */ protected $_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-admin/services/ODGBaseUserService?wsdl'; /** * wsdl file local * * @var string */ protected $_wsdlFileLocal = 'Wsdl/ODGBaseUserService.wsdl'; /** * Response, Request Classmapping * * @var array * */ protected $_classMap = array( 'getQuotaInformationResponse' => 'Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse', 'changeQuotaPoolResponse' => 'Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse', 'getAccountBalanceResponse' => 'Zend_Service_DeveloperGarden_Response_BaseUserService_GetAccountBalanceResponse', 'AccountBalance' => 'Zend_Service_DeveloperGarden_BaseUserService_AccountBalance', ); /** * array with all QuotaModuleIds * * @var array */ protected $_moduleIds = array( 'SmsProduction' => 'SmsProduction', 'SmsSandbox' => 'SmsSandbox', 'VoiceCallProduction' => 'VoiceButlerProduction', 'VoiceCallSandbox' => 'VoiceButlerSandbox', 'ConferenceCallProduction' => 'CCSProduction', 'ConferenceCallSandbox' => 'CCSSandbox', 'LocalSearchProduction' => 'localsearchProduction', 'LocalSearchSandbox' => 'localsearchSandbox', 'IPLocationProduction' => 'IPLocationProduction', 'IPLocationSandbox' => 'IPLocationSandbox' ); /** * returns an array with all possible ModuleIDs * * @return array */ public function getModuleIds() { return $this->_moduleIds; } /** * checks the moduleId and throws exception if not valid * * @param string $moduleId * @throws Zend_Service_DeveloperGarden_Client_Exception * @return void */ protected function _checkModuleId($moduleId) { if (!in_array($moduleId, $this->_moduleIds)) { //require_once 'Zend/Service/DeveloperGarden/Client/Exception.php'; throw new Zend_Service_DeveloperGarden_Client_Exception('moduleId not valid'); } } /** * returns the correct module string * * @param string $module * @param integer $environment * @return string */ protected function _buildModuleString($module, $environment) { $moduleString = $module; switch($environment) { case self::ENV_PRODUCTION : $moduleString .= 'Production'; break; case self::ENV_SANDBOX : $moduleString .= 'Sandbox'; break; default: //require_once 'Zend/Service/DeveloperGarden/Client/Exception.php'; throw new Zend_Service_DeveloperGarden_Client_Exception( 'Not a valid environment supplied.' ); } if (!in_array($moduleString, $this->_moduleIds)) { //require_once 'Zend/Service/DeveloperGarden/Client/Exception.php'; throw new Zend_Service_DeveloperGarden_Client_Exception( 'Not a valid module name supplied.' ); } return $moduleString; } /** * returns the request object with the specific moduleId * * @param string $moduleId * @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse */ protected function _getRequestModule($moduleId) { return new Zend_Service_DeveloperGarden_Request_BaseUserService_GetQuotaInformation( $moduleId ); } /** * returns the request object with the specific moduleId and new quotaMax value * * @param string $moduleId * @param integer $quotaMax * @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse */ protected function _getChangeRequestModule($moduleId, $quotaMax) { return new Zend_Service_DeveloperGarden_Request_BaseUserService_ChangeQuotaPool( $moduleId, $quotaMax ); } /** * returns the Quota Information for SMS Service * * @param int $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse */ public function getSmsQuotaInformation($environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('Sms', $environment); $request = $this->_getRequestModule($moduleId); return $this->getQuotaInformation($request); } /** * returns the Quota Information for VoiceCall Service * * @param int $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse */ public function getVoiceCallQuotaInformation($environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('VoiceButler', $environment); $request = $this->_getRequestModule($moduleId); return $this->getQuotaInformation($request); } /** * returns the Quota Information for SMS ConferenceCall * * @param int $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse */ public function getConfernceCallQuotaInformation($environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('CCS', $environment); $request = $this->_getRequestModule($moduleId); return $this->getQuotaInformation($request); } /** * returns the Quota Information for LocaleSearch Service * * @param int $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse */ public function getLocalSearchQuotaInformation($environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('localsearch', $environment); $request = $this->_getRequestModule($moduleId); return $this->getQuotaInformation($request); } /** * returns the Quota Information for IPLocation Service * * @param int $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse */ public function getIPLocationQuotaInformation($environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('IPLocation', $environment); $request = $this->_getRequestModule($moduleId); return $this->getQuotaInformation($request); } /** * returns the quota information * * @param Zend_Service_DeveloperGarden_Request_BaseUserService $request * @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse */ public function getQuotaInformation( Zend_Service_DeveloperGarden_Request_BaseUserService_GetQuotaInformation $request ) { $this->_checkModuleId($request->getModuleId()); return $this->getSoapClient() ->getQuotaInformation($request) ->parse(); } /** * sets new user quota for the sms service * * @param integer $quotaMax * @param integer $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse */ public function changeSmsQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('Sms', $environment); $request = $this->_getChangeRequestModule($moduleId, $quotaMax); return $this->changeQuotaPool($request); } /** * sets new user quota for the voice call service * * @param integer $quotaMax * @param integer $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse */ public function changeVoiceCallQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('VoiceButler', $environment); $request = $this->_getChangeRequestModule($moduleId, $quotaMax); return $this->changeQuotaPool($request); } /** * sets new user quota for the IPLocation service * * @param integer $quotaMax * @param integer $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse */ public function changeIPLocationQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('IPLocation', $environment); $request = $this->_getChangeRequestModule($moduleId, $quotaMax); return $this->changeQuotaPool($request); } /** * sets new user quota for the Conference Call service * * @param integer $quotaMax * @param integer $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse */ public function changeConferenceCallQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('CCS', $environment); $request = $this->_getChangeRequestModule($moduleId, $quotaMax); return $this->changeQuotaPool($request); } /** * sets new user quota for the Local Search service * * @param integer $quotaMax * @param integer $environment * @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse */ public function changeLocalSearchQuotaPool($quotaMax = 0, $environment = self::ENV_PRODUCTION) { self::checkEnvironment($environment); $moduleId = $this->_buildModuleString('localsearch', $environment); $request = $this->_getChangeRequestModule($moduleId, $quotaMax); return $this->changeQuotaPool($request); } /** * set new quota values for the defined module * * @param Zend_Service_DeveloperGarden_Request_BaseUserService_ChangeQuotaPool $request * @return Zend_Service_DeveloperGarden_Response_BaseUserService_ChangeQuotaPoolResponse */ public function changeQuotaPool( Zend_Service_DeveloperGarden_Request_BaseUserService_ChangeQuotaPool $request ) { $this->_checkModuleId($request->getModuleId()); return $this->getSoapClient() ->changeQuotaPool($request) ->parse(); } /** * get the result for a list of accounts * * @param array $accounts * @return Zend_Service_DeveloperGarden_Response_BaseUserService_GetAccountBalanceResponse */ public function getAccountBalance(array $accounts = array()) { $request = new Zend_Service_DeveloperGarden_Request_BaseUserService_GetAccountBalance( $accounts ); return $this->getSoapClient() ->getAccountBalance($request) ->parse(); } }
sadiqdon/cycommerce
common/lib/Zend/Service/DeveloperGarden/BaseUserService.php
PHP
gpl-3.0
14,198
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 16729, 2094, 7705, 1008, 1008, 6105, 1008, 1008, 2023, 3120, 5371, 2003, 3395, 2000, 1996, 2047, 18667, 2094, 6105, 2008, 2003, 24378, 1008, 2007, 2023, 7427, 1999, 1996, 5371, 6105, 1012, 19067, 2102, 1012, 1008, 2009, 2003, 2036, 2800, 2083, 1996, 2088, 1011, 2898, 1011, 4773, 2012, 2023, 24471, 2140, 1024, 1008, 8299, 1024, 1013, 1013, 7705, 1012, 16729, 2094, 1012, 4012, 1013, 6105, 1013, 2047, 1011, 18667, 2094, 1008, 2065, 2017, 2106, 2025, 4374, 1037, 6100, 1997, 1996, 6105, 1998, 2024, 4039, 2000, 1008, 6855, 2009, 2083, 1996, 2088, 1011, 2898, 1011, 4773, 1010, 3531, 4604, 2019, 10373, 1008, 2000, 6105, 1030, 16729, 2094, 1012, 4012, 2061, 2057, 2064, 4604, 2017, 1037, 6100, 3202, 1012, 1008, 1008, 1030, 4696, 16729, 2094, 1008, 1030, 7427, 16729, 2094, 1035, 2326, 1008, 1030, 4942, 23947, 4270, 9722, 13444, 2368, 1008, 1030, 9385, 9385, 1006, 1039, 1007, 2384, 1011, 2262, 16729, 2094, 6786, 3915, 4297, 1012, 1006, 8299, 1024, 1013, 1013, 7479, 1012, 16729, 2094, 1012, 4012, 1007, 1008, 1030, 6105, 8299, 1024, 1013, 1013, 7705, 1012, 16729, 2094, 1012, 4012, 1013, 6105, 1013, 2047, 1011, 18667, 2094, 2047, 18667, 2094, 6105, 1008, 1030, 2544, 1002, 8909, 1024, 2918, 20330, 8043, 7903, 2063, 1012, 25718, 21005, 2683, 2549, 2262, 1011, 5890, 1011, 5709, 2538, 1024, 2676, 1024, 5890, 2480, 5487, 1002, 1008, 1013, 1013, 1008, 1008, 1008, 1030, 2156, 16729, 2094, 1035, 2326, 1035, 9722, 13444, 2368, 1035, 7396, 1035, 7396, 7875, 20528, 6593, 1008, 1013, 1013, 1013, 5478, 1035, 2320, 1005, 16729, 2094, 1013, 2326, 1013, 9722, 13444, 2368, 1013, 7396, 1013, 7396, 7875, 20528, 6593, 1012, 25718, 1005, 1025, 1013, 1008, 1008, 1008, 1030, 2156, 16729, 2094, 1035, 2326, 1035, 9722, 13444, 2368, 1035, 3433, 1035, 2918, 20330, 8043, 7903, 2063, 1035, 2131, 28940, 17287, 2378, 14192, 3370, 6072, 26029, 3366, 1008, 1013, 1013, 1013, 5478, 1035, 2320, 1005, 16729, 2094, 1013, 2326, 1013, 9722, 13444, 2368, 1013, 3433, 1013, 2918, 20330, 8043, 7903, 2063, 1013, 2131, 28940, 17287, 2378, 14192, 3370, 6072, 26029, 3366, 1012, 25718, 1005, 1025, 1013, 1008, 1008, 1008, 1030, 2156, 16729, 2094, 1035, 2326, 1035, 9722, 13444, 2368, 1035, 3433, 1035, 2918, 20330, 8043, 7903, 2063, 1035, 2689, 28940, 17287, 16869, 6072, 26029, 3366, 1008, 1013, 1013, 1013, 5478, 1035, 2320, 1005, 16729, 2094, 1013, 2326, 1013, 9722, 13444, 2368, 1013, 3433, 1013, 2918, 20330, 8043, 7903, 2063, 1013, 2689, 28940, 17287, 16869, 6072, 26029, 3366, 1012, 25718, 1005, 1025, 1013, 1008, 1008, 1008, 1030, 2156, 16729, 2094, 1035, 2326, 1035, 9722, 13444, 2368, 1035, 3433, 1035, 2918, 20330, 8043, 7903, 2063, 1035, 2131, 6305, 3597, 16671, 26657, 6072, 26029, 3366, 1008, 30524, 16729, 2094, 1013, 2326, 1013, 9722, 13444, 2368, 1013, 3433, 1013, 2918, 20330, 8043, 7903, 2063, 1013, 2131, 6305, 3597, 16671, 26657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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 1013, 1013, 5478, 1035, 2320, 1005, 30526 ]
#import "MOBProjection.h" @interface MOBProjectionEPSG5786 : MOBProjection @end
jkdubr/Proj4
Pod/Classes/Projection/MOBProjectionEPSG5786.h
C
mit
82
[ 30522, 1001, 12324, 1000, 11240, 21572, 20614, 3258, 1012, 1044, 1000, 1030, 8278, 11240, 21572, 20614, 3258, 13699, 28745, 28311, 20842, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1024, 11240, 21572, 20614, 3258, 1030, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
package com.mutar.libav.bridge.avformat; import org.bridj.BridJ; import org.bridj.Pointer; import org.bridj.StructObject; import org.bridj.ann.Field; import org.bridj.ann.Library; /** * <i>native declaration : ffmpeg_build/include/libavformat/avio.h:49</i><br> * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br> * a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br> * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> . */ @Library("avformat") public class AVIODirEntry extends StructObject { static { BridJ.register(); } /** * < Filename<br> * C type : char* */ @Field(0) public Pointer<Byte > name() { return this.io.getPointerField(this, 0); } /** * < Filename<br> * C type : char* */ @Field(0) public AVIODirEntry name(Pointer<Byte > name) { this.io.setPointerField(this, 0, name); return this; } /** < Type of the entry */ @Field(1) public int type() { return this.io.getIntField(this, 1); } /** < Type of the entry */ @Field(1) public AVIODirEntry type(int type) { this.io.setIntField(this, 1, type); return this; } /** * < Set to 1 when name is encoded with UTF-8, 0 otherwise.<br> * Name can be encoded with UTF-8 even though 0 is set. */ @Field(2) public int utf8() { return this.io.getIntField(this, 2); } /** * < Set to 1 when name is encoded with UTF-8, 0 otherwise.<br> * Name can be encoded with UTF-8 even though 0 is set. */ @Field(2) public AVIODirEntry utf8(int utf8) { this.io.setIntField(this, 2, utf8); return this; } /** < File size in bytes, -1 if unknown. */ @Field(3) public long size() { return this.io.getLongField(this, 3); } /** < File size in bytes, -1 if unknown. */ @Field(3) public AVIODirEntry size(long size) { this.io.setLongField(this, 3, size); return this; } /** * < Time of last modification in microseconds since unix<br> * epoch, -1 if unknown. */ @Field(4) public long modification_timestamp() { return this.io.getLongField(this, 4); } /** * < Time of last modification in microseconds since unix<br> * epoch, -1 if unknown. */ @Field(4) public AVIODirEntry modification_timestamp(long modification_timestamp) { this.io.setLongField(this, 4, modification_timestamp); return this; } /** * < Time of last access in microseconds since unix epoch,<br> * -1 if unknown. */ @Field(5) public long access_timestamp() { return this.io.getLongField(this, 5); } /** * < Time of last access in microseconds since unix epoch,<br> * -1 if unknown. */ @Field(5) public AVIODirEntry access_timestamp(long access_timestamp) { this.io.setLongField(this, 5, access_timestamp); return this; } /** * < Time of last status change in microseconds since unix<br> * epoch, -1 if unknown. */ @Field(6) public long status_change_timestamp() { return this.io.getLongField(this, 6); } /** * < Time of last status change in microseconds since unix<br> * epoch, -1 if unknown. */ @Field(6) public AVIODirEntry status_change_timestamp(long status_change_timestamp) { this.io.setLongField(this, 6, status_change_timestamp); return this; } /** < User ID of owner, -1 if unknown. */ @Field(7) public long user_id() { return this.io.getLongField(this, 7); } /** < User ID of owner, -1 if unknown. */ @Field(7) public AVIODirEntry user_id(long user_id) { this.io.setLongField(this, 7, user_id); return this; } /** < Group ID of owner, -1 if unknown. */ @Field(8) public long group_id() { return this.io.getLongField(this, 8); } /** < Group ID of owner, -1 if unknown. */ @Field(8) public AVIODirEntry group_id(long group_id) { this.io.setLongField(this, 8, group_id); return this; } /** < Unix file mode, -1 if unknown. */ @Field(9) public long filemode() { return this.io.getLongField(this, 9); } /** < Unix file mode, -1 if unknown. */ @Field(9) public AVIODirEntry filemode(long filemode) { this.io.setLongField(this, 9, filemode); return this; } public AVIODirEntry() { super(); } public AVIODirEntry(Pointer pointer) { super(pointer); } }
mutars/java_libav
wrapper/src/main/java/com/mutar/libav/bridge/avformat/AVIODirEntry.java
Java
gpl-2.0
4,355
[ 30522, 7427, 4012, 1012, 14163, 7559, 1012, 5622, 3676, 2615, 1012, 2958, 1012, 20704, 14192, 4017, 1025, 12324, 8917, 1012, 7987, 3593, 3501, 1012, 7987, 3593, 3501, 1025, 12324, 8917, 1012, 7987, 3593, 3501, 1012, 20884, 1025, 12324, 8917, 1012, 7987, 3593, 3501, 1012, 2358, 6820, 6593, 16429, 20614, 1025, 12324, 8917, 1012, 7987, 3593, 3501, 1012, 5754, 1012, 2492, 1025, 12324, 8917, 1012, 7987, 3593, 3501, 1012, 5754, 1012, 3075, 1025, 1013, 1008, 1008, 1008, 1026, 1045, 1028, 3128, 8170, 1024, 21461, 8737, 13910, 1035, 3857, 1013, 2421, 1013, 5622, 3676, 2615, 14192, 4017, 1013, 20704, 3695, 1012, 1044, 1024, 4749, 1026, 1013, 1045, 1028, 1026, 7987, 1028, 1008, 2023, 5371, 2001, 8285, 6914, 16848, 2011, 1026, 1037, 17850, 12879, 1027, 1000, 8299, 1024, 1013, 1013, 1046, 17452, 16259, 1012, 8224, 16044, 1012, 4012, 1013, 1000, 1028, 1046, 17452, 16259, 1026, 1013, 1037, 1028, 1010, 1026, 7987, 1028, 1008, 1037, 6994, 2517, 2011, 1026, 1037, 17850, 12879, 1027, 1000, 8299, 1024, 1013, 1013, 28166, 10354, 5480, 1012, 4012, 1013, 1000, 1028, 14439, 15775, 8873, 2243, 1026, 1013, 1037, 1028, 2008, 1026, 1037, 17850, 12879, 1027, 1000, 8299, 1024, 1013, 1013, 3642, 1012, 8224, 1012, 4012, 1013, 1052, 1013, 1046, 17452, 16259, 1013, 15536, 3211, 1013, 6495, 5685, 13231, 12325, 1000, 1028, 3594, 1037, 2261, 7480, 8162, 3401, 3934, 1012, 1026, 1013, 1037, 1028, 1012, 1026, 7987, 1028, 1008, 2005, 2393, 1010, 3531, 3942, 1026, 1037, 17850, 12879, 1027, 1000, 8299, 1024, 1013, 1013, 3128, 29521, 2015, 2549, 3900, 3567, 1012, 8224, 16044, 1012, 4012, 1013, 1000, 1028, 3128, 29521, 2015, 2549, 3900, 3567, 1026, 1013, 1037, 1028, 2030, 1026, 1037, 17850, 12879, 1027, 1000, 8299, 1024, 1013, 1013, 7987, 3593, 3501, 1012, 8224, 16044, 1012, 4012, 1013, 1000, 1028, 7987, 3593, 3501, 1026, 1013, 1037, 1028, 1012, 1008, 1013, 1030, 3075, 1006, 1000, 20704, 14192, 4017, 1000, 1007, 2270, 2465, 20704, 3695, 4305, 22787, 2854, 8908, 2358, 6820, 6593, 16429, 20614, 1063, 10763, 1063, 7987, 3593, 3501, 1012, 4236, 1006, 1007, 1025, 1065, 1013, 1008, 1008, 1008, 1026, 5371, 18442, 1026, 7987, 1028, 1008, 1039, 2828, 1024, 25869, 1008, 1008, 1013, 1030, 2492, 1006, 1014, 1007, 2270, 20884, 1026, 24880, 1028, 2171, 1006, 1007, 1063, 2709, 2023, 1012, 22834, 1012, 2131, 8400, 2121, 3790, 1006, 2023, 1010, 1014, 1007, 1025, 1065, 1013, 1008, 1008, 1008, 1026, 5371, 18442, 1026, 7987, 1028, 1008, 1039, 2828, 1024, 25869, 1008, 1008, 1013, 1030, 2492, 1006, 1014, 1007, 2270, 20704, 3695, 4305, 22787, 2854, 2171, 1006, 20884, 1026, 24880, 1028, 2171, 1007, 1063, 2023, 1012, 22834, 1012, 2275, 8400, 2121, 3790, 1006, 2023, 1010, 30524, 1997, 1996, 4443, 1008, 1013, 1030, 2492, 1006, 1015, 1007, 2270, 20014, 2828, 1006, 1007, 1063, 2709, 2023, 1012, 22834, 1012, 2131, 18447, 3790, 1006, 2023, 1010, 1015, 1007, 1025, 1065, 1013, 1008, 1008, 1026, 2828, 1997, 1996, 4443, 1008, 1013, 1030, 2492, 1006, 1015, 1007, 2270, 20704, 3695, 4305, 22787, 2854, 2828, 1006, 30523, 1014, 1010, 2171, 1007, 1025, 2709, 2023, 1025, 1065, 1013, 1008, 1008, 1026, 2828, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1014, 1010, 2171, 1007, 1025, 2709, 2023, 1025, 1065, 1013, 1008, 1008, 1026, 2828, 30526 ]
using System; using Csla; namespace ParentLoadROSoftDelete.Business.ERLevel { public partial class E05_SubContinent_ReChild { #region OnDeserialized actions /*/// <summary> /// This method is called on a newly deserialized object /// after deserialization is complete. /// </summary> /// <param name="context">Serialization context object.</param> protected override void OnDeserialized(System.Runtime.Serialization.StreamingContext context) { base.OnDeserialized(context); // add your custom OnDeserialized actions here. }*/ #endregion #region Implementation of DataPortal Hooks //partial void OnFetchRead(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} #endregion } }
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/ParentLoadROSoftDelete.Business/ERLevel/E05_SubContinent_ReChild.cs
C#
mit
904
[ 30522, 2478, 2291, 1025, 2478, 20116, 2721, 1025, 3415, 15327, 6687, 11066, 7352, 15794, 9247, 12870, 1012, 2449, 1012, 9413, 20414, 2884, 1063, 2270, 7704, 2465, 1041, 2692, 2629, 1035, 26125, 1035, 28667, 19466, 2094, 1063, 1001, 2555, 2006, 6155, 11610, 28931, 4506, 1013, 1008, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 2023, 4118, 2003, 2170, 2006, 1037, 4397, 4078, 11610, 28931, 4874, 1013, 1013, 1013, 2044, 4078, 11610, 22731, 2003, 3143, 1012, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 6123, 1000, 1028, 7642, 3989, 6123, 4874, 1012, 1026, 1013, 11498, 2213, 1028, 5123, 2058, 15637, 11675, 2006, 6155, 11610, 28931, 1006, 2291, 1012, 2448, 7292, 1012, 7642, 3989, 1012, 11058, 8663, 18209, 6123, 1007, 1063, 2918, 1012, 2006, 6155, 11610, 28931, 1006, 6123, 1007, 1025, 1013, 1013, 30524, 2006, 7959, 10649, 16416, 2094, 1006, 2951, 6442, 2389, 6806, 12352, 10623, 2015, 12098, 5620, 1007, 1013, 1013, 1063, 1013, 1013, 5466, 2047, 2025, 5714, 10814, 3672, 14728, 2595, 24422, 1006, 1007, 1025, 1013, 1013, 1065, 1001, 2203, 23784, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5587, 2115, 7661, 2006, 6155, 11610, 28931, 4506, 2182, 1012, 1065, 1008, 1013, 1001, 2203, 23784, 1001, 2555, 7375, 1997, 2951, 6442, 2389, 18008, 1013, 1013, 7704, 11675, 30526 ]
/* RT-Thread config file */ #ifndef __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__ // <RDTConfigurator URL="http://www.rt-thread.com/eclipse"> // <integer name="RT_NAME_MAX" description="Maximal size of kernel object name length" default="6" /> #define RT_NAME_MAX 8 // <integer name="RT_ALIGN_SIZE" description="Alignment size for CPU architecture data access" default="4" /> #define RT_ALIGN_SIZE 4 // <integer name="RT_THREAD_PRIORITY_MAX" description="Maximal level of thread priority" default="32"> // <item description="8">8</item> // <item description="32">32</item> // <item description="256">256</item> // </integer> #define RT_THREAD_PRIORITY_MAX 32 // <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="100" /> #define RT_TICK_PER_SECOND 1000 // <integer name="IDLE_THREAD_STACK_SIZE" description="The stack size of idle thread" default="512" /> #define IDLE_THREAD_STACK_SIZE 512 // <bool name="RT_USING_MODULE" description="Using Application Module" default="true" /> //#define RT_USING_MODULE // <section name="RT_DEBUG" description="Kernel Debug Configuration" default="true" > #define RT_DEBUG // <bool name="RT_DEBUG_INIT" description="debug init enable" default=0 /> #define RT_DEBUG_INIT 0 //#define RT_DEBUG_SCHEDULER 1 // <bool name="RT_THREAD_DEBUG" description="Thread debug enable" default="false" /> // #define RT_THREAD_DEBUG // <bool name="RT_USING_OVERFLOW_CHECK" description="Thread stack over flow detect" default="true" /> #define RT_USING_OVERFLOW_CHECK // </section> // <bool name="RT_USING_HOOK" description="Using hook functions" default="true" /> #define RT_USING_HOOK // <section name="RT_USING_TIMER_SOFT" description="Using software timer which will start a thread to handle soft-timer" default="true" > //#define RT_USING_TIMER_SOFT // <integer name="RT_TIMER_THREAD_PRIO" description="The priority level of timer thread" default="4" /> #define RT_TIMER_THREAD_PRIO 4 // <integer name="RT_TIMER_THREAD_STACK_SIZE" description="The stack size of timer thread" default="512" /> #define RT_TIMER_THREAD_STACK_SIZE 512 // <integer name="RT_TIMER_TICK_PER_SECOND" description="The soft-timer tick per second" default="10" /> #define RT_TIMER_TICK_PER_SECOND 100 // </section> // <section name="IPC" description="Inter-Thread communication" default="always" > // <bool name="RT_USING_SEMAPHORE" description="Using semaphore in the system" default="true" /> #define RT_USING_SEMAPHORE // <bool name="RT_USING_MUTEX" description="Using mutex in the system" default="true" /> #define RT_USING_MUTEX // <bool name="RT_USING_EVENT" description="Using event group in the system" default="true" /> #define RT_USING_EVENT // <bool name="RT_USING_MAILBOX" description="Using mailbox in the system" default="true" /> #define RT_USING_MAILBOX // <bool name="RT_USING_MESSAGEQUEUE" description="Using message queue in the system" default="true" /> #define RT_USING_MESSAGEQUEUE // </section> // <section name="MM" description="Memory Management" default="always" > // <bool name="RT_USING_MEMPOOL" description="Using Memory Pool Management in the system" default="true" /> #define RT_USING_MEMPOOL // <bool name="RT_USING_MEMHEAP" description="Using Memory Heap Object in the system" default="true" /> #define RT_USING_MEMHEAP // <bool name="RT_USING_HEAP" description="Using Dynamic Heap Management in the system" default="true" /> #define RT_USING_HEAP // <bool name="RT_USING_SMALL_MEM" description="Optimizing for small memory" default="false" /> #define RT_USING_SMALL_MEM // <bool name="RT_USING_SLAB" description="Using SLAB memory management for large memory" default="false" /> // #define RT_USING_SLAB // </section> // <section name="RT_USING_DEVICE" description="Using Device Driver Framework" default="true" > #define RT_USING_DEVICE // <bool name=RT_USING_DEVICE_IPC description="Using IPC in Device Driver Framework" default="true" /> #define RT_USING_DEVICE_IPC // <bool name="RT_USING_SERIAL" description="Using Serial Device Driver Framework" default="true" /> #define RT_USING_SERIAL #define RT_SERIAL_USING_DMA // <integer name="RT_UART_RX_BUFFER_SIZE" description="The buffer size for UART reception" default="64" /> #define RT_UART_RX_BUFFER_SIZE 256 // <bool name="RT_USING_MTD_NAND" description="Using MTD NAND Framework" default="true" /> //#define RT_USING_MTD_NAND // <bool name="RT_MTD_NAND_DEBUG" description="Enable MTD NAND Framework Debug" default="true" /> //#define RT_MTD_NAND_DEBUG // <bool name="RT_USING_NFTL" description="Using NFTL layer" default="true" /> //#define RT_USING_NFTL // <bool name="RT_USING_SPI" description="Using SPI Device Driver Framework" default="true" /> //#define RT_USING_SPI // <bool name="RT_USING_I2C" description="Using I2C Device Driver Framework" default="true" /> //#define RT_USING_I2C // <bool name="RT_USING_RTC" description="Using RTC Device Driver Framework" default="true" /> //#define RT_USING_RTC // <integer name="RT_MMCSD_THREAD_PREORITY" description="The prority of mmcsd thread" default="15" /> #define RT_MMCSD_THREAD_PREORITY 15 // <section name="RT_USING_CONSOLE" description="Using console" default="true" > #define RT_USING_CONSOLE // <integer name="RT_CONSOLEBUF_SIZE" description="The buffer size for console output" default="128" /> #define RT_CONSOLEBUF_SIZE 128 // <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart" /> #define RT_CONSOLE_DEVICE_NAME "uart0" #define RT_USING_UART0 // </section> // <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" /> //#define RT_USING_COMPONENTS_INIT // <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" > #define RT_USING_FINSH // <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" /> #define FINSH_USING_SYMTAB // <bool name="FINSH_USING_DESCRIPTION" description="Keeping description in symbol table" default="true" /> #define FINSH_USING_DESCRIPTION // <integer name="FINSH_THREAD_STACK_SIZE" description="The stack size for finsh thread" default="4096" /> #define FINSH_THREAD_STACK_SIZE 4096 // <bool name="FINSH_USING_MSH" description="Using module shell in finsh" default="true" /> //#define FINSH_USING_MSH // </section> // <section name="LIBC" description="C Runtime library setting" default="always" > // <bool name="RT_USING_NEWLIB" description="Using newlib library, only available under GNU GCC" default="true" /> // #define RT_USING_NEWLIB // <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" /> //#define RT_USING_PTHREADS // </section> // <section name="RT_USING_DFS" description="Device file system" default="true" > //#define RT_USING_DFS // <bool name="DFS_USING_WORKDIR" description="Using working directory" default="true" /> //#define DFS_USING_WORKDIR // <integer name="DFS_FILESYSTEM_TYPES_MAX" description="The maximal number of the supported file system type" default="4" /> #define DFS_FILESYSTEM_TYPES_MAX 4 // <integer name="DFS_FILESYSTEMS_MAX" description="The maximal number of mounted file system" default="4" /> #define DFS_FILESYSTEMS_MAX 4 // <integer name="DFS_FD_MAX" description="The maximal number of opened files" default="4" /> #define DFS_FD_MAX 16 // <bool name="RT_USING_DFS_ELMFAT" description="Using ELM FatFs" default="true" /> #define RT_USING_DFS_ELMFAT // <integer name="RT_DFS_ELM_DRIVES" description="The maximal number of drives of FatFs" default="4" /> #define RT_DFS_ELM_DRIVES 4 // <bool name="RT_DFS_ELM_REENTRANT" description="Support reentrant" default="true" /> #define RT_DFS_ELM_REENTRANT // <integer name="RT_DFS_ELM_USE_LFN" description="Support long file name" default="0"> // <item description="LFN with static LFN working buffer">1</item> // <item description="LFN with dynamic LFN working buffer on the stack">2</item> // <item description="LFN with dynamic LFN working buffer on the heap">3</item> // </integer> #define RT_DFS_ELM_USE_LFN 3 // <integer name="RT_DFS_ELM_CODE_PAGE" description="OEM code page" default="936"> #define RT_DFS_ELM_CODE_PAGE 936 // <bool name="RT_DFS_ELM_CODE_PAGE_FILE" description="Using OEM code page file" default="false" /> #define RT_DFS_ELM_CODE_PAGE_FILE // <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="255" /> #define RT_DFS_ELM_MAX_LFN 255 // <integer name="RT_DFS_ELM_MAX_SECTOR_SIZE" description="Maximal size of sector" default="512" /> #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096 // <bool name="RT_DFS_ELM_USE_ERASE" description="Enable erase feature for flash" default="true" /> #define RT_DFS_ELM_USE_ERASE // <bool name="RT_USING_DFS_YAFFS2" description="Using YAFFS2" default="false" /> // #define RT_USING_DFS_YAFFS2 // <bool name="RT_USING_DFS_UFFS" description="Using UFFS" default="false" /> // #define RT_USING_DFS_UFFS // <bool name="RT_USING_DFS_DEVFS" description="Using devfs for device objects" default="true" /> #define RT_USING_DFS_DEVFS // <bool name="RT_USING_DFS_ROMFS" description="Using ROMFS" default="false" /> //#define RT_USING_DFS_ROMFS // <bool name="RT_USING_DFS_NFS" description="Using NFS" default="false" /> //#define RT_USING_DFS_NFS // <string name="RT_NFS_HOST_EXPORT" description="The exported NFS host path" default="192.168.1.10:/" /> #define RT_NFS_HOST_EXPORT "192.168.1.20:/" // </section> // <section name="RT_USING_LWIP" description="lwip, a lightweight TCP/IP protocol stack" default="true" > //#define RT_USING_LWIP // <bool name="RT_USING_LWIP141" description="Using lwIP 1.4.1 version" default="true" /> #define RT_USING_LWIP141 // <bool name="RT_LWIP_ICMP" description="Enable ICMP protocol" default="true" /> #define RT_LWIP_ICMP // <bool name="RT_LWIP_IGMP" description="Enable IGMP protocol" default="false" /> // #define RT_LWIP_IGMP // <bool name="RT_LWIP_UDP" description="Enable UDP protocol" default="true" /> #define RT_LWIP_UDP // <bool name="RT_LWIP_TCP" description="Enable TCP protocol" default="true" /> #define RT_LWIP_TCP // <bool name="RT_LWIP_DNS" description="Enable DNS protocol" default="true" /> #define RT_LWIP_DNS // <integer name="RT_LWIP_PBUF_NUM" description="Maximal number of buffers in the pbuf pool" default="4" /> #define RT_LWIP_PBUF_NUM 4 // <integer name="RT_LWIP_TCP_PCB_NUM" description="Maximal number of simultaneously active TCP connections" default="5" /> #define RT_LWIP_TCP_PCB_NUM 3 // <integer name="RT_LWIP_TCP_SND_BUF" description="TCP sender buffer size" default="8192" /> #define RT_LWIP_TCP_SND_BUF 4086 // <integer name="RT_LWIP_TCP_WND" description="TCP receive window" default="8192" /> #define RT_LWIP_TCP_WND 2048 // <bool name="RT_LWIP_SNMP" description="Enable SNMP protocol" default="false" /> // #define RT_LWIP_SNMP // <bool name="RT_LWIP_DHCP" description="Enable DHCP client to get IP address" default="false" /> // #define RT_LWIP_DHCP // <integer name="RT_LWIP_TCP_SEG_NUM" description="the number of simultaneously queued TCP" default="4" /> #define RT_LWIP_TCP_SEG_NUM 8 // <integer name="RT_LWIP_TCPTHREAD_PRIORITY" description="the thread priority of TCP thread" default="128" /> #define RT_LWIP_TCPTHREAD_PRIORITY 12 // <integer name="RT_LWIP_TCPTHREAD_MBOX_SIZE" description="the mail box size of TCP thread to wait for" default="32" /> #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8 // <integer name="RT_LWIP_TCPTHREAD_STACKSIZE" description="the thread stack size of TCP thread" default="4096" /> #define RT_LWIP_TCPTHREAD_STACKSIZE 4096 // <integer name="RT_LWIP_ETHTHREAD_PRIORITY" description="the thread priority of ethnetif thread" default="144" /> #define RT_LWIP_ETHTHREAD_PRIORITY 14 // <integer name="RT_LWIP_ETHTHREAD_MBOX_SIZE" description="the mail box size of ethnetif thread to wait for" default="8" /> #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8 // <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" /> #define RT_LWIP_ETHTHREAD_STACKSIZE 512 // <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" /> #define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR1 168 #define RT_LWIP_IPADDR2 1 #define RT_LWIP_IPADDR3 30 // <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" /> #define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR1 168 #define RT_LWIP_GWADDR2 1 #define RT_LWIP_GWADDR3 1 // <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" /> #define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR1 255 #define RT_LWIP_MSKADDR2 255 #define RT_LWIP_MSKADDR3 0 // </section> #define RT_USING_VBUS #define RT_USING_LOGTRACE // </RDTConfigurator> #endif
wolfgangz2013/rt-thread
bsp/lpc43xx/M0/rtconfig.h
C
apache-2.0
12,774
[ 30522, 1013, 1008, 19387, 1011, 11689, 9530, 8873, 2290, 5371, 1008, 1013, 1001, 2065, 13629, 2546, 1035, 1035, 19387, 2705, 16416, 2094, 1035, 12935, 2290, 1035, 1044, 1035, 1035, 1001, 9375, 1035, 1035, 19387, 2705, 16416, 2094, 1035, 30524, 1013, 1026, 16109, 2171, 1027, 1000, 19387, 1035, 2171, 1035, 4098, 1000, 6412, 1027, 1000, 29160, 2946, 1997, 16293, 4874, 2171, 3091, 1000, 12398, 1027, 1000, 1020, 1000, 1013, 1028, 1001, 9375, 19387, 1035, 2171, 1035, 4098, 1022, 1013, 1013, 1026, 16109, 2171, 1027, 1000, 19387, 1035, 25705, 1035, 2946, 1000, 6412, 1027, 1000, 12139, 2946, 2005, 17368, 4294, 2951, 3229, 1000, 12398, 1027, 1000, 1018, 1000, 1013, 1028, 1001, 9375, 19387, 1035, 25705, 1035, 2946, 1018, 1013, 1013, 1026, 16109, 2171, 1027, 1000, 19387, 1035, 11689, 1035, 9470, 1035, 4098, 1000, 6412, 1027, 1000, 29160, 2504, 1997, 11689, 9470, 1000, 12398, 1027, 1000, 3590, 1000, 1028, 1013, 1013, 1026, 8875, 6412, 1027, 1000, 1022, 1000, 1028, 1022, 1026, 1013, 8875, 1028, 1013, 1013, 1026, 8875, 6412, 1027, 1000, 3590, 1000, 1028, 3590, 1026, 1013, 8875, 1028, 1013, 1013, 1026, 8875, 6412, 1027, 1000, 17273, 1000, 1028, 17273, 1026, 1013, 8875, 1028, 1013, 1013, 1026, 1013, 16109, 1028, 1001, 9375, 19387, 1035, 11689, 1035, 9470, 1035, 4098, 3590, 1013, 1013, 1026, 16109, 2171, 1027, 1000, 19387, 1035, 16356, 1035, 2566, 1035, 2117, 1000, 6412, 1027, 1000, 9808, 16356, 2566, 2117, 1000, 12398, 1027, 1000, 2531, 1000, 1013, 1028, 1001, 9375, 19387, 1035, 16356, 1035, 2566, 1035, 2117, 6694, 1013, 1013, 1026, 16109, 2171, 1027, 1000, 18373, 1035, 11689, 1035, 9991, 1035, 2946, 1000, 6412, 1027, 1000, 1996, 9991, 2946, 1997, 18373, 11689, 1000, 12398, 1027, 1000, 24406, 1000, 1013, 1028, 1001, 9375, 18373, 1035, 11689, 1035, 9991, 1035, 2946, 24406, 1013, 1013, 1026, 22017, 2140, 2171, 1027, 1000, 19387, 1035, 2478, 1035, 11336, 1000, 6412, 1027, 1000, 2478, 4646, 11336, 1000, 12398, 1027, 1000, 2995, 1000, 1013, 1028, 1013, 1013, 1001, 9375, 19387, 1035, 2478, 1035, 11336, 1013, 1013, 1026, 2930, 2171, 1027, 1000, 19387, 1035, 2139, 8569, 2290, 1000, 6412, 1027, 1000, 16293, 2139, 8569, 2290, 9563, 1000, 12398, 1027, 1000, 2995, 1000, 1028, 1001, 9375, 19387, 1035, 2139, 8569, 2290, 1013, 1013, 1026, 22017, 2140, 2171, 1027, 1000, 19387, 1035, 2139, 8569, 2290, 1035, 1999, 4183, 1000, 6412, 1027, 1000, 2139, 8569, 2290, 1999, 4183, 9585, 1000, 12398, 1027, 1014, 1013, 1028, 1001, 9375, 19387, 1035, 2139, 8569, 2290, 1035, 1999, 4183, 1014, 1013, 1013, 1001, 9375, 19387, 1035, 2139, 8569, 2290, 1035, 6134, 2099, 1015, 1013, 1013, 1026, 22017, 2140, 2171, 1027, 1000, 19387, 1035, 11689, 1035, 2139, 8569, 2290, 1000, 6412, 1027, 1000, 11689, 2139, 8569, 2290, 9585, 1000, 12398, 1027, 1000, 6270, 1000, 1013, 1028, 1013, 1013, 1001, 9375, 19387, 1035, 11689, 1035, 2139, 8569, 2290, 1013, 1013, 1026, 22017, 2140, 30523, 12935, 2290, 1035, 1044, 1035, 1035, 1013, 1013, 1026, 16428, 13535, 2239, 8873, 27390, 8844, 24471, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12935, 2290, 1035, 1044, 1035, 1035, 1013, 1013, 1026, 16428, 13535, 2239, 8873, 27390, 8844, 24471, 2140, 1027, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 19387, 1011, 11689, 1012, 4012, 1013, 13232, 1000, 1028, 1013, 30526 ]
<?php /** * Class for user module tab at options page */ class userFieldsTabView extends view { /** * Get the content for user module tab * * @return type */ public function getTabContent(){ $userfields = frame::_()->getModule('options')->getModel('userfields')->get(); $usserfieldsArray = array(); foreach($userfields as $uf) $usserfieldsArray[] = $uf; $this->assign('userfieldsList', $usserfieldsArray); $output = '<div id="user_field_form" class="tab_form">'.frame::_()->getModule('options')->getView('userfields')->addUserfields().'</div>'; $output .= parent::getContent('userFieldsTab'); return $output; } } ?>
KlasElowsson/wpwork
wp-content/plugins/ready-ecommerce/modules/user/views/userFieldsTab.php
PHP
gpl-2.0
711
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 2465, 2005, 5310, 11336, 21628, 2012, 7047, 3931, 1008, 1013, 2465, 5310, 15155, 2696, 2497, 8584, 8908, 3193, 1063, 1013, 1008, 1008, 1008, 2131, 1996, 4180, 2005, 5310, 11336, 21628, 1008, 1008, 1030, 2709, 2828, 1008, 1013, 2270, 3853, 2131, 2696, 9818, 28040, 3372, 1006, 1007, 1063, 1002, 5310, 15155, 1027, 4853, 1024, 1024, 1035, 1006, 1007, 1011, 1028, 2131, 5302, 8566, 2571, 1006, 1005, 7047, 1005, 1007, 1011, 1028, 2131, 5302, 9247, 1006, 1005, 5310, 15155, 1005, 1007, 1011, 1028, 2131, 1006, 1007, 1025, 1002, 7234, 2121, 15155, 2906, 9447, 1027, 9140, 1006, 1007, 1025, 18921, 6776, 1006, 1002, 5310, 15155, 2004, 1002, 1057, 2546, 1007, 1002, 7234, 2121, 15155, 2906, 9447, 1031, 1033, 1027, 1002, 1057, 2546, 1025, 1002, 2023, 1011, 1028, 23911, 1006, 1005, 5310, 15155, 9863, 1005, 1010, 1002, 7234, 2121, 15155, 2906, 9447, 1007, 1025, 1002, 6434, 1027, 1005, 1026, 4487, 2615, 8909, 1027, 1000, 5310, 1035, 2492, 1035, 2433, 1000, 2465, 1027, 1000, 21628, 1035, 2433, 1000, 1028, 1005, 1012, 4853, 1024, 1024, 1035, 1006, 1007, 1011, 1028, 2131, 5302, 8566, 2571, 1006, 1005, 7047, 1005, 1007, 1011, 1028, 2131, 8584, 1006, 1005, 5310, 15155, 1005, 1007, 1011, 1028, 5587, 20330, 15155, 1006, 1007, 1012, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 6434, 1012, 1027, 6687, 1024, 1024, 2131, 8663, 6528, 2102, 1006, 1005, 5310, 15155, 2696, 2497, 1005, 1007, 1025, 2709, 1002, 6434, 1025, 1065, 1065, 1029, 1028, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
 <!DOCTYPE HTML> <!-- Solid State by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) --> <html> <head> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-72755780-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-72755780-1'); </script> <script src="/assets/js/redirectNow.js"></script> <title>Richard Kingston - Progressive Web App</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!--[if lte IE 8]><script src="/assets/js/ie/html5shiv.js"></script><![endif]--> <link rel="stylesheet" href="/assets/sass/main.css" /> <link rel="stylesheet" href="/assets/css/override.css" /> <!--[if lte IE 9]><link rel="stylesheet" href="/assets/sass/ie9.css" /><![endif]--> <!--[if lte IE 8]><link rel="stylesheet" href="/assets/sass/ie8.css" /><![endif]--> </head> <body> <!-- Page Wrapper --> <div id="page-wrapper"> <!-- Header --> <header id="header"> <h1><a href="/">Richard Kingston</a></h1> <nav> <a href="#menu">Menu</a> </nav> </header> <!-- Menu --> <nav id="menu"> <div class="inner"> <h2>Menu</h2> <ul class="links"> <li><a href="/posts">Archive</a></li> <li><a href="/tags">Tags</a></li> <li><a href="/about">About Me</a></li> </ul> <a href="#" class="close">Close</a> </div> </nav> <section id="banner"> <div class="inner"> <h2>Progressive Web App</h2> </div> </section> <!-- Main --> <section id="wrapper"> <section class="wrapper style2"> <div class="inner"> <div> <a href="/posts/council-knows-whats-appnin"> <h3>Council knows what&#x27;s &#x27;appnin&#x27;</h3> <p>There&#x27;s nothing quite like delivering customer value that&#x27;s fit for the future, scalable and miles ahead of the curve ;-)</p> </a> <p><em>Posted on 15 September 2017</em></p> </div> <hr> <nav> <ul class="actions"> </ul> </nav> </div> </section> <section class="wrapper alt style3"> <div class="inner"> <a role="button" href="/tags/Income-Management" class="button small ">Income Management (30)</a> <a role="button" href="/tags/Local-Digital-Fund" class="button small ">Local Digital Fund (24)</a> <a role="button" href="/tags/IMS-Discovery" class="button small ">IMS Discovery (21)</a> <a role="button" href="/tags/Innovation-Group" class="button small ">Innovation Group (14)</a> <a role="button" href="/tags/DigiDesk" class="button small ">DigiDesk (8)</a> <a role="button" href="/tags/DigiBook" class="button small ">DigiBook (5)</a> <a role="button" href="/tags/DigiMeet" class="button small ">DigiMeet (4)</a> <a role="button" href="/tags/IMS-Alpha" class="button small ">IMS Alpha (2)</a> <a role="button" href="/tags/Work-Life-Balance" class="button small ">Work Life Balance (2)</a> <a role="button" href="/tags/TechTown" class="button small ">TechTown (2)</a> <a role="button" href="/tags/Digital-First" class="button small ">Digital First (2)</a> <a role="button" href="/tags/Requestry" class="button small ">Requestry (2)</a> <a role="button" href="/tags/Barnsley-Makers" class="button small ">Barnsley Makers (1)</a> <a role="button" href="/tags/Code-Club" class="button small ">Code Club (1)</a> <a role="button" href="/tags/Barnsley-Council" class="button small ">Barnsley Council (1)</a> <a role="button" href="/tags/Progressive-Web-App" class="button small special">Progressive Web App (1)</a> <a role="button" href="/tags/DigiSafe" class="button small ">DigiSafe (1)</a> <a role="button" href="/tags/Digital-Barnsley" class="button small ">Digital Barnsley (1)</a> </div> </section> </section> <!-- Footer --> <footer id="footer"> <div class="inner"> <section> <h2>Feeds</h2> <ul class="actions"> <li><a href="/feed.rss" class="button small"><i class="fa fa-rss"></i> RSS Feed</a></li> <li><a href="/feed.atom" class="button small"><i class="fa fa-rss"></i> Atom Feed</a></li> </ul> </section> <section> </section> <ul class="copyright"> <li>Copyright © 2020</li> <li>Design: <a href="http://html5up.net">HTML5 UP</a></li> <li><a href="https://wyam.io">Generated by Wyam</a></li> </ul> </div> </footer> </div> <!-- Scripts --> <script src="/assets/js/skel.min.js"></script> <script src="/assets/js/jquery.min.js"></script> <script src="/assets/js/jquery.scrollex.min.js"></script> <script src="/assets/js/util.js"></script> <!--[if lte IE 8]><script src="/assets/js/ie/respond.min.js"></script><![endif]--> <script src="/assets/js/main.js"></script> <script src="/assets/js/redirectNow.js"></script> <script type="text/javascript">redirectNow();</script> </body> </html>
kingstonrichard/kingstonrichard.github.io
tags/Progressive-Web-App.html
HTML
mit
5,561
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 999, 1011, 1011, 30524, 1006, 16129, 2629, 6279, 1012, 5658, 1013, 6105, 1007, 1011, 1011, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 5896, 2004, 6038, 2278, 5034, 2278, 1027, 1000, 16770, 1024, 1013, 1013, 7479, 1012, 8224, 15900, 24805, 4590, 1012, 4012, 1013, 14181, 8490, 1013, 1046, 2015, 1029, 8909, 1027, 25423, 1011, 5824, 23352, 28311, 17914, 1011, 1015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 1028, 3332, 1012, 2951, 24314, 1027, 3332, 1012, 2951, 24314, 1064, 1064, 1031, 1033, 1025, 3853, 14181, 8490, 1006, 1007, 1063, 2951, 24314, 1012, 5245, 1006, 9918, 1007, 1025, 1065, 14181, 8490, 1006, 1005, 1046, 2015, 1005, 1010, 2047, 3058, 1006, 1007, 1007, 1025, 14181, 8490, 1006, 1005, 9530, 8873, 2290, 1005, 1010, 1005, 25423, 1011, 5824, 23352, 28311, 17914, 1011, 1015, 1005, 1007, 1025, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1013, 7045, 1013, 1046, 2015, 1013, 2417, 7442, 6593, 19779, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 2516, 1028, 2957, 9803, 1011, 6555, 4773, 10439, 1026, 1013, 2516, 1028, 1026, 18804, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1013, 1028, 1026, 18804, 2171, 1027, 1000, 3193, 6442, 1000, 4180, 1027, 1000, 9381, 1027, 5080, 1011, 9381, 1010, 3988, 1011, 4094, 1027, 1015, 1000, 1013, 1028, 1026, 999, 1011, 1011, 1031, 2065, 8318, 2063, 29464, 1022, 1033, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1013, 7045, 1013, 1046, 2015, 1013, 29464, 1013, 16129, 2629, 6182, 2615, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 999, 1031, 2203, 10128, 1033, 1011, 1011, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1013, 7045, 1013, 21871, 2015, 1013, 2364, 1012, 20116, 2015, 1000, 1013, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1013, 7045, 1013, 20116, 2015, 1013, 2058, 15637, 1012, 20116, 2015, 1000, 1013, 1028, 1026, 999, 1011, 1011, 1031, 2065, 8318, 2063, 29464, 1023, 1033, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1013, 7045, 1013, 21871, 2015, 1013, 29464, 2683, 1012, 20116, 2015, 1000, 1013, 1028, 1026, 999, 1031, 2203, 10128, 1033, 1011, 1011, 1028, 1026, 999, 1011, 1011, 1031, 2065, 8318, 2063, 29464, 1022, 1033, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1013, 7045, 1013, 21871, 2015, 1013, 29464, 2620, 1012, 20116, 2015, 1000, 1013, 1028, 1026, 999, 1031, 2203, 10128, 1033, 1011, 1011, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 999, 1011, 1011, 3931, 10236, 4842, 1011, 1011, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 3931, 1011, 10236, 4842, 1000, 1028, 1026, 999, 1011, 1011, 20346, 1011, 1011, 1028, 1026, 20346, 8909, 1027, 1000, 20346, 1000, 1028, 1026, 1044, 2487, 30523, 5024, 2110, 2011, 16129, 2629, 2039, 16129, 2629, 6279, 1012, 5658, 1064, 1030, 19128, 13687, 2078, 2489, 2005, 3167, 1998, 3293, 2224, 2104, 1996, 10507, 2050, 1017, 1012, 1014, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5024, 2110, 2011, 16129, 2629, 2039, 16129, 2629, 6279, 1012, 5658, 1064, 1030, 19128, 13687, 2078, 2489, 2005, 3167, 1998, 3293, 2224, 2104, 1996, 10507, 2050, 1017, 1012, 1014, 6105, 30526 ]
using common; namespace wServer.networking.packets.outgoing { public class Text : OutgoingMessage { public string Name { get; set; } public int ObjectId { get; set; } public int NumStars { get; set; } public int Admin { get; set; } public byte BubbleTime { get; set; } public string Recipient { get; set; } public string Txt { get; set; } public string CleanText { get; set; } public int NameColor { get; set; } = 0x123456; public int TextColor { get; set; } = 0x123456; public override PacketId ID => PacketId.TEXT; public override Packet CreateInstance() { return new Text(); } protected override void Read(NReader rdr) { Name = rdr.ReadUTF(); ObjectId = rdr.ReadInt32(); NumStars = rdr.ReadInt32(); Admin = rdr.ReadInt32(); BubbleTime = rdr.ReadByte(); Recipient = rdr.ReadUTF(); Txt = rdr.ReadUTF(); CleanText = rdr.ReadUTF(); NameColor = rdr.ReadInt32(); TextColor = rdr.ReadInt32(); } protected override void Write(NWriter wtr) { wtr.WriteUTF(Name); wtr.Write(ObjectId); wtr.Write(NumStars); wtr.Write(Admin); wtr.Write(BubbleTime); wtr.WriteUTF(Recipient); wtr.WriteUTF(Txt); wtr.WriteUTF(CleanText); wtr.Write(NameColor); wtr.Write(TextColor); } } }
cp-nilly/NR-CORE
wServer/networking/packets/outgoing/Text.cs
C#
agpl-3.0
1,560
[ 30522, 2478, 2691, 1025, 3415, 15327, 1059, 8043, 6299, 1012, 14048, 1012, 23730, 1012, 22011, 1063, 2270, 2465, 3793, 1024, 22011, 7834, 3736, 3351, 1063, 2270, 5164, 2171, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 20014, 4874, 3593, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 20014, 16371, 5244, 7559, 2015, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 20014, 4748, 10020, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 24880, 11957, 7292, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 5164, 7799, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 5164, 19067, 2102, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 5164, 4550, 18209, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 20014, 2171, 18717, 1063, 2131, 1025, 2275, 1025, 1065, 1027, 1014, 2595, 12521, 22022, 26976, 1025, 2270, 20014, 3793, 18717, 1063, 2131, 1025, 2275, 1025, 1065, 1027, 1014, 2595, 12521, 22022, 26976, 1025, 2270, 2058, 15637, 30524, 2546, 1006, 1007, 1025, 4874, 3593, 1027, 16428, 2099, 1012, 3191, 18447, 16703, 1006, 1007, 1025, 16371, 5244, 7559, 2015, 1027, 16428, 2099, 1012, 3191, 18447, 16703, 1006, 1007, 1025, 4748, 10020, 1027, 16428, 2099, 1012, 3191, 18447, 16703, 1006, 1007, 1025, 11957, 7292, 1027, 16428, 2099, 1012, 3191, 3762, 2618, 1006, 1007, 1025, 7799, 1027, 16428, 2099, 1012, 3191, 4904, 2546, 1006, 1007, 1025, 19067, 2102, 1027, 16428, 2099, 1012, 3191, 4904, 2546, 1006, 1007, 1025, 4550, 18209, 1027, 16428, 2099, 1012, 3191, 4904, 2546, 1006, 1007, 1025, 2171, 18717, 1027, 16428, 2099, 1012, 3191, 18447, 16703, 1006, 1007, 1025, 3793, 18717, 1027, 16428, 2099, 1012, 3191, 18447, 16703, 1006, 1007, 1025, 1065, 5123, 2058, 15637, 11675, 4339, 1006, 22064, 17625, 2099, 1059, 16344, 1007, 1063, 1059, 16344, 1012, 4339, 4904, 2546, 1006, 2171, 1007, 1025, 1059, 16344, 1012, 4339, 1006, 4874, 3593, 1007, 1025, 1059, 16344, 1012, 4339, 1006, 16371, 5244, 7559, 2015, 1007, 1025, 1059, 16344, 1012, 4339, 1006, 4748, 10020, 1007, 1025, 1059, 16344, 1012, 4339, 1006, 11957, 7292, 1007, 1025, 1059, 16344, 1012, 4339, 4904, 2546, 1006, 7799, 1007, 1025, 1059, 16344, 1012, 4339, 4904, 2546, 1006, 19067, 2102, 1007, 1025, 1059, 16344, 1012, 4339, 4904, 2546, 1006, 4550, 18209, 1007, 1025, 1059, 16344, 1012, 4339, 1006, 2171, 18717, 1007, 1025, 1059, 16344, 1012, 4339, 1006, 3793, 18717, 1007, 1025, 1065, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 14771, 3593, 8909, 1027, 1028, 14771, 3593, 1012, 3793, 1025, 2270, 2058, 15637, 14771, 3443, 7076, 26897, 1006, 1007, 1063, 2709, 2047, 3793, 1006, 1007, 1025, 1065, 5123, 2058, 15637, 11675, 3191, 1006, 17212, 13775, 2121, 16428, 2099, 1007, 1063, 2171, 1027, 16428, 2099, 1012, 3191, 4904, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 14771, 3593, 8909, 1027, 1028, 14771, 3593, 1012, 3793, 1025, 2270, 2058, 15637, 14771, 3443, 7076, 26897, 1006, 1007, 1063, 2709, 2047, 3793, 1006, 1007, 1025, 1065, 5123, 2058, 15637, 11675, 3191, 1006, 17212, 13775, 2121, 16428, 2099, 1007, 1063, 2171, 1027, 16428, 2099, 1012, 3191, 4904, 30526 ]
<?php ClassLoader::requireClassOnce( 'util/Settings' ); ClassLoader::requireClassOnce( 'util/IndexRoutingItem' ); ClassLoader::requireClassOnce( 'actions/AccessImageAction' ); /** * This class provides utility functions for formatting URLs for this application. * @author craigb */ class UrlFormatter { private static $baseUrl = NULL; /** * This method formats a URL for the specified routing item class name, incorporating * the get parameters specified in the get parameter map. * @param String $routingItemClassPath The class path of the target routing item. * @param array $getParamMap A map of get parameters to be included in the URL (optional). * @return String The formatted URL. */ public static function formatRoutingItemUrl( $routingItemClassPath, array $getParamMap = NULL ) { ClassLoader::requireClassOnce( $routingItemClassPath ); $routingClassName = ClassLoader::parseClassName( $routingItemClassPath ); $url = UrlFormatter::getBaseUrl( ) . '?' . IndexRoutingItem::INDEX_ROUTING_ITEM_GET_PARAM . '='; $url .= $routingClassName::getRoutingKey( ); if ( $getParamMap != NULL ) { foreach( $getParamMap as $key => $value ) $url .= "&$key=$value"; } return $url; } /** * Formats a URL for the specified image path. * @param String $imagePath The image path to be formatted. * @return String The formatted url. */ public static function formatImageUrl( $imagePath ) { $getParamMap = array( AccessImageAction::RELATIVE_IMAGE_PATH_GET_PARAM => $imagePath ); $url = UrlFormatter::formatRoutingItemUrl( 'actions/AccessImageAction', $getParamMap ); return $url; } /** * Formats and returns the base URL for the application. * @return String The base URL for the application. */ public static function getBaseUrl( ) { if ( UrlFormatter::$baseUrl == NULL ) UrlFormatter::$baseUrl = Settings::getSetting( 'APPLICATION_URL' ) . 'index.php'; return UrlFormatter::$baseUrl; } } ?>
GreyMatterCatalyst/ArtJourney
src/php/util/UrlFormatter.class.php
PHP
mit
2,034
[ 30522, 1026, 1029, 25718, 2465, 11066, 2121, 1024, 1024, 5478, 26266, 2239, 3401, 1006, 1005, 21183, 4014, 1013, 10906, 1005, 1007, 1025, 2465, 11066, 2121, 1024, 1024, 5478, 26266, 2239, 3401, 1006, 1005, 21183, 4014, 1013, 5950, 22494, 3436, 4221, 2213, 1005, 1007, 1025, 2465, 11066, 2121, 1024, 1024, 5478, 26266, 2239, 3401, 1006, 1005, 4506, 1013, 3229, 9581, 3351, 18908, 3258, 1005, 1007, 1025, 30524, 1008, 2023, 4118, 11630, 1037, 24471, 2140, 2005, 1996, 9675, 16972, 8875, 2465, 2171, 1010, 13543, 1008, 1996, 2131, 11709, 9675, 1999, 1996, 2131, 16381, 4949, 1012, 1008, 1030, 11498, 2213, 5164, 1002, 16972, 4221, 12458, 27102, 15069, 1996, 2465, 4130, 1997, 1996, 4539, 16972, 8875, 1012, 1008, 1030, 11498, 2213, 9140, 1002, 2131, 28689, 14760, 2361, 1037, 4949, 1997, 2131, 11709, 2000, 2022, 2443, 1999, 1996, 24471, 2140, 1006, 11887, 1007, 1012, 1008, 1030, 2709, 5164, 1996, 4289, 3064, 24471, 2140, 1012, 1008, 1013, 2270, 10763, 3853, 4289, 22494, 3436, 4221, 20136, 2140, 1006, 1002, 16972, 4221, 12458, 27102, 15069, 1010, 9140, 1002, 2131, 28689, 14760, 2361, 1027, 19701, 1007, 1063, 2465, 11066, 2121, 1024, 1024, 5478, 26266, 2239, 3401, 1006, 1002, 16972, 4221, 12458, 27102, 15069, 1007, 1025, 1002, 16972, 26266, 18442, 1027, 2465, 11066, 2121, 1024, 1024, 11968, 3366, 26266, 18442, 1006, 1002, 16972, 4221, 12458, 27102, 15069, 1007, 1025, 1002, 24471, 2140, 1027, 24471, 10270, 2953, 18900, 3334, 1024, 1024, 2131, 15058, 3126, 2140, 1006, 1007, 1012, 1005, 1029, 1005, 1012, 5950, 22494, 3436, 4221, 2213, 1024, 1024, 5950, 1035, 16972, 1035, 8875, 1035, 2131, 1035, 11498, 2213, 1012, 1005, 1027, 1005, 1025, 1002, 24471, 2140, 1012, 1027, 1002, 16972, 26266, 18442, 1024, 1024, 2131, 22494, 3436, 14839, 1006, 1007, 1025, 2065, 1006, 1002, 2131, 28689, 14760, 2361, 999, 1027, 19701, 1007, 1063, 18921, 6776, 1006, 1002, 2131, 28689, 14760, 2361, 2004, 1002, 3145, 1027, 1028, 1002, 3643, 1007, 1002, 24471, 2140, 1012, 1027, 1000, 1004, 1002, 3145, 1027, 1002, 3643, 1000, 1025, 1065, 2709, 1002, 24471, 2140, 1025, 1065, 1013, 1008, 1008, 1008, 11630, 1037, 24471, 2140, 2005, 1996, 9675, 3746, 4130, 1012, 1008, 1030, 11498, 2213, 5164, 1002, 3746, 15069, 1996, 3746, 4130, 2000, 2022, 4289, 3064, 1012, 1008, 1030, 2709, 5164, 1996, 4289, 3064, 24471, 2140, 1012, 1008, 1013, 2270, 10763, 3853, 4289, 9581, 3351, 3126, 2140, 1006, 1002, 3746, 15069, 1007, 1063, 1002, 2131, 28689, 14760, 2361, 1027, 9140, 1006, 3229, 9581, 3351, 18908, 3258, 1024, 1024, 5816, 1035, 3746, 1035, 4130, 1035, 2131, 1035, 11498, 2213, 1027, 1028, 1002, 3746, 15069, 1007, 1025, 1002, 24471, 2140, 1027, 24471, 10270, 2953, 18900, 3334, 1024, 1024, 4289, 22494, 3436, 4221, 20136, 2140, 1006, 1005, 4506, 1013, 3229, 9581, 3351, 18908, 3258, 1005, 1010, 1002, 2131, 28689, 14760, 2361, 1007, 1025, 2709, 1002, 24471, 30523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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 1008, 1008, 1008, 2023, 2465, 3640, 9710, 4972, 2005, 4289, 3436, 24471, 4877, 2005, 2023, 4646, 1012, 1008, 1030, 3166, 7010, 2497, 1008, 1013, 2465, 24471, 10270, 2953, 18900, 3334, 1063, 2797, 10763, 1002, 2918, 3126, 2140, 1027, 19701, 1025, 1013, 1008, 1008, 30526 ]
 input[type=checkbox], input[type=radio] { width: 16px; height: 16px; } label input[type=checkbox], label input[type=radio] { margin:0; vertical-align: middle; } input[type=checkbox].form-control { margin-top: 9px; } p.form-control { background-color: #f6f6f6; margin: 0px; } p.form-control.readonly-textarea { height: initial !important; } .numeric { text-align:right; } label > input[type=checkbox] { margin: 0px; vertical-align: middle; } .date-time .input-group.date, .date-time .input-group.time { float: left; margin-right: 5px; } .input-group.date { max-width: 140px; } .input-group.time { max-width: 100px; } .input-group.time[data-show-seconds=true] { max-width: 120px; } .sf-entity-line-entity { background: transparent; overflow: hidden; } /* Buttons */ .btn.btn-default.sf-line-button { background: transparent; } .sf-line-button { cursor:pointer; color:lightgray; } .sf-line-button:hover { color:gray; } /* EntityLine buttons */ .input-group-btn.btn-group-vertical { vertical-align:top; } .input-group-btn.btn-group-vertical > .btn { border-top-left-radius: 0px !important; border-bottom-left-radius: 0px !important; } .input-group-btn.btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } /*legends*/ fieldset { border: 1px solid #ddd; padding: 10px; border-radius: 4px; margin: 10px 0px; } fieldset > legend { border: 0px; border-radius: 4px; padding: 3px 10px 0 10px; margin: 0px; margin-bottom: -5px; font-size: 16px; font-weight: bold; width: initial; } fieldset > legend > div > span.pull-right { margin-left: 5px; } .border { border: 1px solid #ddd; padding: 10px; border-radius: 4px; } /*EntityRepeater*/ fieldset.sf-repeater-element > legend { width: auto; } .repeater-inline .sf-repeater-element { padding: 4px 10px; margin: 0px 0px 8px 0px; } .repeater-inline .sf-repeater-element legend { float: left; margin-left: -6px; margin-right: 10px; margin-top: 5px; border: 0px; } .repeater-inline.repeater-right .sf-repeater-element legend { float: right; margin-left: 6px; margin-right: -10px; margin-top: 5px; border: 0px; } /*EntityStrip*/ ul.sf-strip-horizontal > li { float: left; margin-right: 10px; } ul.sf-strip-vertical>li { margin: 1px 0px; } ul.sf-strip-vertical>li>.form-control { background-color:transparent; box-shadow:none; } .sf-strip { list-style: none; padding: 0px; margin-bottom: 7px; /*sf-strip-horizontal*/ } .sf-strip.sf-strip-vertical { margin-top: 7px; /*sf-strip-vertical*/ } .sf-strip-horizontal > li > * { vertical-align: middle; } label.sf-checkbox-element { display: block; } /*Tabs*/ ul.nav-tabs { margin-bottom: 10px; } /*buton colors*/ .sf-create:hover { color:#22BA00; } .sf-remove:hover { color:#CF0000; } .sf-find:hover { color:#FFCC00; } .sf-view:hover { color:#007CE8; } .move-down:hover, .move-up:hover { color:#9900E0; } /*has-error*/ .has-error { border-color: #a94442; } .form-group .form-group { margin-bottom: 0px; } .form-group .form-group label { color: #D8D8D8; font-size: 12px; margin-bottom: 0px; } /*form xs*/ .form-xs .form-control { padding: 0px 3px; } .form-xs .form-control:not(textarea), .form-xs .form-control-static { height: 20px; } .form-xs input[type=checkbox].form-control { height: 16px; margin-top: 9px; padding: 2px; } .form-xs .input-group .btn, .form-xs .input-group .input-group-addon { padding: 0px 3px; height: 20px; } .form-xs .sf-strip { margin-bottom: 0px; } .form-xs .sf-strip.sf-strip-vertical { margin-top: 0px; /*sf-strip-vertical*/ } .form-group.form-xs { margin-bottom: 6px; } .form-xs fieldset > legend { padding: 0px 4px 0 4px; font-size: 16px; } .form-horizontal .form-xs .control-label, .form-horizontal .form-xs .radio, .form-horizontal .form-xs .checkbox, .form-horizontal .form-xs .radio-inline, .form-horizontal .form-xs .checkbox-inline, .form-horizontal .form-xs .form-control-static { margin-top: 0; margin-bottom: 0; padding-top: 0px; } /*form sm*/ .form-sm .form-control { padding: 3px 6px; } .form-sm .form-control:not(textarea), .form-sm .form-control-static { height: 26px; } .form-sm input[type=checkbox].form-control { height: 16px; padding: 0px; margin-top: 4px; } .form-sm .input-group .btn, .form-sm .input-group .input-group-addon { padding: 2px 4px; } .form-sm .sf-strip { margin-bottom: 4px; } .form-sm .sf-strip.sf-strip-vertical { margin-top: 6px; /*sf-strip-vertical*/ } .form-group.form-sm { margin-bottom: 5px; } .form-sm fieldset > legend { padding: 2px 5px 0 5px; font-size: 18px; } .form-horizontal .form-sm .control-label, .form-horizontal .form-sm .radio, .form-horizontal .form-sm .checkbox, .form-horizontal .form-sm .radio-inline, .form-horizontal .form-sm .checkbox-inline, .form-horizontal .form-sm .form-control-static { margin-top: 0; margin-bottom: 0; padding-top: 2px; } /*form-inline*/ .form-horizontal .form-inline .form-group { margin-right: 0px; margin-left: 0px; } /*form-vertical*/ .form-vertical .form-group > label { float: none; padding-top: 0; text-align: start; width: auto; } .form-vertical .form-sm.form-group > label { margin-bottom:0px; } .form-vertical .form-xs.form-group > label { margin-bottom:0px; } .form-vertical .form-group { margin-left: 0; margin-right: 0; } .form-vertical .form-control, .form-vertical .form-control-static { display: block; /*width: initial;*/ vertical-align: baseline; } /* table non-fluid*/ .table-nonfluid { width: auto; } /* disabled menu items*/ ul.dropdown-menu > li > a[disabled], ul.dropdown-menu > li > a.disabled { pointer-events: none; cursor: not-allowed; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; opacity: .65; } /*Override absurd width for popups on sm*/ @media (min-width: 768px) { .modal-dialog:not(.modal-sm) { min-width: 730px; } }
rondoo/framework
Signum.Web/Signum/Content/Lines.css
CSS
lgpl-3.0
6,922
[ 30522, 7953, 1031, 2828, 1027, 4638, 8758, 1033, 1010, 7953, 1031, 2828, 1027, 2557, 1033, 1063, 9381, 1024, 2385, 2361, 2595, 1025, 4578, 1024, 2385, 2361, 2595, 1025, 1065, 3830, 7953, 1031, 2828, 1027, 4638, 8758, 30524, 8758, 1033, 1012, 2433, 1011, 2491, 1063, 7785, 1011, 2327, 1024, 1023, 2361, 2595, 1025, 1065, 1052, 1012, 2433, 1011, 2491, 1063, 4281, 1011, 3609, 1024, 1001, 1042, 2575, 2546, 2575, 2546, 2575, 1025, 7785, 1024, 1014, 2361, 2595, 1025, 1065, 1052, 1012, 2433, 1011, 2491, 1012, 3191, 2239, 2135, 1011, 3793, 12069, 2050, 1063, 4578, 1024, 3988, 999, 2590, 1025, 1065, 1012, 16371, 25531, 1063, 3793, 1011, 25705, 1024, 2157, 1025, 1065, 3830, 1028, 7953, 1031, 2828, 1027, 4638, 8758, 1033, 1063, 7785, 1024, 1014, 2361, 2595, 1025, 7471, 1011, 25705, 1024, 2690, 1025, 1065, 1012, 3058, 1011, 2051, 1012, 7953, 1011, 2177, 1012, 3058, 1010, 1012, 3058, 1011, 2051, 1012, 7953, 1011, 2177, 1012, 2051, 1063, 14257, 1024, 2187, 1025, 7785, 1011, 2157, 1024, 1019, 2361, 2595, 1025, 1065, 1012, 7953, 1011, 2177, 1012, 3058, 1063, 4098, 1011, 9381, 1024, 8574, 2361, 2595, 1025, 1065, 1012, 7953, 1011, 2177, 1012, 2051, 1063, 4098, 1011, 9381, 1024, 2531, 2361, 2595, 1025, 1065, 1012, 7953, 1011, 2177, 1012, 2051, 1031, 2951, 1011, 2265, 1011, 3823, 1027, 2995, 1033, 1063, 4098, 1011, 9381, 1024, 6036, 2361, 2595, 1025, 1065, 1012, 16420, 1011, 9178, 1011, 2240, 1011, 9178, 1063, 4281, 1024, 13338, 1025, 2058, 12314, 1024, 5023, 1025, 1065, 1013, 1008, 11287, 1008, 1013, 1012, 18411, 2078, 1012, 18411, 2078, 1011, 12398, 1012, 16420, 1011, 2240, 1011, 6462, 1063, 4281, 1024, 13338, 1025, 1065, 1012, 16420, 1011, 2240, 1011, 6462, 1063, 12731, 25301, 2099, 1024, 20884, 1025, 3609, 1024, 2422, 17643, 2100, 1025, 1065, 1012, 16420, 1011, 2240, 1011, 6462, 1024, 25215, 2099, 1063, 3609, 1024, 3897, 1025, 1065, 1013, 1008, 9178, 4179, 11287, 1008, 1013, 1012, 7953, 1011, 2177, 1011, 18411, 2078, 1012, 18411, 2078, 1011, 2177, 1011, 7471, 1063, 7471, 1011, 25705, 1024, 2327, 1025, 1065, 1012, 7953, 1011, 2177, 1011, 18411, 2078, 1012, 18411, 2078, 1011, 2177, 1011, 7471, 1028, 1012, 18411, 2078, 1063, 3675, 1011, 2327, 1011, 2187, 1011, 12177, 1024, 1014, 2361, 2595, 999, 2590, 1025, 3675, 1011, 3953, 1011, 2187, 1011, 12177, 1024, 1014, 2361, 2595, 999, 2590, 1025, 1065, 1012, 7953, 1011, 2177, 1011, 18411, 2078, 1012, 18411, 2078, 1011, 2177, 1011, 7471, 1028, 1012, 18411, 2078, 1024, 2034, 1011, 2775, 1024, 2025, 1006, 1024, 2197, 1011, 2775, 1007, 1063, 3675, 1011, 2327, 1011, 2157, 1011, 12177, 1024, 1018, 2361, 2595, 1025, 3675, 1011, 3953, 1011, 2157, 1011, 12177, 1024, 1014, 1025, 3675, 1011, 3953, 1011, 2187, 1011, 12177, 1024, 1014, 1025, 1065, 1013, 1008, 9489, 1008, 1013, 4249, 3388, 1063, 3675, 1024, 1015, 2361, 2595, 5024, 1001, 20315, 2094, 1025, 11687, 4667, 1024, 2184, 2361, 2595, 1025, 3675, 1011, 12177, 1024, 30523, 1033, 1010, 3830, 7953, 1031, 2828, 1027, 2557, 1033, 1063, 7785, 1024, 1014, 1025, 7471, 1011, 25705, 1024, 2690, 1025, 1065, 7953, 1031, 2828, 1027, 4638, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1033, 1010, 3830, 7953, 1031, 2828, 1027, 2557, 1033, 1063, 7785, 1024, 1014, 1025, 7471, 1011, 25705, 1024, 2690, 1025, 1065, 7953, 1031, 2828, 1027, 4638, 30526 ]
match x: | it?(): true
wcjohnson/babylon-lightscript
test/fixtures/safe-call-expression/lightscript/match-test/actual.js
JavaScript
mit
25
[ 30522, 2674, 1060, 1024, 1064, 2009, 1029, 1006, 1007, 1024, 2995, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
# Copyright 2014 Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import collections import copy import datetime import re import mock import six from osprofiler import profiler from osprofiler.tests import test class ProfilerGlobMethodsTestCase(test.TestCase): def test_get_profiler_not_inited(self): profiler.clean() self.assertIsNone(profiler.get()) def test_get_profiler_and_init(self): p = profiler.init("secret", base_id="1", parent_id="2") self.assertEqual(profiler.get(), p) self.assertEqual(p.get_base_id(), "1") # NOTE(boris-42): until we make first start we don't have self.assertEqual(p.get_id(), "2") def test_start_not_inited(self): profiler.clean() profiler.start("name") def test_start(self): p = profiler.init("secret", base_id="1", parent_id="2") p.start = mock.MagicMock() profiler.start("name", info="info") p.start.assert_called_once_with("name", info="info") def test_stop_not_inited(self): profiler.clean() profiler.stop() def test_stop(self): p = profiler.init("secret", base_id="1", parent_id="2") p.stop = mock.MagicMock() profiler.stop(info="info") p.stop.assert_called_once_with(info="info") class ProfilerTestCase(test.TestCase): def test_profiler_get_shorten_id(self): uuid_id = "4e3e0ec6-2938-40b1-8504-09eb1d4b0dee" prof = profiler._Profiler("secret", base_id="1", parent_id="2") result = prof.get_shorten_id(uuid_id) expected = "850409eb1d4b0dee" self.assertEqual(expected, result) def test_profiler_get_shorten_id_int(self): short_id_int = 42 prof = profiler._Profiler("secret", base_id="1", parent_id="2") result = prof.get_shorten_id(short_id_int) expected = "2a" self.assertEqual(expected, result) def test_profiler_get_base_id(self): prof = profiler._Profiler("secret", base_id="1", parent_id="2") self.assertEqual(prof.get_base_id(), "1") @mock.patch("osprofiler.profiler.uuidutils.generate_uuid") def test_profiler_get_parent_id(self, mock_generate_uuid): mock_generate_uuid.return_value = "42" prof = profiler._Profiler("secret", base_id="1", parent_id="2") prof.start("test") self.assertEqual(prof.get_parent_id(), "2") @mock.patch("osprofiler.profiler.uuidutils.generate_uuid") def test_profiler_get_base_id_unset_case(self, mock_generate_uuid): mock_generate_uuid.return_value = "42" prof = profiler._Profiler("secret") self.assertEqual(prof.get_base_id(), "42") self.assertEqual(prof.get_parent_id(), "42") @mock.patch("osprofiler.profiler.uuidutils.generate_uuid") def test_profiler_get_id(self, mock_generate_uuid): mock_generate_uuid.return_value = "43" prof = profiler._Profiler("secret") prof.start("test") self.assertEqual(prof.get_id(), "43") @mock.patch("osprofiler.profiler.datetime") @mock.patch("osprofiler.profiler.uuidutils.generate_uuid") @mock.patch("osprofiler.profiler.notifier.notify") def test_profiler_start(self, mock_notify, mock_generate_uuid, mock_datetime): mock_generate_uuid.return_value = "44" now = datetime.datetime.utcnow() mock_datetime.datetime.utcnow.return_value = now info = {"some": "info"} payload = { "name": "test-start", "base_id": "1", "parent_id": "2", "trace_id": "44", "info": info, "timestamp": now.strftime("%Y-%m-%dT%H:%M:%S.%f"), } prof = profiler._Profiler("secret", base_id="1", parent_id="2") prof.start("test", info=info) mock_notify.assert_called_once_with(payload) @mock.patch("osprofiler.profiler.datetime") @mock.patch("osprofiler.profiler.notifier.notify") def test_profiler_stop(self, mock_notify, mock_datetime): now = datetime.datetime.utcnow() mock_datetime.datetime.utcnow.return_value = now prof = profiler._Profiler("secret", base_id="1", parent_id="2") prof._trace_stack.append("44") prof._name.append("abc") info = {"some": "info"} prof.stop(info=info) payload = { "name": "abc-stop", "base_id": "1", "parent_id": "2", "trace_id": "44", "info": info, "timestamp": now.strftime("%Y-%m-%dT%H:%M:%S.%f"), } mock_notify.assert_called_once_with(payload) self.assertEqual(len(prof._name), 0) self.assertEqual(prof._trace_stack, collections.deque(["1", "2"])) def test_profiler_hmac(self): hmac = "secret" prof = profiler._Profiler(hmac, base_id="1", parent_id="2") self.assertEqual(hmac, prof.hmac_key) class WithTraceTestCase(test.TestCase): @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_with_trace(self, mock_start, mock_stop): with profiler.Trace("a", info="a1"): mock_start.assert_called_once_with("a", info="a1") mock_start.reset_mock() with profiler.Trace("b", info="b1"): mock_start.assert_called_once_with("b", info="b1") mock_stop.assert_called_once_with() mock_stop.reset_mock() mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_with_trace_etype(self, mock_start, mock_stop): def foo(): with profiler.Trace("foo"): raise ValueError("bar") self.assertRaises(ValueError, foo) mock_start.assert_called_once_with("foo", info=None) mock_stop.assert_called_once_with(info={ "etype": "ValueError", "message": "bar" }) @profiler.trace("function", info={"info": "some_info"}) def traced_func(i): return i @profiler.trace("hide_args", hide_args=True) def trace_hide_args_func(a, i=10): return (a, i) @profiler.trace("foo", hide_args=True) def test_fn_exc(): raise ValueError() @profiler.trace("hide_result", hide_result=False) def trace_with_result_func(a, i=10): return (a, i) class TraceDecoratorTestCase(test.TestCase): @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_duplicate_trace_disallow(self, mock_start, mock_stop): @profiler.trace("test") def trace_me(): pass self.assertRaises( ValueError, profiler.trace("test-again", allow_multiple_trace=False), trace_me) @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_with_args(self, mock_start, mock_stop): self.assertEqual(1, traced_func(1)) expected_info = { "info": "some_info", "function": { "name": "osprofiler.tests.unit.test_profiler.traced_func", "args": str((1,)), "kwargs": str({}) } } mock_start.assert_called_once_with("function", info=expected_info) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_without_args(self, mock_start, mock_stop): self.assertEqual((1, 2), trace_hide_args_func(1, i=2)) expected_info = { "function": { "name": "osprofiler.tests.unit.test_profiler" ".trace_hide_args_func" } } mock_start.assert_called_once_with("hide_args", info=expected_info) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_with_exception(self, mock_start, mock_stop): self.assertRaises(ValueError, test_fn_exc) expected_info = { "function": { "name": "osprofiler.tests.unit.test_profiler.test_fn_exc" } } expected_stop_info = {"etype": "ValueError", "message": ""} mock_start.assert_called_once_with("foo", info=expected_info) mock_stop.assert_called_once_with(info=expected_stop_info) @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_with_result(self, mock_start, mock_stop): self.assertEqual((1, 2), trace_with_result_func(1, i=2)) start_info = { "function": { "name": "osprofiler.tests.unit.test_profiler" ".trace_with_result_func", "args": str((1,)), "kwargs": str({"i": 2}) } } stop_info = { "function": { "result": str((1, 2)) } } mock_start.assert_called_once_with("hide_result", info=start_info) mock_stop.assert_called_once_with(info=stop_info) class FakeTracedCls(object): def method1(self, a, b, c=10): return a + b + c def method2(self, d, e): return d - e def method3(self, g=10, h=20): return g * h def _method(self, i): return i @profiler.trace_cls("rpc", info={"a": 10}) class FakeTraceClassWithInfo(FakeTracedCls): pass @profiler.trace_cls("a", info={"b": 20}, hide_args=True) class FakeTraceClassHideArgs(FakeTracedCls): pass @profiler.trace_cls("rpc", trace_private=True) class FakeTracePrivate(FakeTracedCls): pass class FakeTraceStaticMethodBase(FakeTracedCls): @staticmethod def static_method(arg): return arg @profiler.trace_cls("rpc", trace_static_methods=True) class FakeTraceStaticMethod(FakeTraceStaticMethodBase): pass @profiler.trace_cls("rpc") class FakeTraceStaticMethodSkip(FakeTraceStaticMethodBase): pass class FakeTraceClassMethodBase(FakeTracedCls): @classmethod def class_method(cls, arg): return arg @profiler.trace_cls("rpc") class FakeTraceClassMethodSkip(FakeTraceClassMethodBase): pass def py3_info(info): # NOTE(boris-42): py33 I hate you. info_py3 = copy.deepcopy(info) new_name = re.sub("FakeTrace[^.]*", "FakeTracedCls", info_py3["function"]["name"]) info_py3["function"]["name"] = new_name return info_py3 def possible_mock_calls(name, info): # NOTE(boris-42): py33 I hate you. return [mock.call(name, info=info), mock.call(name, info=py3_info(info))] class TraceClsDecoratorTestCase(test.TestCase): @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_args(self, mock_start, mock_stop): fake_cls = FakeTraceClassWithInfo() self.assertEqual(30, fake_cls.method1(5, 15)) expected_info = { "a": 10, "function": { "name": ("osprofiler.tests.unit.test_profiler" ".FakeTraceClassWithInfo.method1"), "args": str((fake_cls, 5, 15)), "kwargs": str({}) } } self.assertEqual(1, len(mock_start.call_args_list)) self.assertIn(mock_start.call_args_list[0], possible_mock_calls("rpc", expected_info)) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_kwargs(self, mock_start, mock_stop): fake_cls = FakeTraceClassWithInfo() self.assertEqual(50, fake_cls.method3(g=5, h=10)) expected_info = { "a": 10, "function": { "name": ("osprofiler.tests.unit.test_profiler" ".FakeTraceClassWithInfo.method3"), "args": str((fake_cls,)), "kwargs": str({"g": 5, "h": 10}) } } self.assertEqual(1, len(mock_start.call_args_list)) self.assertIn(mock_start.call_args_list[0], possible_mock_calls("rpc", expected_info)) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_without_private(self, mock_start, mock_stop): fake_cls = FakeTraceClassHideArgs() self.assertEqual(10, fake_cls._method(10)) self.assertFalse(mock_start.called) self.assertFalse(mock_stop.called) @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_without_args(self, mock_start, mock_stop): fake_cls = FakeTraceClassHideArgs() self.assertEqual(40, fake_cls.method1(5, 15, c=20)) expected_info = { "b": 20, "function": { "name": ("osprofiler.tests.unit.test_profiler" ".FakeTraceClassHideArgs.method1"), } } self.assertEqual(1, len(mock_start.call_args_list)) self.assertIn(mock_start.call_args_list[0], possible_mock_calls("a", expected_info)) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_private_methods(self, mock_start, mock_stop): fake_cls = FakeTracePrivate() self.assertEqual(5, fake_cls._method(5)) expected_info = { "function": { "name": ("osprofiler.tests.unit.test_profiler" ".FakeTracePrivate._method"), "args": str((fake_cls, 5)), "kwargs": str({}) } } self.assertEqual(1, len(mock_start.call_args_list)) self.assertIn(mock_start.call_args_list[0], possible_mock_calls("rpc", expected_info)) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") @test.testcase.skip( "Static method tracing was disabled due the bug. This test should be " "skipped until we find the way to address it.") def test_static(self, mock_start, mock_stop): fake_cls = FakeTraceStaticMethod() self.assertEqual(25, fake_cls.static_method(25)) expected_info = { "function": { # fixme(boris-42): Static methods are treated differently in # Python 2.x and Python 3.x. So in PY2 we # expect to see method4 because method is # static and doesn't have reference to class # - and FakeTraceStatic.method4 in PY3 "name": "osprofiler.tests.unit.test_profiler" ".method4" if six.PY2 else "osprofiler.tests.unit.test_profiler.FakeTraceStatic" ".method4", "args": str((25,)), "kwargs": str({}) } } self.assertEqual(1, len(mock_start.call_args_list)) self.assertIn(mock_start.call_args_list[0], possible_mock_calls("rpc", expected_info)) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_static_method_skip(self, mock_start, mock_stop): self.assertEqual(25, FakeTraceStaticMethodSkip.static_method(25)) self.assertFalse(mock_start.called) self.assertFalse(mock_stop.called) @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_class_method_skip(self, mock_start, mock_stop): self.assertEqual("foo", FakeTraceClassMethodSkip.class_method("foo")) self.assertFalse(mock_start.called) self.assertFalse(mock_stop.called) @six.add_metaclass(profiler.TracedMeta) class FakeTraceWithMetaclassBase(object): __trace_args__ = {"name": "rpc", "info": {"a": 10}} def method1(self, a, b, c=10): return a + b + c def method2(self, d, e): return d - e def method3(self, g=10, h=20): return g * h def _method(self, i): return i class FakeTraceDummy(FakeTraceWithMetaclassBase): def method4(self, j): return j class FakeTraceWithMetaclassHideArgs(FakeTraceWithMetaclassBase): __trace_args__ = {"name": "a", "info": {"b": 20}, "hide_args": True} def method5(self, k, l): return k + l class FakeTraceWithMetaclassPrivate(FakeTraceWithMetaclassBase): __trace_args__ = {"name": "rpc", "trace_private": True} def _new_private_method(self, m): return 2 * m class TraceWithMetaclassTestCase(test.TestCase): def test_no_name_exception(self): def define_class_with_no_name(): @six.add_metaclass(profiler.TracedMeta) class FakeTraceWithMetaclassNoName(FakeTracedCls): pass self.assertRaises(TypeError, define_class_with_no_name, 1) @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_args(self, mock_start, mock_stop): fake_cls = FakeTraceWithMetaclassBase() self.assertEqual(30, fake_cls.method1(5, 15)) expected_info = { "a": 10, "function": { "name": ("osprofiler.tests.unit.test_profiler" ".FakeTraceWithMetaclassBase.method1"), "args": str((fake_cls, 5, 15)), "kwargs": str({}) } } self.assertEqual(1, len(mock_start.call_args_list)) self.assertIn(mock_start.call_args_list[0], possible_mock_calls("rpc", expected_info)) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_kwargs(self, mock_start, mock_stop): fake_cls = FakeTraceWithMetaclassBase() self.assertEqual(50, fake_cls.method3(g=5, h=10)) expected_info = { "a": 10, "function": { "name": ("osprofiler.tests.unit.test_profiler" ".FakeTraceWithMetaclassBase.method3"), "args": str((fake_cls,)), "kwargs": str({"g": 5, "h": 10}) } } self.assertEqual(1, len(mock_start.call_args_list)) self.assertIn(mock_start.call_args_list[0], possible_mock_calls("rpc", expected_info)) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_without_private(self, mock_start, mock_stop): fake_cls = FakeTraceWithMetaclassHideArgs() self.assertEqual(10, fake_cls._method(10)) self.assertFalse(mock_start.called) self.assertFalse(mock_stop.called) @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_without_args(self, mock_start, mock_stop): fake_cls = FakeTraceWithMetaclassHideArgs() self.assertEqual(20, fake_cls.method5(5, 15)) expected_info = { "b": 20, "function": { "name": ("osprofiler.tests.unit.test_profiler" ".FakeTraceWithMetaclassHideArgs.method5") } } self.assertEqual(1, len(mock_start.call_args_list)) self.assertIn(mock_start.call_args_list[0], possible_mock_calls("a", expected_info)) mock_stop.assert_called_once_with() @mock.patch("osprofiler.profiler.stop") @mock.patch("osprofiler.profiler.start") def test_private_methods(self, mock_start, mock_stop): fake_cls = FakeTraceWithMetaclassPrivate() self.assertEqual(10, fake_cls._new_private_method(5)) expected_info = { "function": { "name": ("osprofiler.tests.unit.test_profiler" ".FakeTraceWithMetaclassPrivate._new_private_method"), "args": str((fake_cls, 5)), "kwargs": str({}) } } self.assertEqual(1, len(mock_start.call_args_list)) self.assertIn(mock_start.call_args_list[0], possible_mock_calls("rpc", expected_info)) mock_stop.assert_called_once_with()
stackforge/osprofiler
osprofiler/tests/unit/test_profiler.py
Python
apache-2.0
21,196
[ 30522, 1001, 9385, 2297, 18062, 16778, 2015, 4297, 1012, 1001, 2035, 2916, 9235, 1012, 1001, 1001, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 1001, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1001, 1037, 6100, 1997, 1996, 6105, 2012, 1001, 1001, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1001, 1001, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1001, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 2302, 1001, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 2156, 1996, 1001, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 12546, 1001, 2104, 1996, 6105, 1012, 12324, 6407, 12324, 6100, 12324, 3058, 7292, 12324, 2128, 12324, 12934, 12324, 2416, 2013, 9808, 21572, 8873, 3917, 12324, 6337, 2099, 2013, 9808, 21572, 8873, 3917, 1012, 5852, 12324, 3231, 2465, 6337, 10623, 4135, 25526, 11031, 20620, 22199, 18382, 1006, 3231, 1012, 3231, 18382, 1007, 1024, 13366, 3231, 1035, 2131, 1035, 6337, 2099, 1035, 2025, 1035, 1999, 17572, 1006, 2969, 1007, 1024, 6337, 2099, 1012, 4550, 1006, 1007, 2969, 1012, 20865, 2483, 8540, 2063, 1006, 6337, 2099, 1012, 2131, 1006, 1007, 1007, 13366, 3231, 1035, 2131, 1035, 6337, 2099, 1035, 1998, 1035, 1999, 4183, 1006, 2969, 1007, 1024, 1052, 1027, 6337, 2099, 1012, 1999, 4183, 1006, 1000, 3595, 1000, 1010, 2918, 1035, 8909, 1027, 1000, 1015, 1000, 1010, 6687, 1035, 8909, 1027, 1000, 1016, 30524, 2063, 26426, 1006, 1052, 1012, 2131, 1035, 2918, 1035, 8909, 1006, 1007, 1010, 1000, 1015, 1000, 1007, 1001, 3602, 1006, 11235, 1011, 4413, 1007, 1024, 2127, 2057, 2191, 2034, 2707, 2057, 2123, 1005, 1056, 2031, 2969, 1012, 20865, 2063, 26426, 1006, 1052, 1012, 2131, 1035, 8909, 1006, 1007, 1010, 1000, 1016, 1000, 1007, 13366, 3231, 1035, 2707, 1035, 2025, 1035, 1999, 17572, 1006, 2969, 1007, 1024, 6337, 2099, 1012, 4550, 1006, 1007, 6337, 2099, 1012, 2707, 1006, 1000, 2171, 1000, 1007, 13366, 3231, 1035, 2707, 1006, 2969, 1007, 1024, 1052, 1027, 6337, 2099, 1012, 1999, 4183, 1006, 1000, 3595, 1000, 1010, 2918, 1035, 8909, 1027, 1000, 1015, 1000, 1010, 6687, 1035, 8909, 1027, 1000, 1016, 1000, 1007, 1052, 1012, 2707, 1027, 12934, 1012, 3894, 5302, 3600, 1006, 1007, 6337, 2099, 1012, 2707, 1006, 1000, 2171, 1000, 1010, 18558, 1027, 1000, 18558, 1000, 1007, 1052, 1012, 2707, 1012, 20865, 1035, 2170, 1035, 2320, 1035, 2007, 1006, 1000, 2171, 1000, 1010, 18558, 1027, 1000, 18558, 1000, 1007, 13366, 3231, 1035, 2644, 1035, 2025, 1035, 1999, 17572, 1006, 2969, 1007, 1024, 6337, 2099, 1012, 4550, 1006, 1007, 6337, 2099, 1012, 2644, 1006, 1007, 13366, 3231, 1035, 2644, 1006, 2969, 1007, 1024, 1052, 1027, 6337, 2099, 1012, 1999, 4183, 1006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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1000, 1007, 2969, 1012, 20865, 2063, 26426, 1006, 6337, 2099, 1012, 2131, 1006, 1007, 1010, 1052, 1007, 2969, 1012, 20865, 30526 ]
var baseClone = require('./_baseClone'); /** * This method is like `_.clone` except that it accepts `customizer` which * is invoked to produce the cloned value. If `customizer` returns `undefined`, * cloning is handled by the method instead. The `customizer` is invoked with * up to four arguments; (value [, index|key, object, stack]). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to clone. * @param {Function} [customizer] The function to customize cloning. * @returns {*} Returns the cloned value. * @see _.cloneDeepWith * @example * * function customizer(value) { * if (_.isElement(value)) { * return value.cloneNode(false); * } * } * * var el = _.cloneWith(document.body, customizer); * * console.log(el === document.body); * // => false * console.log(el.nodeName); * // => 'BODY' * console.log(el.childNodes.length); * // => 0 */ function cloneWith(value, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; return baseClone(value, false, true, customizer); } module.exports = cloneWith;
ionutbarau/petstore
petstore-app/src/main/resources/static/node_modules/bower/lib/node_modules/lodash/cloneWith.js
JavaScript
apache-2.0
1,117
[ 30522, 13075, 2918, 20464, 5643, 1027, 5478, 1006, 1005, 1012, 1013, 1035, 2918, 20464, 5643, 1005, 1007, 1025, 1013, 1008, 1008, 1008, 2023, 4118, 2003, 2066, 1036, 1035, 1012, 17598, 1036, 3272, 2008, 2009, 13385, 1036, 7661, 17629, 1036, 2029, 1008, 2003, 24959, 2000, 3965, 1996, 17598, 2094, 3643, 1012, 2065, 1036, 7661, 17629, 1036, 5651, 1036, 6151, 28344, 1036, 1010, 1008, 18856, 13369, 2003, 8971, 2011, 1996, 4118, 2612, 1012, 1996, 1036, 7661, 17629, 1036, 2003, 24959, 2007, 1008, 2039, 2000, 2176, 9918, 1025, 1006, 3643, 1031, 1010, 5950, 1064, 3145, 1010, 4874, 1010, 9991, 1033, 1007, 1012, 1008, 1008, 1030, 10763, 1008, 1030, 2266, 11253, 1035, 1008, 1030, 2144, 1018, 1012, 1014, 1012, 1014, 1008, 1030, 4696, 11374, 1008, 1030, 11498, 2213, 1063, 1008, 1065, 3643, 1996, 3643, 2000, 17598, 1012, 1008, 1030, 30524, 2742, 1008, 1008, 3853, 7661, 17629, 1006, 3643, 1007, 1063, 1008, 2065, 1006, 1035, 1012, 2003, 12260, 3672, 1006, 3643, 1007, 1007, 1063, 1008, 2709, 3643, 1012, 17598, 3630, 3207, 1006, 6270, 1007, 1025, 1008, 1065, 1008, 1065, 1008, 1008, 13075, 3449, 1027, 1035, 1012, 17598, 24415, 1006, 6254, 1012, 2303, 1010, 7661, 17629, 1007, 1025, 1008, 1008, 10122, 1012, 8833, 1006, 3449, 1027, 1027, 1027, 6254, 1012, 2303, 1007, 1025, 1008, 1013, 1013, 1027, 1028, 6270, 1008, 10122, 1012, 8833, 1006, 3449, 1012, 13045, 18442, 1007, 1025, 1008, 1013, 1013, 1027, 1028, 1005, 2303, 1005, 1008, 10122, 1012, 8833, 1006, 3449, 1012, 2775, 3630, 6155, 1012, 3091, 1007, 1025, 1008, 1013, 1013, 1027, 1028, 1014, 1008, 1013, 3853, 17598, 24415, 1006, 3643, 1010, 7661, 17629, 1007, 1063, 7661, 17629, 1027, 2828, 11253, 7661, 17629, 1027, 1027, 1005, 3853, 1005, 1029, 7661, 17629, 1024, 6151, 28344, 1025, 2709, 2918, 20464, 5643, 1006, 3643, 1010, 6270, 1010, 2995, 1010, 7661, 17629, 1007, 1025, 1065, 11336, 1012, 14338, 1027, 17598, 24415, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 11498, 2213, 1063, 3853, 1065, 1031, 7661, 17629, 1033, 1996, 3853, 2000, 7661, 4697, 18856, 13369, 1012, 1008, 1030, 5651, 1063, 1008, 1065, 5651, 1996, 17598, 2094, 3643, 1012, 1008, 1030, 2156, 1035, 1012, 17598, 26095, 28400, 8939, 1008, 1030, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 11498, 2213, 1063, 3853, 1065, 1031, 7661, 17629, 1033, 1996, 3853, 2000, 7661, 4697, 18856, 13369, 1012, 1008, 1030, 5651, 1063, 1008, 1065, 5651, 1996, 17598, 2094, 3643, 1012, 1008, 1030, 2156, 1035, 1012, 17598, 26095, 28400, 8939, 1008, 1030, 30526 ]
# Copyright 2016, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above # copyright notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the # distribution. # * Neither the name of Google Inc. nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """Entry point for running stress tests.""" import argparse import threading from grpc.beta import implementations from six.moves import queue from src.proto.grpc.testing import metrics_pb2 from src.proto.grpc.testing import test_pb2 from tests.interop import methods from tests.qps import histogram from tests.stress import metrics_server from tests.stress import test_runner def _args(): parser = argparse.ArgumentParser(description='gRPC Python stress test client') parser.add_argument( '--server_addresses', help='comma seperated list of hostname:port to run servers on', default='localhost:8080', type=str) parser.add_argument( '--test_cases', help='comma seperated list of testcase:weighting of tests to run', default='large_unary:100', type=str) parser.add_argument( '--test_duration_secs', help='number of seconds to run the stress test', default=-1, type=int) parser.add_argument( '--num_channels_per_server', help='number of channels per server', default=1, type=int) parser.add_argument( '--num_stubs_per_channel', help='number of stubs to create per channel', default=1, type=int) parser.add_argument( '--metrics_port', help='the port to listen for metrics requests on', default=8081, type=int) return parser.parse_args() def _test_case_from_arg(test_case_arg): for test_case in methods.TestCase: if test_case_arg == test_case.value: return test_case else: raise ValueError('No test case {}!'.format(test_case_arg)) def _parse_weighted_test_cases(test_case_args): weighted_test_cases = {} for test_case_arg in test_case_args.split(','): name, weight = test_case_arg.split(':', 1) test_case = _test_case_from_arg(name) weighted_test_cases[test_case] = int(weight) return weighted_test_cases def run_test(args): test_cases = _parse_weighted_test_cases(args.test_cases) test_servers = args.server_addresses.split(',') # Propagate any client exceptions with a queue exception_queue = queue.Queue() stop_event = threading.Event() hist = histogram.Histogram(1, 1) runners = [] server = metrics_pb2.beta_create_MetricsService_server( metrics_server.MetricsServer(hist)) server.add_insecure_port('[::]:{}'.format(args.metrics_port)) server.start() for test_server in test_servers: host, port = test_server.split(':', 1) for _ in xrange(args.num_channels_per_server): channel = implementations.insecure_channel(host, int(port)) for _ in xrange(args.num_stubs_per_channel): stub = test_pb2.beta_create_TestService_stub(channel) runner = test_runner.TestRunner(stub, test_cases, hist, exception_queue, stop_event) runners.append(runner) for runner in runners: runner.start() try: timeout_secs = args.test_duration_secs if timeout_secs < 0: timeout_secs = None raise exception_queue.get(block=True, timeout=timeout_secs) except queue.Empty: # No exceptions thrown, success pass finally: stop_event.set() for runner in runners: runner.join() runner = None server.stop(0) if __name__ == '__main__': run_test(_args())
tengyifei/grpc
src/python/grpcio_tests/tests/stress/client.py
Python
bsd-3-clause
4,801
[ 30522, 1001, 9385, 2355, 1010, 8224, 4297, 1012, 1001, 2035, 2916, 9235, 1012, 1001, 1001, 25707, 1998, 2224, 1999, 3120, 1998, 12441, 3596, 1010, 2007, 2030, 2302, 1001, 14080, 1010, 2024, 7936, 3024, 2008, 1996, 2206, 3785, 2024, 1001, 2777, 1024, 1001, 1001, 1008, 25707, 2015, 1997, 3120, 3642, 2442, 9279, 1996, 2682, 9385, 1001, 5060, 1010, 2023, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 1012, 1001, 1008, 25707, 2015, 1999, 12441, 2433, 2442, 21376, 1996, 2682, 1001, 9385, 5060, 1010, 2023, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 1001, 1999, 1996, 12653, 1998, 1013, 2030, 2060, 4475, 3024, 2007, 1996, 1001, 4353, 1012, 1001, 1008, 4445, 1996, 2171, 1997, 8224, 4297, 1012, 4496, 1996, 3415, 1997, 2049, 1001, 16884, 2089, 2022, 2109, 2000, 2203, 5668, 2063, 2030, 5326, 3688, 5173, 2013, 1001, 2023, 4007, 2302, 3563, 3188, 2517, 6656, 1012, 1001, 1001, 2023, 4007, 2003, 3024, 2011, 1996, 9385, 13304, 1998, 16884, 1001, 1000, 2004, 2003, 1000, 1998, 2151, 4671, 2030, 13339, 10943, 3111, 1010, 2164, 1010, 2021, 2025, 1001, 3132, 2000, 1010, 1996, 13339, 10943, 3111, 1997, 6432, 8010, 1998, 10516, 2005, 1001, 1037, 3327, 3800, 2024, 5860, 19771, 7583, 1012, 1999, 2053, 2724, 4618, 1996, 9385, 1001, 3954, 2030, 16884, 2022, 30524, 2224, 1010, 1001, 2951, 1010, 2030, 11372, 1025, 2030, 2449, 24191, 1007, 2174, 3303, 1998, 2006, 2151, 1001, 3399, 1997, 14000, 1010, 3251, 1999, 3206, 1010, 9384, 14000, 1010, 2030, 17153, 2102, 1001, 1006, 2164, 27988, 2030, 4728, 1007, 17707, 1999, 2151, 2126, 2041, 1997, 1996, 2224, 1001, 1997, 2023, 4007, 1010, 2130, 2065, 9449, 1997, 1996, 6061, 1997, 2107, 4053, 1012, 1000, 1000, 1000, 4443, 2391, 2005, 2770, 6911, 5852, 1012, 1000, 1000, 1000, 12324, 12098, 21600, 11650, 2063, 12324, 11689, 2075, 2013, 24665, 15042, 1012, 8247, 12324, 24977, 2013, 2416, 1012, 5829, 12324, 24240, 2013, 5034, 2278, 1012, 15053, 1012, 24665, 15042, 1012, 5604, 12324, 12046, 2015, 1035, 1052, 2497, 2475, 2013, 5034, 2278, 1012, 15053, 1012, 24665, 15042, 1012, 5604, 12324, 3231, 1035, 1052, 2497, 2475, 2013, 5852, 1012, 6970, 7361, 12324, 4725, 2013, 5852, 1012, 1053, 4523, 12324, 2010, 3406, 13113, 2013, 5852, 1012, 6911, 12324, 12046, 2015, 1035, 8241, 2013, 5852, 1012, 6911, 12324, 3231, 1035, 5479, 13366, 1035, 12098, 5620, 1006, 1007, 1024, 11968, 8043, 1027, 12098, 21600, 11650, 2063, 1012, 6685, 19362, 8043, 1006, 6412, 1027, 1005, 24665, 15042, 18750, 6911, 3231, 7396, 1005, 1007, 11968, 8043, 1012, 5587, 1035, 6685, 1006, 1005, 1011, 1011, 8241, 1035, 11596, 1005, 1010, 2393, 1027, 1005, 4012, 2863, 19802, 16848, 2862, 1997, 3677, 18442, 1024, 3417, 2000, 2448, 14903, 2006, 1005, 1010, 12398, 1027, 1005, 2334, 15006, 2102, 1024, 3770, 17914, 1005, 1010, 2828, 1027, 2358, 2099, 1007, 11968, 8043, 1012, 5587, 1035, 6685, 1006, 1005, 1011, 1011, 30523, 20090, 2005, 2151, 3622, 1010, 14958, 1010, 5043, 2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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 20090, 2005, 2151, 3622, 1010, 14958, 1010, 5043, 2389, 1010, 1001, 2569, 1010, 27792, 1010, 2030, 9530, 3366, 15417, 4818, 12394, 1006, 2164, 1010, 2021, 2025, 1001, 3132, 2000, 1010, 21423, 1997, 7681, 5350, 2030, 2578, 1025, 3279, 1997, 30526 ]
//-*-c++-*- #pragma once namespace meson { // Header to ignore CORS. extern const char kCORSHeader[]; // Strings describing Chrome security policy for DevTools security panel. extern const char kSHA1Certificate[]; extern const char kSHA1MajorDescription[]; extern const char kSHA1MinorDescription[]; extern const char kCertificateError[]; extern const char kValidCertificate[]; extern const char kValidCertificateDescription[]; extern const char kSecureProtocol[]; extern const char kSecureProtocolDescription[]; }
go-meson/framework
src/common/meson_constants.h
C
mit
518
[ 30522, 1013, 1013, 1011, 1008, 1011, 1039, 1009, 1009, 1011, 1008, 1011, 1001, 10975, 8490, 2863, 2320, 3415, 15327, 2033, 3385, 1063, 1013, 1013, 20346, 2000, 8568, 2522, 2869, 1012, 4654, 16451, 9530, 3367, 25869, 21117, 5668, 4974, 2121, 1031, 1033, 1025, 1013, 1013, 7817, 7851, 18546, 3036, 3343, 2005, 16475, 3406, 27896, 3036, 5997, 1012, 4654, 16451, 9530, 3367, 25869, 29535, 3270, 2487, 17119, 3775, 8873, 16280, 1031, 1033, 1025, 4654, 16451, 9530, 3367, 25869, 29535, 3270, 2487, 2863, 24876, 2229, 23235, 3258, 1031, 1033, 1025, 4654, 16451, 9530, 3367, 25869, 29535, 3270, 2487, 10020, 8551, 2229, 23235, 3258, 1031, 1033, 1025, 4654, 16451, 9530, 3367, 25869, 21117, 8743, 18513, 3686, 2121, 29165, 1031, 1033, 1025, 4654, 16451, 9530, 3367, 25869, 24888, 11475, 16409, 8743, 18513, 3686, 1031, 1033, 1025, 4654, 16451, 9530, 3367, 25869, 24888, 11475, 16409, 8743, 18513, 4383, 2229, 23235, 3258, 1031, 1033, 1025, 4654, 16451, 9530, 3367, 25869, 29535, 29150, 21572, 3406, 25778, 1031, 1033, 1025, 4654, 16451, 9530, 3367, 25869, 29535, 29150, 21572, 3406, 25778, 6155, 23235, 3258, 1031, 1033, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_COMPILER_MLIR_TENSORFLOW_UTILS_CONVERT_TYPE_H_ #define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_UTILS_CONVERT_TYPE_H_ #include "mlir/IR/Builders.h" // from @llvm-project #include "mlir/IR/Types.h" // from @llvm-project #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framework/tensor_shape.pb.h" #include "tensorflow/core/framework/types.pb.h" #include "tensorflow/stream_executor/lib/statusor.h" namespace tensorflow { using stream_executor::port::StatusOr; // Converts the TensorFlow DataType 'dtype' into an MLIR (scalar) type. Status ConvertDataType(DataType dtype, mlir::Builder builder, mlir::Type* type); // Converts a scalar MLIR type to a TensorFlow Datatype. Status ConvertScalarTypeToDataType(mlir::Type type, DataType* dtype); // Converts an MLIR type to TensorFlow DataType. If 'type' is a scalar type, it // is converted directly. If it is a shaped type, the element type is converted. Status ConvertToDataType(mlir::Type type, DataType* dtype); // Converts an TensorFlow shape to the one used in MLIR. void ConvertToMlirShape(const TensorShape& input_shape, llvm::SmallVectorImpl<int64_t>* shape); // Converts an TensorFlow shape proto to the one used in MLIR. Status ConvertToMlirShape(const TensorShapeProto& input_shape, llvm::SmallVectorImpl<int64_t>* shape); // Given a tensor shape and dtype, get the corresponding MLIR tensor type. StatusOr<mlir::Type> ConvertToMlirTensorType(const TensorShapeProto& shape, DataType dtype, mlir::Builder* builder); } // namespace tensorflow #endif // TENSORFLOW_COMPILER_MLIR_TENSORFLOW_UTILS_CONVERT_TYPE_H_
karllessard/tensorflow
tensorflow/compiler/mlir/tensorflow/utils/convert_type.h
C
apache-2.0
2,434
[ 30522, 1013, 1008, 9385, 10476, 1996, 23435, 12314, 6048, 1012, 2035, 2916, 9235, 1012, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 30524, 2015, 1998, 12546, 2104, 1996, 6105, 1012, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1008, 1013, 1001, 2065, 13629, 2546, 23435, 12314, 1035, 21624, 1035, 19875, 4313, 1035, 23435, 12314, 1035, 21183, 12146, 1035, 10463, 1035, 2828, 1035, 1044, 1035, 1001, 9375, 23435, 12314, 1035, 21624, 1035, 19875, 4313, 1035, 23435, 12314, 1035, 21183, 12146, 1035, 10463, 1035, 2828, 1035, 1044, 1035, 1001, 2421, 1000, 19875, 4313, 1013, 20868, 1013, 16472, 1012, 1044, 1000, 1013, 1013, 2013, 1030, 2222, 2615, 2213, 1011, 2622, 1001, 2421, 1000, 19875, 4313, 1013, 20868, 1013, 4127, 1012, 1044, 1000, 1013, 1013, 2013, 1030, 2222, 2615, 2213, 1011, 2622, 1001, 2421, 1000, 23435, 12314, 1013, 4563, 1013, 7705, 1013, 23435, 1035, 4338, 1012, 1044, 1000, 1001, 2421, 1000, 23435, 12314, 1013, 4563, 1013, 7705, 1013, 23435, 1035, 4338, 1012, 1052, 2497, 1012, 1044, 1000, 1001, 2421, 1000, 23435, 12314, 1013, 4563, 1013, 7705, 1013, 4127, 1012, 1052, 2497, 1012, 1044, 1000, 1001, 2421, 1000, 23435, 12314, 1013, 5460, 1035, 4654, 8586, 16161, 2099, 1013, 5622, 2497, 1013, 3570, 2953, 1012, 1044, 1000, 3415, 15327, 23435, 12314, 1063, 2478, 5460, 1035, 4654, 8586, 16161, 2099, 1024, 1024, 3417, 1024, 1024, 3570, 2953, 1025, 1013, 1013, 19884, 1996, 23435, 12314, 2951, 13874, 1005, 26718, 18863, 1005, 2046, 2019, 19875, 4313, 1006, 26743, 2099, 1007, 2828, 1012, 3570, 10463, 2850, 29336, 18863, 1006, 2951, 13874, 26718, 18863, 1010, 19875, 4313, 1024, 1024, 12508, 12508, 1010, 19875, 4313, 1024, 1024, 2828, 1008, 2828, 1007, 1025, 1013, 1013, 19884, 1037, 26743, 2099, 19875, 4313, 2828, 2000, 1037, 23435, 12314, 2951, 13874, 1012, 3570, 19884, 25015, 5339, 18863, 3406, 2850, 29336, 18863, 1006, 19875, 4313, 1024, 1024, 2828, 2828, 1010, 2951, 13874, 1008, 26718, 18863, 1007, 1025, 1013, 1013, 19884, 2019, 19875, 4313, 2828, 2000, 23435, 12314, 2951, 13874, 1012, 2065, 1005, 2828, 1005, 2003, 1037, 26743, 2099, 2828, 1010, 30523, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 30526 ]
function Vec2(_x, _y) { var self = this; self.x = _x; self.y = _y; self.Distance = function (OtherPoint) { try { return Math.sqrt(Math.pow(OtherPoint.x - self.x, 2) + Math.pow(OtherPoint.y - self.y, 2)); } catch (e) { console.error(e); return false; } } } function getMCC(c, e) { var x; var y; if (e.pageX || e.pageY) { x = e.pageX; y = e.pageY; } else { x = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; y = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } x -= c.offsetLeft + c.clientLeft; y -= c.offsetTop + c.clientTop; return new Vec2(x, y); }
SpencerAlanWatson/Javascript-Expierments
public/js/utilities.js
JavaScript
apache-2.0
751
[ 30522, 3853, 2310, 2278, 2475, 1006, 1035, 1060, 1010, 1035, 1061, 1007, 1063, 13075, 2969, 1027, 2023, 1025, 2969, 1012, 1060, 1027, 1035, 1060, 1025, 2969, 1012, 1061, 1027, 1035, 1061, 1025, 2969, 1012, 3292, 1027, 3853, 1006, 2060, 8400, 1007, 1063, 3046, 1063, 2709, 8785, 1012, 5490, 5339, 1006, 8785, 1012, 23776, 1006, 2060, 8400, 1012, 1060, 1011, 2969, 1012, 1060, 1010, 1016, 1007, 1009, 8785, 1012, 23776, 1006, 2060, 8400, 1012, 1061, 1011, 2969, 1012, 1061, 1010, 1016, 1007, 1007, 1025, 1065, 4608, 1006, 1041, 1007, 1063, 10122, 1012, 7561, 1006, 1041, 1007, 1025, 2709, 6270, 1025, 1065, 1065, 1065, 3853, 2131, 12458, 2278, 1006, 1039, 1010, 1041, 1007, 1063, 13075, 1060, 1025, 13075, 1061, 1025, 2065, 1006, 1041, 1012, 3931, 2595, 1064, 1064, 1041, 1012, 3931, 2100, 1007, 1063, 1060, 1027, 1041, 1012, 3931, 2595, 1025, 1061, 1027, 1041, 1012, 3931, 2100, 1025, 1065, 2842, 1063, 1060, 1027, 1041, 1012, 7396, 2595, 1009, 6254, 1012, 2303, 1012, 17186, 2571, 6199, 1009, 6254, 1012, 6254, 12260, 3672, 1012, 17186, 2571, 6199, 1025, 1061, 1027, 1041, 1012, 7396, 2100, 1009, 6254, 1012, 2303, 1012, 17186, 14399, 1009, 6254, 1012, 6254, 12260, 3672, 1012, 17186, 14399, 1025, 1065, 1060, 1011, 1027, 1039, 1012, 16396, 2571, 6199, 1009, 1039, 1012, 7396, 2571, 6199, 1025, 1061, 1011, 1027, 1039, 1012, 16396, 14399, 1009, 1039, 1012, 7396, 14399, 1025, 2709, 2047, 2310, 2278, 2475, 1006, 1060, 1010, 1061, 1007, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
package flaxbeard.sprockets.api; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; public interface IMultiblockComparator { public boolean isEqual(IBlockAccess iba, BlockPos pos); }
Flaxbeard/Sprockets
src/main/java/flaxbeard/sprockets/api/IMultiblockComparator.java
Java
mit
217
[ 30522, 7427, 13109, 8528, 4783, 4232, 1012, 11867, 16901, 8454, 1012, 17928, 1025, 12324, 5658, 1012, 3067, 10419, 1012, 21183, 4014, 1012, 8785, 1012, 3796, 6873, 2015, 1025, 12324, 5658, 1012, 3067, 10419, 1012, 2088, 1012, 21307, 7878, 6305, 9623, 2015, 1025, 2270, 8278, 10047, 11314, 12322, 7878, 9006, 28689, 4263, 1063, 2270, 22017, 20898, 2003, 2063, 26426, 1006, 21307, 7878, 6305, 9623, 2015, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 21307, 2050, 1010, 3796, 6873, 2015, 13433, 2015, 1007, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/** * The Forgotten Server - a free and open-source MMORPG server emulator * Copyright (C) 2014 Mark Samman <[email protected]> * * 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., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "otpch.h" #include "pugicast.h" #include "items.h" #include "commands.h" #include "creature.h" #include "monster.h" #include "game.h" #include "tile.h" #include "house.h" #include "actions.h" #include "combat.h" #include "iologindata.h" #include "iomarket.h" #include "chat.h" #include "talkaction.h" #include "spells.h" #include "configmanager.h" #include "ban.h" #include "raids.h" #include "database.h" #include "server.h" #include "ioguild.h" #include "quests.h" #include "globalevent.h" #include "mounts.h" #include "bed.h" #include "scheduler.h" #include "monster.h" #include "spawn.h" #include "connection.h" #include "events.h" extern ConfigManager g_config; extern Actions* g_actions; extern Chat g_chat; extern TalkActions* g_talkActions; extern Spells* g_spells; extern Vocations g_vocations; extern GlobalEvents* g_globalEvents; extern Events* g_events; Game::Game() : wildcardTree(false), offlineTrainingWindow(std::numeric_limits<uint32_t>::max(), "Choose a Skill", "Please choose a skill:") { gameState = GAME_STATE_NORMAL; worldType = WORLD_TYPE_PVP; services = nullptr; lastStageLevel = 0; playersRecord = 0; motdNum = 0; useLastStageLevel = false; stagesEnabled = false; lastBucket = 0; //(1440 minutes/day)/(3600 seconds/day)*10 seconds event interval int32_t dayCycle = 3600; lightHourDelta = 1440 * 10 / dayCycle; lightHour = SUNRISE + (SUNSET - SUNRISE) / 2; lightLevel = LIGHT_LEVEL_DAY; lightState = LIGHT_STATE_DAY; offlineTrainingWindow.choices.emplace_back("Sword Fighting and Shielding", SKILL_SWORD); offlineTrainingWindow.choices.emplace_back("Axe Fighting and Shielding", SKILL_AXE); offlineTrainingWindow.choices.emplace_back("Club Fighting and Shielding", SKILL_CLUB); offlineTrainingWindow.choices.emplace_back("Distance Fighting and Shielding", SKILL_DISTANCE); offlineTrainingWindow.choices.emplace_back("Magic Level and Shielding", SKILL_MAGLEVEL); offlineTrainingWindow.buttons.emplace_back("Okay", 1); offlineTrainingWindow.buttons.emplace_back("Cancel", 0); offlineTrainingWindow.defaultEnterButton = 1; offlineTrainingWindow.defaultEscapeButton = 0; offlineTrainingWindow.priority = true; } Game::~Game() { for (const auto& it : guilds) { delete it.second; } } void Game::start(ServiceManager* servicer) { services = servicer; g_scheduler.addEvent(createSchedulerTask(EVENT_LIGHTINTERVAL, std::bind(&Game::checkLight, this))); g_scheduler.addEvent(createSchedulerTask(EVENT_CREATURE_THINK_INTERVAL, std::bind(&Game::checkCreatures, this, 0))); g_scheduler.addEvent(createSchedulerTask(EVENT_DECAYINTERVAL, std::bind(&Game::checkDecay, this))); } GameState_t Game::getGameState() const { return gameState; } void Game::setWorldType(WorldType_t type) { worldType = type; } void Game::setGameState(GameState_t newState) { if (gameState == GAME_STATE_SHUTDOWN) { return; //this cannot be stopped } if (gameState == newState) { return; } gameState = newState; switch (newState) { case GAME_STATE_INIT: { commands.loadFromXml(); loadExperienceStages(); groups.load(); g_chat.load(); Spawns::getInstance()->startup(); Raids::getInstance()->loadFromXml(); Raids::getInstance()->startup(); Quests::getInstance()->loadFromXml(); Mounts::getInstance()->loadFromXml(); loadMotdNum(); loadPlayersRecord(); g_globalEvents->startup(); break; } case GAME_STATE_SHUTDOWN: { g_globalEvents->execute(GLOBALEVENT_SHUTDOWN); //kick all players that are still online auto it = players.begin(); while (it != players.end()) { it->second->kickPlayer(true); it = players.begin(); } saveMotdNum(); saveGameState(); g_dispatcher.addTask( createTask(std::bind(&Game::shutdown, this))); g_scheduler.stop(); g_dispatcher.stop(); break; } case GAME_STATE_CLOSED: { /* kick all players without the CanAlwaysLogin flag */ auto it = players.begin(); while (it != players.end()) { if (!it->second->hasFlag(PlayerFlag_CanAlwaysLogin)) { it->second->kickPlayer(true); it = players.begin(); } else { ++it; } } saveGameState(); break; } default: break; } } void Game::saveGameState() { if (gameState == GAME_STATE_NORMAL) { setGameState(GAME_STATE_MAINTAIN); } std::cout << "Saving server..." << std::endl; for (const auto& it : players) { it.second->loginPosition = it.second->getPosition(); IOLoginData::savePlayer(it.second); } map.saveMap(); if (gameState == GAME_STATE_MAINTAIN) { setGameState(GAME_STATE_NORMAL); } } int32_t Game::loadMainMap(const std::string& filename) { Monster::despawnRange = g_config.getNumber(ConfigManager::DEFAULT_DESPAWNRANGE); Monster::despawnRadius = g_config.getNumber(ConfigManager::DEFAULT_DESPAWNRADIUS); return map.loadMap("data/world/" + filename + ".otbm"); } void Game::loadMap(const std::string& path) { map.loadMap(path); } Cylinder* Game::internalGetCylinder(Player* player, const Position& pos) { if (pos.x != 0xFFFF) { return getTile(pos.x, pos.y, pos.z); } //container if (pos.y & 0x40) { uint8_t from_cid = pos.y & 0x0F; return player->getContainerByID(from_cid); } //inventory return player; } Thing* Game::internalGetThing(Player* player, const Position& pos, int32_t index, uint32_t spriteId /*= 0*/, stackPosType_t type /*= STACKPOS_NORMAL*/) { if (pos.x != 0xFFFF) { Tile* tile = getTile(pos.x, pos.y, pos.z); if (tile) { /*look at*/ if (type == STACKPOS_LOOK) { return tile->getTopVisibleThing(player); } Thing* thing; /*for move operations*/ if (type == STACKPOS_MOVE) { Item* item = tile->getTopDownItem(); if (item && item->isMoveable()) { thing = item; } else { thing = tile->getTopVisibleCreature(player); } } else if (type == STACKPOS_USEITEM) { //First check items with topOrder 2 (ladders, signs, splashes) Item* item = tile->getItemByTopOrder(2); if (item && g_actions->hasAction(item)) { thing = item; } else { //then down items thing = tile->getTopDownItem(); if (!thing) { thing = tile->getTopTopItem(); //then last we check items with topOrder 3 (doors etc) if (!thing) { thing = tile->ground; } } } } else if (type == STACKPOS_USE) { thing = tile->getTopDownItem(); } else { thing = tile->__getThing(index); } if (player && tile->hasFlag(TILESTATE_SUPPORTS_HANGABLE)) { //do extra checks here if the thing is accessable if (thing && thing->getItem()) { if (tile->hasProperty(CONST_PROP_ISVERTICAL)) { if (player->getPosition().x + 1 == tile->getPosition().x) { thing = nullptr; } } else { // horizontal if (player->getPosition().y + 1 == tile->getPosition().y) { thing = nullptr; } } } } return thing; } } else { //container if (pos.y & 0x40) { uint8_t fromCid = pos.y & 0x0F; uint8_t slot = pos.z; Container* parentContainer = player->getContainerByID(fromCid); if (!parentContainer) { return nullptr; } if (parentContainer->getID() == ITEM_BROWSEFIELD) { Tile* tile = parentContainer->getTile(); if (tile && tile->hasFlag(TILESTATE_SUPPORTS_HANGABLE)) { if (tile->hasProperty(CONST_PROP_ISVERTICAL)) { if (player->getPosition().x + 1 == tile->getPosition().x) { return nullptr; } } else { // horizontal if (player->getPosition().y + 1 == tile->getPosition().y) { return nullptr; } } } } return parentContainer->getItemByIndex(player->getContainerIndex(fromCid) + slot); } else if (pos.y == 0 && pos.z == 0) { const ItemType& it = Item::items.getItemIdByClientId(spriteId); if (it.id == 0) { return nullptr; } int32_t subType; if (it.isFluidContainer() && index < int32_t(sizeof(reverseFluidMap) / sizeof(int8_t))) { subType = reverseFluidMap[index]; } else { subType = -1; } return findItemOfType(player, it.id, true, subType); } else { //inventory slots_t slot = static_cast<slots_t>(pos.y); return player->getInventoryItem(slot); } } return nullptr; } void Game::internalGetPosition(Item* item, Position& pos, uint8_t& stackpos) { pos.x = 0; pos.y = 0; pos.z = 0; stackpos = 0; Cylinder* topParent = item->getTopParent(); if (topParent) { if (Player* player = dynamic_cast<Player*>(topParent)) { pos.x = 0xFFFF; Container* container = dynamic_cast<Container*>(item->getParent()); if (container) { pos.y = (uint16_t)0x40 | (uint16_t)player->getContainerID(container); pos.z = container->__getIndexOfThing(item); stackpos = pos.z; } else { pos.y = player->__getIndexOfThing(item); stackpos = pos.y; } } else if (Tile* tile = topParent->getTile()) { pos = tile->getPosition(); stackpos = tile->__getIndexOfThing(item); } } } void Game::setTile(Tile* newTile) { return map.setTile(newTile->getPosition(), newTile); } Tile* Game::getTile(int32_t x, int32_t y, int32_t z) { return map.getTile(x, y, z); } Tile* Game::getTile(const Position& pos) { return map.getTile(pos.x, pos.y, pos.z); } QTreeLeafNode* Game::getLeaf(uint32_t x, uint32_t y) { return map.getLeaf(x, y); } Creature* Game::getCreatureByID(uint32_t id) { if (id <= Player::playerAutoID) { return getPlayerByID(id); } else if (id <= Monster::monsterAutoID) { return getMonsterByID(id); } else if (id <= Npc::npcAutoID) { return getNpcByID(id); } return nullptr; } Monster* Game::getMonsterByID(uint32_t id) { if (id == 0) { return nullptr; } auto it = monsters.find(id); if (it == monsters.end()) { return nullptr; } return it->second; } Npc* Game::getNpcByID(uint32_t id) { if (id == 0) { return nullptr; } auto it = npcs.find(id); if (it == npcs.end()) { return nullptr; } return it->second; } Player* Game::getPlayerByID(uint32_t id) { if (id == 0) { return nullptr; } auto it = players.find(id); if (it == players.end()) { return nullptr; } return it->second; } Creature* Game::getCreatureByName(const std::string& s) { if (s.empty()) { return nullptr; } const std::string& lowerCaseName = asLowerCaseString(s); auto m_it = mappedPlayerNames.find(lowerCaseName); if (m_it != mappedPlayerNames.end()) { return m_it->second; } for (const auto& it : npcs) { if (lowerCaseName == asLowerCaseString(it.second->getName())) { return it.second; } } for (const auto& it : monsters) { if (lowerCaseName == asLowerCaseString(it.second->getName())) { return it.second; } } return nullptr; } Npc* Game::getNpcByName(const std::string& s) { if (s.empty()) { return nullptr; } const char* npcName = s.c_str(); for (const auto& it : npcs) { if (strcasecmp(npcName, it.second->getName().c_str()) == 0) { return it.second; } } return nullptr; } Player* Game::getPlayerByName(const std::string& s) { if (s.empty()) { return nullptr; } auto it = mappedPlayerNames.find(asLowerCaseString(s)); if (it == mappedPlayerNames.end()) { return nullptr; } return it->second; } Player* Game::getPlayerByGUID(const uint32_t& guid) { if (guid == 0) { return nullptr; } for (const auto& it : players) { if (guid == it.second->getGUID()) { return it.second; } } return nullptr; } ReturnValue Game::getPlayerByNameWildcard(const std::string& s, Player*& player) { size_t strlen = s.length(); if (strlen == 0 || strlen > 20) { return RET_PLAYERWITHTHISNAMEISNOTONLINE; } if (s.back() == '~') { const std::string& query = asLowerCaseString(s.substr(0, strlen - 1)); std::string result; ReturnValue ret = wildcardTree.findOne(query, result); if (ret != RET_NOERROR) { return ret; } player = getPlayerByName(result); } else { player = getPlayerByName(s); } if (!player) { return RET_PLAYERWITHTHISNAMEISNOTONLINE; } return RET_NOERROR; } Player* Game::getPlayerByAccount(uint32_t acc) { for (const auto& it : players) { if (it.second->getAccount() == acc) { return it.second; } } return nullptr; } bool Game::internalPlaceCreature(Creature* creature, const Position& pos, bool extendedPos /*=false*/, bool forced /*= false*/) { if (creature->getParent() != nullptr) { return false; } if (!map.placeCreature(pos, creature, extendedPos, forced)) { return false; } creature->useThing2(); creature->setID(); creature->addList(); if (!creature->getPlayer()) { g_events->eventMonsterOnAppear(creature); } return true; } bool Game::placeCreature(Creature* creature, const Position& pos, bool extendedPos /*=false*/, bool forced /*= false*/) { if (!internalPlaceCreature(creature, pos, extendedPos, forced)) { return false; } SpectatorVec list; getSpectators(list, creature->getPosition(), true); for (Creature* spectator : list) { if (Player* tmpPlayer = spectator->getPlayer()) { tmpPlayer->sendCreatureAppear(creature, creature->getPosition(), true); } } for (Creature* spectator : list) { spectator->onCreatureAppear(creature, true); } Cylinder* creatureParent = creature->getParent(); int32_t newIndex = creatureParent->__getIndexOfThing(creature); creatureParent->postAddNotification(creature, nullptr, newIndex); // TODO: Move this code to Player::onCreatureAppear where creature == this. Player* player = creature->getPlayer(); if (player) { int32_t offlineTime; if (player->getLastLogout() != 0) { // Not counting more than 21 days to prevent overflow when multiplying with 1000 (for milliseconds). offlineTime = std::min<int32_t>(time(nullptr) - player->getLastLogout(), 86400 * 21); } else { offlineTime = 0; } Condition* conditionMuted = player->getCondition(CONDITION_MUTED, CONDITIONID_DEFAULT); if (conditionMuted && conditionMuted->getTicks() > 0) { conditionMuted->setTicks(conditionMuted->getTicks() - (offlineTime * 1000)); if (conditionMuted->getTicks() <= 0) { player->removeCondition(conditionMuted); } else { player->addCondition(conditionMuted->clone()); } } Condition* conditionTrade = player->getCondition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT, CHANNEL_ADVERTISING); if (conditionTrade && conditionTrade->getTicks() > 0) { conditionTrade->setTicks(conditionTrade->getTicks() - (offlineTime * 1000)); if (conditionTrade->getTicks() <= 0) { player->removeCondition(conditionTrade); } else { player->addCondition(conditionTrade->clone()); } } Condition* conditionTradeRook = player->getCondition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT, CHANNEL_ADVERTISINGROOKGAARD); if (conditionTradeRook && conditionTradeRook->getTicks() > 0) { conditionTradeRook->setTicks(conditionTradeRook->getTicks() - (offlineTime * 1000)); if (conditionTradeRook->getTicks() <= 0) { player->removeCondition(conditionTradeRook); } else { player->addCondition(conditionTradeRook->clone()); } } Condition* conditionHelp = player->getCondition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT, CHANNEL_HELP); if (conditionHelp && conditionHelp->getTicks() > 0) { conditionHelp->setTicks(conditionHelp->getTicks() - (offlineTime * 1000)); if (conditionHelp->getTicks() <= 0) { player->removeCondition(conditionHelp); } else { player->addCondition(conditionHelp->clone()); } } Condition* conditionYell = player->getCondition(CONDITION_YELLTICKS, CONDITIONID_DEFAULT); if (conditionYell && conditionYell->getTicks() > 0) { conditionYell->setTicks(conditionYell->getTicks() - (offlineTime * 1000)); if (conditionYell->getTicks() <= 0) { player->removeCondition(conditionYell); } else { player->addCondition(conditionYell->clone()); } } if (player->isPremium()) { int32_t value; player->getStorageValue(STORAGEVALUE_PROMOTION, value); if (player->isPromoted() && value != 1) { player->addStorageValue(STORAGEVALUE_PROMOTION, 1); } else if (!player->isPromoted() && value == 1) { player->setVocation(g_vocations.getPromotedVocation(player->getVocationId())); } } else if (player->isPromoted()) { player->setVocation(player->vocation->getFromVocation()); } bool sentStats = false; int16_t oldStaminaMinutes = player->getStaminaMinutes(); player->regenerateStamina(offlineTime); int32_t offlineTrainingSkill = player->getOfflineTrainingSkill(); if (offlineTrainingSkill != -1) { player->setOfflineTrainingSkill(-1); uint32_t offlineTrainingTime = std::max<int32_t>(0, std::min<int32_t>(offlineTime, std::min<int32_t>(43200, player->getOfflineTrainingTime() / 1000))); if (offlineTime >= 600) { player->removeOfflineTrainingTime(offlineTrainingTime * 1000); int32_t remainder = offlineTime - offlineTrainingTime; if (remainder > 0) { player->addOfflineTrainingTime(remainder * 1000); } if (offlineTrainingTime >= 60) { std::ostringstream ss; ss << "During your absence you trained for "; int32_t hours = offlineTrainingTime / 3600; if (hours > 1) { ss << hours << " hours"; } else if (hours == 1) { ss << "1 hour"; } int32_t minutes = (offlineTrainingTime % 3600) / 60; if (minutes != 0) { if (hours != 0) { ss << " and "; } if (minutes > 1) { ss << minutes << " minutes"; } else { ss << "1 minute"; } } ss << '.'; player->sendTextMessage(MESSAGE_EVENT_ADVANCE, ss.str()); Vocation* vocation; if (player->isPromoted()) { vocation = player->getVocation(); } else { int32_t promotedVocationId = g_vocations.getPromotedVocation(player->getVocationId()); vocation = g_vocations.getVocation(promotedVocationId); if (!vocation) { vocation = player->getVocation(); } } bool sendUpdateSkills = false; if (offlineTrainingSkill == SKILL_CLUB || offlineTrainingSkill == SKILL_SWORD || offlineTrainingSkill == SKILL_AXE) { float modifier = vocation->getAttackSpeed() / 1000.f; sendUpdateSkills = player->addOfflineTrainingTries((skills_t)offlineTrainingSkill, (offlineTrainingTime / modifier) / 2); } else if (offlineTrainingSkill == SKILL_DISTANCE) { float modifier = vocation->getAttackSpeed() / 1000.f; sendUpdateSkills = player->addOfflineTrainingTries((skills_t)offlineTrainingSkill, (offlineTrainingTime / modifier) / 4); } else if (offlineTrainingSkill == SKILL_MAGLEVEL) { int32_t gainTicks = vocation->getManaGainTicks() * 2; if (gainTicks == 0) { gainTicks = 1; } player->addOfflineTrainingTries(SKILL_MAGLEVEL, offlineTrainingTime * (vocation->getManaGainAmount() / gainTicks)); } if (player->addOfflineTrainingTries(SKILL_SHIELD, offlineTrainingTime / 4) || sendUpdateSkills) { player->sendSkills(); } } player->sendStats(); sentStats = true; } else { player->sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must be logged out for more than 10 minutes to start offline training."); } } else { uint16_t oldMinutes = player->getOfflineTrainingTime() / 60 / 1000; player->addOfflineTrainingTime(offlineTime * 1000); uint16_t newMinutes = player->getOfflineTrainingTime() / 60 / 1000; if (oldMinutes != newMinutes) { player->sendStats(); sentStats = true; } } if (!sentStats && player->getStaminaMinutes() != oldStaminaMinutes) { player->sendStats(); } } addCreatureCheck(creature); creature->onPlacedCreature(); return true; } bool Game::removeCreature(Creature* creature, bool isLogout /*= true*/) { if (creature->isRemoved()) { return false; } Tile* tile = creature->getTile(); std::vector<int32_t> oldStackPosVector; SpectatorVec list; getSpectators(list, tile->getPosition(), true); for (Creature* spectator : list) { if (Player* player = spectator->getPlayer()) { oldStackPosVector.push_back(player->canSeeCreature(creature) ? tile->getStackposOfCreature(player, creature) : -1); } } int32_t index = tile->__getIndexOfThing(creature); if (!Map::removeCreature(creature)) { return false; } const Position& tilePosition = tile->getPosition(); //send to client size_t i = 0; for (Creature* spectator : list) { if (Player* player = spectator->getPlayer()) { player->sendRemoveTileThing(tilePosition, oldStackPosVector[i++]); } } //event method for (Creature* spectator : list) { spectator->onCreatureDisappear(creature, index, isLogout); } creature->getParent()->postRemoveNotification(creature, nullptr, index, true); creature->removeList(); creature->setRemoved(); ReleaseCreature(creature); removeCreatureCheck(creature); for (Creature* summon : creature->summons) { summon->setLossSkill(false); removeCreature(summon); } creature->onRemovedCreature(); return true; } void Game::playerMoveThing(uint32_t playerId, const Position& fromPos, uint16_t spriteId, uint8_t fromStackPos, const Position& toPos, uint8_t count) { Player* player = getPlayerByID(playerId); if (!player) { return; } uint8_t fromIndex = 0; if (fromPos.x == 0xFFFF) { if (fromPos.y & 0x40) { fromIndex = fromPos.z; } else { fromIndex = fromPos.y; } } else { fromIndex = fromStackPos; } Thing* thing = internalGetThing(player, fromPos, fromIndex, spriteId, STACKPOS_MOVE); if (!thing) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } Cylinder* toCylinder = internalGetCylinder(player, toPos); if (!toCylinder) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } if (Creature* movingCreature = thing->getCreature()) { if (Position::areInRange<1, 1, 0>(movingCreature->getPosition(), player->getPosition())) { SchedulerTask* task = createSchedulerTask(1000, std::bind(&Game::playerMoveCreature, this, player->getID(), movingCreature->getID(), movingCreature->getPosition(), toCylinder->getPosition())); player->setNextActionTask(task); } else { playerMoveCreature(playerId, movingCreature->getID(), movingCreature->getPosition(), toCylinder->getPosition()); } } else if (thing->getItem()) { playerMoveItem(playerId, fromPos, spriteId, fromStackPos, toPos, count); } } void Game::playerMoveCreature(uint32_t playerId, uint32_t movingCreatureId, const Position& movingCreatureOrigPos, const Position& toPos) { Player* player = getPlayerByID(playerId); if (!player) { return; } Tile* toTile = getTile(toPos); if (!toTile) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } Creature* movingCreature = getCreatureByID(movingCreatureId); if (!movingCreature) { return; } if (!player->canDoAction()) { uint32_t delay = player->getNextActionTime(); SchedulerTask* task = createSchedulerTask(delay, std::bind(&Game::playerMoveCreature, this, playerId, movingCreatureId, movingCreatureOrigPos, toPos)); player->setNextActionTask(task); return; } player->setNextActionTask(nullptr); if (!Position::areInRange<1, 1, 0>(movingCreatureOrigPos, player->getPosition())) { //need to walk to the creature first before moving it std::list<Direction> listDir; if (player->getPathTo(movingCreatureOrigPos, listDir, 0, 1, true, true)) { g_dispatcher.addTask(createTask(std::bind(&Game::playerAutoWalk, this, player->getID(), listDir))); SchedulerTask* task = createSchedulerTask(1500, std::bind(&Game::playerMoveCreature, this, playerId, movingCreatureId, movingCreatureOrigPos, toPos)); player->setNextWalkActionTask(task); } else { player->sendCancelMessage(RET_THEREISNOWAY); } return; } if ((!movingCreature->isPushable() && !player->hasFlag(PlayerFlag_CanPushAllCreatures)) || (movingCreature->isInGhostMode() && !player->isAccessPlayer())) { player->sendCancelMessage(RET_NOTMOVEABLE); return; } //check throw distance const Position& movingCreaturePos = movingCreature->getPosition(); if ((Position::getDistanceX(movingCreaturePos, toPos) > movingCreature->getThrowRange()) || (Position::getDistanceY(movingCreaturePos, toPos) > movingCreature->getThrowRange()) || (Position::getDistanceZ(movingCreaturePos, toPos) * 4 > movingCreature->getThrowRange())) { player->sendCancelMessage(RET_DESTINATIONOUTOFREACH); return; } Tile* movingCreatureTile = movingCreature->getTile(); if (!movingCreatureTile) { player->sendCancelMessage(RET_NOTMOVEABLE); return; } if (player != movingCreature) { if (toTile->hasProperty(CONST_PROP_BLOCKPATH)) { player->sendCancelMessage(RET_NOTENOUGHROOM); return; } else if ((movingCreature->getZone() == ZONE_PROTECTION && !toTile->hasFlag(TILESTATE_PROTECTIONZONE)) || (movingCreature->getZone() == ZONE_NOPVP && !toTile->hasFlag(TILESTATE_NOPVPZONE))) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } else { if (CreatureVector* tileCreatures = toTile->getCreatures()) { for (Creature* tileCreature : *tileCreatures) { if (!tileCreature->isInGhostMode()) { player->sendCancelMessage(RET_NOTENOUGHROOM); return; } } } Npc* movingNpc = movingCreature->getNpc(); if (movingNpc && !Spawns::getInstance()->isInZone(movingNpc->getMasterPos(), movingNpc->getMasterRadius(), toPos)) { player->sendCancelMessage(RET_NOTENOUGHROOM); return; } } } if (!g_events->eventPlayerOnMoveCreature(player, movingCreature, movingCreaturePos, toPos)) { return; } ReturnValue ret = internalMoveCreature(movingCreature, movingCreatureTile, toTile); if (ret != RET_NOERROR) { player->sendCancelMessage(ret); } } ReturnValue Game::internalMoveCreature(Creature* creature, Direction direction, uint32_t flags /*= 0*/) { Cylinder* fromTile = creature->getTile(); Cylinder* toTile = nullptr; creature->setLastPosition(creature->getPosition()); const Position& currentPos = creature->getPosition(); Position destPos = currentPos; bool diagonalMovement; switch (direction) { case NORTHWEST: case NORTHEAST: case SOUTHWEST: case SOUTHEAST: diagonalMovement = true; break; default: diagonalMovement = false; break; } destPos = getNextPosition(direction, destPos); if (creature->getPlayer() && !diagonalMovement) { //try go up if (currentPos.z != 8 && creature->getTile()->hasHeight(3)) { Tile* tmpTile = getTile(currentPos.x, currentPos.y, currentPos.getZ() - 1); if (tmpTile == nullptr || (tmpTile->ground == nullptr && !tmpTile->hasProperty(CONST_PROP_BLOCKSOLID))) { tmpTile = getTile(destPos.x, destPos.y, destPos.getZ() - 1); if (tmpTile && tmpTile->ground && !tmpTile->hasProperty(CONST_PROP_BLOCKSOLID)) { flags = flags | FLAG_IGNOREBLOCKITEM | FLAG_IGNOREBLOCKCREATURE; if (!tmpTile->floorChange()) { destPos.z--; } } } } else { //try go down Tile* tmpTile = getTile(destPos); if (currentPos.z != 7 && (tmpTile == nullptr || (tmpTile->ground == nullptr && !tmpTile->hasProperty(CONST_PROP_BLOCKSOLID)))) { tmpTile = getTile(destPos.x, destPos.y, destPos.z + 1); if (tmpTile && tmpTile->hasHeight(3)) { flags |= FLAG_IGNOREBLOCKITEM | FLAG_IGNOREBLOCKCREATURE; destPos.z++; } } } } toTile = getTile(destPos); ReturnValue ret = RET_NOTPOSSIBLE; if (toTile != nullptr) { ret = internalMoveCreature(creature, fromTile, toTile, flags); } return ret; } ReturnValue Game::internalMoveCreature(Creature* creature, Cylinder* fromCylinder, Cylinder* toCylinder, uint32_t flags /*= 0*/) { //check if we can move the creature to the destination ReturnValue ret = toCylinder->__queryAdd(0, creature, 1, flags); if (ret != RET_NOERROR) { return ret; } fromCylinder->getTile()->moveCreature(creature, toCylinder); int32_t index = 0; Item* toItem = nullptr; Cylinder* subCylinder = nullptr; uint32_t n = 0; while ((subCylinder = toCylinder->__queryDestination(index, creature, &toItem, flags)) != toCylinder) { toCylinder->getTile()->moveCreature(creature, subCylinder); if (creature->getParent() != subCylinder) { //could happen if a script move the creature break; } toCylinder = subCylinder; flags = 0; //to prevent infinite loop if (++n >= MAP_MAX_LAYERS) { break; } } return RET_NOERROR; } void Game::playerMoveItem(uint32_t playerId, const Position& fromPos, uint16_t spriteId, uint8_t fromStackPos, const Position& toPos, uint8_t count) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (!player->canDoAction()) { uint32_t delay = player->getNextActionTime(); SchedulerTask* task = createSchedulerTask(delay, std::bind(&Game::playerMoveItem, this, playerId, fromPos, spriteId, fromStackPos, toPos, count)); player->setNextActionTask(task); return; } player->setNextActionTask(nullptr); Cylinder* fromCylinder = internalGetCylinder(player, fromPos); uint8_t fromIndex = 0; if (fromPos.x == 0xFFFF) { if (fromPos.y & 0x40) { fromIndex = fromPos.z; } else { fromIndex = static_cast<uint8_t>(fromPos.y); } } else { fromIndex = fromStackPos; } Thing* thing = internalGetThing(player, fromPos, fromIndex, spriteId, STACKPOS_MOVE); if (!thing || !thing->getItem()) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } Item* item = thing->getItem(); Cylinder* toCylinder = internalGetCylinder(player, toPos); uint8_t toIndex = 0; if (toPos.x == 0xFFFF) { if (toPos.y & 0x40) { toIndex = toPos.z; } else { toIndex = toPos.y; } } if (fromCylinder == nullptr || toCylinder == nullptr || item == nullptr || item->getClientID() != spriteId) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } if (!item->isPushable() || item->hasAttribute(ITEM_ATTRIBUTE_UNIQUEID)) { player->sendCancelMessage(RET_NOTMOVEABLE); return; } const Position& playerPos = player->getPosition(); const Position& mapFromPos = fromCylinder->getTile()->getPosition(); if (playerPos.z != mapFromPos.z) { player->sendCancelMessage(playerPos.z > mapFromPos.z ? RET_FIRSTGOUPSTAIRS : RET_FIRSTGODOWNSTAIRS); return; } if (!Position::areInRange<1, 1>(playerPos, mapFromPos)) { //need to walk to the item first before using it std::list<Direction> listDir; if (player->getPathTo(item->getPosition(), listDir, 0, 1, true, true)) { g_dispatcher.addTask(createTask(std::bind(&Game::playerAutoWalk, this, player->getID(), listDir))); SchedulerTask* task = createSchedulerTask(400, std::bind(&Game::playerMoveItem, this, playerId, fromPos, spriteId, fromStackPos, toPos, count)); player->setNextWalkActionTask(task); } else { player->sendCancelMessage(RET_THEREISNOWAY); } return; } const Tile* toCylinderTile = toCylinder->getTile(); const Position& mapToPos = toCylinderTile->getPosition(); //hangable item specific code if (item->isHangable() && toCylinderTile->hasFlag(TILESTATE_SUPPORTS_HANGABLE)) { //destination supports hangable objects so need to move there first bool vertical = toCylinderTile->hasProperty(CONST_PROP_ISVERTICAL); if (vertical) { if (playerPos.x + 1 == mapToPos.x) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } } else { // horizontal if (playerPos.y + 1 == mapToPos.y) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } } if (!Position::areInRange<1, 1, 0>(playerPos, mapToPos)) { Position walkPos = mapToPos; if (vertical) { walkPos.x++; } else { walkPos.y++; } Position itemPos = fromPos; uint8_t itemStackPos = fromStackPos; if (fromPos.x != 0xFFFF && Position::areInRange<1, 1>(mapFromPos, playerPos) && !Position::areInRange<1, 1, 0>(mapFromPos, walkPos)) { //need to pickup the item first Item* moveItem = nullptr; ReturnValue ret = internalMoveItem(fromCylinder, player, INDEX_WHEREEVER, item, count, &moveItem); if (ret != RET_NOERROR) { player->sendCancelMessage(ret); return; } //changing the position since its now in the inventory of the player internalGetPosition(moveItem, itemPos, itemStackPos); } std::list<Direction> listDir; if (player->getPathTo(walkPos, listDir, 0, 0, true, true)) { g_dispatcher.addTask(createTask(std::bind(&Game::playerAutoWalk, this, player->getID(), listDir))); SchedulerTask* task = createSchedulerTask(400, std::bind(&Game::playerMoveItem, this, playerId, itemPos, spriteId, itemStackPos, toPos, count)); player->setNextWalkActionTask(task); } else { player->sendCancelMessage(RET_THEREISNOWAY); } return; } } if ((Position::getDistanceX(playerPos, mapToPos) > item->getThrowRange()) || (Position::getDistanceY(playerPos, mapToPos) > item->getThrowRange()) || (Position::getDistanceZ(mapFromPos, mapToPos) * 4 > item->getThrowRange())) { player->sendCancelMessage(RET_DESTINATIONOUTOFREACH); return; } if (!canThrowObjectTo(mapFromPos, mapToPos)) { player->sendCancelMessage(RET_CANNOTTHROW); return; } if (!g_events->eventPlayerOnMoveItem(player, item, count, fromPos, toPos)) { return; } ReturnValue ret = internalMoveItem(fromCylinder, toCylinder, toIndex, item, count, nullptr, 0, player); if (ret != RET_NOERROR) { player->sendCancelMessage(ret); } } ReturnValue Game::internalMoveItem(Cylinder* fromCylinder, Cylinder* toCylinder, int32_t index, Item* item, uint32_t count, Item** _moveItem, uint32_t flags /*= 0*/, Creature* actor/* = nullptr*/, Item* tradeItem/* = nullptr*/) { if (!toCylinder) { return RET_NOTPOSSIBLE; } Tile* fromTile = fromCylinder->getTile(); if (fromTile) { auto it = browseFields.find(fromTile); if (it != browseFields.end() && it->second == fromCylinder) { fromCylinder = fromTile; } } Item* toItem = nullptr; Cylinder* subCylinder; int floorN = 0; while ((subCylinder = toCylinder->__queryDestination(index, item, &toItem, flags)) != toCylinder) { toCylinder = subCylinder; flags = 0; //to prevent infinite loop if (++floorN >= MAP_MAX_LAYERS) { break; } } //destination is the same as the source? if (item == toItem) { return RET_NOERROR; //silently ignore move } //check if we can add this item ReturnValue ret = toCylinder->__queryAdd(index, item, count, flags, actor); if (ret == RET_NEEDEXCHANGE) { //check if we can add it to source cylinder ret = fromCylinder->__queryAdd(fromCylinder->__getIndexOfThing(item), toItem, toItem->getItemCount(), 0); if (ret == RET_NOERROR) { //check how much we can move uint32_t maxExchangeQueryCount = 0; ReturnValue retExchangeMaxCount = fromCylinder->__queryMaxCount(INDEX_WHEREEVER, toItem, toItem->getItemCount(), maxExchangeQueryCount, 0); if (retExchangeMaxCount != RET_NOERROR && maxExchangeQueryCount == 0) { return retExchangeMaxCount; } if (toCylinder->__queryRemove(toItem, toItem->getItemCount(), flags) == RET_NOERROR) { int32_t oldToItemIndex = toCylinder->__getIndexOfThing(toItem); toCylinder->__removeThing(toItem, toItem->getItemCount()); fromCylinder->__addThing(toItem); if (oldToItemIndex != -1) { toCylinder->postRemoveNotification(toItem, fromCylinder, oldToItemIndex, true); } int32_t newToItemIndex = fromCylinder->__getIndexOfThing(toItem); if (newToItemIndex != -1) { fromCylinder->postAddNotification(toItem, toCylinder, newToItemIndex); } ret = toCylinder->__queryAdd(index, item, count, flags); toItem = nullptr; } } } if (ret != RET_NOERROR) { return ret; } //check how much we can move uint32_t maxQueryCount = 0; ReturnValue retMaxCount = toCylinder->__queryMaxCount(index, item, count, maxQueryCount, flags); if (retMaxCount != RET_NOERROR && maxQueryCount == 0) { return retMaxCount; } uint32_t m; if (item->isStackable()) { m = std::min<uint32_t>(count, maxQueryCount); } else { m = maxQueryCount; } Item* moveItem = item; //check if we can remove this item ret = fromCylinder->__queryRemove(item, m, flags); if (ret != RET_NOERROR) { return ret; } if (tradeItem) { if (toCylinder->getItem() == tradeItem) { return RET_NOTENOUGHROOM; } Cylinder* tmpCylinder = toCylinder->getParent(); while (tmpCylinder) { if (tmpCylinder->getItem() == tradeItem) { return RET_NOTENOUGHROOM; } tmpCylinder = tmpCylinder->getParent(); } } //remove the item int32_t itemIndex = fromCylinder->__getIndexOfThing(item); Item* updateItem = nullptr; fromCylinder->__removeThing(item, m); bool isCompleteRemoval = item->isRemoved(); //update item(s) if (item->isStackable()) { uint32_t n; if (toItem && toItem->getID() == item->getID()) { n = std::min<uint32_t>(100 - toItem->getItemCount(), m); toCylinder->__updateThing(toItem, toItem->getID(), toItem->getItemCount() + n); updateItem = toItem; } else { n = 0; } int32_t newCount = m - n; if (newCount > 0) { moveItem = Item::CreateItem(item->getID(), newCount); } else { moveItem = nullptr; } if (item->isRemoved()) { ReleaseItem(item); } } //add item if (moveItem /*m - n > 0*/) { toCylinder->__addThing(index, moveItem); } if (itemIndex != -1) { fromCylinder->postRemoveNotification(item, toCylinder, itemIndex, isCompleteRemoval); } if (moveItem) { int32_t moveItemIndex = toCylinder->__getIndexOfThing(moveItem); if (moveItemIndex != -1) { toCylinder->postAddNotification(moveItem, fromCylinder, moveItemIndex); } } if (updateItem) { int32_t updateItemIndex = toCylinder->__getIndexOfThing(updateItem); if (updateItemIndex != -1) { toCylinder->postAddNotification(updateItem, fromCylinder, updateItemIndex); } } if (_moveItem) { if (moveItem) { *_moveItem = moveItem; } else { *_moveItem = item; } } //we could not move all, inform the player if (item->isStackable() && maxQueryCount < count) { return retMaxCount; } return ret; } ReturnValue Game::internalAddItem(Cylinder* toCylinder, Item* item, int32_t index /*= INDEX_WHEREEVER*/, uint32_t flags/* = 0*/, bool test/* = false*/) { uint32_t remainderCount = 0; return internalAddItem(toCylinder, item, index, flags, test, remainderCount); } ReturnValue Game::internalAddItem(Cylinder* toCylinder, Item* item, int32_t index, uint32_t flags, bool test, uint32_t& remainderCount) { remainderCount = 0; if (toCylinder == nullptr || item == nullptr) { return RET_NOTPOSSIBLE; } Cylinder* destCylinder = toCylinder; Item* toItem = nullptr; toCylinder = toCylinder->__queryDestination(index, item, &toItem, flags); //check if we can add this item ReturnValue ret = toCylinder->__queryAdd(index, item, item->getItemCount(), flags); if (ret != RET_NOERROR) { return ret; } /* Check if we can move add the whole amount, we do this by checking against the original cylinder, since the queryDestination can return a cylinder that might only hold a part of the full amount. */ uint32_t maxQueryCount = 0; ret = destCylinder->__queryMaxCount(INDEX_WHEREEVER, item, item->getItemCount(), maxQueryCount, flags); if (ret != RET_NOERROR) { return ret; } if (test) { return RET_NOERROR; } if (item->isStackable() && toItem && toItem->getID() == item->getID()) { uint32_t m = std::min<uint32_t>(item->getItemCount(), maxQueryCount); uint32_t n = 0; if (toItem->getID() == item->getID()) { n = std::min<uint32_t>(100 - toItem->getItemCount(), m); toCylinder->__updateThing(toItem, toItem->getID(), toItem->getItemCount() + n); } int32_t count = m - n; if (count > 0) { if (item->getItemCount() != count) { Item* remainderItem = Item::CreateItem(item->getID(), count); if (internalAddItem(destCylinder, remainderItem, INDEX_WHEREEVER, flags, false) != RET_NOERROR) { ReleaseItem(remainderItem); remainderCount = count; } } else { toCylinder->__addThing(index, item); int32_t itemIndex = toCylinder->__getIndexOfThing(item); if (itemIndex != -1) { toCylinder->postAddNotification(item, nullptr, itemIndex); } } } else { //fully merged with toItem, item will be destroyed item->onRemoved(); ReleaseItem(item); int32_t itemIndex = toCylinder->__getIndexOfThing(toItem); if (itemIndex != -1) { toCylinder->postAddNotification(toItem, nullptr, itemIndex); } } } else { toCylinder->__addThing(index, item); int32_t itemIndex = toCylinder->__getIndexOfThing(item); if (itemIndex != -1) { toCylinder->postAddNotification(item, nullptr, itemIndex); } } return RET_NOERROR; } ReturnValue Game::internalRemoveItem(Item* item, int32_t count /*= -1*/, bool test /*= false*/, uint32_t flags /*= 0*/) { Cylinder* cylinder = item->getParent(); if (cylinder == nullptr) { return RET_NOTPOSSIBLE; } Tile* fromTile = cylinder->getTile(); if (fromTile) { auto it = browseFields.find(fromTile); if (it != browseFields.end() && it->second == cylinder) { cylinder = fromTile; } } if (count == -1) { count = item->getItemCount(); } //check if we can remove this item ReturnValue ret = cylinder->__queryRemove(item, count, flags | FLAG_IGNORENOTMOVEABLE); if (ret != RET_NOERROR) { return ret; } if (!item->canRemove()) { return RET_NOTPOSSIBLE; } if (!test) { int32_t index = cylinder->__getIndexOfThing(item); //remove the item cylinder->__removeThing(item, count); bool isCompleteRemoval = false; if (item->isRemoved()) { isCompleteRemoval = true; ReleaseItem(item); } cylinder->postRemoveNotification(item, nullptr, index, isCompleteRemoval); } item->onRemoved(); return RET_NOERROR; } ReturnValue Game::internalPlayerAddItem(Player* player, Item* item, bool dropOnMap /*= true*/, slots_t slot /*= CONST_SLOT_WHEREEVER*/) { uint32_t remainderCount = 0; ReturnValue ret = internalAddItem(player, item, (int32_t)slot, 0, false, remainderCount); if (remainderCount > 0) { Item* remainderItem = Item::CreateItem(item->getID(), remainderCount); ReturnValue remaindRet = internalAddItem(player->getTile(), remainderItem, INDEX_WHEREEVER, FLAG_NOLIMIT); if (remaindRet != RET_NOERROR) { ReleaseItem(remainderItem); } } if (ret != RET_NOERROR && dropOnMap) { ret = internalAddItem(player->getTile(), item, INDEX_WHEREEVER, FLAG_NOLIMIT); } return ret; } Item* Game::findItemOfType(Cylinder* cylinder, uint16_t itemId, bool depthSearch /*= true*/, int32_t subType /*= -1*/) { if (cylinder == nullptr) { return nullptr; } std::vector<Container*> containers; for (int32_t i = cylinder->__getFirstIndex(), j = cylinder->__getLastIndex(); i < j; ++i) { Thing* thing = cylinder->__getThing(i); if (!thing) { continue; } Item* item = thing->getItem(); if (!item) { continue; } if (item->getID() == itemId && (subType == -1 || subType == item->getSubType())) { return item; } if (depthSearch) { Container* container = item->getContainer(); if (container) { containers.push_back(container); } } } size_t i = 0; while (i < containers.size()) { Container* container = containers[i++]; for (Item* item : container->getItemList()) { if (item->getID() == itemId && (subType == -1 || subType == item->getSubType())) { return item; } Container* tmpContainer = item->getContainer(); if (tmpContainer) { containers.push_back(tmpContainer); } } } return nullptr; } bool Game::removeMoney(Cylinder* cylinder, uint64_t money, uint32_t flags /*= 0*/) { if (cylinder == nullptr) { return false; } if (money <= 0) { return true; } std::vector<Container*> containers; typedef std::multimap<uint64_t, Item*, std::less<uint64_t>> MoneyMap; typedef MoneyMap::value_type moneymap_pair; MoneyMap moneyMap; uint64_t moneyCount = 0; for (int32_t i = cylinder->__getFirstIndex(), j = cylinder->__getLastIndex(); i < j; ++i) { Thing* thing = cylinder->__getThing(i); if (!thing) { continue; } Item* item = thing->getItem(); if (!item) { continue; } Container* container = item->getContainer(); if (container) { containers.push_back(container); } else if (item->getWorth() != 0) { moneyCount += item->getWorth(); moneyMap.insert(moneymap_pair(item->getWorth(), item)); } } size_t i = 0; while (i < containers.size()) { Container* container = containers[i++]; for (Item* item : container->getItemList()) { Container* tmpContainer = item->getContainer(); if (tmpContainer) { containers.push_back(tmpContainer); } else if (item->getWorth() != 0) { moneyCount += item->getWorth(); moneyMap.insert(moneymap_pair(item->getWorth(), item)); } } } /*not enough money*/ if (moneyCount < money) { return false; } for (MoneyMap::const_iterator mit = moneyMap.begin(), mend = moneyMap.end(); mit != mend && money > 0; ++mit) { Item* item = mit->second; internalRemoveItem(item); if (mit->first > money) { /* Remove a monetary value from an item*/ uint64_t remaind = item->getWorth() - money; addMoney(cylinder, remaind, flags); money = 0; } else { money -= mit->first; } } return money == 0; } void Game::addMoney(Cylinder* cylinder, uint64_t money, uint32_t flags /*= 0*/) { uint32_t crys = money / 10000; money -= crys * 10000; while (crys > 0) { Item* remaindItem = Item::CreateItem(ITEM_CRYSTAL_COIN, std::min<int32_t>(100, crys)); ReturnValue ret = internalAddItem(cylinder, remaindItem, INDEX_WHEREEVER, flags); if (ret != RET_NOERROR) { internalAddItem(cylinder->getTile(), remaindItem, INDEX_WHEREEVER, FLAG_NOLIMIT); } crys -= std::min<int32_t>(100, crys); } uint16_t plat = money / 100; if (plat != 0) { Item* remaindItem = Item::CreateItem(ITEM_PLATINUM_COIN, plat); ReturnValue ret = internalAddItem(cylinder, remaindItem, INDEX_WHEREEVER, flags); if (ret != RET_NOERROR) { internalAddItem(cylinder->getTile(), remaindItem, INDEX_WHEREEVER, FLAG_NOLIMIT); } money -= plat * 100; } if (money != 0) { Item* remaindItem = Item::CreateItem(ITEM_GOLD_COIN, money); ReturnValue ret = internalAddItem(cylinder, remaindItem, INDEX_WHEREEVER, flags); if (ret != RET_NOERROR) { internalAddItem(cylinder->getTile(), remaindItem, INDEX_WHEREEVER, FLAG_NOLIMIT); } } } Item* Game::transformItem(Item* item, uint16_t newId, int32_t newCount /*= -1*/) { if (item->getID() == newId && (newCount == -1 || (newCount == item->getSubType() && newCount != 0))) { //chargeless item placed on map = infinite return item; } Cylinder* cylinder = item->getParent(); if (cylinder == nullptr) { return nullptr; } Tile* fromTile = cylinder->getTile(); if (fromTile) { auto it = browseFields.find(fromTile); if (it != browseFields.end() && it->second == cylinder) { cylinder = fromTile; } } int32_t itemIndex = cylinder->__getIndexOfThing(item); if (itemIndex == -1) { return item; } if (!item->canTransform()) { return item; } const ItemType& curType = Item::items[item->getID()]; const ItemType& newType = Item::items[newId]; if (curType.alwaysOnTop != newType.alwaysOnTop) { //This only occurs when you transform items on tiles from a downItem to a topItem (or vice versa) //Remove the old, and add the new ReturnValue ret = internalRemoveItem(item); if (ret != RET_NOERROR) { return item; } Item* newItem; if (newCount == -1) { newItem = Item::CreateItem(newId); } else { newItem = Item::CreateItem(newId, newCount); } if (!newItem) { return nullptr; } newItem->stealAttributes(item); ret = internalAddItem(cylinder, newItem, INDEX_WHEREEVER, FLAG_NOLIMIT); if (ret != RET_NOERROR) { delete newItem; return nullptr; } return newItem; } if (curType.type == newType.type) { //Both items has the same type so we can safely change id/subtype if (newCount == 0 && (item->isStackable() || item->hasAttribute(ITEM_ATTRIBUTE_CHARGES))) { if (item->isStackable()) { internalRemoveItem(item); return nullptr; } else { int32_t newItemId = newId; if (curType.id == newType.id) { newItemId = curType.decayTo; } if (newItemId == -1) { internalRemoveItem(item); return nullptr; } else if (newItemId != newId) { //Replacing the the old item with the new while maintaining the old position Item* newItem = Item::CreateItem(newItemId, 1); if (newItem == nullptr) { return nullptr; } cylinder->__replaceThing(itemIndex, newItem); cylinder->postAddNotification(newItem, cylinder, itemIndex); item->setParent(nullptr); cylinder->postRemoveNotification(item, cylinder, itemIndex, true); ReleaseItem(item); return newItem; } else { return transformItem(item, newItemId); } } } else { cylinder->postRemoveNotification(item, cylinder, itemIndex, false); uint16_t itemId = item->getID(); int32_t count = item->getSubType(); if (curType.id != newType.id) { if (newType.group != curType.group) { item->setDefaultSubtype(); } itemId = newId; } if (newCount != -1 && newType.hasSubType()) { count = newCount; } cylinder->__updateThing(item, itemId, count); cylinder->postAddNotification(item, cylinder, itemIndex); return item; } } //Replacing the the old item with the new while maintaining the old position Item* newItem; if (newCount == -1) { newItem = Item::CreateItem(newId); } else { newItem = Item::CreateItem(newId, newCount); } if (newItem == nullptr) { return nullptr; } cylinder->__replaceThing(itemIndex, newItem); cylinder->postAddNotification(newItem, cylinder, itemIndex); item->setParent(nullptr); cylinder->postRemoveNotification(item, cylinder, itemIndex, true); ReleaseItem(item); return newItem; } ReturnValue Game::internalTeleport(Thing* thing, const Position& newPos, bool pushMove/* = true*/, uint32_t flags /*= 0*/) { if (newPos == thing->getPosition()) { return RET_NOERROR; } else if (thing->isRemoved()) { return RET_NOTPOSSIBLE; } Tile* toTile = getTile(newPos.x, newPos.y, newPos.z); if (toTile) { if (Creature* creature = thing->getCreature()) { ReturnValue ret = toTile->__queryAdd(0, creature, 1, FLAG_NOLIMIT); if (ret != RET_NOERROR) { return ret; } creature->getTile()->moveCreature(creature, toTile, !pushMove); return RET_NOERROR; } else if (Item* item = thing->getItem()) { return internalMoveItem(item->getParent(), toTile, INDEX_WHEREEVER, item, item->getItemCount(), nullptr, flags); } } return RET_NOTPOSSIBLE; } //Implementation of player invoked events void Game::playerMove(uint32_t playerId, Direction direction) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->resetIdleTime(); player->setNextWalkActionTask(nullptr); player->startAutoWalk(std::list<Direction> { direction }); } bool Game::playerBroadcastMessage(Player* player, const std::string& text) const { if (!player->hasFlag(PlayerFlag_CanBroadcast)) { return false; } std::cout << "> " << player->getName() << " broadcasted: \"" << text << "\"." << std::endl; for (const auto& it : players) { it.second->sendPrivateMessage(player, TALKTYPE_BROADCAST, text); } return true; } void Game::playerCreatePrivateChannel(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player || !player->isPremium()) { return; } ChatChannel* channel = g_chat.createChannel(*player, CHANNEL_PRIVATE); if (!channel || !channel->addUser(*player)) { return; } player->sendCreatePrivateChannel(channel->getId(), channel->getName()); } void Game::playerChannelInvite(uint32_t playerId, const std::string& name) { Player* player = getPlayerByID(playerId); if (!player) { return; } PrivateChatChannel* channel = g_chat.getPrivateChannel(*player); if (!channel) { return; } Player* invitePlayer = getPlayerByName(name); if (!invitePlayer) { return; } if (player == invitePlayer) { return; } channel->invitePlayer(*player, *invitePlayer); } void Game::playerChannelExclude(uint32_t playerId, const std::string& name) { Player* player = getPlayerByID(playerId); if (!player) { return; } PrivateChatChannel* channel = g_chat.getPrivateChannel(*player); if (!channel) { return; } Player* excludePlayer = getPlayerByName(name); if (!excludePlayer) { return; } if (player == excludePlayer) { return; } channel->excludePlayer(*player, *excludePlayer); } void Game::playerRequestChannels(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->sendChannelsDialog(); } void Game::playerOpenChannel(uint32_t playerId, uint16_t channelId) { Player* player = getPlayerByID(playerId); if (!player) { return; } ChatChannel* channel = g_chat.addUserToChannel(*player, channelId); if (!channel) { return; } const InvitedMap* invitedUsers = channel->getInvitedUsersPtr(); const UsersMap* users; if (!channel->isPublicChannel()) { users = &channel->getUsers(); } else { users = nullptr; } player->sendChannel(channel->getId(), channel->getName(), users, invitedUsers); } void Game::playerCloseChannel(uint32_t playerId, uint16_t channelId) { Player* player = getPlayerByID(playerId); if (!player) { return; } g_chat.removeUserFromChannel(*player, channelId); } void Game::playerOpenPrivateChannel(uint32_t playerId, std::string& receiver) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (!IOLoginData::formatPlayerName(receiver)) { player->sendCancel("A player with this name does not exist."); return; } player->sendOpenPrivateChannel(receiver); } void Game::playerCloseNpcChannel(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } SpectatorVec list; getSpectators(list, player->getPosition()); for (Creature* spectator : list) { if (Npc* npc = spectator->getNpc()) { npc->onPlayerCloseChannel(player); } } } void Game::playerReceivePing(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->receivePing(); } void Game::playerReceivePingBack(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->sendPingBack(); } void Game::playerAutoWalk(uint32_t playerId, const std::list<Direction>& listDir) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->resetIdleTime(); player->setNextWalkTask(nullptr); player->startAutoWalk(listDir); } void Game::playerStopAutoWalk(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->stopWalk(); } void Game::playerUseItemEx(uint32_t playerId, const Position& fromPos, uint8_t fromStackPos, uint16_t fromSpriteId, const Position& toPos, uint8_t toStackPos, uint16_t toSpriteId, bool isHotkey) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (isHotkey && !g_config.getBoolean(ConfigManager::AIMBOT_HOTKEY_ENABLED)) { return; } Thing* thing = internalGetThing(player, fromPos, fromStackPos, fromSpriteId, STACKPOS_USEITEM); if (!thing) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } Item* item = thing->getItem(); if (!item || !item->isUseable() || item->getClientID() != fromSpriteId) { player->sendCancelMessage(RET_CANNOTUSETHISOBJECT); return; } Position walkToPos = fromPos; ReturnValue ret = g_actions->canUse(player, fromPos); if (ret == RET_NOERROR) { ret = g_actions->canUse(player, toPos, item); if (ret == RET_TOOFARAWAY) { walkToPos = toPos; } } if (ret != RET_NOERROR) { if (ret == RET_TOOFARAWAY) { Position itemPos = fromPos; uint8_t itemStackPos = fromStackPos; if (fromPos.x != 0xFFFF && toPos.x != 0xFFFF && Position::areInRange<1, 1, 0>(fromPos, player->getPosition()) && !Position::areInRange<1, 1, 0>(fromPos, toPos)) { Item* moveItem = nullptr; ret = internalMoveItem(item->getParent(), player, INDEX_WHEREEVER, item, item->getItemCount(), &moveItem); if (ret != RET_NOERROR) { player->sendCancelMessage(ret); return; } //changing the position since its now in the inventory of the player internalGetPosition(moveItem, itemPos, itemStackPos); } std::list<Direction> listDir; if (player->getPathTo(walkToPos, listDir, 0, 1, true, true)) { g_dispatcher.addTask(createTask(std::bind(&Game::playerAutoWalk, this, player->getID(), listDir))); SchedulerTask* task = createSchedulerTask(400, std::bind(&Game::playerUseItemEx, this, playerId, itemPos, itemStackPos, fromSpriteId, toPos, toStackPos, toSpriteId, isHotkey)); player->setNextWalkActionTask(task); } else { player->sendCancelMessage(RET_THEREISNOWAY); } return; } player->sendCancelMessage(ret); return; } if (!player->canDoAction()) { uint32_t delay = player->getNextActionTime(); SchedulerTask* task = createSchedulerTask(delay, std::bind(&Game::playerUseItemEx, this, playerId, fromPos, fromStackPos, fromSpriteId, toPos, toStackPos, toSpriteId, isHotkey)); player->setNextActionTask(task); return; } player->resetIdleTime(); player->setNextActionTask(nullptr); g_actions->useItemEx(player, fromPos, toPos, toStackPos, item, isHotkey); } void Game::playerUseItem(uint32_t playerId, const Position& pos, uint8_t stackPos, uint8_t index, uint16_t spriteId, bool isHotkey) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (isHotkey && !g_config.getBoolean(ConfigManager::AIMBOT_HOTKEY_ENABLED)) { return; } Thing* thing = internalGetThing(player, pos, stackPos, spriteId, STACKPOS_USEITEM); if (!thing) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } Item* item = thing->getItem(); if (!item || item->isUseable() || item->getClientID() != spriteId) { player->sendCancelMessage(RET_CANNOTUSETHISOBJECT); return; } ReturnValue ret = g_actions->canUse(player, pos); if (ret != RET_NOERROR) { if (ret == RET_TOOFARAWAY) { std::list<Direction> listDir; if (player->getPathTo(pos, listDir, 0, 1, true, true)) { g_dispatcher.addTask(createTask(std::bind(&Game::playerAutoWalk, this, player->getID(), listDir))); SchedulerTask* task = createSchedulerTask(400, std::bind(&Game::playerUseItem, this, playerId, pos, stackPos, index, spriteId, isHotkey)); player->setNextWalkActionTask(task); return; } ret = RET_THEREISNOWAY; } player->sendCancelMessage(ret); return; } if (!player->canDoAction()) { uint32_t delay = player->getNextActionTime(); SchedulerTask* task = createSchedulerTask(delay, std::bind(&Game::playerUseItem, this, playerId, pos, stackPos, index, spriteId, isHotkey)); player->setNextActionTask(task); return; } player->resetIdleTime(); player->setNextActionTask(nullptr); g_actions->useItem(player, pos, index, item, isHotkey); } void Game::playerUseWithCreature(uint32_t playerId, const Position& fromPos, uint8_t fromStackPos, uint32_t creatureId, uint16_t spriteId, bool isHotkey) { Player* player = getPlayerByID(playerId); if (!player) { return; } Creature* creature = getCreatureByID(creatureId); if (!creature) { return; } if (!Position::areInRange<7, 5, 0>(creature->getPosition(), player->getPosition())) { return; } if (!g_config.getBoolean(ConfigManager::AIMBOT_HOTKEY_ENABLED)) { if (creature->getPlayer() || isHotkey) { player->sendCancelMessage(RET_DIRECTPLAYERSHOOT); return; } } Thing* thing = internalGetThing(player, fromPos, fromStackPos, spriteId, STACKPOS_USEITEM); if (!thing) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } Item* item = thing->getItem(); if (!item || !item->isUseable() || item->getClientID() != spriteId) { player->sendCancelMessage(RET_CANNOTUSETHISOBJECT); return; } Position toPos = creature->getPosition(); Position walkToPos = fromPos; ReturnValue ret = g_actions->canUse(player, fromPos); if (ret == RET_NOERROR) { ret = g_actions->canUse(player, toPos, item); if (ret == RET_TOOFARAWAY) { walkToPos = toPos; } } if (ret != RET_NOERROR) { if (ret == RET_TOOFARAWAY) { Position itemPos = fromPos; uint8_t itemStackPos = fromStackPos; if (fromPos.x != 0xFFFF && Position::areInRange<1, 1, 0>(fromPos, player->getPosition()) && !Position::areInRange<1, 1, 0>(fromPos, toPos)) { Item* moveItem = nullptr; ret = internalMoveItem(item->getParent(), player, INDEX_WHEREEVER, item, item->getItemCount(), &moveItem); if (ret != RET_NOERROR) { player->sendCancelMessage(ret); return; } //changing the position since its now in the inventory of the player internalGetPosition(moveItem, itemPos, itemStackPos); } std::list<Direction> listDir; if (player->getPathTo(walkToPos, listDir, 0, 1, true, true)) { g_dispatcher.addTask(createTask(std::bind(&Game::playerAutoWalk, this, player->getID(), listDir))); SchedulerTask* task = createSchedulerTask(400, std::bind(&Game::playerUseWithCreature, this, playerId, itemPos, itemStackPos, creatureId, spriteId, isHotkey)); player->setNextWalkActionTask(task); } else { player->sendCancelMessage(RET_THEREISNOWAY); } return; } player->sendCancelMessage(ret); return; } if (!player->canDoAction()) { uint32_t delay = player->getNextActionTime(); SchedulerTask* task = createSchedulerTask(delay, std::bind(&Game::playerUseWithCreature, this, playerId, fromPos, fromStackPos, creatureId, spriteId, isHotkey)); player->setNextActionTask(task); return; } player->resetIdleTime(); player->setNextActionTask(nullptr); g_actions->useItemEx(player, fromPos, creature->getPosition(), creature->getParent()->__getIndexOfThing(creature), item, isHotkey, creatureId); } void Game::playerCloseContainer(uint32_t playerId, uint8_t cid) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->closeContainer(cid); player->sendCloseContainer(cid); } void Game::playerMoveUpContainer(uint32_t playerId, uint8_t cid) { Player* player = getPlayerByID(playerId); if (!player) { return; } Container* container = player->getContainerByID(cid); if (!container) { return; } Container* parentContainer = dynamic_cast<Container*>(container->getRealParent()); if (!parentContainer) { Tile* tile = container->getTile(); if (!tile) { return; } auto it = browseFields.find(tile); if (it == browseFields.end()) { parentContainer = new Container(tile); parentContainer->useThing2(); browseFields[tile] = parentContainer; g_scheduler.addEvent(createSchedulerTask(30000, std::bind(&Game::decreaseBrowseFieldRef, this, tile->getPosition()))); } else { parentContainer = it->second; } } player->addContainer(cid, parentContainer); player->sendContainer(cid, parentContainer, parentContainer->hasParent(), player->getContainerIndex(cid)); } void Game::playerUpdateContainer(uint32_t playerId, uint8_t cid) { Player* player = getPlayerByID(playerId); if (!player) { return; } Container* container = player->getContainerByID(cid); if (!container) { return; } player->sendContainer(cid, container, container->hasParent(), player->getContainerIndex(cid)); } void Game::playerRotateItem(uint32_t playerId, const Position& pos, uint8_t stackPos, const uint16_t spriteId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Thing* thing = internalGetThing(player, pos, stackPos); if (!thing) { return; } Item* item = thing->getItem(); if (!item || item->getClientID() != spriteId || !item->isRoteable() || item->hasAttribute(ITEM_ATTRIBUTE_UNIQUEID)) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } if (pos.x != 0xFFFF && !Position::areInRange<1, 1, 0>(pos, player->getPosition())) { std::list<Direction> listDir; if (player->getPathTo(pos, listDir, 0, 1, true, true)) { g_dispatcher.addTask(createTask(std::bind(&Game::playerAutoWalk, this, player->getID(), listDir))); SchedulerTask* task = createSchedulerTask(400, std::bind(&Game::playerRotateItem, this, playerId, pos, stackPos, spriteId)); player->setNextWalkActionTask(task); } else { player->sendCancelMessage(RET_THEREISNOWAY); } return; } uint16_t newId = Item::items[item->getID()].rotateTo; if (newId != 0) { transformItem(item, newId); } } void Game::playerWriteItem(uint32_t playerId, uint32_t windowTextId, const std::string& text) { Player* player = getPlayerByID(playerId); if (!player) { return; } uint16_t maxTextLength = 0; uint32_t internalWindowTextId = 0; Item* writeItem = player->getWriteItem(internalWindowTextId, maxTextLength); if (text.length() > maxTextLength || windowTextId != internalWindowTextId) { return; } if (!writeItem || writeItem->isRemoved()) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } Cylinder* topParent = writeItem->getTopParent(); Player* owner = dynamic_cast<Player*>(topParent); if (owner && owner != player) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } if (!Position::areInRange<1, 1, 0>(writeItem->getPosition(), player->getPosition())) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } if (!g_events->eventPlayerOnTextEdit(player, writeItem, text)) { player->setWriteItem(nullptr); return; } if (!text.empty()) { if (writeItem->getText() != text) { writeItem->setText(text); writeItem->setWriter(player->getName()); writeItem->setDate(time(nullptr)); } } else { writeItem->resetText(); writeItem->resetWriter(); writeItem->resetDate(); } uint16_t newId = Item::items[writeItem->getID()].writeOnceItemId; if (newId != 0) { transformItem(writeItem, newId); } player->setWriteItem(nullptr); } void Game::playerBrowseField(uint32_t playerId, const Position& pos) { Player* player = getPlayerByID(playerId); if (!player) { return; } const Position& playerPos = player->getPosition(); if (playerPos.z != pos.z) { player->sendCancelMessage(playerPos.z > pos.z ? RET_FIRSTGOUPSTAIRS : RET_FIRSTGODOWNSTAIRS); return; } if (!Position::areInRange<1, 1>(playerPos, pos)) { std::list<Direction> listDir; if (player->getPathTo(pos, listDir, 0, 1, true, true)) { g_dispatcher.addTask(createTask(std::bind(&Game::playerAutoWalk, this, player->getID(), listDir))); SchedulerTask* task = createSchedulerTask(400, std::bind( &Game::playerBrowseField, this, playerId, pos )); player->setNextWalkActionTask(task); } else { player->sendCancelMessage(RET_THEREISNOWAY); } return; } Tile* tile = getTile(pos); if (!tile) { return; } if (!g_events->eventPlayerOnBrowseField(player, pos)) { return; } Container* container; auto it = browseFields.find(tile); if (it == browseFields.end()) { container = new Container(tile); container->useThing2(); browseFields[tile] = container; g_scheduler.addEvent(createSchedulerTask(30000, std::bind(&Game::decreaseBrowseFieldRef, this, tile->getPosition()))); } else { container = it->second; } uint8_t dummyContainerId = 0xF - ((pos.x % 3) * 3 + (pos.y % 3)); Container* openContainer = player->getContainerByID(dummyContainerId); if (openContainer) { player->onCloseContainer(openContainer); player->closeContainer(dummyContainerId); } else { player->addContainer(dummyContainerId, container); player->sendContainer(dummyContainerId, container, false, 0); } } void Game::playerSeekInContainer(uint32_t playerId, uint8_t containerId, uint16_t index) { Player* player = getPlayerByID(playerId); if (!player) { return; } Container* container = player->getContainerByID(containerId); if (!container || !container->hasPagination()) { return; } if ((index % container->capacity()) != 0 || index >= container->size()) { return; } player->setContainerIndex(containerId, index); player->sendContainer(containerId, container, false, index); } void Game::playerUpdateHouseWindow(uint32_t playerId, uint8_t listId, uint32_t windowTextId, const std::string& text) { Player* player = getPlayerByID(playerId); if (!player) { return; } uint32_t internalWindowTextId; uint32_t internalListId; House* house = player->getEditHouse(internalWindowTextId, internalListId); if (house && internalWindowTextId == windowTextId && listId == 0) { house->setAccessList(internalListId, text); player->setEditHouse(nullptr); } } void Game::playerRequestTrade(uint32_t playerId, const Position& pos, uint8_t stackPos, uint32_t tradePlayerId, uint16_t spriteId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Player* tradePartner = getPlayerByID(tradePlayerId); if (!tradePartner || tradePartner == player) { player->sendTextMessage(MESSAGE_INFO_DESCR, "Sorry, not possible."); return; } if (!Position::areInRange<2, 2, 0>(tradePartner->getPosition(), player->getPosition())) { std::ostringstream ss; ss << tradePartner->getName() << " tells you to move closer."; player->sendTextMessage(MESSAGE_INFO_DESCR, ss.str()); return; } if (!canThrowObjectTo(tradePartner->getPosition(), player->getPosition())) { player->sendCancelMessage(RET_CREATUREISNOTREACHABLE); return; } Item* tradeItem = dynamic_cast<Item*>(internalGetThing(player, pos, stackPos, spriteId, STACKPOS_USE)); if (!tradeItem || tradeItem->getClientID() != spriteId || !tradeItem->isPickupable() || tradeItem->hasAttribute(ITEM_ATTRIBUTE_UNIQUEID)) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } const Position& playerPosition = player->getPosition(); const Position& tradeItemPosition = tradeItem->getPosition(); if (playerPosition.z != tradeItemPosition.z) { player->sendCancelMessage(playerPosition.z > tradeItemPosition.z ? RET_FIRSTGOUPSTAIRS : RET_FIRSTGODOWNSTAIRS); return; } if (!Position::areInRange<1, 1>(tradeItemPosition, playerPosition)) { std::list<Direction> listDir; if (player->getPathTo(pos, listDir, 0, 1, true, true)) { g_dispatcher.addTask(createTask(std::bind(&Game::playerAutoWalk, this, player->getID(), listDir))); SchedulerTask* task = createSchedulerTask(400, std::bind(&Game::playerRequestTrade, this, playerId, pos, stackPos, tradePlayerId, spriteId)); player->setNextWalkActionTask(task); } else { player->sendCancelMessage(RET_THEREISNOWAY); } return; } Container* tradeItemContainer = tradeItem->getContainer(); if (tradeItemContainer) { for (const auto& it : tradeItems) { Item* item = it.first; if (tradeItem == item) { player->sendTextMessage(MESSAGE_INFO_DESCR, "This item is already being traded."); return; } if (tradeItemContainer->isHoldingItem(item)) { player->sendTextMessage(MESSAGE_INFO_DESCR, "This item is already being traded."); return; } Container* container = item->getContainer(); if (container && container->isHoldingItem(tradeItem)) { player->sendTextMessage(MESSAGE_INFO_DESCR, "This item is already being traded."); return; } } } else { for (const auto& it : tradeItems) { Item* item = it.first; if (tradeItem == item) { player->sendTextMessage(MESSAGE_INFO_DESCR, "This item is already being traded."); return; } Container* container = item->getContainer(); if (container && container->isHoldingItem(tradeItem)) { player->sendTextMessage(MESSAGE_INFO_DESCR, "This item is already being traded."); return; } } } Container* tradeContainer = tradeItem->getContainer(); if (tradeContainer && tradeContainer->getItemHoldingCount() + 1 > 100) { player->sendTextMessage(MESSAGE_INFO_DESCR, "You can not trade more than 100 items."); return; } if (!g_events->eventPlayerOnTradeRequest(player, tradePartner, tradeItem)) { return; } internalStartTrade(player, tradePartner, tradeItem); } bool Game::internalStartTrade(Player* player, Player* tradePartner, Item* tradeItem) { if (player->tradeState != TRADE_NONE && !(player->tradeState == TRADE_ACKNOWLEDGE && player->tradePartner == tradePartner)) { player->sendCancelMessage(RET_YOUAREALREADYTRADING); return false; } else if (tradePartner->tradeState != TRADE_NONE && tradePartner->tradePartner != player) { player->sendCancelMessage(RET_THISPLAYERISALREADYTRADING); return false; } player->tradePartner = tradePartner; player->tradeItem = tradeItem; player->tradeState = TRADE_INITIATED; tradeItem->useThing2(); tradeItems[tradeItem] = player->getID(); player->sendTradeItemRequest(player, tradeItem, true); if (tradePartner->tradeState == TRADE_NONE) { std::ostringstream ss; ss << player->getName() << " wants to trade with you."; tradePartner->sendTextMessage(MESSAGE_EVENT_ADVANCE, ss.str()); tradePartner->tradeState = TRADE_ACKNOWLEDGE; tradePartner->tradePartner = player; } else { Item* counterOfferItem = tradePartner->tradeItem; player->sendTradeItemRequest(tradePartner, counterOfferItem, false); tradePartner->sendTradeItemRequest(player, tradeItem, false); } return true; } void Game::playerAcceptTrade(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (!(player->getTradeState() == TRADE_ACKNOWLEDGE || player->getTradeState() == TRADE_INITIATED)) { return; } Player* tradePartner = player->tradePartner; if (!tradePartner) { return; } if (!canThrowObjectTo(tradePartner->getPosition(), player->getPosition())) { player->sendCancelMessage(RET_CREATUREISNOTREACHABLE); return; } player->setTradeState(TRADE_ACCEPT); if (tradePartner->getTradeState() == TRADE_ACCEPT) { Item* tradeItem1 = player->tradeItem; Item* tradeItem2 = tradePartner->tradeItem; player->setTradeState(TRADE_TRANSFER); tradePartner->setTradeState(TRADE_TRANSFER); std::map<Item*, uint32_t>::iterator it = tradeItems.find(tradeItem1); if (it != tradeItems.end()) { ReleaseItem(it->first); tradeItems.erase(it); } it = tradeItems.find(tradeItem2); if (it != tradeItems.end()) { ReleaseItem(it->first); tradeItems.erase(it); } bool isSuccess = false; ReturnValue ret1 = internalAddItem(tradePartner, tradeItem1, INDEX_WHEREEVER, 0, true); ReturnValue ret2 = internalAddItem(player, tradeItem2, INDEX_WHEREEVER, 0, true); if (ret1 == RET_NOERROR && ret2 == RET_NOERROR) { ret1 = internalRemoveItem(tradeItem1, tradeItem1->getItemCount(), true); ret2 = internalRemoveItem(tradeItem2, tradeItem2->getItemCount(), true); if (ret1 == RET_NOERROR && ret2 == RET_NOERROR) { Cylinder* cylinder1 = tradeItem1->getParent(); Cylinder* cylinder2 = tradeItem2->getParent(); uint32_t count1 = tradeItem1->getItemCount(); uint32_t count2 = tradeItem2->getItemCount(); ret1 = internalMoveItem(cylinder1, tradePartner, INDEX_WHEREEVER, tradeItem1, count1, nullptr, FLAG_IGNOREAUTOSTACK, nullptr, tradeItem2); if (ret1 == RET_NOERROR) { internalMoveItem(cylinder2, player, INDEX_WHEREEVER, tradeItem2, count2, nullptr, FLAG_IGNOREAUTOSTACK); tradeItem1->onTradeEvent(ON_TRADE_TRANSFER, tradePartner); tradeItem2->onTradeEvent(ON_TRADE_TRANSFER, player); isSuccess = true; } } } if (!isSuccess) { std::string errorDescription; if (tradePartner->tradeItem) { errorDescription = getTradeErrorDescription(ret1, tradeItem1); tradePartner->sendTextMessage(MESSAGE_EVENT_ADVANCE, errorDescription); tradePartner->tradeItem->onTradeEvent(ON_TRADE_CANCEL, tradePartner); } if (player->tradeItem) { errorDescription = getTradeErrorDescription(ret2, tradeItem2); player->sendTextMessage(MESSAGE_EVENT_ADVANCE, errorDescription); player->tradeItem->onTradeEvent(ON_TRADE_CANCEL, player); } } player->setTradeState(TRADE_NONE); player->tradeItem = nullptr; player->tradePartner = nullptr; player->sendTradeClose(); tradePartner->setTradeState(TRADE_NONE); tradePartner->tradeItem = nullptr; tradePartner->tradePartner = nullptr; tradePartner->sendTradeClose(); } } std::string Game::getTradeErrorDescription(ReturnValue ret, Item* item) { if (item) { if (ret == RET_NOTENOUGHCAPACITY) { std::ostringstream ss; ss << "You do not have enough capacity to carry"; if (item->isStackable() && item->getItemCount() > 1) { ss << " these objects."; } else { ss << " this object."; } ss << std::endl << ' ' << item->getWeightDescription(); return ss.str(); } else if (ret == RET_NOTENOUGHROOM || ret == RET_CONTAINERNOTENOUGHROOM) { std::ostringstream ss; ss << "You do not have enough room to carry"; if (item->isStackable() && item->getItemCount() > 1) { ss << " these objects."; } else { ss << " this object."; } return ss.str(); } } return "Trade could not be completed."; } void Game::playerLookInTrade(uint32_t playerId, bool lookAtCounterOffer, uint8_t index) { Player* player = getPlayerByID(playerId); if (!player) { return; } Player* tradePartner = player->tradePartner; if (!tradePartner) { return; } Item* tradeItem; if (lookAtCounterOffer) { tradeItem = tradePartner->getTradeItem(); } else { tradeItem = player->getTradeItem(); } if (!tradeItem) { return; } const Position& playerPosition = player->getPosition(); const Position& tradeItemPosition = tradeItem->getPosition(); int32_t lookDistance = std::max<int32_t>(Position::getDistanceX(playerPosition, tradeItemPosition), Position::getDistanceY(playerPosition, tradeItemPosition)); if (index == 0) { g_events->eventPlayerOnLookInTrade(player, tradePartner, tradeItem, lookDistance); return; } Container* tradeContainer = tradeItem->getContainer(); if (!tradeContainer) { return; } std::vector<const Container*> containers {tradeContainer}; size_t i = 0; while (i < containers.size()) { const Container* container = containers[i++]; for (Item* item : container->getItemList()) { Container* tmpContainer = item->getContainer(); if (tmpContainer) { containers.push_back(tmpContainer); } if (--index == 0) { g_events->eventPlayerOnLookInTrade(player, tradePartner, item, lookDistance); return; } } } } void Game::playerCloseTrade(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } internalCloseTrade(player); } bool Game::internalCloseTrade(Player* player) { Player* tradePartner = player->tradePartner; if ((tradePartner && tradePartner->getTradeState() == TRADE_TRANSFER) || player->getTradeState() == TRADE_TRANSFER) { return true; } if (player->getTradeItem()) { std::map<Item*, uint32_t>::iterator it = tradeItems.find(player->getTradeItem()); if (it != tradeItems.end()) { ReleaseItem(it->first); tradeItems.erase(it); } player->tradeItem->onTradeEvent(ON_TRADE_CANCEL, player); player->tradeItem = nullptr; } player->setTradeState(TRADE_NONE); player->tradePartner = nullptr; player->sendTextMessage(MESSAGE_STATUS_SMALL, "Trade cancelled."); player->sendTradeClose(); if (tradePartner) { if (tradePartner->getTradeItem()) { std::map<Item*, uint32_t>::iterator it = tradeItems.find(tradePartner->getTradeItem()); if (it != tradeItems.end()) { ReleaseItem(it->first); tradeItems.erase(it); } tradePartner->tradeItem->onTradeEvent(ON_TRADE_CANCEL, tradePartner); tradePartner->tradeItem = nullptr; } tradePartner->setTradeState(TRADE_NONE); tradePartner->tradePartner = nullptr; tradePartner->sendTextMessage(MESSAGE_STATUS_SMALL, "Trade cancelled."); tradePartner->sendTradeClose(); } return true; } void Game::playerPurchaseItem(uint32_t playerId, uint16_t spriteId, uint8_t count, uint8_t amount, bool ignoreCap/* = false*/, bool inBackpacks/* = false*/) { if (amount == 0 || amount > 100) { return; } Player* player = getPlayerByID(playerId); if (!player) { return; } int32_t onBuy, onSell; Npc* merchant = player->getShopOwner(onBuy, onSell); if (!merchant) { return; } const ItemType& it = Item::items.getItemIdByClientId(spriteId); if (it.id == 0) { return; } uint8_t subType; if (it.isSplash() || it.isFluidContainer()) { subType = clientFluidToServer(count); } else { subType = count; } if (!player->hasShopItemForSale(it.id, subType)) { return; } merchant->onPlayerTrade(player, onBuy, it.id, subType, amount, ignoreCap, inBackpacks); } void Game::playerSellItem(uint32_t playerId, uint16_t spriteId, uint8_t count, uint8_t amount, bool ignoreEquipped) { if (amount == 0 || amount > 100) { return; } Player* player = getPlayerByID(playerId); if (!player) { return; } int32_t onBuy, onSell; Npc* merchant = player->getShopOwner(onBuy, onSell); if (!merchant) { return; } const ItemType& it = Item::items.getItemIdByClientId(spriteId); if (it.id == 0) { return; } uint8_t subType; if (it.isSplash() || it.isFluidContainer()) { subType = clientFluidToServer(count); } else { subType = count; } merchant->onPlayerTrade(player, onSell, it.id, subType, amount, ignoreEquipped); } void Game::playerCloseShop(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->closeShopWindow(); } void Game::playerLookInShop(uint32_t playerId, uint16_t spriteId, uint8_t count) { Player* player = getPlayerByID(playerId); if (!player) { return; } int32_t onBuy, onSell; Npc* merchant = player->getShopOwner(onBuy, onSell); if (!merchant) { return; } const ItemType& it = Item::items.getItemIdByClientId(spriteId); if (it.id == 0) { return; } int32_t subType; if (it.isFluidContainer() || it.isSplash()) { subType = clientFluidToServer(count); } else { subType = count; } if (!player->hasShopItemForSale(it.id, subType)) { return; } if (!g_events->eventPlayerOnLookInShop(player, &it, subType)) { return; } std::ostringstream ss; ss << "You see " << Item::getDescription(it, 1, nullptr, subType); player->sendTextMessage(MESSAGE_INFO_DESCR, ss.str()); } void Game::playerLookAt(uint32_t playerId, const Position& pos, uint16_t spriteId, uint8_t stackPos) { Player* player = getPlayerByID(playerId); if (!player) { return; } Thing* thing = internalGetThing(player, pos, stackPos, spriteId, STACKPOS_LOOK); if (!thing) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } Position thingPos = thing->getPosition(); if (!player->canSee(thingPos)) { player->sendCancelMessage(RET_NOTPOSSIBLE); return; } Position playerPos = player->getPosition(); int32_t lookDistance; if (thing != player) { lookDistance = std::max<int32_t>(Position::getDistanceX(playerPos, thingPos), Position::getDistanceY(playerPos, thingPos)); if (playerPos.z != thingPos.z) { lookDistance += 15; } } else { lookDistance = -1; } g_events->eventPlayerOnLook(player, pos, thing, stackPos, lookDistance); } void Game::playerLookInBattleList(uint32_t playerId, uint32_t creatureId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Creature* creature = getCreatureByID(creatureId); if (!creature) { return; } if (!player->canSeeCreature(creature)) { return; } const Position& creaturePos = creature->getPosition(); if (!player->canSee(creaturePos)) { return; } int32_t lookDistance; if (creature != player) { const Position& playerPos = player->getPosition(); lookDistance = std::max<int32_t>(Position::getDistanceX(playerPos, creaturePos), Position::getDistanceY(playerPos, creaturePos)); if (playerPos.z != creaturePos.z) { lookDistance += 15; } } else { lookDistance = -1; } g_events->eventPlayerOnLookInBattleList(player, creature, lookDistance); } void Game::playerCancelAttackAndFollow(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } playerSetAttackedCreature(playerId, 0); playerFollowCreature(playerId, 0); player->stopWalk(); } void Game::playerSetAttackedCreature(uint32_t playerId, uint32_t creatureId) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (player->getAttackedCreature() && creatureId == 0) { player->setAttackedCreature(nullptr); player->sendCancelTarget(); return; } Creature* attackCreature = getCreatureByID(creatureId); if (!attackCreature) { player->setAttackedCreature(nullptr); player->sendCancelTarget(); return; } ReturnValue ret = Combat::canTargetCreature(player, attackCreature); if (ret != RET_NOERROR) { player->sendCancelMessage(ret); player->sendCancelTarget(); player->setAttackedCreature(nullptr); return; } player->setAttackedCreature(attackCreature); g_dispatcher.addTask(createTask(std::bind(&Game::updateCreatureWalk, this, player->getID()))); } void Game::playerFollowCreature(uint32_t playerId, uint32_t creatureId) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->setAttackedCreature(nullptr); g_dispatcher.addTask(createTask(std::bind(&Game::updateCreatureWalk, this, player->getID()))); player->setFollowCreature(getCreatureByID(creatureId)); } void Game::playerSetFightModes(uint32_t playerId, fightMode_t fightMode, chaseMode_t chaseMode, secureMode_t secureMode) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->setFightMode(fightMode); player->setChaseMode(chaseMode); player->setSecureMode(secureMode); } void Game::playerRequestAddVip(uint32_t playerId, const std::string& name) { if (name.length() > 20) { return; } Player* player = getPlayerByID(playerId); if (!player) { return; } Player* vipPlayer = getPlayerByName(name); if (!vipPlayer) { uint32_t guid; bool specialVip; std::string formattedName = name; if (!IOLoginData::getGuidByNameEx(guid, specialVip, formattedName)) { player->sendTextMessage(MESSAGE_STATUS_SMALL, "A player with this name does not exist."); return; } if (specialVip && !player->hasFlag(PlayerFlag_SpecialVIP)) { player->sendTextMessage(MESSAGE_STATUS_SMALL, "You can not add this player."); return; } player->addVIP(guid, formattedName, VIPSTATUS_OFFLINE); } else { if (vipPlayer->hasFlag(PlayerFlag_SpecialVIP) && !player->hasFlag(PlayerFlag_SpecialVIP)) { player->sendTextMessage(MESSAGE_STATUS_SMALL, "You can not add this player."); return; } if (!vipPlayer->isInGhostMode() || player->isAccessPlayer()) { player->addVIP(vipPlayer->getGUID(), vipPlayer->getName(), VIPSTATUS_ONLINE); } else { player->addVIP(vipPlayer->getGUID(), vipPlayer->getName(), VIPSTATUS_OFFLINE); } } } void Game::playerRequestRemoveVip(uint32_t playerId, uint32_t guid) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->removeVIP(guid); } void Game::playerRequestEditVip(uint32_t playerId, uint32_t guid, const std::string& description, uint32_t icon, bool notify) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->editVIP(guid, description, icon, notify); } void Game::playerTurn(uint32_t playerId, Direction dir) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (!g_events->eventPlayerOnTurn(player, dir)) { return; } player->resetIdleTime(); internalCreatureTurn(player, dir); } void Game::playerRequestOutfit(uint32_t playerId) { if (!g_config.getBoolean(ConfigManager::ALLOW_CHANGEOUTFIT)) { return; } Player* player = getPlayerByID(playerId); if (!player) { return; } player->sendOutfitWindow(); } void Game::playerToggleMount(uint32_t playerId, bool mount) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->toggleMount(mount); } void Game::playerChangeOutfit(uint32_t playerId, Outfit_t outfit) { if (!g_config.getBoolean(ConfigManager::ALLOW_CHANGEOUTFIT)) { return; } Player* player = getPlayerByID(playerId); if (!player) { return; } if (!player->hasRequestedOutfit()) { return; } player->hasRequestedOutfit(false); if (outfit.lookMount != 0) { Mount* mount = Mounts::getInstance()->getMountByClientID(outfit.lookMount); if (!mount) { return; } if (!player->hasMount(mount)) { return; } if (player->isMounted()) { Mount* prevMount = Mounts::getInstance()->getMountByID(player->getCurrentMount()); if (prevMount) { changeSpeed(player, mount->speed - prevMount->speed); } player->setCurrentMount(mount->id); } else { player->setCurrentMount(mount->id); outfit.lookMount = 0; } } else if (player->isMounted()) { player->dismount(); } if (player->canWear(outfit.lookType, outfit.lookAddons)) { player->defaultOutfit = outfit; if (player->hasCondition(CONDITION_OUTFIT)) { return; } internalCreatureChangeOutfit(player, outfit); } } void Game::playerShowQuestLog(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->sendQuestLog(); } void Game::playerShowQuestLine(uint32_t playerId, uint16_t questId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Quest* quest = Quests::getInstance()->getQuestByID(questId); if (!quest) { return; } player->sendQuestLine(quest); } void Game::playerSay(uint32_t playerId, uint16_t channelId, SpeakClasses type, const std::string& receiver, const std::string& text) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->resetIdleTime(); uint32_t muteTime = player->isMuted(); if (muteTime > 0) { std::ostringstream ss; ss << "You are still muted for " << muteTime << " seconds."; player->sendTextMessage(MESSAGE_STATUS_SMALL, ss.str()); return; } if (playerSayCommand(player, text)) { return; } if (playerSaySpell(player, type, text)) { return; } if (!text.empty() && text.front() == '/' && player->isAccessPlayer()) { return; } if (type != TALKTYPE_PRIVATE_PN) { player->removeMessageBuffer(); } switch (type) { case TALKTYPE_SAY: internalCreatureSay(player, TALKTYPE_SAY, text, false); break; case TALKTYPE_WHISPER: playerWhisper(player, text); break; case TALKTYPE_YELL: playerYell(player, text); break; case TALKTYPE_PRIVATE_TO: case TALKTYPE_PRIVATE_RED_TO: playerSpeakTo(player, type, receiver, text); break; case TALKTYPE_CHANNEL_O: case TALKTYPE_CHANNEL_Y: case TALKTYPE_CHANNEL_R1: g_chat.talkToChannel(*player, type, text, channelId); break; case TALKTYPE_PRIVATE_PN: playerSpeakToNpc(player, text); break; case TALKTYPE_BROADCAST: playerBroadcastMessage(player, text); break; default: break; } } bool Game::playerSayCommand(Player* player, const std::string& text) { if (text.empty()) { return false; } char firstCharacter = text.front(); for (char commandTag : commandTags) { if (commandTag == firstCharacter) { if (commands.exeCommand(*player, text)) { return true; } } } return false; } bool Game::playerSaySpell(Player* player, SpeakClasses type, const std::string& text) { std::string words = text; TalkActionResult_t result = g_talkActions->playerSaySpell(player, type, words); if (result == TALKACTION_BREAK) { return true; } result = g_spells->playerSaySpell(player, words); if (result == TALKACTION_BREAK) { if (!g_config.getBoolean(ConfigManager::EMOTE_SPELLS)) { return internalCreatureSay(player, TALKTYPE_SAY, words, false); } else { return internalCreatureSay(player, TALKTYPE_MONSTER_SAY, words, false); } } else if (result == TALKACTION_FAILED) { return true; } return false; } bool Game::playerWhisper(Player* player, const std::string& text) { SpectatorVec list; getSpectators(list, player->getPosition(), false, false, Map::maxClientViewportX, Map::maxClientViewportX, Map::maxClientViewportY, Map::maxClientViewportY); //send to client for (Creature* spectator : list) { if (Player* spectatorPlayer = spectator->getPlayer()) { if (!Position::areInRange<1, 1>(player->getPosition(), spectatorPlayer->getPosition())) { spectatorPlayer->sendCreatureSay(player, TALKTYPE_WHISPER, "pspsps"); } else { spectatorPlayer->sendCreatureSay(player, TALKTYPE_WHISPER, text); } } } //event method for (Creature* spectator : list) { spectator->onCreatureSay(player, TALKTYPE_WHISPER, text); } return true; } bool Game::playerYell(Player* player, const std::string& text) { if (player->getLevel() == 1) { player->sendTextMessage(MESSAGE_STATUS_SMALL, "You may not yell as long as you are on level 1."); return false; } if (player->hasCondition(CONDITION_YELLTICKS)) { player->sendCancelMessage(RET_YOUAREEXHAUSTED); return false; } if (player->getAccountType() < ACCOUNT_TYPE_GAMEMASTER) { Condition* condition = Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_YELLTICKS, 30000, 0); player->addCondition(condition); } internalCreatureSay(player, TALKTYPE_YELL, asUpperCaseString(text), false); return true; } bool Game::playerSpeakTo(Player* player, SpeakClasses type, const std::string& receiver, const std::string& text) { Player* toPlayer = getPlayerByName(receiver); if (!toPlayer) { player->sendTextMessage(MESSAGE_STATUS_SMALL, "A player with this name is not online."); return false; } if (type == TALKTYPE_PRIVATE_RED_TO && (player->hasFlag(PlayerFlag_CanTalkRedPrivate) || player->getAccountType() >= ACCOUNT_TYPE_GAMEMASTER)) { type = TALKTYPE_PRIVATE_RED_FROM; } else { type = TALKTYPE_PRIVATE_FROM; } toPlayer->sendPrivateMessage(player, type, text); toPlayer->onCreatureSay(player, type, text); if (toPlayer->isInGhostMode() && !player->isAccessPlayer()) { player->sendTextMessage(MESSAGE_STATUS_SMALL, "A player with this name is not online."); } else { std::ostringstream ss; ss << "Message sent to " << toPlayer->getName() << '.'; player->sendTextMessage(MESSAGE_STATUS_SMALL, ss.str()); } return true; } bool Game::playerSpeakToNpc(Player* player, const std::string& text) { SpectatorVec list; getSpectators(list, player->getPosition()); for (Creature* spectator : list) { if (spectator->getNpc()) { spectator->onCreatureSay(player, TALKTYPE_PRIVATE_PN, text); } } return true; } //-- bool Game::canThrowObjectTo(const Position& fromPos, const Position& toPos, bool checkLineOfSight /*= true*/, int32_t rangex /*= Map::maxClientViewportX*/, int32_t rangey /*= Map::maxClientViewportY*/) const { return map.canThrowObjectTo(fromPos, toPos, checkLineOfSight, rangex, rangey); } bool Game::isSightClear(const Position& fromPos, const Position& toPos, bool floorCheck) const { return map.isSightClear(fromPos, toPos, floorCheck); } bool Game::internalCreatureTurn(Creature* creature, Direction dir) { if (creature->getDirection() == dir) { return false; } creature->setDirection(dir); //send to client SpectatorVec list; getSpectators(list, creature->getPosition(), true, true); for (Creature* spectator : list) { spectator->getPlayer()->sendCreatureTurn(creature); } return true; } bool Game::internalCreatureSay(Creature* creature, SpeakClasses type, const std::string& text, bool ghostMode, SpectatorVec* listPtr/* = nullptr*/, const Position* pos/* = nullptr*/) { if (text.empty()) { return false; } if (!pos) { pos = &creature->getPosition(); } SpectatorVec list; if (!listPtr || listPtr->empty()) { // This somewhat complex construct ensures that the cached SpectatorVec // is used if available and if it can be used, else a local vector is // used (hopefully the compiler will optimize away the construction of // the temporary when it's not used). if (type != TALKTYPE_YELL && type != TALKTYPE_MONSTER_YELL) { getSpectators(list, *pos, false, false, Map::maxClientViewportX, Map::maxClientViewportX, Map::maxClientViewportY, Map::maxClientViewportY); } else { getSpectators(list, *pos, true, false, 18, 18, 14, 14); } } else { list = (*listPtr); } //send to client for (Creature* spectator : list) { if (Player* tmpPlayer = spectator->getPlayer()) { if (!ghostMode || tmpPlayer->canSeeCreature(creature)) { tmpPlayer->sendCreatureSay(creature, type, text, pos); } } } //event method for (Creature* spectator : list) { spectator->onCreatureSay(creature, type, text); if (creature != spectator) { g_events->eventCreatureOnHear(spectator, creature, text, type, creature->getPosition()); } } return true; } void Game::checkCreatureWalk(uint32_t creatureId) { Creature* creature = getCreatureByID(creatureId); if (creature && creature->getHealth() > 0) { creature->onWalk(); cleanup(); } } void Game::updateCreatureWalk(uint32_t creatureId) { Creature* creature = getCreatureByID(creatureId); if (creature && creature->getHealth() > 0) { creature->goToFollowCreature(); } } void Game::checkCreatureAttack(uint32_t creatureId) { Creature* creature = getCreatureByID(creatureId); if (creature && creature->getHealth() > 0) { creature->onAttacking(0); } } void Game::addCreatureCheck(Creature* creature) { creature->creatureCheck = true; if (creature->inCheckCreaturesVector) { // already in a vector return; } creature->inCheckCreaturesVector = true; checkCreatureLists[uniform_random(0, EVENT_CREATURECOUNT - 1)].push_back(creature); creature->useThing2(); } void Game::removeCreatureCheck(Creature* creature) { if (creature->inCheckCreaturesVector) { creature->creatureCheck = false; } } void Game::checkCreatures(size_t index) { g_scheduler.addEvent(createSchedulerTask(EVENT_CHECK_CREATURE_INTERVAL, std::bind(&Game::checkCreatures, this, (index + 1) % EVENT_CREATURECOUNT))); auto& checkCreatureList = checkCreatureLists[index]; for (auto it = checkCreatureList.begin(), end = checkCreatureList.end(); it != end;) { Creature* creature = *it; if (creature->creatureCheck) { if (creature->getHealth() > 0) { creature->onThink(EVENT_CREATURE_THINK_INTERVAL); creature->onAttacking(EVENT_CREATURE_THINK_INTERVAL); creature->executeConditions(EVENT_CREATURE_THINK_INTERVAL); } else { creature->onDeath(); } ++it; } else { creature->inCheckCreaturesVector = false; it = checkCreatureList.erase(it); ReleaseCreature(creature); } } cleanup(); } void Game::changeSpeed(Creature* creature, int32_t varSpeedDelta) { int32_t varSpeed = creature->getSpeed() - creature->getBaseSpeed(); varSpeed += varSpeedDelta; creature->setSpeed(varSpeed); //send to clients SpectatorVec list; getSpectators(list, creature->getPosition(), false, true); for (Creature* spectator : list) { spectator->getPlayer()->sendChangeSpeed(creature, creature->getStepSpeed()); } } void Game::internalCreatureChangeOutfit(Creature* creature, const Outfit_t& outfit) { if (!g_events->eventCreatureOnChangeOutfit(creature, outfit, creature->getCurrentOutfit())) { return; } creature->setCurrentOutfit(outfit); if (creature->isInvisible()) { return; } //send to clients SpectatorVec list; getSpectators(list, creature->getPosition(), true, true); for (Creature* spectator : list) { spectator->getPlayer()->sendCreatureChangeOutfit(creature, outfit); } } void Game::internalCreatureChangeVisible(Creature* creature, bool visible) { //send to clients SpectatorVec list; getSpectators(list, creature->getPosition(), true, true); for (Creature* spectator : list) { spectator->getPlayer()->sendCreatureChangeVisible(creature, visible); } } void Game::changeLight(const Creature* creature) { //send to clients SpectatorVec list; getSpectators(list, creature->getPosition(), true, true); for (Creature* spectator : list) { spectator->getPlayer()->sendCreatureLight(creature); } } bool Game::combatBlockHit(CombatType_t combatType, Creature* attacker, Creature* target, int32_t& healthChange, bool checkDefense, bool checkArmor, bool field) { if (combatType == COMBAT_NONE) { return true; } if (target->getPlayer() && target->getPlayer()->isInGhostMode()) { return true; } if (healthChange > 0) { return false; } const Position& targetPos = target->getPosition(); SpectatorVec list; getSpectators(list, targetPos, false, true); if (!target->isAttackable() || Combat::canDoCombat(attacker, target) != RET_NOERROR) { if (!target->isInGhostMode()) { addMagicEffect(list, targetPos, CONST_ME_POFF); } return true; } int32_t damage = -healthChange; BlockType_t blockType = target->blockHit(attacker, combatType, damage, checkDefense, checkArmor, field); healthChange = -damage; if (blockType == BLOCK_DEFENSE) { addMagicEffect(list, targetPos, CONST_ME_POFF); return true; } else if (blockType == BLOCK_ARMOR) { addMagicEffect(list, targetPos, CONST_ME_BLOCKHIT); return true; } else if (blockType == BLOCK_IMMUNITY) { uint8_t hitEffect = 0; switch (combatType) { case COMBAT_UNDEFINEDDAMAGE: break; case COMBAT_ENERGYDAMAGE: case COMBAT_FIREDAMAGE: case COMBAT_PHYSICALDAMAGE: case COMBAT_ICEDAMAGE: case COMBAT_DEATHDAMAGE: { hitEffect = CONST_ME_BLOCKHIT; break; } case COMBAT_EARTHDAMAGE: { hitEffect = CONST_ME_GREEN_RINGS; break; } case COMBAT_HOLYDAMAGE: { hitEffect = CONST_ME_HOLYDAMAGE; break; } default: { hitEffect = CONST_ME_POFF; break; } } addMagicEffect(list, targetPos, hitEffect); return true; } return false; } void Game::combatGetTypeInfo(CombatType_t combatType, Creature* target, TextColor_t& color, uint8_t& effect) { switch (combatType) { case COMBAT_PHYSICALDAMAGE: { Item* splash = nullptr; switch (target->getRace()) { case RACE_VENOM: color = TEXTCOLOR_LIGHTGREEN; effect = CONST_ME_HITBYPOISON; splash = Item::CreateItem(ITEM_SMALLSPLASH, FLUID_GREEN); break; case RACE_BLOOD: color = TEXTCOLOR_RED; effect = CONST_ME_DRAWBLOOD; splash = Item::CreateItem(ITEM_SMALLSPLASH, FLUID_BLOOD); break; case RACE_UNDEAD: color = TEXTCOLOR_LIGHTGREY; effect = CONST_ME_HITAREA; break; case RACE_FIRE: color = TEXTCOLOR_ORANGE; effect = CONST_ME_DRAWBLOOD; break; case RACE_ENERGY: color = TEXTCOLOR_PURPLE; effect = CONST_ME_ENERGYHIT; break; default: color = TEXTCOLOR_NONE; effect = CONST_ME_NONE; break; } if (splash) { internalAddItem(target->getTile(), splash, INDEX_WHEREEVER, FLAG_NOLIMIT); startDecay(splash); } break; } case COMBAT_ENERGYDAMAGE: { color = TEXTCOLOR_PURPLE; effect = CONST_ME_ENERGYHIT; break; } case COMBAT_EARTHDAMAGE: { color = TEXTCOLOR_LIGHTGREEN; effect = CONST_ME_GREEN_RINGS; break; } case COMBAT_DROWNDAMAGE: { color = TEXTCOLOR_LIGHTBLUE; effect = CONST_ME_LOSEENERGY; break; } case COMBAT_FIREDAMAGE: { color = TEXTCOLOR_ORANGE; effect = CONST_ME_HITBYFIRE; break; } case COMBAT_ICEDAMAGE: { color = TEXTCOLOR_SKYBLUE; effect = CONST_ME_ICEATTACK; break; } case COMBAT_HOLYDAMAGE: { color = TEXTCOLOR_YELLOW; effect = CONST_ME_HOLYDAMAGE; break; } case COMBAT_DEATHDAMAGE: { color = TEXTCOLOR_DARKRED; effect = CONST_ME_SMALLCLOUDS; break; } case COMBAT_LIFEDRAIN: { color = TEXTCOLOR_RED; effect = CONST_ME_MAGIC_RED; break; } default: { color = TEXTCOLOR_NONE; effect = CONST_ME_NONE; break; } } } bool Game::combatChangeHealth(Creature* attacker, Creature* target, CombatDamage& damage) { const Position& targetPos = target->getPosition(); if (damage.primary.value > 0) { if (target->getHealth() <= 0) { return false; } Player* attackerPlayer; if (attacker) { attackerPlayer = attacker->getPlayer(); } else { attackerPlayer = nullptr; } Player* targetPlayer = target->getPlayer(); if (attackerPlayer && targetPlayer) { if (g_config.getBoolean(ConfigManager::CANNOT_ATTACK_SAME_LOOKFEET) && attackerPlayer->defaultOutfit.lookFeet == target->defaultOutfit.lookFeet && damage.primary.type != COMBAT_HEALING) { return false; } if (attackerPlayer->getSkull() == SKULL_BLACK && attackerPlayer->getSkullClient(targetPlayer) == SKULL_NONE) { return false; } } if (damage.origin != ORIGIN_NONE) { g_events->eventCreatureOnChangeHealth(target, attacker, damage); damage.origin = ORIGIN_NONE; return combatChangeHealth(attacker, target, damage); } int32_t realHealthChange = target->getHealth(); target->gainHealth(attacker, damage.primary.value); realHealthChange = target->getHealth() - realHealthChange; if (realHealthChange > 0 && !target->isInGhostMode()) { std::string damageString = std::to_string(realHealthChange); std::string pluralString = (realHealthChange != 1 ? "s." : "."); std::string spectatorMessage = ucfirst(target->getNameDescription()); if (!attacker) { spectatorMessage += " was healed for " + damageString + " hitpoint" + pluralString; } else { spectatorMessage += " healed "; if (attacker == target) { spectatorMessage += (targetPlayer ? (targetPlayer->getSex() == PLAYERSEX_FEMALE ? "herself" : "himself") : "itself"); } else { spectatorMessage += target->getNameDescription(); } spectatorMessage += " for " + damageString + " hitpoint" + pluralString; } TextMessage message; message.position = targetPos; message.primary.value = realHealthChange; message.primary.color = TEXTCOLOR_MAYABLUE; SpectatorVec list; getSpectators(list, targetPos, false, true); for (Creature* spectator : list) { Player* tmpPlayer = spectator->getPlayer(); if (tmpPlayer == attackerPlayer && attackerPlayer != targetPlayer) { message.type = MESSAGE_HEALED; message.text = "You heal " + target->getNameDescription() + " for " + damageString + " hitpoint" + pluralString; } else if (tmpPlayer == targetPlayer) { message.type = MESSAGE_HEALED; if (!attacker) { message.text = "You were healed for " + damageString + " hitpoint" + pluralString; } else if (targetPlayer == attackerPlayer) { message.text = "You heal yourself for " + damageString + " hitpoint" + pluralString; } else { message.text = "You were healed by " + attacker->getNameDescription() + " for " + damageString + " hitpoint" + pluralString; } } else { message.type = MESSAGE_HEALED_OTHERS; message.text = spectatorMessage; } tmpPlayer->sendTextMessage(message); } } } else { SpectatorVec list; getSpectators(list, targetPos, true, true); if (!target->isAttackable() || Combat::canDoCombat(attacker, target) != RET_NOERROR) { addMagicEffect(list, targetPos, CONST_ME_POFF); return true; } Player* attackerPlayer; if (attacker) { attackerPlayer = attacker->getPlayer(); } else { attackerPlayer = nullptr; } Player* targetPlayer = target->getPlayer(); if (attackerPlayer && targetPlayer) { if (g_config.getBoolean(ConfigManager::CANNOT_ATTACK_SAME_LOOKFEET) && attacker->defaultOutfit.lookFeet == target->defaultOutfit.lookFeet && damage.primary.type != COMBAT_HEALING) { return false; } if (attackerPlayer->getSkull() == SKULL_BLACK && attackerPlayer->getSkullClient(targetPlayer) == SKULL_NONE) { return false; } } damage.primary.value = std::abs(damage.primary.value); damage.secondary.value = std::abs(damage.secondary.value); int32_t healthChange = damage.primary.value + damage.secondary.value; if (healthChange == 0) { return true; } TextMessage message; message.position = targetPos; if (target->hasCondition(CONDITION_MANASHIELD) && damage.primary.type != COMBAT_UNDEFINEDDAMAGE) { int32_t manaDamage = std::min<int32_t>(target->getMana(), healthChange); if (manaDamage != 0) { if (damage.origin != ORIGIN_NONE) { g_events->eventCreatureOnChangeMana(target, attacker, healthChange, damage.origin); if (healthChange == 0) { return true; } manaDamage = std::min<int32_t>(target->getMana(), healthChange); } target->drainMana(attacker, manaDamage); addMagicEffect(list, targetPos, CONST_ME_LOSEENERGY); std::string damageString = std::to_string(manaDamage); std::string spectatorMessage = ucfirst(target->getNameDescription()) + " loses " + damageString + " mana"; if (attacker) { spectatorMessage += " blocking an attack by "; if (attacker == target) { spectatorMessage += (targetPlayer ? (targetPlayer->getSex() == PLAYERSEX_FEMALE ? "herself" : "himself") : "itself"); } else { spectatorMessage += attacker->getNameDescription(); } } spectatorMessage += '.'; message.primary.value = manaDamage; message.primary.color = TEXTCOLOR_BLUE; for (Creature* spectator : list) { Player* tmpPlayer = spectator->getPlayer(); if (tmpPlayer->getPosition().z == targetPos.z) { if (tmpPlayer == attackerPlayer && attackerPlayer != targetPlayer) { message.type = MESSAGE_DAMAGE_DEALT; message.text = ucfirst(target->getNameDescription()) + " loses " + damageString + " mana blocking your attack."; } else if (tmpPlayer == targetPlayer) { message.type = MESSAGE_DAMAGE_RECEIVED; if (!attacker) { message.text = "You lose " + damageString + " mana."; } else if (targetPlayer == attackerPlayer) { message.text = "You lose " + damageString + " mana blocking an attack by yourself."; } else { message.text = "You lose " + damageString + " mana blocking an attack by " + attacker->getNameDescription() + '.'; } } else { message.type = MESSAGE_DAMAGE_OTHERS; message.text = spectatorMessage; } tmpPlayer->sendTextMessage(message); } } damage.primary.value -= manaDamage; if (damage.primary.value < 0) { damage.secondary.value = std::max<int32_t>(0, damage.secondary.value + damage.primary.value); damage.primary.value = 0; } } } int32_t realDamage = damage.primary.value + damage.secondary.value; if (realDamage == 0) { return true; } if (damage.origin != ORIGIN_NONE) { g_events->eventCreatureOnChangeHealth(target, attacker, damage); damage.origin = ORIGIN_NONE; return combatChangeHealth(attacker, target, damage); } int32_t targetHealth = target->getHealth(); if (damage.primary.value >= targetHealth) { damage.primary.value = targetHealth; damage.secondary.value = 0; } else if (damage.secondary.value) { damage.secondary.value = std::min<int32_t>(damage.secondary.value, targetHealth - damage.primary.value); } realDamage = damage.primary.value + damage.secondary.value; if (realDamage == 0) { return true; } else if (realDamage >= targetHealth) { if (!g_events->eventCreatureOnPrepareDeath(target, attacker)) { return false; } } target->drainHealth(attacker, realDamage); addCreatureHealth(list, target); message.primary.value = damage.primary.value; message.secondary.value = damage.secondary.value; uint8_t hitEffect; if (message.primary.value) { combatGetTypeInfo(damage.primary.type, target, message.primary.color, hitEffect); if (hitEffect != CONST_ME_NONE) { addMagicEffect(list, targetPos, hitEffect); } } if (message.secondary.value) { combatGetTypeInfo(damage.secondary.type, target, message.secondary.color, hitEffect); if (hitEffect != CONST_ME_NONE) { addMagicEffect(list, targetPos, hitEffect); } } if (message.primary.color != TEXTCOLOR_NONE || message.secondary.color != TEXTCOLOR_NONE) { std::string damageString = std::to_string(realDamage); std::string pluralString = (realDamage != 1 ? "s" : ""); std::string spectatorMessage = ucfirst(target->getNameDescription()) + " loses " + damageString + " hitpoint" + pluralString; if (attacker) { spectatorMessage += " due to "; if (attacker == target) { spectatorMessage += (targetPlayer ? (targetPlayer->getSex() == PLAYERSEX_FEMALE ? "her" : "his") : "its"); spectatorMessage += " own attack"; } else { spectatorMessage += "an attack by " + target->getNameDescription(); } } spectatorMessage += '.'; for (Creature* spectator : list) { Player* tmpPlayer = spectator->getPlayer(); if (tmpPlayer->getPosition().z == targetPos.z) { if (tmpPlayer == attackerPlayer && attackerPlayer != targetPlayer) { message.type = MESSAGE_DAMAGE_DEALT; message.text = ucfirst(target->getNameDescription()) + " loses " + damageString + " hitpoint" + pluralString + " due to your attack."; } else if (tmpPlayer == targetPlayer) { message.type = MESSAGE_DAMAGE_RECEIVED; if (!attacker) { message.text = "You lose " + damageString + " hitpoint" + pluralString + '.'; } else if (targetPlayer == attackerPlayer) { message.text = "You lose " + damageString + " hitpoint" + pluralString + " due to your own attack."; } else { message.text = "You lose " + damageString + " hitpoint" + pluralString + " due to an attack by " + attacker->getNameDescription() + '.'; } } else { message.type = MESSAGE_DAMAGE_OTHERS; message.text = spectatorMessage; } tmpPlayer->sendTextMessage(message); } } } } return true; } bool Game::combatChangeMana(Creature* attacker, Creature* target, int32_t manaChange, CombatOrigin origin) { if (manaChange > 0) { if (attacker) { Player* attackerPlayer = attacker->getPlayer(); Player* targetPlayer = target->getPlayer(); if (attackerPlayer && targetPlayer) { if (g_config.getBoolean(ConfigManager::CANNOT_ATTACK_SAME_LOOKFEET) && attacker->defaultOutfit.lookFeet == target->defaultOutfit.lookFeet) { return false; } if (attackerPlayer->getSkull() == SKULL_BLACK && attackerPlayer->getSkullClient(targetPlayer) == SKULL_NONE) { return false; } } } if (origin != ORIGIN_NONE) { g_events->eventCreatureOnChangeMana(target, attacker, manaChange, origin); return combatChangeMana(attacker, target, manaChange, ORIGIN_NONE); } target->changeMana(manaChange); } else { const Position& targetPos = target->getPosition(); if (!target->isAttackable() || Combat::canDoCombat(attacker, target) != RET_NOERROR) { addMagicEffect(targetPos, CONST_ME_POFF); return false; } Player* attackerPlayer; if (attacker) { attackerPlayer = attacker->getPlayer(); } else { attackerPlayer = nullptr; } Player* targetPlayer = target->getPlayer(); if (attackerPlayer && targetPlayer) { if (g_config.getBoolean(ConfigManager::CANNOT_ATTACK_SAME_LOOKFEET) && attacker->defaultOutfit.lookFeet == target->defaultOutfit.lookFeet) { return false; } if (attackerPlayer->getSkull() == SKULL_BLACK && attackerPlayer->getSkullClient(targetPlayer) == SKULL_NONE) { return false; } } int32_t manaLoss = std::min<int32_t>(target->getMana(), -manaChange); BlockType_t blockType = target->blockHit(attacker, COMBAT_MANADRAIN, manaLoss); if (blockType != BLOCK_NONE) { addMagicEffect(targetPos, CONST_ME_POFF); return false; } if (manaLoss <= 0) { return true; } if (origin != ORIGIN_NONE) { g_events->eventCreatureOnChangeMana(target, attacker, manaChange, origin); return combatChangeMana(attacker, target, manaChange, ORIGIN_NONE); } target->drainMana(attacker, manaLoss); std::string damageString = std::to_string(manaLoss); std::string spectatorMessage = ucfirst(target->getNameDescription()) + " loses " + damageString + " mana"; if (attacker) { spectatorMessage += " blocking an attack by "; if (attacker == target) { spectatorMessage += (targetPlayer ? (targetPlayer->getSex() == PLAYERSEX_FEMALE ? "herself" : "himself") : "itself"); } else { spectatorMessage += attacker->getNameDescription(); } } spectatorMessage += '.'; TextMessage message; message.position = targetPos; message.primary.value = manaLoss; message.primary.color = TEXTCOLOR_BLUE; SpectatorVec list; getSpectators(list, targetPos, false, true); for (Creature* spectator : list) { Player* tmpPlayer = spectator->getPlayer(); if (tmpPlayer == attackerPlayer && attackerPlayer != targetPlayer) { message.type = MESSAGE_DAMAGE_DEALT; message.text = ucfirst(target->getNameDescription()) + " loses " + damageString + " mana blocking your attack."; } else if (tmpPlayer == targetPlayer) { message.type = MESSAGE_DAMAGE_RECEIVED; if (!attacker) { message.text = "You lose " + damageString + " mana."; } else if (targetPlayer == attackerPlayer) { message.text = "You lose " + damageString + " mana blocking an attack by yourself."; } else { message.text = "You lose " + damageString + " mana blocking an attack by " + attacker->getNameDescription() + '.'; } } else { message.type = MESSAGE_DAMAGE_OTHERS; message.text = spectatorMessage; } tmpPlayer->sendTextMessage(message); } } return true; } void Game::addCreatureHealth(const Creature* target) { SpectatorVec list; getSpectators(list, target->getPosition(), true, true); addCreatureHealth(list, target); } void Game::addCreatureHealth(const SpectatorVec& list, const Creature* target) { for (Creature* spectator : list) { if (Player* tmpPlayer = spectator->getPlayer()) { tmpPlayer->sendCreatureHealth(target); } } } void Game::addMagicEffect(const Position& pos, uint8_t effect) { SpectatorVec list; getSpectators(list, pos, true, true); addMagicEffect(list, pos, effect); } void Game::addMagicEffect(const SpectatorVec& list, const Position& pos, uint8_t effect) { for (Creature* spectator : list) { if (Player* tmpPlayer = spectator->getPlayer()) { tmpPlayer->sendMagicEffect(pos, effect); } } } void Game::addDistanceEffect(const Position& fromPos, const Position& toPos, uint8_t effect) { SpectatorVec list; getSpectators(list, fromPos, false, true); getSpectators(list, toPos, false, true); addDistanceEffect(list, fromPos, toPos, effect); } void Game::addDistanceEffect(const SpectatorVec& list, const Position& fromPos, const Position& toPos, uint8_t effect) { for (Creature* spectator : list) { if (Player* tmpPlayer = spectator->getPlayer()) { tmpPlayer->sendDistanceShoot(fromPos, toPos, effect); } } } void Game::startDecay(Item* item) { if (!item || !item->canDecay()) { return; } ItemDecayState_t decayState = item->getDecaying(); if (decayState == DECAYING_TRUE) { return; } if (item->getDuration() > 0) { item->useThing2(); item->setDecaying(DECAYING_TRUE); toDecayItems.push_front(item); } else { internalDecayItem(item); } } void Game::internalDecayItem(Item* item) { const ItemType& it = Item::items[item->getID()]; if (it.decayTo != 0) { Item* newItem = transformItem(item, it.decayTo); startDecay(newItem); } else { ReturnValue ret = internalRemoveItem(item); if (ret != RET_NOERROR) { std::cout << "DEBUG, internalDecayItem failed, error code: " << (int32_t) ret << "item id: " << item->getID() << std::endl; } } } void Game::checkDecay() { g_scheduler.addEvent(createSchedulerTask(EVENT_DECAYINTERVAL, std::bind(&Game::checkDecay, this))); size_t bucket = (lastBucket + 1) % EVENT_DECAY_BUCKETS; for (auto it = decayItems[bucket].begin(); it != decayItems[bucket].end();) { Item* item = *it; if (!item->canDecay()) { item->setDecaying(DECAYING_FALSE); ReleaseItem(item); it = decayItems[bucket].erase(it); continue; } int32_t decreaseTime = EVENT_DECAYINTERVAL * EVENT_DECAY_BUCKETS; int32_t duration = item->getDuration(); if (duration - decreaseTime < 0) { decreaseTime = duration; } duration -= decreaseTime; item->decreaseDuration(decreaseTime); if (duration <= 0) { it = decayItems[bucket].erase(it); internalDecayItem(item); ReleaseItem(item); } else if (duration < EVENT_DECAYINTERVAL * EVENT_DECAY_BUCKETS) { it = decayItems[bucket].erase(it); size_t newBucket = (bucket + ((duration + EVENT_DECAYINTERVAL / 2) / 1000)) % EVENT_DECAY_BUCKETS; if (newBucket == bucket) { internalDecayItem(item); ReleaseItem(item); } else { decayItems[newBucket].push_back(item); } } else { ++it; } } lastBucket = bucket; cleanup(); } void Game::checkLight() { g_scheduler.addEvent(createSchedulerTask(EVENT_LIGHTINTERVAL, std::bind(&Game::checkLight, this))); lightHour += lightHourDelta; if (lightHour > 1440) { lightHour -= 1440; } if (std::abs(lightHour - SUNRISE) < 2 * lightHourDelta) { lightState = LIGHT_STATE_SUNRISE; } else if (std::abs(lightHour - SUNSET) < 2 * lightHourDelta) { lightState = LIGHT_STATE_SUNSET; } int32_t newLightLevel = lightLevel; bool lightChange = false; switch (lightState) { case LIGHT_STATE_SUNRISE: { newLightLevel += (LIGHT_LEVEL_DAY - LIGHT_LEVEL_NIGHT) / 30; lightChange = true; break; } case LIGHT_STATE_SUNSET: { newLightLevel -= (LIGHT_LEVEL_DAY - LIGHT_LEVEL_NIGHT) / 30; lightChange = true; break; } default: break; } if (newLightLevel <= LIGHT_LEVEL_NIGHT) { lightLevel = LIGHT_LEVEL_NIGHT; lightState = LIGHT_STATE_NIGHT; } else if (newLightLevel >= LIGHT_LEVEL_DAY) { lightLevel = LIGHT_LEVEL_DAY; lightState = LIGHT_STATE_DAY; } else { lightLevel = newLightLevel; } if (lightChange) { LightInfo lightInfo; getWorldLightInfo(lightInfo); for (const auto& it : players) { it.second->sendWorldLight(lightInfo); } } } void Game::getWorldLightInfo(LightInfo& lightInfo) const { lightInfo.level = lightLevel; lightInfo.color = 0xD7; } void Game::addCommandTag(char tag) { for (char commandTag : commandTags) { if (commandTag == tag) { return; } } commandTags.push_back(tag); } void Game::resetCommandTag() { commandTags.clear(); } void Game::shutdown() { std::cout << "Shutting down server..." << std::flush; g_scheduler.shutdown(); g_dispatcher.shutdown(); Spawns::getInstance()->clear(); Raids::getInstance()->clear(); cleanup(); if (services) { services->stop(); } ConnectionManager::getInstance()->closeAll(); std::cout << " done!" << std::endl; } void Game::cleanup() { //free memory for (auto creature : ToReleaseCreatures) { creature->releaseThing2(); } ToReleaseCreatures.clear(); for (auto item : ToReleaseItems) { item->releaseThing2(); } ToReleaseItems.clear(); for (Item* item : toDecayItems) { const uint32_t dur = item->getDuration(); if (dur >= EVENT_DECAYINTERVAL * EVENT_DECAY_BUCKETS) { decayItems[lastBucket].push_back(item); } else { decayItems[(lastBucket + 1 + dur / 1000) % EVENT_DECAY_BUCKETS].push_back(item); } } toDecayItems.clear(); } void Game::ReleaseCreature(Creature* creature) { ToReleaseCreatures.push_back(creature); } void Game::ReleaseItem(Item* item) { ToReleaseItems.push_back(item); } void Game::broadcastMessage(const std::string& text, MessageClasses type) const { std::cout << "> Broadcasted message: \"" << text << "\"." << std::endl; for (const auto& it : players) { it.second->sendTextMessage(type, text); } } void Game::updateCreatureWalkthrough(const Creature* creature) { //send to clients SpectatorVec list; getSpectators(list, creature->getPosition(), true, true); for (Creature* spectator : list) { Player* tmpPlayer = spectator->getPlayer(); tmpPlayer->sendCreatureWalkthrough(creature, tmpPlayer->canWalkthroughEx(creature)); } } void Game::updatePlayerSkull(Player* player) { if (getWorldType() != WORLD_TYPE_PVP) { return; } SpectatorVec list; getSpectators(list, player->getPosition(), true, true); for (Creature* spectator : list) { spectator->getPlayer()->sendCreatureSkull(player); } } void Game::updatePlayerShield(Player* player) { SpectatorVec list; getSpectators(list, player->getPosition(), true, true); for (Creature* spectator : list) { spectator->getPlayer()->sendCreatureShield(player); } } void Game::updatePlayerHelpers(const Player& player) { uint32_t creatureId = player.getID(); uint16_t helpers = player.getHelpers(); SpectatorVec list; getSpectators(list, player.getPosition(), true, true); for (Creature* spectator : list) { spectator->getPlayer()->sendCreatureHelpers(creatureId, helpers); } } void Game::updateCreatureType(Creature* creature) { const Player* masterPlayer = nullptr; uint32_t creatureId = creature->getID(); CreatureType_t creatureType = creature->getType(); if (creatureType == CREATURETYPE_MONSTER) { const Creature* master = creature->getMaster(); if (master) { masterPlayer = master->getPlayer(); if (masterPlayer) { creatureType = CREATURETYPE_SUMMON_OTHERS; } } } //send to clients SpectatorVec list; getSpectators(list, creature->getPosition(), true, true); if (creatureType == CREATURETYPE_SUMMON_OTHERS) { for (Creature* spectator : list) { Player* player = spectator->getPlayer(); if (masterPlayer == player) { player->sendCreatureType(creatureId, CREATURETYPE_SUMMON_OWN); } else { player->sendCreatureType(creatureId, creatureType); } } } else { for (Creature* spectator : list) { spectator->getPlayer()->sendCreatureType(creatureId, creatureType); } } } void Game::updatePremium(Account& account) { bool save = false; time_t timeNow = time(nullptr); if (account.premiumDays != 0 && account.premiumDays != std::numeric_limits<uint16_t>::max()) { if (account.lastDay == 0) { account.lastDay = timeNow; save = true; } else { uint32_t days = (timeNow - account.lastDay) / 86400; if (days > 0) { if (days >= account.premiumDays) { account.premiumDays = 0; account.lastDay = 0; } else { account.premiumDays -= days; uint32_t remainder = (timeNow - account.lastDay) % 86400; account.lastDay = timeNow - remainder; } save = true; } } } else if (account.lastDay != 0) { account.lastDay = 0; save = true; } if (save && !IOLoginData::saveAccount(account)) { std::cout << "> ERROR: Failed to save account: " << account.name << "!" << std::endl; } } void Game::loadMotdNum() { Database* db = Database::getInstance(); DBResult_ptr result = db->storeQuery("SELECT `value` FROM `server_config` WHERE `config` = 'motd_num'"); if (result) { motdNum = result->getDataInt("value"); } else { db->executeQuery("INSERT INTO `server_config` (`config`, `value`) VALUES ('motd_num', '0')"); } result = db->storeQuery("SELECT `value` FROM `server_config` WHERE `config` = 'motd_hash'"); if (result) { motdHash = result->getDataString("value"); if (motdHash != transformToSHA1(g_config.getString(ConfigManager::MOTD))) { ++motdNum; } } else { db->executeQuery("INSERT INTO `server_config` (`config`, `value`) VALUES ('motd_hash', '')"); } } void Game::saveMotdNum() const { Database* db = Database::getInstance(); std::ostringstream query; query << "UPDATE `server_config` SET `value` = '" << motdNum << "' WHERE `config` = 'motd_num'"; db->executeQuery(query.str()); query.str(""); query << "UPDATE `server_config` SET `value` = '" << transformToSHA1(g_config.getString(ConfigManager::MOTD)) << "' WHERE `config` = 'motd_hash'"; db->executeQuery(query.str()); } void Game::checkPlayersRecord() { const size_t playersOnline = getPlayersOnline(); if (playersOnline > playersRecord) { uint32_t previousRecord = playersRecord; playersRecord = playersOnline; for (const auto& it : g_globalEvents->getEventMap(GLOBALEVENT_RECORD)) { it.second->executeRecord(playersRecord, previousRecord); } updatePlayersRecord(); } } void Game::updatePlayersRecord() const { Database* db = Database::getInstance(); std::ostringstream query; query << "UPDATE `server_config` SET `value` = '" << playersRecord << "' WHERE `config` = 'players_record'"; db->executeQuery(query.str()); } void Game::loadPlayersRecord() { Database* db = Database::getInstance(); DBResult_ptr result = db->storeQuery("SELECT `value` FROM `server_config` WHERE `config` = 'players_record'"); if (result) { playersRecord = result->getDataInt("value"); } else { db->executeQuery("INSERT INTO `server_config` (`config`, `value`) VALUES ('players_record', '0')"); } } uint64_t Game::getExperienceStage(uint32_t level) { if (!stagesEnabled) { return g_config.getNumber(ConfigManager::RATE_EXPERIENCE); } if (useLastStageLevel && level >= lastStageLevel) { return stages[lastStageLevel]; } return stages[level]; } bool Game::loadExperienceStages() { pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file("data/XML/stages.xml"); if (!result) { std::cout << "[Error - Game::loadExperienceStages] Failed to load data/XML/stages.xml: " << result.description() << std::endl; return false; } for (pugi::xml_node stageNode = doc.child("stages").first_child(); stageNode; stageNode = stageNode.next_sibling()) { if (strcasecmp(stageNode.name(), "config") == 0) { stagesEnabled = stageNode.attribute("enabled").as_bool(); } else { uint32_t minLevel, maxLevel, multiplier; pugi::xml_attribute minLevelAttribute = stageNode.attribute("minlevel"); if (minLevelAttribute) { minLevel = pugi::cast<uint32_t>(minLevelAttribute.value()); } else { minLevel = 1; } pugi::xml_attribute maxLevelAttribute = stageNode.attribute("maxlevel"); if (maxLevelAttribute) { maxLevel = pugi::cast<uint32_t>(maxLevelAttribute.value()); } else { maxLevel = 0; lastStageLevel = minLevel; useLastStageLevel = true; } pugi::xml_attribute multiplierAttribute = stageNode.attribute("multiplier"); if (multiplierAttribute) { multiplier = pugi::cast<uint32_t>(multiplierAttribute.value()); } else { multiplier = 1; } if (useLastStageLevel) { stages[lastStageLevel] = multiplier; } else { for (uint32_t i = minLevel; i <= maxLevel; ++i) { stages[i] = multiplier; } } } } return true; } void Game::playerInviteToParty(uint32_t playerId, uint32_t invitedId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Player* invitedPlayer = getPlayerByID(invitedId); if (!invitedPlayer || invitedPlayer->isInviting(player)) { return; } if (invitedPlayer->getParty()) { std::ostringstream ss; ss << invitedPlayer->getName() << " is already in a party."; player->sendTextMessage(MESSAGE_INFO_DESCR, ss.str()); return; } Party* party = player->getParty(); if (!party) { party = new Party(player); } else if (party->getLeader() != player) { return; } party->invitePlayer(*invitedPlayer); } void Game::playerJoinParty(uint32_t playerId, uint32_t leaderId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Player* leader = getPlayerByID(leaderId); if (!leader || !leader->isInviting(player)) { return; } Party* party = leader->getParty(); if (!party || party->getLeader() != leader) { return; } if (player->getParty()) { player->sendTextMessage(MESSAGE_INFO_DESCR, "You are already in a party."); return; } party->joinParty(*player); } void Game::playerRevokePartyInvitation(uint32_t playerId, uint32_t invitedId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Party* party = player->getParty(); if (!party || party->getLeader() != player) { return; } Player* invitedPlayer = getPlayerByID(invitedId); if (!invitedPlayer || !player->isInviting(invitedPlayer)) { return; } party->revokeInvitation(*invitedPlayer); } void Game::playerPassPartyLeadership(uint32_t playerId, uint32_t newLeaderId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Party* party = player->getParty(); if (!party || party->getLeader() != player) { return; } Player* newLeader = getPlayerByID(newLeaderId); if (!newLeader || !player->isPartner(newLeader)) { return; } party->passPartyLeadership(newLeader); } void Game::playerLeaveParty(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Party* party = player->getParty(); if (!party || player->hasCondition(CONDITION_INFIGHT)) { return; } party->leaveParty(player); } void Game::playerEnableSharedPartyExperience(uint32_t playerId, bool sharedExpActive) { Player* player = getPlayerByID(playerId); if (!player) { return; } Party* party = player->getParty(); if (!party || player->hasCondition(CONDITION_INFIGHT)) { return; } party->setSharedExperience(player, sharedExpActive); } void Game::sendGuildMotd(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } Guild* guild = player->getGuild(); if (guild) { player->sendChannelMessage("Message of the Day", guild->getMotd(), TALKTYPE_CHANNEL_R1, CHANNEL_GUILD); } } void Game::kickPlayer(uint32_t playerId, bool displayEffect) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->kickPlayer(displayEffect); } void Game::playerReportBug(uint32_t playerId, const std::string& bug) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (player->getAccountType() == ACCOUNT_TYPE_NORMAL) { return; } std::string fileName = "data/reports/" + player->getName() + " report.txt"; FILE* file = fopen(fileName.c_str(), "a"); if (file) { const Position& position = player->getPosition(); fprintf(file, "------------------------------\nName: %s [Position X: %u Y: %u Z: %u]\nBug Report: %s\n", player->getName().c_str(), position.x, position.y, position.z, bug.c_str()); fclose(file); } player->sendTextMessage(MESSAGE_EVENT_DEFAULT, "Your report has been sent to " + g_config.getString(ConfigManager::SERVER_NAME) + "."); } void Game::playerDebugAssert(uint32_t playerId, const std::string& assertLine, const std::string& date, const std::string& description, const std::string& comment) { Player* player = getPlayerByID(playerId); if (!player) { return; } // TODO: move debug assertions to database FILE* file = fopen("client_assertions.txt", "a"); if (file) { fprintf(file, "----- %s - %s (%s) -----\n", formatDate(time(nullptr)).c_str(), player->getName().c_str(), convertIPToString(player->getIP()).c_str()); fprintf(file, "%s\n%s\n%s\n%s\n", assertLine.c_str(), date.c_str(), description.c_str(), comment.c_str()); fclose(file); } } void Game::playerLeaveMarket(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } player->setInMarket(false); } void Game::playerBrowseMarket(uint32_t playerId, uint16_t spriteId) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (!player->isInMarket()) { return; } const ItemType& it = Item::items.getItemIdByClientId(spriteId); if (it.id == 0) { return; } if (it.wareId == 0) { return; } const MarketOfferList& buyOffers = IOMarket::getActiveOffers(MARKETACTION_BUY, it.id); const MarketOfferList& sellOffers = IOMarket::getActiveOffers(MARKETACTION_SELL, it.id); player->sendMarketBrowseItem(it.id, buyOffers, sellOffers); player->sendMarketDetail(it.id); } void Game::playerBrowseMarketOwnOffers(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (!player->isInMarket()) { return; } const MarketOfferList& buyOffers = IOMarket::getOwnOffers(MARKETACTION_BUY, player->getGUID()); const MarketOfferList& sellOffers = IOMarket::getOwnOffers(MARKETACTION_SELL, player->getGUID()); player->sendMarketBrowseOwnOffers(buyOffers, sellOffers); } void Game::playerBrowseMarketOwnHistory(uint32_t playerId) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (!player->isInMarket()) { return; } const HistoryMarketOfferList& buyOffers = IOMarket::getOwnHistory(MARKETACTION_BUY, player->getGUID()); const HistoryMarketOfferList& sellOffers = IOMarket::getOwnHistory(MARKETACTION_SELL, player->getGUID()); player->sendMarketBrowseOwnHistory(buyOffers, sellOffers); } void Game::playerCreateMarketOffer(uint32_t playerId, uint8_t type, uint16_t spriteId, uint16_t amount, uint32_t price, bool anonymous) { if (amount == 0 || amount > 64000) { return; } if (price == 0 || price > 999999999) { return; } if (type != MARKETACTION_BUY && type != MARKETACTION_SELL) { return; } Player* player = getPlayerByID(playerId); if (!player) { return; } if (!player->isInMarket()) { return; } if (g_config.getBoolean(ConfigManager::MARKET_PREMIUM) && !player->isPremium()) { player->sendMarketLeave(); return; } const ItemType& itt = Item::items.getItemIdByClientId(spriteId); if (itt.id == 0 || itt.wareId == 0) { return; } const ItemType& it = Item::items.getItemIdByClientId(itt.wareId); if (it.id == 0 || it.wareId == 0) { return; } if (!it.stackable && amount > 2000) { return; } const int32_t maxOfferCount = g_config.getNumber(ConfigManager::MAX_MARKET_OFFERS_AT_A_TIME_PER_PLAYER); if (maxOfferCount > 0) { const int32_t offerCount = IOMarket::getPlayerOfferCount(player->getGUID()); if (offerCount == -1 || offerCount >= maxOfferCount) { return; } } uint64_t fee = (price / 100.) * amount; if (fee < 20) { fee = 20; } else if (fee > 1000) { fee = 1000; } if (type == MARKETACTION_SELL) { if (fee > player->bankBalance) { return; } DepotChest* depotChest = player->getDepotChest(player->getLastDepotId(), false); if (!depotChest) { return; } ItemList itemList; uint32_t count = 0; std::vector<Container*> containers {depotChest, player->getInbox()}; bool enough = false; size_t i = 0; do { Container* container = containers[i++]; for (Item* item : container->getItemList()) { Container* c = item->getContainer(); if (c && !c->empty()) { containers.push_back(c); continue; } const ItemType& itemType = Item::items[item->getID()]; if (itemType.wareId != it.wareId) { continue; } if (item->hasAttributes()) { bool badAttribute = false; ItemAttributes* attributes = item->getAttributes(); for (const auto& attr : attributes->getList()) { if (attr.type == ITEM_ATTRIBUTE_CHARGES) { uint16_t charges = static_cast<uint16_t>(0xFFFF & reinterpret_cast<ptrdiff_t>(attr.value)); if (charges != itemType.charges) { badAttribute = true; break; } } else if (attr.type == ITEM_ATTRIBUTE_DURATION) { uint32_t duration = static_cast<uint32_t>(0xFFFFFFFF & reinterpret_cast<ptrdiff_t>(attr.value)); if (duration != itemType.decayTime) { badAttribute = true; break; } } else { badAttribute = true; break; } } if (badAttribute) { continue; } } itemList.push_back(item); count += Item::countByType(item, -1); if (count >= amount) { enough = true; break; } } if (enough) { break; } } while (i < containers.size()); if (!enough) { return; } if (it.stackable) { uint16_t tmpAmount = amount; for (Item* item : itemList) { uint16_t removeCount = std::min<uint16_t>(tmpAmount, item->getItemCount()); tmpAmount -= removeCount; internalRemoveItem(item, removeCount); if (tmpAmount == 0) { break; } } } else { for (Item* item : itemList) { internalRemoveItem(item); } } player->bankBalance -= fee; } else { uint64_t totalPrice = (uint64_t)price * amount; totalPrice += fee; if (totalPrice > player->bankBalance) { return; } player->bankBalance -= totalPrice; } IOMarket::createOffer(player->getGUID(), (MarketAction_t)type, it.id, amount, price, anonymous); player->sendMarketEnter(player->getLastDepotId()); const MarketOfferList& buyOffers = IOMarket::getActiveOffers(MARKETACTION_BUY, it.id); const MarketOfferList& sellOffers = IOMarket::getActiveOffers(MARKETACTION_SELL, it.id); player->sendMarketBrowseItem(it.id, buyOffers, sellOffers); } void Game::playerCancelMarketOffer(uint32_t playerId, uint32_t timestamp, uint16_t counter) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (!player->isInMarket()) { return; } MarketOfferEx offer = IOMarket::getOfferByCounter(timestamp, counter); if (offer.id == 0 || offer.playerId != player->getGUID()) { return; } if (offer.type == MARKETACTION_BUY) { player->bankBalance += (uint64_t)offer.price * offer.amount; player->sendMarketEnter(player->getLastDepotId()); } else { const ItemType& it = Item::items[offer.itemId]; if (it.id == 0) { return; } if (it.stackable) { uint16_t tmpAmount = offer.amount; while (tmpAmount > 0) { int32_t stackCount = std::min<int32_t>(100, tmpAmount); Item* item = Item::CreateItem(it.id, stackCount); if (internalAddItem(player->getInbox(), item, INDEX_WHEREEVER, FLAG_NOLIMIT) != RET_NOERROR) { delete item; break; } tmpAmount -= stackCount; } } else { int32_t subType; if (it.charges != 0) { subType = it.charges; } else { subType = -1; } for (uint16_t i = 0; i < offer.amount; ++i) { Item* item = Item::CreateItem(it.id, subType); if (internalAddItem(player->getInbox(), item, INDEX_WHEREEVER, FLAG_NOLIMIT) != RET_NOERROR) { delete item; break; } } } } IOMarket::moveOfferToHistory(offer.id, OFFERSTATE_CANCELLED); offer.amount = 0; offer.timestamp += g_config.getNumber(ConfigManager::MARKET_OFFER_DURATION); player->sendMarketCancelOffer(offer); } void Game::playerAcceptMarketOffer(uint32_t playerId, uint32_t timestamp, uint16_t counter, uint16_t amount) { if (amount == 0 || amount > 64000) { return; } Player* player = getPlayerByID(playerId); if (!player) { return; } if (!player->isInMarket()) { return; } MarketOfferEx offer = IOMarket::getOfferByCounter(timestamp, counter); if (offer.id == 0) { return; } if (amount > offer.amount) { return; } const ItemType& it = Item::items[offer.itemId]; if (it.id == 0) { return; } uint64_t totalPrice = (uint64_t)offer.price * amount; if (offer.type == MARKETACTION_BUY) { DepotChest* depotChest = player->getDepotChest(player->getLastDepotId(), false); if (!depotChest) { return; } ItemList itemList; uint32_t count = 0; std::vector<Container*> containers {depotChest, player->getInbox()}; bool enough = false; size_t i = 0; do { Container* container = containers[i++]; for (Item* item : container->getItemList()) { Container* c = item->getContainer(); if (c && !c->empty()) { containers.push_back(c); continue; } const ItemType& itemType = Item::items[item->getID()]; if (itemType.wareId != it.wareId) { continue; } if (item->hasAttributes()) { bool badAttribute = false; ItemAttributes* attributes = item->getAttributes(); for (const auto& attr : attributes->getList()) { if (attr.type == ITEM_ATTRIBUTE_CHARGES) { uint16_t charges = static_cast<uint16_t>(0xFFFF & reinterpret_cast<ptrdiff_t>(attr.value)); if (charges != itemType.charges) { badAttribute = true; break; } } else if (attr.type == ITEM_ATTRIBUTE_DURATION) { uint32_t duration = static_cast<uint32_t>(0xFFFFFFFF & reinterpret_cast<ptrdiff_t>(attr.value)); if (duration != itemType.decayTime) { badAttribute = true; break; } } else { badAttribute = true; break; } } if (badAttribute) { continue; } } itemList.push_back(item); count += Item::countByType(item, -1); if (count >= amount) { enough = true; break; } } if (enough) { break; } } while (i < containers.size()); if (!enough) { return; } Player* buyerPlayer = getPlayerByGUID(offer.playerId); if (!buyerPlayer) { buyerPlayer = new Player(nullptr); if (!IOLoginData::loadPlayerById(buyerPlayer, offer.playerId)) { delete buyerPlayer; return; } } if (it.stackable) { uint16_t tmpAmount = amount; for (Item* item : itemList) { uint16_t removeCount = std::min<uint16_t>(tmpAmount, item->getItemCount()); tmpAmount -= removeCount; internalRemoveItem(item, removeCount); if (tmpAmount == 0) { break; } } } else { for (Item* item : itemList) { internalRemoveItem(item); } } player->bankBalance += totalPrice; if (it.stackable) { uint16_t tmpAmount = amount; while (tmpAmount > 0) { uint16_t stackCount = std::min<uint16_t>(100, tmpAmount); Item* item = Item::CreateItem(it.id, stackCount); if (internalAddItem(buyerPlayer->getInbox(), item, INDEX_WHEREEVER, FLAG_NOLIMIT) != RET_NOERROR) { delete item; break; } tmpAmount -= stackCount; } } else { int32_t subType; if (it.charges != 0) { subType = it.charges; } else { subType = -1; } for (uint16_t i = 0; i < amount; ++i) { Item* item = Item::CreateItem(it.id, subType); if (internalAddItem(buyerPlayer->getInbox(), item, INDEX_WHEREEVER, FLAG_NOLIMIT) != RET_NOERROR) { delete item; break; } } } if (buyerPlayer->isOffline()) { IOLoginData::savePlayer(buyerPlayer); delete buyerPlayer; } else { buyerPlayer->onReceiveMail(); } } else { if (totalPrice > player->bankBalance) { return; } player->bankBalance -= totalPrice; if (it.stackable) { uint16_t tmpAmount = amount; while (tmpAmount > 0) { uint16_t stackCount = std::min<uint16_t>(100, tmpAmount); Item* item = Item::CreateItem(it.id, stackCount); if (internalAddItem(player->getInbox(), item, INDEX_WHEREEVER, FLAG_NOLIMIT) != RET_NOERROR) { delete item; break; } tmpAmount -= stackCount; } } else { int32_t subType; if (it.charges != 0) { subType = it.charges; } else { subType = -1; } for (uint16_t i = 0; i < amount; ++i) { Item* item = Item::CreateItem(it.id, subType); if (internalAddItem(player->getInbox(), item, INDEX_WHEREEVER, FLAG_NOLIMIT) != RET_NOERROR) { delete item; break; } } } Player* sellerPlayer = getPlayerByGUID(offer.playerId); if (sellerPlayer) { sellerPlayer->bankBalance += totalPrice; } else { IOLoginData::increaseBankBalance(offer.playerId, totalPrice); } player->onReceiveMail(); } const int32_t marketOfferDuration = g_config.getNumber(ConfigManager::MARKET_OFFER_DURATION); IOMarket::appendHistory(player->getGUID(), (offer.type == MARKETACTION_BUY ? MARKETACTION_SELL : MARKETACTION_BUY), offer.itemId, amount, offer.price, offer.timestamp + marketOfferDuration, OFFERSTATE_ACCEPTEDEX); IOMarket::appendHistory(offer.playerId, offer.type, offer.itemId, amount, offer.price, offer.timestamp + marketOfferDuration, OFFERSTATE_ACCEPTED); offer.amount -= amount; if (offer.amount == 0) { IOMarket::deleteOffer(offer.id); } else { IOMarket::acceptOffer(offer.id, amount); } player->sendMarketEnter(player->getLastDepotId()); offer.timestamp += marketOfferDuration; player->sendMarketAcceptOffer(offer); } void Game::checkExpiredMarketOffers() { const ExpiredMarketOfferList& expiredBuyOffers = IOMarket::getExpiredOffers(MARKETACTION_BUY); for (const ExpiredMarketOffer& offer : expiredBuyOffers) { uint64_t totalPrice = (uint64_t)offer.price * offer.amount; Player* player = getPlayerByGUID(offer.playerId); if (player) { player->bankBalance += totalPrice; } else { IOLoginData::increaseBankBalance(offer.playerId, totalPrice); } IOMarket::moveOfferToHistory(offer.id, OFFERSTATE_EXPIRED); } const ExpiredMarketOfferList& expiredSellOffers = IOMarket::getExpiredOffers(MARKETACTION_SELL); for (const ExpiredMarketOffer& offer : expiredSellOffers) { Player* player = getPlayerByGUID(offer.playerId); if (!player) { player = new Player(nullptr); if (!IOLoginData::loadPlayerById(player, offer.playerId)) { delete player; continue; } } const ItemType& itemType = Item::items[offer.itemId]; if (itemType.id == 0) { continue; } if (itemType.stackable) { uint16_t tmpAmount = offer.amount; while (tmpAmount > 0) { uint16_t stackCount = std::min<uint16_t>(100, tmpAmount); Item* item = Item::CreateItem(itemType.id, stackCount); if (internalAddItem(player->getInbox(), item, INDEX_WHEREEVER, FLAG_NOLIMIT) != RET_NOERROR) { delete item; break; } tmpAmount -= stackCount; } } else { int32_t subType; if (itemType.charges != 0) { subType = itemType.charges; } else { subType = -1; } for (uint16_t i = 0; i < offer.amount; ++i) { Item* item = Item::CreateItem(itemType.id, subType); if (internalAddItem(player->getInbox(), item, INDEX_WHEREEVER, FLAG_NOLIMIT) != RET_NOERROR) { delete item; break; } } } if (player->isOffline()) { IOLoginData::savePlayer(player); delete player; } IOMarket::moveOfferToHistory(offer.id, OFFERSTATE_EXPIRED); } int32_t checkExpiredMarketOffersEachMinutes = g_config.getNumber(ConfigManager::CHECK_EXPIRED_MARKET_OFFERS_EACH_MINUTES); if (checkExpiredMarketOffersEachMinutes <= 0) { return; } g_scheduler.addEvent(createSchedulerTask(checkExpiredMarketOffersEachMinutes * 60 * 1000, std::bind(&Game::checkExpiredMarketOffers, this))); } void Game::parsePlayerExtendedOpcode(uint32_t playerId, uint8_t opcode, const std::string& buffer) { Player* player = getPlayerByID(playerId); if (!player) { return; } g_events->eventPlayerOnExtendedOpcode(player, opcode, buffer); } void Game::forceAddCondition(uint32_t creatureId, Condition* condition) { Creature* creature = getCreatureByID(creatureId); if (!creature) { delete condition; return; } creature->addCondition(condition, true); } void Game::forceRemoveCondition(uint32_t creatureId, ConditionType_t type) { Creature* creature = getCreatureByID(creatureId); if (!creature) { return; } creature->removeCondition(type, true); } void Game::sendOfflineTrainingDialog(Player* player) { if (!player) { return; } if (!player->hasModalWindowOpen(offlineTrainingWindow.id)) { player->sendModalWindow(offlineTrainingWindow); } } void Game::playerAnswerModalWindow(uint32_t playerId, uint32_t modalWindowId, uint8_t button, uint8_t choice) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (!player->hasModalWindowOpen(modalWindowId)) { return; } player->onModalWindowHandled(modalWindowId); // offline training, hardcoded if (modalWindowId == std::numeric_limits<uint32_t>::max()) { if (button == 1) { if (choice == SKILL_SWORD || choice == SKILL_AXE || choice == SKILL_CLUB || choice == SKILL_DISTANCE || choice == SKILL_MAGLEVEL) { BedItem* bedItem = player->getBedItem(); if (bedItem && bedItem->sleep(player)) { player->setOfflineTrainingSkill(choice); return; } } } else { player->sendTextMessage(MESSAGE_EVENT_ADVANCE, "Offline training aborted."); } player->setBedItem(nullptr); } else { g_events->eventPlayerOnModalWindow(player, modalWindowId, button, choice); } } void Game::addPlayer(Player* player) { const std::string& lowercase_name = asLowerCaseString(player->getName()); mappedPlayerNames[lowercase_name] = player; wildcardTree.insert(lowercase_name); players[player->getID()] = player; } void Game::removePlayer(Player* player) { const std::string& lowercase_name = asLowerCaseString(player->getName()); mappedPlayerNames.erase(lowercase_name); wildcardTree.remove(lowercase_name); players.erase(player->getID()); } void Game::addNpc(Npc* npc) { npcs[npc->getID()] = npc; } void Game::removeNpc(Npc* npc) { npcs.erase(npc->getID()); } void Game::addMonster(Monster* monster) { monsters[monster->getID()] = monster; } void Game::removeMonster(Monster* monster) { monsters.erase(monster->getID()); } Guild* Game::getGuild(uint32_t id) const { auto it = guilds.find(id); if (it == guilds.end()) { return nullptr; } return it->second; } void Game::addGuild(Guild* guild) { guilds[guild->getId()] = guild; } void Game::decreaseBrowseFieldRef(const Position& pos) { Tile* tile = getTile(pos); if (!tile) { return; } auto it = browseFields.find(tile); if (it != browseFields.end()) { it->second->releaseThing2(); } } Group* Game::getGroup(uint32_t id) { return groups.getGroup(id); } void Game::internalRemoveItems(std::vector<Item*> itemList, uint32_t amount, bool stackable) { if (stackable) { for (Item* item : itemList) { if (item->getItemCount() > amount) { internalRemoveItem(item, amount); break; } else { amount -= item->getItemCount(); internalRemoveItem(item); } } } else { for (Item* item : itemList) { internalRemoveItem(item); } } } BedItem* Game::getBedBySleeper(uint32_t guid) const { auto it = bedSleepersMap.find(guid); if (it == bedSleepersMap.end()) { return nullptr; } return it->second; } void Game::setBedSleeper(BedItem* bed, uint32_t guid) { bedSleepersMap[guid] = bed; } void Game::removeBedSleeper(uint32_t guid) { auto it = bedSleepersMap.find(guid); if (it != bedSleepersMap.end()) { bedSleepersMap.erase(it); } }
EvilHero90/OTChronos
src/game.cpp
C++
gpl-2.0
154,982
[ 30522, 1013, 1008, 1008, 1008, 1996, 6404, 8241, 1011, 1037, 2489, 1998, 2330, 1011, 3120, 3461, 2953, 26952, 8241, 7861, 20350, 1008, 9385, 1006, 1039, 1007, 2297, 2928, 3520, 2386, 1026, 2928, 1012, 3520, 2386, 1030, 20917, 4014, 1012, 4012, 1028, 1008, 1008, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1008, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1008, 1996, 2489, 4007, 3192, 1025, 2593, 2544, 1016, 1997, 1996, 6105, 1010, 2030, 1008, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1008, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 2247, 1008, 2007, 2023, 2565, 1025, 2065, 2025, 1010, 4339, 2000, 1996, 2489, 4007, 3192, 1010, 4297, 1012, 1010, 1008, 4868, 5951, 2395, 1010, 3587, 2723, 1010, 3731, 1010, 5003, 6185, 14526, 2692, 1011, 7558, 2487, 3915, 1012, 1008, 1013, 1001, 2421, 1000, 27178, 15042, 2232, 1012, 1044, 1000, 1001, 2421, 1000, 16405, 12863, 14083, 1012, 1044, 1000, 1001, 2421, 1000, 5167, 1012, 1044, 1000, 1001, 2421, 1000, 10954, 1012, 1044, 1000, 1001, 2421, 1000, 6492, 1012, 1044, 1000, 1001, 2421, 1000, 6071, 1012, 1044, 1000, 1001, 2421, 1000, 2208, 1012, 1044, 1000, 1001, 2421, 1000, 14090, 1012, 1044, 1000, 1001, 2421, 1000, 2160, 1012, 1044, 1000, 1001, 2421, 1000, 4506, 1012, 1044, 1000, 1001, 2421, 1000, 4337, 1012, 1044, 1000, 1001, 2421, 1000, 22834, 21197, 23938, 2696, 1012, 1044, 1000, 1001, 2421, 1000, 22834, 20285, 1012, 1044, 1000, 1001, 2421, 1000, 11834, 1012, 1044, 1000, 1001, 2421, 1000, 2831, 18908, 3258, 1012, 1044, 1000, 1001, 2421, 1000, 11750, 1012, 1044, 1000, 1001, 2421, 1000, 9530, 8873, 25494, 17325, 1012, 1044, 1000, 1001, 2421, 1000, 7221, 1012, 1044, 1000, 1001, 2421, 1000, 11217, 1012, 1044, 1000, 1001, 2421, 1000, 7809, 1012, 1044, 1000, 1001, 2421, 1000, 8241, 1012, 1044, 1000, 1001, 2421, 1000, 22834, 25698, 6392, 1012, 1044, 1000, 1001, 2421, 1000, 8795, 2015, 1012, 1044, 1000, 1001, 2421, 1000, 3795, 18697, 3372, 1012, 1044, 1000, 1001, 2421, 1000, 19363, 1012, 1044, 1000, 1001, 2421, 1000, 2793, 1012, 1044, 1000, 1001, 2421, 1000, 6134, 2099, 1012, 1044, 1000, 1001, 2421, 1000, 6071, 1012, 1044, 1000, 1001, 2421, 1000, 25645, 1012, 1044, 1000, 1001, 2421, 30524, 1008, 1043, 1035, 2831, 18908, 8496, 1025, 4654, 16451, 11750, 1008, 1043, 1035, 11750, 1025, 4654, 16451, 29536, 10719, 2015, 1043, 1035, 29536, 10719, 2015, 1025, 4654, 16451, 30523, 1000, 4434, 1012, 1044, 1000, 1001, 2421, 1000, 2824, 1012, 1044, 1000, 4654, 16451, 9530, 8873, 25494, 17325, 1043, 1035, 9530, 8873, 2290, 1025, 4654, 16451, 4506, 1008, 1043, 1035, 4506, 1025, 4654, 16451, 11834, 1043, 1035, 11834, 1025, 4654, 16451, 2831, 18908, 8496, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1000, 4434, 1012, 1044, 1000, 1001, 2421, 1000, 2824, 1012, 1044, 1000, 4654, 16451, 9530, 8873, 25494, 17325, 1043, 1035, 9530, 8873, 2290, 1025, 4654, 16451, 4506, 1008, 1043, 1035, 4506, 1025, 4654, 16451, 11834, 1043, 1035, 11834, 1025, 4654, 16451, 2831, 18908, 8496, 30526 ]
An unofficial branch for making rotation work in rc1. Developed by @hyperknot and @fnicollet. Based on @IvanSanchez's [rotate work](https://github.com/Leaflet/Leaflet/tree/rotate) for pre-1.0. Here is a squash from all commits of that branch: https://github.com/hyperknot/Leaflet/commit/0448ffd8f28730ff3c59822351d4a04f54a3972f Philosophy: 1. Porting the core features, one by one 2. Making sure everything works and as performant as possible before adding new features. Known issues: - No support for `zoomAnimation: false` for popups
brah/Leaflet
README.md
Markdown
bsd-2-clause
555
[ 30522, 2019, 11982, 3589, 2005, 2437, 9963, 2147, 1999, 22110, 2487, 1012, 2764, 2011, 1030, 23760, 2243, 17048, 1998, 1030, 1042, 8713, 14511, 3388, 1012, 2241, 2006, 1030, 7332, 8791, 5403, 2480, 1005, 1055, 1031, 24357, 2147, 1033, 1006, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 7053, 7485, 1013, 7053, 7485, 1013, 3392, 1013, 24357, 1007, 2005, 3653, 1011, 1015, 1012, 1014, 1012, 2182, 2003, 1037, 18794, 2013, 2035, 27791, 1997, 2008, 3589, 1024, 16770, 1024, 30524, 2620, 19317, 19481, 2487, 2094, 2549, 2050, 2692, 2549, 2546, 27009, 2050, 23499, 2581, 2475, 2546, 4695, 1024, 1015, 1012, 3417, 2075, 1996, 4563, 2838, 1010, 2028, 2011, 2028, 1016, 1012, 2437, 2469, 2673, 2573, 1998, 2004, 4685, 4630, 2004, 2825, 2077, 5815, 2047, 2838, 1012, 2124, 3314, 1024, 1011, 2053, 2490, 2005, 1036, 24095, 7088, 28649, 1024, 6270, 1036, 2005, 3769, 22264, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 23760, 2243, 17048, 1013, 7053, 7485, 1013, 10797, 1013, 5840, 18139, 4246, 2094, 2620, 2546, 22407, 2581, 14142, 4246, 2509, 2278, 28154, 30526 ]
package com.autowp.canreader; import android.content.Context; import android.hardware.usb.UsbDevice; import android.os.Build; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import java.util.List; /** * Created by autow on 13.02.2016. */ public class UsbDeviceSpinnerAdapter extends ArrayAdapter<UsbDevice> { public UsbDeviceSpinnerAdapter(Context context, int resource, List<UsbDevice> objects) { super(context, resource, objects); } @Override public View getDropDownView(int position, View convertView, ViewGroup parent) { return getCustomView(position, convertView, parent); } @Override public View getView(int position, View convertView, ViewGroup parent) { return getCustomView(position, convertView, parent); } public View getCustomView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater vi; vi = LayoutInflater.from(getContext()); v = vi.inflate(R.layout.usbdevice_spinner_item, null); } UsbDevice device = getItem(position); if (device != null) { TextView tvProductName = (TextView)v.findViewById(R.id.textViewProductName); TextView tvDeviceInto = (TextView)v.findViewById(R.id.textViewDeviceInfo); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { tvProductName.setText(device.getProductName()); String deviceInfo = String.format( "%s %04X/%04X, %s", device.getManufacturerName(), device.getVendorId(), device.getProductId(), device.getDeviceName() ); tvDeviceInto.setText(deviceInfo); } else { tvProductName.setText(device.getDeviceName()); String deviceInfo = String.format( "%04X/%04X", device.getVendorId(), device.getProductId() ); tvDeviceInto.setText(deviceInfo); } } return v; } }
autowp/CANreader
app/src/main/java/com/autowp/canreader/UsbDeviceSpinnerAdapter.java
Java
gpl-3.0
2,360
[ 30522, 7427, 4012, 1012, 8285, 2860, 2361, 1012, 2064, 16416, 4063, 1025, 12324, 11924, 1012, 4180, 1012, 6123, 1025, 12324, 11924, 1012, 8051, 1012, 18833, 1012, 18833, 24844, 6610, 1025, 12324, 11924, 1012, 9808, 1012, 3857, 1025, 12324, 11924, 1012, 3193, 1012, 9621, 2378, 10258, 24932, 1025, 12324, 11924, 1012, 3193, 1012, 3193, 1025, 12324, 11924, 1012, 3193, 1012, 3193, 17058, 1025, 12324, 11924, 1012, 15536, 24291, 1012, 9140, 8447, 13876, 2121, 1025, 12324, 11924, 1012, 15536, 24291, 1012, 3793, 8584, 1025, 30524, 1008, 2580, 2011, 8285, 2860, 2006, 2410, 1012, 6185, 1012, 2355, 1012, 1008, 1013, 2270, 2465, 18833, 24844, 23522, 8091, 3678, 8447, 13876, 2121, 8908, 9140, 8447, 13876, 2121, 1026, 18833, 24844, 6610, 1028, 1063, 2270, 18833, 24844, 23522, 8091, 3678, 8447, 13876, 2121, 1006, 6123, 6123, 1010, 20014, 7692, 1010, 2862, 1026, 18833, 24844, 6610, 1028, 5200, 1007, 1063, 3565, 1006, 6123, 1010, 7692, 1010, 5200, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 3193, 2131, 25711, 7698, 8584, 1006, 20014, 2597, 1010, 3193, 10463, 8584, 1010, 3193, 17058, 6687, 1007, 1063, 2709, 2131, 7874, 20389, 8584, 1006, 2597, 1010, 10463, 8584, 1010, 6687, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 3193, 2131, 8584, 1006, 20014, 2597, 1010, 3193, 10463, 8584, 1010, 3193, 17058, 6687, 1007, 1063, 2709, 2131, 7874, 20389, 8584, 1006, 2597, 1010, 10463, 8584, 1010, 6687, 1007, 1025, 1065, 2270, 3193, 2131, 7874, 20389, 8584, 1006, 20014, 2597, 1010, 3193, 10463, 8584, 1010, 3193, 17058, 6687, 1007, 1063, 3193, 1058, 1027, 10463, 8584, 1025, 2065, 1006, 1058, 1027, 1027, 19701, 1007, 1063, 9621, 2378, 10258, 24932, 6819, 1025, 6819, 1027, 9621, 2378, 10258, 24932, 1012, 2013, 1006, 2131, 8663, 18209, 1006, 1007, 1007, 1025, 1058, 1027, 6819, 1012, 1999, 10258, 3686, 1006, 1054, 1012, 9621, 1012, 18833, 24844, 6610, 1035, 6714, 3678, 1035, 8875, 1010, 19701, 1007, 1025, 1065, 18833, 24844, 6610, 5080, 1027, 2131, 4221, 2213, 1006, 2597, 1007, 1025, 2065, 1006, 5080, 999, 1027, 19701, 1007, 1063, 3793, 8584, 2694, 21572, 8566, 6593, 18442, 1027, 1006, 3793, 8584, 1007, 1058, 1012, 2424, 8584, 3762, 3593, 1006, 1054, 1012, 8909, 1012, 3793, 8584, 21572, 8566, 6593, 18442, 1007, 1025, 3793, 8584, 2694, 24844, 6610, 18447, 2080, 1027, 1006, 3793, 8584, 1007, 1058, 1012, 2424, 8584, 3762, 3593, 1006, 1054, 1012, 8909, 1012, 3793, 8584, 24844, 6610, 2378, 14876, 1007, 1025, 2065, 1006, 3857, 1012, 2544, 1012, 17371, 2243, 1035, 20014, 1028, 1027, 3857, 1012, 2544, 1035, 9537, 1012, 8840, 6894, 16340, 1007, 1063, 2694, 21572, 8566, 6593, 18442, 1012, 2275, 18209, 1006, 5080, 1012, 2131, 21572, 8566, 6593, 18442, 1006, 1007, 1007, 1025, 5164, 5080, 2378, 14876, 1027, 5164, 1012, 4289, 1006, 1000, 1003, 1055, 1003, 5840, 2595, 1013, 1003, 5840, 2595, 1010, 1003, 1055, 1000, 1010, 5080, 1012, 2131, 2386, 16093, 18908, 27595, 18442, 1006, 1007, 1010, 5080, 1012, 2131, 8159, 7983, 3593, 1006, 1007, 1010, 5080, 1012, 2131, 21572, 8566, 6593, 3593, 1006, 1007, 1010, 5080, 1012, 2131, 24844, 6610, 30523, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 1013, 1008, 1008, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 1013, 1008, 1008, 30526 ]
//############################################################################# //# # //# Copyright (C) <2015> <IMS MAXIMS> # //# # //# 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/>. # //# # //# IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of # //# this program. Users of this software do so entirely at their own risk. # //# IMS MAXIMS only ensures the Clinical Safety of unaltered run-time # //# software that it builds, deploys and maintains. # //# # //############################################################################# //#EOH // This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814) // Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved. // WARNING: DO NOT MODIFY the content of this file package ims.oncology.vo.lookups; import ims.framework.cn.data.TreeNode; import java.util.ArrayList; import ims.framework.utils.Image; import ims.framework.utils.Color; public class GradeofDifferentation extends ims.vo.LookupInstVo implements TreeNode { private static final long serialVersionUID = 1L; public GradeofDifferentation() { super(); } public GradeofDifferentation(int id) { super(id, "", true); } public GradeofDifferentation(int id, String text, boolean active) { super(id, text, active, null, null, null); } public GradeofDifferentation(int id, String text, boolean active, GradeofDifferentation parent, Image image) { super(id, text, active, parent, image); } public GradeofDifferentation(int id, String text, boolean active, GradeofDifferentation parent, Image image, Color color) { super(id, text, active, parent, image, color); } public GradeofDifferentation(int id, String text, boolean active, GradeofDifferentation parent, Image image, Color color, int order) { super(id, text, active, parent, image, color, order); } public static GradeofDifferentation buildLookup(ims.vo.LookupInstanceBean bean) { return new GradeofDifferentation(bean.getId(), bean.getText(), bean.isActive()); } public String toString() { if(getText() != null) return getText(); return ""; } public TreeNode getParentNode() { return (GradeofDifferentation)super.getParentInstance(); } public GradeofDifferentation getParent() { return (GradeofDifferentation)super.getParentInstance(); } public void setParent(GradeofDifferentation parent) { super.setParentInstance(parent); } public TreeNode[] getChildren() { ArrayList children = super.getChildInstances(); GradeofDifferentation[] typedChildren = new GradeofDifferentation[children.size()]; for (int i = 0; i < children.size(); i++) { typedChildren[i] = (GradeofDifferentation)children.get(i); } return typedChildren; } public int addChild(TreeNode child) { if (child instanceof GradeofDifferentation) { super.addChild((GradeofDifferentation)child); } return super.getChildInstances().size(); } public int removeChild(TreeNode child) { if (child instanceof GradeofDifferentation) { super.removeChild((GradeofDifferentation)child); } return super.getChildInstances().size(); } public Image getExpandedImage() { return super.getImage(); } public Image getCollapsedImage() { return super.getImage(); } public static ims.framework.IItemCollection getNegativeInstancesAsIItemCollection() { GradeofDifferentationCollection result = new GradeofDifferentationCollection(); return result; } public static GradeofDifferentation[] getNegativeInstances() { return new GradeofDifferentation[] {}; } public static String[] getNegativeInstanceNames() { return new String[] {}; } public static GradeofDifferentation getNegativeInstance(String name) { if(name == null) return null; // No negative instances found return null; } public static GradeofDifferentation getNegativeInstance(Integer id) { if(id == null) return null; // No negative instances found return null; } public int getTypeId() { return TYPE_ID; } public static final int TYPE_ID = 1251032; }
FreudianNM/openMAXIMS
Source Library/openmaxims_workspace/ValueObjects/src/ims/oncology/vo/lookups/GradeofDifferentation.java
Java
agpl-3.0
5,476
[ 30522, 1013, 1013, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 9385, 1006, 1039, 1007, 1026, 2325, 1028, 1026, 10047, 2015, 20446, 2015, 1028, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 2023, 2565, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1001, 1013, 1013, 1001, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 21358, 7512, 2080, 2236, 2270, 6105, 2004, 1001, 1013, 1013, 1001, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 1001, 1013, 1013, 1001, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1001, 1013, 1013, 1001, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1001, 1013, 1013, 1001, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1001, 1013, 1013, 1001, 27004, 21358, 7512, 2080, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 21358, 7512, 2080, 2236, 2270, 6105, 1001, 1013, 1013, 1001, 2247, 2007, 2023, 2565, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 30524, 2023, 4007, 2079, 2061, 4498, 2012, 2037, 2219, 3891, 1012, 1001, 1013, 1013, 1001, 10047, 2015, 20446, 2015, 2069, 21312, 1996, 6612, 3808, 1997, 14477, 21928, 2098, 2448, 1011, 2051, 1001, 1013, 1013, 1001, 4007, 2008, 2009, 16473, 1010, 21296, 2015, 1998, 9319, 1012, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1013, 1013, 1001, 1041, 11631, 1013, 1013, 2023, 3642, 2001, 7013, 2011, 6437, 24185, 20941, 2478, 10047, 2015, 2458, 4044, 1006, 2544, 1015, 1012, 3770, 3857, 4583, 2620, 2683, 1012, 24398, 16932, 1007, 1013, 1013, 9385, 1006, 1039, 1007, 2786, 1011, 2325, 10047, 2015, 30523, 1013, 15943, 1013, 1028, 1012, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 10047, 2015, 20446, 2015, 3640, 7078, 2053, 11302, 1997, 1996, 6612, 7842, 6199, 3240, 1997, 1001, 1013, 1013, 1001, 2023, 2565, 1012, 5198, 1997, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 15943, 1013, 1028, 1012, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 10047, 2015, 20446, 2015, 3640, 7078, 2053, 11302, 1997, 1996, 6612, 7842, 6199, 3240, 1997, 1001, 1013, 1013, 1001, 2023, 2565, 1012, 5198, 1997, 30526 ]
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </meta> <meta content="width=device-width, initial-scale=1" name="viewport"> </meta> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> </link> <link href="../../resources/stof-style.css" rel="stylesheet"> </link> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"> </script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"> </script> <script src="../../resources/search.js"> </script> <script src="../../resources/analytics.js"> </script> </head> <body> <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button aria-expanded="false" class="navbar-toggle collapsed" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"> <span class="sr-only"> Toggle navigation </span> <span class="icon-bar"> </span> <span class="icon-bar"> </span> <span class="icon-bar"> </span> </button> <a class="navbar-brand" href="../../index.html"> Bob Dylan Lyrics </a> </div> <div aria-expanded="false" class="navbar-collapse collapse" id="bs-example-navbar-collapse-1" style="height: 1px"> <ul class="nav navbar-nav"> <li> <a href="../../full_lyrics_file_dumps/downloads.html"> Downloads </a> </li> <li> <a href="../../songs/song_index/song_index.html"> All Songs </a> </li> <li> <a href="../../albums/album_index/album_index.html"> All Albums </a> </li> <li class="dropdown"> <a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button"> 1960s <span class="caret"> </span> </a> <ul class="dropdown-menu"> <li> <a class="album" href="../../albums/bob_dylan.html"> Bob Dylan (1962) </a> </li> <li> <a class="album" href="../../albums/the_freewheelin_bob_dylan.html"> The Freewheelin' Bob Dylan (1963) </a> </li> <li> <a class="album" href="../../albums/the_times_they_are_a-changin.html"> The Times They Are A-Changin' (1964) </a> </li> <li> <a class="album" href="../../albums/another_side_of_bob_dylan.html"> Another Side of Bob Dylan (1964) </a> </li> <li> <a class="album" href="../../albums/bringing_it_all_back_home.html"> Bringing It All Back Home (1965) </a> </li> <li> <a class="album" href="../../albums/highway_61_revisited.html"> Highway 61 Revisited (1965) </a> </li> <li> <a class="album" href="../../albums/blonde_on_blonde.html"> Blonde on Blonde (1966)) </a> </li> <li> <a class="album" href="../../albums/bob_dylans_greatest_hits.html"> Bob Dylan's Greatest Hits (1967) </a> </li> <li> <a class="album" href="../../albums/john_wesley_harding.html"> John Wesley Harding (1967) </a> </li> <li> <a class="album" href="../../albums/nashville_skyline.html"> Nashville Skyline (1969) </a> </li> </ul> </li> <li class="dropdown"> <a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button"> 1970s <span class="caret"> </span> </a> <ul class="dropdown-menu"> <li> <a class="album" href="../../albums/self_portrait.html"> Self Portrait (1970) </a> </li> <li> <a class="album" href="../../albums/new_morning.html"> New Morning (1970) </a> </li> <li> <a class="album" href="../../albums/bob_dylans_greatest_hits_vol_ii.html"> Bob Dylan's Greatest Hits, Vol. II (1971) </a> </li> <li> <a class="album" href="../../albums/pat_garrett_and_billy_the_kid.html"> Pat Garrett &amp; Billy the Kid (1973) </a> </li> <li> <a class="album" href="../../albums/dylan.html"> Dylan (1973) </a> </li> <li> <a class="album" href="../../albums/planet_waves.html"> Planet Waves (1974) </a> </li> <li> <a class="album" href="../../albums/before_the_flood.html"> Before the Flood (1974) </a> </li> <li> <a class="album" href="../../albums/blood_on_the_tracks.html"> Blood on the Tracks (1975) </a> </li> <li> <a class="album" href="../../albums/the_basement_tapes.html"> The Basement Tapes (1975) </a> </li> <li> <a class="album" href="../../albums/desire.html"> Desire (1976) </a> </li> <li> <a class="album" href="../../albums/hard_rain.html"> Hard Rain (1976) </a> </li> <li> <a class="album" href="../../albums/street_legal.html"> Street-Legal (1978) </a> </li> <li> <a class="album" href="../../albums/bob_dylan_at_budokan.html"> Bob Dylan at Budokan (1979) </a> </li> <li> <a class="album" href="../../albums/slow_train_coming.html"> Slow Train Coming (1979) </a> </li> </ul> </li> <li class="dropdown"> <a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button"> 1980s <span class="caret"> </span> </a> <ul class="dropdown-menu"> <li> <a class="album" href="../../albums/saved.html"> Saved (1980) </a> </li> <li> <a class="album" href="../../albums/shot_of_love.html"> Shot of Love (1981) </a> </li> <li> <a class="album" href="../../albums/infidels.html"> Infidels (1983) </a> </li> <li> <a class="album" href="../../albums/real_live_1.html"> Real Live (1984) </a> </li> <li> <a class="album" href="../../albums/empire_burlesque.html"> Empire Burlesque (1985) </a> </li> <li> <a class="album" href="../../albums/biograph.html"> Biograph (1985) </a> </li> <li> <a class="album" href="../../albums/knocked_out_loaded.html"> Knocked Out Loaded (1986) </a> </li> <li> <a class="album" href="../../albums/down_in_the_groove.html"> Down in the Groove (1988) </a> </li> <li> <a class="album" href="../../albums/dylan_and_the_dead.html"> Dylan &amp; the Dead (1989) </a> </li> <li> <a class="album" href="../../albums/oh_mercy.html"> Oh Mercy (1989) </a> </li> </ul> </li> <li class="dropdown"> <a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button"> 1990s <span class="caret"> </span> </a> <ul class="dropdown-menu"> <li> <a class="album" href="../../albums/under_the_red_sky.html"> Under the Red Sky (1990) </a> </li> <li> <a class="album" href="../../albums/the_bootleg_series_volumes_1-3_rare_and_unreleased_1961-1991.html"> The Bootleg Series Volumes 1-3 (Rare &amp; Unreleased) 1961-1991 (1991) </a> </li> <li> <a class="album" href="../../albums/good_as_i_been_to_you.html"> Good As I Been to You (1992) </a> </li> <li> <a class="album" href="../../albums/world_gone_wrong.html"> World Gone Wrong (1993) </a> </li> <li> <a class="album" href="../../albums/bob_dylans_greatest_hits_volume_3.html"> Bob Dylan's Greatest Hits Volume 3 (1994) </a> </li> <li> <a class="album" href="../../albums/mtv_unplugged.html"> MTV Unplugged (1995) </a> </li> <li> <a class="album" href="../../albums/time_out_of_mind.html"> Time Out of Mind (1997) </a> </li> <li> <a class="album" href="../../albums/the_bootleg_series_vol_4_bob_dylan_live_1966.html"> The Bootleg Series Vol. 4: Bob Dylan Live 1966, The "Royal Albert Hall" Concert (1998) </a> </li> </ul> </li> <li class="dropdown"> <a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button"> 2000s <span class="caret"> </span> </a> <ul class="dropdown-menu"> <li> <a class="album" href="../../albums/the_essential_bob_dylan.html"> The Essential Bob Dylan (2000) </a> </li> <li> <a class="album" href="../../albums/love_and_theft.html"> Love and Theft (2001) </a> </li> <li> <a class="album" href="../../albums/the_bootleg_series_vol_5_bob_dylan_live_1975_the_rolling_thunder_revue.html"> The Bootleg Series Vol. 5: Bob Dylan Live 1975, The Rolling Thunder Revue (2002) </a> </li> <li> <a class="album" href="../../albums/the_bootleg_series_vol_6_bob_dylan_live_1964_concert_at_philharmonic_hall.html"> The Bootleg Series Vol. 6: Bob Dylan Live 1964, Concert at Philharmonic Hall (2004) </a> </li> <li> <a class="album" href="../../albums/the_best_of_bob_dylan.html"> The Best of Bob Dylan (2005) </a> </li> <li> <a class="album" href="../../albums/modern_times.html"> Modern Times (2006) </a> </li> <li> <a class="album" href="../../albums/together_through_life.html"> Together through Life (2009) </a> </li> </ul> </li> <li class="dropdown"> <a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button"> 2010s <span class="caret"> </span> </a> <ul class="dropdown-menu"> <li> <a class="album" href="../../albums/tempest.html"> Tempest (2012) </a> </li> </ul> </li> </ul> <div class="col-md-3" style="border:0px solid;width:30%;height:auto;"> <gcse:search> <form class="navbar-form navbar-right" role="search"> </form> </gcse:search> </div> </div> </div> </nav> <div class="container"> <div class="row"> <div class="col-md-12"> <h1> Lay Lady Lay </h1> </div> </div> <div class="row"> <div class="col-md-12"> <p> <div> Lay<a href="#1"><sup>1</sup></a>, lady, lay, lay across my big brass bed, </div> <div> Lay, lady, lay, lay across my big brass bed. </div> <div> Whatever colors you have in your mind, </div> <div> I'll show them to you and you'll see them shine. </div> </p> <p> <div> Lay, lady, lay, lay across my big brass bed, </div> <div> Forget this dance, let's go upstairs. </div> <div> Let's take a chance – who really cares? </div> <div> Why don't you know you got nothing to prove? </div> <div> It's all in your eyes and the way that you move. </div> </p> <p> <div> Forget this dance, let's go upstairs. </div> <div> Why wait any longer for no need to complain?<a href="#2"><sup>2</sup></a> </div> <div> You can have love, but you might lose it. </div> <div> Why run any longer when you're running in vain? </div> <div> You can have the truth, but you got to choose it. </div> </p> <p> <div> Stay, lady, stay, stay with your man awhile, </div> <div> Till the break of day let me see you make him smile. </div> <div> I long to see you in the morning light, </div> <div> I long to hold you in the night – </div> <div> Stay, lady, stay, stay with your man awhile. </div> </p> <p> <div> Lay, lady, lay, lay across my big brass bed. </div> </p> <p> <div> <a name="1"> <sup> 1 </sup> </a> <small> The correct verb to use would technically be "lie" (she lies, she lay, she has lain), not "lay", which is the transitive form of "lie". However, the distinction between the two forms has been increasingly disappearing in English due at least partially to the fact that the base form of the verb <i>lay</i> looks and sounds exactly the same as the simple past form of <i>lay</i>. But just because the use of <i>lay</i> in this song is technically incorrect doesn't mean that it was not intentional: it would not sound right to hear "lie, lady, lie, lie across my big brass bed" (because of the assonance) and, besides, this is how real people talk every day and there's nothing wrong with it. </small> </div> <div> <a name="2"> <sup> 2 </sup> </a> <small> Here it's almost as though Dylan begins to sing the line from the original album version, "Why wait any longer for the world to begin?", before improvising about halfway through, which might explain why the line sounds sort of meaningless and inane. </small> </div> </p> </div> </div> </div> </body> </html>
mulhod/bob_dylan_lyrics
songs/html/lay_lady_lay_3.html
HTML
mit
12,400
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 18804, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 1013, 18804, 1028, 1026, 18804, 4180, 1027, 1000, 9381, 1027, 5080, 1011, 9381, 1010, 3988, 1011, 4094, 1027, 1015, 1000, 2171, 1027, 1000, 3193, 6442, 1000, 1028, 1026, 1013, 18804, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 16770, 1024, 1013, 1013, 4098, 19797, 2078, 1012, 6879, 6494, 15042, 2094, 2078, 1012, 4012, 1013, 6879, 6494, 2361, 1013, 1017, 1012, 1017, 1012, 1019, 1013, 20116, 2015, 1013, 6879, 6494, 2361, 1012, 8117, 1012, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 1028, 1026, 1013, 4957, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 4219, 1013, 2358, 11253, 1011, 2806, 1012, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 1028, 1026, 1013, 4957, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 16770, 1024, 1013, 1013, 18176, 1012, 8224, 9331, 2483, 1012, 4012, 1013, 18176, 1013, 5622, 5910, 1013, 1046, 4226, 2854, 1013, 1015, 1012, 2340, 1012, 1017, 1013, 1046, 4226, 2854, 1012, 8117, 1012, 1046, 2015, 30524, 2361, 1012, 8117, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 4219, 1013, 3945, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 4219, 1013, 25095, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 6583, 2615, 2465, 1027, 1000, 6583, 26493, 2906, 6583, 26493, 2906, 1011, 12398, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 11661, 1011, 8331, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 6583, 26493, 2906, 1011, 20346, 1000, 1028, 1026, 6462, 9342, 1011, 4423, 1027, 1000, 6270, 1000, 2465, 1027, 1000, 6583, 26493, 2906, 1011, 2000, 24679, 7798, 1000, 2951, 1011, 4539, 1027, 1000, 1001, 18667, 1011, 2742, 1011, 6583, 26493, 2906, 1011, 7859, 1011, 1015, 1000, 2951, 1011, 2000, 24679, 1027, 1000, 7859, 1000, 2828, 1027, 1000, 6462, 1000, 1028, 1026, 8487, 2465, 1027, 1000, 5034, 1011, 2069, 1000, 1028, 2000, 24679, 9163, 1026, 1013, 8487, 1028, 1026, 8487, 2465, 1027, 1000, 12696, 1011, 3347, 1000, 1028, 1026, 1013, 8487, 1028, 1026, 8487, 2465, 1027, 1000, 12696, 1011, 3347, 1000, 1028, 1026, 1013, 8487, 1028, 1026, 8487, 2465, 1027, 1000, 12696, 1011, 3347, 1000, 1028, 1026, 1013, 8487, 1028, 1026, 1013, 6462, 1028, 1026, 1037, 2465, 1027, 1000, 6583, 26493, 2906, 1011, 4435, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 5950, 1012, 16129, 1000, 1028, 3960, 7758, 4581, 1026, 1013, 1037, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 9342, 1011, 4423, 30523, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 16770, 1024, 1013, 1013, 4098, 19797, 2078, 1012, 6879, 6494, 15042, 2094, 2078, 1012, 4012, 1013, 6879, 6494, 2361, 1013, 1017, 1012, 1017, 1012, 1019, 1013, 1046, 2015, 1013, 6879, 6494, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 16770, 1024, 1013, 1013, 4098, 19797, 2078, 1012, 6879, 6494, 15042, 2094, 2078, 1012, 4012, 1013, 6879, 6494, 2361, 1013, 1017, 1012, 1017, 1012, 1019, 1013, 1046, 2015, 1013, 6879, 6494, 30526 ]
import { connecting, connected, reconnecting, connectionFailed } from './actions'; export default uri => store => { let ws; let hasEverConnected = false; const RECONNECT_TIMEOUT_MS = 2000; const ACTION = 'ACTION'; const connect = () => { ws = new WebSocket(uri); // NOTE: could maybe set a flat 'hasBeenOpenBefore' to help with error states/dispatches and such ws.onopen = () => { hasEverConnected = true; store.dispatch(connected()); }; ws.onclose = function() { if (hasEverConnected) { store.dispatch(reconnecting()); setTimeout(connect, RECONNECT_TIMEOUT_MS); } else { //TODO: THIS TAKES A LOOOOONG TIME ON CHROME... MAYBE BUILD SOME EXTRA DISPATCHES? store.dispatch(connectionFailed()); } }; ws.onmessage = ({data}) => { const serverAction = JSON.parse(data); if (serverAction.type == ACTION) { const localAction = serverAction.payload; store.dispatch(localAction); } }; }; store.dispatch(connecting()); connect(); return next => action => { if(WebSocket.OPEN === ws.readyState && action.meta && action.meta.remote) { const serverAction = JSON.stringify({ type: ACTION, payload: action }); ws.send(serverAction); } return next(action); }; };
jesse-robertson/game-night
src/store/enhancers/middleware/websocket/src.js
JavaScript
mit
1,599
[ 30522, 12324, 1063, 7176, 1010, 4198, 1010, 28667, 18256, 11873, 1010, 4434, 7011, 18450, 1065, 2013, 1005, 1012, 30524, 1027, 6270, 1025, 9530, 3367, 28667, 18256, 6593, 1035, 2051, 5833, 1035, 5796, 1027, 2456, 1025, 9530, 3367, 2895, 1027, 1005, 2895, 1005, 1025, 9530, 3367, 7532, 1027, 1006, 1007, 1027, 1028, 1063, 1059, 2015, 1027, 2047, 4773, 6499, 19869, 2102, 1006, 24471, 2072, 1007, 1025, 1013, 1013, 3602, 1024, 2071, 2672, 2275, 1037, 4257, 1005, 2038, 11306, 3630, 11837, 4783, 29278, 2063, 1005, 2000, 2393, 2007, 7561, 2163, 1013, 18365, 2229, 1998, 2107, 1059, 2015, 1012, 21058, 11837, 1027, 1006, 1007, 1027, 1028, 1063, 2038, 22507, 24230, 1027, 2995, 1025, 3573, 1012, 18365, 1006, 4198, 1006, 1007, 1007, 1025, 1065, 1025, 1059, 2015, 1012, 2006, 20464, 9232, 1027, 3853, 1006, 1007, 1063, 2065, 1006, 2038, 22507, 24230, 1007, 1063, 3573, 1012, 18365, 1006, 28667, 18256, 11873, 1006, 1007, 1007, 1025, 2275, 7292, 5833, 1006, 7532, 1010, 28667, 18256, 6593, 1035, 2051, 5833, 1035, 5796, 1007, 1025, 1065, 2842, 1063, 1013, 1013, 28681, 2080, 1024, 2023, 3138, 1037, 8840, 9541, 7828, 2290, 2051, 2006, 18546, 1012, 1012, 1012, 2672, 3857, 2070, 4469, 18365, 2229, 1029, 3573, 1012, 18365, 1006, 4434, 7011, 18450, 1006, 1007, 1007, 1025, 1065, 1065, 1025, 1059, 2015, 1012, 2006, 7834, 3736, 3351, 1027, 1006, 1063, 2951, 1065, 1007, 1027, 1028, 1063, 9530, 3367, 8241, 18908, 3258, 1027, 1046, 3385, 1012, 11968, 3366, 1006, 2951, 1007, 1025, 2065, 1006, 8241, 18908, 3258, 1012, 2828, 1027, 1027, 2895, 1007, 1063, 9530, 3367, 2334, 18908, 3258, 1027, 8241, 18908, 3258, 1012, 18093, 1025, 3573, 1012, 18365, 1006, 2334, 18908, 3258, 1007, 1025, 1065, 1065, 1025, 1065, 1025, 3573, 1012, 18365, 1006, 7176, 1006, 1007, 1007, 1025, 7532, 1006, 1007, 1025, 2709, 2279, 1027, 1028, 2895, 1027, 1028, 1063, 2065, 1006, 4773, 6499, 19869, 2102, 1012, 2330, 1027, 1027, 1027, 1059, 2015, 1012, 3201, 9153, 2618, 1004, 1004, 2895, 1012, 18804, 1004, 1004, 2895, 1012, 18804, 1012, 6556, 1007, 1063, 9530, 3367, 8241, 18908, 3258, 1027, 1046, 3385, 1012, 5164, 8757, 1006, 1063, 2828, 1024, 2895, 1010, 18093, 1024, 2895, 1065, 1007, 1025, 1059, 2015, 1012, 4604, 1006, 8241, 18908, 3258, 1007, 1025, 1065, 2709, 2279, 1006, 2895, 1007, 1025, 1065, 1025, 1065, 1025, 102, 0, 0,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 4506, 1005, 1025, 9167, 12398, 24471, 2072, 1027, 1028, 3573, 1027, 1028, 1063, 2292, 1059, 2015, 1025, 2292, 2038, 22507, 24230, 30526 ]
//////////////////////////////////////////////////////////// // // // This file is part of the VRPH software package for // // generating solutions to vehicle routing problems. // // VRPH was developed by Chris Groer ([email protected]). // // // // (c) Copyright 2010 Chris Groer. // // All Rights Reserved. VRPH is licensed under the // // Common Public License. See LICENSE file for details. // // // //////////////////////////////////////////////////////////// #ifndef _VRP_NODE_H #define _VRP_NODE_H #define VRPTW 0 #define MAX_NEIGHBORLIST_SIZE 75 class VRPNode { public: double x; double y; double r; // For polar double theta; // coordinates int id; int demand; int *daily_demands; // For period VRPs int cluster; VRPNeighborElement neighbor_list[MAX_NEIGHBORLIST_SIZE]; double service_time; // represents the time required at the node double *daily_service_times; // For period VRPs double arrival_time; double start_tw; double end_tw;// Time windows int num_days; // For multi-day VRPs // Constructor VRPNode(); // Constructor for a d-day problem VRPNode(int d); // Destructor ~VRPNode(); // Duplication void duplicate(VRPNode *N); void show(); }; #endif
snoopyxu/vrph
inc/VRPNode.h
C
epl-1.0
1,545
[ 30522, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 30524, 1013, 1013, 1013, 2023, 5371, 2003, 2112, 1997, 1996, 27830, 8458, 4007, 7427, 2005, 1013, 1013, 1013, 1013, 11717, 7300, 2000, 4316, 16972, 3471, 1012, 1013, 1013, 1013, 1013, 27830, 8458, 2001, 2764, 2011, 3782, 24665, 8913, 2099, 1006, 1039, 16523, 8913, 2099, 1030, 20917, 4014, 1012, 4012, 1007, 1012, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1006, 1039, 1007, 9385, 2230, 3782, 24665, 8913, 2099, 1012, 1013, 1013, 1013, 1013, 2035, 2916, 9235, 1012, 27830, 8458, 2003, 7000, 2104, 1996, 1013, 1013, 1013, 1013, 2691, 2270, 6105, 1012, 2156, 6105, 5371, 2005, 4751, 1012, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1001, 2065, 13629, 2546, 1035, 27830, 2361, 1035, 13045, 1035, 1044, 1001, 9375, 1035, 27830, 2361, 1035, 13045, 1035, 1044, 1001, 9375, 27830, 13876, 2860, 1014, 1001, 9375, 4098, 1035, 11429, 9863, 1035, 2946, 4293, 2465, 27830, 2361, 3630, 3207, 1063, 2270, 1024, 3313, 1060, 1025, 3313, 1061, 1025, 3313, 1054, 1025, 1013, 1013, 2005, 11508, 3313, 23963, 1025, 1013, 1013, 12093, 20014, 8909, 1025, 20014, 5157, 1025, 20014, 1008, 3679, 1035, 7670, 1025, 1013, 1013, 2005, 2558, 27830, 4523, 20014, 9324, 1025, 27830, 2361, 2638, 18377, 12821, 12260, 3672, 11429, 1035, 2862, 1031, 4098, 1035, 11429, 9863, 1035, 2946, 1033, 1025, 3313, 2326, 1035, 2051, 1025, 1013, 1013, 5836, 1996, 2051, 3223, 2012, 1996, 13045, 3313, 1008, 3679, 1035, 2326, 1035, 2335, 1025, 1013, 1013, 2005, 2558, 27830, 4523, 3313, 5508, 1035, 2051, 1025, 3313, 2707, 1035, 1056, 2860, 1025, 3313, 2203, 1035, 1056, 2860, 1025, 1013, 1013, 2051, 3645, 20014, 16371, 2213, 1035, 2420, 1025, 1013, 1013, 2005, 4800, 1011, 2154, 27830, 4523, 1013, 1013, 9570, 2953, 27830, 2361, 3630, 3207, 1006, 1007, 1025, 1013, 1013, 9570, 2953, 2005, 1037, 1040, 1011, 2154, 3291, 27830, 2361, 3630, 3207, 1006, 20014, 1040, 1007, 1025, 1013, 1013, 4078, 18300, 2953, 1066, 27830, 2361, 3630, 3207, 1006, 1007, 1025, 1013, 1013, 4241, 21557, 11675, 24473, 1006, 27830, 2361, 3630, 3207, 1008, 1050, 1007, 1025, 11675, 2265, 1006, 1007, 1025, 1065, 1025, 1001, 2203, 10128, 102, 0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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 30526 ]
/* * TACO: Translation of Annotated COde * Copyright (c) 2010 Universidad de Buenos Aires * * 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., 51 Franklin Street, Fifth Floor, Boston, MA, * 02110-1301, USA */ package ar.edu.taco.regresion.taco.singlylinkedlist; import ar.edu.taco.regresion.CollectionTestBase; import ar.edu.taco.regresion.GenericTestBase; import ar.uba.dc.rfm.dynalloy.visualization.VizException; public class ExamplesBaseSinglyLinkedListTest extends CollectionTestBase { @Override protected String getClassToCheck() { return "examples.singlylinkedlist.base.SinglyLinkedList"; } public void test_contains() throws VizException { setConfigKeyRelevantClasses("examples.singlylinkedlist.base.SinglyLinkedList,examples.singlylinkedlist.base.SinglyLinkedListNode"); setConfigKeyRelevancyAnalysis(true); setConfigKeyCheckNullDereference(true); setConfigKeyUseJavaArithmetic(false); setConfigKeyObjectScope(3); setConfigKeyInferScope(false); setConfigKeyTypeScopes("examples.singlylinkedlist.base.SinglyLinkedList:1,examples.singlylinkedlist.base.SinglyLinkedListNode:2"); setConfigKeySkolemizeInstanceInvariant(true); setConfigKeySkolemizeInstanceAbstraction(true); setConfigKeyGenerateUnitTestCase(false); simulate(GENERIC_PROPERTIES,"contains_0"); } public void test_insertBack() throws VizException { setConfigKeyRelevantClasses("examples.singlylinkedlist.base.SinglyLinkedList,examples.singlylinkedlist.base.SinglyLinkedListNode"); setConfigKeyRelevancyAnalysis(true); setConfigKeyCheckNullDereference(true); setConfigKeyUseJavaArithmetic(false); setConfigKeyObjectScope(3); setConfigKeyInferScope(false); setConfigKeyTypeScopes("examples.singlylinkedlist.base.SinglyLinkedList:1,examples.singlylinkedlist.base.SinglyLinkedListNode:2"); setConfigKeySkolemizeInstanceInvariant(true); setConfigKeySkolemizeInstanceAbstraction(true); setConfigKeyGenerateUnitTestCase(false); simulate(GENERIC_PROPERTIES,"insertBack_0"); } public void test_remove() throws VizException { setConfigKeyRelevantClasses("examples.singlylinkedlist.base.SinglyLinkedList,examples.singlylinkedlist.base.SinglyLinkedListNode"); setConfigKeyRelevancyAnalysis(true); setConfigKeyCheckNullDereference(true); setConfigKeyUseJavaArithmetic(false); setConfigKeyObjectScope(3); setConfigKeyInferScope(false); setConfigKeyTypeScopes("examples.singlylinkedlist.base.SinglyLinkedList:1,examples.singlylinkedlist.base.SinglyLinkedListNode:2"); setConfigKeySkolemizeInstanceInvariant(true); setConfigKeySkolemizeInstanceAbstraction(true); setConfigKeyGenerateUnitTestCase(false); simulate(GENERIC_PROPERTIES,"remove_0"); } }
zeminlu/comitaco
unittest/ar/edu/taco/regresion/taco/singlylinkedlist/ExamplesBaseSinglyLinkedListTest.java
Java
gpl-3.0
3,303
[ 30522, 1013, 1008, 1008, 11937, 3597, 1024, 5449, 1997, 5754, 17287, 3064, 3642, 1008, 9385, 1006, 1039, 1007, 2230, 16501, 2139, 9204, 9149, 1008, 1008, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 1008, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 1008, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1025, 2593, 2544, 1016, 1008, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1008, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 1008, 2247, 2007, 2023, 2565, 1025, 2065, 2025, 1010, 4339, 2000, 1996, 2489, 4007, 1008, 3192, 1010, 4297, 1012, 1010, 4868, 5951, 2395, 1010, 3587, 2723, 1010, 3731, 1010, 5003, 1010, 1008, 6185, 14526, 2692, 1011, 7558, 2487, 1010, 3915, 1008, 1013, 7427, 12098, 1012, 3968, 2226, 1012, 11937, 3597, 1012, 19723, 6072, 3258, 1012, 11937, 3597, 1012, 6170, 2135, 13767, 2098, 9863, 1025, 12324, 12098, 1012, 3968, 2226, 1012, 11937, 3597, 1012, 19723, 6072, 3258, 1012, 3074, 22199, 15058, 1025, 12324, 12098, 1012, 3968, 2226, 1012, 11937, 3597, 1012, 19723, 6072, 3258, 1012, 12391, 22199, 15058, 1025, 12324, 12098, 1012, 1057, 3676, 1012, 5887, 1012, 21792, 2213, 1012, 1040, 18279, 7174, 2100, 1012, 5107, 3989, 1012, 26619, 10288, 24422, 1025, 2270, 2465, 4973, 15058, 7741, 2135, 13767, 2098, 9863, 22199, 8908, 3074, 22199, 15058, 1063, 1030, 2058, 15637, 5123, 5164, 2131, 26266, 3406, 5403, 3600, 1006, 1007, 1063, 2709, 1000, 4973, 1012, 6170, 2135, 13767, 2098, 9863, 1012, 2918, 1012, 6170, 2135, 13767, 2098, 9863, 1000, 1025, 1065, 2270, 11675, 3231, 1035, 3397, 1006, 1007, 11618, 26619, 10288, 24422, 1063, 2275, 8663, 8873, 2290, 14839, 16570, 13331, 3372, 26266, 2229, 1006, 1000, 4973, 1012, 6170, 2135, 13767, 2098, 9863, 1012, 2918, 1012, 6170, 2135, 13767, 2098, 9863, 1010, 4973, 1012, 6170, 2135, 13767, 2098, 9863, 1012, 2918, 1012, 6170, 2135, 13767, 2098, 9863, 3630, 3207, 1000, 1007, 1025, 2275, 8663, 8873, 2290, 14839, 16570, 13331, 9407, 25902, 1006, 2995, 1007, 1025, 2275, 8663, 8873, 2290, 14839, 5403, 3600, 11231, 3363, 4063, 27235, 24413, 1006, 2995, 1007, 1025, 2275, 8663, 8873, 2290, 14839, 8557, 3900, 3567, 8486, 2705, 11368, 2594, 1006, 6270, 1007, 1025, 2275, 8663, 8873, 2290, 14839, 16429, 20614, 26127, 1006, 1017, 1007, 1025, 2275, 8663, 8873, 2290, 14839, 2378, 24396, 16186, 1006, 6270, 1007, 1025, 2275, 30524, 13767, 2098, 9863, 1012, 2918, 1012, 6170, 2135, 13767, 2098, 9863, 3630, 3207, 1024, 1016,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 8663, 8873, 2290, 14839, 13874, 26127, 2015, 1006, 1000, 4973, 1012, 6170, 2135, 13767, 2098, 9863, 1012, 2918, 1012, 6170, 2135, 13767, 2098, 9863, 1024, 1015, 1010, 4973, 1012, 6170, 2135, 30526 ]
#!/usr/bin/env python """beanstalkc - A beanstalkd Client Library for Python""" import logging import socket import sys __license__ = ''' Copyright (C) 2008-2016 Andreas Bolka Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ''' __version__ = '0.4.0' DEFAULT_HOST = 'localhost' DEFAULT_PORT = 11300 DEFAULT_PRIORITY = 2 ** 31 DEFAULT_TTR = 120 DEFAULT_TUBE_NAME = 'default' class BeanstalkcException(Exception): pass class UnexpectedResponse(BeanstalkcException): pass class CommandFailed(BeanstalkcException): pass class DeadlineSoon(BeanstalkcException): pass class SocketError(BeanstalkcException): @staticmethod def wrap(wrapped_function, *args, **kwargs): try: return wrapped_function(*args, **kwargs) except socket.error: err = sys.exc_info()[1] raise SocketError(err) class Connection(object): def __init__(self, host=DEFAULT_HOST, port=DEFAULT_PORT, parse_yaml=True, connect_timeout=socket.getdefaulttimeout()): if parse_yaml is True: try: parse_yaml = __import__('yaml').load except ImportError: logging.error('Failed to load PyYAML, will not parse YAML') parse_yaml = False self._connect_timeout = connect_timeout self._parse_yaml = parse_yaml or (lambda x: x) self.host = host self.port = port self.connect() def __enter__(self): return self def __exit__(self, exc_type, exc_value, traceback): self.close() def connect(self): """Connect to beanstalkd server.""" self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self._socket.settimeout(self._connect_timeout) SocketError.wrap(self._socket.connect, (self.host, self.port)) self._socket.settimeout(None) self._socket_file = self._socket.makefile('rb') def close(self): """Close connection to server.""" try: self._socket.sendall('quit\r\n') except socket.error: pass try: self._socket.close() except socket.error: pass def reconnect(self): """Re-connect to server.""" self.close() self.connect() def _interact(self, command, expected_ok, expected_err=[]): SocketError.wrap(self._socket.sendall, command) status, results = self._read_response() if status in expected_ok: return results elif status in expected_err: raise CommandFailed(command.split()[0], status, results) else: raise UnexpectedResponse(command.split()[0], status, results) def _read_response(self): line = SocketError.wrap(self._socket_file.readline) if not line: raise SocketError() response = line.split() return response[0], response[1:] def _read_body(self, size): body = SocketError.wrap(self._socket_file.read, size) SocketError.wrap(self._socket_file.read, 2) # trailing crlf if size > 0 and not body: raise SocketError() return body def _interact_value(self, command, expected_ok, expected_err=[]): return self._interact(command, expected_ok, expected_err)[0] def _interact_job(self, command, expected_ok, expected_err, reserved=True): jid, size = self._interact(command, expected_ok, expected_err) body = self._read_body(int(size)) return Job(self, int(jid), body, reserved) def _interact_yaml(self, command, expected_ok, expected_err=[]): size, = self._interact(command, expected_ok, expected_err) body = self._read_body(int(size)) return self._parse_yaml(body) def _interact_peek(self, command): try: return self._interact_job(command, ['FOUND'], ['NOT_FOUND'], False) except CommandFailed: return None # -- public interface -- def put(self, body, priority=DEFAULT_PRIORITY, delay=0, ttr=DEFAULT_TTR): """Put a job into the current tube. Returns job id.""" assert isinstance(body, str), 'Job body must be a str instance' jid = self._interact_value('put %d %d %d %d\r\n%s\r\n' % ( priority, delay, ttr, len(body), body), ['INSERTED'], ['JOB_TOO_BIG', 'BURIED', 'DRAINING']) return int(jid) def reserve(self, timeout=None): """Reserve a job from one of the watched tubes, with optional timeout in seconds. Returns a Job object, or None if the request times out.""" if timeout is not None: command = 'reserve-with-timeout %d\r\n' % timeout else: command = 'reserve\r\n' try: return self._interact_job(command, ['RESERVED'], ['DEADLINE_SOON', 'TIMED_OUT']) except CommandFailed: exc = sys.exc_info()[1] _, status, results = exc.args if status == 'TIMED_OUT': return None elif status == 'DEADLINE_SOON': raise DeadlineSoon(results) def kick(self, bound=1): """Kick at most bound jobs into the ready queue.""" return int(self._interact_value('kick %d\r\n' % bound, ['KICKED'])) def kick_job(self, jid): """Kick a specific job into the ready queue.""" self._interact('kick-job %d\r\n' % jid, ['KICKED'], ['NOT_FOUND']) def peek(self, jid): """Peek at a job. Returns a Job, or None.""" return self._interact_peek('peek %d\r\n' % jid) def peek_ready(self): """Peek at next ready job. Returns a Job, or None.""" return self._interact_peek('peek-ready\r\n') def peek_delayed(self): """Peek at next delayed job. Returns a Job, or None.""" return self._interact_peek('peek-delayed\r\n') def peek_buried(self): """Peek at next buried job. Returns a Job, or None.""" return self._interact_peek('peek-buried\r\n') def tubes(self): """Return a list of all existing tubes.""" return self._interact_yaml('list-tubes\r\n', ['OK']) def using(self): """Return the tube currently being used.""" return self._interact_value('list-tube-used\r\n', ['USING']) def use(self, name): """Use a given tube.""" return self._interact_value('use %s\r\n' % name, ['USING']) def watching(self): """Return a list of all tubes being watched.""" return self._interact_yaml('list-tubes-watched\r\n', ['OK']) def watch(self, name): """Watch a given tube.""" return int(self._interact_value('watch %s\r\n' % name, ['WATCHING'])) def ignore(self, name): """Stop watching a given tube.""" try: return int(self._interact_value('ignore %s\r\n' % name, ['WATCHING'], ['NOT_IGNORED'])) except CommandFailed: # Tried to ignore the only tube in the watchlist, which failed. return 0 def stats(self): """Return a dict of beanstalkd statistics.""" return self._interact_yaml('stats\r\n', ['OK']) def stats_tube(self, name): """Return a dict of stats about a given tube.""" return self._interact_yaml('stats-tube %s\r\n' % name, ['OK'], ['NOT_FOUND']) def pause_tube(self, name, delay): """Pause a tube for a given delay time, in seconds.""" self._interact('pause-tube %s %d\r\n' % (name, delay), ['PAUSED'], ['NOT_FOUND']) # -- job interactors -- def delete(self, jid): """Delete a job, by job id.""" self._interact('delete %d\r\n' % jid, ['DELETED'], ['NOT_FOUND']) def release(self, jid, priority=DEFAULT_PRIORITY, delay=0): """Release a reserved job back into the ready queue.""" self._interact('release %d %d %d\r\n' % (jid, priority, delay), ['RELEASED', 'BURIED'], ['NOT_FOUND']) def bury(self, jid, priority=DEFAULT_PRIORITY): """Bury a job, by job id.""" self._interact('bury %d %d\r\n' % (jid, priority), ['BURIED'], ['NOT_FOUND']) def touch(self, jid): """Touch a job, by job id, requesting more time to work on a reserved job before it expires.""" self._interact('touch %d\r\n' % jid, ['TOUCHED'], ['NOT_FOUND']) def stats_job(self, jid): """Return a dict of stats about a job, by job id.""" return self._interact_yaml('stats-job %d\r\n' % jid, ['OK'], ['NOT_FOUND']) class Job(object): def __init__(self, conn, jid, body, reserved=True): self.conn = conn self.jid = jid self.body = body self.reserved = reserved def _priority(self): stats = self.stats() if isinstance(stats, dict): return stats['pri'] return DEFAULT_PRIORITY # -- public interface -- def delete(self): """Delete this job.""" self.conn.delete(self.jid) self.reserved = False def release(self, priority=None, delay=0): """Release this job back into the ready queue.""" if self.reserved: self.conn.release(self.jid, priority or self._priority(), delay) self.reserved = False def bury(self, priority=None): """Bury this job.""" if self.reserved: self.conn.bury(self.jid, priority or self._priority()) self.reserved = False def kick(self): """Kick this job alive.""" self.conn.kick_job(self.jid) def touch(self): """Touch this reserved job, requesting more time to work on it before it expires.""" if self.reserved: self.conn.touch(self.jid) def stats(self): """Return a dict of stats about this job.""" return self.conn.stats_job(self.jid) if __name__ == '__main__': import nose nose.main(argv=['nosetests', '-c', '.nose.cfg'])
earl/beanstalkc
beanstalkc.py
Python
apache-2.0
10,921
[ 30522, 1001, 999, 1013, 2149, 2099, 1013, 8026, 1013, 4372, 2615, 18750, 1000, 1000, 1000, 13435, 28014, 2278, 1011, 1037, 13435, 28014, 2094, 7396, 3075, 2005, 18750, 1000, 1000, 1000, 12324, 15899, 12324, 22278, 12324, 25353, 2015, 1035, 1035, 6105, 1035, 1035, 1027, 1005, 1005, 1005, 9385, 1006, 1039, 1007, 2263, 1011, 2355, 12460, 8945, 26518, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 12546, 2104, 1996, 6105, 1012, 1005, 1005, 1005, 1035, 1035, 2544, 1035, 1035, 1027, 1005, 1014, 1012, 1018, 1012, 1014, 1005, 12398, 1035, 3677, 1027, 1005, 2334, 15006, 2102, 1005, 12398, 1035, 3417, 1027, 12104, 8889, 12398, 1035, 9470, 1027, 1016, 1008, 1008, 2861, 12398, 1035, 23746, 2099, 1027, 6036, 12398, 1035, 7270, 1035, 2171, 1027, 1005, 12398, 1005, 2465, 13435, 28014, 3401, 2595, 24422, 1006, 6453, 1007, 1024, 3413, 2465, 9223, 6072, 26029, 3366, 1006, 13435, 28014, 3401, 2595, 24422, 1007, 1024, 3413, 2465, 3094, 7011, 18450, 1006, 13435, 28014, 3401, 2595, 24422, 1007, 1024, 3413, 2465, 15117, 6499, 2239, 1006, 13435, 28014, 3401, 2595, 24422, 1007, 1024, 3413, 2465, 22278, 2121, 29165, 1006, 13435, 28014, 3401, 2595, 24422, 1007, 1024, 1030, 10763, 11368, 6806, 2094, 13366, 10236, 1006, 5058, 1035, 3853, 1010, 1008, 12098, 5620, 1010, 1008, 1008, 6448, 2906, 5620, 1007, 1024, 3046, 1024, 2709, 5058, 1035, 3853, 1006, 1008, 12098, 5620, 1010, 1008, 1008, 6448, 2906, 5620, 1007, 3272, 22278, 1012, 7561, 1024, 9413, 2099, 1027, 25353, 2015, 1012, 4654, 2278, 1035, 18558, 1006, 1007, 1031, 1015, 1033, 5333, 22278, 30524, 22278, 1012, 2131, 3207, 7011, 11314, 7292, 5833, 1006, 1007, 1007, 1024, 2065, 11968, 3366, 1035, 8038, 19968, 2003, 2995, 1024, 3046, 1024, 11968, 3366, 1035, 8038, 19968, 1027, 1035, 1035, 12324, 1035, 1035, 1006, 1005, 8038, 19968, 1005, 1007, 1012, 7170, 3272, 12324, 2121, 29165, 1024, 15899, 1012, 7561, 1006, 1005, 3478, 2000, 7170, 1052, 19903, 19968, 1010, 2097, 2025, 11968, 3366, 8038, 19968, 1005, 1007, 11968, 3366, 1035, 8038, 19968, 1027, 6270, 2969, 1012, 1035, 7532, 1035, 2051, 5833, 1027, 7532, 1035, 2051, 5833, 2969, 1012, 1035, 11968, 3366, 1035, 8038, 19968, 1027, 11968, 3366, 1035, 8038, 19968, 2030, 1006, 23375, 1060, 1024, 30523, 2121, 29165, 1006, 9413, 2099, 1007, 2465, 4434, 1006, 4874, 1007, 1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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2121, 29165, 1006, 9413, 2099, 1007, 2465, 4434, 1006, 4874, 1007, 1024, 13366, 1035, 1035, 1999, 4183, 1035, 1035, 1006, 2969, 1010, 3677, 1027, 12398, 1035, 3677, 1010, 3417, 1027, 12398, 1035, 3417, 1010, 11968, 3366, 1035, 8038, 19968, 1027, 2995, 1010, 7532, 1035, 2051, 5833, 1027, 30526 ]
"""Tests for CMFNotification installation ad uninstallation. $Id: testInstallation.py 65679 2008-05-25 23:45:26Z dbaty $ """ from zope.component import getUtility from zope.component import getMultiAdapter from AccessControl.PermissionRole import rolesForPermissionOn from plone.portlets.interfaces import IPortletManager from plone.portlets.interfaces import IPortletAssignmentMapping from Products.CMFCore.utils import getToolByName from Products.CMFNotification.config import LAYER_NAME from Products.CMFNotification.config import PORTLET_NAME from Products.CMFNotification.NotificationTool import ID as TOOL_ID from Products.CMFNotification.permissions import SUBSCRIBE_PERMISSION from Products.CMFNotification.tests.plonetestbrowser import Browser from Products.CMFNotification.tests.base import CMFNotificationTestCase class TestInstallation(CMFNotificationTestCase): """Make sure that the product is properly installed.""" def afterSetUp(self): pass def testToolIsThere(self): portal = self.portal tool = getToolByName(self.portal, TOOL_ID) self.failUnless(tool is not None) def testSkinLayerIsThere(self): stool = getToolByName(self.portal, 'portal_skins') for skin, layers in stool._getSelections().items(): layers = layers.split(',') self.failUnless(LAYER_NAME in layers) self.failUnless(LAYER_NAME in stool.objectIds()) def testPortletCanBeAdded(self): base_url = self.portal.absolute_url() for name in ('plone.leftcolumn', 'plone.rightcolumn'): manager = getUtility(IPortletManager, name=name, context=self.portal) titles = [p.title for p in manager.getAddablePortletTypes()] self.failUnless(PORTLET_NAME in titles) manager = getUtility(IPortletManager, name='plone.rightcolumn', context=self.portal) right_portlets = getMultiAdapter((self.portal, manager), IPortletAssignmentMapping, context=self.portal) right_portlets = right_portlets.keys() self.failUnless(PORTLET_NAME in right_portlets) def testPermissionHasBeenSet(self): roles = set(rolesForPermissionOn(SUBSCRIBE_PERMISSION, self.portal)) self.failUnlessEqual(roles, set(('Manager', 'Member'))) def testConfigletHasBeenAdded(self): cptool = getToolByName(self.portal, 'portal_controlpanel') configlets = [c.getId() for c in cptool.listActions()] self.failUnless('cmfnotification_configuration' in configlets) class TestUnInstallation(CMFNotificationTestCase): """Test that the product has been properly uninstalled.""" def afterSetUp(self): """Uninstall the product before running each test.""" qtool = getToolByName(self.portal, 'portal_quickinstaller') self.setRoles(['Manager']) qtool.uninstallProducts(['CMFNotification']) def testToolIsNotThere(self): tool = getToolByName(self.portal, TOOL_ID, None) self.failUnless(tool is None) def testSkinLayerIsNotThere(self): stool = getToolByName(self.portal, 'portal_skins') for skin, layers in stool._getSelections().items(): layers = layers.split(',') self.failUnless (LAYER_NAME not in layers) self.failUnless(LAYER_NAME not in stool.objectIds()) def testPortletDoNoExist(self): base_url = self.portal.absolute_url() for name in ('plone.leftcolumn', 'plone.rightcolumn'): manager = getUtility(IPortletManager, name=name, context=self.portal) titles = [p.title for p in manager.getAddablePortletTypes()] self.failUnless(PORTLET_NAME not in titles) manager = getUtility(IPortletManager, name='plone.rightcolumn', context=self.portal) right_portlets = getMultiAdapter((self.portal, manager), IPortletAssignmentMapping, context=self.portal) right_portlets = right_portlets.keys() self.failUnless(PORTLET_NAME not in right_portlets) def testConfigletDoNotExist(self): cptool = getToolByName(self.portal, 'portal_controlpanel') configlets = [c.getId() for c in cptool.listActions()] self.failUnless('cmfnotification_configuration' not in configlets) def test_suite(): from unittest import TestSuite, makeSuite suite = TestSuite() suite.addTest(makeSuite(TestInstallation)) suite.addTest(makeSuite(TestUnInstallation)) return suite
cynapse/cynin
products/CMFNotification/tests/testInstallation.py
Python
gpl-3.0
4,873
[ 30522, 1000, 1000, 1000, 5852, 2005, 4642, 2546, 17048, 9031, 8272, 4748, 4895, 7076, 9080, 13490, 1012, 1002, 8909, 1024, 3231, 7076, 9080, 13490, 1012, 1052, 2100, 3515, 2575, 2581, 2683, 2263, 1011, 5709, 1011, 2423, 2603, 1024, 3429, 1024, 2656, 2480, 16962, 4017, 2100, 1002, 1000, 1000, 1000, 2013, 1062, 17635, 1012, 6922, 12324, 2131, 21823, 18605, 2013, 1062, 17635, 1012, 6922, 12324, 2131, 12274, 7096, 28665, 9331, 3334, 2013, 3229, 8663, 13181, 2140, 1012, 6656, 13153, 2063, 12324, 4395, 29278, 4842, 25481, 2239, 2013, 20228, 5643, 1012, 3417, 13461, 1012, 19706, 12324, 12997, 11589, 7485, 24805, 4590, 2013, 20228, 5643, 1012, 3417, 13461, 1012, 19706, 12324, 12997, 11589, 7485, 12054, 24838, 2863, 14853, 2013, 3688, 1012, 4642, 11329, 5686, 1012, 21183, 12146, 12324, 2131, 3406, 4747, 3762, 18442, 2013, 3688, 1012, 4642, 2546, 17048, 9031, 1012, 9530, 8873, 2290, 12324, 6741, 1035, 2171, 2013, 3688, 1012, 4642, 2546, 17048, 9031, 1012, 9530, 8873, 2290, 12324, 3417, 7485, 1035, 2171, 2013, 3688, 1012, 4642, 2546, 17048, 9031, 1012, 26828, 3406, 4747, 12324, 8909, 2004, 6994, 1035, 8909, 2013, 3688, 1012, 4642, 2546, 17048, 9031, 1012, 6656, 2015, 12324, 4942, 29234, 1035, 6656, 2013, 3688, 1012, 4642, 2546, 17048, 9031, 1012, 5852, 1012, 20228, 5643, 22199, 12618, 9333, 2121, 12324, 16602, 2013, 3688, 1012, 4642, 2546, 17048, 9031, 1012, 5852, 1012, 2918, 12324, 4642, 2546, 17048, 9031, 22199, 18382, 2465, 3231, 7076, 9080, 13490, 1006, 4642, 2546, 17048, 9031, 22199, 18382, 1007, 1024, 1000, 1000, 1000, 2191, 2469, 2008, 1996, 4031, 2003, 7919, 5361, 1012, 1000, 1000, 1000, 13366, 2044, 13462, 6279, 1006, 2969, 1007, 1024, 3413, 13366, 3231, 3406, 20872, 12399, 2063, 1006, 2969, 1007, 1024, 30524, 1006, 2969, 1007, 1024, 14708, 1027, 2131, 3406, 4747, 3762, 18442, 1006, 2969, 1012, 9445, 1010, 1005, 9445, 1035, 21049, 1005, 1007, 2005, 3096, 1010, 9014, 1999, 14708, 1012, 1035, 4152, 12260, 22014, 1006, 1007, 1012, 5167, 1006, 1007, 1024, 9014, 1027, 9014, 1012, 3975, 1006, 1005, 1010, 1005, 1007, 2969, 1012, 8246, 4609, 3238, 1006, 6741, 1035, 2171, 1999, 9014, 1007, 2969, 1012, 8246, 4609, 3238, 1006, 6741, 1035, 2171, 1999, 14708, 1012, 4874, 9821, 1006, 1007, 1007, 13366, 3231, 6442, 7485, 9336, 4783, 4215, 5732, 1006, 2969, 1007, 1024, 2918, 1035, 24471, 2140, 1027, 2969, 1012, 9445, 1012, 7619, 1035, 24471, 2140, 1006, 1007, 2005, 2171, 1999, 1006, 1005, 20228, 5643, 1012, 2187, 25778, 2819, 2078, 1005, 1010, 1005, 20228, 5643, 1012, 2157, 25778, 2819, 2078, 1005, 1007, 1024, 3208, 1027, 2131, 21823, 18605, 1006, 12997, 11589, 7485, 24805, 4590, 1010, 2171, 1027, 2171, 1010, 6123, 1027, 2969, 1012, 9445, 1007, 4486, 1027, 1031, 1052, 1012, 2516, 2005, 1052, 1999, 3208, 1012, 2131, 4215, 20782, 6442, 20897, 18863, 2015, 1006, 1007, 1033, 2969, 1012, 8246, 4609, 3238, 1006, 3417, 7485, 1035, 30523, 9445, 1027, 2969, 1012, 9445, 6994, 1027, 2131, 3406, 4747, 3762, 18442, 1006, 2969, 1012, 9445, 1010, 6994, 1035, 8909, 1007, 2969, 1012, 8246, 4609, 3238, 1006, 6994, 2003, 2025, 3904, 1007, 13366, 5852, 4939, 24314, 2923, 5886, 2063, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 9445, 1027, 2969, 1012, 9445, 6994, 1027, 2131, 3406, 4747, 3762, 18442, 1006, 2969, 1012, 9445, 1010, 6994, 1035, 8909, 1007, 2969, 1012, 8246, 4609, 3238, 1006, 6994, 2003, 2025, 3904, 1007, 13366, 5852, 4939, 24314, 2923, 5886, 2063, 30526 ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Boost.Geometry (aka GGL, Generic Geometry Library)</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head> <table cellpadding="2" width="100%"> <tbody> <tr> <td valign="top"> <img alt="Boost.Geometry" src="images/ggl-logo-big.png" height="80" width="200"> &nbsp;&nbsp; </td> <td valign="top" align="right"> <a href="http://www.boost.org"> <img alt="Boost C++ Libraries" src="images/accepted_by_boost.png" height="80" width="230" border="0"> </a> </td> </tr> </tbody> </table> <!-- Generated by Doxygen 1.8.6 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_75b82e7e4a5feb05200b9ad7adf06257.html">home</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">home Directory Reference</div> </div> </div><!--header--> <div class="contents"> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="subdirs"></a> Directories</h2></td></tr> <tr class="memitem:dir_bacb04149764cbf6394e26ac332ca39a"><td class="memItemLeft" align="right" valign="top">directory &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dir_bacb04149764cbf6394e26ac332ca39a.html">travis</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> </div><!-- contents --> <hr size="1"> <table width="100%"> <tbody> <tr> <td align="left"><small> <p>April 2, 2011</p> </small></td> <td align="right"> <small> Copyright &copy; 2007-2011 Barend Gehrels, Amsterdam, the Netherlands<br> Copyright &copy; 2008-2011 Bruno Lalande, Paris, France<br> Copyright &copy; 2009-2010 Mateusz Loskot, London, UK<br> </small> </td> </tr> </tbody> </table> <address style="text-align: right;"><small> Documentation is generated by&nbsp;<a href="http://www.doxygen.org/index.html">Doxygen</a> </small></address> </body> </html>
FFMG/myoddweb.piger
myodd/boost/libs/geometry/doc/doxy/doxygen_output/html_by_doxygen/dir_75b82e7e4a5feb05200b9ad7adf06257.html
HTML
gpl-2.0
2,644
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 16129, 1018, 1012, 5890, 17459, 1013, 1013, 4372, 1000, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 30524, 1043, 23296, 1010, 12391, 10988, 3075, 1007, 1026, 1013, 2516, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 2079, 18037, 6914, 1012, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 21628, 2015, 1012, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 1028, 1026, 1013, 2132, 1028, 1026, 2795, 3526, 15455, 4667, 1027, 1000, 1016, 1000, 9381, 1027, 1000, 2531, 1003, 1000, 1028, 1026, 26419, 7716, 2100, 1028, 1026, 19817, 1028, 1026, 14595, 11748, 23773, 1027, 1000, 2327, 1000, 1028, 1026, 10047, 2290, 12456, 1027, 1000, 12992, 1012, 10988, 1000, 5034, 2278, 1027, 1000, 4871, 1013, 1043, 23296, 1011, 8154, 1011, 2502, 1012, 1052, 3070, 1000, 4578, 1027, 1000, 3770, 1000, 9381, 1027, 1000, 3263, 1000, 1028, 1004, 1050, 5910, 2361, 1025, 1004, 1050, 5910, 2361, 1025, 1026, 1013, 14595, 1028, 1026, 14595, 11748, 23773, 1027, 1000, 2327, 1000, 25705, 1027, 1000, 2157, 1000, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 12992, 1012, 8917, 1000, 1028, 1026, 10047, 2290, 12456, 1027, 1000, 12992, 1039, 1009, 1009, 8860, 1000, 5034, 2278, 1027, 1000, 4871, 1013, 3970, 1035, 2011, 1035, 12992, 1012, 1052, 3070, 1000, 4578, 1027, 1000, 3770, 1000, 9381, 1027, 1000, 11816, 1000, 3675, 1027, 1000, 1014, 1000, 1028, 1026, 1013, 1037, 1028, 1026, 1013, 14595, 1028, 1026, 1013, 19817, 1028, 1026, 1013, 26419, 7716, 2100, 1028, 1026, 1013, 2795, 1028, 1026, 999, 1011, 1011, 7013, 2011, 2079, 18037, 6914, 1015, 1012, 1022, 1012, 1020, 1011, 1011, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 6583, 19716, 5004, 2487, 1000, 2465, 1027, 1000, 21628, 2015, 1000, 1028, 1026, 17359, 2465, 1027, 1000, 21628, 9863, 1000, 1028, 1026, 5622, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 5950, 1012, 16129, 1000, 1028, 1026, 8487, 1028, 2364, 1004, 1001, 8148, 1025, 3931, 1026, 1013, 8487, 1028, 1026, 1013, 1037, 1028, 1026, 1013, 5622, 1028, 1026, 5622, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 5530, 1012, 16129, 1000, 1028, 1026, 8487, 1028, 3141, 1004, 1001, 8148, 1025, 5530, 1026, 1013, 8487, 1028, 1026, 1013, 1037, 1028, 1026, 1013, 5622, 1028, 1026, 5622, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 14184, 1012, 16129, 1000, 1028, 1026, 8487, 1028, 14184, 1026, 1013, 8487, 1028, 1026, 1013, 1037, 1028, 1026, 1013, 5622, 1028, 1026, 5622, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 3415, 15327, 2015, 1012, 16129, 1000, 1028, 1026, 8487, 1028, 3415, 15327, 2015, 1026, 1013, 8487, 1028, 1026, 1013, 30523, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 11163, 1011, 6070, 28154, 1011, 1015, 1000, 1028, 1026, 2516, 1028, 12992, 1012, 10988, 1006, 9875, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 11163, 1011, 6070, 28154, 1011, 1015, 1000, 1028, 1026, 2516, 1028, 12992, 1012, 10988, 1006, 9875, 30526 ]
<ul> <li><a ui-sref-active="active" ui-sref="wheel">{{ 'WHEEL' | translate }}</a></li> <li><a ui-sref-active="active" ui-sref="participants">{{ 'PARTICIPANTS' | translate }}</a></li> <li><a ui-sref-active="active" ui-sref="winners">{{ 'WINNERS' | translate }}</a></li> </ul>
finanzcheck/wheel-of-fortune
lib/navigation/views/navigation.html
HTML
mit
287
[ 30522, 1026, 17359, 1028, 1026, 5622, 1028, 1026, 1037, 21318, 1011, 5034, 12879, 1011, 3161, 1027, 1000, 3161, 1000, 21318, 1011, 5034, 12879, 1027, 1000, 5217, 1000, 1028, 1063, 1063, 1005, 5217, 1005, 1064, 17637, 1065, 1065, 1026, 1013, 1037, 1028, 1026, 1013, 5622, 1028, 1026, 5622, 1028, 1026, 1037, 21318, 1011, 5034, 12879, 1011, 3161, 1027, 1000, 3161, 1000, 21318, 1011, 5034, 12879, 1027, 1000, 6818, 1000, 1028, 1063, 1063, 1005, 6818, 1005, 1064, 17637, 1065, 1065, 1026, 1013, 1037, 1028, 1026, 1013, 5622, 1028, 1026, 5622, 1028, 1026, 1037, 21318, 1011, 5034, 12879, 1011, 3161, 1027, 1000, 3161, 1000, 21318, 1011, 5034, 12879, 1027, 1000, 4791, 1000, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "./"; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var _addClass = __webpack_require__(25); var _addClass2 = _interopRequireDefault(_addClass); var _removeClass = __webpack_require__(26); var _removeClass2 = _interopRequireDefault(_removeClass); var _after = __webpack_require__(96); var _after2 = _interopRequireDefault(_after); var _browser = __webpack_require__(97); var _browser2 = _interopRequireDefault(_browser); var _fix = __webpack_require__(98); var _fix2 = _interopRequireDefault(_fix); var _util = __webpack_require__(27); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // fix hexo 不支持的配置 function isPathMatch(path, href) { var reg = /\/|index.html/g; return path.replace(reg, '') === href.replace(reg, ''); } // 浏览器判断 function tabActive() { var $tabs = document.querySelectorAll('.js-header-menu li a'); var path = window.location.pathname; for (var i = 0, len = $tabs.length; i < len; i++) { var $tab = $tabs[i]; if (isPathMatch(path, $tab.getAttribute('href'))) { (0, _addClass2.default)($tab, 'active'); } } } function getElementLeft(element) { var actualLeft = element.offsetLeft; var current = element.offsetParent; while (current !== null) { actualLeft += current.offsetLeft; current = current.offsetParent; } return actualLeft; } function getElementTop(element) { var actualTop = element.offsetTop; var current = element.offsetParent; while (current !== null) { actualTop += current.offsetTop; current = current.offsetParent; } return actualTop; } function scrollStop($dom, top, limit, zIndex, diff) { var nowLeft = getElementLeft($dom); var nowTop = getElementTop($dom) - top; if (nowTop - limit <= diff) { var $newDom = $dom.$newDom; if (!$newDom) { $newDom = $dom.cloneNode(true); (0, _after2.default)($dom, $newDom); $dom.$newDom = $newDom; $newDom.style.position = 'fixed'; $newDom.style.top = (limit || nowTop) + 'px'; $newDom.style.left = nowLeft + 'px'; $newDom.style.zIndex = zIndex || 2; $newDom.style.width = '100%'; $newDom.style.color = '#fff'; } $newDom.style.visibility = 'visible'; $dom.style.visibility = 'hidden'; } else { $dom.style.visibility = 'visible'; var _$newDom = $dom.$newDom; if (_$newDom) { _$newDom.style.visibility = 'hidden'; } } } function handleScroll() { var $overlay = document.querySelector('.js-overlay'); var $menu = document.querySelector('.js-header-menu'); scrollStop($overlay, document.body.scrollTop, -63, 2, 0); scrollStop($menu, document.body.scrollTop, 1, 3, 0); } function bindScroll() { document.querySelector('#container').addEventListener('scroll', function (e) { handleScroll(); }); window.addEventListener('scroll', function (e) { handleScroll(); }); handleScroll(); } function init() { if (_browser2.default.versions.mobile && window.screen.width < 800) { tabActive(); bindScroll(); } } init(); (0, _util.addLoadEvent)(function () { _fix2.default.init(); }); module.exports = {}; /***/ }, /* 1 */, /* 2 */, /* 3 */, /* 4 */, /* 5 */, /* 6 */, /* 7 */, /* 8 */, /* 9 */, /* 10 */, /* 11 */, /* 12 */, /* 13 */, /* 14 */, /* 15 */, /* 16 */, /* 17 */, /* 18 */, /* 19 */, /* 20 */, /* 21 */, /* 22 */, /* 23 */, /* 24 */, /* 25 */ /***/ function(module, exports) { /** * addClass : addClass(el, className) * Adds a class name to an element. Compare with `$.fn.addClass`. * * var addClass = require('dom101/add-class'); * * addClass(el, 'active'); */ function addClass (el, className) { if (el.classList) { el.classList.add(className); } else { el.className += ' ' + className; } } module.exports = addClass; /***/ }, /* 26 */ /***/ function(module, exports) { /** * removeClass : removeClass(el, className) * Removes a classname. * * var removeClass = require('dom101/remove-class'); * * el.className = 'selected active'; * removeClass(el, 'active'); * * el.className * => "selected" */ function removeClass (el, className) { if (el.classList) { el.classList.remove(className); } else { var expr = new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'); el.className = el.className.replace(expr, ' '); } } module.exports = removeClass; /***/ }, /* 27 */ /***/ function(module, exports, __webpack_require__) { "use strict"; var _typeof2 = __webpack_require__(28); var _typeof3 = _interopRequireDefault(_typeof2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var e = function () { function r(e, r, n) { return r || n ? String.fromCharCode(r || n) : u[e] || e; } function n(e) { return p[e]; } var t = /&quot;|&lt;|&gt;|&amp;|&nbsp;|&apos;|&#(\d+);|&#(\d+)/g, o = /['<> "&]/g, u = { "&quot;": '"', "&lt;": "<", "&gt;": ">", "&amp;": "&", "&nbsp;": " " }, c = /\u00a0/g, a = /<br\s*\/?>/gi, i = /\r?\n/g, f = /\s/g, p = {}; for (var s in u) { p[u[s]] = s; }return u["&apos;"] = "'", p["'"] = "&#39;", { encode: function encode(e) { return e ? ("" + e).replace(o, n).replace(i, "<br/>").replace(f, "&nbsp;") : ""; }, decode: function decode(e) { return e ? ("" + e).replace(a, "\n").replace(t, r).replace(c, " ") : ""; }, encodeBase16: function encodeBase16(e) { if (!e) return e; e += ""; for (var r = [], n = 0, t = e.length; t > n; n++) { r.push(e.charCodeAt(n).toString(16).toUpperCase()); }return r.join(""); }, encodeBase16forJSON: function encodeBase16forJSON(e) { if (!e) return e; e = e.replace(/[\u4E00-\u9FBF]/gi, function (e) { return escape(e).replace("%u", "\\u"); }); for (var r = [], n = 0, t = e.length; t > n; n++) { r.push(e.charCodeAt(n).toString(16).toUpperCase()); }return r.join(""); }, decodeBase16: function decodeBase16(e) { if (!e) return e; e += ""; for (var r = [], n = 0, t = e.length; t > n; n += 2) { r.push(String.fromCharCode("0x" + e.slice(n, n + 2))); }return r.join(""); }, encodeObject: function encodeObject(r) { if (r instanceof Array) for (var n = 0, t = r.length; t > n; n++) { r[n] = e.encodeObject(r[n]); } else if ("object" == (typeof r === "undefined" ? "undefined" : (0, _typeof3.default)(r))) for (var o in r) { r[o] = e.encodeObject(r[o]); } else if ("string" == typeof r) return e.encode(r); return r; }, loadScript: function loadScript(path) { var $script = document.createElement('script'); document.getElementsByTagName('body')[0].appendChild($script); $script.setAttribute('src', path); }, addLoadEvent: function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != "function") { window.onload = func; } else { window.onload = function () { oldonload(); func(); }; } } }; }(); module.exports = e; /***/ }, /* 28 */ /***/ function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _iterator = __webpack_require__(29); var _iterator2 = _interopRequireDefault(_iterator); var _symbol = __webpack_require__(80); var _symbol2 = _interopRequireDefault(_symbol); var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { return typeof obj === "undefined" ? "undefined" : _typeof(obj); } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); }; /***/ }, /* 29 */ /***/ function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(30), __esModule: true }; /***/ }, /* 30 */ /***/ function(module, exports, __webpack_require__) { __webpack_require__(31); __webpack_require__(75); module.exports = __webpack_require__(79).f('iterator'); /***/ }, /* 31 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $at = __webpack_require__(32)(true); // 21.1.3.27 String.prototype[@@iterator]() __webpack_require__(35)(String, 'String', function(iterated){ this._t = String(iterated); // target this._i = 0; // next index // 21.1.5.2.1 %StringIteratorPrototype%.next() }, function(){ var O = this._t , index = this._i , point; if(index >= O.length)return {value: undefined, done: true}; point = $at(O, index); this._i += point.length; return {value: point, done: false}; }); /***/ }, /* 32 */ /***/ function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(33) , defined = __webpack_require__(34); // true -> String#at // false -> String#codePointAt module.exports = function(TO_STRING){ return function(that, pos){ var s = String(defined(that)) , i = toInteger(pos) , l = s.length , a, b; if(i < 0 || i >= l)return TO_STRING ? '' : undefined; a = s.charCodeAt(i); return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; /***/ }, /* 33 */ /***/ function(module, exports) { // 7.1.4 ToInteger var ceil = Math.ceil , floor = Math.floor; module.exports = function(it){ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; /***/ }, /* 34 */ /***/ function(module, exports) { // 7.2.1 RequireObjectCoercible(argument) module.exports = function(it){ if(it == undefined)throw TypeError("Can't call method on " + it); return it; }; /***/ }, /* 35 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var LIBRARY = __webpack_require__(36) , $export = __webpack_require__(37) , redefine = __webpack_require__(52) , hide = __webpack_require__(42) , has = __webpack_require__(53) , Iterators = __webpack_require__(54) , $iterCreate = __webpack_require__(55) , setToStringTag = __webpack_require__(71) , getPrototypeOf = __webpack_require__(73) , ITERATOR = __webpack_require__(72)('iterator') , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next` , FF_ITERATOR = '@@iterator' , KEYS = 'keys' , VALUES = 'values'; var returnThis = function(){ return this; }; module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){ $iterCreate(Constructor, NAME, next); var getMethod = function(kind){ if(!BUGGY && kind in proto)return proto[kind]; switch(kind){ case KEYS: return function keys(){ return new Constructor(this, kind); }; case VALUES: return function values(){ return new Constructor(this, kind); }; } return function entries(){ return new Constructor(this, kind); }; }; var TAG = NAME + ' Iterator' , DEF_VALUES = DEFAULT == VALUES , VALUES_BUG = false , proto = Base.prototype , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT] , $default = $native || getMethod(DEFAULT) , $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined , $anyNative = NAME == 'Array' ? proto.entries || $native : $native , methods, key, IteratorPrototype; // Fix native if($anyNative){ IteratorPrototype = getPrototypeOf($anyNative.call(new Base)); if(IteratorPrototype !== Object.prototype){ // Set @@toStringTag to native iterators setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis); } } // fix Array#{values, @@iterator}.name in V8 / FF if(DEF_VALUES && $native && $native.name !== VALUES){ VALUES_BUG = true; $default = function values(){ return $native.call(this); }; } // Define iterator if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){ hide(proto, ITERATOR, $default); } // Plug for library Iterators[NAME] = $default; Iterators[TAG] = returnThis; if(DEFAULT){ methods = { values: DEF_VALUES ? $default : getMethod(VALUES), keys: IS_SET ? $default : getMethod(KEYS), entries: $entries }; if(FORCED)for(key in methods){ if(!(key in proto))redefine(proto, key, methods[key]); } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); } return methods; }; /***/ }, /* 36 */ /***/ function(module, exports) { module.exports = true; /***/ }, /* 37 */ /***/ function(module, exports, __webpack_require__) { var global = __webpack_require__(38) , core = __webpack_require__(39) , ctx = __webpack_require__(40) , hide = __webpack_require__(42) , PROTOTYPE = 'prototype'; var $export = function(type, name, source){ var IS_FORCED = type & $export.F , IS_GLOBAL = type & $export.G , IS_STATIC = type & $export.S , IS_PROTO = type & $export.P , IS_BIND = type & $export.B , IS_WRAP = type & $export.W , exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) , expProto = exports[PROTOTYPE] , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE] , key, own, out; if(IS_GLOBAL)source = name; for(key in source){ // contains in native own = !IS_FORCED && target && target[key] !== undefined; if(own && key in exports)continue; // export native or passed out = own ? target[key] : source[key]; // prevent global pollution for namespaces exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] // bind timers to global for call from export context : IS_BIND && own ? ctx(out, global) // wrap global constructors for prevent change them in library : IS_WRAP && target[key] == out ? (function(C){ var F = function(a, b, c){ if(this instanceof C){ switch(arguments.length){ case 0: return new C; case 1: return new C(a); case 2: return new C(a, b); } return new C(a, b, c); } return C.apply(this, arguments); }; F[PROTOTYPE] = C[PROTOTYPE]; return F; // make static versions for prototype methods })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% if(IS_PROTO){ (exports.virtual || (exports.virtual = {}))[key] = out; // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out); } } }; // type bitmap $export.F = 1; // forced $export.G = 2; // global $export.S = 4; // static $export.P = 8; // proto $export.B = 16; // bind $export.W = 32; // wrap $export.U = 64; // safe $export.R = 128; // real proto method for `library` module.exports = $export; /***/ }, /* 38 */ /***/ function(module, exports) { // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef /***/ }, /* 39 */ /***/ function(module, exports) { var core = module.exports = {version: '2.4.0'}; if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef /***/ }, /* 40 */ /***/ function(module, exports, __webpack_require__) { // optional / simple context binding var aFunction = __webpack_require__(41); module.exports = function(fn, that, length){ aFunction(fn); if(that === undefined)return fn; switch(length){ case 1: return function(a){ return fn.call(that, a); }; case 2: return function(a, b){ return fn.call(that, a, b); }; case 3: return function(a, b, c){ return fn.call(that, a, b, c); }; } return function(/* ...args */){ return fn.apply(that, arguments); }; }; /***/ }, /* 41 */ /***/ function(module, exports) { module.exports = function(it){ if(typeof it != 'function')throw TypeError(it + ' is not a function!'); return it; }; /***/ }, /* 42 */ /***/ function(module, exports, __webpack_require__) { var dP = __webpack_require__(43) , createDesc = __webpack_require__(51); module.exports = __webpack_require__(47) ? function(object, key, value){ return dP.f(object, key, createDesc(1, value)); } : function(object, key, value){ object[key] = value; return object; }; /***/ }, /* 43 */ /***/ function(module, exports, __webpack_require__) { var anObject = __webpack_require__(44) , IE8_DOM_DEFINE = __webpack_require__(46) , toPrimitive = __webpack_require__(50) , dP = Object.defineProperty; exports.f = __webpack_require__(47) ? Object.defineProperty : function defineProperty(O, P, Attributes){ anObject(O); P = toPrimitive(P, true); anObject(Attributes); if(IE8_DOM_DEFINE)try { return dP(O, P, Attributes); } catch(e){ /* empty */ } if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); if('value' in Attributes)O[P] = Attributes.value; return O; }; /***/ }, /* 44 */ /***/ function(module, exports, __webpack_require__) { var isObject = __webpack_require__(45); module.exports = function(it){ if(!isObject(it))throw TypeError(it + ' is not an object!'); return it; }; /***/ }, /* 45 */ /***/ function(module, exports) { module.exports = function(it){ return typeof it === 'object' ? it !== null : typeof it === 'function'; }; /***/ }, /* 46 */ /***/ function(module, exports, __webpack_require__) { module.exports = !__webpack_require__(47) && !__webpack_require__(48)(function(){ return Object.defineProperty(__webpack_require__(49)('div'), 'a', {get: function(){ return 7; }}).a != 7; }); /***/ }, /* 47 */ /***/ function(module, exports, __webpack_require__) { // Thank's IE8 for his funny defineProperty module.exports = !__webpack_require__(48)(function(){ return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; }); /***/ }, /* 48 */ /***/ function(module, exports) { module.exports = function(exec){ try { return !!exec(); } catch(e){ return true; } }; /***/ }, /* 49 */ /***/ function(module, exports, __webpack_require__) { var isObject = __webpack_require__(45) , document = __webpack_require__(38).document // in old IE typeof document.createElement is 'object' , is = isObject(document) && isObject(document.createElement); module.exports = function(it){ return is ? document.createElement(it) : {}; }; /***/ }, /* 50 */ /***/ function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) var isObject = __webpack_require__(45); // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string module.exports = function(it, S){ if(!isObject(it))return it; var fn, val; if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val; if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; throw TypeError("Can't convert object to primitive value"); }; /***/ }, /* 51 */ /***/ function(module, exports) { module.exports = function(bitmap, value){ return { enumerable : !(bitmap & 1), configurable: !(bitmap & 2), writable : !(bitmap & 4), value : value }; }; /***/ }, /* 52 */ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(42); /***/ }, /* 53 */ /***/ function(module, exports) { var hasOwnProperty = {}.hasOwnProperty; module.exports = function(it, key){ return hasOwnProperty.call(it, key); }; /***/ }, /* 54 */ /***/ function(module, exports) { module.exports = {}; /***/ }, /* 55 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var create = __webpack_require__(56) , descriptor = __webpack_require__(51) , setToStringTag = __webpack_require__(71) , IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() __webpack_require__(42)(IteratorPrototype, __webpack_require__(72)('iterator'), function(){ return this; }); module.exports = function(Constructor, NAME, next){ Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)}); setToStringTag(Constructor, NAME + ' Iterator'); }; /***/ }, /* 56 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = __webpack_require__(44) , dPs = __webpack_require__(57) , enumBugKeys = __webpack_require__(69) , IE_PROTO = __webpack_require__(66)('IE_PROTO') , Empty = function(){ /* empty */ } , PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype var createDict = function(){ // Thrash, waste and sodomy: IE GC bug var iframe = __webpack_require__(49)('iframe') , i = enumBugKeys.length , lt = '<' , gt = '>' , iframeDocument; iframe.style.display = 'none'; __webpack_require__(70).appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); iframeDocument.close(); createDict = iframeDocument.F; while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]]; return createDict(); }; module.exports = Object.create || function create(O, Properties){ var result; if(O !== null){ Empty[PROTOTYPE] = anObject(O); result = new Empty; Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; } else result = createDict(); return Properties === undefined ? result : dPs(result, Properties); }; /***/ }, /* 57 */ /***/ function(module, exports, __webpack_require__) { var dP = __webpack_require__(43) , anObject = __webpack_require__(44) , getKeys = __webpack_require__(58); module.exports = __webpack_require__(47) ? Object.defineProperties : function defineProperties(O, Properties){ anObject(O); var keys = getKeys(Properties) , length = keys.length , i = 0 , P; while(length > i)dP.f(O, P = keys[i++], Properties[P]); return O; }; /***/ }, /* 58 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.14 / 15.2.3.14 Object.keys(O) var $keys = __webpack_require__(59) , enumBugKeys = __webpack_require__(69); module.exports = Object.keys || function keys(O){ return $keys(O, enumBugKeys); }; /***/ }, /* 59 */ /***/ function(module, exports, __webpack_require__) { var has = __webpack_require__(53) , toIObject = __webpack_require__(60) , arrayIndexOf = __webpack_require__(63)(false) , IE_PROTO = __webpack_require__(66)('IE_PROTO'); module.exports = function(object, names){ var O = toIObject(object) , i = 0 , result = [] , key; for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key); // Don't enum bug & hidden keys while(names.length > i)if(has(O, key = names[i++])){ ~arrayIndexOf(result, key) || result.push(key); } return result; }; /***/ }, /* 60 */ /***/ function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings var IObject = __webpack_require__(61) , defined = __webpack_require__(34); module.exports = function(it){ return IObject(defined(it)); }; /***/ }, /* 61 */ /***/ function(module, exports, __webpack_require__) { // fallback for non-array-like ES3 and non-enumerable old V8 strings var cof = __webpack_require__(62); module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ return cof(it) == 'String' ? it.split('') : Object(it); }; /***/ }, /* 62 */ /***/ function(module, exports) { var toString = {}.toString; module.exports = function(it){ return toString.call(it).slice(8, -1); }; /***/ }, /* 63 */ /***/ function(module, exports, __webpack_require__) { // false -> Array#indexOf // true -> Array#includes var toIObject = __webpack_require__(60) , toLength = __webpack_require__(64) , toIndex = __webpack_require__(65); module.exports = function(IS_INCLUDES){ return function($this, el, fromIndex){ var O = toIObject($this) , length = toLength(O.length) , index = toIndex(fromIndex, length) , value; // Array#includes uses SameValueZero equality algorithm if(IS_INCLUDES && el != el)while(length > index){ value = O[index++]; if(value != value)return true; // Array#toIndex ignores holes, Array#includes - not } else for(;length > index; index++)if(IS_INCLUDES || index in O){ if(O[index] === el)return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; /***/ }, /* 64 */ /***/ function(module, exports, __webpack_require__) { // 7.1.15 ToLength var toInteger = __webpack_require__(33) , min = Math.min; module.exports = function(it){ return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; /***/ }, /* 65 */ /***/ function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(33) , max = Math.max , min = Math.min; module.exports = function(index, length){ index = toInteger(index); return index < 0 ? max(index + length, 0) : min(index, length); }; /***/ }, /* 66 */ /***/ function(module, exports, __webpack_require__) { var shared = __webpack_require__(67)('keys') , uid = __webpack_require__(68); module.exports = function(key){ return shared[key] || (shared[key] = uid(key)); }; /***/ }, /* 67 */ /***/ function(module, exports, __webpack_require__) { var global = __webpack_require__(38) , SHARED = '__core-js_shared__' , store = global[SHARED] || (global[SHARED] = {}); module.exports = function(key){ return store[key] || (store[key] = {}); }; /***/ }, /* 68 */ /***/ function(module, exports) { var id = 0 , px = Math.random(); module.exports = function(key){ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; /***/ }, /* 69 */ /***/ function(module, exports) { // IE 8- don't enum bug keys module.exports = ( 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' ).split(','); /***/ }, /* 70 */ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(38).document && document.documentElement; /***/ }, /* 71 */ /***/ function(module, exports, __webpack_require__) { var def = __webpack_require__(43).f , has = __webpack_require__(53) , TAG = __webpack_require__(72)('toStringTag'); module.exports = function(it, tag, stat){ if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag}); }; /***/ }, /* 72 */ /***/ function(module, exports, __webpack_require__) { var store = __webpack_require__(67)('wks') , uid = __webpack_require__(68) , Symbol = __webpack_require__(38).Symbol , USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function(name){ return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; /***/ }, /* 73 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) var has = __webpack_require__(53) , toObject = __webpack_require__(74) , IE_PROTO = __webpack_require__(66)('IE_PROTO') , ObjectProto = Object.prototype; module.exports = Object.getPrototypeOf || function(O){ O = toObject(O); if(has(O, IE_PROTO))return O[IE_PROTO]; if(typeof O.constructor == 'function' && O instanceof O.constructor){ return O.constructor.prototype; } return O instanceof Object ? ObjectProto : null; }; /***/ }, /* 74 */ /***/ function(module, exports, __webpack_require__) { // 7.1.13 ToObject(argument) var defined = __webpack_require__(34); module.exports = function(it){ return Object(defined(it)); }; /***/ }, /* 75 */ /***/ function(module, exports, __webpack_require__) { __webpack_require__(76); var global = __webpack_require__(38) , hide = __webpack_require__(42) , Iterators = __webpack_require__(54) , TO_STRING_TAG = __webpack_require__(72)('toStringTag'); for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){ var NAME = collections[i] , Collection = global[NAME] , proto = Collection && Collection.prototype; if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME); Iterators[NAME] = Iterators.Array; } /***/ }, /* 76 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var addToUnscopables = __webpack_require__(77) , step = __webpack_require__(78) , Iterators = __webpack_require__(54) , toIObject = __webpack_require__(60); // 22.1.3.4 Array.prototype.entries() // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() module.exports = __webpack_require__(35)(Array, 'Array', function(iterated, kind){ this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind // 22.1.5.2.1 %ArrayIteratorPrototype%.next() }, function(){ var O = this._t , kind = this._k , index = this._i++; if(!O || index >= O.length){ this._t = undefined; return step(1); } if(kind == 'keys' )return step(0, index); if(kind == 'values')return step(0, O[index]); return step(0, [index, O[index]]); }, 'values'); // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) Iterators.Arguments = Iterators.Array; addToUnscopables('keys'); addToUnscopables('values'); addToUnscopables('entries'); /***/ }, /* 77 */ /***/ function(module, exports) { module.exports = function(){ /* empty */ }; /***/ }, /* 78 */ /***/ function(module, exports) { module.exports = function(done, value){ return {value: value, done: !!done}; }; /***/ }, /* 79 */ /***/ function(module, exports, __webpack_require__) { exports.f = __webpack_require__(72); /***/ }, /* 80 */ /***/ function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(81), __esModule: true }; /***/ }, /* 81 */ /***/ function(module, exports, __webpack_require__) { __webpack_require__(82); __webpack_require__(93); __webpack_require__(94); __webpack_require__(95); module.exports = __webpack_require__(39).Symbol; /***/ }, /* 82 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; // ECMAScript 6 symbols shim var global = __webpack_require__(38) , has = __webpack_require__(53) , DESCRIPTORS = __webpack_require__(47) , $export = __webpack_require__(37) , redefine = __webpack_require__(52) , META = __webpack_require__(83).KEY , $fails = __webpack_require__(48) , shared = __webpack_require__(67) , setToStringTag = __webpack_require__(71) , uid = __webpack_require__(68) , wks = __webpack_require__(72) , wksExt = __webpack_require__(79) , wksDefine = __webpack_require__(84) , keyOf = __webpack_require__(85) , enumKeys = __webpack_require__(86) , isArray = __webpack_require__(89) , anObject = __webpack_require__(44) , toIObject = __webpack_require__(60) , toPrimitive = __webpack_require__(50) , createDesc = __webpack_require__(51) , _create = __webpack_require__(56) , gOPNExt = __webpack_require__(90) , $GOPD = __webpack_require__(92) , $DP = __webpack_require__(43) , $keys = __webpack_require__(58) , gOPD = $GOPD.f , dP = $DP.f , gOPN = gOPNExt.f , $Symbol = global.Symbol , $JSON = global.JSON , _stringify = $JSON && $JSON.stringify , PROTOTYPE = 'prototype' , HIDDEN = wks('_hidden') , TO_PRIMITIVE = wks('toPrimitive') , isEnum = {}.propertyIsEnumerable , SymbolRegistry = shared('symbol-registry') , AllSymbols = shared('symbols') , OPSymbols = shared('op-symbols') , ObjectProto = Object[PROTOTYPE] , USE_NATIVE = typeof $Symbol == 'function' , QObject = global.QObject; // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 var setSymbolDesc = DESCRIPTORS && $fails(function(){ return _create(dP({}, 'a', { get: function(){ return dP(this, 'a', {value: 7}).a; } })).a != 7; }) ? function(it, key, D){ var protoDesc = gOPD(ObjectProto, key); if(protoDesc)delete ObjectProto[key]; dP(it, key, D); if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc); } : dP; var wrap = function(tag){ var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); sym._k = tag; return sym; }; var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){ return typeof it == 'symbol'; } : function(it){ return it instanceof $Symbol; }; var $defineProperty = function defineProperty(it, key, D){ if(it === ObjectProto)$defineProperty(OPSymbols, key, D); anObject(it); key = toPrimitive(key, true); anObject(D); if(has(AllSymbols, key)){ if(!D.enumerable){ if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {})); it[HIDDEN][key] = true; } else { if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false; D = _create(D, {enumerable: createDesc(0, false)}); } return setSymbolDesc(it, key, D); } return dP(it, key, D); }; var $defineProperties = function defineProperties(it, P){ anObject(it); var keys = enumKeys(P = toIObject(P)) , i = 0 , l = keys.length , key; while(l > i)$defineProperty(it, key = keys[i++], P[key]); return it; }; var $create = function create(it, P){ return P === undefined ? _create(it) : $defineProperties(_create(it), P); }; var $propertyIsEnumerable = function propertyIsEnumerable(key){ var E = isEnum.call(this, key = toPrimitive(key, true)); if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false; return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; }; var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){ it = toIObject(it); key = toPrimitive(key, true); if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return; var D = gOPD(it, key); if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true; return D; }; var $getOwnPropertyNames = function getOwnPropertyNames(it){ var names = gOPN(toIObject(it)) , result = [] , i = 0 , key; while(names.length > i){ if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key); } return result; }; var $getOwnPropertySymbols = function getOwnPropertySymbols(it){ var IS_OP = it === ObjectProto , names = gOPN(IS_OP ? OPSymbols : toIObject(it)) , result = [] , i = 0 , key; while(names.length > i){ if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]); } return result; }; // 19.4.1.1 Symbol([description]) if(!USE_NATIVE){ $Symbol = function Symbol(){ if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!'); var tag = uid(arguments.length > 0 ? arguments[0] : undefined); var $set = function(value){ if(this === ObjectProto)$set.call(OPSymbols, value); if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false; setSymbolDesc(this, tag, createDesc(1, value)); }; if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set}); return wrap(tag); }; redefine($Symbol[PROTOTYPE], 'toString', function toString(){ return this._k; }); $GOPD.f = $getOwnPropertyDescriptor; $DP.f = $defineProperty; __webpack_require__(91).f = gOPNExt.f = $getOwnPropertyNames; __webpack_require__(88).f = $propertyIsEnumerable; __webpack_require__(87).f = $getOwnPropertySymbols; if(DESCRIPTORS && !__webpack_require__(36)){ redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); } wksExt.f = function(name){ return wrap(wks(name)); } } $export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol}); for(var symbols = ( // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' ).split(','), i = 0; symbols.length > i; )wks(symbols[i++]); for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]); $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { // 19.4.2.1 Symbol.for(key) 'for': function(key){ return has(SymbolRegistry, key += '') ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key); }, // 19.4.2.5 Symbol.keyFor(sym) keyFor: function keyFor(key){ if(isSymbol(key))return keyOf(SymbolRegistry, key); throw TypeError(key + ' is not a symbol!'); }, useSetter: function(){ setter = true; }, useSimple: function(){ setter = false; } }); $export($export.S + $export.F * !USE_NATIVE, 'Object', { // 19.1.2.2 Object.create(O [, Properties]) create: $create, // 19.1.2.4 Object.defineProperty(O, P, Attributes) defineProperty: $defineProperty, // 19.1.2.3 Object.defineProperties(O, Properties) defineProperties: $defineProperties, // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) getOwnPropertyDescriptor: $getOwnPropertyDescriptor, // 19.1.2.7 Object.getOwnPropertyNames(O) getOwnPropertyNames: $getOwnPropertyNames, // 19.1.2.8 Object.getOwnPropertySymbols(O) getOwnPropertySymbols: $getOwnPropertySymbols }); // 24.3.2 JSON.stringify(value [, replacer [, space]]) $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){ var S = $Symbol(); // MS Edge converts symbol values to JSON as {} // WebKit converts symbol values to JSON as null // V8 throws on boxed symbols return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}'; })), 'JSON', { stringify: function stringify(it){ if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined var args = [it] , i = 1 , replacer, $replacer; while(arguments.length > i)args.push(arguments[i++]); replacer = args[1]; if(typeof replacer == 'function')$replacer = replacer; if($replacer || !isArray(replacer))replacer = function(key, value){ if($replacer)value = $replacer.call(this, key, value); if(!isSymbol(value))return value; }; args[1] = replacer; return _stringify.apply($JSON, args); } }); // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(42)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); // 19.4.3.5 Symbol.prototype[@@toStringTag] setToStringTag($Symbol, 'Symbol'); // 20.2.1.9 Math[@@toStringTag] setToStringTag(Math, 'Math', true); // 24.3.3 JSON[@@toStringTag] setToStringTag(global.JSON, 'JSON', true); /***/ }, /* 83 */ /***/ function(module, exports, __webpack_require__) { var META = __webpack_require__(68)('meta') , isObject = __webpack_require__(45) , has = __webpack_require__(53) , setDesc = __webpack_require__(43).f , id = 0; var isExtensible = Object.isExtensible || function(){ return true; }; var FREEZE = !__webpack_require__(48)(function(){ return isExtensible(Object.preventExtensions({})); }); var setMeta = function(it){ setDesc(it, META, {value: { i: 'O' + ++id, // object ID w: {} // weak collections IDs }}); }; var fastKey = function(it, create){ // return primitive with prefix if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; if(!has(it, META)){ // can't set metadata to uncaught frozen object if(!isExtensible(it))return 'F'; // not necessary to add metadata if(!create)return 'E'; // add missing metadata setMeta(it); // return object ID } return it[META].i; }; var getWeak = function(it, create){ if(!has(it, META)){ // can't set metadata to uncaught frozen object if(!isExtensible(it))return true; // not necessary to add metadata if(!create)return false; // add missing metadata setMeta(it); // return hash weak collections IDs } return it[META].w; }; // add metadata on freeze-family methods calling var onFreeze = function(it){ if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it); return it; }; var meta = module.exports = { KEY: META, NEED: false, fastKey: fastKey, getWeak: getWeak, onFreeze: onFreeze }; /***/ }, /* 84 */ /***/ function(module, exports, __webpack_require__) { var global = __webpack_require__(38) , core = __webpack_require__(39) , LIBRARY = __webpack_require__(36) , wksExt = __webpack_require__(79) , defineProperty = __webpack_require__(43).f; module.exports = function(name){ var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)}); }; /***/ }, /* 85 */ /***/ function(module, exports, __webpack_require__) { var getKeys = __webpack_require__(58) , toIObject = __webpack_require__(60); module.exports = function(object, el){ var O = toIObject(object) , keys = getKeys(O) , length = keys.length , index = 0 , key; while(length > index)if(O[key = keys[index++]] === el)return key; }; /***/ }, /* 86 */ /***/ function(module, exports, __webpack_require__) { // all enumerable object keys, includes symbols var getKeys = __webpack_require__(58) , gOPS = __webpack_require__(87) , pIE = __webpack_require__(88); module.exports = function(it){ var result = getKeys(it) , getSymbols = gOPS.f; if(getSymbols){ var symbols = getSymbols(it) , isEnum = pIE.f , i = 0 , key; while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key); } return result; }; /***/ }, /* 87 */ /***/ function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }, /* 88 */ /***/ function(module, exports) { exports.f = {}.propertyIsEnumerable; /***/ }, /* 89 */ /***/ function(module, exports, __webpack_require__) { // 7.2.2 IsArray(argument) var cof = __webpack_require__(62); module.exports = Array.isArray || function isArray(arg){ return cof(arg) == 'Array'; }; /***/ }, /* 90 */ /***/ function(module, exports, __webpack_require__) { // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window var toIObject = __webpack_require__(60) , gOPN = __webpack_require__(91).f , toString = {}.toString; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function(it){ try { return gOPN(it); } catch(e){ return windowNames.slice(); } }; module.exports.f = function getOwnPropertyNames(it){ return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); }; /***/ }, /* 91 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) var $keys = __webpack_require__(59) , hiddenKeys = __webpack_require__(69).concat('length', 'prototype'); exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){ return $keys(O, hiddenKeys); }; /***/ }, /* 92 */ /***/ function(module, exports, __webpack_require__) { var pIE = __webpack_require__(88) , createDesc = __webpack_require__(51) , toIObject = __webpack_require__(60) , toPrimitive = __webpack_require__(50) , has = __webpack_require__(53) , IE8_DOM_DEFINE = __webpack_require__(46) , gOPD = Object.getOwnPropertyDescriptor; exports.f = __webpack_require__(47) ? gOPD : function getOwnPropertyDescriptor(O, P){ O = toIObject(O); P = toPrimitive(P, true); if(IE8_DOM_DEFINE)try { return gOPD(O, P); } catch(e){ /* empty */ } if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]); }; /***/ }, /* 93 */ /***/ function(module, exports) { /***/ }, /* 94 */ /***/ function(module, exports, __webpack_require__) { __webpack_require__(84)('asyncIterator'); /***/ }, /* 95 */ /***/ function(module, exports, __webpack_require__) { __webpack_require__(84)('observable'); /***/ }, /* 96 */ /***/ function(module, exports) { /** * after : after(el, newEl) * Inserts a new element `newEl` just after `el`. * * var after = require('dom101/after'); * var newNode = document.createElement('div'); * var button = document.querySelector('#submit'); * * after(button, newNode); */ function after (el, newEl) { if (typeof newEl === 'string') { return el.insertAdjacentHTML('afterend', newEl); } else { var next = el.nextSibling; if (next) { return el.parentNode.insertBefore(newEl, next); } else { return el.parentNode.appendChild(newEl); } } } module.exports = after; /***/ }, /* 97 */ /***/ function(module, exports) { 'use strict'; var browser = { versions: function () { var u = window.navigator.userAgent; return { trident: u.indexOf('Trident') > -1, //IE内核 presto: u.indexOf('Presto') > -1, //opera内核 webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核 gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核 mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端 ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器 iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者安卓QQ浏览器 iPad: u.indexOf('iPad') > -1, //是否为iPad webApp: u.indexOf('Safari') == -1, //是否为web应用程序,没有头部与底部 weixin: u.indexOf('MicroMessenger') == -1 //是否为微信浏览器 }; }() }; module.exports = browser; /***/ }, /* 98 */ /***/ function(module, exports) { 'use strict'; function init() { // 由于hexo分页不支持,手工美化 var $nav = document.querySelector('#page-nav'); if ($nav && !document.querySelector('#page-nav .extend.prev')) { $nav.innerHTML = '<a class="extend prev disabled" rel="prev">&laquo; Prev</a>' + $nav.innerHTML; } if ($nav && !document.querySelector('#page-nav .extend.next')) { $nav.innerHTML = $nav.innerHTML + '<a class="extend next disabled" rel="next">Next &raquo;</a>'; } // 新窗口打开 if (yiliaConfig && yiliaConfig.open_in_new) { var $a = document.querySelectorAll('.article-entry a:not(.article-more-a)'); $a.forEach(function ($em) { $em.setAttribute('target', '_blank'); }); } // about me 转义 var $aboutme = document.querySelector('#js-aboutme'); if ($aboutme && $aboutme.length !== 0) { $aboutme.innerHTML = $aboutme.innerText; } } module.exports = { init: init }; /***/ } /******/ ]);
halochen90/Hexo-Theme-Luna
source/mobile.09c351.js
JavaScript
lgpl-2.1
51,975
[ 30522, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1006, 3853, 1006, 14184, 1007, 1063, 1013, 1013, 4773, 23947, 27927, 20528, 2361, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 1996, 11336, 17053, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 13075, 5361, 5302, 8566, 4244, 1027, 1063, 1065, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 1996, 5478, 3853, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 3853, 1035, 1035, 4773, 23947, 1035, 5478, 1035, 1035, 1006, 11336, 3593, 1007, 1063, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 4638, 2065, 11336, 2003, 1999, 17053, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 2065, 1006, 5361, 5302, 8566, 4244, 1031, 11336, 3593, 1033, 1007, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 2709, 5361, 5302, 8566, 4244, 1031, 11336, 3593, 1033, 1012, 14338, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 3443, 1037, 2047, 11336, 1006, 1998, 2404, 2009, 2046, 1996, 17053, 1007, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 13075, 11336, 1027, 5361, 5302, 8566, 4244, 1031, 11336, 3593, 1033, 1027, 1063, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 14338, 1024, 1063, 1065, 1010, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 8909, 1024, 11336, 3593, 1010, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 8209, 1024, 6270, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1065, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 15389, 1996, 11336, 3853, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 14184, 1031, 11336, 3593, 1033, 1012, 2655, 1006, 11336, 1012, 14338, 1010, 11336, 1010, 11336, 1012, 14338, 1010, 1035, 1035, 4773, 23947, 1035, 5478, 1035, 1035, 1007, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 5210, 1996, 30524, 1008, 1008, 1008, 1008, 1013, 2709, 11336, 1012, 14338, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1065, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 14451, 1996, 14184, 4874, 1006, 1035, 1035, 4773, 23947, 1035, 14184, 1035, 1035, 1007, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1035, 1035, 4773, 23947, 1035, 5478, 1035, 1035, 1012, 1049, 1027, 14184, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 14451, 1996, 11336, 17053, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1035, 1035, 4773, 23947, 1035, 5478, 1035, 1035, 1012, 1039, 1027, 5361, 5302, 8566, 4244, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 1035, 1035, 4773, 23947, 1035, 2270, 1035, 4130, 1035, 1035, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1035, 1035, 4773, 23947, 1035, 5478, 1035, 1035, 1012, 1052, 1027, 1000, 1012, 1013, 1000, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 7170, 4443, 11336, 1998, 2709, 14338, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 30523, 11336, 2004, 8209, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 11336, 1012, 8209, 1027, 2995, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 2709, 1996, 14338, 1997, 1996, 11336, 1013, 1008, 1008, 30526 ]
[ 0, 0, 0, 0, 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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 11336, 2004, 8209, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 11336, 1012, 8209, 1027, 2995, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1013, 2709, 1996, 14338, 1997, 1996, 11336, 1013, 1008, 1008, 30526 ]
package co.uk.sentinelweb.lantv.net.smb; import org.junit.Before; import org.junit.Test; import java.util.List; import co.uk.sentinelweb.lantv.domain.Media; import co.uk.sentinelweb.lantv.net.smb.url.SmbLocationParser; /** * Created by robert on 12/02/2017. */ public class SmbShareListInteractorTest { static { jcifs.Config.registerSmbURLHandler(); } @Before public void setUp() throws Exception { } @Test public void getList() throws Exception { final List<Media> list = new SmbShareListInteractor().getList(TestData.IP_ADDR, TestData.SHARE, TestData.PATH, TestData.USER, TestData.PASS ); if (list != null) { for (final Media m : list) { System.out.println(m.toString()); } } } @Test public void getShareList() throws Exception { final List<Media> list = new SmbShareListInteractor().getList(TestData.IP_ADDR, null, null, TestData.USER, TestData.PASS ); if (list != null) { for (final Media m : list) { System.out.println(m.toString()); } } } @Test public void getNetworkList() throws Exception { final List<Media> list = new SmbShareListInteractor().getList(null, null, null, null, null ); if (list != null) { for (final Media m : list) { System.out.println(m.toString()); } } } @Test public void getWorkgroupList() throws Exception { final List<Media> list = new SmbShareListInteractor().getList("WORKGROUP", null, null, null, null ); if (list != null) { for (final Media m : list) { System.out.println(m.toString()); } } } @Test public void getComputerList() throws Exception { final List<Media> list = new SmbShareListInteractor().getList(new SmbLocationParser().parse("smb://robert:satori@TIGER/")); if (list != null) { for (final Media m : list) { System.out.println(m.toString()); } } } // @Test // public void getFileData() throws Exception { // final SmbLocation location = new SmbLocation("192.168.0.13", "Drobo", "video/movies/superhero/", "dark_knight.iso.mp4",TestData.USER, TestData.PASS);// // final Media m = new SmbShareListInteractor().getList(location ); // System.out.println(m.toString()); // } }
sentinelweb/LanTV
net/src/test/java/co/uk/sentinelweb/lantv/net/smb/SmbShareListInteractorTest.java
Java
apache-2.0
2,759
[ 30522, 7427, 2522, 1012, 2866, 1012, 16074, 8545, 2497, 1012, 17595, 9189, 1012, 5658, 1012, 15488, 2497, 1025, 12324, 8917, 1012, 12022, 4183, 1012, 2077, 1025, 12324, 8917, 1012, 12022, 4183, 1012, 3231, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 12324, 2522, 1012, 2866, 1012, 16074, 8545, 2497, 1012, 17595, 9189, 1012, 5884, 1012, 2865, 1025, 12324, 2522, 1012, 2866, 1012, 16074, 8545, 2497, 1012, 17595, 9189, 1012, 5658, 1012, 15488, 2497, 1012, 24471, 2140, 1012, 15488, 16558, 23909, 19362, 8043, 1025, 1013, 1008, 1008, 1008, 2580, 2011, 2728, 2006, 2260, 1013, 6185, 1013, 2418, 1012, 1008, 1013, 2270, 2465, 15488, 5910, 8167, 29282, 7629, 14621, 16761, 22199, 1063, 10763, 1063, 29175, 10128, 2015, 1012, 9530, 8873, 2290, 1012, 18687, 14905, 3126, 2140, 11774, 3917, 1006, 1007, 1025, 1065, 1030, 2077, 2270, 11675, 16437, 1006, 1007, 11618, 6453, 1063, 1065, 1030, 3231, 2270, 11675, 2131, 9863, 1006, 1007, 11618, 6453, 1063, 2345, 2862, 1026, 2865, 1028, 2862, 1027, 2047, 15488, 5910, 8167, 29282, 7629, 14621, 16761, 1006, 1007, 1012, 2131, 9863, 1006, 3231, 2850, 2696, 1012, 12997, 1035, 5587, 2099, 1010, 3231, 2850, 2696, 1012, 3745, 1010, 3231, 2850, 2696, 1012, 4130, 1010, 3231, 2850, 2696, 1012, 5310, 1010, 3231, 2850, 2696, 1012, 3413, 1007, 1025, 2065, 1006, 2862, 999, 1027, 19701, 1007, 1063, 2005, 1006, 2345, 2865, 1049, 1024, 2862, 1007, 1063, 2291, 1012, 2041, 1012, 6140, 19666, 1006, 1049, 1012, 2000, 3367, 4892, 1006, 1007, 1007, 1025, 1065, 1065, 1065, 1030, 3231, 2270, 11675, 4152, 8167, 29282, 2102, 1006, 1007, 11618, 6453, 1063, 2345, 2862, 1026, 2865, 1028, 2862, 1027, 2047, 15488, 5910, 8167, 29282, 7629, 14621, 16761, 1006, 1007, 1012, 2131, 9863, 1006, 3231, 2850, 2696, 1012, 12997, 1035, 5587, 2099, 1010, 19701, 1010, 19701, 1010, 3231, 2850, 2696, 1012, 5310, 1010, 3231, 2850, 30524, 1007, 1063, 2005, 1006, 2345, 2865, 1049, 1024, 2862, 1007, 1063, 2291, 1012, 2041, 1012, 6140, 19666, 1006, 1049, 1012, 2000, 3367, 4892, 1006, 1007, 1007, 1025, 1065, 1065, 1065, 1030, 3231, 2270, 11675, 2131, 7159, 6198, 9863, 1006, 1007, 11618, 6453, 1063, 2345, 2862, 1026, 2865, 1028, 2862, 1027, 2047, 15488, 5910, 8167, 29282, 7629, 14621, 16761, 1006, 1007, 1012, 2131, 9863, 1006, 19701, 1010, 19701, 1010, 19701, 1010, 19701, 1010, 19701, 1007, 1025, 2065, 1006, 2862, 999, 1027, 19701, 1007, 1063, 2005, 1006, 2345, 2865, 1049, 1024, 2862, 1007, 1063, 2291, 1012, 2041, 1012, 6140, 19666, 1006, 1049, 1012, 2000, 3367, 4892, 1006, 1007, 1007, 1025, 1065, 1065, 1065, 1030, 3231, 2270, 11675, 2131, 6198, 17058, 9863, 1006, 1007, 11618, 6453, 1063, 2345, 2862, 1026, 2865, 1028, 2862, 1027, 2047, 15488, 5910, 8167, 29282, 7629, 14621, 16761, 1006, 1007, 1012, 2131, 9863, 1006, 1000, 2147, 17058, 1000, 1010, 19701, 1010, 19701, 1010, 19701, 1010, 19701, 1007, 1025, 2065, 1006, 2862, 999, 1027, 19701, 1007, 1063, 2005, 1006, 2345, 2865, 1049, 1024, 2862, 1007, 1063, 2291, 1012, 2041, 1012, 6140, 19666, 1006, 1049, 1012, 2000, 3367, 4892, 1006, 30523, 2696, 1012, 3413, 1007, 1025, 2065, 1006, 2862, 999, 1027, 19701, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2696, 1012, 3413, 1007, 1025, 2065, 1006, 2862, 999, 1027, 19701, 30526 ]
<?php defined('ABSPATH') or die('No script kiddies please!'); /** * Undocumented function * * @return void */ function Yonk_numeric_posts_nav() { if(is_singular()) return; global $wp_query; /** Stop execution if there's only 1 page */ if($wp_query->max_num_pages <= 1) return; $paged = get_query_var('paged') ? absint(get_query_var('paged')) : 1; $max = intval($wp_query->max_num_pages); /** Add current page to the array */ if ($paged >= 1) $links[] = $paged; /** Add the pages around the current page to the array */ if ($paged >= 3) { $links[] = $paged - 1; $links[] = $paged - 2; } if (($paged + 2) <= $max) { $links[] = $paged + 2; $links[] = $paged + 1; } echo '<div class="navigation"><ul class="pagination">' . "\n"; /** Previous Post Link */ if (get_previous_posts_link()) printf( '<li>%s</li>' . "\n", get_previous_posts_link() ); /** Link to first page, plus ellipses if necessary */ if (!in_array(1, $links )) { $class = 1 == $paged ? ' class="active"' : ''; printf('<li%s><a href="%s" aria-label="Previous"><span aria-hidden="true"%s</span></a></li>' . "\n", $class, esc_url(get_pagenum_link(1)), '1'); if (!in_array(2, $links)) echo '<li>…</li>'; } /** Link to current page, plus 2 pages in either direction if necessary */ sort($links); foreach ((array)$links as $link) { $class = $paged == $link ? ' class="active"' : ''; printf('<li%s><a href="%s">%s</a></li>' . "\n", $class, esc_url(get_pagenum_link($link)), $link); } /** Link to last page, plus ellipses if necessary */ if (!in_array($max, $links)) { if (!in_array($max - 1, $links)) echo '<li>…</li>' . "\n"; $class = $paged == $max ? ' class="active"' : ''; printf('<li%s><a href="%s" aria-label="Next"><span aria-hidden="true">%s</span></a></li>' . "\n", $class, esc_url(get_pagenum_link($max)), $max); } /** Next Post Link */ if (get_next_posts_link()) printf('<li>%s</li>' . "\n", get_next_posts_link()); echo '</ul></div>' . "\n"; }
Patreo/yonk
wp-content/themes/YonkTheme/yonk-core/plugins/pagenavi.php
PHP
apache-2.0
2,213
[ 30522, 1026, 1029, 25718, 4225, 1006, 1005, 14689, 15069, 1005, 1007, 2030, 3280, 1006, 1005, 2053, 5896, 25358, 3111, 3531, 999, 1005, 1007, 1025, 1013, 1008, 1008, 1008, 25672, 24894, 14088, 3853, 1008, 1008, 1030, 2709, 11675, 1008, 1013, 3853, 10930, 8950, 1035, 16371, 25531, 1035, 8466, 1035, 6583, 2615, 1006, 1007, 1063, 2065, 1006, 2003, 1035, 13048, 1006, 1007, 1007, 2709, 1025, 3795, 1002, 1059, 2361, 1035, 23032, 1025, 1013, 1008, 1008, 2644, 7781, 2065, 2045, 1005, 1055, 2069, 1015, 3931, 1008, 1013, 2065, 1006, 1002, 1059, 2361, 1035, 23032, 1011, 1028, 4098, 1035, 16371, 2213, 1035, 5530, 1026, 1027, 1015, 1007, 2709, 1025, 1002, 3931, 2094, 1027, 2131, 1035, 23032, 1035, 13075, 1006, 1005, 3931, 2094, 1005, 1007, 1029, 14689, 18447, 1006, 2131, 1035, 23032, 1035, 13075, 1006, 1005, 3931, 2094, 1005, 1007, 1007, 1024, 1015, 1025, 1002, 4098, 1027, 20014, 10175, 1006, 1002, 1059, 2361, 1035, 23032, 1011, 1028, 4098, 1035, 16371, 2213, 1035, 5530, 1007, 1025, 1013, 1008, 1008, 5587, 2783, 3931, 2000, 1996, 9140, 1008, 1013, 2065, 1006, 1002, 3931, 2094, 1028, 1027, 1015, 1007, 1002, 6971, 1031, 1033, 1027, 1002, 3931, 2094, 1025, 1013, 1008, 1008, 5587, 1996, 5530, 2105, 1996, 2783, 3931, 2000, 1996, 9140, 1008, 1013, 2065, 1006, 1002, 3931, 2094, 1028, 1027, 1017, 1007, 1063, 1002, 6971, 1031, 1033, 1027, 1002, 3931, 2094, 1011, 1015, 1025, 1002, 6971, 1031, 1033, 1027, 1002, 3931, 2094, 1011, 1016, 1025, 1065, 2065, 1006, 1006, 1002, 3931, 2094, 1009, 1016, 1007, 1026, 1027, 1002, 4098, 1007, 1063, 1002, 6971, 1031, 1033, 1027, 1002, 3931, 2094, 1009, 1016, 1025, 1002, 6971, 1031, 1033, 1027, 1002, 3931, 2094, 1009, 1015, 1025, 1065, 9052, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 9163, 1000, 1028, 1026, 17359, 30524, 1035, 4957, 1006, 1007, 1007, 6140, 2546, 1006, 1005, 1026, 5622, 1028, 1003, 1055, 1026, 1013, 5622, 1028, 1005, 1012, 1000, 1032, 1050, 1000, 1010, 2131, 1035, 3025, 1035, 8466, 1035, 4957, 1006, 1007, 1007, 1025, 1013, 1008, 1008, 4957, 2000, 2034, 3931, 1010, 4606, 3449, 15000, 8583, 2065, 4072, 1008, 1013, 2065, 1006, 999, 1999, 1035, 9140, 1006, 1015, 1010, 1002, 6971, 1007, 1007, 1063, 1002, 2465, 1027, 1015, 1027, 1027, 1002, 3931, 2094, 1029, 1005, 2465, 1027, 1000, 3161, 1000, 1005, 1024, 1005, 1005, 1025, 6140, 2546, 1006, 1005, 1026, 5622, 1003, 1055, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 1003, 1055, 1000, 9342, 1011, 3830, 1027, 1000, 3025, 1000, 1028, 1026, 8487, 9342, 1011, 5023, 1027, 1000, 2995, 1000, 1003, 1055, 1026, 1013, 8487, 1028, 1026, 1013, 1037, 1028, 1026, 1013, 5622, 1028, 1005, 1012, 1000, 1032, 1050, 1000, 1010, 1002, 2465, 1010, 9686, 2278, 1035, 24471, 2140, 1006, 2131, 1035, 3931, 19172, 1035, 4957, 1006, 1015, 1007, 1007, 1010, 1005, 1015, 1005, 1007, 1025, 2065, 1006, 999, 1999, 1035, 9140, 1006, 1016, 1010, 1002, 6971, 1007, 1007, 30523, 2465, 1027, 1000, 6643, 20876, 3508, 1000, 1028, 1005, 1012, 1000, 1032, 1050, 1000, 1025, 1013, 1008, 1008, 3025, 2695, 4957, 1008, 1013, 2065, 1006, 2131, 1035, 3025, 1035, 8466, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2465, 1027, 1000, 6643, 20876, 3508, 1000, 1028, 1005, 1012, 1000, 1032, 1050, 1000, 1025, 1013, 1008, 1008, 3025, 2695, 4957, 1008, 1013, 2065, 1006, 2131, 1035, 3025, 1035, 8466, 30526 ]
#include <iostream> #include <stack> using namespace std; // µ÷ÊÔ¿ª¹Ø #define __tmain main #ifdef __tmain #define debug cout #else #define debug 0 && cout #endif // __tmain class Solution { public: void push(int node) { stackIn.push(node); } int pop() { int node = -1; // Á½¸öÕ»¶¼ÊÇNULLµÄʱºò£¬Õû¸ö¶ÓÁÐΪ¿Õ if(this->empty( ) == true) { debug <<"Õû¸ö¶ÓÁÐΪNULL" <<endl; return -1; } else { // ·ñÔò¶ÓÁÐÖÐÓÐÔªËØ // ´Ëʱ·ÖÁ½ÖÖÇé¿ö£¬ // µ±Êä³öÕ»²»Îª¿ÕµÄʱºò, Ö±½Ó½«Êä³öÕ»ÖÐÔªËØµ¯³ö¼´¿É // µ±Êä³öջΪNULL, µ«ÊÇÊäÈëÕ»²»Îª¿ÕµÄʱºò£¬ÐèÒª½«ÊäÈëÕ»µÄÔªËØÈ«²¿µ¹ÈëÊä³öÕ»ÖÐ if(stackOut.empty() == true) // ´ËʱÊä³öջΪ¿Õ, ÊäÈëÕ»±Ø²»Îª¿Õ { // ´Ëʱ»º³åÕ»£¨Êä³öÕ»£©ÖÐûÓÐÔªËØ // ÐèÒª½«ÊäÈëÕ»ÖеÄÔªËØµ¹ÈëÊä³öÕ» // ¿´ÊäÈëÕ»ÖÐÓÐûÓÐÔªËØ // ·ñÔò½«ÔªËØ´ÓÊäÈëÕ»µ¼ÈëÊä³öÕ» while(stackIn.empty( ) != true) { node = stackIn.top( ); stackIn.pop( ); stackOut.push(node); debug <<node <<"µ¼ÈëÊä³öÕ»" <<endl; } } node = stackOut.top( ); stackOut.pop( ); debug <<"¶ÓÍ·ÔªËØ" <<node <<endl; } return node; } bool empty( ) { return (stackIn.empty() == true && stackOut.empty() == true); } private: stack<int> stackIn; stack<int> stackOut; }; int __tmain( ) { Solution solu; solu.push(1); solu.push(2); solu.push(3); solu.push(4); int node; while(solu.empty() != true) { cout <<solu.pop( ); } return 0; }
gatieme/CodingInterviews
007-用两个栈实现队列/stack2queue.cpp
C++
gpl-3.0
1,917
[ 30522, 1001, 2421, 1026, 16380, 25379, 1028, 1001, 2421, 1026, 9991, 1028, 2478, 3415, 15327, 2358, 2094, 1025, 1013, 1013, 1085, 29669, 8780, 1094, 1076, 27904, 16415, 1001, 9375, 1035, 1035, 1056, 24238, 2364, 1001, 2065, 3207, 2546, 1035, 1035, 1056, 24238, 1001, 9375, 2139, 8569, 2290, 2522, 4904, 1001, 2842, 1001, 9375, 2139, 8569, 2290, 1014, 1004, 1004, 2522, 4904, 1001, 2203, 10128, 1013, 1013, 1035, 1035, 1056, 24238, 2465, 5576, 1063, 2270, 1024, 11675, 5245, 1006, 20014, 13045, 1007, 1063, 9991, 2378, 1012, 5245, 1006, 13045, 1007, 1025, 1065, 20014, 3769, 1006, 1007, 1063, 20014, 13045, 1027, 1011, 1015, 1025, 1013, 1013, 100, 1090, 1086, 100, 1086, 1051, 2050, 29668, 2072, 29653, 1094, 1051, 2065, 1006, 2023, 1011, 1028, 4064, 1006, 1007, 1027, 1027, 2995, 1007, 1063, 2139, 8569, 2290, 1026, 1026, 1000, 100, 1086, 1051, 2050, 29668, 2072, 29653, 11231, 3363, 1000, 1026, 1026, 2203, 2140, 1025, 2709, 1011, 1015, 1025, 1065, 2842, 1063, 1013, 1013, 1087, 2053, 2080, 1086, 1051, 2050, 29668, 2080, 29668, 2080, 29668, 2080, 29653, 2063, 16415, 1013, 1013, 1084, 4402, 29657, 1087, 1051, 2050, 13714, 9541, 3401, 1094, 1051, 29646, 29655, 1013, 1013, 1085, 29657, 5243, 18107, 9541, 1090, 1082, 1090, 30524, 1085, 29657, 5243, 18107, 9541, 1090, 1045, 29653, 11231, 3363, 1010, 1085, 1077, 14925, 5243, 4402, 2080, 1090, 1082, 1090, 1045, 29653, 1094, 1051, 29659, 6679, 29657, 29662, 2080, 29646, 29655, 29668, 8780, 29653, 13714, 1077, 19413, 4402, 2080, 1090, 1085, 7113, 29653, 2063, 16415, 2063, 1077, 1082, 1094, 1085, 27904, 4402, 5243, 18107, 9541, 1090, 1051, 29668, 2065, 1006, 9991, 5833, 1012, 4064, 1006, 1007, 1027, 1027, 2995, 1007, 1013, 1013, 1084, 4402, 29657, 5243, 18107, 9541, 1090, 1045, 29653, 1094, 1051, 1010, 19413, 4402, 2080, 1090, 1081, 16415, 10701, 1090, 1045, 29653, 1094, 1051, 1063, 1013, 1013, 1084, 4402, 29657, 1090, 1089, 18107, 7113, 1090, 1069, 29651, 5243, 18107, 9541, 1090, 1069, 29652, 2080, 29668, 2050, 1090, 1051, 29668, 2080, 29653, 2063, 16415, 1013, 1013, 1098, 8780, 29653, 13714, 1077, 19413, 4402, 2080, 1090, 1051, 29668, 29659, 7113, 29653, 2063, 16415, 29659, 27904, 4402, 5243, 18107, 9541, 1090, 1013, 1013, 1094, 1084, 5243, 4402, 2080, 1090, 1051, 29668, 2080, 29668, 2050, 1090, 1051, 29668, 2080, 29653, 2063, 16415, 1013, 1013, 1087, 2053, 2080, 13714, 1077, 1051, 29653, 2063, 16415, 29658, 8913, 6679, 8780, 1090, 1085, 29664, 4402, 5243, 18107, 9541, 1090, 2096, 1006, 9991, 2378, 1012, 4064, 1006, 1007, 999, 1027, 2995, 1007, 1063, 13045, 1027, 9991, 2378, 1012, 2327, 1006, 1007, 1025, 9991, 2378, 1012, 3769, 1006, 1007, 1025, 9991, 5833, 1012, 5245, 1006, 13045, 1007, 1025, 2139, 8569, 2290, 1026, 1026, 13045, 1026, 1026, 1000, 1085, 29664, 4402, 5243, 18107, 9541, 1090, 1000, 1026, 1026, 2203, 2140, 1025, 1065, 1065, 13045, 1027, 9991, 5833, 1012, 2327, 1006, 1007, 1025, 9991, 5833, 1012, 3769, 1006, 1007, 1025, 2139, 8569, 2290, 1026, 1026, 30523, 1045, 29653, 1094, 1051, 29659, 6679, 29657, 29662, 2080, 1010, 1051, 29657, 13714, 2080, 13714, 1077, 19413, 18107, 9541, 1090, 100, 1094, 1041, 1013, 1013, 30526 ]
[ 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1045, 29653, 1094, 1051, 29659, 6679, 29657, 29662, 2080, 1010, 1051, 29657, 13714, 2080, 13714, 1077, 19413, 18107, 9541, 1090, 100, 1094, 1041, 1013, 1013, 30526 ]
{-# LANGUAGE Haskell2010 , MagicHash , FlexibleInstances , FlexibleContexts , MultiParamTypeClasses , FunctionalDependencies #-} {-# OPTIONS -Wall -fno-warn-missing-signatures -fno-warn-name-shadowing #-} -- | This module contains mostly boiler plate code that is needed -- for method discovery. module Foreign.Java.Types ( -- These are human readable short hands for -- Z, X, C, ... below boolean, char, byte, short, int, long, float, double, string, object, array, void, -- These types are used to describe methods with the -- same vocabulary as the JNI does. -- -- Notable additions: A, X, and Q are not defined in -- the JNI. A and X are used for convenience and -- resemble Arrays and Strings (S is already taken by -- Short, therefor X). Q is special and stands for -- objects in much the same way as L does, but Q will -- carry it's own low level signature (for example -- [Ljava.lang.String; ). Z (Z), C (C), B (B), S (S), I (I), J (J), D (D), F (F), L (L), V (V), A (A), X (X), -- P is used to apply the above descriptors. -- (-->) does the same thing, but is an infix operator. P (P), (-->), MethodDescriptor (..), -- The famous Q. See above. object', Q (Q), constructorSignature, methodSignature, Constructor, Method, Param (..), JArg (jarg) ) where import Data.Int import Data.Word import Foreign.Java.JNI.Types hiding (JArg) import qualified Foreign.Java.JNI.Types as Core import Foreign.Java.Util data Z = Z deriving Show data C = C deriving Show data B = B deriving Show data S = S deriving Show data I = I deriving Show data J = J deriving Show data F = F deriving Show data D = D deriving Show data L = L String deriving Show data V = V deriving Show data A x = A x deriving Show data X = X deriving Show data Q = Q String deriving Show boolean = Z char = C byte = B short = S int = I long = J float = F double = D object = L array = A string = X void = V object' = Q data P a x = P a x deriving Show class Param a where fieldSignature :: a -> String -- These are the translations of descriptors to -- JNI signatures. instance Param Z where fieldSignature _ = "Z" instance Param C where fieldSignature _ = "C" instance Param B where fieldSignature _ = "B" instance Param S where fieldSignature _ = "S" instance Param I where fieldSignature _ = "I" instance Param J where fieldSignature _ = "J" instance Param F where fieldSignature _ = "F" instance Param D where fieldSignature _ = "D" instance Param L where fieldSignature (L x) = 'L' : tr '.' '/' x ++ ";" instance Param X where fieldSignature _ = "Ljava/lang/String;" instance Param x => Param (A x) where fieldSignature (A x) = '[' : fieldSignature x instance Param Q where fieldSignature (Q s) = s class JArg a b | a -> b where jarg :: a -> b -> Core.JArg -- These are the known argument types. instance JArg Z Bool where jarg _ = BooleanA instance JArg C Word16 where jarg _ = CharA instance JArg B Int8 where jarg _ = ByteA instance JArg S Int16 where jarg _ = ShortA instance JArg I Int32 where jarg _ = IntA instance JArg J Int64 where jarg _ = LongA instance JArg F Float where jarg _ = FloatA instance JArg D Double where jarg _ = DoubleA instance JArg L (Maybe JObject) where jarg _ = ObjectA instance JArg (A e) (Maybe (JArray e)) where jarg _ = ArrayA instance JArg X String where jarg _ = StringA instance JArg Q (Maybe JObject) where jarg _ = ObjectA -- (-->), (::=) are infix operators for convenience. infixr 9 --> infixl 8 ::= (-->) :: a -> x -> P a x a --> x = P a x -- A MethodDescriptor is what is given to -- 'getMethod', 'getConstructor', and friends. data MethodDescriptor p = String ::= p deriving Show --------------- -- Constructors -- -- The signatures for looking up constructors are forged here. constructorSignature :: Constructor p => p constructorSignature = _constructorSignature "(" class Constructor p where _constructorSignature :: String -> p instance Constructor String where _constructorSignature _ = "()V" instance (Constructor (t -> r), Param a) => Constructor (P a t -> r) where _constructorSignature sig (P a t) = _constructorSignature (sig ++ fieldSignature a) t instance Constructor (Z -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Constructor (C -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Constructor (B -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Constructor (S -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Constructor (I -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Constructor (J -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Constructor (F -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Constructor (D -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Constructor (L -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Param a => Constructor (A a -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" instance Constructor (X -> String) where _constructorSignature sig X = sig ++ "Ljava/lang/String;" ++ ")V" instance Constructor (Q -> String) where _constructorSignature sig a = sig ++ fieldSignature a ++ ")V" ---------- -- Methods -- -- The signatures for looking up methods (both static and virtual, -- that distinction has no meaning on this level) are forged here. methodSignature :: Method p => p methodSignature = _methodSignature "(" class Method p where _methodSignature :: String -> p instance (Param a, Method r, Method (P b x -> r)) => Method (P a (P b x) -> r) where _methodSignature sig (P a x) = _methodSignature (sig ++ fieldSignature a) x instance Param a => Method (P a Z -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")Z") instance Param a => Method (P a C -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")C") instance Param a => Method (P a B -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")B") instance Param a => Method (P a S -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")S") instance Param a => Method (P a I -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")I") instance Param a => Method (P a J -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")J") instance Param a => Method (P a F -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")F") instance Param a => Method (P a D -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")D") instance Param a => Method (P a L -> String) where _methodSignature sig (P a t) = _methodSignature (sig ++ fieldSignature a ++ ")" ++ fieldSignature t) instance Param a => Method (P a V -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")V") instance Param a => Method (P a X -> String) where _methodSignature sig (P a _) = _methodSignature (sig ++ fieldSignature a ++ ")Ljava/lang/String;") instance (Param a, Param e) => Method (P a (A e) -> String) where _methodSignature sig (P a t) = _methodSignature (sig ++ fieldSignature a ++ ")" ++ fieldSignature t) instance Param a => Method (P a Q -> String) where _methodSignature sig (P a t) = _methodSignature (sig ++ fieldSignature a ++ ")" ++ fieldSignature t) instance Method (Z -> String) where _methodSignature sig _ = sig ++ ")Z" instance Method (C -> String) where _methodSignature sig _ = sig ++ ")C" instance Method (B -> String) where _methodSignature sig _ = sig ++ ")B" instance Method (S -> String) where _methodSignature sig _ = sig ++ ")S" instance Method (I -> String) where _methodSignature sig _ = sig ++ ")I" instance Method (J -> String) where _methodSignature sig _ = sig ++ ")J" instance Method (F -> String) where _methodSignature sig _ = sig ++ ")F" instance Method (D -> String) where _methodSignature sig _ = sig ++ ")D" instance Method (L -> String) where _methodSignature sig s = sig ++ ")" ++ fieldSignature s instance Method (V -> String) where _methodSignature sig _ = sig ++ ")V" instance Method (X -> String) where _methodSignature sig _ = sig ++ ")Ljava/lang/String;" instance (Param e, Method (e -> String)) => Method (A e -> String) where _methodSignature sig s = sig ++ ")" ++ fieldSignature s instance Method (Q -> String) where _methodSignature sig s = sig ++ ")" ++ fieldSignature s instance Method String where _methodSignature sig = sig
fehu/haskell-java-bridge-fork
src/Foreign/Java/Types.hs
Haskell
mit
9,256
[ 30522, 1063, 1011, 1001, 2653, 2038, 18690, 11387, 10790, 1010, 3894, 14949, 2232, 1010, 12379, 7076, 26897, 2015, 1010, 12379, 8663, 18209, 2015, 1010, 4800, 28689, 30524, 2171, 1011, 5192, 2075, 1001, 1011, 1065, 1011, 1011, 1064, 2023, 11336, 3397, 3262, 15635, 5127, 3642, 2008, 2003, 2734, 1011, 1011, 2005, 4118, 5456, 1012, 11336, 3097, 1012, 9262, 1012, 4127, 1006, 1011, 1011, 2122, 2024, 2529, 3191, 3085, 2460, 2398, 2005, 1011, 1011, 1062, 1010, 1060, 1010, 1039, 1010, 1012, 1012, 1012, 2917, 22017, 20898, 1010, 25869, 1010, 24880, 1010, 2460, 1010, 20014, 1010, 2146, 1010, 14257, 1010, 3313, 1010, 5164, 1010, 4874, 1010, 9140, 1010, 11675, 1010, 1011, 1011, 2122, 4127, 2024, 2109, 2000, 6235, 4725, 2007, 1996, 1011, 1011, 2168, 16188, 2004, 1996, 1046, 3490, 2515, 1012, 1011, 1011, 1011, 1011, 3862, 13134, 1024, 1037, 1010, 1060, 1010, 1998, 1053, 2024, 2025, 4225, 1999, 1011, 1011, 1996, 1046, 3490, 1012, 1037, 1998, 1060, 2024, 2109, 2005, 15106, 1998, 1011, 1011, 13014, 27448, 1998, 7817, 1006, 1055, 2003, 2525, 2579, 2011, 1011, 1011, 2460, 1010, 2045, 29278, 1060, 1007, 1012, 1053, 2003, 2569, 1998, 4832, 2005, 1011, 1011, 5200, 1999, 2172, 1996, 2168, 2126, 2004, 1048, 2515, 1010, 2021, 1053, 2097, 1011, 1011, 4287, 2009, 1005, 1055, 2219, 2659, 2504, 8085, 1006, 2005, 2742, 1011, 1011, 1031, 1048, 3900, 3567, 1012, 11374, 1012, 5164, 1025, 1007, 1012, 1062, 1006, 1062, 1007, 1010, 1039, 1006, 1039, 1007, 1010, 1038, 1006, 1038, 1007, 1010, 1055, 1006, 1055, 1007, 1010, 1045, 1006, 1045, 1007, 1010, 1046, 1006, 1046, 1007, 1010, 1040, 1006, 1040, 1007, 1010, 1042, 1006, 1042, 1007, 1010, 1048, 1006, 1048, 1007, 1010, 1058, 1006, 1058, 1007, 1010, 1037, 1006, 1037, 1007, 1010, 1060, 1006, 1060, 1007, 1010, 1011, 1011, 1052, 2003, 2109, 2000, 6611, 1996, 2682, 4078, 23235, 5668, 1012, 1011, 1011, 1006, 1011, 1011, 1028, 1007, 2515, 1996, 2168, 2518, 1010, 2021, 2003, 2019, 1999, 8873, 2595, 6872, 1012, 1052, 1006, 1052, 1007, 1010, 1006, 1011, 1011, 1028, 1007, 1010, 4118, 6155, 23235, 2953, 1006, 1012, 1012, 1007, 1010, 1011, 1011, 1996, 3297, 1053, 1012, 2156, 2682, 1012, 4874, 1005, 1010, 1053, 1006, 1053, 1007, 1010, 9570, 5668, 23773, 4017, 5397, 1010, 4725, 23773, 4017, 5397, 1010, 9570, 2953, 1010, 4118, 1010, 11498, 2213, 1006, 1012, 1012, 1007, 1010, 15723, 2290, 1006, 15723, 2290, 1007, 1007, 2073, 12324, 2951, 1012, 20014, 12324, 2951, 1012, 2773, 12324, 3097, 1012, 9262, 1012, 1046, 3490, 1012, 4127, 6318, 1006, 15723, 2290, 1007, 12324, 4591, 3097, 1012, 9262, 1012, 1046, 3490, 1012, 4127, 2004, 4563, 12324, 3097, 1012, 9262, 1012, 21183, 4014, 2951, 1062, 1027, 1062, 4315, 14966, 2265, 2951, 1039, 1027, 1039, 4315, 14966, 2265, 2951, 1038, 1027, 1038, 4315, 14966, 2265, 2951, 1055, 1027, 1055, 4315, 14966, 2265, 2951, 1045, 1027, 1045, 4315, 14966, 2265, 2951, 1046, 30523, 20492, 18863, 26266, 2229, 1010, 8360, 3207, 11837, 4181, 9243, 1001, 1011, 1065, 1063, 1011, 1001, 7047, 1011, 2813, 1011, 1042, 3630, 1011, 11582, 1011, 4394, 1011, 16442, 1011, 1042, 3630, 1011, 11582, 1011, 30526 ]
[ 0, 0, 0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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 20492, 18863, 26266, 2229, 1010, 8360, 3207, 11837, 4181, 9243, 1001, 1011, 1065, 1063, 1011, 1001, 7047, 1011, 2813, 1011, 1042, 3630, 1011, 11582, 1011, 4394, 1011, 16442, 1011, 1042, 3630, 1011, 11582, 1011, 30526 ]
var express = require('express'); var app = express(); var path = require('path'); var session = require('express-session'); var bodyParser = require('body-parser') var fs = require('fs'); app.use(express.static(path.join(__dirname, 'public'))); app.use(bodyParser.urlencoded({extended: true})); app.use(bodyParser.json()); app.use(session({ secret: 'angular_tutorial', resave: true, saveUninitialized: true, })); var Db = require('mongodb').Db; var Connection = require('mongodb').Connection; var Server = require('mongodb').Server; var ObjectID = require('mongodb').ObjectID; var db = new Db('tutor', new Server("localhost", 27017, {safe: true}, {auto_reconnect: true}, {})); db.open(function(){ console.log("mongo db is opened!"); db.collection('notes', function(error, notes) { db.notes = notes; }); db.collection('sections', function(error, sections) { db.sections = sections; }); }); app.get("/notes", function(req,res) { db.notes.find(req.query).toArray(function(err, items) { res.send(items); }); }); app.post("/notes", function(req,res) { db.notes.insert(req.body); res.end(); }); app.get("/sections", function(req,res) { db.sections.find(req.query).toArray(function(err, items) { res.send(items); }); }); app.get("/checkUser", function(req,res) { if (req.query.user.length>2) { res.send(true); } else { res.send(false); } }); app.post("/sections/replace", function(req,resp) { // do not clear the list if (req.body.length==0) { resp.end(); } // this should be used only for reordering db.sections.remove({}, function(err, res) { if (err) console.log(err); db.sections.insert(req.body, function(err, res) { if (err) console.log("err after insert",err); resp.end(); }); }); }); app.listen(3000);
RomanLysak/angularJsLabsLuxoft
courceLabsReady/task10/server.js
JavaScript
mit
1,778
[ 30522, 13075, 4671, 1027, 5478, 1006, 1005, 4671, 1005, 1007, 1025, 13075, 10439, 1027, 4671, 1006, 1007, 1025, 13075, 4130, 1027, 5478, 1006, 1005, 4130, 1005, 1007, 1025, 13075, 5219, 1027, 5478, 1006, 1005, 4671, 1011, 5219, 1005, 1007, 1025, 13075, 2303, 19362, 8043, 1027, 5478, 1006, 1005, 2303, 1011, 11968, 8043, 1005, 1007, 13075, 1042, 2015, 1027, 5478, 1006, 1005, 1042, 2015, 1005, 1007, 1025, 10439, 1012, 2224, 1006, 4671, 1012, 10763, 1006, 4130, 1012, 3693, 1006, 1035, 1035, 16101, 18442, 1010, 1005, 2270, 1005, 1007, 1007, 1007, 1025, 10439, 1012, 2224, 1006, 2303, 19362, 8043, 1012, 24471, 7770, 16044, 2094, 1006, 1063, 3668, 1024, 2995, 1065, 1007, 1007, 1025, 10439, 1012, 2224, 1006, 2303, 19362, 8043, 1012, 1046, 3385, 1006, 1007, 1007, 1025, 10439, 1012, 2224, 1006, 5219, 1006, 1063, 3595, 1024, 1005, 16108, 1035, 14924, 4818, 1005, 1010, 24501, 10696, 1024, 2995, 1010, 3828, 19496, 3490, 20925, 3550, 1024, 2995, 1010, 1065, 1007, 1007, 1025, 13075, 16962, 1027, 5478, 1006, 1005, 12256, 3995, 18939, 1005, 1007, 1012, 16962, 1025, 13075, 4434, 1027, 5478, 1006, 1005, 12256, 3995, 18939, 1005, 1007, 1012, 4434, 1025, 13075, 8241, 1027, 5478, 1006, 1005, 12256, 3995, 18939, 1005, 1007, 1012, 8241, 1025, 13075, 4874, 3593, 1027, 5478, 1006, 1005, 12256, 3995, 18939, 1005, 1007, 1012, 4874, 3593, 1025, 13075, 16962, 1027, 2047, 16962, 1006, 1005, 14924, 1005, 1010, 2047, 8241, 1006, 1000, 2334, 15006, 2102, 1000, 1010, 13756, 16576, 1010, 1063, 3647, 1024, 2995, 1065, 1010, 1063, 8285, 1035, 28667, 18256, 6593, 1024, 2995, 1065, 1010, 1063, 1065, 1007, 1007, 1025, 16962, 1012, 2330, 1006, 3853, 1006, 1007, 1063, 10122, 1012, 8833, 1006, 1000, 12256, 3995, 16962, 2003, 2441, 999, 1000, 1007, 1025, 16962, 1012, 3074, 1006, 1005, 3964, 1005, 1010, 3853, 1006, 7561, 1010, 3964, 1007, 1063, 16962, 1012, 3964, 1027, 3964, 1025, 1065, 1007, 1025, 16962, 1012, 3074, 1006, 1005, 5433, 1005, 1010, 3853, 1006, 7561, 1010, 5433, 1007, 1063, 16962, 1012, 5433, 1027, 5433, 1025, 1065, 1007, 1025, 1065, 1007, 1025, 10439, 1012, 2131, 1006, 1000, 1013, 3964, 1000, 1010, 3853, 1006, 2128, 4160, 1010, 24501, 30524, 1065, 1007, 1025, 1065, 1007, 1025, 10439, 1012, 2695, 1006, 1000, 1013, 3964, 1000, 1010, 3853, 1006, 2128, 4160, 1010, 24501, 1007, 1063, 16962, 1012, 3964, 1012, 19274, 1006, 2128, 4160, 1012, 2303, 1007, 1025, 24501, 1012, 2203, 1006, 1007, 1025, 1065, 1007, 1025, 10439, 1012, 2131, 1006, 1000, 1013, 5433, 1000, 1010, 3853, 1006, 2128, 4160, 1010, 24501, 1007, 1063, 16962, 1012, 5433, 1012, 2424, 1006, 2128, 4160, 1012, 23032, 1007, 1012, 2000, 2906, 9447, 1006, 3853, 1006, 9413, 2099, 1010, 5167, 1007, 1063, 24501, 1012, 4604, 1006, 5167, 1007, 1025, 1065, 1007, 1025, 1065, 1007, 1025, 10439, 1012, 2131, 1006, 1000, 1013, 4638, 20330, 1000, 1010, 3853, 1006, 2128, 4160, 1010, 24501, 1007, 1063, 2065, 1006, 2128, 30523, 1007, 1063, 16962, 1012, 3964, 1012, 2424, 1006, 2128, 4160, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1007, 1063, 16962, 1012, 3964, 1012, 2424, 1006, 2128, 4160, 1012, 23032, 1007, 1012, 2000, 2906, 9447, 1006, 3853, 1006, 9413, 2099, 1010, 5167, 1007, 1063, 24501, 1012, 4604, 1006, 5167, 1007, 1025, 30526 ]
#include <QtWidgets> #include <math.h> #include "starrating.h" const int PaintingScaleFactor = 20; StarRating::StarRating(int starCount, int maxStarCount) { myStarCount = starCount; myMaxStarCount = maxStarCount; starPolygon << QPointF(1.0, 0.5); for (int i = 1; i < 5; ++i) { starPolygon << QPointF(0.5 + 0.5 * cos(0.8 * i * 3.14), 0.5 + 0.5 * sin(0.8 * i * 3.14)); } diamondPolygon << QPointF(0.4, 0.5) << QPointF(0.5, 0.4) << QPointF(0.6, 0.5) << QPointF(0.5, 0.6) << QPointF(0.4, 0.5); } QSize StarRating::sizeHint() const { return PaintingScaleFactor * QSize(myMaxStarCount, 1); } void StarRating::paint(QPainter *painter, const QRect &rect, const QPalette &palette, EditMode mode) const { painter->save(); painter->setRenderHint(QPainter::Antialiasing, true); painter->setPen(Qt::NoPen); if (mode == Editable) { painter->setBrush(palette.highlight()); } else { painter->setBrush(palette.foreground()); } int yOffset = (rect.height() - PaintingScaleFactor) / 2; painter->translate(rect.x(), rect.y() + yOffset); painter->scale(PaintingScaleFactor, PaintingScaleFactor); for (int i = 0; i < myMaxStarCount; ++i) { if (i < myStarCount) { painter->drawPolygon(starPolygon, Qt::WindingFill); } else if (mode == Editable) { painter->drawPolygon(diamondPolygon, Qt::WindingFill); } painter->translate(1.0, 0.0); } painter->restore(); }
luchenqun/StarDelegate
starrating.cpp
C++
apache-2.0
1,586
[ 30522, 1001, 2421, 1026, 1053, 2102, 9148, 28682, 1028, 1001, 2421, 1026, 8785, 1012, 1044, 1028, 1001, 2421, 1000, 14330, 5844, 1012, 1044, 1000, 9530, 3367, 20014, 5265, 9289, 12879, 18908, 2953, 1027, 2322, 1025, 14330, 5844, 1024, 1024, 14330, 5844, 1006, 20014, 2732, 3597, 16671, 1010, 20014, 4098, 14117, 3597, 16671, 1007, 1063, 2026, 14117, 3597, 16671, 1027, 2732, 3597, 16671, 1025, 2026, 17848, 14117, 3597, 16671, 1027, 4098, 14117, 3597, 16671, 1025, 2732, 18155, 2100, 7446, 1026, 1026, 1053, 8400, 2546, 1006, 1015, 1012, 1014, 1010, 1014, 1012, 1019, 1007, 1025, 2005, 1006, 20014, 1045, 1027, 1015, 1025, 1045, 1026, 1019, 1025, 1009, 1009, 1045, 1007, 1063, 2732, 18155, 2100, 7446, 1026, 1026, 1053, 8400, 2546, 1006, 1014, 1012, 1019, 1009, 1014, 1012, 1019, 1008, 2522, 2015, 1006, 1014, 1012, 1022, 1008, 1045, 1008, 1017, 1012, 2403, 1007, 1010, 1014, 1012, 1019, 1009, 1014, 1012, 1019, 1008, 8254, 1006, 1014, 1012, 1022, 1008, 1045, 1008, 1017, 1012, 2403, 1007, 1007, 1025, 1065, 6323, 18155, 2100, 7446, 1026, 1026, 1053, 8400, 2546, 1006, 1014, 1012, 1018, 1010, 1014, 1012, 1019, 1007, 1026, 1026, 1053, 8400, 2546, 1006, 1014, 1012, 1019, 1010, 1014, 1012, 1018, 1007, 1026, 1026, 1053, 8400, 2546, 1006, 1014, 1012, 1020, 1010, 1014, 1012, 1019, 1007, 1026, 1026, 1053, 8400, 2546, 1006, 1014, 1012, 1019, 1010, 1014, 1012, 1020, 1007, 1026, 1026, 1053, 8400, 2546, 1006, 1014, 1012, 1018, 1010, 1014, 1012, 1019, 1007, 1025, 1065, 1053, 5332, 4371, 14330, 5844, 1024, 1024, 2946, 10606, 2102, 1006, 1007, 9530, 3367, 1063, 2709, 5265, 9289, 12879, 18908, 2953, 1008, 1053, 5332, 4371, 1006, 2026, 17848, 14117, 3597, 16671, 1010, 1015, 1007, 1025, 1065, 11675, 14330, 5844, 1024, 1024, 6773, 1006, 1053, 4502, 18447, 2121, 1008, 5276, 1010, 9530, 3367, 1053, 2890, 6593, 1004, 28667, 2102, 1010, 9530, 3367, 1053, 12952, 7585, 1004, 27396, 1010, 10086, 5302, 3207, 5549, 1007, 9530, 3367, 1063, 5276, 1011, 1028, 3828, 1006, 1007, 1025, 5276, 1011, 1028, 2275, 7389, 4063, 10606, 2102, 1006, 1053, 4502, 18447, 2121, 1024, 1024, 3424, 22786, 7741, 1010, 2995, 1007, 1025, 5276, 1011, 1028, 2275, 11837, 1006, 1053, 2102, 1024, 1024, 16780, 2078, 1007, 1025, 2065, 1006, 5549, 1027, 1027, 10086, 3085, 1007, 1063, 5276, 1011, 1028, 2275, 18623, 1006, 27396, 1012, 12944, 1006, 1007, 1007, 1025, 1065, 2842, 1063, 5276, 1011, 1028, 2275, 18623, 1006, 27396, 1012, 18921, 16365, 1006, 1007, 1007, 1025, 1065, 20014, 10930, 21807, 3388, 1027, 1006, 28667, 2102, 1012, 4578, 1006, 1007, 1011, 5265, 9289, 12879, 30524, 1010, 5265, 9289, 12879, 18908, 2953, 1007, 1025, 2005, 1006, 20014, 1045, 1027, 1014, 1025, 1045, 1026, 2026, 17848, 14117, 3597, 16671, 1025, 1009, 1009, 1045, 1007, 1063, 2065, 1006, 1045, 1026, 2026, 14117, 3597, 16671, 1007, 1063, 5276, 1011, 1028, 4009, 18155, 2100, 7446, 30523, 18908, 2953, 1007, 1013, 1016, 1025, 5276, 1011, 1028, 17637, 1006, 28667, 2102, 1012, 1060, 1006, 1007, 1010, 28667, 2102, 1012, 1061, 1006, 1007, 1009, 10930, 21807, 3388, 1007, 1025, 5276, 1011, 1028, 4094, 1006, 5265, 9289, 12879, 18908, 2953, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 18908, 2953, 1007, 1013, 1016, 1025, 5276, 1011, 1028, 17637, 1006, 28667, 2102, 1012, 1060, 1006, 1007, 1010, 28667, 2102, 1012, 1061, 1006, 1007, 1009, 10930, 21807, 3388, 1007, 1025, 5276, 1011, 1028, 4094, 1006, 5265, 9289, 12879, 18908, 2953, 30526 ]
//############################################################################# //# # //# Copyright (C) <2014> <IMS MAXIMS> # //# # //# 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/>. # //# # //############################################################################# //#EOH // This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751) // Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved. // WARNING: DO NOT MODIFY the content of this file package ims.clinical.vo.beans; public class SkinPreperationVoBean extends ims.vo.ValueObjectBean { public SkinPreperationVoBean() { } public SkinPreperationVoBean(ims.clinical.vo.SkinPreperationVo vo) { this.id = vo.getBoId(); this.version = vo.getBoVersion(); this.skinpreparationused = vo.getSkinPreparationUsed() == null ? null : (ims.vo.LookupInstanceBean)vo.getSkinPreparationUsed().getBean(); this.batchno = vo.getBatchNo(); this.expirydate = vo.getExpiryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExpiryDate().getBean(); } public void populate(ims.vo.ValueObjectBeanMap map, ims.clinical.vo.SkinPreperationVo vo) { this.id = vo.getBoId(); this.version = vo.getBoVersion(); this.skinpreparationused = vo.getSkinPreparationUsed() == null ? null : (ims.vo.LookupInstanceBean)vo.getSkinPreparationUsed().getBean(); this.batchno = vo.getBatchNo(); this.expirydate = vo.getExpiryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExpiryDate().getBean(); } public ims.clinical.vo.SkinPreperationVo buildVo() { return this.buildVo(new ims.vo.ValueObjectBeanMap()); } public ims.clinical.vo.SkinPreperationVo buildVo(ims.vo.ValueObjectBeanMap map) { ims.clinical.vo.SkinPreperationVo vo = null; if(map != null) vo = (ims.clinical.vo.SkinPreperationVo)map.getValueObject(this); if(vo == null) { vo = new ims.clinical.vo.SkinPreperationVo(); map.addValueObject(this, vo); vo.populate(map, this); } return vo; } public Integer getId() { return this.id; } public void setId(Integer value) { this.id = value; } public int getVersion() { return this.version; } public void setVersion(int value) { this.version = value; } public ims.vo.LookupInstanceBean getSkinPreparationUsed() { return this.skinpreparationused; } public void setSkinPreparationUsed(ims.vo.LookupInstanceBean value) { this.skinpreparationused = value; } public String getBatchNo() { return this.batchno; } public void setBatchNo(String value) { this.batchno = value; } public ims.framework.utils.beans.DateBean getExpiryDate() { return this.expirydate; } public void setExpiryDate(ims.framework.utils.beans.DateBean value) { this.expirydate = value; } private Integer id; private int version; private ims.vo.LookupInstanceBean skinpreparationused; private String batchno; private ims.framework.utils.beans.DateBean expirydate; }
open-health-hub/openMAXIMS
openmaxims_workspace/ValueObjects/src/ims/clinical/vo/beans/SkinPreperationVoBean.java
Java
agpl-3.0
4,121
[ 30522, 1013, 1013, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 9385, 1006, 1039, 1007, 1026, 2297, 1028, 1026, 10047, 2015, 20446, 2015, 1028, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 2023, 2565, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1001, 1013, 1013, 1001, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 21358, 7512, 2080, 2236, 2270, 6105, 2004, 1001, 1013, 1013, 1001, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 1001, 1013, 1013, 1001, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1001, 1013, 1013, 1001, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1001, 1013, 1013, 1001, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1001, 1013, 1013, 1001, 27004, 21358, 7512, 2080, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 21358, 7512, 2080, 2236, 2270, 6105, 1001, 1013, 1013, 1001, 2247, 2007, 2023, 2565, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 1001, 1013, 1013, 1001, 1001, 1013, 1013, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1013, 1013, 1001, 1041, 11631, 1013, 1013, 2023, 3642, 2001, 30524, 24368, 22203, 1007, 1013, 1013, 9385, 1006, 1039, 1007, 2786, 1011, 2297, 10047, 2015, 20446, 2015, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 5432, 1024, 2079, 2025, 19933, 1996, 4180, 1997, 2023, 5371, 7427, 10047, 2015, 1012, 6612, 1012, 29536, 1012, 13435, 1025, 2270, 2465, 3096, 28139, 29487, 6767, 4783, 2319, 8908, 10047, 2015, 1012, 29536, 1012, 3643, 16429, 20614, 4783, 2319, 1063, 2270, 3096, 28139, 29487, 6767, 4783, 2319, 1006, 1007, 1063, 1065, 2270, 3096, 28139, 29487, 6767, 4783, 2319, 1006, 10047, 2015, 1012, 6612,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 7013, 2011, 6437, 24185, 20941, 2478, 10047, 2015, 2458, 4044, 1006, 2544, 1015, 1012, 3770, 3857, 3156, 2581, 1012, 30526 ]
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'chrome://webui-test/mojo_webui_test_support.js'; import {RecentlyClosedTab, Tab, TabAlertState, TabData, TabGroup, TabGroupColor, TabItemType, TabSearchItem} from 'chrome://tab-search.top-chrome/tab_search.js'; import {assertDeepEquals, assertEquals, assertNotEquals} from 'chrome://webui-test/chai_assert.js'; import {flushTasks} from 'chrome://webui-test/test_util.js'; import {createTab, sampleToken} from './tab_search_test_data.js'; suite('TabSearchItemTest', () => { let tabSearchItem: TabSearchItem; async function setupTest(data: TabData) { tabSearchItem = document.createElement('tab-search-item'); tabSearchItem.data = data; document.body.innerHTML = ''; document.body.appendChild(tabSearchItem); await flushTasks(); } async function assertTabSearchItemHighlights( text: string, fieldHighlightRanges: Array<{start: number, length: number}>|null, expected: string[]) { const data = new TabData( createTab({ active: true, isDefaultFavicon: true, showIcon: true, title: text, }), TabItemType.OPEN_TAB, text); if (fieldHighlightRanges !== null) { data.highlightRanges = { 'tab.title': fieldHighlightRanges, hostname: fieldHighlightRanges, }; } await setupTest(data); assertHighlight(tabSearchItem.$['primaryText'], expected); assertHighlight(tabSearchItem.$['secondaryText'], expected); } function assertHighlight(node: HTMLElement, expected: string[]) { assertDeepEquals( expected, Array.from(node.querySelectorAll('.search-highlight-hit')) .map(e => e ? e.textContent : '')); } test('Highlight', async () => { const text = 'Make work better'; await assertTabSearchItemHighlights(text, null, []); await assertTabSearchItemHighlights( text, [{start: 0, length: text.length}], ['Make work better']); await assertTabSearchItemHighlights( text, [{start: 0, length: 4}], ['Make']); await assertTabSearchItemHighlights( text, [{start: 0, length: 4}, {start: 10, length: 6}], ['Make', 'better']); await assertTabSearchItemHighlights( text, [{start: 5, length: 4}], ['work']); }); test('CloseButtonPresence', async () => { await setupTest(new TabData( createTab({ active: true, isDefaultFavicon: true, showIcon: true, }), TabItemType.OPEN_TAB, 'example')); let tabSearchItemCloseButton = tabSearchItem.shadowRoot!.querySelector('cr-icon-button'); assertNotEquals(null, tabSearchItemCloseButton); await setupTest(new TabData( { tabId: 0, title: 'Example.com site', url: {url: 'https://example.com'}, groupId: undefined, lastActiveTime: {internalValue: BigInt(0)}, lastActiveElapsedText: '', } as RecentlyClosedTab, TabItemType.RECENTLY_CLOSED_TAB, 'example')); tabSearchItemCloseButton = tabSearchItem.shadowRoot!.querySelector('cr-icon-button'); assertEquals(null, tabSearchItemCloseButton); }); test('GroupDetailsPresence', async () => { const token = sampleToken(1n, 1n); const tab: Tab = createTab({ active: true, isDefaultFavicon: true, showIcon: true, groupId: token, }); const tabGroup: TabGroup = { id: token, color: TabGroupColor.kBlue, title: 'Examples', }; const tabData = new TabData(tab, TabItemType.OPEN_TAB, 'example'); tabData.tabGroup = tabGroup; await setupTest(tabData); const groupDotElement = tabSearchItem.shadowRoot!.querySelector('#groupDot')!; assertNotEquals(null, groupDotElement); const groupDotComputedStyle = getComputedStyle(groupDotElement!); assertEquals( groupDotComputedStyle.getPropertyValue('--tab-group-color-blue'), groupDotComputedStyle.getPropertyValue('--group-dot-color')); assertNotEquals( null, tabSearchItem.shadowRoot!.querySelector('#groupTitle')); }); test('MediaAlertIndicatorPresence', async () => { const token = sampleToken(1n, 1n); const tab: Tab = createTab({ active: true, alertStates: [TabAlertState.kMediaRecording, TabAlertState.kAudioPlaying], isDefaultFavicon: true, showIcon: true, groupId: token, }); await setupTest(new TabData(tab, TabItemType.OPEN_TAB, 'example')); const recordingMediaAlert = tabSearchItem.shadowRoot!.querySelector<HTMLElement>('#mediaAlert'); assertNotEquals(null, recordingMediaAlert); assertEquals('media-recording', recordingMediaAlert!.getAttribute('class')); }); });
chromium/chromium
chrome/test/data/webui/tab_search/tab_search_item_test.ts
TypeScript
bsd-3-clause
4,902
[ 30522, 1013, 1013, 9385, 12609, 1996, 10381, 21716, 5007, 6048, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 2224, 1997, 2023, 3120, 3642, 2003, 9950, 2011, 1037, 18667, 2094, 1011, 2806, 6105, 2008, 2064, 2022, 1013, 1013, 2179, 1999, 1996, 6105, 5371, 1012, 12324, 1005, 18546, 1024, 1013, 1013, 4773, 10179, 1011, 3231, 1013, 28017, 1035, 4773, 10179, 1035, 3231, 1035, 2490, 1012, 1046, 2015, 1005, 1025, 12324, 1063, 3728, 20464, 24768, 2696, 2497, 1010, 21628, 1010, 21628, 9453, 21217, 12259, 1010, 21628, 2850, 2696, 1010, 21628, 17058, 1010, 21628, 17058, 18717, 1010, 21628, 4221, 20492, 18863, 1010, 21628, 17310, 11140, 4221, 2213, 1065, 2013, 1005, 18546, 1024, 1013, 1013, 21628, 1011, 3945, 1012, 2327, 1011, 18546, 1013, 21628, 1035, 3945, 1012, 1046, 2015, 1005, 1025, 12324, 1063, 20865, 26095, 5051, 26426, 2015, 1010, 20865, 2063, 26426, 2015, 1010, 20865, 22074, 26426, 2015, 1065, 2013, 1005, 18546, 1024, 1013, 1013, 4773, 10179, 1011, 3231, 1013, 15775, 2072, 1035, 20865, 1012, 1046, 2015, 1005, 1025, 12324, 1063, 13862, 10230, 5705, 1065, 2013, 1005, 18546, 1024, 1013, 1013, 4773, 10179, 1011, 3231, 1013, 3231, 1035, 21183, 4014, 1012, 1046, 2015, 1005, 1025, 12324, 1063, 3443, 2696, 2497, 1010, 7099, 18715, 2368, 1065, 2013, 1005, 1012, 1013, 21628, 1035, 3945, 1035, 3231, 1035, 2951, 1012, 1046, 2015, 1005, 1025, 7621, 1006, 1005, 21628, 17310, 11140, 4221, 20492, 4355, 1005, 1010, 1006, 1007, 1027, 1028, 1063, 2292, 21628, 17310, 11140, 4221, 2213, 1024, 21628, 17310, 11140, 4221, 2213, 1025, 2004, 6038, 2278, 3853, 16437, 22199, 1006, 2951, 1024, 21628, 2850, 2696, 1007, 1063, 21628, 17310, 11140, 4221, 2213, 1027, 6254, 1012, 3443, 12260, 3672, 1006, 1005, 21628, 1011, 3945, 1011, 8875, 1005, 1007, 1025, 21628, 17310, 11140, 4221, 2213, 1012, 2951, 1027, 2951, 1025, 6254, 1012, 2303, 1012, 5110, 11039, 19968, 1027, 1005, 1005, 1025, 6254, 1012, 2303, 1012, 10439, 10497, 19339, 1006, 21628, 17310, 11140, 4221, 2213, 1007, 1025, 26751, 13862, 10230, 5705, 1006, 1007, 1025, 1065, 2004, 6038, 2278, 3853, 20865, 2696, 5910, 14644, 5428, 18532, 4048, 5603, 15733, 1006, 3793, 1024, 5164, 1010, 2492, 4048, 5603, 7138, 24388, 2229, 1024, 9140, 1026, 1063, 2707, 1024, 2193, 1010, 3091, 1024, 2193, 1065, 1028, 1064, 19701, 1010, 3517, 1024, 30524, 1024, 2995, 1010, 2516, 1024, 3793, 1010, 1065, 1007, 1010, 21628, 4221, 20492, 18863, 1012, 2330, 1035, 21628, 1010, 3793, 1007, 1025, 2065, 1006, 2492, 4048, 5603, 7138, 24388, 2229, 999, 1027, 1027, 19701, 1007, 1063, 2951, 1012, 12944, 24388, 2229, 1027, 1063, 1005, 21628, 1012, 2516, 1005, 1024, 2492, 4048, 5603, 7138, 24388, 2229, 1010, 3677, 18442, 1024, 2492, 4048, 5603, 7138, 24388, 2229, 1010, 1065, 1025, 1065, 26751, 16437, 22199, 1006, 2951, 1007, 1025, 20865, 4048, 5603, 7138, 1006, 21628, 17310, 11140, 4221, 2213, 1012, 1002, 1031, 1005, 3078, 18209, 1005, 1033, 1010, 3517, 1007, 1025, 20865, 30523, 5164, 1031, 1033, 1007, 1063, 9530, 3367, 2951, 1027, 2047, 21628, 2850, 2696, 1006, 3443, 2696, 2497, 1006, 1063, 3161, 1024, 2995, 1010, 2003, 3207, 7011, 11314, 7011, 7903, 2239, 1024, 2995, 1010, 2265, 28524, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5164, 1031, 1033, 1007, 1063, 9530, 3367, 2951, 1027, 2047, 21628, 2850, 2696, 1006, 3443, 2696, 2497, 1006, 1063, 3161, 1024, 2995, 1010, 2003, 3207, 7011, 11314, 7011, 7903, 2239, 1024, 2995, 1010, 2265, 28524, 30526 ]
<?php /** * The template for displaying Comments. * * The area of the page that contains both current comments * and the comment form. The actual display of comments is * handled by a callback to _s_comment() which is * located in the functions.php file. * * @package _s * @since _s 1.0 */ ?> <?php /* * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ if ( post_password_required() ) return; ?> <div id="comments" class="comments-area"> <?php // You can start editing here -- including this comment! ?> <?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), '_s' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); ?> </h2> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav role="navigation" id="comment-nav-above" class="site-navigation comment-navigation"> <h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div> </nav><!-- #comment-nav-before .site-navigation .comment-navigation --> <?php endif; // check for comment navigation ?> <ol class="commentlist"> <?php /* Loop through and list the comments. Tell wp_list_comments() * to use _s_comment() to format the comments. * If you want to overload this in a child theme then you can * define _s_comment() and that will be used instead. * See _s_comment() in inc/template-tags.php for more. */ wp_list_comments( array( 'callback' => '_s_comment' ) ); ?> </ol><!-- .commentlist --> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation"> <h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div> </nav><!-- #comment-nav-below .site-navigation .comment-navigation --> <?php endif; // check for comment navigation ?> <?php endif; // have_comments() ?> <?php // If comments are closed and there are comments, let's leave a little note, shall we? if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p class="nocomments"><?php _e( 'Comments are closed.', '_s' ); ?></p> <?php endif; ?> <?php comment_form(); ?> </div><!-- #comments .comments-area -->
konscript/konscriptblog
wp-content/themes/underscores/comments.php
PHP
gpl-2.0
3,043
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 1996, 23561, 2005, 14962, 7928, 1012, 1008, 1008, 1996, 2181, 1997, 1996, 3931, 2008, 3397, 2119, 2783, 7928, 1008, 1998, 1996, 7615, 2433, 1012, 1996, 5025, 4653, 1997, 7928, 2003, 1008, 8971, 2011, 1037, 2655, 5963, 2000, 1035, 1055, 1035, 7615, 1006, 1007, 2029, 2003, 1008, 2284, 1999, 1996, 4972, 1012, 25718, 5371, 1012, 1008, 1008, 1030, 7427, 1035, 1055, 1008, 1030, 2144, 1035, 1055, 1015, 1012, 1014, 1008, 1013, 1029, 1028, 1026, 1029, 25718, 1013, 1008, 1008, 2065, 1996, 2783, 2695, 2003, 5123, 2011, 1037, 20786, 1998, 1008, 1996, 10367, 2038, 2025, 2664, 3133, 1996, 20786, 2057, 2097, 1008, 2709, 2220, 2302, 10578, 1996, 7928, 1012, 1008, 1013, 2065, 1006, 2695, 1035, 20786, 1035, 3223, 1006, 1007, 1007, 2709, 1025, 1029, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 7928, 1000, 2465, 1027, 1000, 7928, 1011, 2181, 1000, 1028, 1026, 1029, 25718, 1013, 1013, 2017, 2064, 2707, 9260, 2182, 1011, 1011, 2164, 2023, 7615, 999, 1029, 1028, 1026, 1029, 25718, 2065, 1006, 2031, 1035, 7928, 1006, 1007, 1007, 1024, 1029, 1028, 1026, 1044, 2475, 2465, 1027, 1000, 7928, 1011, 2516, 1000, 1028, 1026, 1029, 25718, 6140, 2546, 1006, 30524, 16428, 28940, 2080, 1025, 1005, 1010, 2131, 1035, 7928, 1035, 2193, 1006, 1007, 1010, 1005, 1035, 1055, 1005, 1007, 1010, 2193, 1035, 4289, 1035, 1045, 15136, 2078, 1006, 2131, 1035, 7928, 1035, 2193, 1006, 1007, 1007, 1010, 1005, 1026, 8487, 1028, 1005, 1012, 2131, 1035, 1996, 1035, 2516, 1006, 1007, 1012, 1005, 1026, 1013, 8487, 1028, 1005, 1007, 1025, 1029, 1028, 1026, 1013, 1044, 2475, 1028, 1026, 1029, 25718, 2065, 1006, 2131, 1035, 7615, 1035, 5530, 1035, 4175, 1006, 1007, 1028, 1015, 1004, 1004, 2131, 1035, 5724, 1006, 1005, 3931, 1035, 7928, 1005, 1007, 1007, 1024, 1013, 1013, 2024, 2045, 7928, 2000, 22149, 2083, 1029, 1028, 1026, 6583, 2615, 2535, 1027, 1000, 9163, 1000, 8909, 1027, 1000, 7615, 1011, 6583, 2615, 1011, 2682, 1000, 2465, 1027, 1000, 2609, 1011, 9163, 7615, 1011, 9163, 1000, 1028, 1026, 1044, 2487, 2465, 1027, 1000, 6509, 3512, 1011, 3793, 1000, 1028, 1026, 1029, 25718, 1035, 1041, 1006, 1005, 7615, 9163, 1005, 1010, 1005, 1035, 1055, 1005, 1007, 1025, 1029, 1028, 1026, 1013, 1044, 2487, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 6583, 2615, 1011, 3025, 1000, 1028, 1026, 1029, 25718, 3025, 1035, 7928, 1035, 4957, 1006, 1035, 1035, 1006, 1005, 1004, 2474, 12171, 1025, 3080, 7928, 1005, 1010, 1005, 1035, 1055, 1005, 1007, 1007, 1025, 1029, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 6583, 2615, 1011, 2279, 1000, 1028, 1026, 1029, 25718, 2279, 1035, 7928, 1035, 4957, 1006, 1035, 1035, 1006, 1005, 10947, 7928, 1004, 10958, 12171, 1025, 1005, 1010, 1005, 1035, 1055, 1005, 1007, 1007, 1025, 1029, 1028, 1026, 1013, 4487, 30523, 1035, 1050, 1006, 1005, 2028, 2245, 2006, 1004, 25510, 28940, 2080, 1025, 1003, 1016, 1002, 1055, 1004, 16428, 28940, 2080, 1025, 1005, 1010, 1005, 1003, 1015, 1002, 1055, 4301, 2006, 1004, 25510, 28940, 2080, 1025, 1003, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1035, 1050, 1006, 1005, 2028, 2245, 2006, 1004, 25510, 28940, 2080, 1025, 1003, 1016, 1002, 1055, 1004, 16428, 28940, 2080, 1025, 1005, 1010, 1005, 1003, 1015, 1002, 1055, 4301, 2006, 1004, 25510, 28940, 2080, 1025, 1003, 1016, 1002, 1055, 1004, 30526 ]
/* Copyright 2013-2021 Paul Colby This file is part of QtAws. QtAws 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 3 of the License, or (at your option) any later version. QtAws 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 the QtAws. If not, see <http://www.gnu.org/licenses/>. */ #ifndef QTAWS_DELETEBOTREQUEST_P_H #define QTAWS_DELETEBOTREQUEST_P_H #include "lexmodelbuildingservicerequest_p.h" #include "deletebotrequest.h" namespace QtAws { namespace LexModelBuildingService { class DeleteBotRequest; class DeleteBotRequestPrivate : public LexModelBuildingServiceRequestPrivate { public: DeleteBotRequestPrivate(const LexModelBuildingServiceRequest::Action action, DeleteBotRequest * const q); DeleteBotRequestPrivate(const DeleteBotRequestPrivate &other, DeleteBotRequest * const q); private: Q_DECLARE_PUBLIC(DeleteBotRequest) }; } // namespace LexModelBuildingService } // namespace QtAws #endif
pcolby/libqtaws
src/lexmodelbuildingservice/deletebotrequest_p.h
C
lgpl-3.0
1,445
[ 30522, 1013, 1008, 9385, 2286, 1011, 25682, 2703, 18650, 2023, 5371, 2003, 2112, 1997, 1053, 2696, 9333, 1012, 1053, 2696, 9333, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 30524, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 8276, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2247, 2007, 1996, 1053, 2696, 9333, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 1008, 1013, 1001, 2065, 13629, 2546, 1053, 2696, 9333, 1035, 3972, 12870, 18384, 2890, 15500, 1035, 1052, 1035, 1044, 1001, 9375, 1053, 2696, 9333, 1035, 3972, 12870, 18384, 2890, 15500, 1035, 1052, 1035, 1044, 1001, 2421, 1000, 17244, 5302, 9247, 25820, 8043, 7903, 7869, 15500, 1035, 1052, 1012, 1044, 1000, 1001, 2421, 1000, 3972, 12870, 18384, 2890, 15500, 1012, 1044, 1000, 3415, 15327, 1053, 2696, 9333, 1063, 3415, 15327, 17244, 5302, 9247, 25820, 8043, 7903, 2063, 1063, 2465, 3972, 12870, 18384, 2890, 15500, 1025, 2465, 3972, 12870, 18384, 2890, 15500, 18098, 21466, 1024, 2270, 17244, 5302, 9247, 25820, 8043, 7903, 7869, 15500, 18098, 21466, 1063, 2270, 1024, 3972, 12870, 18384, 2890, 15500, 18098, 21466, 1006, 9530, 3367, 17244, 5302, 9247, 25820, 8043, 7903, 7869, 15500, 1024, 1024, 2895, 2895, 1010, 3972, 12870, 18384, 2890, 15500, 1008, 9530, 3367, 1053, 1007, 1025, 3972, 12870, 18384, 2890, 15500, 18098, 21466, 1006, 9530, 3367, 3972, 12870, 18384, 2890, 15500, 18098, 21466, 1004, 2060, 1010, 3972, 12870, 18384, 2890, 15500, 1008, 9530, 3367, 1053, 1007, 1025, 2797, 1024, 1053, 1035, 13520, 1035, 2270, 1006, 3972, 12870, 18384, 2890, 15500, 1007, 1065, 1025, 1065, 1013, 1013, 3415, 15327, 17244, 5302, 9247, 25820, 8043, 7903, 2063, 1065, 1013, 1013, 3415, 15327, 1053, 2696, 9333, 1001, 2203, 10128, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 2544, 1012, 1053, 2696, 9333, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2544, 1012, 1053, 2696, 9333, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 30526 ]
#!/usr/bin/env python """ @file HybridVAControl.py @author Craig Rafter @date 19/08/2016 class for fixed time signal control """ import signalControl, readJunctionData, traci from math import atan2, degrees import numpy as np from collections import defaultdict class HybridVAControl(signalControl.signalControl): def __init__(self, junctionData, minGreenTime=10, maxGreenTime=60, scanRange=250, packetRate=0.2): super(HybridVAControl, self).__init__() self.junctionData = junctionData self.firstCalled = self.getCurrentSUMOtime() self.lastCalled = self.getCurrentSUMOtime() self.lastStageIndex = 0 traci.trafficlights.setRedYellowGreenState(self.junctionData.id, self.junctionData.stages[self.lastStageIndex].controlString) self.packetRate = int(1000*packetRate) self.transition = False self.CAMactive = False # dict[vehID] = [position, heading, velocity, Tdetect] self.newVehicleInfo = {} self.oldVehicleInfo = {} self.scanRange = scanRange self.jcnCtrlRegion = self._getJncCtrlRegion() # print(self.junctionData.id) # print(self.jcnCtrlRegion) self.controlledLanes = traci.trafficlights.getControlledLanes(self.junctionData.id) # dict[laneID] = [heading, shape] self.laneDetectionInfo = self._getIncomingLaneInfo() self.stageTime = 0.0 self.minGreenTime = minGreenTime self.maxGreenTime = maxGreenTime self.secondsPerMeterTraffic = 0.45 self.nearVehicleCatchDistance = 25 self.extendTime = 1.0 # 5 m in 10 m/s (acceptable journey 1.333) self.laneInductors = self._getLaneInductors() def process(self): # Packets sent on this step # packet delay + only get packets towards the end of the second if (not self.getCurrentSUMOtime() % self.packetRate) and (self.getCurrentSUMOtime() % 1000 > 500): self.CAMactive = True self._getCAMinfo() else: self.CAMactive = False # Update stage decisions # If there's no ITS enabled vehicles present use VA ctrl if len(self.oldVehicleInfo) < 1 and not self.getCurrentSUMOtime() % 1000: detectTimePerLane = self._getLaneDetectTime() #print(detectTimePerLane) # Set adaptive time limit #print(detectTimePerLane < 3) if np.any(detectTimePerLane < 2): extend = self.extendTime else: extend = 0.0 self.stageTime = max(self.stageTime + extend, self.minGreenTime) self.stageTime = min(self.stageTime, self.maxGreenTime) # If active and on the second, or transition then make stage descision elif (self.CAMactive and not self.getCurrentSUMOtime() % 1000) or self.transition: oncomingVeh = self._getOncomingVehicles() # If new stage get furthest from stop line whose velocity < 5% speed # limit and determine queue length if self.transition: furthestVeh = self._getFurthestStationaryVehicle(oncomingVeh) if furthestVeh[0] != '': meteredTime = self.secondsPerMeterTraffic*furthestVeh[1] self.stageTime = max(self.minGreenTime, meteredTime) self.stageTime = min(self.stageTime, self.maxGreenTime) # If we're in this state this should never happen but just in case else: self.stageTime = self.minGreenTime # If currently staging then extend time if there are vehicles close # to the stop line else: nearestVeh = self._getNearestVehicle(oncomingVeh) # If a vehicle detected if nearestVeh != '' and nearestVeh[1] <= self.nearVehicleCatchDistance: if (self.oldVehicleInfo[nearestVeh[0]][2] != 1e6 and self.oldVehicleInfo[nearestVeh[0]][2] > 1.0/self.secondsPerMeterTraffic): meteredTime = nearestVeh[1]/self.oldVehicleInfo[nearestVeh[0]][2] else: meteredTime = self.secondsPerMeterTraffic*nearestVeh[1] elapsedTime = 0.001*(self.getCurrentSUMOtime() - self.lastCalled) Tremaining = self.stageTime - elapsedTime self.stageTime = elapsedTime + max(meteredTime, Tremaining) self.stageTime = min(self.stageTime, self.maxGreenTime) # no detectable near vehicle try inductive loop info elif nearestVeh == '' or nearestVeh[1] <= self.nearVehicleCatchDistance: detectTimePerLane = self._getLaneDetectTime() print('Loops2') # Set adaptive time limit if np.any(detectTimePerLane < 2): extend = self.extendTime else: extend = 0.0 self.stageTime = max(self.stageTime + extend, self.minGreenTime) self.stageTime = min(self.stageTime, self.maxGreenTime) else: pass # process stage as normal else: pass # print(self.stageTime) self.transition = False if self.transitionObject.active: # If the transition object is active i.e. processing a transition pass elif (self.getCurrentSUMOtime() - self.firstCalled) < (self.junctionData.offset*1000): # Process offset first pass elif (self.getCurrentSUMOtime() - self.lastCalled) < self.stageTime*1000: # Before the period of the next stage pass else: # Not active, not in offset, stage not finished if len(self.junctionData.stages) != (self.lastStageIndex)+1: # Loop from final stage to first stage self.transitionObject.newTransition( self.junctionData.id, self.junctionData.stages[self.lastStageIndex].controlString, self.junctionData.stages[self.lastStageIndex+1].controlString) self.lastStageIndex += 1 else: # Proceed to next stage #print(0.001*(self.getCurrentSUMOtime() - self.lastCalled)) self.transitionObject.newTransition( self.junctionData.id, self.junctionData.stages[self.lastStageIndex].controlString, self.junctionData.stages[0].controlString) self.lastStageIndex = 0 #print(0.001*(self.getCurrentSUMOtime() - self.lastCalled)) self.lastCalled = self.getCurrentSUMOtime() self.transition = True self.stageTime = 0.0 super(HybridVAControl, self).process() def _getHeading(self, currentLoc, prevLoc): dy = currentLoc[1] - prevLoc[1] dx = currentLoc[0] - prevLoc[0] if currentLoc[1] == prevLoc[1] and currentLoc[0] == prevLoc[0]: heading = -1 else: if dy >= 0: heading = degrees(atan2(dy, dx)) else: heading = 360 + degrees(atan2(dy, dx)) # Map angle to make compatible with SUMO heading if 0 <= heading <= 90: heading = 90 - heading elif 90 < heading < 360: heading = 450 - heading return heading def _getJncCtrlRegion(self): jncPosition = traci.junction.getPosition(self.junctionData.id) otherJuncPos = [traci.junction.getPosition(x) for x in traci.trafficlights.getIDList() if x != self.junctionData.id] ctrlRegion = {'N':jncPosition[1]+self.scanRange, 'S':jncPosition[1]-self.scanRange, 'E':jncPosition[0]+self.scanRange, 'W':jncPosition[0]-self.scanRange} TOL = 10 # Exclusion region around junction boundary if otherJuncPos != []: for pos in otherJuncPos: dx = jncPosition[0] - pos[0] dy = jncPosition[1] - pos[1] # North/South Boundary if abs(dy) < self.scanRange: if dy < -TOL: ctrlRegion['N'] = min(pos[1] - TOL, ctrlRegion['N']) elif dy > TOL: ctrlRegion['S'] = max(pos[1] + TOL, ctrlRegion['S']) else: pass else: pass # East/West Boundary if abs(dx) < self.scanRange: if dx < -TOL: ctrlRegion['E'] = min(pos[0] - TOL, ctrlRegion['E']) elif dx > TOL: ctrlRegion['W'] = max(pos[0] + TOL, ctrlRegion['W']) else: pass else: pass return ctrlRegion def _isInRange(self, vehID): vehPosition = np.array(traci.vehicle.getPosition(vehID)) jcnPosition = np.array(traci.junction.getPosition(self.junctionData.id)) distance = np.linalg.norm(vehPosition - jcnPosition) if (distance < self.scanRange and self.jcnCtrlRegion['W'] <= vehPosition[0] <= self.jcnCtrlRegion['E'] and self.jcnCtrlRegion['S'] <= vehPosition[1] <= self.jcnCtrlRegion['N']): return True else: return False def _getVelocity(self, vehID, vehPosition, Tdetect): if vehID in self.oldVehicleInfo.keys(): oldX = np.array(self.oldVehicleInfo[vehID][0]) newX = np.array(vehPosition) dx = np.linalg.norm(newX - oldX) dt = Tdetect - self.oldVehicleInfo[vehID][3] velocity = dx/dt return velocity else: return 1e6 def _getCAMinfo(self): self.oldVehicleInfo = self.newVehicleInfo.copy() self.newVehicleInfo = {} Tdetect = 0.001*self.getCurrentSUMOtime() for vehID in traci.vehicle.getIDList(): if traci.vehicle.getTypeID(vehID) == 'typeITSCV' and self._isInRange(vehID): vehPosition = traci.vehicle.getPosition(vehID) vehHeading = traci.vehicle.getAngle(vehID) vehVelocity = self._getVelocity(vehID, vehPosition, Tdetect) self.newVehicleInfo[vehID] = [vehPosition, vehHeading, vehVelocity, Tdetect] def _getIncomingLaneInfo(self): laneInfo = defaultdict(list) for lane in list(np.unique(np.array(self.controlledLanes))): shape = traci.lane.getShape(lane) width = traci.lane.getWidth(lane) heading = self._getHeading(shape[1], shape[0]) dx = shape[0][0] - shape[1][0] dy = shape[0][1] - shape[1][1] if abs(dx) > abs(dy): roadBounds = ((shape[0][0], shape[0][1] + width), (shape[1][0], shape[1][1] - width)) else: roadBounds = ((shape[0][0] + width, shape[0][1]), (shape[1][0] - width, shape[1][1])) laneInfo[lane] = [heading, roadBounds] return laneInfo def _getOncomingVehicles(self): # Oncoming if (in active lane & heading matches oncoming heading & # is in lane bounds) activeLanes = self._getActiveLanes() vehicles = [] for lane in activeLanes: for vehID in self.oldVehicleInfo.keys(): # If on correct heading pm 10deg if (np.isclose(self.oldVehicleInfo[vehID][1], self.laneDetectionInfo[lane][0], atol=10) # If in lane x bounds and min(self.laneDetectionInfo[lane][1][0][0], self.laneDetectionInfo[lane][1][1][0]) < self.oldVehicleInfo[vehID][0][0] < max(self.laneDetectionInfo[lane][1][0][0], self.laneDetectionInfo[lane][1][1][0]) # If in lane y bounds and min(self.laneDetectionInfo[lane][1][0][1], self.laneDetectionInfo[lane][1][1][1]) < self.oldVehicleInfo[vehID][0][1] < max(self.laneDetectionInfo[lane][1][0][1], self.laneDetectionInfo[lane][1][1][1])): # Then append vehicle vehicles.append(vehID) vehicles = list(np.unique(np.array(vehicles))) return vehicles def _getActiveLanes(self): # Get the current control string to find the green lights stageCtrlString = self.junctionData.stages[self.lastStageIndex].controlString activeLanes = [] for i, letter in enumerate(stageCtrlString): if letter == 'G': activeLanes.append(self.controlledLanes[i]) # Get a list of the unique active lanes activeLanes = list(np.unique(np.array(activeLanes))) return activeLanes def _getLaneInductors(self): laneInductors = defaultdict(list) for loop in traci.inductionloop.getIDList(): loopLane = traci.inductionloop.getLaneID(loop) if loopLane in self.controlledLanes and 'upstream' not in loop: laneInductors[loopLane].append(loop) return laneInductors def _getFurthestStationaryVehicle(self, vehIDs): furthestID = '' maxDistance = -1 jcnPosition = np.array(traci.junction.getPosition(self.junctionData.id)) speedLimit = traci.lane.getMaxSpeed(self._getActiveLanes()[0]) for ID in vehIDs: vehPosition = np.array(self.oldVehicleInfo[ID][0]) distance = np.linalg.norm(vehPosition - jcnPosition) if distance > maxDistance and self.oldVehicleInfo[ID][2] < 0.05*speedLimit: furthestID = ID maxDistance = distance return [furthestID, maxDistance] def _getNearestVehicle(self, vehIDs): nearestID = '' minDistance = self.nearVehicleCatchDistance + 1 jcnPosition = np.array(traci.junction.getPosition(self.junctionData.id)) for ID in vehIDs: vehPosition = np.array(self.oldVehicleInfo[ID][0]) distance = np.linalg.norm(vehPosition - jcnPosition) if distance < minDistance: nearestID = ID minDistance = distance return [nearestID, minDistance] def _getLaneDetectTime(self): activeLanes = self._getActiveLanes() meanDetectTimePerLane = np.zeros(len(activeLanes)) for i, lane in enumerate(activeLanes): detectTimes = [] for loop in self.laneInductors[lane]: detectTimes.append(traci.inductionloop.getTimeSinceDetection(loop)) meanDetectTimePerLane[i] = np.mean(detectTimes) return meanDetectTimePerLane
cbrafter/TRB18_GPSVA
codes/sumoAPI/HybridVAControl_PROFILED.py
Python
mit
14,996
[ 30522, 1001, 999, 1013, 2149, 2099, 1013, 8026, 1013, 4372, 2615, 18750, 1000, 1000, 1000, 1030, 5371, 8893, 24887, 12162, 13153, 1012, 1052, 2100, 1030, 3166, 7010, 21298, 2121, 1030, 3058, 2539, 1013, 5511, 1013, 2355, 2465, 2005, 4964, 2051, 4742, 2491, 1000, 1000, 1000, 12324, 4742, 8663, 13181, 2140, 1010, 3191, 19792, 7542, 2850, 2696, 1010, 19817, 6305, 2072, 2013, 8785, 12324, 29533, 2078, 2475, 1010, 5445, 12324, 16371, 8737, 2100, 2004, 27937, 2013, 6407, 12324, 12398, 29201, 2465, 8893, 24887, 12162, 13153, 1006, 4742, 8663, 13181, 2140, 1012, 4742, 8663, 13181, 2140, 1007, 1024, 13366, 1035, 1035, 1999, 4183, 1035, 1035, 1006, 2969, 1010, 5098, 2850, 2696, 1010, 11861, 28029, 7292, 1027, 2184, 1010, 4098, 28637, 16778, 4168, 1027, 3438, 1010, 13594, 24388, 2063, 1027, 5539, 1010, 14771, 11657, 1027, 1014, 1012, 1016, 1007, 1024, 3565, 1006, 8893, 24887, 12162, 13153, 1010, 2969, 1007, 1012, 1035, 1035, 1999, 4183, 1035, 1035, 1006, 1007, 2969, 1012, 5098, 2850, 2696, 1027, 5098, 2850, 2696, 2969, 1012, 2034, 9289, 3709, 1027, 2969, 1012, 2131, 10841, 14343, 7666, 2819, 4140, 14428, 1006, 1007, 2969, 1012, 2197, 9289, 3709, 1027, 2969, 1012, 2131, 10841, 14343, 7666, 2819, 4140, 14428, 1006, 1007, 2969, 1012, 16180, 26702, 22254, 10288, 1027, 1014, 19817, 6305, 2072, 1012, 4026, 15733, 1012, 2275, 5596, 6672, 7174, 27767, 28029, 9153, 2618, 1006, 2969, 1012, 5098, 2850, 2696, 1012, 8909, 1010, 2969, 1012, 5098, 2850, 2696, 1012, 5711, 1031, 2969, 1012, 16180, 26702, 22254, 10288, 1033, 1012, 7711, 18886, 3070, 1007, 2969, 1012, 14771, 11657, 1027, 20014, 1006, 6694, 1008, 14771, 11657, 1007, 2969, 1012, 6653, 1027, 6270, 2969, 1012, 11503, 19620, 1027, 6270, 1001, 4487, 6593, 1031, 2310, 27511, 1033, 1027, 1031, 2597, 1010, 5825, 1010, 10146, 1010, 14595, 12870, 6593, 1033, 2969, 1012, 2047, 3726, 16066, 19856, 14876, 1027, 1063, 1065, 2969, 1012, 2214, 3726, 16066, 19856, 14876, 1027, 1063, 1065, 2969, 1012, 13594, 24388, 2063, 1027, 13594, 24388, 2063, 2969, 1012, 29175, 12273, 16344, 20974, 13910, 3258, 1027, 2969, 1012, 1035, 2131, 22895, 9468, 16344, 20974, 13910, 3258, 1006, 1007, 1001, 6140, 1006, 2969, 1012, 5098, 2850, 2696, 1012, 8909, 1007, 1001, 6140, 1006, 2969, 1012, 29175, 12273, 16344, 20974, 13910, 3258, 1007, 2969, 1012, 4758, 20644, 2015, 1027, 19817, 6305, 2072, 1012, 4026, 15733, 1012, 2131, 8663, 13181, 11001, 20644, 2015, 1006, 2969, 1012, 5098, 2850, 2696, 1012, 8909, 1007, 1001, 4487, 6593, 1031, 4644, 3593, 1033, 1027, 1031, 5825, 1010, 4338, 30524, 1012, 4098, 28637, 16778, 4168, 1027, 4098, 28637, 16778, 4168, 2969, 1012, 3823, 4842, 22828, 6494, 26989, 2278, 1027, 1014, 1012, 3429, 2969, 1012, 2379, 3726, 16066, 2571, 11266, 2818, 10521, 26897, 1027, 2423, 2969, 1012, 7949, 7292, 1027, 1015, 1012, 1014, 1001, 1019, 1049, 1999, 2184, 1049, 1013, 1055, 1006, 11701, 4990, 1015, 1012, 30523, 1033, 2969, 1012, 4644, 3207, 26557, 3508, 2378, 14876, 1027, 2969, 1012, 1035, 2131, 2378, 18935, 20644, 2378, 14876, 1006, 1007, 2969, 1012, 2754, 7292, 1027, 1014, 1012, 1014, 2969, 1012, 11861, 28029, 7292, 1027, 11861, 28029, 7292, 2969, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1033, 2969, 1012, 4644, 3207, 26557, 3508, 2378, 14876, 1027, 2969, 1012, 1035, 2131, 2378, 18935, 20644, 2378, 14876, 1006, 1007, 2969, 1012, 2754, 7292, 1027, 1014, 1012, 1014, 2969, 1012, 11861, 28029, 7292, 1027, 11861, 28029, 7292, 2969, 30526 ]
using System; namespace Player.Model { /// <remarks> /// A button can only be rectangular, if there should be other forms, you have to use more buttons which reference each other. /// </remarks> public interface ButtonPosition { int X { get; } int Y { get; } /// <summary>The dimension in x coordinates, i.e. how many columns are allocated.</summary> int DimX { get; } /// <summary>The dimension in y coordinates, i.e. how many rows are allocated.</summary> int DimY { get; } } }
asterics/KeyboardX
Player/Model/ButtonPosition.cs
C#
gpl-2.0
579
[ 30522, 2478, 2291, 1025, 3415, 15327, 2447, 1012, 2944, 1063, 1013, 1013, 1013, 1026, 12629, 1028, 1013, 1013, 1013, 1037, 6462, 2064, 2069, 2022, 10806, 1010, 2065, 2045, 2323, 2022, 2060, 3596, 1010, 2017, 2031, 2000, 2224, 2062, 11287, 2029, 4431, 2169, 2060, 1012, 1013, 1013, 1013, 1026, 1013, 12629, 1028, 2270, 8278, 6462, 26994, 1063, 20014, 1060, 1063, 2131, 1025, 1065, 20014, 1061, 1063, 2131, 1025, 1065, 1013, 1013, 1013, 1026, 12654, 1028, 1996, 9812, 1999, 1060, 12093, 1010, 1045, 1012, 1041, 1012, 2129, 2116, 7753, 2024, 11095, 1012, 1026, 1013, 12654, 1028, 20014, 11737, 2595, 1063, 2131, 1025, 1065, 1013, 1013, 1013, 1026, 12654, 1028, 1996, 9812, 1999, 1061, 12093, 1010, 1045, 1012, 1041, 1012, 2129, 2116, 10281, 2024, 11095, 1012, 1026, 1013, 12654, 1028, 20014, 11737, 2100, 1063, 2131, 1025, 1065, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
#include "message_value.h" //#include <iostream> MessageValue::MessageValue() : message_array(NULL), sequence_name(NULL) {} MessageValue::MessageValue(char type, char* name) : message_type(type) { sequence_name = name; length = 1 + strlen(sequence_name) + 1; if (message_array != NULL) { delete[] message_array; message_array = NULL; } message_array = new char[length]; message_array[0] = message_type; strcpy(&message_array[1], sequence_name); } MessageValue::MessageValue(char* message) { if (message[0] == CURRENT_LABEL || message[0] == INCOMING_LABEL || message[0] == NEIGHBOR_NODE) { message_type = message[0]; sequence_name = &message[1]; } else { message_type = NEIGHBOR_NODE; sequence_name = message; } length = 1 + strlen(sequence_name) + 1; if (message_array != NULL) { delete[] message_array; message_array = NULL; } message_array = new char[length]; message_array[0] = message_type; strcpy(&message_array[1], sequence_name); } MessageValue::~MessageValue() { if (message_array) { //std::cout << "deleting array " << std::endl; //std::cout << message_array << std::endl; delete[] message_array; message_array = NULL; //std::cout << "it's now deleted" << std::endl; } //std::cout << "exiting destructor" << std::endl; } MessageValue::MessageValue(const MessageValue& rhs) { this -> length = rhs.length; this -> sequence_name = rhs.sequence_name; this -> message_type = rhs.message_type; if (this -> message_array != NULL) { delete[] (this -> message_array); this -> message_array = NULL; } this -> message_array = new char[length]; memcpy(this -> message_array, rhs.message_array, length); } char* MessageValue::get_message_array() { return message_array; } void MessageValue::set_name(char* name) { strcpy(sequence_name, name); } char* MessageValue::get_name() { return sequence_name; } void MessageValue::set_type(char type) { message_type = type; if (message_array != NULL) { message_array[0] = type; } } char MessageValue::get_type() { return message_type; } MessageValue& MessageValue::operator=( const MessageValue& rhs ) { if (this -> message_array != NULL) { delete[] (this -> message_array); this -> message_array = NULL; } this -> length = rhs.length; this -> sequence_name = rhs.sequence_name; this -> message_type = rhs.message_type; this -> message_array = new char[length]; memcpy(this -> message_array, rhs.message_array, length); } bool MessageValue::operator==(MessageValue& rhs) { return ( !strcmp( this -> sequence_name, rhs.get_name() ) && this -> message_type == rhs.get_type() ); } void MessageValue::assign(MessageValue* rhs) { this -> message_type = rhs -> get_type(); this -> sequence_name = rhs -> get_name(); if (this -> message_array != NULL) { delete[] message_array; message_array = NULL; } length = rhs -> get_length(); message_array = new char[length]; strcpy( this -> message_array, rhs -> get_message_array()); } int MessageValue::get_length() { return length; }
armenabnousi/minhash_clustering
src/message_value.cpp
C++
gpl-3.0
3,012
[ 30522, 1001, 2421, 1000, 4471, 1035, 3643, 1012, 1044, 1000, 1013, 1013, 1001, 2421, 1026, 16380, 25379, 1028, 4471, 10175, 5657, 1024, 1024, 4471, 10175, 5657, 1006, 1007, 1024, 4471, 1035, 9140, 1006, 19701, 1007, 1010, 5537, 1035, 2171, 1006, 19701, 1007, 1063, 1065, 4471, 10175, 5657, 1024, 1024, 4471, 10175, 5657, 1006, 25869, 2828, 1010, 25869, 1008, 2171, 1007, 1024, 4471, 1035, 2828, 1006, 2828, 1007, 1063, 5537, 1035, 2171, 1027, 2171, 1025, 3091, 1027, 1015, 1009, 2358, 20927, 2078, 1006, 5537, 1035, 2171, 1007, 1009, 1015, 1025, 2065, 1006, 4471, 1035, 9140, 999, 1027, 19701, 1007, 1063, 3972, 12870, 1031, 1033, 4471, 1035, 9140, 1025, 4471, 1035, 9140, 1027, 19701, 1025, 1065, 4471, 1035, 9140, 1027, 2047, 25869, 1031, 3091, 1033, 1025, 4471, 1035, 9140, 1031, 1014, 1033, 1027, 4471, 1035, 2828, 1025, 2358, 11890, 7685, 1006, 1004, 4471, 1035, 9140, 1031, 1015, 1033, 1010, 5537, 1035, 2171, 1007, 1025, 1065, 4471, 10175, 5657, 1024, 1024, 4471, 10175, 5657, 1006, 25869, 1008, 4471, 1007, 1063, 2065, 1006, 4471, 1031, 1014, 1033, 1027, 1027, 2783, 1035, 3830, 1064, 1064, 4471, 1031, 1014, 1033, 1027, 1027, 14932, 1035, 3830, 1064, 1064, 4471, 1031, 1014, 1033, 1027, 1027, 11429, 1035, 13045, 1007, 1063, 4471, 1035, 2828, 1027, 4471, 1031, 1014, 1033, 1025, 5537, 1035, 2171, 1027, 1004, 4471, 1031, 1015, 1033, 1025, 1065, 2842, 1063, 4471, 1035, 2828, 1027, 11429, 1035, 13045, 1025, 5537, 1035, 2171, 1027, 4471, 1025, 1065, 3091, 1027, 1015, 1009, 2358, 20927, 2078, 1006, 5537, 1035, 2171, 1007, 1009, 1015, 1025, 2065, 1006, 4471, 1035, 9140, 999, 1027, 19701, 1007, 1063, 3972, 12870, 1031, 1033, 4471, 1035, 9140, 1025, 4471, 1035, 9140, 1027, 19701, 1025, 1065, 4471, 1035, 9140, 1027, 2047, 25869, 1031, 3091, 1033, 1025, 4471, 1035, 9140, 1031, 1014, 1033, 1027, 4471, 1035, 2828, 1025, 2358, 11890, 7685, 1006, 1004, 4471, 1035, 9140, 1031, 1015, 1033, 1010, 5537, 1035, 2171, 1007, 1025, 1065, 4471, 10175, 5657, 1024, 1024, 1066, 4471, 10175, 5657, 1006, 1007, 1063, 2065, 1006, 4471, 1035, 9140, 1007, 1063, 1013, 1013, 2358, 2094, 1024, 1024, 2522, 4904, 1026, 1026, 1000, 3972, 20624, 3070, 9140, 1000, 30524, 12870, 1031, 1033, 4471, 1035, 9140, 1025, 4471, 1035, 9140, 1027, 19701, 1025, 1013, 1013, 2358, 2094, 1024, 1024, 2522, 4904, 1026, 1026, 1000, 2009, 1005, 1055, 2085, 17159, 1000, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 1065, 1013, 1013, 2358, 2094, 1024, 1024, 2522, 4904, 1026, 1026, 1000, 22371, 4078, 18300, 2953, 1000, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 1065, 4471, 10175, 5657, 1024, 1024, 4471, 10175, 5657, 1006, 9530, 3367, 4471, 10175, 5657, 1004, 1054, 7898, 1007, 1063, 2023, 1011, 1028, 3091, 1027, 1054, 7898, 1012, 3091, 1025, 2023, 1011, 1028, 5537, 1035, 2171, 1027, 1054, 7898, 1012, 5537, 1035, 2171, 1025, 2023, 1011, 1028, 4471, 1035, 30523, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 1013, 1013, 2358, 2094, 1024, 1024, 2522, 4904, 1026, 1026, 4471, 1035, 9140, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 3972, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 1013, 1013, 2358, 2094, 1024, 1024, 2522, 4904, 1026, 1026, 4471, 1035, 9140, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 3972, 30526 ]
package com.ribose.jenkins.plugin.awscodecommittrigger.it.feature; import com.ribose.jenkins.plugin.awscodecommittrigger.it.AbstractFreestyleTestProject; import com.ribose.jenkins.plugin.awscodecommittrigger.it.fixture.ProjectFixture; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @RunWith(Parameterized.class) public abstract class AbstractFreestyleParamsTestProject extends AbstractFreestyleTestProject { private static Logger log = LoggerFactory.getLogger(AbstractFreestyleParamsTestProject.class); @Parameterized.Parameter public String name; @Parameterized.Parameter(1) public ProjectFixture fixture; @Test public void shouldPassIt() throws Exception { log.info("Running test fixture: {}", this.fixture.getName()); this.mockAwsSqs.send(this.fixture.getSendBranches()); this.submitAndAssertFixture(this.fixture); } }
jenkinsci/aws-codecommit-trigger-plugin
src/test/java/com/ribose/jenkins/plugin/awscodecommittrigger/it/feature/AbstractFreestyleParamsTestProject.java
Java
apache-2.0
991
[ 30522, 7427, 4012, 1012, 19395, 9232, 1012, 11098, 1012, 13354, 2378, 1012, 22091, 9363, 3207, 9006, 22930, 18886, 13327, 1012, 2009, 1012, 3444, 1025, 12324, 4012, 1012, 19395, 9232, 1012, 11098, 1012, 13354, 2378, 1012, 22091, 9363, 3207, 9006, 22930, 18886, 13327, 1012, 2009, 1012, 10061, 23301, 21756, 25890, 3367, 21572, 20614, 1025, 12324, 4012, 1012, 19395, 9232, 1012, 11098, 1012, 13354, 2378, 1012, 22091, 9363, 3207, 9006, 22930, 18886, 13327, 1012, 2009, 1012, 15083, 1012, 2622, 8873, 18413, 5397, 1025, 12324, 8917, 1012, 12022, 4183, 1012, 3231, 1025, 12324, 8917, 1012, 12022, 30524, 1012, 12022, 4183, 1012, 7190, 1012, 16381, 3550, 1025, 12324, 8917, 1012, 22889, 2546, 2549, 3501, 1012, 8833, 4590, 1025, 12324, 8917, 1012, 22889, 2546, 2549, 3501, 1012, 8833, 4590, 21450, 1025, 1030, 2448, 24415, 1006, 16381, 3550, 1012, 2465, 1007, 2270, 10061, 2465, 10061, 23301, 21756, 2571, 28689, 5244, 22199, 21572, 20614, 8908, 10061, 23301, 21756, 25890, 3367, 21572, 20614, 1063, 2797, 10763, 8833, 4590, 8833, 1027, 8833, 4590, 21450, 1012, 2131, 21197, 4590, 1006, 10061, 23301, 21756, 2571, 28689, 5244, 22199, 21572, 20614, 1012, 2465, 1007, 1025, 1030, 16381, 3550, 1012, 16381, 2270, 5164, 2171, 1025, 1030, 16381, 3550, 1012, 16381, 1006, 1015, 1007, 2270, 2622, 8873, 18413, 5397, 15083, 1025, 1030, 3231, 2270, 11675, 2323, 15194, 4183, 1006, 1007, 11618, 6453, 1063, 8833, 1012, 18558, 1006, 1000, 2770, 3231, 15083, 1024, 1063, 1065, 1000, 1010, 2023, 1012, 15083, 1012, 2131, 18442, 1006, 1007, 1007, 1025, 2023, 1012, 12934, 10376, 4757, 4160, 2015, 1012, 4604, 1006, 2023, 1012, 15083, 1012, 4152, 10497, 10024, 26091, 2015, 1006, 1007, 1007, 1025, 2023, 1012, 12040, 13832, 18116, 24475, 7646, 11244, 1006, 2023, 1012, 15083, 1007, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 4183, 1012, 5479, 1012, 2448, 24415, 1025, 12324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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4183, 1012, 5479, 1012, 2448, 24415, 1025, 12324, 8917, 30526 ]
using System; using System.Collections.Generic; using System.Configuration; using System.Diagnostics; using System.Linq; using System.Net; using CR.AggregateRepository.Core; using CR.AggregateRepository.Persistance.EventStore; using CR.MessageDispatch.Core; using CR.MessageDispatch.Dispatchers.EventStore; using CR.MessageDispatch.Dispatchers.Snapshotting.Protobuf; using CR.ViewModels.Core; using CR.ViewModels.Persistance.Memory; using EventStore.ClientAPI; using EventStore.ClientAPI.SystemData; using Logary; using Nancy; using Nancy.Diagnostics; using Nancy.Extensions; using Nancy.Responses; using Nancy.TinyIoc; using NancyModules; using HttpStatusCode = Nancy.HttpStatusCode; namespace ConsoleApiHost { public abstract class RestApiBootstrapper : DefaultNancyBootstrapper { private readonly Logger _logger = Logary.Logging.GetCurrentLogger(); protected override void ApplicationStartup(TinyIoCContainer container, Nancy.Bootstrapper.IPipelines pipelines) { if (ConfigurationManager.AppSettings["RequestTracing"] != null && ConfigurationManager.AppSettings["RequestTracing"].ToLower() == "true") StaticConfiguration.EnableRequestTracing = true; //does this actually happen after container config? var subscriber = container.Resolve<EventStoreSubscriber>(); subscriber.Start(); //log catchup progress to every 5s var sw = Stopwatch.StartNew(); var timer = new System.Timers.Timer(5000); int prevTotal = 0; timer.Elapsed += (sender, eventArgs) => { if (subscriber.ViewModelsReady) return; var progress = subscriber.CatchUpPercentage; Logary.Logging.GetCurrentLogger().Info(progress.ToString()); var last10s = progress.EventsProcessed - prevTotal; prevTotal = progress.EventsProcessed; Logary.Logging.GetCurrentLogger() .LogFormat(LogLevel.Info, "Events per second: Average: {0:0.#}, Last 5s: {1:0.#}", progress.EventsProcessed/(sw.ElapsedMilliseconds/1000), last10s/5); }; timer.Start(); pipelines.BeforeRequest.AddItemToEndOfPipeline(Before); pipelines.AfterRequest.AddItemToEndOfPipeline(After); pipelines.OnError.AddItemToEndOfPipeline(Error); //base.ApplicationStartup(container, pipelines); } //if viewmodels are not yet built, return 503 unavailable for all gets private Response Before(NancyContext nancyContext) { var builder = ApplicationContainer.Resolve<EventStoreSubscriber>(); if (!builder.ViewModelsReady && nancyContext.Request.Method.Equals("GET")) return new TextResponse(builder.CatchUpPercentage.ToString()).WithStatusCode( HttpStatusCode.ServiceUnavailable); return null; } private object GetLogData(NancyContext context) { var req = context.Request; var resp = context.Response; object Response = resp == null ? new object() : new { resp.ContentType, resp.Cookies, resp.Headers, resp.ReasonPhrase, resp.StatusCode }; return new { Request = new { req.UserHostAddress, req.Path, req.Query, req.Method, Body = req.Body == null ? "null" : req.Body.AsString(), req.Headers, req.Cookies, req.Form }, Response }; } private void After(NancyContext nancyContext) { if (nancyContext.Response != null) { var status = (int) nancyContext.Response.StatusCode; var level = LogLevel.Error; if (status >= 400 && status <= 600) { var req = nancyContext.Request; if (status < 500) level = LogLevel.Warn; var logMessage = String.Format("Responding {0} for {1} to path {2}", status, req.Method, nancyContext.ToFullPath(req.Path)); Logary.Logging.GetCurrentLogger() .Log(level, logMessage, GetLogData(nancyContext), null, null, nancyContext.ToFullPath(req.Path)); } nancyContext.Response.Headers.Add("Access-Control-Allow-Origin", "*"); nancyContext.Response.Headers.Add("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS, PATCH"); nancyContext.Response.Headers.Add("Access-Control-Allow-Headers", "Content-Type"); } } private Response Error(NancyContext nancyContext, Exception ex) { var req = nancyContext.Request; var logMessage = string.Format("An error occurred handling {0} to {1}", nancyContext.Request.Method, nancyContext.ToFullPath(req.Path)); Logary.Logging.GetCurrentLogger() .Log(LogLevel.Error, logMessage, GetLogData(nancyContext), null, ex, nancyContext.ToFullPath(req.Path)); return nancyContext.Response; } protected override void ConfigureApplicationContainer(TinyIoCContainer container) { var viewmodel = new InMemoryViewModelRepository(); var snapshotPath = ConfigurationManager.AppSettings["snapshotPath"]; var snapshotVersion = ConfigurationManager.AppSettings["snapshotVersion"]; var streamName = ConfigurationManager.AppSettings["streamName"]; var snapshottingDispatcher = new ProtoBufSnapshottingResolvedEventDispatcher(() => { var repo = (container.Resolve<IViewModelReader>() as InMemoryViewModelRepository); return GetPairs(repo); }, snapshotPath, snapshotVersion); var items = snapshottingDispatcher.LoadObjects(); int? startingEvent = snapshottingDispatcher.LoadCheckpoint(); //add the items to the viewmodel foreach (var dynamicItem in items.Select(item => item as dynamic)) viewmodel.Add(dynamicItem.Key, dynamicItem.Value); ViewModelLoaded(viewmodel); //event store var esLogger = new EventStoreLogaryLogger(); var conn = SetUpEventStoreConnection("EventStoreConnection", esLogger); container.Register(conn); //aggregate repository container.Register<IAggregateRepository, EventStoreAggregateRepository>(); container.Register<IViewModelReader>(viewmodel); container.Register<IViewModelWriter>(viewmodel); var multiplexingDispatcher = new MultiplexingDispatcher<ResolvedEvent>(GetDispatchers(container).ToArray()); var commandDispatcher = new CommmandDispatcher(new MultiplexingDispatcher<object>(GetCommandDispatchers(container).ToArray())); snapshottingDispatcher.InnerDispatcher = multiplexingDispatcher; var loggingDispatcher = new ErrorLoggingDispatcher(snapshottingDispatcher, false); container.Register<IDispatcher<ResolvedEvent>>(loggingDispatcher); var subscriber = new EventStoreSubscriber(conn, loggingDispatcher, streamName, esLogger, startingEvent, 4096, 70000); container.Register(subscriber); container.Register<ICommandDispatcher>(commandDispatcher); } protected abstract void ViewModelLoaded(InMemoryViewModelRepository repo); protected abstract List<IDispatcher<ResolvedEvent>> GetDispatchers(TinyIoCContainer container); protected abstract List<IDispatcher<object>> GetCommandDispatchers(TinyIoCContainer container); protected abstract IEnumerable<object> GetPairs(InMemoryViewModelRepository repo); private IEventStoreConnection SetUpEventStoreConnection(string connectionStringName, ILogger esLogger) { var eventStoreConnectionString = new Uri(ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString); var settings = ConnectionSettings.Create().UseCustomLogger(esLogger).KeepReconnecting().LimitRetriesForOperationTo(10); var eventStoreClient = EventStoreConnection.Create(settings, eventStoreConnectionString); eventStoreClient.Closed += EventStoreClientOnClosed; eventStoreClient.ErrorOccurred += EventStoreClientOnErrorOccurred; eventStoreClient.Connected += EventStoreClientOnConnected; eventStoreClient.Disconnected += EventStoreClientOnDisconnected; eventStoreClient.Reconnecting += EventStoreClientOnReconnecting; eventStoreClient.ConnectAsync().Wait(); return eventStoreClient; } private void EventStoreClientOnReconnecting(object sender, ClientReconnectingEventArgs clientReconnectingEventArgs) { _logger.Warn("Event Store reconnecting"); } private void EventStoreClientOnClosed(object sender, ClientClosedEventArgs clientClosedEventArgs) { _logger.Info("Event Store connection closed"); } private void EventStoreClientOnDisconnected(object sender, ClientConnectionEventArgs clientConnectionEventArgs) { _logger.Error( $"Event Store disconnected from endpoint {clientConnectionEventArgs.RemoteEndPoint.Address}:{clientConnectionEventArgs.RemoteEndPoint.Port}"); } private void EventStoreClientOnConnected(object sender, ClientConnectionEventArgs clientConnectionEventArgs) { _logger.Info( $"Event Store connected {clientConnectionEventArgs.RemoteEndPoint.Address}:{clientConnectionEventArgs.RemoteEndPoint.Port}"); } private void EventStoreClientOnErrorOccurred(object sender, ClientErrorEventArgs clientErrorEventArgs) { if (clientErrorEventArgs.Exception != null) { _logger.ErrorException("Event Store error occurred", clientErrorEventArgs.Exception); } else { _logger.Error("Unknown Event Store error"); } } } }
cognisant/cr-cqrs-scaffold
widget-api/ConsoleApiHost/RestApiBootstrapper.cs
C#
bsd-3-clause
10,811
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 2478, 2291, 1012, 9563, 1025, 2478, 2291, 1012, 16474, 2015, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 2291, 1012, 5658, 1025, 2478, 13675, 1012, 9572, 2890, 6873, 28307, 2100, 1012, 4563, 1025, 2478, 13675, 1012, 9572, 2890, 6873, 28307, 2100, 1012, 29486, 6651, 1012, 2824, 19277, 1025, 2478, 13675, 1012, 4471, 10521, 4502, 10649, 1012, 4563, 1025, 2478, 13675, 1012, 4471, 10521, 4502, 10649, 1012, 18365, 2545, 1012, 2824, 19277, 1025, 2478, 13675, 1012, 4471, 10521, 4502, 10649, 1012, 18365, 2545, 1012, 20057, 12326, 3436, 1012, 15053, 8569, 2546, 1025, 2478, 13675, 1012, 3193, 5302, 9247, 2015, 1012, 4563, 1025, 2478, 13675, 1012, 3193, 5302, 9247, 2015, 1012, 29486, 6651, 1012, 3638, 1025, 2478, 2824, 19277, 1012, 7396, 9331, 2072, 1025, 2478, 2824, 19277, 1012, 7396, 9331, 2072, 1012, 2291, 2850, 2696, 1025, 2478, 8833, 5649, 1025, 2478, 7912, 1025, 2478, 7912, 1012, 16474, 2015, 1025, 2478, 7912, 1012, 14305, 1025, 2478, 7912, 1012, 10960, 1025, 2478, 7912, 1012, 4714, 3695, 2278, 1025, 2478, 7912, 5302, 8566, 4244, 1025, 2478, 16770, 29336, 2271, 16044, 1027, 7912, 1012, 16770, 29336, 2271, 16044, 1025, 3415, 15327, 10122, 9331, 19190, 14122, 1063, 2270, 10061, 2465, 2717, 9331, 12322, 17206, 20528, 18620, 1024, 12398, 7229, 5666, 27927, 20528, 18620, 1063, 2797, 3191, 2239, 2135, 8833, 4590, 1035, 8833, 4590, 1027, 8833, 5649, 1012, 15899, 1012, 2131, 10841, 14343, 3372, 21197, 4590, 1006, 1007, 1025, 5123, 2058, 15637, 11675, 5097, 7559, 8525, 2361, 1006, 4714, 3695, 21408, 12380, 26455, 11661, 1010, 7912, 1012, 6879, 6494, 18620, 1012, 12997, 15457, 12735, 13117, 2015, 1007, 1063, 2065, 1006, 9563, 24805, 4590, 30524, 27663, 2099, 1006, 1007, 1027, 1027, 1000, 2995, 1000, 1007, 10763, 8663, 8873, 27390, 3370, 1012, 9585, 2890, 15500, 6494, 6129, 1027, 2995, 1025, 1013, 1013, 2515, 2023, 2941, 4148, 2044, 11661, 9530, 8873, 2290, 1029, 13075, 4942, 29234, 2099, 1027, 11661, 1012, 10663, 1026, 2824, 19277, 6342, 5910, 26775, 20755, 2099, 1028, 1006, 1007, 1025, 4942, 29234, 2099, 1012, 2707, 1006, 1007, 1025, 1013, 1013, 8833, 4608, 6279, 5082, 2000, 2296, 1019, 2015, 13075, 25430, 1027, 2644, 18866, 1012, 2707, 2638, 2860, 1006, 1007, 1025, 13075, 25309, 1027, 2047, 2291, 1012, 25309, 2015, 1012, 25309, 1006, 13509, 1007, 1025, 20014, 3653, 2615, 3406, 9080, 1027, 1014, 1025, 25309, 1012, 3449, 9331, 6924, 1009, 1027, 1006, 4604, 2121, 1010, 2724, 2906, 5620, 1007, 1027, 1028, 1063, 2065, 1006, 4942, 29234, 2099, 1012, 3193, 5302, 9247, 21338, 13775, 2100, 1007, 2709, 1025, 13075, 5082, 1027, 4942, 29234, 2099, 1012, 4608, 29547, 19170, 12380, 3351, 1025, 8833, 5649, 1012, 15899, 1012, 2131, 10841, 14343, 3372, 21197, 4590, 1006, 1007, 1012, 18558, 1006, 5082, 1012, 2000, 3367, 4892, 1006, 1007, 1007, 1025, 13075, 2197, 10790, 2015, 1027, 5082, 1012, 2824, 21572, 9623, 30523, 1012, 18726, 18319, 3070, 2015, 1031, 1000, 5227, 6494, 6129, 1000, 1033, 999, 1027, 19701, 1004, 1004, 9563, 24805, 4590, 1012, 18726, 18319, 3070, 2015, 1031, 1000, 5227, 6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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1012, 18726, 18319, 3070, 2015, 1031, 1000, 5227, 6494, 6129, 1000, 1033, 999, 1027, 19701, 1004, 1004, 9563, 24805, 4590, 1012, 18726, 18319, 3070, 2015, 1031, 1000, 5227, 6494, 6129, 1000, 1033, 1012, 2000, 30526 ]
<!DOCTYPE html> <html> <head> <title>aui-search</title> <link rel="stylesheet" href="../../../../build/aui-css/css/bootstrap.css"> <script src="../../../../build/aui/aui.js"></script> <script src="js/tests.js"></script> <meta charset="utf-8" /> </head> <body class="yui3-skin-sam"> <div id="logger"></div> <script> YUI({ coverage: ['aui-search'], filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw' }).use('test-console', 'test', 'aui-search-tests', function(Y) { (new Y.Test.Console()).render('#logger'); Y.Test.Runner.setName('aui-search'); Y.Test.Runner.run(); }); </script> </body> </html>
Khamull/alloy-ui
src/aui-search/tests/unit/index.html
HTML
bsd-3-clause
666
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 2516, 1028, 8740, 2072, 1011, 3945, 1026, 1013, 2516, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 3857, 1013, 8740, 2072, 1011, 20116, 2015, 1013, 20116, 2015, 1013, 6879, 6494, 2361, 1012, 20116, 2015, 1000, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 3857, 1013, 8740, 2072, 1013, 8740, 2072, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1046, 2015, 1013, 5852, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 18804, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1013, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 2465, 1027, 1000, 9805, 2072, 2509, 1011, 3096, 1011, 3520, 1000, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 8833, 4590, 1000, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 5896, 1028, 9805, 2072, 1006, 1063, 6325, 1024, 1031, 1005, 8740, 2072, 1011, 3945, 1005, 1033, 1010, 11307, 1024, 1006, 3332, 1012, 3295, 1012, 3945, 1012, 2674, 1006, 1013, 30524, 1010, 1005, 8740, 2072, 1011, 3945, 1011, 5852, 1005, 1010, 3853, 1006, 1061, 1007, 1063, 1006, 2047, 1061, 1012, 3231, 1012, 10122, 1006, 1007, 1007, 1012, 17552, 1006, 1005, 1001, 8833, 4590, 1005, 1007, 1025, 1061, 1012, 3231, 1012, 5479, 1012, 2275, 18442, 1006, 1005, 8740, 2072, 1011, 3945, 1005, 1007, 1025, 1061, 1012, 3231, 1012, 5479, 1012, 2448, 1006, 1007, 1025, 1065, 1007, 1025, 1026, 1013, 5896, 1028, 1026, 1013, 2303, 1028, 1026, 1013, 16129, 1028, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1031, 1029, 1004, 1033, 11307, 1027, 1006, 1031, 1034, 1004, 1033, 1009, 1007, 1013, 1007, 1064, 1064, 1031, 1033, 1007, 1031, 1015, 1033, 1064, 1064, 1005, 6315, 1005, 1065, 1007, 1012, 2224, 1006, 1005, 3231, 1011, 10122, 1005, 1010, 1005, 3231, 1005, 30526 ]
package trust import ( "crypto/x509" "errors" "io/ioutil" "net/http" "net/url" "os" "path" "path/filepath" "sync" "time" "github.com/Sirupsen/logrus" "github.com/docker/libtrust/trustgraph" ) type TrustStore struct { path string caPool *x509.CertPool graph trustgraph.TrustGraph expiration time.Time fetcher *time.Timer fetchTime time.Duration autofetch bool httpClient *http.Client baseEndpoints map[string]*url.URL sync.RWMutex } // defaultFetchtime represents the starting duration to wait between // fetching sections of the graph. Unsuccessful fetches should // increase time between fetching. const defaultFetchtime = 45 * time.Second var baseEndpoints = map[string]string{"official": "https://dvjy3tqbc323p.cloudfront.net/trust/official.json"} func NewTrustStore(path string) (*TrustStore, error) { abspath, err := filepath.Abs(path) if err != nil { return nil, err } // Create base graph url map endpoints := map[string]*url.URL{} for name, endpoint := range baseEndpoints { u, err := url.Parse(endpoint) if err != nil { return nil, err } endpoints[name] = u } // Load grant files t := &TrustStore{ path: abspath, caPool: nil, httpClient: &http.Client{}, fetchTime: time.Millisecond, baseEndpoints: endpoints, } if err := t.reload(); err != nil { return nil, err } return t, nil } func (t *TrustStore) reload() error { t.Lock() defer t.Unlock() matches, err := filepath.Glob(filepath.Join(t.path, "*.json")) if err != nil { return err } statements := make([]*trustgraph.Statement, len(matches)) for i, match := range matches { f, err := os.Open(match) if err != nil { return err } statements[i], err = trustgraph.LoadStatement(f, nil) if err != nil { f.Close() return err } f.Close() } if len(statements) == 0 { if t.autofetch { logrus.Debugf("No grants, fetching") t.fetcher = time.AfterFunc(t.fetchTime, t.fetch) } return nil } grants, expiration, err := trustgraph.CollapseStatements(statements, true) if err != nil { return err } t.expiration = expiration t.graph = trustgraph.NewMemoryGraph(grants) logrus.Debugf("Reloaded graph with %d grants expiring at %s", len(grants), expiration) if t.autofetch { nextFetch := expiration.Sub(time.Now()) if nextFetch < 0 { nextFetch = defaultFetchtime } else { nextFetch = time.Duration(0.8 * (float64)(nextFetch)) } t.fetcher = time.AfterFunc(nextFetch, t.fetch) } return nil } func (t *TrustStore) fetchBaseGraph(u *url.URL) (*trustgraph.Statement, error) { req := &http.Request{ Method: "GET", URL: u, Proto: "HTTP/1.1", ProtoMajor: 1, ProtoMinor: 1, Header: make(http.Header), Body: nil, Host: u.Host, } resp, err := t.httpClient.Do(req) if err != nil { return nil, err } if resp.StatusCode == 404 { return nil, errors.New("base graph does not exist") } defer resp.Body.Close() return trustgraph.LoadStatement(resp.Body, t.caPool) } // fetch retrieves updated base graphs. This function cannot error, it // should only log errors func (t *TrustStore) fetch() { t.Lock() defer t.Unlock() if t.autofetch && t.fetcher == nil { // Do nothing ?? return } fetchCount := 0 for bg, ep := range t.baseEndpoints { statement, err := t.fetchBaseGraph(ep) if err != nil { logrus.Infof("Trust graph fetch failed: %s", err) continue } b, err := statement.Bytes() if err != nil { logrus.Infof("Bad trust graph statement: %s", err) continue } // TODO check if value differs if err := ioutil.WriteFile(path.Join(t.path, bg+".json"), b, 0600); err != nil { logrus.Infof("Error writing trust graph statement: %s", err) } fetchCount++ } logrus.Debugf("Fetched %d base graphs at %s", fetchCount, time.Now()) if fetchCount > 0 { go func() { if err := t.reload(); err != nil { logrus.Infof("Reload of trust graph failed: %s", err) } }() t.fetchTime = defaultFetchtime t.fetcher = nil } else if t.autofetch { maxTime := 10 * defaultFetchtime t.fetchTime = time.Duration(1.5 * (float64)(t.fetchTime+time.Second)) if t.fetchTime > maxTime { t.fetchTime = maxTime } t.fetcher = time.AfterFunc(t.fetchTime, t.fetch) } }
rhuss/gofabric8
vendor/github.com/docker/docker/trust/trusts.go
GO
apache-2.0
4,317
[ 30522, 7427, 3404, 12324, 1006, 1000, 19888, 2080, 1013, 1060, 12376, 2683, 1000, 1000, 10697, 1000, 1000, 22834, 1013, 22834, 21823, 2140, 1000, 1000, 5658, 1013, 8299, 1000, 1000, 5658, 1013, 24471, 2140, 1000, 1000, 30524, 1000, 1007, 2828, 20278, 19277, 2358, 6820, 6593, 1063, 4130, 5164, 6178, 13669, 1008, 1060, 12376, 2683, 1012, 8292, 5339, 16869, 10629, 3404, 14413, 1012, 3404, 14413, 4654, 16781, 2051, 1012, 2051, 18584, 2121, 1008, 2051, 1012, 25309, 18584, 7292, 2051, 1012, 9367, 8285, 7959, 10649, 22017, 2140, 8299, 20464, 11638, 1008, 8299, 1012, 7396, 2918, 10497, 26521, 4949, 1031, 5164, 1033, 1008, 24471, 2140, 1012, 24471, 2140, 26351, 1012, 1054, 2860, 26746, 2595, 1065, 1013, 1013, 12398, 7959, 10649, 7292, 5836, 1996, 3225, 9367, 2000, 3524, 2090, 1013, 1013, 18584, 2075, 5433, 1997, 1996, 10629, 1012, 7736, 18584, 2229, 2323, 1013, 1013, 3623, 2051, 2090, 18584, 2075, 1012, 9530, 3367, 12398, 7959, 10649, 7292, 1027, 3429, 1008, 2051, 1012, 2117, 13075, 2918, 10497, 26521, 1027, 4949, 1031, 5164, 1033, 5164, 1063, 1000, 2880, 1000, 1024, 1000, 16770, 1024, 1013, 1013, 1040, 2615, 3501, 2100, 2509, 2102, 4160, 9818, 16703, 2509, 2361, 1012, 6112, 12792, 1012, 5658, 1013, 3404, 1013, 2880, 1012, 1046, 3385, 1000, 1065, 4569, 2278, 25597, 7946, 3215, 19277, 1006, 4130, 5164, 1007, 1006, 1008, 20278, 19277, 1010, 7561, 1007, 1063, 14689, 15069, 1010, 9413, 2099, 1024, 1027, 5371, 15069, 1012, 14689, 1006, 4130, 1007, 2065, 9413, 2099, 999, 1027, 9152, 2140, 1063, 2709, 9152, 2140, 1010, 9413, 2099, 1065, 1013, 1013, 3443, 2918, 10629, 24471, 2140, 4949, 2203, 26521, 1024, 1027, 4949, 1031, 5164, 1033, 1008, 24471, 2140, 1012, 24471, 2140, 1063, 1065, 2005, 2171, 1010, 2203, 8400, 1024, 1027, 2846, 2918, 10497, 26521, 1063, 1057, 1010, 9413, 2099, 1024, 1027, 24471, 2140, 1012, 11968, 3366, 1006, 2203, 8400, 1007, 2065, 9413, 2099, 999, 1027, 9152, 2140, 1063, 2709, 9152, 2140, 1010, 9413, 2099, 1065, 2203, 26521, 1031, 2171, 1033, 1027, 1057, 1065, 1013, 1013, 7170, 3946, 6764, 1056, 1024, 1027, 1004, 20278, 19277, 1063, 4130, 1024, 14689, 15069, 1010, 6178, 13669, 1024, 9152, 2140, 1010, 8299, 20464, 11638, 1024, 1004, 8299, 1012, 7396, 1063, 1065, 1010, 18584, 7292, 1024, 2051, 1012, 4971, 5562, 8663, 2094, 1010, 2918, 10497, 26521, 1024, 2203, 26521, 1010, 1065, 2065, 9413, 2099, 1024, 1027, 1056, 1012, 2128, 11066, 1006, 1007, 1025, 9413, 2099, 999, 1027, 9152, 2140, 1063, 2709, 9152, 2140, 1010, 9413, 2099, 1065, 2709, 1056, 1010, 9152, 2140, 1065, 4569, 2278, 1006, 1056, 1008, 20278, 19277, 1007, 2128, 11066, 1006, 1007, 7561, 1063, 1056, 1012, 5843, 1006, 1007, 13366, 2121, 1056, 1012, 19829, 1006, 1007, 3503, 1010, 9413, 2099, 1024, 1027, 5371, 15069, 1012, 1043, 4135, 2497, 1006, 5371, 15069, 1012, 3693, 1006, 1056, 30523, 9808, 1000, 1000, 4130, 1000, 1000, 4130, 1013, 5371, 15069, 1000, 1000, 26351, 1000, 1000, 2051, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 2909, 22264, 2368, 1013, 8833, 7946, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 8946, 2121, 1013, 5622, 19279, 7946, 2102, 1013, 3404, 14413, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 9808, 1000, 1000, 4130, 1000, 1000, 4130, 1013, 5371, 15069, 1000, 1000, 26351, 1000, 1000, 2051, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 2909, 22264, 2368, 1013, 8833, 7946, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 8946, 2121, 1013, 5622, 19279, 7946, 2102, 1013, 3404, 14413, 30526 ]
import "bootstrap-slider"; import "bootstrap-switch"; export module profile { function onInfoSubmit() { var params: { [key: string]: string } = {}; $("#info-container .info-field").each(function() { let name: string = this.getAttribute("name"); if (name == null) { return; } let value: string = $(this).val(); if ($(this).hasClass("info-slider")) { let valueTokens: string[] = this.getAttribute("data-value").split(","); name = name.substring(0, 1).toUpperCase() + name.substring(1); params["min" + name] = valueTokens[0]; params["max" + name] = valueTokens[1]; return; } else if (this.getAttribute("type") == "checkbox") { value = (this.checked ? 1 : 0).toString(); } params[name] = value; }); $.post("/office/post/update-profile", params, function(data) { $("#errors").addClass("hidden"); $("#success").removeClass("hidden"); window.scrollTo(0, 0); }, "json").fail(function(err) { $("#success").addClass("hidden"); $("#errors").text(`Error code ${err.status} occurred. Please contact a developer.`); $("#errors").removeClass("hidden"); window.scrollTo(0, 0); }); } $(document).ready(function() { (<any>$("#hours-slider")).bootstrapSlider({}); $("input.info-field[type='text']").on("keydown", function(evt) { if (evt.which == 13) { onInfoSubmit.apply(this); } }); $("input.info-field[type='checkbox']").each(function(index: number, element: HTMLElement) { let $element: JQuery = $(element); $element.bootstrapSwitch({ "state": $element.prop("checked") }); }); $("button.iu-button[type='submit']").on("click", onInfoSubmit); }); }
crossroads-education/eta-office
static/js/profile.ts
TypeScript
mit
2,030
[ 30522, 12324, 1000, 6879, 6494, 2361, 1011, 7358, 2099, 1000, 1025, 12324, 1000, 6879, 6494, 2361, 1011, 6942, 1000, 1025, 9167, 11336, 6337, 1063, 3853, 2006, 2378, 14876, 6342, 25526, 4183, 1006, 1007, 1063, 13075, 11498, 5244, 1024, 1063, 1031, 3145, 1024, 5164, 1033, 1024, 5164, 1065, 1027, 1063, 1065, 1025, 1002, 1006, 1000, 1001, 18558, 1011, 11661, 1012, 18558, 1011, 2492, 1000, 1007, 1012, 2169, 1006, 3853, 1006, 1007, 1063, 2292, 2171, 1024, 5164, 1027, 2023, 1012, 2131, 19321, 3089, 8569, 2618, 1006, 1000, 2171, 1000, 1007, 1025, 2065, 1006, 2171, 1027, 1027, 19701, 1007, 1063, 2709, 1025, 1065, 2292, 3643, 1024, 5164, 1027, 1002, 1006, 2023, 1007, 1012, 11748, 1006, 1007, 1025, 2065, 1006, 1002, 1006, 2023, 1007, 1012, 2038, 26266, 1006, 1000, 18558, 1011, 7358, 2099, 1000, 1007, 1007, 1063, 2292, 3643, 18715, 6132, 1024, 5164, 1031, 1033, 1027, 2023, 1012, 2131, 19321, 3089, 8569, 2618, 1006, 1000, 2951, 1011, 3643, 1000, 1007, 1012, 3975, 1006, 1000, 1010, 1000, 1007, 1025, 2171, 1027, 2171, 1012, 4942, 3367, 4892, 1006, 1014, 1010, 1015, 1007, 1012, 2000, 29547, 18992, 3366, 1006, 1007, 1009, 2171, 1012, 4942, 3367, 4892, 1006, 1015, 1007, 1025, 11498, 5244, 1031, 1000, 8117, 1000, 1009, 2171, 1033, 1027, 3643, 18715, 6132, 1031, 1014, 1033, 1025, 11498, 5244, 1031, 1000, 4098, 1000, 1009, 2171, 1033, 1027, 3643, 18715, 6132, 1031, 1015, 1033, 1025, 2709, 1025, 1065, 2842, 2065, 1006, 2023, 1012, 2131, 19321, 3089, 8569, 2618, 1006, 1000, 2828, 1000, 1007, 1027, 1027, 1000, 4638, 8758, 1000, 1007, 1063, 3643, 1027, 1006, 2023, 1012, 7039, 1029, 1015, 1024, 1014, 1007, 1012, 2000, 3367, 4892, 1006, 1007, 1025, 1065, 11498, 5244, 1031, 2171, 1033, 1027, 3643, 1025, 1065, 1007, 1025, 1002, 1012, 2695, 1006, 1000, 1013, 2436, 1013, 2695, 1013, 10651, 1011, 6337, 1000, 1010, 11498, 5244, 1010, 3853, 1006, 2951, 1007, 1063, 1002, 1006, 1000, 1001, 10697, 1000, 1007, 1012, 5587, 26266, 1006, 1000, 5023, 1000, 1007, 1025, 1002, 1006, 1000, 1001, 3112, 1000, 30524, 17186, 3406, 1006, 1014, 1010, 1014, 1007, 1025, 1065, 1010, 1000, 1046, 3385, 1000, 1007, 1012, 8246, 1006, 3853, 1006, 9413, 2099, 1007, 1063, 1002, 1006, 1000, 1001, 3112, 1000, 1007, 1012, 5587, 26266, 1006, 1000, 5023, 1000, 1007, 1025, 1002, 1006, 1000, 1001, 10697, 1000, 1007, 1012, 3793, 1006, 1036, 7561, 3642, 1002, 1063, 9413, 2099, 1012, 3570, 1065, 4158, 1012, 3531, 3967, 1037, 9722, 1012, 1036, 1007, 1025, 1002, 1006, 1000, 1001, 10697, 1000, 1007, 1012, 6366, 26266, 1006, 1000, 5023, 1000, 1007, 1025, 3332, 1012, 17186, 3406, 1006, 1014, 1010, 1014, 1007, 1025, 1065, 1007, 1025, 1065, 1002, 1006, 6254, 1007, 1012, 3201, 1006, 3853, 1006, 1007, 1063, 1006, 1026, 2151, 1028, 1002, 1006, 1000, 1001, 2847, 1011, 7358, 2099, 1000, 1007, 1007, 1012, 6879, 6494, 4523, 24198, 2099, 1006, 1063, 1065, 1007, 1025, 1002, 1006, 1000, 7953, 1012, 18558, 1011, 2492, 1031, 2828, 1027, 1005, 3793, 1005, 1033, 1000, 1007, 1012, 2006, 1006, 1000, 3145, 30523, 1007, 1012, 6366, 26266, 1006, 1000, 5023, 1000, 1007, 1025, 3332, 1012, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1007, 1012, 6366, 26266, 1006, 1000, 5023, 1000, 1007, 1025, 3332, 1012, 30526 ]
/* * Copyright 2005,2010 WSO2, Inc. http://wso2.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "php.h" #include "php_ini.h" #include "ext/standard/info.h" #include "wsf.h" #include "wsf_util.h" #include "ext/standard/info.h" #include <Zend/zend.h> #include "zend_exceptions.h" #include "zend_globals.h" #include "zend_objects.h" #include "wsf_common.h" #include <axutil_env.h> #include <axis2_svc_client.h> #include <axiom_soap.h> #include <axis2_http_transport.h> #include <axis2_addr.h> #include <axis2_const.h> #include <axiom_util.h> #include <sandesha2_client.h> #include "wsf_client.h" #include "wsf_policy.h" #include "wsf_xml_msg_recv.h" #include "wsf_version.h" #include "php_version.h" #include <php_main.h> #include "wsf_wsdl.h" ZEND_DECLARE_MODULE_GLOBALS(wsf) zend_class_entry * ws_client_class_entry; zend_class_entry * ws_service_class_entry; zend_class_entry * ws_header_class_entry; zend_class_entry * ws_fault_class_entry; zend_class_entry * ws_message_class_entry; zend_class_entry * ws_var_class_entry; zend_class_entry * ws_client_proxy_class_entry; zend_class_entry * ws_security_token_class_entry; zend_class_entry * ws_policy_class_entry; zend_class_entry * ws_param_class_entry; zend_class_entry * ws_data_class_entry; /* True global values, worker is thread safe, * message receiver does not have state*/ static axutil_env_t *env; static axutil_env_t *ws_env_svr; static int ws_is_svr; axis2_msg_recv_t * wsf_msg_recv; wsf_worker_t * worker; #define WSF_RESET_GLOBALS() \ WSF_GLOBAL(soap_version) = AXIOM_SOAP12; \ WSF_GLOBAL(soap_uri) = AXIOM_SOAP12_SOAP_ENVELOPE_NAMESPACE_URI; \ WSF_GLOBAL(curr_ns_index) = 0; PHP_FUNCTION(is_ws_fault); /** WSMessage functions */ PHP_METHOD(ws_message, __construct); PHP_METHOD(ws_message, __destruct); PHP_METHOD(ws_message, __get); ZEND_BEGIN_ARG_INFO(__ws_message_get_args, 0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() /** Client functions */ PHP_METHOD(ws_client, __construct); PHP_METHOD(ws_client, __destruct); PHP_METHOD(ws_client, request); PHP_METHOD(ws_client, send); PHP_METHOD(ws_client, get_last_response); PHP_METHOD(ws_client, get_last_request); PHP_METHOD(ws_client, get_last_response_headers); PHP_METHOD(ws_client, get_proxy); PHP_METHOD(ws_client, terminate_outgoing_rm); PHP_METHOD(ws_client, wait); /** WSService */ PHP_METHOD(ws_service, reply); PHP_METHOD(ws_service, __construct); PHP_METHOD(ws_service, __destruct); /** WSHeader class functions */ PHP_METHOD(ws_header, __construct); /* WSSecurityToken class functions */ PHP_METHOD(ws_security_token, __construct); PHP_FUNCTION(ws_get_key_from_file); PHP_FUNCTION(ws_get_cert_from_file); /** WSFault */ PHP_METHOD(ws_fault, __construct); PHP_METHOD(ws_fault, __destruct); PHP_METHOD(ws_fault, __toString); /** WSData class entry*/ PHP_METHOD(ws_data, __construct); /** WSPolicy class functions */ PHP_METHOD(ws_policy, __construct); /** WSClientProxy class functions */ PHP_METHOD(ws_client_proxy, __construct); PHP_METHOD(ws_client_proxy, __call); PHP_METHOD(ws_client_proxy, __destruct); PHP_METHOD(ws_client_proxy, get_functions); PHP_METHOD(ws_client_proxy, get_types); PHP_METHOD(ws_client_proxy, get_location); /** Logging errors */ PHP_FUNCTION(ws_log_write); ZEND_BEGIN_ARG_INFO(ws_client_proxy_call_args, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO(__ws_fault_get_args, 0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() zend_function_entry php_ws_message_class_functions[] = { PHP_ME(ws_message, __construct, NULL, ZEND_ACC_PUBLIC) PHP_ME(ws_message, __destruct, NULL, ZEND_ACC_PUBLIC) PHP_ME(ws_message, __get, __ws_message_get_args, ZEND_ACC_PUBLIC) { NULL, NULL, NULL} }; /** client function entry */ zend_function_entry php_ws_client_class_functions[] = { PHP_MALIAS(ws_client, request, request, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client, send, send, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client, wait, wait, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client, getLastResponse, get_last_response, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client, getLastRequest, get_last_request, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client, getProxy, get_proxy, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client, terminateOutgoingRM, terminate_outgoing_rm, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client, getLastResponseHeaders, get_last_response_headers, NULL, ZEND_ACC_PUBLIC) PHP_ME(ws_client, __construct, NULL, ZEND_ACC_PUBLIC) PHP_ME(ws_client, __destruct, NULL, ZEND_ACC_PUBLIC) { NULL, NULL, NULL} }; zend_function_entry php_ws_client_proxy_class_functions[] = { PHP_ME(ws_client_proxy, __call, ws_client_proxy_call_args, ZEND_ACC_PUBLIC) PHP_ME(ws_client_proxy, __construct, NULL, ZEND_ACC_PUBLIC) PHP_ME(ws_client_proxy, __destruct, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client_proxy, getFunctions, get_functions, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client_proxy, getTypes, get_types, NULL, ZEND_ACC_PUBLIC) PHP_MALIAS(ws_client_proxy, getLocation, get_location, NULL, ZEND_ACC_PUBLIC) { NULL, NULL, NULL} }; /** service function entry */ zend_function_entry php_ws_service_class_functions[] = { PHP_MALIAS(ws_service, reply, reply, NULL, ZEND_ACC_PUBLIC) PHP_ME(ws_service, __construct, NULL, ZEND_ACC_PUBLIC) PHP_ME(ws_service, __destruct, NULL, ZEND_ACC_PUBLIC) { NULL, NULL, NULL} }; /** WSFault class entry */ zend_function_entry php_ws_fault_class_functions[] = { PHP_ME(ws_fault, __construct, NULL, ZEND_ACC_PUBLIC) PHP_ME(ws_fault, __destruct, NULL, ZEND_ACC_PUBLIC) PHP_ME(ws_fault, __toString, NULL, ZEND_ACC_PUBLIC) { NULL, NULL, NULL} }; /* {{{ WSHeader class functions */ zend_function_entry php_ws_header_class_functions[] = { PHP_ME(ws_header, __construct, NULL, ZEND_ACC_PUBLIC) { NULL, NULL, NULL} }; zend_function_entry php_ws_security_token_class_functions[] = { PHP_ME(ws_security_token, __construct, NULL, ZEND_ACC_PUBLIC) { NULL, NULL, NULL} }; zend_function_entry php_ws_policy_class_functions[] = { PHP_ME(ws_policy, __construct, NULL, ZEND_ACC_PUBLIC) { NULL, NULL, NULL} }; zend_function_entry php_ws_data_class_functions[] = { PHP_ME(ws_data, __construct, NULL, ZEND_ACC_PUBLIC) { NULL, NULL, NULL} }; /* {{{ wsf_functions[] */ zend_function_entry wsf_functions[] = { PHP_FE(is_ws_fault, NULL) PHP_FE(ws_get_key_from_file, NULL) PHP_FE(ws_get_cert_from_file, NULL) PHP_FE(ws_log_write, NULL) { NULL, NULL, NULL} }; /* }}} */ static zend_object_handlers ws_object_handlers; /** object creation and destruction functions */ static zend_object_value php_ws_object_new(zend_class_entry * class_type TSRMLS_DC); static zend_object_value php_ws_object_new_ex(zend_class_entry * class_type, ws_object ** obj TSRMLS_DC); static void ws_objects_free_storage(void *object TSRMLS_DC); /* {{{ proto wsf_log_version_string */ void wsf_log_version_string(axutil_env_t *env) { if (!env || !env->log) return; AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "wsf version - %s ", WSF_VERSION_STRING); AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "php version - %s ", PHP_VERSION); } /* }}} */ /* {{{ wsf_module_entry */ zend_module_entry wsf_module_entry = { #if ZEND_MODULE_API_NO >= 20010901 STANDARD_MODULE_HEADER, #endif /* */ "wsf", wsf_functions, PHP_MINIT(wsf), PHP_MSHUTDOWN(wsf), PHP_RINIT(wsf), PHP_RSHUTDOWN(wsf), PHP_MINFO(wsf), #if ZEND_MODULE_API_NO >= 20010901 "1.0", #endif STANDARD_MODULE_PROPERTIES }; /* }}} */ #ifdef COMPILE_DL_WSF ZEND_GET_MODULE(wsf) #endif /* */ /* {{{ PHP_INI */ PHP_INI_BEGIN() STD_PHP_INI_ENTRY("wsf.home", NULL, PHP_INI_ALL, OnUpdateString, home, zend_wsf_globals, wsf_globals) STD_PHP_INI_ENTRY("wsf.log_path", WSF_TMP, PHP_INI_ALL, OnUpdateString, log_path, zend_wsf_globals, wsf_globals) STD_PHP_INI_ENTRY("wsf.log_level", "4", PHP_INI_ALL, OnUpdateLong, log_level, zend_wsf_globals, wsf_globals) STD_PHP_INI_ENTRY("wsf.rm_db_dir", WSF_TMP, PHP_INI_ALL, OnUpdateString, rm_db_dir, zend_wsf_globals, wsf_globals) STD_PHP_INI_ENTRY("wsf.attachment_cache_dir", WSF_TMP, PHP_INI_ALL, OnUpdateString, attachment_cache_dir, zend_wsf_globals, wsf_globals) STD_PHP_INI_ENTRY("wsf.enable_attachment_caching", "0", PHP_INI_ALL, OnUpdateLong, enable_attachment_caching, zend_wsf_globals, wsf_globals) PHP_INI_END() /* }}} */ /* {{{ ws_init_globals */ static void ws_init_globals(zend_wsf_globals * wsf_globals) { wsf_globals->home = NULL; wsf_globals->log_path = NULL; wsf_globals->log_level = 1; wsf_globals->soap_version = AXIOM_SOAP12; wsf_globals->soap_uri = AXIOM_SOAP12_SOAP_ENVELOPE_NAMESPACE_URI; wsf_globals->rm_db_dir = NULL; wsf_globals->curr_ns_index = 0; wsf_globals->attachment_cache_dir = NULL; wsf_globals->enable_attachment_caching = 0; } /* }}} */ /* {{{ PHP_MINIT_FUNCTION */ PHP_MINIT_FUNCTION(wsf) { zend_class_entry ce; char *home_folder = NULL; ZEND_INIT_MODULE_GLOBALS(wsf, ws_init_globals, NULL); REGISTER_INI_ENTRIES(); if (INI_STR("extension_dir")) { char *home_dir = pemalloc(strlen(INI_STR("extension_dir")) + strlen("/wsf_c") + 1, 1); strcpy(home_dir, INI_STR("extension_dir")); strcat(home_dir, "/wsf_c"); home_folder = home_dir; } memcpy(&ws_object_handlers, zend_get_std_object_handlers(), sizeof (zend_object_handlers)); ws_object_handlers.clone_obj = NULL; REGISTER_WSF_CLASS(ce, "WSClient", NULL, php_ws_client_class_functions, ws_client_class_entry); INIT_CLASS_ENTRY(ce, "WSClientProxy", php_ws_client_proxy_class_functions); ws_client_proxy_class_entry = zend_register_internal_class(&ce TSRMLS_CC); REGISTER_WSF_CLASS(ce, "WSService", NULL, php_ws_service_class_functions, ws_service_class_entry); INIT_CLASS_ENTRY(ce, "WSMessage", php_ws_message_class_functions); ws_message_class_entry = zend_register_internal_class(&ce TSRMLS_CC); INIT_CLASS_ENTRY(ce, "WSHeader", php_ws_header_class_functions); ws_header_class_entry = zend_register_internal_class(&ce TSRMLS_CC); INIT_CLASS_ENTRY(ce, "WSFault", php_ws_fault_class_functions); #ifdef ZEND_ENGINE_2 ws_fault_class_entry = zend_register_internal_class_ex(&ce, zend_exception_get_default(TSRMLS_C), NULL TSRMLS_CC); #else ws_fault_class_entry = zend_register_internal_class(&ce TSRMLS_CC); #endif INIT_CLASS_ENTRY(ce, "WSSecurityToken", php_ws_security_token_class_functions); ws_security_token_class_entry = zend_register_internal_class(&ce TSRMLS_CC); INIT_CLASS_ENTRY(ce, "WSPolicy", php_ws_policy_class_functions); ws_policy_class_entry = zend_register_internal_class(&ce TSRMLS_CC); INIT_CLASS_ENTRY(ce, "WSData", php_ws_data_class_functions); ws_data_class_entry = zend_register_internal_class(&ce TSRMLS_CC); REGISTER_LONG_CONSTANT("WS_SOAP_ROLE_NEXT", WSF_SOAP_ROLE_NEXT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("WS_SOAP_ROLE_NONE", WSF_SOAP_ROLE_NONE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("WS_SOAP_ROLE_ULTIMATE_RECEIVER", WSF_SOAP_ROLE_ULTIMATE_RECEIVER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("WS_SCT_ID_GLOBAL", WS_SCT_ID_GLOBAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("WS_SCT_ID_LOCAL", WS_SCT_ID_LOCAL, CONST_CS | CONST_PERSISTENT); if (WSF_GLOBAL(home)) { home_folder = WSF_GLOBAL(home); } else { WSF_GLOBAL(home) = home_folder; } env = wsf_env_create(WSF_GLOBAL(log_path)); env->log->level = WSF_GLOBAL(log_level); ws_env_svr = wsf_env_create_svr(WSF_GLOBAL(log_path)); ws_env_svr->log->level = WSF_GLOBAL(log_level); wsf_log_version_string(ws_env_svr); wsf_log_version_string(env); wsf_msg_recv = wsf_xml_msg_recv_create(ws_env_svr); axiom_xml_reader_init(); worker = wsf_worker_create(ws_env_svr, home_folder, axutil_strdup(ws_env_svr, WSF_GLOBAL(rm_db_dir))); return SUCCESS; } /* }}} */ /* {{{ PHP_MSHUTDOWN_FUNCTION */ PHP_MSHUTDOWN_FUNCTION(wsf) { wsf_worker_free(worker, ws_env_svr); axis2_msg_recv_free(wsf_msg_recv, ws_env_svr); axutil_env_free(env); axutil_env_free(ws_env_svr); axiom_xml_reader_cleanup(); UNREGISTER_INI_ENTRIES(); return SUCCESS; } /* }}} */ /* {{{ PHP_RINIT_FUNCTION */ PHP_RINIT_FUNCTION(wsf) { WSF_GLOBAL(soap_version) = AXIOM_SOAP12; return SUCCESS; } /* }}} */ /* {{{ PHP_RSHUTDOWN_FUNCTION */ PHP_RSHUTDOWN_FUNCTION(wsf) { return SUCCESS; } /* }}} */ /* {{{ PHP_MINFO_FUNCTION */ PHP_MINFO_FUNCTION(wsf) { php_info_print_table_start(); php_info_print_table_row(2, "wsf support", "enabled"); php_info_print_table_row(2, "wsf version", WSF_VERSION_STRING); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); } /* }}} */ /* {{{ ws_object_new */ static zend_object_value php_ws_object_new(zend_class_entry * class_type TSRMLS_DC) { ws_object * tmp; return php_ws_object_new_ex(class_type, &tmp TSRMLS_CC); } /* }}} */ /* {{{ ws_object_new_ex */ static zend_object_value php_ws_object_new_ex( zend_class_entry * class_type, ws_object ** obj TSRMLS_DC) { zend_object_value retval; ws_object * intern; zval * tmp; intern = emalloc(sizeof (ws_object)); memset(intern, 0, sizeof (ws_object)); intern->std.ce = class_type; intern->obj_type = WSF_NONE; *obj = intern; ALLOC_HASHTABLE(intern->std.properties); zend_hash_init(intern->std.properties, 0, NULL, ZVAL_PTR_DTOR, 0); zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) & tmp, sizeof (void *)); retval.handle = zend_objects_store_put(intern, (zend_objects_store_dtor_t) zend_objects_destroy_object, (zend_objects_free_object_storage_t) ws_objects_free_storage, NULL TSRMLS_CC); retval.handlers = &ws_object_handlers; return retval; } /* }}} */ static void ws_objects_free_storage(void *object TSRMLS_DC) { ws_object * intern = NULL; intern = (ws_object *) object; if (!intern) return; if (intern->std.properties) { zend_hash_destroy(intern->std.properties); FREE_HASHTABLE(intern->std.properties); } if (intern->obj_type == WSF_SVC_CLIENT) { axis2_svc_client_t * svc_client = NULL; svc_client = (axis2_svc_client_t *) intern->ptr; if (svc_client) { if (!wsf_util_is_module_engaged_to_svc_client(svc_client, env, WSF_MODULE_RM)) { axis2_svc_client_free(svc_client, env); } } } else if (intern->obj_type == WSF_SVC) { wsf_svc_info_t * svc_info = NULL; svc_info = (wsf_svc_info_t *) intern->ptr; if (svc_info) { wsf_svc_info_free(svc_info, ws_env_svr); } } intern->ptr = NULL; efree(object); } /*** {{{ is_ws_fault(Object obj) */ PHP_FUNCTION(is_ws_fault) { zval * object = NULL; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "z", &object)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); return; } if (Z_TYPE_P(object) == IS_OBJECT && instanceof_function(Z_OBJCE_P(object), ws_fault_class_entry TSRMLS_CC)) { RETURN_TRUE; } else { RETURN_FALSE; } } /* }}} */ /* {{{ proto WSMessage::__construct(mixed payload[, array properties]) */ PHP_METHOD(ws_message, __construct) { zval * object = NULL; zval * payload = NULL; zval * properties = NULL; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "z|a", &payload, &properties)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); return; } WSF_GET_THIS(object); WSF_OBJ_CHECK(env); if (Z_TYPE_P(payload) == IS_STRING) { add_property_stringl(object, WSF_MSG_PAYLOAD_STR, Z_STRVAL_P(payload), Z_STRLEN_P(payload), 1); } else { return; } if (NULL != properties) { zval ** tmp; HashTable * ht = Z_ARRVAL_P(properties); if (!ht) { return; } if (zend_hash_find(ht, WSF_ATTACHMENTS, sizeof (WSF_ATTACHMENTS), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { add_property_zval(object, WSF_ATTACHMENTS, *tmp); } if (zend_hash_find(ht, WSF_DEFAULT_ATTACHEMENT_CONTENT_TYPE, sizeof (WSF_DEFAULT_ATTACHEMENT_CONTENT_TYPE), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_DEFAULT_ATTACHEMENT_CONTENT_TYPE, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_LAST_MESSAGE, sizeof (WSF_LAST_MESSAGE), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_BOOL) { add_property_bool(object, WSF_LAST_MESSAGE, Z_BVAL_PP(tmp)); } if (zend_hash_find(ht, WSF_TO, sizeof (WSF_TO), (void**) & tmp) == SUCCESS) { if (Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_TO, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } else if (Z_TYPE_PP(tmp) == IS_ARRAY) { add_property_zval(object, WSF_TO, *tmp); } } if (zend_hash_find(ht, WSF_ACTION, sizeof (WSF_ACTION), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_ACTION, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_ADDR_MUST_UNDERSTAND, sizeof (WSF_ADDR_MUST_UNDERSTAND), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_BOOL) { add_property_bool(object, WSF_ADDR_MUST_UNDERSTAND, Z_BVAL_PP(tmp)); } if (zend_hash_find(ht, WSF_REPLY_TO, sizeof (WSF_REPLY_TO), (void**) & tmp) == SUCCESS) { if (Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_REPLY_TO, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } else if (Z_TYPE_PP(tmp) == IS_ARRAY) { add_property_zval(object, WSF_REPLY_TO, *tmp); } } if (zend_hash_find(ht, WSF_FAULT_TO, sizeof (WSF_FAULT_TO), (void**) & tmp) == SUCCESS) { if (Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_FAULT_TO, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } else if (Z_TYPE_PP(tmp) == IS_ARRAY) { add_property_zval(object, WSF_FAULT_TO, *tmp); } } if (zend_hash_find(ht, WSF_FROM, sizeof (WSF_FROM), (void**) & tmp) == SUCCESS) { if (Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_FROM, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } else if (Z_TYPE_PP(tmp) == IS_ARRAY) { add_property_zval(object, WSF_FROM, *tmp); } } if (zend_hash_find(ht, WSF_REST_CONTENT_TYPE, sizeof (WSF_REST_CONTENT_TYPE), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_REST_CONTENT_TYPE, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_INPUT_HEADERS, sizeof (WSF_INPUT_HEADERS), (void **) & tmp) == SUCCESS) { if (Z_TYPE_PP(tmp) == IS_ARRAY) { add_property_zval(object, WSF_INPUT_HEADERS, *tmp); } } } } /* }}} */ /** desctructor */ PHP_METHOD(ws_message, __destruct) { } /* {{{ WSMessage::__get() */ PHP_METHOD(ws_message, __get) { } /* }}} */ /* {{{ proto void WSClient::__construct(string uri[, array options]) */ PHP_METHOD(ws_client, __construct) { ws_object_ptr intern = NULL; zval * obj = NULL; char *home_folder = NULL; axis2_svc_client_t * svc_client = NULL; zval * options = NULL; ws_is_svr = 0; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "|a", &options)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); return; } WSF_OBJ_CHECK(env); WSF_GET_THIS(obj); intern = (ws_object *) zend_object_store_get_object(obj TSRMLS_CC); if (INI_STR("extension_dir")) { char *home_dir = pemalloc(strlen(INI_STR("extension_dir")) + strlen("/wsf_c") + 1, 1); strcpy(home_dir, INI_STR("extension_dir")); strcat(home_dir, "/wsf_c"); home_folder = home_dir; } if (WSF_GLOBAL(home)) home_folder = WSF_GLOBAL(home); svc_client = axis2_svc_client_create(env, home_folder); if (!svc_client) { zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 1 TSRMLS_CC, "ws client create failed"); } intern->ptr = svc_client; intern->obj_type = WSF_SVC_CLIENT; if (NULL != options) { HashTable * ht = Z_ARRVAL_P(options); if (!ht) return; /* add properties defined in API doc */ wsf_client_add_properties(obj, ht TSRMLS_CC); } if (WSF_GLOBAL(enable_attachment_caching)) { axis2_svc_ctx_t *svc_ctx = NULL; axis2_conf_ctx_t *conf_ctx = NULL; axutil_param_t *cache_dir = NULL; axis2_conf_t *conf = NULL; svc_ctx = axis2_svc_client_get_svc_ctx(svc_client, env); conf_ctx = axis2_svc_ctx_get_conf_ctx(svc_ctx, env); conf = axis2_conf_ctx_get_conf(conf_ctx, env); cache_dir = axutil_param_create(env, AXIS2_ATTACHMENT_DIR, axutil_strdup(env, WSF_GLOBAL(attachment_cache_dir))); axis2_conf_add_param(conf, env, cache_dir); } } /* }}} */ /* {{{ WSClient::__destruct() */ PHP_METHOD(ws_client, __destruct) { } /* }}} */ /* {{{ proto string request(mixed payload) payload can be a string, dom element. client sends and receiveds the payload */ PHP_METHOD(ws_client, request) { zval * param = NULL; ws_object_ptr intern = NULL; zval * obj = NULL; axis2_svc_client_t * svc_client = NULL; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "z", &param)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); return; } WSF_OBJ_CHECK(env); WSF_GET_THIS(obj); WSF_GET_OBJ(svc_client, obj, axis2_svc_client_t, intern); wsf_client_do_request(obj, param, return_value, env, svc_client, AXIS2_FALSE TSRMLS_CC); WSF_RESET_GLOBALS(); } /* }}} end request */ /* {{{ proto send(string xmlpaylod) Sends the given payload in a robust manner. Means that SOAP faults are captured and reported. */ PHP_METHOD(ws_client, send) { zval * param = NULL; ws_object_ptr intern = NULL; zval * obj = NULL; axis2_svc_client_t * svc_client = NULL; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "z", &param)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); return; } WSF_OBJ_CHECK(env); WSF_GET_THIS(obj); WSF_GET_OBJ(svc_client, obj, axis2_svc_client_t, intern); wsf_client_do_request(obj, param, return_value, env, svc_client, AXIS2_TRUE TSRMLS_CC); WSF_RESET_GLOBALS(); } /* }}} end send*/ /* {{{ proto getLastResponse() */ PHP_METHOD(ws_client, get_last_response) { axis2_svc_client_t * svc_client = NULL; ws_object_ptr intern = NULL; zval * obj = NULL; WSF_GET_THIS(obj); WSF_GET_OBJ(svc_client, obj, axis2_svc_client_t, intern); if (svc_client) { axis2_op_client_t * op_client = NULL; op_client = axis2_svc_client_get_op_client(svc_client, env); if (op_client) { axis2_char_t * msg = wsf_util_get_soap_msg_from_op_client(op_client, env, AXIS2_WSDL_MESSAGE_LABEL_IN); if (msg) { RETURN_STRING(msg, 1); } } } } /* }}} */ /* {{{ proto getLastRequest() */ PHP_METHOD(ws_client, get_last_request) { axis2_svc_client_t * svc_client = NULL; ws_object_ptr intern = NULL; zval * obj = NULL; WSF_GET_THIS(obj); WSF_GET_OBJ(svc_client, obj, axis2_svc_client_t, intern); if (svc_client) { axis2_op_client_t * op_client = NULL; op_client = axis2_svc_client_get_op_client(svc_client, env); if (op_client) { axis2_char_t * msg = wsf_util_get_soap_msg_from_op_client(op_client, env, AXIS2_WSDL_MESSAGE_LABEL_OUT); if (msg) { RETURN_STRING(msg, 1); } } } } /* }}} */ /* {{{ proto public WSClient::terminateOutgoingRM() */ PHP_METHOD(ws_client, terminate_outgoing_rm) { axis2_svc_client_t * svc_client = NULL; ws_object_ptr intern = NULL; zval * obj = NULL; HashTable *client_ht = NULL; int rm_spec_version = -1; WSF_GET_THIS(obj); WSF_GET_OBJ(svc_client, obj, axis2_svc_client_t, intern); client_ht = Z_OBJPROP_P(this_ptr); if (svc_client && rm_spec_version == WSF_RM_VERSION_1_1) { sandesha2_client_close_seq_with_svc_client(env, svc_client, NULL); sandesha2_client_terminate_seq_with_svc_client(env, svc_client, NULL); } } /* }}} */ /* {{{ proto getLastResponseHeaders() */ PHP_METHOD(ws_client, get_last_response_headers) { axis2_svc_client_t * svc_client = NULL; ws_object_ptr intern = NULL; zval * obj = NULL; WSF_GET_THIS(obj); WSF_GET_OBJ(svc_client, obj, axis2_svc_client_t, intern); if (svc_client) { axis2_op_client_t * op_client = NULL; op_client = axis2_svc_client_get_op_client(svc_client, env); if (op_client) { wsf_util_get_http_headers_from_op_client(op_client, env, return_value, AXIS2_WSDL_MESSAGE_LABEL_OUT); return; } } RETURN_NULL(); } /* }}} */ /* }}} end call */ PHP_METHOD(ws_client, get_proxy) { zval * client_proxy_zval = NULL; char *service = NULL; int service_len = 0; char *port = NULL; int port_len = 0; zval * obj = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "|ss", &service, &service_len, &port, &port_len) == FAILURE) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid Parameters,specify the service and port"); } WSF_GET_THIS(obj); MAKE_STD_ZVAL(client_proxy_zval); object_init_ex(client_proxy_zval, ws_client_proxy_class_entry); if (service) { add_property_string(client_proxy_zval, WSF_SERVICE_NAME, service, 1); } if (port) { add_property_string(client_proxy_zval, WSF_PORT_NAME, port, 1); } add_property_zval(client_proxy_zval, "wsclient", this_ptr); /* load the wsdl information if available */ wsf_wsdl_extract_wsdl_information_for_client(client_proxy_zval, env TSRMLS_CC); RETURN_ZVAL(client_proxy_zval, 0, 1); } /* {{{ proto void WSService::__construct([ array options])*/ PHP_METHOD(ws_service, __construct) { ws_object_ptr intern = NULL; zval * obj = NULL; wsf_svc_info_t * svc_info = NULL; zval * options = NULL; zval **server_vars = NULL; zval **data = NULL; HashTable * ht_options = NULL; HashTable * ht_actions = NULL; HashTable * ht_ops_to_funcs = NULL; HashTable * ht_ops_to_mep = NULL; HashTable * ht_opParams = NULL; HashTable * ht_classes = NULL; HashTable * ht_annotations = NULL; HashTable * ht_rest_map = NULL; char *service_name = NULL; char *port_name = NULL; char *request_uri = NULL; ws_is_svr = 1; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "|a", &options)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); return; } WSF_GET_THIS(obj); intern = (ws_object *) zend_object_store_get_object(obj TSRMLS_CC); svc_info = wsf_svc_info_create(ws_env_svr); svc_info->ops_to_functions = axutil_hash_make(ws_env_svr); svc_info->ops_to_actions = axutil_hash_make(ws_env_svr); intern->ptr = svc_info; intern->obj_type = WSF_SVC; svc_info->php_worker = worker; if (options) { zval ** tmp = NULL; ht_options = Z_ARRVAL_P(options); if (ht_options) { if (zend_hash_find(ht_options, WSF_ACTIONS, sizeof (WSF_ACTIONS), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { ht_actions = Z_ARRVAL_PP(tmp); AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ " setting actions "); svc_info->wsdl_gen_actions = *tmp; zval_add_ref(&(svc_info->wsdl_gen_actions)); } if (zend_hash_find(ht_options, WSF_OPERATIONS, sizeof (WSF_OPERATIONS), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { ht_ops_to_funcs = Z_ARRVAL_PP(tmp); AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ "setting operations"); } if (zend_hash_find(ht_options, WSF_OP_MEP, sizeof (WSF_OP_MEP), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { ht_ops_to_mep = Z_ARRVAL_PP(tmp); AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ " setting message exchange pattern"); } if (zend_hash_find(ht_options, WSF_OP_PARAMS, sizeof (WSF_OP_PARAMS), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { ht_opParams = Z_ARRVAL_PP(tmp); zval_add_ref(tmp); svc_info->ht_op_params = ht_opParams; AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ " setting message operation parameters"); } if (zend_hash_find(ht_options, WSF_OP_TO_URL_MAP, sizeof (WSF_OP_TO_URL_MAP), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { ht_rest_map = Z_ARRVAL_PP(tmp); } if (zend_hash_find(ht_options, WSF_CACHE_WSDL, sizeof (WSF_CACHE_WSDL), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_BOOL) { svc_info->cache_wsdl = Z_BVAL_PP(tmp); } if (zend_hash_find(ht_options, WSF_OMIT_WSDL, sizeof (WSF_OMIT_WSDL), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_BOOL) { svc_info->omit_wsdl = Z_BVAL_PP(tmp); } if (zend_hash_find(ht_options, WSF_WSDL, sizeof (WSF_WSDL), (void **) & tmp) == SUCCESS) { axis2_char_t *wsdl_path = NULL; int wsdl_path_length = 0; if (Z_TYPE_PP(tmp) == IS_STRING) { wsdl_path = Z_STRVAL_PP(tmp); wsdl_path_length = Z_STRLEN_PP(tmp); } else if (Z_TYPE_PP(tmp) == IS_ARRAY) { zval **tmpval = NULL; HashTable *ht = Z_ARRVAL_PP(tmp); if (zend_hash_find(ht, WSF_WSA_ADDRESS, sizeof (WSF_WSA_ADDRESS), (void **) & tmpval) == SUCCESS && Z_TYPE_PP(tmpval) == IS_STRING) { wsdl_path = Z_STRVAL_PP(tmpval); wsdl_path_length = Z_STRLEN_PP(tmpval); } if (zend_hash_find(ht, WSF_HTTP_AUTH_USERNAME, sizeof (WSF_HTTP_AUTH_USERNAME), (void **) & tmpval) == SUCCESS && Z_TYPE_PP(tmpval) == IS_STRING) { svc_info->auth_user = axutil_strdup(env, Z_STRVAL_PP(tmpval)); } if (zend_hash_find(ht, WSF_HTTP_AUTH_PASSWORD, sizeof (WSF_HTTP_AUTH_PASSWORD), (void **) & tmpval) == SUCCESS && Z_TYPE_PP(tmpval) == IS_STRING) { svc_info->auth_password = axutil_strdup(env, Z_STRVAL_PP(tmpval)); } if (zend_hash_find(ht, WSF_HTTP_AUTH_TYPE, sizeof (WSF_HTTP_AUTH_TYPE), (void **) & tmpval) == SUCCESS && Z_TYPE_PP(tmpval) == IS_STRING) { svc_info->auth_type = axutil_strdup(env, Z_STRVAL_PP(tmpval)); } } svc_info->wsdl = axutil_strdup(ws_env_svr, wsdl_path); add_property_stringl(this_ptr, WSF_WSDL, wsdl_path, wsdl_path_length, 1); } if (zend_hash_find(ht_options, WSF_CLASSMAP, sizeof (WSF_CLASSMAP), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { add_property_zval(this_ptr, WSF_CLASSMAP, *tmp); svc_info->class_map = *tmp; zval_add_ref(&(svc_info->class_map)); } if (zend_hash_find(ht_options, WSF_USE_MTOM, sizeof (WSF_USE_MTOM), (void **) & tmp) == SUCCESS) { if (Z_TYPE_PP(tmp) == IS_BOOL) { svc_info->use_mtom = Z_BVAL_PP(tmp); } if (Z_TYPE_PP(tmp) == IS_STRING) { char *value = NULL; value = Z_STRVAL_PP(tmp); if (value && (stricmp(value, WSF_SWA) == 0)) { AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ " SwA enabled"); svc_info->use_mtom = 1; /* mtom */ svc_info->enable_swa = 1; /* mtom swa*/ } } AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ " setting mtom property %d", svc_info->use_mtom); } else { svc_info->use_mtom = 0; } if (zend_hash_find(ht_options, WSF_USE_WSA, sizeof (WSF_USE_WSA), (void **) & tmp) == SUCCESS) { if (Z_TYPE_PP(tmp) == IS_BOOL) { svc_info->use_wsa = Z_BVAL_PP(tmp); } } if (zend_hash_find(ht_options, WSF_REQUEST_XOP, sizeof (WSF_REQUEST_XOP), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_BOOL) { svc_info->request_xop = Z_BVAL_PP(tmp); } else { svc_info->request_xop = 0; } AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ " request xop %d", svc_info->request_xop); if (zend_hash_find(ht_options, WSF_POLICY_NAME, sizeof (WSF_POLICY_NAME), (void **) & tmp) == SUCCESS && Z_OBJCE_PP(tmp) == ws_policy_class_entry) { svc_info->policy = *tmp; AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ " policy object present"); } if (zend_hash_find(ht_options, WSF_OP_POLICIES, sizeof (WSF_OP_POLICIES), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { svc_info->ht_op_policies = Z_ARRVAL_PP(tmp); AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ "operation policy object present"); } if (zend_hash_find(ht_options, WSF_SECURITY_TOKEN, sizeof (WSF_SECURITY_TOKEN), (void **) & tmp) == SUCCESS) { svc_info->security_token = *tmp; AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ " security token object present "); } if (zend_hash_find(ht_options, WSF_RELIABLE, sizeof (WSF_RELIABLE), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_BOOL && Z_BVAL_PP(tmp) == 1) { if (!svc_info->modules_to_engage) { svc_info->modules_to_engage = axutil_array_list_create(ws_env_svr, 3); } axutil_array_list_add(svc_info->modules_to_engage, ws_env_svr, axutil_strdup(ws_env_svr, WSF_MODULE_RM)); } if (zend_hash_find(ht_options, WSF_USE_OWN_STS, sizeof (WSF_USE_OWN_STS), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_BOOL && Z_BVAL_PP(tmp) == 1) { if (!svc_info->modules_to_engage) { svc_info->modules_to_engage = axutil_array_list_create(ws_env_svr, 3); } axutil_array_list_add(svc_info->modules_to_engage, ws_env_svr, axutil_strdup(ws_env_svr, WSF_MODULE_SC)); } if (zend_hash_find(ht_options, WSF_BINDING_STYLE, sizeof (WSF_BINDING_STYLE), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(obj, WSF_BINDING_STYLE, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht_options, WSF_CLASSES, sizeof (WSF_CLASSES), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { ht_classes = Z_ARRVAL_PP(tmp); svc_info->wsdl_gen_class_map = *tmp; zval_add_ref(&(svc_info->wsdl_gen_class_map)); } if (zend_hash_find(ht_options, WSF_SERVICE_NAME, sizeof (WSF_SERVICE_NAME), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { service_name = Z_STRVAL_PP(tmp); } if (zend_hash_find(ht_options, WSF_PORT_NAME, sizeof (WSF_PORT_NAME), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { port_name = Z_STRVAL_PP(tmp); } if (zend_hash_find(ht_options, WSF_ANNOTATIONS, sizeof (WSF_ANNOTATIONS), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { ht_annotations = Z_ARRVAL_PP(tmp); svc_info->wsdl_gen_annotations = *tmp; zval_add_ref(&(svc_info->wsdl_gen_annotations)); } } } zend_is_auto_global("_SERVER", sizeof ("_SERVER") - 1 TSRMLS_CC); if (zend_hash_find(&EG(symbol_table), "_SERVER", sizeof ("_SERVER"), (void **) & server_vars) == SUCCESS && (Z_TYPE_PP(server_vars) == IS_ARRAY)) { if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "PHP_SELF", sizeof ("PHP_SELF"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { request_uri = Z_STRVAL_PP(data); } } if (request_uri) { /** SG(request_info).request_uri */ svc_info->svc_name = wsf_util_generate_svc_name_from_uri_and_set_loc_str(request_uri, svc_info, ws_env_svr); if (service_name) { svc_info->svc_name = strdup(service_name); } else { svc_info->generated_svc_name = 1; } svc_info->msg_recv = wsf_msg_recv; wsf_util_create_svc_from_svc_info(svc_info, ws_env_svr TSRMLS_CC); } else if (SG(request_info).path_translated) { svc_info->svc_name = wsf_util_generate_svc_name_from_uri_and_set_loc_str( SG(request_info).path_translated, svc_info, ws_env_svr); if (service_name) { svc_info->svc_name = strdup(service_name); } else { svc_info->generated_svc_name = 1; } svc_info->msg_recv = wsf_msg_recv; wsf_util_create_svc_from_svc_info(svc_info, ws_env_svr TSRMLS_CC); } if (port_name) { svc_info->port_name = strdup(port_name); } wsf_util_process_ws_service_operations(ht_ops_to_funcs, ht_ops_to_mep, svc_info, ws_env_svr TSRMLS_CC); if (ht_classes) { wsf_util_process_ws_service_classes(ht_classes, ht_ops_to_mep, svc_info, ws_env_svr TSRMLS_CC); } wsf_util_add_svc_to_conf(ws_env_svr, svc_info, wsf_worker_get_conf_ctx(worker, ws_env_svr)); wsf_util_engage_modules_to_svc(ws_env_svr, wsf_worker_get_conf_ctx(worker, ws_env_svr), svc_info); wsf_util_process_ws_service_op_actions(ht_actions, svc_info, ws_env_svr TSRMLS_CC); wsf_util_process_rest_params(ws_env_svr, svc_info, ht_rest_map TSRMLS_CC); /* if(zend_hash_find(Z_OBJPROP_P(this_ptr), WSF_WSDL, sizeof(WSF_WSDL), (void **)&wsdl_tmp) == SUCCESS){ wsf_wsdl_process_service(svc_info, ws_env_svr TSRMLS_CC); } */ if (SG(request_info).query_string && ((stricmp(SG(request_info).query_string, WSF_WSDL) == 0) || (stricmp(SG(request_info).query_string, WSF_WSDL2) == 0))) { /** skip for WSDL Generation */ } else { if (svc_info->security_token && (svc_info->policy || svc_info->ht_op_policies)) { axis2_conf_t * conf = NULL; conf = axis2_conf_ctx_get_conf(wsf_worker_get_conf_ctx(worker, ws_env_svr), env); wsf_policy_handle_server_security(svc_info, env, conf TSRMLS_CC); } } } PHP_METHOD(ws_client, wait) { long num; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &num) == FAILURE) { return; } if (num < 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Number of seconds must be greater than or equal to 0"); return; } php_sleep(num); } /* }}} */ /* {{{ proto void WSService::__destruct() */ PHP_METHOD(ws_service, __destruct) { } /* } }} end WSService::__destruct */ static void serve_static_wsdl(char *wsdl_location TSRMLS_DC) { int len = 0; char *val = NULL; int args_count = 0; zval function, retval, *param = NULL; int new_len = 0; INIT_ZVAL(retval); MAKE_STD_ZVAL(param); sapi_add_header("Content-Type:application/xml", sizeof ("Content-Type:application/xml") - 1, 1); ZVAL_STRING(param, wsdl_location, 1); ZVAL_STRING(&function, "file_get_contents", 1); if (call_user_function(EG(function_table), NULL, &function, &retval, 1, &param TSRMLS_CC) == SUCCESS) { char *wsdl_string = NULL; char *wsdl_string1 = NULL; if (Z_TYPE_P(&retval) == IS_STRING) { wsdl_string = estrdup(Z_STRVAL(retval)); len = Z_STRLEN(retval); /** remove xml version declaration */ if (strstr(wsdl_string, "<?xml version=\"1.0\"")) { new_len = strlen("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); wsdl_string = (wsdl_string + new_len); wsdl_string1 = estrdup(strstr(wsdl_string, "<")); len = strlen(wsdl_string1); php_write(wsdl_string1, len TSRMLS_CC); } else { php_write(wsdl_string, len TSRMLS_CC); } if (wsdl_string) { efree(val); } if (wsdl_string1) { efree(wsdl_string1); } } else { php_error_docref(NULL TSRMLS_CC, E_ERROR, "WSDL Generation failed for the given WSDL"); } } zval_ptr_dtor(&param); zval_dtor(&function); zval_dtor(&retval); } static void generate_wsdl_for_service( zval *svc_zval, wsf_svc_info_t *svc_info, wsf_request_info_t *req_info, char *wsdl_ver_str, int in_cmd TSRMLS_DC) { zval **wsdl_location = NULL; /** WSDL is specified, so load and display from there */ if ((zend_hash_find(Z_OBJPROP_P(svc_zval), WSF_WSDL, sizeof (WSF_WSDL), (void **) &wsdl_location) == SUCCESS && Z_TYPE_PP(wsdl_location) == IS_STRING)) { char *wsdl_file_location = Z_STRVAL_PP(wsdl_location); serve_static_wsdl(wsdl_file_location TSRMLS_CC); } else { char *service_name; zval func, retval, param0; zval * params[1]; int len = 0; char *val = NULL; int args_count = 0; zval **class_map; axutil_hash_index_t * hi = NULL; zval *functions = NULL; /** For opening php script */ zend_file_handle script; php_stream *stream; FILE *new_fp; zval **tmpval; char *binding_name; char *wsdl_version; smart_str full_path = {0}; zval *op_val; zval *wsdata_obj; zend_class_entry **ce; service_name = svc_info->svc_name; if (!in_cmd) { smart_str_appends(&full_path, req_info->svr_name); if (req_info->svr_port != WSF_DEFAULT_PORT) { char svr_port[10]; sprintf(svr_port, ":%ld", req_info->svr_port); smart_str_appends(&full_path, svr_port); } smart_str_appends(&full_path, req_info->request_uri); smart_str_0(&full_path); } else { smart_str_appends(&full_path, SG(request_info).path_translated); smart_str_0(&full_path); } /** for WSDL version. default is wsdl 1.1*/ if ((stricmp(wsdl_ver_str, WSF_WSDL)) == 0) { wsdl_version = strdup(WSF_WSDL_1_1); } else { wsdl_version = strdup(WSF_WSDL_2_0); } /** getting the correct binding style */ if ((zend_hash_find(Z_OBJPROP_P(svc_zval), WSF_BINDING_STYLE, sizeof (WSF_BINDING_STYLE), (void **) & tmpval)) == SUCCESS && Z_TYPE_PP(tmpval) == IS_STRING) { binding_name = Z_STRVAL_PP(tmpval); } else { binding_name = WSF_STYLE_DOCLIT; } /** Get the functions in the service.php file to an array */ MAKE_STD_ZVAL(functions); array_init(functions); MAKE_STD_ZVAL(op_val); array_init(op_val); if (svc_info->ops_to_functions) { for (hi = axutil_hash_first(svc_info->ops_to_functions, ws_env_svr); hi; hi = axutil_hash_next(ws_env_svr, hi)) { void *value = NULL; const void *key = NULL; axutil_hash_this(hi, &key, NULL, &value); add_next_index_string(functions, (char *) value, 1); add_assoc_string(op_val, (char *) key, (char *) value, 1); } } INIT_ZVAL(func); ZVAL_STRING(&func, WSF_WSDL_GENERATION_FUNCTION, 1); /** Create an object of type WSData */ MAKE_STD_ZVAL(wsdata_obj); zend_lookup_class("WSData", strlen("WSData"), &ce TSRMLS_CC); object_init_ex(wsdata_obj, *ce); /** Add properties to WSData Object */ add_property_string(wsdata_obj, "serviceName", service_name, 1); add_property_zval(wsdata_obj, "WSDLGEN_Functions", functions); if (svc_info->wsdl_gen_class_map) { add_property_zval(wsdata_obj, "WSDLGEN_Svcinfo_Classmap", svc_info->wsdl_gen_class_map); } else { add_property_null(wsdata_obj, "WSDLGEN_Svcinfo_Classmap"); } if (binding_name) { add_property_string(wsdata_obj, "WSDLGen_binding", binding_name,1); }else{ add_property_null(wsdata_obj, "WSDLGen_binding"); } if (wsdl_version) { add_property_string(wsdata_obj, "WSDLGen_wsdlversion",wsdl_version, 1); }else{ add_property_null(wsdata_obj, "WSDLGen_wsdlversion"); } add_property_string(wsdata_obj, "WSDLGen_path", full_path.c, 1); add_property_zval(wsdata_obj, "WSDLGen_operations", op_val); if (zend_hash_find(Z_OBJPROP_P(svc_zval), WSF_WSDL_CLASSMAP, sizeof (WSF_WSDL_CLASSMAP), (void **) & class_map) == SUCCESS) { add_property_zval(wsdata_obj, "WSDLGen_Classmap", *class_map); }else{ add_property_null(wsdata_obj, "WSDLGen_Classmap"); } if (svc_info->wsdl_gen_annotations) { add_property_zval(wsdata_obj, "WSDLGen_annotations", svc_info->wsdl_gen_annotations); } else { add_property_null(wsdata_obj, "WSDLGen_annotations"); } if (svc_info->wsdl_gen_actions) { add_property_zval(wsdata_obj, "WSDLGen_actions", svc_info->wsdl_gen_actions); } else { add_property_null(wsdata_obj, "WSDLGen_actions"); } if (svc_info->use_wsa) { add_property_bool(wsdata_obj, "WSDLGen_usewsa", svc_info->use_wsa); }else { add_property_null(wsdata_obj, "WSDLGen_usewsa"); } params[0] = &param0; /** service name */ ZVAL_ZVAL(params[0], wsdata_obj, NULL, NULL); INIT_PZVAL(params[0]); args_count = 1; script.type = ZEND_HANDLE_FP; script.filename = WSF_SCRIPT_FILENAME; script.opened_path = NULL; script.free_filename = 0; stream = php_stream_open_wrapper(WSF_SCRIPT_FILENAME, "rb", USE_PATH | REPORT_ERRORS | ENFORCE_SAFE_MODE, NULL); if (!stream) { return; } if (php_stream_cast(stream, PHP_STREAM_AS_STDIO | PHP_STREAM_CAST_RELEASE, (void*) & new_fp, REPORT_ERRORS) == FAILURE) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unable to open script file or file not found:"); } if (new_fp) { int status; script.handle.fp = new_fp; status = php_lint_script(&script TSRMLS_CC); if (call_user_function(EG(function_table), (zval **) NULL, &func, &retval, args_count, params TSRMLS_CC) == SUCCESS) { if (Z_TYPE(retval) == IS_STRING) { val = estrdup(Z_STRVAL(retval)); len = Z_STRLEN(retval); sapi_add_header("Content-Type:application/xml", sizeof ("Content-Type:application/xml") - 1, 1); php_write(val, len TSRMLS_CC); if (val) { efree(val); } } else { php_error_docref(NULL TSRMLS_CC, E_ERROR, "WSDL Generation Failed"); } } } smart_str_free(&full_path); zval_ptr_dtor(&op_val); zval_ptr_dtor(&functions); /** end WSDL generation*/ } } /* {{{ proto long reply([long style]) reply the SOAP request */ PHP_METHOD(ws_service, reply) { ws_object_ptr intern = NULL; zval * obj = NULL; axis2_conf_ctx_t * conf_ctx = NULL; wsf_svc_info_t *svc_info = NULL; wsf_request_info_t req_info; wsf_response_info_t res_info; zval ** server_vars, **data; wsf_worker_t * php_worker = NULL; zval ** raw_post = NULL; zval ** wsdl_tmp = NULL; char *arg_data = NULL; int arg_data_len = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &arg_data, &arg_data_len) == FAILURE) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); } WSF_GET_THIS(obj); intern = (ws_object *) zend_object_store_get_object(obj TSRMLS_CC); svc_info = (wsf_svc_info_t *) (intern->ptr); svc_info->attachment_cache_dir = WSF_GLOBAL(attachment_cache_dir); svc_info->enable_attachment_caching = WSF_GLOBAL(enable_attachment_caching); php_worker = svc_info->php_worker; conf_ctx = wsf_worker_get_conf_ctx(php_worker, ws_env_svr); if (!conf_ctx) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Error building the configuration, please check your php.ini entries"); return; } zend_is_auto_global("_SERVER", sizeof ("_SERVER") - 1 TSRMLS_CC); wsf_request_info_init(&req_info); wsf_response_info_init(&res_info); if (SG(request_info).request_uri) { if (zend_hash_find(&EG(symbol_table), "_SERVER", sizeof ("_SERVER"), (void **) & server_vars) == SUCCESS && (Z_TYPE_PP(server_vars) == IS_ARRAY)) { if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "HTTP_TRANSFER_ENCODING", sizeof ("HTTP_TRANSFER_ENCODING"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.transfer_encoding = Z_STRVAL_PP(data); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "SERVER_NAME", sizeof ("SERVER_NAME"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.svr_name = Z_STRVAL_PP(data); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "SERVER_PORT", sizeof ("SERVER_PORT"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { char *p = NULL; p = Z_STRVAL_PP(data); req_info.svr_port = atoi(p); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "SERVER_PROTOCOL", sizeof ("SERVER_PROTOCOL"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.http_protocol = Z_STRVAL_PP(data); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "HTTP_SOAPACTION", sizeof ("HTTP_SOAPACTION"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.soap_action = Z_STRVAL_PP(data); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "REMOTE_ADDR", sizeof ("REMOTE_ADDR"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.remote_address = Z_STRVAL_PP(data); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "HTTP_ACCEPT", sizeof ("HTTP_ACCEPT"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.accept = Z_STRVAL_PP(data); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "HTTP_ACCEPT_LANGUAGE", sizeof ("HTTP_ACCEPT_LANGUAGE"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.accept_language = Z_STRVAL_PP(data); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "HTTP_ACCEPT_ENCODING", sizeof ("HTTP_ACCEPT_ENCODING"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.accept_encoding = Z_STRVAL_PP(data); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "HTTP_ACCEPT_CHARSET", sizeof ("HTTP_ACCEPT_CHARSET"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.accept_charset = Z_STRVAL_PP(data); } if ((zend_hash_find(Z_ARRVAL_PP(server_vars), "PHP_SELF", sizeof ("PHP_SELF"), (void **) & data) == SUCCESS) && Z_TYPE_PP(data) == IS_STRING) { req_info.request_uri = Z_STRVAL_PP(data); } } if (!req_info.request_uri) { req_info.request_uri = SG(request_info).request_uri; } req_info.content_length = SG(request_info).content_length; req_info.content_type = (char *) SG(request_info).content_type; req_info.request_method = (char *) SG(request_info).request_method; req_info.query_string = (char *) SG(request_info).query_string; /* HTTP_RAW_POST_DATA variable is not on by default. Using php://input instead if(req_info.request_method && strcmp(req_info.request_method,WSF_HTTP_POST) == 0){ if (zend_hash_find (&EG(symbol_table), "HTTP_RAW_POST_DATA", sizeof ("HTTP_RAW_POST_DATA"), (void **)&raw_post) != FAILURE && ((*raw_post)->type == IS_STRING)){ char *value = NULL; req_info.request_data = Z_STRVAL_PP (raw_post); req_info.request_data_length = Z_STRLEN_PP (raw_post); value = (char*)Z_STRVAL_PP(raw_post); }else { zval function, retval , *param = NULL; int new_len = 0; INIT_ZVAL(retval); MAKE_STD_ZVAL(param); ZVAL_STRING(param, "php://input", 1); ZVAL_STRING(&function, "file_get_contents", 1); if (call_user_function(EG(function_table), NULL, &function, &retval, 1, &param TSRMLS_CC) == SUCCESS) { if (Z_TYPE (retval) == IS_STRING) { char *data = NULL; data = Z_STRVAL(retval); req_info.request_data = Z_STRVAL(retval); req_info.request_data_length = Z_STRLEN(retval); AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ "php://input data found"); }else { php_error_docref(NULL TSRMLS_CC, E_ERROR, "raw post data not found"); } } } }else { if(req_info.request_method && strcmp(req_info.request_method,WSF_HTTP_PUT) == 0) */ { zval function, retval, *param = NULL; int new_len = 0; INIT_ZVAL(retval); MAKE_STD_ZVAL(param); ZVAL_STRING(param, "php://input", 1); ZVAL_STRING(&function, "file_get_contents", 1); if (call_user_function(EG(function_table), NULL, &function, &retval, 1, &param TSRMLS_CC) == SUCCESS) { if (Z_TYPE(retval) == IS_STRING) { char *data = NULL; data = Z_STRVAL(retval); req_info.request_data = Z_STRVAL(retval); req_info.request_data_length = Z_STRLEN(retval); AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ "php://input data found"); } else { php_error_docref(NULL TSRMLS_CC, E_ERROR, "raw post data not found"); } } efree(param); } /* AXIS2_LOG_DEBUG(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ "raw post data not found"); if(req_info.request_method && strcmp(req_info.request_method,WSF_HTTP_POST) == 0){ php_error_docref(NULL TSRMLS_CC, E_ERROR, "raw post data not found"); } } */ } else if (ZEND_NUM_ARGS() > 0 && arg_data_len > 0) { /* If we come here, it is not an HTTP post, rather a command line script execution. So set some defaults to facilitate standalone execution. */ if ((arg_data_len == 4 || arg_data_len == 5) && (stricmp(arg_data, WSF_WSDL) || stricmp(arg_data, WSF_WSDL2))) { req_info.request_uri = svc_info->svc_name; req_info.svr_name = estrdup(WSF_LOCALHOST); generate_wsdl_for_service(obj, svc_info, &req_info, arg_data, 1 TSRMLS_CC); efree(req_info.svr_name); return; } req_info.svr_name = strdup(WSF_LOCALHOST); req_info.svr_port = 9999; req_info.request_data = arg_data; req_info.request_data_length = arg_data_len; req_info.http_protocol = strdup(WSF_PROTOCOL_HTTP); req_info.request_uri = svc_info->svc_name; req_info.request_method = strdup(WSF_HTTP_POST); req_info.content_type = strdup("application/soap+xml;charset=UTF-8"); req_info.content_length = arg_data_len; } else { php_printf("please provide reply function's argument SOAP Envelope XML string\n"); return; } if (SG(request_info).query_string){ if(((stricmp(SG(request_info).query_string, WSF_WSDL) == 0) || (stricmp(SG(request_info).query_string, WSF_WSDL2) == 0))) { /** begin WSDL Generation */ generate_wsdl_for_service(obj, svc_info, &req_info, SG(request_info).query_string, 0 TSRMLS_CC); } if(axutil_strcasestr(SG(request_info).query_string, WSF_XSD) != NULL) { char *querystr = NULL, *filename = NULL; int length = 0; querystr = SG(request_info).query_string; length = strlen(querystr); if(length > 4){ filename = axutil_string_substring_starting_at(querystr, 4); if(VCWD_ACCESS(filename, F_OK) != -1) serve_static_wsdl(filename TSRMLS_CC); } } } else { if (!svc_info->omit_wsdl && zend_hash_find(Z_OBJPROP_P(this_ptr), WSF_WSDL, sizeof (WSF_WSDL), (void **) & wsdl_tmp) == SUCCESS) { wsf_wsdl_process_service(svc_info, ws_env_svr TSRMLS_CC); } wsf_worker_process_request(php_worker, ws_env_svr, &req_info, &res_info, svc_info TSRMLS_CC); wsf_response_info_cleanup(&res_info, ws_env_svr); } } /* }}} end reply */ /* {{{ proto void WSFault::__construct(string faultcode, string faultreason [,string faultrole [, mixed detail[, string faultname]]]) */ PHP_METHOD(ws_fault, __construct) { char *sf_code = NULL, *sf_code_ns = NULL, *sf_reason = NULL, *sf_role = NULL, *value = NULL; int sf_code_len = 0, sf_reason_len = 0, sf_role_len = 0, value_len = 0; zval * code = NULL, *details = NULL; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "zs|s!z!s", &code, &sf_reason, &sf_reason_len, &sf_role, &sf_role_len, &details, &value, &value_len)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); AXIS2_LOG_ERROR(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ "Invalid Parameters, Fault Code and Fault Reason values are mandatory"); return; } if (Z_TYPE_P(code) == IS_STRING) { sf_code = Z_STRVAL_P(code); sf_code_len = Z_STRLEN_P(code); } else if (Z_TYPE_P(code) == IS_ARRAY && zend_hash_num_elements(Z_ARRVAL_P(code)) == 2) { zval ** tmp_ns, **tmp_code; zend_hash_internal_pointer_reset(Z_ARRVAL_P(code)); zend_hash_get_current_data(Z_ARRVAL_P(code), (void **) & tmp_ns); zend_hash_move_forward(Z_ARRVAL_P(code)); zend_hash_get_current_data(Z_ARRVAL_P(code), (void **) & tmp_code); if (Z_TYPE_PP(tmp_ns) == IS_STRING && Z_TYPE_PP(tmp_code) == IS_STRING) { sf_code_ns = Z_STRVAL_PP(tmp_ns); sf_code = Z_STRVAL_PP(tmp_code); sf_code_len = Z_STRLEN_PP(tmp_code); } else { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Fault Code and Fault Code namespace must be strings"); AXIS2_LOG_ERROR(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ "Fault Code and ns must be strings."); return; } } else { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Incorrect Fault Code"); AXIS2_LOG_ERROR(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX "Invalid fault code."); return; } if (!(strcmp(sf_code, "VersionMismatch") == 0 || strcmp(sf_code, "MustUnderstand") == 0 || strcmp(sf_code, "DataEncodingUnknown") == 0 || strcmp(sf_code, "Sender") == 0 || strcmp(sf_code, "Client") == 0 || strcmp(sf_code, "Server") == 0 || strcmp(sf_code, "Receiver") == 0)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Incorrect Fault Code, Code must be one of Client, Server, VersionMismatch,MustUnderstand,DataEncodingUnknown,Sender, Receiver"); } if (!sf_code || !sf_reason) { if (WSF_GLOBAL(soap_version) == AXIOM_SOAP11) { AXIS2_LOG_ERROR(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ "faultcode and faultstring are mandatory "); return; } else if (WSF_GLOBAL(soap_version) == AXIOM_SOAP12) { AXIS2_LOG_ERROR(ws_env_svr->log, AXIS2_LOG_SI, WSF_PHP_LOG_PREFIX \ "Code and Reason are mandatory "); } } wsf_util_set_soap_fault(this_ptr, sf_code_ns, sf_code, sf_reason, sf_role, details, value TSRMLS_CC); } /* }}} */ /* {{{ proto */ PHP_METHOD(ws_fault, __destruct) { } /* }}} */ PHP_METHOD(ws_fault, __toString) { zval *code, *reason, *detail; char *fault_string; int length; if (ZEND_NUM_ARGS() > 0) { ZEND_WRONG_PARAM_COUNT(); } code = zend_read_property(ws_fault_class_entry, this_ptr, WSF_FAULT_CODE, sizeof (WSF_FAULT_CODE) - 1, 1 TSRMLS_CC); reason = zend_read_property(ws_fault_class_entry, this_ptr, WSF_FAULT_REASON, sizeof (WSF_FAULT_REASON) - 1, 1 TSRMLS_CC); detail = zend_read_property(ws_fault_class_entry, this_ptr, WSF_FAULT_DETAIL, sizeof (WSF_FAULT_DETAIL) - 1, 1 TSRMLS_CC); if (Z_STRVAL_P(detail)) { length = spprintf(&fault_string, 0, "WS FAULT exception: [%s] %s %s", Z_STRVAL_P(code), Z_STRVAL_P(reason), Z_STRVAL_P(detail)); } else { length = spprintf(&fault_string, 0, "WS FAULT exception: [%s] %s", Z_STRVAL_P(code), Z_STRVAL_P(reason)); } RETURN_STRINGL(fault_string, length, 0); } PHP_METHOD(ws_header, __construct) { zval *arg = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "z", &arg) == FAILURE) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); } if (Z_TYPE_P(arg) == IS_ARRAY) { zval ** tmp; HashTable *ht = Z_ARRVAL_P(arg); if (!ht) return; if (zend_hash_find(ht, WSF_HEADER_NS, sizeof (WSF_HEADER_NS), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { if (Z_STRLEN_PP(tmp) == 0) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Namespace should not be empty"); } add_property_stringl(this_ptr, WSF_HEADER_NS, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_HEADER_LOCALNAME, sizeof (WSF_HEADER_LOCALNAME), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { if (Z_STRLEN_PP(tmp) == 0) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "A Soap Header should have a non empty localname"); } add_property_stringl(this_ptr, WSF_HEADER_LOCALNAME, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_HEADER_DATA, sizeof (WSF_HEADER_DATA), (void**) & tmp) == SUCCESS) { #ifndef ZEND_ENGINE_2 zval_add_ref(tmp); #endif /* */ add_property_zval(this_ptr, WSF_HEADER_DATA, *tmp); } if (zend_hash_find(ht, WSF_HEADER_MUST_UNDERSTAND, sizeof (WSF_HEADER_MUST_UNDERSTAND), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_BOOL) { add_property_bool(this_ptr, WSF_HEADER_MUST_UNDERSTAND, Z_BVAL_PP(tmp)); } if (zend_hash_find(ht, WSF_HEADER_PREFIX, sizeof (WSF_HEADER_PREFIX), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_string(this_ptr, WSF_HEADER_PREFIX, Z_STRVAL_PP(tmp), 1); } if (zend_hash_find(ht, WSF_HEADER_ROLE, sizeof (WSF_HEADER_ROLE), (void**) & tmp) == SUCCESS) { if (Z_TYPE_PP(tmp) == IS_LONG && (Z_LVAL_PP(tmp) == WSF_SOAP_ROLE_NEXT || Z_LVAL_PP(tmp) == WSF_SOAP_ROLE_NONE || Z_LVAL_PP(tmp) == WSF_SOAP_ROLE_ULTIMATE_RECEIVER)) { add_property_long(this_ptr, WSF_HEADER_ROLE, Z_LVAL_PP(tmp)); } else if (Z_TYPE_PP(tmp) == IS_STRING && Z_STRLEN_PP(tmp) > 0) { add_property_stringl(this_ptr, WSF_HEADER_ROLE, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } else { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters. Invalid role."); } } } } /* {{{ WSSecurityToken::__construct( */ PHP_METHOD(ws_security_token, __construct) { zval * object = NULL; zval * options = NULL; zval ** tmp = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "a", &options) == FAILURE) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "An array should be passed here"); } WSF_GET_THIS(object); if (options) { HashTable * ht = Z_ARRVAL_P(options); if (zend_hash_find(ht, WSF_CUSTOM_TOKENS, sizeof (WSF_CUSTOM_TOKENS), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_ARRAY) { add_property_zval(object, WSF_CUSTOM_TOKENS, *tmp); } if (zend_hash_find(ht, WSF_USER, sizeof (WSF_USER), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_USER, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_PASSWORD_TYPE, sizeof (WSF_PASSWORD_TYPE), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_PASSWORD_TYPE, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_PASSWORD, sizeof (WSF_PASSWORD), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_string(object, WSF_PASSWORD, Z_STRVAL_PP(tmp), 1); } if (zend_hash_find(ht, WSF_PRIVATE_KEY, sizeof (WSF_PRIVATE_KEY), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_string(object, WSF_PRIVATE_KEY, Z_STRVAL_PP(tmp), 1); } if (zend_hash_find(ht, WSF_CERTIFICATE, sizeof (WSF_CERTIFICATE), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_CERTIFICATE, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_RECEIVER_CERTIFICATE, sizeof (WSF_RECEIVER_CERTIFICATE), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_string(object, WSF_RECEIVER_CERTIFICATE, Z_STRVAL_PP(tmp), 1); } if (zend_hash_find(ht, WSF_TTL, sizeof (WSF_TTL), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_LONG) { add_property_long(object, WSF_TTL, Z_LVAL_PP(tmp)); } if (zend_hash_find(ht, WSF_CLOCK_SKEW_BUFFER, sizeof (WSF_CLOCK_SKEW_BUFFER), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_LONG) { add_property_long(object, WSF_CLOCK_SKEW_BUFFER, Z_LVAL_PP(tmp)); } if (zend_hash_find(ht, WSF_PKCS12_KEYSTORE, sizeof (WSF_PKCS12_KEYSTORE), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_PKCS12_KEYSTORE, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_PASSWORD_CALLBACK, sizeof (WSF_PASSWORD_CALLBACK), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_string(object, WSF_PASSWORD_CALLBACK, Z_STRVAL_PP(tmp), 1); } if (zend_hash_find(ht, WSF_PASSWORD_CALLBACK_ARGS, sizeof (WSF_PASSWORD_CALLBACK_ARGS), (void **) & tmp) == SUCCESS) { add_property_zval(object, WSF_PASSWORD_CALLBACK_ARGS, *tmp); } if (zend_hash_find(ht, WSF_REPLAY_DETECT_CALLBACK, sizeof (WSF_REPLAY_DETECT_CALLBACK), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_REPLAY_DETECT_CALLBACK, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_REPLAY_DETECT_CALLBACK_ARGS, sizeof (WSF_REPLAY_DETECT_CALLBACK_ARGS), (void **) & tmp) == SUCCESS) { add_property_zval(object, WSF_REPLAY_DETECT_CALLBACK_ARGS, *tmp); } if (zend_hash_find(ht, WSF_ENABLE_REPLAY_DETECT, sizeof (WSF_ENABLE_REPLAY_DETECT), (void **) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_BOOL) { add_property_bool(object, WSF_ENABLE_REPLAY_DETECT, Z_BVAL_PP(tmp)); } if (zend_hash_find(ht, WSF_STORE_SCT_CALLBACK, sizeof (WSF_STORE_SCT_CALLBACK), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_STORE_SCT_CALLBACK, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_SCT_CALLBACK_ARGS, sizeof (WSF_SCT_CALLBACK_ARGS), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_zval(object, WSF_SCT_CALLBACK_ARGS, *tmp); } if (zend_hash_find(ht, WSF_GET_SCT_CALLBACK, sizeof (WSF_GET_SCT_CALLBACK), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_GET_SCT_CALLBACK, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } if (zend_hash_find(ht, WSF_DELETE_SCT_CALLBACK, sizeof (WSF_DELETE_SCT_CALLBACK), (void**) & tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { add_property_stringl(object, WSF_DELETE_SCT_CALLBACK, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), 1); } } } /* }}} */ /* {{{ WSPolicy::__construct( */ PHP_METHOD(ws_policy, __construct) { zval * object = NULL; zval * properties = NULL; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "|z|a", &properties)) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); return; } WSF_GET_THIS(object); WSF_OBJ_CHECK(env); if (NULL != properties) { wsf_policy_set_policy_options(object, properties, env TSRMLS_CC); } } /* }}} */ /* {{{ WSPolicy::__construct) { */ PHP_METHOD(ws_data, __construct) { } /* }}} */ /* {{{ proto string file_get_contents(string filename) read a pem file and return the key portion of the file as a string */ PHP_FUNCTION(ws_get_key_from_file) { char *filename; int filename_len; char *contents; php_stream * stream; int len; long maxlen = PHP_STREAM_COPY_ALL; zval * zcontext = NULL; php_stream_context * context = NULL; char *DELIMITER = "-----"; /* Parse arguments */ if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { return; } context = php_stream_context_from_zval(zcontext, 0); stream = php_stream_open_wrapper_ex(filename, "rb", (USE_PATH) | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context); if (!stream) { RETURN_FALSE; } if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { char *key = NULL; char *start_index = NULL; char *tmp_index = NULL; tmp_index = strstr(contents, DELIMITER); if (!tmp_index) return; if (len > (tmp_index - contents)) { tmp_index += 5; tmp_index = strstr(tmp_index, DELIMITER); if (!tmp_index) return; start_index = tmp_index + 6; tmp_index[contents - tmp_index] = '\0'; } tmp_index = strstr(start_index, DELIMITER); if (!tmp_index) return; tmp_index = tmp_index + 1; start_index[tmp_index - start_index] = '\0'; key = estrdup(start_index); efree(contents); RETVAL_STRINGL(key, strlen(key), 0); } else if (len == 0) { RETVAL_EMPTY_STRING(); } else { RETVAL_FALSE; } php_stream_close(stream); } /* }}} */ /* {{{ proto string file_get_contents(string filename) read a pem file and return the key portion of the file as a string */ PHP_FUNCTION(ws_get_cert_from_file) { char *filename; int filename_len; char *contents; php_stream * stream; int len; long maxlen = PHP_STREAM_COPY_ALL; zval * zcontext = NULL; php_stream_context * context = NULL; char *DELIMITER = "-----"; /* Parse arguments */ if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { return; } context = php_stream_context_from_zval(zcontext, 0); stream = php_stream_open_wrapper_ex(filename, "rb", (USE_PATH) | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context); if (!stream) { RETURN_FALSE; } if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { char *key = NULL; char *start_index = NULL; char *tmp_index = NULL; tmp_index = strstr(contents, DELIMITER); if (!tmp_index) return; if (len > (tmp_index - contents)) { tmp_index += 5; tmp_index = strstr(tmp_index, DELIMITER); if (!tmp_index) return; start_index = tmp_index + 6; tmp_index[contents - tmp_index] = '\0'; } tmp_index = strstr(start_index, DELIMITER); if (!tmp_index) return; tmp_index = tmp_index + 1; start_index[tmp_index - start_index] = '\0'; key = estrdup(start_index); efree(contents); RETVAL_STRINGL(key, strlen(key), 0); } else if (len == 0) { RETVAL_EMPTY_STRING(); } else { RETVAL_FALSE; } php_stream_close(stream); } /* }}} */ /* {{{ proto WSClientProxy::__construct(mixed options) */ PHP_METHOD(ws_client_proxy, __construct) { } /* }}} end WSClient_proxt */ /* {{{ proto void WSClientProxy::__destruct() */ PHP_METHOD(ws_client_proxy, __destruct) { } /* {{{ proto WSClientProxy::__call() */ PHP_METHOD(ws_client_proxy, __call) { char *fn_name = NULL; long fn_name_len = 0; zval * args = NULL; int arg_count = 0; if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "sz", &fn_name, &fn_name_len, &args) == FAILURE) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters"); return; } arg_count = zend_hash_num_elements(Z_ARRVAL_P(args)); wsf_wsdl_create_dynamic_client(this_ptr, fn_name, fn_name_len, arg_count, args, return_value, env TSRMLS_CC); } /* }}} end _call */ /* {{{ proto getFunctions() */ PHP_METHOD(ws_client_proxy, get_functions) { /* wsf_soap_get_functions (this_ptr, return_value, env TSRMLS_CC); */ } /* }}} */ /* {{{ proto getFunctions() */ PHP_METHOD(ws_client_proxy, get_types) { /* wsf_soap_get_types (this_ptr, return_value, env TSRMLS_CC); */ } /* }}} */ /* {{{ proto getLocation() */ PHP_METHOD(ws_client_proxy, get_location) { /* wsf_soap_get_location (this_ptr, return_value, env TSRMLS_CC); */ } /* }}} end getLocation */ /* {{{ proto string ws_log_write(string file, string line, string level, string text) */ PHP_FUNCTION(ws_log_write) { char *text; int text_len; char *level_str; int level; int level_len; char *file; int file_len; char* line_str; int line; int line_len; axis2_char_t *buffer; axutil_log_t * log; axutil_env_t * current_env; if (ws_is_svr) { current_env = ws_env_svr; } else { current_env = env; } log = current_env->log; /* Parse arguments */ if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "ssss", &file, &file_len, &line_str, &line_len, &level_str, &level_len, &text, &text_len) == FAILURE) { return; } buffer = axutil_stracat(env, WSF_PHP_LOG_PREFIX, text); line = axutil_atoi(line_str); level = axutil_atoi(level_str); switch (level) { case 0: axutil_log_impl_log_critical(log, file, line, buffer); break; case 1: axutil_log_impl_log_error(log, file, line, buffer); break; case 2: axutil_log_impl_log_warning(log, file, line, buffer); break; case 3: axutil_log_impl_log_info(log, file, line, buffer); break; case 4: axutil_log_impl_log_debug(log, file, line, buffer); break; case 5: axutil_log_impl_log_user(log, file, line, buffer); break; default: axutil_log_impl_log_trace(log, file, line, buffer); break; } AXIS2_FREE(env->allocator, buffer); } /* }}} */
MI-LA01/kt_wso2-php5.3
src/wsf.c
C
apache-2.0
80,507
[ 30522, 1013, 1008, 1008, 9385, 2384, 1010, 2230, 1059, 6499, 2475, 1010, 4297, 1012, 8299, 1024, 1013, 1013, 1059, 6499, 2475, 1012, 4012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 30524, 1008, 1013, 1001, 2065, 3207, 2546, 2031, 1035, 9530, 8873, 2290, 1035, 1044, 1001, 2421, 1000, 9530, 8873, 2290, 1012, 1044, 1000, 1001, 2203, 10128, 1001, 2421, 1000, 25718, 1012, 1044, 1000, 1001, 2421, 1000, 25718, 1035, 1999, 2072, 1012, 1044, 1000, 1001, 2421, 1000, 4654, 2102, 1013, 3115, 1013, 18558, 1012, 1044, 1000, 1001, 2421, 1000, 1059, 22747, 1012, 1044, 1000, 1001, 2421, 1000, 1059, 22747, 1035, 21183, 4014, 1012, 1044, 1000, 1001, 2421, 1000, 4654, 2102, 1013, 3115, 1013, 18558, 1012, 1044, 1000, 1001, 2421, 1026, 16729, 2094, 1013, 16729, 2094, 1012, 1044, 1028, 1001, 2421, 1000, 16729, 2094, 1035, 11790, 1012, 1044, 1000, 1001, 2421, 1000, 16729, 2094, 1035, 3795, 2015, 1012, 1044, 1000, 1001, 2421, 1000, 16729, 2094, 1035, 5200, 1012, 1044, 1000, 1001, 2421, 1000, 1059, 22747, 1035, 2691, 1012, 1044, 1000, 1001, 2421, 1026, 22260, 21823, 2140, 1035, 4372, 2615, 1012, 1044, 1028, 1001, 2421, 1026, 8123, 2475, 1035, 17917, 2278, 1035, 7396, 1012, 1044, 1028, 1001, 2421, 1026, 22260, 18994, 1035, 7815, 1012, 1044, 1028, 1001, 2421, 1026, 8123, 2475, 1035, 8299, 1035, 3665, 1012, 1044, 1028, 1001, 2421, 1026, 8123, 2475, 1035, 5587, 2099, 1012, 1044, 1028, 1001, 2421, 1026, 8123, 2475, 1035, 9530, 3367, 1012, 1044, 1028, 1001, 2421, 1026, 22260, 18994, 1035, 21183, 4014, 1012, 1044, 1028, 1001, 2421, 1026, 5472, 9953, 2050, 2475, 1035, 7396, 1012, 1044, 1028, 1001, 2421, 1000, 1059, 22747, 1035, 7396, 1012, 1044, 1000, 1001, 2421, 1000, 1059, 22747, 1035, 3343, 1012, 1044, 1000, 1001, 2421, 1000, 1059, 22747, 1035, 20950, 1035, 5796, 2290, 1035, 28667, 2615, 1012, 1044, 1000, 1001, 2421, 1000, 1059, 22747, 1035, 2544, 1012, 1044, 1000, 1001, 2421, 1000, 25718, 1035, 2544, 1012, 1044, 1000, 1001, 2421, 1026, 25718, 1035, 2364, 1012, 1044, 1028, 1001, 2421, 1000, 1059, 22747, 1035, 1059, 16150, 2140, 1012, 1044, 1000, 16729, 2094, 1035, 13520, 1035, 11336, 1035, 3795, 2015, 1006, 1059, 22747, 1007, 16729, 2094, 1035, 2465, 1035, 4443, 1008, 1059, 2015, 1035, 7396, 1035, 2465, 1035, 4443, 1025, 16729, 2094, 1035, 2465, 1035, 4443, 1008, 1059, 2015, 1035, 2326, 1035, 2465, 1035, 4443, 1025, 16729, 2094, 30523, 2030, 3785,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 30526 ]
/* * This is part of Geomajas, a GIS framework, http://www.geomajas.org/. * * Copyright 2008-2013 Geosparc nv, http://www.geosparc.com/, Belgium. * * The program is available in open source according to the GNU Affero * General Public License. All contributions in this program are covered * by the Geomajas Contributors License Agreement. For full licensing * details, see LICENSE.txt in the project root. */ package org.geomajas.gwt.client.map.event; import org.geomajas.annotation.Api; import org.geomajas.gwt.client.map.layer.Layer; import com.google.gwt.event.shared.GwtEvent; /** * Event that reports the selection of a layer. * * @author Pieter De Graef * @since 1.6.0 */ @Api(allMethods = true) public class LayerSelectedEvent extends GwtEvent<LayerSelectionHandler> { private Layer<?> layer; /** * Constructor. * * @param layer selected layer */ public LayerSelectedEvent(Layer<?> layer) { this.layer = layer; } @Override public Type<LayerSelectionHandler> getAssociatedType() { return LayerSelectionHandler.TYPE; } @Override protected void dispatch(LayerSelectionHandler selectLayerHandler) { selectLayerHandler.onSelectLayer(this); } /** * Get selected layer. * * @return selected layer */ public Layer<?> getLayer() { return layer; } }
olivermay/geomajas
face/geomajas-face-gwt/client/src/main/java/org/geomajas/gwt/client/map/event/LayerSelectedEvent.java
Java
agpl-3.0
1,307
[ 30522, 1013, 1008, 1008, 2023, 2003, 2112, 1997, 20248, 2863, 17386, 1010, 1037, 21025, 2015, 7705, 1010, 8299, 1024, 1013, 1013, 7479, 1012, 20248, 2863, 17386, 1012, 8917, 1013, 1012, 1008, 1008, 9385, 2263, 1011, 2286, 20248, 27694, 2278, 1050, 2615, 1010, 8299, 1024, 1013, 1013, 7479, 1012, 20248, 27694, 2278, 1012, 4012, 1013, 1010, 5706, 1012, 1008, 1008, 1996, 2565, 2003, 2800, 1999, 2330, 3120, 2429, 2000, 1996, 27004, 21358, 7512, 2080, 1008, 2236, 2270, 6105, 1012, 2035, 5857, 1999, 30524, 2724, 1025, 12324, 8917, 1012, 20248, 2863, 17386, 1012, 5754, 17287, 3508, 1012, 17928, 1025, 12324, 8917, 1012, 20248, 2863, 17386, 1012, 1043, 26677, 1012, 7396, 1012, 4949, 1012, 6741, 1012, 6741, 1025, 12324, 4012, 1012, 8224, 1012, 1043, 26677, 1012, 2724, 1012, 4207, 1012, 1043, 26677, 18697, 3372, 1025, 1013, 1008, 1008, 1008, 2724, 2008, 4311, 1996, 4989, 1997, 1037, 6741, 1012, 1008, 1008, 1030, 3166, 23759, 2139, 24665, 6679, 2546, 1008, 1030, 2144, 1015, 1012, 1020, 1012, 1014, 1008, 1013, 1030, 17928, 1006, 2035, 11368, 6806, 5104, 1027, 2995, 1007, 2270, 2465, 9014, 12260, 10985, 18697, 3372, 8908, 1043, 26677, 18697, 3372, 1026, 9014, 12260, 7542, 11774, 3917, 1028, 1063, 2797, 6741, 1026, 1029, 1028, 6741, 1025, 1013, 1008, 1008, 1008, 9570, 2953, 1012, 1008, 1008, 1030, 11498, 2213, 6741, 3479, 6741, 1008, 1013, 2270, 9014, 12260, 10985, 18697, 3372, 1006, 6741, 1026, 1029, 1028, 6741, 1007, 1063, 2023, 1012, 6741, 1027, 6741, 1025, 1065, 1030, 2058, 15637, 2270, 2828, 1026, 9014, 12260, 7542, 11774, 3917, 1028, 2131, 12054, 10085, 15070, 13874, 1006, 1007, 1063, 2709, 9014, 12260, 7542, 11774, 3917, 1012, 2828, 1025, 1065, 1030, 2058, 15637, 5123, 11675, 18365, 1006, 9014, 12260, 7542, 11774, 3917, 7276, 24314, 11774, 3917, 1007, 1063, 7276, 24314, 11774, 3917, 1012, 2006, 11246, 22471, 24314, 1006, 2023, 1007, 1025, 1065, 1013, 1008, 1008, 1008, 2131, 3479, 6741, 1012, 1008, 1008, 1030, 2709, 3479, 6741, 1008, 1013, 2270, 6741, 1026, 1029, 1028, 2131, 24314, 1006, 1007, 1063, 2709, 6741, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 2023, 2565, 2024, 3139, 1008, 2011, 1996, 20248, 2863, 17386, 16884, 6105, 3820, 1012, 2005, 2440, 13202, 1008, 4751, 1010, 2156, 6105, 1012, 19067, 2102, 1999, 1996, 2622, 7117, 1012, 1008, 1013, 7427, 8917, 1012, 20248, 2863, 17386, 1012, 1043, 26677, 1012, 7396, 1012, 4949, 1012, 30526 ]
[ 0, 0, 0, 0, 0, 0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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2023, 2565, 2024, 3139, 1008, 2011, 1996, 20248, 2863, 17386, 16884, 6105, 3820, 1012, 2005, 2440, 13202, 1008, 4751, 1010, 2156, 6105, 1012, 19067, 2102, 1999, 1996, 2622, 7117, 1012, 1008, 1013, 7427, 8917, 1012, 20248, 2863, 17386, 1012, 1043, 26677, 1012, 7396, 1012, 4949, 1012, 30526 ]
-- -- Copyright (c) 1997-2013, www.tinygroup.org ([email protected]). -- -- Licensed under the GPL, Version 3.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.gnu.org/licenses/gpl.html -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- select * from dual t1, dual t2 join dual t3 using(dummy) left outer join dual t4 using(dummy) left outer join dual t5 using(dummy)
TinyGroup/tiny
db/org.tinygroup.jsqlparser/src/test/resources/org/tinygroup/jsqlparser/test/oracle-tests/join16.sql
SQL
gpl-3.0
771
[ 30522, 1011, 1011, 1011, 1011, 9385, 1006, 1039, 1007, 2722, 1011, 2286, 1010, 7479, 1012, 4714, 17058, 1012, 8917, 1006, 11320, 2080, 1035, 22720, 1030, 24582, 23743, 2094, 1012, 4012, 1007, 1012, 1011, 1011, 1011, 1011, 7000, 2104, 1996, 14246, 2140, 1010, 2544, 1017, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1011, 1011, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1011, 1011, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1011, 1011, 1011, 1011, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 14246, 2140, 1012, 16129, 1011, 1011, 1011, 1011, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1011, 1011, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1011, 1011, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1011, 1011, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1011, 1011, 12546, 2104, 1996, 6105, 1012, 1011, 1011, 7276, 1008, 2013, 7037, 1056, 2487, 1010, 7037, 1056, 2475, 3693, 7037, 1056, 2509, 2478, 1006, 24369, 1007, 2187, 6058, 3693, 7037, 1056, 2549, 2478, 1006, 24369, 1007, 2187, 6058, 3693, 7037, 1056, 2629, 2478, 1006, 24369, 1007, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/* MonoSLAM: A vision based SLAM program Based upon SceneLib, by Andrew Davison ( http://www.doc.ic.ac.uk/~ajd ) Copyright (C) 2006 Bob Mottram This library 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 of the License, or (at your option) any later version. 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ using System; using System.Collections; using System.Collections.Generic; using System.Text; using SceneLibrary; namespace monoSLAM { /* public class threeDdraw { // q in state vector is qWR between world frame and Scene robot frame // What we need to plot though uses GL object frame O // Know qRO: pi rotation about y axis // qWO = qWR * qRO public Quaternion qRO = new Quaternion(0.0f, 1.0f, 0.0f, 0.0f); /// <summary> /// Draw scene from external point of view xp_draw. /// </summary> /// <param name="scene">The SLAM map</param> /// <param name="threedtool">The GL viewer to use</param> /// <param name="trajectory_store"></param> /// <param name="display_camera_flag">Draw the camera?</param> /// <param name="display_camera_uncertainty_flag">Draw the camera uncertainty?</param> /// <param name="display_camera_trajectory_flag"></param> /// <param name="display_3d_features_flag">Draw the world features?</param> /// <param name="display_3d_feature_uncertainties_flag">Draw the world feature uncertainties</param> /// <param name="display_axes_flag">Draw axes</param> /// <param name="display_annotations_flag">Draw annotations</param> public void External3DDraw(Scene_Single scene, ThreeDToolGLCommon threedtool, ArrayList trajectory_store, bool display_camera_flag, bool display_camera_uncertainty_flag, bool display_camera_trajectory_flag, bool display_3d_features_flag, bool display_3d_feature_uncertainties_flag, bool display_axes_flag, bool display_annotations_flag) { ThreeD_Motion_Model* threed_motion_model = (ThreeD_Motion_Model*)scene->get_motion_model(); if (display_camera_flag) { threed_motion_model.func_xp(scene.get_xv()); threed_motion_model.func_r(threed_motion_model.get_xpRES()); threed_motion_model.func_q(threed_motion_model.get_xpRES()); Quaternion qWO = threed_motion_model.get_qRES() * qRO; Vector3D r_local = threed_motion_model.get_rRES(); DrawCamera(threedtool, r_local, qWO); } if (display_camera_uncertainty_flag) { // This is a convoluted way to pull out the camera position covariance // from the main state covariance but it is nice and generic threed_motion_model.func_xp(scene.get_xv()); threed_motion_model.func_dxp_by_dxv(scene.get_xv()); threed_motion_model.func_r(threed_motion_model.get_xpRES()); threed_motion_model.func_dr_by_dxp(threed_motion_model.get_xpRES()); Vector3D local_r = threed_motion_model.get_rRES(); MatrixFixed Pxpxp = threed_motion_model.get_dxp_by_dxvRES() * scene.get_Pxx() * threed_motion_model.get_dxp_by_dxvRES().Transpose(); MatrixFixed Prr = threed_motion_model.get_dr_by_dxpRES() * Pxpxp * threed_motion_model.get_dr_by_dxpRES().Transpose(); DrawCameraCovariance(threedtool, local_r, Prr); } if (display_camera_trajectory_flag) { DrawCameraTrajectory(threedtool, trajectory_store); } if (display_3d_features_flag || display_3d_feature_uncertainties_flag) { Feature it; for (int i = 0; i < scene.get_feature_list().Count; i++) { it = (Feature)scene.get_feature_list()[i]; it.get_feature_measurement_model().func_yigraphics_and_Pyiyigraphics(it.get_y(), it.get_Pyy()); SetFeatureColour( threedtool, it.get_selected_flag(), it.get_successful_measurement_flag(), scene.get_marked_feature_label() == (int)(it.get_label())); if (display_3d_features_flag) { if (it.get_feature_measurement_model().feature_graphics_type == "THREED_POINT") { DrawEstimatedPoint(threedtool, it.get_feature_measurement_model().get_yigraphicsRES(), it.get_label() + 1); } else if (it.get_feature_measurement_model().feature_graphics_type == "THREED_SEMI_INFINITE_LINE") { DrawEstimatedSemiInfiniteLine(threedtool, it.get_feature_measurement_model().get_yigraphicsRES(), Camera_Constants.SEMI_INFINITE_LINE_LENGTH, it.get_label() + 1); } } if (display_3d_feature_uncertainties_flag) { if (it.get_feature_measurement_model().feature_graphics_type == "THREED_POINT") { DrawPointCovariance(threedtool, it.get_feature_measurement_model().get_yigraphicsRES(), it.get_feature_measurement_model().get_PyiyigraphicsRES(), it.get_label() + 1); } } } } if (display_axes_flag) { DrawAxes(threedtool); } if (display_annotations_flag) { DrawAnnotations(threedtool); } } public void RectifiedInternal3DDraw(Scene_Single scene, ThreeDToolGLCommon threedtool, ArrayList trajectory_store, classimage grabbed_image, float Graphics_U0, float Graphics_V0, float Graphics_Kd1, // Radial distortion bool display_camera_flag, bool display_camera_trajectory_flag, bool display_3d_features_flag, bool display_3d_feature_uncertainties_flag, bool display_axes_flag, bool display_annotations_flag, bool display_rectified_image_flag) { ThreeD_Motion_Model* threed_motion_model = (ThreeD_Motion_Model)scene.get_motion_model(); Vector3D r_local = threed_motion_model.get_rRES(); Quaternion qWR = threed_motion_model.get_qRES(); Quaternion qWO = qWR * qRO; if (display_camera_flag) { threed_motion_model.func_xp(scene.get_xv()); threed_motion_model.func_r(threed_motion_model.get_xpRES()); threed_motion_model.func_q(threed_motion_model.get_xpRES()); DrawCamera(threedtool, r_local, qWO); } if (display_camera_trajectory_flag) { DrawCameraTrajectory(threedtool, trajectory_store); } if (display_3d_features_flag || display_3d_feature_uncertainties_flag) { threedtool.PushDrawingPosition(); threedtool.TranslateDrawingPosition(r_local); threedtool.RotateDrawingPosition(qWR); Feature it; for (int i = 0; i < scene.get_feature_list().Count; i++) { it = (Feature)scene.get_feature_list()[i]; Feature_Measurement_Model fmm = it.get_feature_measurement_model(); SetFeatureColour(threedtool, it.get_selected_flag(), it.get_successful_measurement_flag(), scene.get_marked_feature_label() == (int)(it.get_label())); // Form state and covariance for drawing fmm.func_zeroedyigraphics_and_Pzeroedyigraphics(it.get_y(), scene.get_xv(), scene.get_Pxx(), it.get_Pxy(), it.get_Pyy()); if (display_3d_features_flag) { if (fmm.feature_graphics_type == "THREED_POINT") { DrawEstimatedPoint(threedtool, fmm.get_zeroedyigraphicsRES(), it.get_label() + 1); } else if (fmm.feature_graphics_type == "THREED_SEMI_INFINITE_LINE") { DrawEstimatedSemiInfiniteLine(threedtool, fmm.get_zeroedyigraphicsRES(), Camera_Constants.SEMI_INFINITE_LINE_LENGTH, it.get_label() + 1); } } if (display_3d_feature_uncertainties_flag) { if (fmm.feature_graphics_type == "THREED_POINT") { // The covariance we draw is relative to the robot DrawPointCovariance(threedtool, fmm.get_zeroedyigraphicsRES(), fmm.get_PzeroedyigraphicsRES(), it.get_label() + 1); } // Note that we don't yet draw uncertainty on lines } } threedtool.PopDrawingPosition(); } if (display_axes_flag) { DrawAxes(threedtool); } if (display_annotations_flag) { DrawAnnotations(threedtool); } if (display_rectified_image_flag) { Point2D distortion_centre = new Point2D(Graphics_U0, Graphics_V0); threedtool.DrawCinemaScreen(100, grabbed_image, -Graphics_Kd1, distortion_centre); } } /// <summary> /// Draw the scene from the camera viewpoint, including the current image. /// The image is not rectified, so may not be from a perspective camera. /// </summary> /// <param name="scene">The SLAM map</param> /// <param name="threedtool">The GL viewer to use</param> /// <param name="grabbed_image">The current camera image</param> /// <param name="feature_init_info_vector">The vector of partially-initialised features. TODO: Why is this not grabbed from Scene?</param> /// <param name="display_2d_descriptors_flag">Draw the feature descriptors (e.g. the image patches)</param> /// <param name="display_2d_feature_search_regions_flag">Draw the feature search regions</param> /// <param name="display_2d_initialisation_search_box_flag">Draw the box displaying search region for new features</param> /// <param name="display_raw_image_flag">Draw the current image?</param> /// <param name="init_feature_search_region_defined_flag">Is there an automatic search region defined</param> /// <param name="BOXSIZE">What size are the feature patches?</param> /// <param name="location_selected_flag">Has the user selected a point?</param> /// <param name="uu">The current user-selected x-coordinate</param> /// <param name="vv">The current user-selected y-coordinate</param> /// <param name="init_feature_search_ustart">The x-start of the automatic search region</param> /// <param name="init_feature_search_vstart">The y-start of the automatic search region</param> /// <param name="init_feature_search_ufinish">The x-finish of the automatic search region</param> /// <param name="init_feature_search_vfinish">The y-finish of the automatic search region</param> public void RawInternal3DDraw(Scene_Single scene, ThreeDToolGLCommon threedtool, classimage grabbed_image, ArrayList feature_init_info_vector, bool display_2d_descriptors_flag, bool display_2d_feature_search_regions_flag, bool display_2d_initialisation_search_box_flag, bool display_raw_image_flag, bool init_feature_search_region_defined_flag, uint BOXSIZE, bool location_selected_flag, uint uu, uint vv, uint init_feature_search_ustart, uint init_feature_search_vstart, uint init_feature_search_ufinish, uint init_feature_search_vfinish) { // VW::Timer timerlocal; // cout << "RawInternal start: " << timerlocal << endl; Motion_Model motion_model = scene.get_motion_model(); motion_model.func_xp(scene.get_xv()); motion_model.func_dxp_by_dxv(scene.get_xv()); if (display_2d_descriptors_flag || display_2d_feature_search_regions_flag) { Feature it; for (int i = 0; i < scene.get_feature_list().Count; i++) { it = (Feature)scene.get_feature_list()[i]; SetFeatureColour(threedtool, it.get_selected_flag(), it.get_successful_measurement_flag(), scene.get_marked_feature_label() == (int)(it.get_label())); if (it.get_feature_measurement_model().feature_graphics_type == "THREED_POINT") { // Set up some general stuff for this feature Fully_Initialised_Feature_Measurement_Model fully_init_fmm = (Fully_Initialised_Feature_Measurement_Model)(it.get_feature_measurement_model()); fully_init_fmm.func_hi_and_dhi_by_dxp_and_dhi_by_dyi(it.get_y(), motion_model.get_xpRES()); fully_init_fmm.func_zeroedyigraphics_and_Pzeroedyigraphics(it.get_y(), scene.get_xv(), scene.get_Pxx(), it.get_Pxy(), it.get_Pyy()); // Only draw 2D stuff if z>0 (or we get some nasty loop-around // drawing of features behind the camera) if (fully_init_fmm->get_zeroedyigraphicsRES()[2] > 0) { // Draw search regions if (display_2d_feature_search_regions_flag) { if (it.get_selected_flag()) { Draw2DPointCovariance(threedtool, it.get_h(), it.get_S(), it.get_label() + 1); } } // Draw image patches if (display_2d_descriptors_flag) { // We know that our descriptors are image patches ExtraData feature_data = it.get_identifier(); ImageMonoExtraData patch_ptr = (ImageMonoExtraData)feature_data; // Where to draw the patches? float draw_patch_x = -1, draw_patch_y = -1; if (it.get_selected_flag() && it.get_successful_measurement_flag()) { // If we just successfully matched this feature, // then draw match position draw_patch_x = it.get_z()[0]; draw_patch_y = it.get_z()[1]; } else { // Otherwise current estimated position after update draw_patch_x = fully_init_fmm.get_hiRES()[0]; draw_patch_y = fully_init_fmm.get_hiRES()[1]; } Draw2DPatch(threedtool, draw_patch_x, draw_patch_y, BOXSIZE, patch_ptr, it.get_label() + 1); } } } else if (it.get_feature_measurement_model().feature_graphics_type == "THREED_SEMI_INFINITE_LINE") { if (display_2d_feature_search_regions_flag) { Draw2DPartiallyInitialisedLineEllipses(scene, threedtool, feature_init_info_vector, it); } } } } // cout << "RawInternal after drawing features: " << timerlocal << endl; if (display_2d_initialisation_search_box_flag) { Draw2DInitialisationBoxes(threedtool, location_selected_flag, init_feature_search_region_defined_flag, uu, vv, init_feature_search_ustart, init_feature_search_vstart, init_feature_search_ufinish, init_feature_search_vfinish, BOXSIZE); } if (display_raw_image_flag) { threedtool.DrawCinemaScreen(100, grabbed_image); } // cout << "RawInternal end: " << timerlocal << endl; } /// <summary> /// Draw a representation of a Fire-i camera. /// </summary> /// <param name="threedtool">The GL viewer</param> /// <param name="rW">The position</param> /// <param name="qWO">The orientation quaternion</param> public void DrawCamera(ThreeDToolGLCommon threedtool, Vector3D rW, Quaternion qWO) { threedtool.SetPenColour(120, 120, 120, 0); DrawFireI(threedtool, rW, qWO); } public void DrawCameraCovariance(ThreeDToolGLCommon threedtool, Vector3D rW, MatrixFixed Prr) { threedtool.SetPenColour(0, 120, 120, 0); threedtool.DrawCovariance(rW, Prr, COVARIANCES_NUMBER_OF_SIGMA); } /// <summary> /// Draw a trajectory. /// </summary> /// <param name="threedtool">The GL viewer</param> /// <param name="trajectory_store">The list of points on the trajectory</param> public void DrawCameraTrajectory(ThreeDToolGLCommon threedtool, ArrayList trajectory_store) { threedtool.SetPenColour(255, 255, 0, 0); if (trajectory_store.size() >= 2) { Vector it, previous = null; for (int i = 1; i < trajectory_store.Count; i++) { it = (Vector)trajectory_store[i]; previous = (Vector)trajectory_store[i - 1]; threedtool.DrawLine(previous, it); } } } public void SetFeatureColour(ThreeDToolGLCommon threedtool, bool selected_flag, bool successful_measurement_flag, bool marked_flag) { if (marked_flag) { // Marked feature green threedtool.SetPenColour(0, 255, 0, 0); } else { if (selected_flag) { if (successful_measurement_flag) // Successfully measured feature red threedtool.SetPenColour(255, 0, 0, 0); else // Failed measured feature blue threedtool.SetPenColour(0, 0, 255, 0); } else { // Unselected feature yellow threedtool.SetPenColour(255, 255, 0, 0); } } } public void DrawEstimatedPoint(ThreeDToolGLCommon threedtool, Vector yigraphics, uint name_to_draw) { threedtool.DrawPoint(yigraphics, name_to_draw); } // Draw the uncertainty ellipsoid around a point public void DrawPointCovariance(ThreeDToolGLCommon threedtool, Vector yigraphics, MatrixFixed Pyiyigraphics, uint name_to_draw) { threedtool.DrawCovariance(yigraphics, Pyiyigraphics, COVARIANCES_NUMBER_OF_SIGMA, name_to_draw); } public void DrawEstimatedSemiInfiniteLine(ThreeDToolGLCommon t, Vector yigraphics, float line_length, uint name_to_draw) { // Semi-infinite line representation is end point and normalised // direction vector yigraphics = (x, y, z, hhatx, hhaty, hhatz) // Since we aren't really going to draw a semi-infinite line, // draw it some length Vector3D y0 = new Vector3D(yigraphics[0], yigraphics[1], yigraphics[2]); Vector3D hhat = new Vector3D(yigraphics[3], yigraphics[4], yigraphics[5]); Vector3D y1 = y0 + hhat * line_length; // Draw line with raw GL to avoid including it in rotation centre glLoadName(name_to_draw); glDisable(GL_LIGHT0); glDisable(GL_LIGHTING); glBegin(GL_LINE_STRIP); glVertex3d(y0.GetX(), y0.GetY(), y0.GetZ()); glVertex3d(y1.GetX(), y1.GetY(), y1.GetZ()); glEnd(); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glLoadName(0); } public void DrawAxes(ThreeDToolGLCommon threedtool) { threedtool.SetPenColour(255, 255, 255, 0); threedtool.DrawAxes(); } public void DrawAnnotations(ThreeDToolGLCommon t) { } public void Draw2DPointCovariance(ThreeDToolGLCommon threedtool, Vector h, MatrixFixed S, uint name_to_draw) { threedtool.Draw2DCovariance(h[0], h[1], S, COVARIANCES_NUMBER_OF_SIGMA, 1.0f, name_to_draw); } public void Draw2DPatch(ThreeDToolGLCommon threedtool, float draw_patch_x, float draw_patch_y, uint BOXSIZE, classimage patch, uint name_to_draw) { threedtool.Draw2DTexturedRectangle(draw_patch_x, draw_patch_y, BOXSIZE, BOXSIZE, patch, name_to_draw); threedtool.Draw2DRectangle(draw_patch_x, draw_patch_y, BOXSIZE + 2, BOXSIZE + 2, name_to_draw); } /// <summary> /// Draw the search box for new features. /// </summary> /// <param name="threedtool">The GL viewer</param> /// <param name="location_selected_flag">Has the user selected a new feature?</param> /// <param name="init_feature_search_region_defined_flag">Is there an automatic search region defined</param> /// <param name="uu">The current user-selected x-coordinate</param> /// <param name="vv">The current user-selected y-coordinate</param> /// <param name="init_feature_search_ustart">The x-start of the automatic search region</param> /// <param name="init_feature_search_vstart">The y-start of the automatic search region</param> /// <param name="init_feature_search_ufinish">The x-finish of the automatic search region</param> /// <param name="init_feature_search_vfinish">The y-finish of the automatic search region</param> /// <param name="BOXSIZE"></param> public void Draw2DInitialisationBoxes(ThreeDToolGLCommon threedtool, bool location_selected_flag, bool init_feature_search_region_defined_flag, uint uu, uint vv, uint init_feature_search_ustart, uint init_feature_search_vstart, uint init_feature_search_ufinish, uint init_feature_search_vfinish, uint BOXSIZE) { threedtool.SetPenColour(0, 255, 0, 0); // Draw box selected by user if (location_selected_flag) { threedtool.Draw2DRectangle(uu, vv, BOXSIZE, BOXSIZE); } // Draw initialisation box if (init_feature_search_region_defined_flag) { threedtool.Draw2DRectangle( (init_feature_search_ustart + init_feature_search_ufinish) / 2.0f, (init_feature_search_vstart + init_feature_search_vfinish) / 2.0f, init_feature_search_ufinish - init_feature_search_ustart, init_feature_search_vfinish - init_feature_search_vstart); } } /// <summary> /// Draw a partially-initialised feature into a GL display as a series of ellipses. /// This steps through the particles representing different values for the free /// parameters and draws ellipses representing. Not every particle is drawn: only /// every n are drawn, determined by the constant DRAW_N_OVERLAPPING_ELLIPSE (a /// value of zero for this means draw every particle). The ellipses represent the /// number of standard deviations set by COVARIANCES_NUMBER_OF_SIGMA. /// </summary> /// <param name="scene">The SLAM map to use</param> /// <param name="threedtool">The GL display to draw to</param> /// <param name="feature_init_info_vector">The partially-initialised features (TODO: Why is this not just taken from scene?)</param> /// <param name="fp">The particular feature to draw</param> public void Draw2DPartiallyInitialisedLineEllipses(Scene_Single scene, ThreeDToolGLCommon threedtool, ArrayList feature_init_info_vector, Feature fp) { // Find this particular feature in the list of information about // partially-initalised features. int i; FeatureInitInfo feat; for (i = 0; i < feature_init_info_vector.Count; i++) { feat = (FeatureInitInfo)feature_init_info_vector[i]; if (feat.get_fp() == fp) break; } //assert (feat->get_fp() == fp); // Counter so we only draw every Nth ellipse uint draw_counter = 1; // Loop over different values of depth (lambda) to draw some ellipses // First see how many to skip when drawing? uint particles_step; if (Camera_Constants.DRAW_N_OVERLAPPING_ELLIPSES != 0) particles_step = max(feat.get_particle_vector().size() / Camera_Constants.DRAW_N_OVERLAPPING_ELLIPSES, FeatureInitInfo.ParticleVector.size_type(1)); else particles_step = 1; Particle it; for (i = 0; i < feat.get_particle_vector().Count; i++) { it = (Particle)feat.get_particle_vector[i]; if (draw_counter != particles_step) { draw_counter++; } else { draw_counter = 1; scene.get_motion_model().func_xp(scene.get_xv()); Vector lambda_vector = it.get_lambda(); Partially_Initialised_Feature_Measurement_Model partial_init_fmm = (Partially_Initialised_Feature_Measurement_Model)(fp.get_feature_measurement_model()); partial_init_fmm.func_hpi_and_dhpi_by_dxp_and_dhpi_by_dyi(fp.get_y(), scene.get_motion_model().get_xpRES(), lambda_vector); Vector local_hpi = partial_init_fmm.get_hpiRES(); MatrixFixed local_dhpi_by_dyi = partial_init_fmm.get_dhpi_by_dyiRES(); scene.get_motion_model().func_dxp_by_dxv(scene.get_xv()); MatrixFixed local_dhpi_by_dxv = partial_init_fmm->get_dhpi_by_dxpRES() * scene.get_motion_model().get_dxp_by_dxvRES(); fp.get_feature_measurement_model().func_Ri(local_hpi); MatrixFixed local_Ri = fp.get_feature_measurement_model().get_RiRES(); fp.get_feature_measurement_model().func_Si(scene.get_Pxx(), fp.get_Pxy(), fp.get_Pyy(), local_dhpi_by_dxv, local_dhpi_by_dyi, local_Ri); // Draw ellipses with brightness determined by probability threedtool.SetPenColour(255, 255, 0, 0); threedtool.Draw2DCovariance(local_hpi[0], local_hpi[1], fp.get_feature_measurement_model().get_SiRES(), COVARIANCES_NUMBER_OF_SIGMA, 1.0f); //cerr << "Particle: "; //MatlabPrint(cerr, local_hpi); cerr << endl; //MatlabPrint(cerr, fp->get_feature_measurement_model()->get_SiRES()); } } } /// <summary> /// Draw a the particles of a partially-initialised feature into a GL display as a /// line of spheres. This steps through the particles representing different /// values for the free parameters and draws a sphere for each particle, scaled /// according to its probability. Not every particle is drawn: only every nth is /// drawn, determined by the parameter draw_every_n. This function is slow - don't /// use it in real-time operation! /// </summary> /// <param name="scene">The SLAM map to use</param> /// <param name="threedtool">The GL display to draw to</param> /// <param name="feature_init_info_vector">The partially-initialised features (TODO: Why is this not just taken from scene?)</param> /// <param name="fp">The particular feature to draw</param> /// <param name="draw_every_n">The number of particles to skip on before drawing the next one.</param> public void Draw3DPartiallyInitialisedLineParticles( Scene_Single scene, ThreeDToolGLCommon threedtool, ArrayList feature_init_info_vector, Feature fp, uint draw_every_n) { // Find this particular feature in the list of information about // partially-initalised features. int i; FeatureInitInfo feat; for (i = 0; i < feature_init_info_vector.Count; i++) { feat = (FeatureInitInfo)feature_init_info_vector[i]; if (feat.get_fp() == fp) break; } //assert (feat->get_fp() == fp); // Counter so we only draw every Nth ellipse uint draw_counter = 1; // Loop over different values of depth (lambda) to draw some ellipses Particle it; for (i = 0; i < feat.get_particle_vector().Count; i++) { it = (Particle)feat.get_particle_vector()[i]; if (draw_counter != draw_every_n) { draw_counter++; } else { draw_counter = 1; scene.get_motion_model().func_xp(scene.get_xv()); Vector lambda_vector = it.get_lambda(); Partially_Initialised_Feature_Measurement_Model partial_init_fmm = (Partially_Initialised_Feature_Measurement_Model)(fp.get_feature_measurement_model()); //assert(partial_init_fmm != 0); // What is this particle as a fully-ionitialised feature? partial_init_fmm.func_yfi_and_dyfi_by_dypi_and_dyfi_by_dlambda(fp.get_y(), lambda_vector); Vector yfi = partial_init_fmm.get_yfiRES(); threedtool.SetPenColour(128, 255, 0, 0); threedtool.DrawSphere(yfi, it->get_probability()); } } } } */ }
bashrc/sentience
applications/surveyor/monoslam/threeDdraw.cs
C#
gpl-3.0
36,658
[ 30522, 1013, 1008, 18847, 14540, 3286, 1024, 1037, 4432, 2241, 9555, 2565, 2241, 2588, 3496, 29521, 1010, 2011, 4080, 4482, 2239, 1006, 8299, 1024, 1013, 1013, 7479, 1012, 9986, 1012, 24582, 1012, 9353, 1012, 2866, 1013, 1066, 19128, 2094, 1007, 9385, 1006, 1039, 1007, 2294, 3960, 9587, 4779, 6444, 2023, 3075, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 30524, 2544, 1012, 2023, 3075, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 8276, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2247, 2007, 2023, 3075, 1025, 2065, 2025, 1010, 4339, 2000, 1996, 2489, 3192, 1010, 4297, 1012, 1010, 5354, 3379, 2173, 1010, 7621, 14210, 1010, 3731, 1010, 5003, 6185, 14526, 2487, 1011, 7558, 2581, 3915, 1008, 1013, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 2478, 2291, 1012, 3793, 1025, 2478, 3496, 29521, 19848, 2100, 1025, 3415, 15327, 18847, 14540, 3286, 1063, 1013, 1008, 2270, 2465, 2093, 14141, 2527, 2860, 1063, 1013, 1013, 1053, 1999, 2110, 9207, 2003, 1053, 13088, 2090, 2088, 4853, 1998, 3496, 8957, 4853, 1013, 1013, 2054, 2057, 2342, 2000, 5436, 2295, 3594, 1043, 2140, 4874, 4853, 1051, 1013, 1013, 2113, 1053, 3217, 1024, 14255, 9963, 2055, 1061, 8123, 1013, 1013, 1053, 12155, 1027, 1053, 13088, 1008, 1053, 3217, 2270, 24209, 24932, 27678, 2078, 1053, 3217, 1027, 2047, 24209, 24932, 27678, 2078, 1006, 1014, 1012, 1014, 2546, 1010, 1015, 1012, 1014, 2546, 1010, 1014, 1012, 1014, 2546, 1010, 1014, 1012, 1014, 2546, 1007, 1025, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 4009, 3496, 2013, 6327, 2391, 1997, 3193, 26726, 1035, 4009, 1012, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 3496, 1000, 1028, 1996, 9555, 4949, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 2093, 11927, 13669, 1000, 1028, 1996, 1043, 2140, 13972, 2000, 2224, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 22793, 1035, 3573, 1000, 1028, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 4653, 1035, 4950, 1035, 5210, 1000, 1028, 4009, 1996, 4950, 1029, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 4653, 1035, 4950, 1035, 12503, 1035, 5210, 1000, 1028, 4009, 1996, 4950, 12503, 1029, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 4653, 1035, 4950, 1035, 22793, 1035, 5210, 1000, 1028, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 30523, 1996, 3408, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2004, 2405, 2011, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1996, 3408, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1025, 2593, 2544, 1016, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 30526 ]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- Created by texi2html, http://www.gnu.org/software/texinfo/ --> <head> <title>Top</title> <meta name="description" content="Top"> <meta name="keywords" content="Top"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2html"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> <!-- a.summary-letter {text-decoration: none} blockquote.smallquotation {font-size: smaller} div.display {margin-left: 3.2em} div.example {margin-left: 3.2em} div.lisp {margin-left: 3.2em} div.smalldisplay {margin-left: 3.2em} div.smallexample {margin-left: 3.2em} div.smalllisp {margin-left: 3.2em} pre.display {font-family: serif} pre.format {font-family: serif} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} pre.smalldisplay {font-family: serif; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: serif; font-size: smaller} pre.smalllisp {font-size: smaller} span.nocodebreak {white-space:pre} span.nolinebreak {white-space:pre} span.roman {font-family:serif; font-weight:normal} span.sansserif {font-family:sans-serif; font-weight:normal} ul.no-bullet {list-style: none} --> </style> </head> <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <a name="first-before-top"></a> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[ &lt;&lt; ]</td> <td valign="middle" align="left">[ &lt; ]</td> <td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td> <td valign="middle" align="left">[<a href="#Top" title="Next section in reading order"> &gt; </a>]</td> <td valign="middle" align="left">[<a href="#Top" title="Next chapter"> &gt;&gt; </a>]</td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[Contents]</td> <td valign="middle" align="left">[<a href="#index" title="Index">Index</a>]</td> <td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <a name="index-first-before-top"></a> <a name="second-before-top"></a> <a name="Unnumbered-before-top"></a> <h1 class="unnumbered">Unnumbered before top</h1> <hr size="6"> <a name="Top"></a> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="#second-before-top" title="Previous section in reading order"> &lt; </a>]</td> <td valign="middle" align="left">[<a href="#index" title="Next section in reading order"> &gt; </a>]</td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left">[Contents]</td> <td valign="middle" align="left">[<a href="#index" title="Index">Index</a>]</td> <td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <a name="Top-1"></a> <h1 class="top">Top</h1> <table class="menu" border="0" cellspacing="0"> <tr><td align="left" valign="top">&bull; <a href="#first-before-top">first before top</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> </td></tr> <tr><td align="left" valign="top"><a href="#second-before-top">Unnumbered before top</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> </td></tr> <tr><td align="left" valign="top"><a href="#index">Appendix A Concept index</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> </td></tr> <tr><td align="left" valign="top"><a href="#after-index">Appendix B second appendix</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> </td></tr> <tr><td align="left" valign="top">&bull; <a href="#after-index-node">after index node</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> </td></tr> </table> <hr size="6"> <a name="index"></a> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="#Top" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td> <td valign="middle" align="left">[<a href="#Top" title="Previous section in reading order"> &lt; </a>]</td> <td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td> <td valign="middle" align="left">[<a href="#after-index" title="Next section in reading order"> &gt; </a>]</td> <td valign="middle" align="left">[<a href="#after-index" title="Next chapter"> &gt;&gt; </a>]</td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[Contents]</td> <td valign="middle" align="left">[<a href="#index" title="Index">Index</a>]</td> <td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <a name="Concept-index"></a> <h1 class="appendix">Appendix A Concept index</h1> <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Concept-index_cp_letter-A"><b>A</b></a> &nbsp; <a class="summary-letter" href="#Concept-index_cp_letter-F"><b>F</b></a> &nbsp; </td></tr></table> <table class="index-cp" border="0"> <tr><td></td><th align="left">Index Entry</th><td>&nbsp;</td><th align="left"> Section</th></tr> <tr><td colspan="4"> <hr></td></tr> <tr><th><a name="Concept-index_cp_letter-A">A</a></th><td></td><td></td></tr> <tr><td></td><td valign="top"><a href="#index-after-index">after index</a></td><td>&nbsp;</td><td valign="top"><a href="#after-index">Appendix B second appendix</a></td></tr> <tr><td></td><td valign="top"><a href="#index-after-index-node">after index node</a></td><td>&nbsp;</td><td valign="top"><a href="#after-index">Appendix B second appendix</a></td></tr> <tr><td colspan="4"> <hr></td></tr> <tr><th><a name="Concept-index_cp_letter-F">F</a></th><td></td><td></td></tr> <tr><td></td><td valign="top"><a href="#index-first-before-top">first before top</a></td><td>&nbsp;</td><td valign="top"><a href="#second-before-top">Unnumbered before top</a></td></tr> <tr><td colspan="4"> <hr></td></tr> </table> <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Concept-index_cp_letter-A"><b>A</b></a> &nbsp; <a class="summary-letter" href="#Concept-index_cp_letter-F"><b>F</b></a> &nbsp; </td></tr></table> <hr> <a name="after-index"></a> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="#index" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td> <td valign="middle" align="left">[<a href="#index" title="Previous section in reading order"> &lt; </a>]</td> <td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td> <td valign="middle" align="left">[ &gt; ]</td> <td valign="middle" align="left">[ &gt;&gt; ]</td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left"> &nbsp; </td> <td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[Contents]</td> <td valign="middle" align="left">[<a href="#index" title="Index">Index</a>]</td> <td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <a name="second-appendix"></a> <h1 class="appendix">Appendix B second appendix</h1> <a name="index-after-index"></a> <a name="after-index-node"></a> <a name="index-after-index-node"></a> <hr size="6"> <a name="SEC_About"></a> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[Contents]</td> <td valign="middle" align="left">[<a href="#index" title="Index">Index</a>]</td> <td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <h1>About This Document</h1> <p> This document was generated on <em>a sunny day</em> using <a href="http://www.gnu.org/software/texinfo/"><em>texi2html</em></a>. </p> <p> The buttons in the navigation panels have the following meaning: </p> <table border="1"> <tr> <th> Button </th> <th> Name </th> <th> Go to </th> <th> From 1.2.3 go to</th> </tr> <tr> <td align="center"> [ &lt;&lt; ] </td> <td align="center">FastBack</td> <td>Beginning of this chapter or previous chapter</td> <td>1</td> </tr> <tr> <td align="center"> [ &lt; ] </td> <td align="center">Back</td> <td>Previous section in reading order</td> <td>1.2.2</td> </tr> <tr> <td align="center"> [ Up ] </td> <td align="center">Up</td> <td>Up section</td> <td>1.2</td> </tr> <tr> <td align="center"> [ &gt; ] </td> <td align="center">Forward</td> <td>Next section in reading order</td> <td>1.2.4</td> </tr> <tr> <td align="center"> [ &gt;&gt; ] </td> <td align="center">FastForward</td> <td>Next chapter</td> <td>2</td> </tr> <tr> <td align="center"> [Top] </td> <td align="center">Top</td> <td>Cover (top) of document</td> <td> &nbsp; </td> </tr> <tr> <td align="center"> [Contents] </td> <td align="center">Contents</td> <td>Table of contents</td> <td> &nbsp; </td> </tr> <tr> <td align="center"> [Index] </td> <td align="center">Index</td> <td>Index</td> <td> &nbsp; </td> </tr> <tr> <td align="center"> [ ? ] </td> <td align="center">About</td> <td>About (help)</td> <td> &nbsp; </td> </tr> </table> <p> where the <strong> Example </strong> assumes that the current position is at <strong> Subsubsection One-Two-Three </strong> of a document of the following structure: </p> <ul> <li> 1. Section One <ul> <li>1.1 Subsection One-One <ul> <li>...</li> </ul> </li> <li>1.2 Subsection One-Two <ul> <li>1.2.1 Subsubsection One-Two-One</li> <li>1.2.2 Subsubsection One-Two-Two</li> <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp; <strong>&lt;== Current Position </strong></li> <li>1.2.4 Subsubsection One-Two-Four</li> </ul> </li> <li>1.3 Subsection One-Three <ul> <li>...</li> </ul> </li> <li>1.4 Subsection One-Four</li> </ul> </li> </ul> <hr> <p> <font size="-1"> This document was generated on <em>a sunny day</em> using <a href="http://www.gnu.org/software/texinfo/"><em>texi2html</em></a>. </font> <br> </p> </body> </html>
cgwalters/texinfo-git-mirror
texi2html/test/sectioning/res/section_nodes_before_top/section_nodes_before_top.html
HTML
gpl-3.0
11,124
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 16129, 1018, 1012, 5890, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 19817, 1013, 16129, 2549, 1013, 6065, 1012, 26718, 2094, 1000, 1028, 1026, 16129, 1028, 1026, 999, 1011, 1011, 2580, 2011, 16060, 2072, 2475, 11039, 19968, 1010, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 30524, 1028, 1026, 18804, 2171, 1027, 1000, 7692, 1011, 2828, 1000, 4180, 1027, 1000, 6254, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 4353, 1000, 4180, 1027, 1000, 3795, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 13103, 1000, 4180, 1027, 1000, 16060, 2072, 2475, 11039, 19968, 1000, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 2806, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 1028, 1026, 999, 1011, 1011, 1037, 1012, 12654, 1011, 3661, 1063, 3793, 1011, 11446, 1024, 3904, 1065, 3796, 28940, 12184, 1012, 2235, 28940, 17287, 3508, 1063, 15489, 1011, 2946, 1024, 3760, 1065, 4487, 2615, 1012, 4653, 1063, 7785, 1011, 2187, 1024, 1017, 1012, 1016, 6633, 1065, 4487, 2615, 1012, 2742, 1063, 7785, 1011, 2187, 1024, 1017, 1012, 1016, 6633, 1065, 4487, 2615, 1012, 5622, 13102, 1063, 7785, 1011, 2187, 1024, 1017, 1012, 1016, 6633, 1065, 4487, 2615, 1012, 2235, 10521, 13068, 1063, 7785, 1011, 2187, 1024, 1017, 1012, 1016, 6633, 1065, 4487, 2615, 1012, 2235, 10288, 16613, 2571, 1063, 7785, 1011, 2187, 1024, 1017, 1012, 1016, 6633, 1065, 4487, 2615, 1012, 2235, 6856, 2361, 1063, 7785, 1011, 2187, 1024, 1017, 1012, 1016, 6633, 1065, 3653, 1012, 4653, 1063, 15489, 1011, 2155, 1024, 14262, 10128, 1065, 3653, 1012, 4289, 1063, 15489, 1011, 2155, 1024, 14262, 10128, 1065, 3653, 1012, 12183, 1011, 7615, 1063, 15489, 1011, 2155, 1024, 14262, 10128, 1065, 3653, 1012, 12183, 1011, 3653, 14192, 19321, 2098, 1063, 15489, 1011, 2155, 1024, 14262, 10128, 1065, 3653, 1012, 2235, 10521, 13068, 1063, 15489, 1011, 2155, 1024, 14262, 10128, 1025, 15489, 1011, 2946, 1024, 3760, 1065, 3653, 1012, 2235, 10288, 16613, 2571, 1063, 15489, 1011, 2946, 1024, 3760, 1065, 3653, 1012, 2235, 14192, 4017, 1063, 15489, 1011, 2155, 1024, 14262, 10128, 1025, 15489, 1011, 2946, 1024, 3760, 1065, 3653, 1012, 2235, 6856, 2361, 1063, 15489, 1011, 2946, 1024, 3760, 1065, 8487, 1012, 2053, 16044, 23890, 1063, 2317, 1011, 2686, 1024, 3653, 1065, 8487, 1012, 2053, 4179, 23890, 1063, 2317, 1011, 2686, 1024, 3653, 1065, 8487, 1012, 3142, 1063, 15489, 1011, 2155, 1024, 14262, 10128, 1025, 15489, 1011, 3635, 1024, 3671, 1065, 8487, 1012, 20344, 8043, 10128, 1063, 15489, 1011, 2155, 1024, 20344, 1011, 14262, 10128, 30523, 1013, 4007, 1013, 16060, 2378, 14876, 1013, 1011, 1011, 1028, 1026, 2132, 1028, 1026, 2516, 1028, 2327, 1026, 1013, 2516, 1028, 1026, 18804, 2171, 1027, 1000, 6412, 1000, 4180, 1027, 1000, 2327, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 3145, 22104, 1000, 4180, 1027, 1000, 2327, 1000, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 4007, 1013, 16060, 2378, 14876, 1013, 1011, 1011, 1028, 1026, 2132, 1028, 1026, 2516, 1028, 2327, 1026, 1013, 2516, 1028, 1026, 18804, 2171, 1027, 1000, 6412, 1000, 4180, 1027, 1000, 2327, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 3145, 22104, 1000, 4180, 1027, 1000, 2327, 1000, 30526 ]
package it.unimi.di.big.mg4j.query; /* * MG4J: Managing Gigabytes for Java (big) * * Copyright (C) 2005-2015 Sebastiano Vigna * * 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 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/>. * */ import it.unimi.di.big.mg4j.document.Document; import it.unimi.di.big.mg4j.document.DocumentCollection; import it.unimi.di.big.mg4j.document.DocumentFactory; import it.unimi.di.big.mg4j.document.DocumentFactory.FieldType; import it.unimi.dsi.fastutil.objects.ObjectArrayList; import java.io.FileNotFoundException; import java.io.IOException; import java.io.Reader; import javax.servlet.ServletConfig; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.collections.ExtendedProperties; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringEscapeUtils; import org.apache.velocity.Template; import org.apache.velocity.context.Context; import org.apache.velocity.tools.view.servlet.VelocityViewServlet; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** An generic item, displaying all document fields. * * <P>This kind of {@link it.unimi.di.big.mg4j.query.QueryServlet} item will display each field * of a document inside a <samp>FIELDSET</samp> element. It is mainly useful for debugging purposes. */ public class GenericItem extends VelocityViewServlet { private static final long serialVersionUID = 1L; private static final Logger LOGGER = LoggerFactory.getLogger( GenericItem.class ); @Override protected ExtendedProperties loadConfiguration( final ServletConfig config ) throws FileNotFoundException, IOException { return HttpQueryServer.setLiberalResourceLoading( super.loadConfiguration( config ) ); } public Template handleRequest( final HttpServletRequest request, final HttpServletResponse response, final Context context ) throws Exception { if ( request.getParameter( "doc" ) != null ) { DocumentCollection collection = (DocumentCollection)getServletContext().getAttribute( "collection" ); response.setContentType( request.getParameter( "m" ) ); response.setCharacterEncoding( "UTF-8" ); final Document document = collection.document( Long.parseLong( request.getParameter( "doc" ) ) ); final DocumentFactory factory = collection.factory(); final ObjectArrayList<String> fields = new ObjectArrayList<String>(); final int numberOfFields = factory.numberOfFields(); LOGGER.debug( "ParsingFactory declares " + numberOfFields + " fields" ); for( int field = 0; field < numberOfFields; field++ ) { if ( factory.fieldType( field ) != FieldType.TEXT ) fields.add( StringEscapeUtils.escapeHtml( document.content( field ).toString() ) ); else fields.add( StringEscapeUtils.escapeHtml( IOUtils.toString( (Reader)document.content( field ) ) ).replaceAll( "\n", "<br>\n" ) ); } context.put( "title", document.title() ); context.put( "fields", fields ); context.put( "factory", factory ); return getTemplate( "it/unimi/dsi/mg4j/query/generic.velocity" ); } return null; } }
JC-R/mg4j
src/it/unimi/di/big/mg4j/query/GenericItem.java
Java
gpl-3.0
3,657
[ 30522, 7427, 2009, 1012, 4895, 27605, 1012, 4487, 1012, 2502, 1012, 11460, 2549, 3501, 1012, 23032, 1025, 1013, 1008, 1008, 11460, 2549, 3501, 1024, 6605, 15453, 21275, 4570, 2005, 9262, 1006, 2502, 1007, 1008, 1008, 9385, 1006, 1039, 1007, 2384, 1011, 2325, 6417, 2080, 6819, 16989, 1008, 1008, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 1008, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 2489, 1008, 4007, 3192, 1025, 2593, 2544, 1017, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 1008, 2151, 2101, 2544, 1012, 30524, 2022, 6179, 1010, 2021, 1008, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 1008, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 2236, 2270, 6105, 1008, 2005, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 1008, 2247, 2007, 2023, 2565, 1025, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 1008, 1008, 1013, 12324, 2009, 1012, 4895, 27605, 1012, 4487, 1012, 2502, 1012, 11460, 2549, 3501, 1012, 6254, 1012, 6254, 1025, 12324, 2009, 1012, 4895, 27605, 1012, 4487, 1012, 2502, 1012, 11460, 2549, 3501, 1012, 6254, 1012, 6254, 26895, 18491, 1025, 12324, 2009, 1012, 4895, 27605, 1012, 4487, 1012, 2502, 1012, 11460, 2549, 3501, 1012, 6254, 1012, 6254, 21450, 1025, 12324, 2009, 1012, 4895, 27605, 1012, 4487, 1012, 2502, 1012, 11460, 2549, 3501, 1012, 6254, 1012, 6254, 21450, 1012, 2492, 13874, 1025, 12324, 2009, 1012, 4895, 27605, 1012, 16233, 2072, 1012, 3435, 21823, 2140, 1012, 5200, 1012, 4874, 2906, 9447, 9863, 1025, 12324, 9262, 1012, 22834, 1012, 5371, 17048, 14876, 8630, 10288, 24422, 1025, 12324, 9262, 1012, 22834, 1012, 22834, 10288, 24422, 1025, 12324, 9262, 1012, 22834, 1012, 8068, 1025, 12324, 9262, 2595, 1012, 14262, 2615, 7485, 1012, 14262, 2615, 7485, 8663, 8873, 2290, 1025, 12324, 9262, 2595, 1012, 14262, 2615, 7485, 1012, 8299, 1012, 16770, 2121, 2615, 7485, 2890, 15500, 1025, 12324, 9262, 2595, 1012, 14262, 2615, 7485, 1012, 8299, 1012, 16770, 2121, 2615, 7485, 6072, 26029, 3366, 1025, 12324, 8917, 1012, 15895, 1012, 7674, 1012, 6407, 1012, 3668, 21572, 4842, 7368, 1025, 12324, 8917, 1012, 15895, 1012, 7674, 1012, 22834, 1012, 22834, 21823, 4877, 1025, 12324, 8917, 1012, 15895, 1012, 7674, 1012, 11374, 1012, 5164, 2229, 19464, 21823, 4877, 1025, 12324, 8917, 1012, 15895, 1012, 10146, 1012, 23561, 1025, 12324, 8917, 1012, 15895, 1012, 10146, 1012, 6123, 1012, 6123, 1025, 12324, 8917, 1012, 15895, 1012, 10146, 1012, 5906, 1012, 3193, 1012, 14262, 2615, 7485, 1012, 10146, 8584, 8043, 2615, 7485, 1025, 12324, 8917, 1012, 22889, 2546, 2549, 3501, 1012, 8833, 4590, 1025, 12324, 8917, 1012, 22889, 2546, 2549, 3501, 1012, 8833, 4590, 21450, 1025, 1013, 1008, 1008, 2019, 12391, 8875, 1010, 14962, 2035, 6254, 4249, 1012, 1008, 1008, 1026, 1052, 1028, 2023, 2785, 1997, 30523, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 30526 ]
# backports.functools_lru_cache v1.5 # https://github.com/jaraco/backports.functools_lru_cache # Copyright (c) 2014-2018 Jason R. Coombs # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. """Backport of functools.lru_cache from Python 3.3 as published at ActiveState""" from __future__ import absolute_import import functools from collections import namedtuple from threading import RLock _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) @functools.wraps(functools.update_wrapper) def update_wrapper(wrapper, wrapped, assigned = functools.WRAPPER_ASSIGNMENTS, updated = functools.WRAPPER_UPDATES): """ Patch two bugs in functools.update_wrapper. """ # workaround for http://bugs.python.org/issue3445 assigned = tuple(attr for attr in assigned if hasattr(wrapped, attr)) wrapper = functools.update_wrapper(wrapper, wrapped, assigned, updated) # workaround for https://bugs.python.org/issue17482 wrapper.__wrapped__ = wrapped return wrapper class _HashedSeq(list): __slots__ = 'hashvalue' def __init__(self, tup, hash=hash): self[:] = tup self.hashvalue = hash(tup) def __hash__(self): return self.hashvalue def _make_key(args, kwds, typed, kwd_mark=(object(),), fasttypes=set([int, str, frozenset, type(None)])): """Make a cache key from optionally typed positional and keyword arguments""" key = args if kwds: sorted_items = sorted(kwds.items()) key += kwd_mark for item in sorted_items: key += item if typed: key += tuple(type(v) for v in args) if kwds: key += tuple(type(v) for k, v in sorted_items) elif len(key) == 1 and type(key[0]) in fasttypes: return key[0] return _HashedSeq(key) def lru_cache(maxsize=100, typed=False): """Least-recently-used cache decorator. If *maxsize* is set to None, the LRU features are disabled and the cache can grow without bound. If *typed* is True, arguments of different types will be cached separately. For example, f(3.0) and f(3) will be treated as distinct calls with distinct results. Arguments to the cached function must be hashable. View the cache statistics named tuple (hits, misses, maxsize, currsize) with f.cache_info(). Clear the cache and statistics with f.cache_clear(). Access the underlying function with f.__wrapped__. See: http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used """ # Users should only access the lru_cache through its public API: # cache_info, cache_clear, and f.__wrapped__ # The internals of the lru_cache are encapsulated for thread safety and # to allow the implementation to change (including a possible C version). def decorating_function(user_function): cache = dict() stats = [0, 0] # make statistics updateable non-locally HITS, MISSES = 0, 1 # names for the stats fields make_key = _make_key cache_get = cache.get # bound method to lookup key or return None _len = len # localize the global len() function lock = RLock() # because linkedlist updates aren't threadsafe root = [] # root of the circular doubly linked list root[:] = [root, root, None, None] # initialize by pointing to self nonlocal_root = [root] # make updateable non-locally PREV, NEXT, KEY, RESULT = 0, 1, 2, 3 # names for the link fields if maxsize == 0: def wrapper(*args, **kwds): # no caching, just do a statistics update after a successful call result = user_function(*args, **kwds) stats[MISSES] += 1 return result elif maxsize is None: def wrapper(*args, **kwds): # simple caching without ordering or size limit key = make_key(args, kwds, typed) result = cache_get(key, root) # root used here as a unique not-found sentinel if result is not root: stats[HITS] += 1 return result result = user_function(*args, **kwds) cache[key] = result stats[MISSES] += 1 return result else: def wrapper(*args, **kwds): # size limited caching that tracks accesses by recency key = make_key(args, kwds, typed) if kwds or typed else args with lock: link = cache_get(key) if link is not None: # record recent use of the key by moving it to the front of the list root, = nonlocal_root link_prev, link_next, key, result = link link_prev[NEXT] = link_next link_next[PREV] = link_prev last = root[PREV] last[NEXT] = root[PREV] = link link[PREV] = last link[NEXT] = root stats[HITS] += 1 return result result = user_function(*args, **kwds) with lock: root, = nonlocal_root if key in cache: # getting here means that this same key was added to the # cache while the lock was released. since the link # update is already done, we need only return the # computed result and update the count of misses. pass elif _len(cache) >= maxsize: # use the old root to store the new key and result oldroot = root oldroot[KEY] = key oldroot[RESULT] = result # empty the oldest link and make it the new root root = nonlocal_root[0] = oldroot[NEXT] oldkey = root[KEY] root[KEY] = root[RESULT] = None # now update the cache dictionary for the new links del cache[oldkey] cache[key] = oldroot else: # put result in a new link at the front of the list last = root[PREV] link = [last, root, key, result] last[NEXT] = root[PREV] = cache[key] = link stats[MISSES] += 1 return result def cache_info(): """Report cache statistics""" with lock: return _CacheInfo(stats[HITS], stats[MISSES], maxsize, len(cache)) def cache_clear(): """Clear the cache and cache statistics""" with lock: cache.clear() root = nonlocal_root[0] root[:] = [root, root, None, None] stats[:] = [0, 0] wrapper.__wrapped__ = user_function wrapper.cache_info = cache_info wrapper.cache_clear = cache_clear return update_wrapper(wrapper, user_function) return decorating_function
orbingol/NURBS-Python
geomdl/functools_lru_cache.py
Python
mit
8,538
[ 30522, 1001, 2067, 25378, 1012, 4569, 6593, 13669, 2015, 1035, 1048, 6820, 1035, 17053, 1058, 2487, 1012, 1019, 1001, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 15723, 22684, 1013, 2067, 25378, 1012, 4569, 6593, 13669, 2015, 1035, 1048, 6820, 1035, 17053, 1001, 9385, 1006, 1039, 1007, 2297, 1011, 2760, 4463, 1054, 1012, 2522, 5358, 5910, 1001, 1001, 6656, 2003, 2182, 3762, 4379, 1010, 2489, 1997, 3715, 1010, 2000, 2151, 2711, 11381, 1037, 6100, 1001, 1997, 2023, 4007, 1998, 3378, 12653, 6764, 1006, 1996, 1000, 4007, 1000, 1007, 1010, 2000, 3066, 1001, 1999, 1996, 4007, 2302, 16840, 1010, 2164, 2302, 22718, 1996, 2916, 1001, 2000, 2224, 1010, 6100, 1010, 19933, 1010, 13590, 1010, 10172, 1010, 16062, 1010, 4942, 13231, 12325, 1010, 1998, 1013, 2030, 5271, 1001, 4809, 1997, 1996, 4007, 1010, 1998, 2000, 9146, 5381, 2000, 3183, 1996, 4007, 2003, 1001, 19851, 2000, 2079, 2061, 1010, 3395, 2000, 1996, 2206, 3785, 1024, 1001, 1001, 1996, 2682, 9385, 5060, 1998, 2023, 6656, 5060, 4618, 2022, 2443, 1999, 2035, 1001, 4809, 2030, 6937, 8810, 1997, 1996, 4007, 1012, 1001, 1001, 1996, 4007, 2003, 3024, 1000, 2004, 2003, 1000, 1010, 2302, 10943, 2100, 1997, 2151, 2785, 1010, 4671, 2030, 1001, 13339, 1010, 2164, 2021, 2025, 3132, 2000, 1996, 10943, 3111, 1997, 6432, 8010, 1010, 1001, 10516, 2005, 1037, 3327, 3800, 1998, 2512, 2378, 19699, 23496, 3672, 1012, 1999, 2053, 2724, 4618, 1996, 1001, 6048, 2030, 9385, 13304, 2022, 30524, 2102, 2030, 4728, 1010, 17707, 2013, 1010, 1001, 2041, 1997, 2030, 1999, 4434, 2007, 1996, 4007, 2030, 1996, 2224, 2030, 2060, 24069, 1999, 1996, 1001, 4007, 1012, 1000, 1000, 1000, 2067, 6442, 1997, 4569, 6593, 13669, 2015, 1012, 1048, 6820, 1035, 17053, 2013, 18750, 1017, 1012, 1017, 2004, 2405, 2012, 3161, 9153, 2618, 1000, 1000, 1000, 2013, 1035, 1035, 2925, 1035, 1035, 12324, 7619, 1035, 12324, 12324, 4569, 6593, 13669, 2015, 2013, 6407, 12324, 2315, 8525, 10814, 2013, 11689, 2075, 12324, 1054, 7878, 1035, 17053, 2378, 14876, 1027, 2315, 8525, 10814, 1006, 1000, 17053, 2378, 14876, 1000, 1010, 1031, 1000, 4978, 1000, 1010, 1000, 22182, 1000, 1010, 1000, 4098, 5332, 4371, 1000, 1010, 1000, 12731, 12171, 5332, 4371, 1000, 1033, 1007, 1030, 4569, 6593, 13669, 2015, 1012, 19735, 1006, 4569, 6593, 13669, 2015, 1012, 10651, 1035, 10236, 4842, 1007, 13366, 10651, 1035, 10236, 4842, 1006, 10236, 4842, 1010, 5058, 1010, 4137, 1027, 4569, 6593, 13669, 2015, 1012, 10236, 4842, 1035, 14799, 1010, 7172, 1027, 4569, 6593, 13669, 2015, 1012, 10236, 4842, 1035, 14409, 1007, 1024, 1000, 1000, 1000, 8983, 2048, 12883, 1999, 4569, 6593, 13669, 2015, 1012, 10651, 1035, 10236, 4842, 1012, 1000, 1000, 1000, 1001, 2147, 24490, 2005, 8299, 1024, 1013, 1013, 12883, 1012, 18750, 1012, 8917, 1013, 3277, 22022, 19961, 4137, 1027, 10722, 10814, 1006, 2012, 16344, 2005, 2012, 16344, 1999, 4137, 2065, 2038, 19321, 2099, 1006, 5058, 1010, 2012, 16344, 1007, 1007, 10236, 4842, 1027, 4569, 6593, 13669, 2015, 1012, 30523, 20090, 2005, 2151, 4366, 1010, 12394, 2030, 2060, 1001, 14000, 1010, 3251, 1999, 2019, 2895, 1997, 3206, 1010, 17153, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 20090, 2005, 2151, 4366, 1010, 12394, 2030, 2060, 1001, 14000, 1010, 3251, 1999, 2019, 2895, 1997, 3206, 1010, 17153, 30526 ]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>the terminator | The Big Novel</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="../../misc/favicon.ico" type="image/x-icon" /> <style type="text/css" media="all">@import "../../modules/node/node.css";</style> <style type="text/css" media="all">@import "../../modules/poll/poll.css";</style> <style type="text/css" media="all">@import "../../modules/system/defaults.css";</style> <style type="text/css" media="all">@import "../../modules/system/system.css";</style> <style type="text/css" media="all">@import "../../modules/user/user.css";</style> <style type="text/css" media="all">@import "../../sites/all/modules/tagadelic/tagadelic.css";</style> <style type="text/css" media="all">@import "../../modules/comment/comment.css";</style> <style type="text/css" media="all">@import "../../sites/all/themes/newmedia/style.css";</style> <!--[if IE 6]> <style type="text/css" media="all">@import "../../sites/all/themes/newmedia/ie-fixes/ie6.css";</style> <![endif]--> <!--[if lt IE 7.]> <script defer type="text/javascript" src="../../sites/all/themes/newmedia/ie-fixes/pngfix.js"></script> <![endif]--> </head> <body> <div id="page"> <!-- begin wrapper --> <div id="container"> <!-- primary links --> <!-- begin header --> <div id="header"> <!-- site logo --> <!-- end site logo --> <!-- site name --> <h1> <a href="../../index.html" title="Home"> The Big Novel </a> </h1> <!-- end site name --> <!-- site slogan --> <!-- end site slogan --> <div id="menu"> <ul class="links-menu"> <li><a href="http://machines.plannedobsolescence.net" title="associate professor of english and media studies">kathleen fitzpatrick</a></li> <li><a href="http://www.pomona.edu" title="in claremont, california">pomona college</a></li> </ul> </div><!-- end primary links --> </div><!-- end header --> <!-- search box in nowhere land - NEEDS WORK--> <!-- end search box --> <!-- content --> <!-- <div id="main">--> <!-- begin main content --> <div id="mainContent" style="width: 530px;"> <div class="breadcrumb"><div class="breadcrumb"><a href="../../index.html">Home</a> » <a href="../../blog/index.html">Blogs</a> » <a href="../../blog/5/index.html">sarawrs&#039;s blog</a></div></div> <h1 class="pageTitle">the terminator</h1> <div class="node"> <div class="submitted">By sarawrs - Posted on 24 March 2007 - 9:49am.</div> <div class="taxonomy">Tagged: <ul class="links inline"><li class="first taxonomy_term_186"><a href="../../taxonomy/term/186/index.html" rel="tag" title="" class="taxonomy_term_186">maps</a></li> <li class="taxonomy_term_184"><a href="../../taxonomy/term/184/index.html" rel="tag" title="" class="taxonomy_term_184">randy lenz</a></li> <li class="last taxonomy_term_185"><a href="../../taxonomy/term/185/index.html" rel="tag" title="" class="taxonomy_term_185">rats</a></li> </ul></div> <div class="content"><p>I think Randy Lenz is hilarious. He wears a powdered wig, nice shiny loafers....I pictured this dignified older gentleman with hair like George Washington's...you know, the all-around dignified gentleman who likes to smash rats to pieces. It's interesting how he always has to stay "maximally north" (539) and draws maps on napkins to figure out how he can maintain his northernmost position. I was wondering, is this related to his "internal-type issues" (541) of rage and powerlessness that cause him to demap rats?</p> </div> <div class="links"><ul class="links inline"><li class="first last blog_usernames_blog"><a href="../../blog/5/index.html" title="Read sarawrs&#039;s latest blog entries." class="blog_usernames_blog">sarawrs&#039;s blog</a></li> </ul></div> </div> <div id="comments"><a id="comment-345"></a> <div class="comment"> <div class="commentTitle"><a href="index.html#comment-345" class="active">Lenz</a></div> <div class="submitted">Submitted by KKT on 25 March 2007 - 12:39pm.</div> <div class="content"><p>Lenz is hilarious in a messed up kind of a way. I thought the scene that streched from page 556 to about 559 was amazingly funny. I love how, on page 558, a high Lenz tells Green about a recurring dream he has, and then two paragraphs later says he either "doesn't remember his dreams or doesn't dream." </p> <p>These pages also talk about some of his weird quirks--like the north thing and his fear of watches--from Lenz's perspective, which is interesting. It's like he has these control issues, and the only way to control the control issues is to excercise control over rats and cats and dogs. Maybe it's because, deep down, he feels he can't control himself (in terms of addiction)?</p> </div> <div class="links"></div> </div> </div> </div> <!-- Begin Sidebars --> <div id="sideBars-bg" style="width: 415px;"> <div id="sideBars" style="width: 415px;"> <!-- left sidebar --> <div id="leftSidebar"> <div class="block block-block" id="block-block-3"> <h2 class="title"></h2> <div class="content"><p><a href="../../index.html">the big novel</a> is the spring 2007 course website for english 55 at pomona college in claremont, california.</p> <p><a href="http://machines.plannedobsolescence.net">the professor</a><br /> <a href="../../syllabus/index.html">the syllabus</a><br /> <a href="https://sakai.claremont.edu/portal/site/CX_mtg_26013">the sakai site</a><br /> <a href="../../taxonomy/term/1/index.html">more information</a></p> </div> </div> <div class="block block-tagadelic" id="block-tagadelic-1"> <h2 class="title">tags</h2> <div class="content"><a href="../../taxonomy/term/94/index.html" class="tagadelic level2" rel="tag">baseball</a> <a href="../../taxonomy/term/6/index.html" class="tagadelic level2" rel="tag">characters</a> <a href="../../taxonomy/term/95/index.html" class="tagadelic level2" rel="tag">Cold War</a> <a href="../../taxonomy/term/23/index.html" class="tagadelic level2" rel="tag">comedy</a> <a href="../../taxonomy/term/1/index.html" class="tagadelic level1" rel="tag">course information</a> <a href="../../taxonomy/term/225/index.html" class="tagadelic level6" rel="tag">Cryptonomicon</a> <a href="../../taxonomy/term/154/index.html" class="tagadelic level1" rel="tag">David Foster Wallace</a> <a href="../../taxonomy/term/102/index.html" class="tagadelic level2" rel="tag">death</a> <a href="../../taxonomy/term/158/index.html" class="tagadelic level2" rel="tag">drugs</a> <a href="../../taxonomy/term/3/index.html" class="tagadelic level6" rel="tag">Gravity&#039;s Rainbow</a> <a href="../../taxonomy/term/155/index.html" class="tagadelic level1" rel="tag">Hal</a> <a href="../../taxonomy/term/153/index.html" class="tagadelic level6" rel="tag">Infinite Jest</a> <a href="../../taxonomy/term/45/index.html" class="tagadelic level2" rel="tag">language</a> <a href="../../taxonomy/term/168/index.html" class="tagadelic level1" rel="tag">mario</a> <a href="../../taxonomy/term/56/index.html" class="tagadelic level2" rel="tag">motifs</a> <a href="../../taxonomy/term/57/index.html" class="tagadelic level1" rel="tag">names</a> <a href="../../taxonomy/term/17/index.html" class="tagadelic level2" rel="tag">narrative</a> <a href="../../taxonomy/term/140/index.html" class="tagadelic level1" rel="tag">Nick</a> <a href="../../taxonomy/term/118/index.html" class="tagadelic level1" rel="tag">paranoia</a> <a href="../../taxonomy/term/26/index.html" class="tagadelic level1" rel="tag">peace</a> <a href="../../taxonomy/term/29/index.html" class="tagadelic level1" rel="tag">quotes</a> <a href="../../taxonomy/term/11/index.html" class="tagadelic level1" rel="tag">Roger and Jessica</a> <a href="../../taxonomy/term/24/index.html" class="tagadelic level2" rel="tag">sex</a> <a href="../../taxonomy/term/7/index.html" class="tagadelic level2" rel="tag">Significant quotes</a> <a href="../../taxonomy/term/20/index.html" class="tagadelic level4" rel="tag">Slothrop</a> <a href="../../taxonomy/term/164/index.html" class="tagadelic level1" rel="tag">tennis</a> <a href="../../taxonomy/term/91/index.html" class="tagadelic level6" rel="tag">Underworld</a> <a href="../../taxonomy/term/12/index.html" class="tagadelic level2" rel="tag">war</a> <a href="../../taxonomy/term/101/index.html" class="tagadelic level2" rel="tag">waste</a> <a href="../../taxonomy/term/50/index.html" class="tagadelic level1" rel="tag">Zero</a> <div class='more-link'><a href="../../tagadelic/chunk/1/index.html">more tags</a></div></div> </div> <div class="block block-user" id="block-user-1"> <h2 class="title">Navigation</h2> <div class="content"> <ul class="menu"> <li class="leaf"><a href="../../tracker/index.html">Recent posts</a></li> </ul> </div> </div> </div> <!-- right sidebar --> <div id="rightSidebar"> <div class="block block-comment" id="block-comment-0"> <h2 class="title">Recent comments</h2> <div class="content"><div class="item-list"><ul><li><a href="../337/index.html#comment-569">Didn&#039;t that article we read</a><br />3 years 51 weeks ago</li><li><a href="../325/index.html#comment-568">no, not just you! I copied</a><br />3 years 52 weeks ago</li><li><a href="../328/index.html#comment-567">I too used to think that the</a><br />3 years 52 weeks ago</li><li><a href="../328/index.html#comment-566">I was really put off by that</a><br />3 years 52 weeks ago</li><li><a href="../332/index.html#comment-565">Even our generation has</a><br />3 years 52 weeks ago</li><li><a href="../334/index.html#comment-564">Erdedy</a><br />3 years 52 weeks ago</li><li><a href="../328/index.html#comment-563">i had the same reaction </a><br />3 years 52 weeks ago</li><li><a href="../328/index.html#comment-562">women as tools</a><br />4 years 15 hours ago</li><li><a href="../328/index.html#comment-561">females in all of these novels</a><br />4 years 18 hours ago</li><li><a href="../328/index.html#comment-560">sexpot</a><br />4 years 1 day ago</li></ul></div></div> </div> <div class="block block-block" id="block-block-1"> <h2 class="title"></h2> <div class="content"><h3>Pynchon</h3> <p><a href="http://www.pynchon.pomona.edu/">San Narciso Community College</a> (aka the Pomona Pynchon site)<br /> <a href="http://www.themodernword.com/pynchon/">Pynchon @ The Modern Word</a><br /> <a href="http://www.robotwisdom.com/jorn/tpportal.html">Pynchon @ Robot Wisdom</a><br /> <a href="http://www.ham.muohio.edu/~krafftjm/pynchon.html">Pynchon Notes</a><br /> <a href="http://www.waste.org/pynchon-l/">Pynchon-l</a></p> <h3>DeLillo</h3> <p><a href="http://perival.com/delillo/delillo.html">Don DeLillo's America</a><br /> <a href="http://www.k-state.edu/english/nelp/delillo/">The Don DeLillo Society</a></p> <h3>Wallace</h3> <p><a href="http://www.thehowlingfantods.com/dfw.htm">The Howling Fantods</a><br /> <a href="http://waste.org/mail/?list=wallace-l">Wallace-l</a></p> <h3>Stephenson</h3> <p><a href="http://www.nealstephenson.com/">The Author's website</a><br /> <a href="http://www.well.com/~neal/">The Author's old website</a><br /> <a href="http://www.cryptonomicon.com/">Cryptonomicon</a></p> </div> </div> </div> </div><!-- end sidebars --> </div><!-- end sideBars-bg --> <!-- footer --> <div id="footer"> </div><!-- end footer --> </div><!-- end container --> </div><!-- end page --> <!-- Start of StatCounter Code --> <script type="text/javascript"> var sc_project=3034095; var sc_invisible=1; var sc_partition=33; var sc_security="ec028fa0"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c34.statcounter.com/3034095/0/ec028fa0/1/" alt="blog stats" /></a></div></noscript> <!-- End of StatCounter Code --> </body> </html> <!-- Localized -->
kfitz/machines
55-2007/node/224/index.html
HTML
gpl-2.0
12,533
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 1060, 11039, 19968, 1015, 1012, 1014, 9384, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 19817, 1013, 1060, 11039, 30524, 1000, 11374, 1027, 1000, 4372, 1000, 20950, 1024, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1013, 1028, 1026, 2516, 1028, 1996, 2744, 23207, 1064, 1996, 2502, 3117, 1026, 1013, 2516, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1013, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 2460, 12690, 12696, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 28616, 2278, 1013, 6904, 7903, 2239, 1012, 24582, 2080, 1000, 2828, 1027, 1000, 3746, 1013, 1060, 1011, 12696, 1000, 1013, 1028, 1026, 2806, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 2865, 1027, 1000, 2035, 1000, 1028, 1030, 12324, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 14184, 1013, 13045, 1013, 13045, 1012, 20116, 2015, 1000, 1025, 1026, 1013, 2806, 1028, 1026, 2806, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 2865, 1027, 1000, 2035, 1000, 1028, 1030, 12324, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 14184, 1013, 8554, 1013, 8554, 1012, 20116, 2015, 1000, 1025, 1026, 1013, 2806, 1028, 1026, 2806, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 2865, 1027, 1000, 2035, 1000, 1028, 1030, 12324, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 14184, 1013, 2291, 1013, 12398, 2015, 1012, 20116, 2015, 1000, 1025, 1026, 1013, 2806, 1028, 1026, 2806, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 2865, 1027, 1000, 2035, 1000, 1028, 1030, 12324, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 14184, 1013, 2291, 1013, 2291, 1012, 20116, 2015, 1000, 1025, 1026, 1013, 2806, 1028, 1026, 2806, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 2865, 1027, 1000, 2035, 1000, 1028, 1030, 12324, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 14184, 1013, 5310, 1013, 5310, 1012, 20116, 2015, 1000, 1025, 1026, 1013, 2806, 1028, 1026, 2806, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 2865, 1027, 1000, 2035, 1000, 1028, 1030, 12324, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 4573, 1013, 2035, 1013, 14184, 1013, 6415, 9648, 10415, 1013, 6415, 9648, 10415, 1012, 20116, 2015, 1000, 1025, 1026, 1013, 2806, 1028, 1026, 2806, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 2865, 1027, 1000, 2035, 1000, 1028, 1030, 12324, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 14184, 1013, 7615, 1013, 7615, 1012, 20116, 2015, 1000, 1025, 1026, 1013, 2806, 1028, 1026, 30523, 19968, 2487, 1013, 26718, 2094, 1013, 1060, 11039, 19968, 2487, 1011, 9384, 1012, 26718, 2094, 1000, 1028, 1026, 16129, 20950, 3619, 1027, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 2639, 1013, 1060, 11039, 19968, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 19968, 2487, 1013, 26718, 2094, 1013, 1060, 11039, 19968, 2487, 1011, 9384, 1012, 26718, 2094, 1000, 1028, 1026, 16129, 20950, 3619, 1027, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 2639, 1013, 1060, 11039, 19968, 30526 ]
<html> <head> <title>UPRRP Encuesta</title> <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/bootstrap.min.css') }}"> </head> <body> <div class="container"> <div class="row"> <h2>Esta encuesta es para estudiantes de la Facultad de Ciencias Naturales. Por favor llena esta encuesta. Recuerda usar las rayas para poner tu numero de estudiantes.</h2> <form class="form-horizontal" action="/" method="POST"> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">Numero de Estudiante</label> <div class="col-sm-10"> <input type="text" name="studentNumber" class="form-control" id="inputStudentNumber" placeholder="801-XX-XXXX" maxlength="11" required> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">1) Participaste en la asamblea multisectorial del 12 de Mayo?</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer1" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer1" value="no"> No </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">2) Has participado de alguna otra asamblea estudiantil?</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer2" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer2" value="no"> No </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">3) Crees que son necesarios los recortes a el sistema UPR?</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer3" value="yes" > Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer3" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer3" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">4) Apoyas el IVA?</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer4" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer4" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer4" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">5) Crees que se deben de tocar los fondos de retiro para aliviar la situación económica del país?</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer5" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer5" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer5" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">6) Crees que hace falta una reforma del gobierno de Puerto Rico?</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer6" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer6" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer6" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">7) Crees que el estudiantado puede cambiar algo del gobierno por medio de protesta civil?</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer7" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer7" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer7" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">8) Crees que las asambleas estudiantiles son un medio efectivo para organizar al estudiantado?</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer8" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer8" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer8" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">9) “[Que nosotros, todos los sectores] exijamos a los líderes del pais durante la marcha, no tocar bajo ninguna circunstancia cualquier partida o monto presupuestario dirigio a atender las problemáticas de [ la comunidad de personas con impedimentos]”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer9" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer9" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer9" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer9" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">10) “Exigimos la renuncia inmediata de todos los funcionarios que se han expresado a favor de los recortes y de la imposición en nuevos impuestos”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer10" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer10" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer10" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer10" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label"> 11) “[Exigimos] que se declare una moratoria en el pago de la deuda a bonistas y suplidores”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer11" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer11" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer11" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer11" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-6 control-label">12) “[Exigimos] un referendum para enmendar el artículo VI.8 de la constitución de Puerto Rico” (Artículo VI.8: “Cuando los recursos disponibles para un año económico no basten para cubrir las asignaciones aprobadas para ese año, se procederá en primer término, al pago de intereses y amortización de la deuda pública, y luego se harán los demás desembolsos de acuerdo con la norma de prioridades que se establezca por ley.”)</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer12" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer12" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer12" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer12" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">13) “[Exigimos] que se implemente un impuesto de 5% a las ganancias de bancos e instituciones financieras que operan en Puerto Rico”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer13" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer13" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer13" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer13" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">14) Que el impuesto previamente mencionado sea sujeto a aumento luego de un estudio económico.</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer14" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer14" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer14" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer14" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">15) “[Exigimos] la cancelación inmediata de contratos de arrendamiento de autopistas y otras fuentes de ingreso [privado] creados con fondos públicos”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer15" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer15" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer15" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer15" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">16) “[Exigimos] que se asigne 10% de los recaudos del gobierno a la educación universitaria pública”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer16" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer16" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer16" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer16" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">17) “[Exigimos] que se haga un referéndum constitucional antes de que se acabe el año fiscal (30 de junio)”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer17" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer17" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer17" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer17" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">18) “[Exigimos que] los representantes de la Cámara de Representantes, en especial a los 6 que votaron en contra de la reforma contributiva, que se mantengan firmes en su oposición”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer18" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer18" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer18" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer18" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">19) “Retomar nuestra oposición en torno al IVA y el resultado en el referéndum”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer19" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer19" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer19" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer19" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">20) “La autonomía fiscal de la UPR es condición indispensable para que la UPR pueda cumplir con su misión y función.</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer20" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer20" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer20" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer20" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">21) La fórmula de ley universitaria ha sido un eficaz mecanismo para garantizar la autonomía fiscal académica y administrativa en defensa de la educación como bien público.</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer21" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer21" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer21" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer21" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">22) La congelación de la formula sujeta a la UPR a los vaivenes propios de las dinámicas político-partidista.</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer22" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer22" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer22" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer22" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">23) En defensa de la educación como bien público es necesario derogar la Ley 66 y restituir la autonomía fiscal en la ley universitaria.</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer23" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer23" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer23" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer23" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">24) Esta Asamblea exige que las medidas que adopte este gobierno para atender la crisis fiscal reconozcan la importancia del proyecto universitario público y respeten la autonomía fiscal que garantiza el proyecto público de la UPR.”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer24" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer24" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer24" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer24" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">25) Un paro de 48 horas comenzando el Jueves 14 de mayo de 2015</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer25" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer25" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer25" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer25" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">26) “[Exigimos que] Elevar la importancia de la educación pública a nivel constitucional mediante un proceso cívico y educado que culmine con un referéndum constitucional.”</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer26" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer26" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer26" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer26" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">27) “[Exigimos que se defiendan] las exenciones de matrícula de todo tipo, deportivas y artísticas.</label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer27" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer27" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer27" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer27" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-12 control-label">28) Que se haga disponible un desglose comprensivo, actualizado y digitalmente accesible de las finanzas de la UPR y el gobierno de Puerto Rico que detalle la totalidad de ingresos e inversiones de las mismas, con el fin de proveer al pueblo los medios de proponer soluciones concretas arraigadas en la realidad fiscal del gobierno. Este informe debe incluir entre otras cosas: sueldos de empleados con sus responsabilidades y descripción de trabajo, bonos, servicios y bienes provistos a funcionarios publicos (comida, gasolina, agua, viajes, dietas, etc), inversión en enseres (autos, escritorios, etc.) y planta física; los gastos de diferentes edificios gubernamentales en agua, electricidad y servicios de telecomunicaciones; ingresos viniendo de fuentes públicas y privadas; contratos con entes privados y las tareas que se esperan cumplir a cambio del monto desembolsado a los mismos. </label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer28" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer28" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer28" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer28" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">29) “Que se convoque una asamblea multisectorial que incluya a los 11 recintos y hacer una asamblea a nivel sistemico la próxima semana” </label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer29" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer29" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer29" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer29" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">30) Que debemos abogar por la educación publica en general y apoyar a los maestros y maestras en su lucha por el retiro. </label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer30" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer30" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer30" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer30" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">31) “Que el recinto exiga un referendum constitucional en el cual se toque el tema de la marijuana y sus derivados.” </label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer31" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer31" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer31" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer31" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> <div class="form-group"> <label for="inputStudentNumber" class="col-sm-2 control-label">32) “Exigir el recorte de presupuestos de oficinas administrativas y que el dinero se distribuya para más profesores, sectores y a la universidad” </label> <div class="col-sm-10"> <div class="radio"> <label> <input type="radio" name="Answer32" value="yes"> Sí </label> </div> <div class="radio"> <label> <input type="radio" name="Answer32" value="no"> No </label> </div> <div class="radio"> <label> <input type="radio" name="Answer32" id="answerNoInfo" value="noinfo"> No me siento lo suficientemente informado </label> </div> <div class="radio"> <label> <input type="radio" name="Answer32" id="answerAbstenido" value="abstenido"> Abstenido </label> </div> </div> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-default">Someter</button> </div> </div> </form> </div> </div> <script type="text/javascript" src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script> </body> </html>
AECC-UPRRP/Encuesta-Naturales
templates/index.html
HTML
mit
34,056
[ 30522, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 2516, 1028, 2039, 12171, 2361, 4372, 10841, 4355, 2050, 1026, 1013, 2516, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 17850, 12879, 1027, 1000, 1063, 1063, 24471, 2140, 1035, 2005, 1006, 1005, 10763, 1005, 1010, 5371, 18442, 1027, 1005, 20116, 2015, 1013, 6879, 6494, 2361, 1012, 8117, 1012, 20116, 2015, 1005, 1007, 1065, 1065, 1000, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 11661, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 5216, 1000, 1028, 1026, 1044, 2475, 1028, 9765, 2050, 4372, 10841, 4355, 2050, 9686, 11498, 9765, 21041, 24985, 2139, 2474, 6904, 10841, 24458, 2094, 2139, 25022, 27742, 2015, 3019, 2229, 1012, 18499, 5684, 2222, 8189, 9765, 2050, 4372, 10841, 4355, 2050, 1012, 28667, 13094, 2850, 3915, 2099, 5869, 4097, 3022, 11498, 13433, 3678, 10722, 16371, 5017, 2080, 2139, 9765, 21041, 24985, 1012, 1026, 1013, 1044, 2475, 1028, 1026, 2433, 2465, 1027, 1000, 2433, 1011, 9876, 1000, 2895, 1027, 1000, 1013, 1000, 4118, 1027, 1000, 2695, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2433, 1011, 2177, 1000, 1028, 1026, 3830, 2005, 1027, 1000, 20407, 8525, 16454, 19172, 5677, 1000, 2465, 1027, 1000, 8902, 1011, 15488, 1011, 1016, 2491, 1011, 3830, 1000, 1028, 16371, 5017, 2080, 2139, 9765, 21041, 12956, 1026, 1013, 3830, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 8902, 1011, 15488, 1011, 2184, 30524, 2171, 1027, 1000, 3076, 19172, 5677, 1000, 2465, 1027, 1000, 2433, 1011, 2491, 1000, 8909, 1027, 1000, 20407, 8525, 16454, 19172, 5677, 1000, 2173, 14528, 1027, 1000, 3770, 2487, 1011, 22038, 1011, 22038, 20348, 1000, 4098, 7770, 13512, 2232, 1027, 1000, 2340, 1000, 3223, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2433, 1011, 2177, 1000, 1028, 1026, 3830, 2005, 1027, 1000, 20407, 8525, 16454, 19172, 5677, 1000, 2465, 1027, 1000, 8902, 1011, 15488, 1011, 1020, 2491, 1011, 3830, 1000, 1028, 1015, 1007, 2112, 28775, 19707, 2618, 4372, 2474, 17306, 19661, 2050, 4800, 3366, 16761, 4818, 3972, 2260, 2139, 14415, 1029, 1026, 1013, 3830, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 8902, 1011, 15488, 1011, 2184, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2557, 1000, 1028, 1026, 3830, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 3437, 2487, 1000, 3643, 1027, 1000, 2748, 1000, 1028, 9033, 1026, 1013, 3830, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2557, 1000, 1028, 1026, 3830, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 3437, 2487, 1000, 3643, 1027, 1000, 2053, 1000, 1028, 2053, 1026, 1013, 3830, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2433, 1011, 2177, 1000, 1028, 1026, 3830, 2005, 1027, 1000, 20407, 8525, 16454, 19172, 5677, 1000, 2465, 1027, 1000, 8902, 1011, 15488, 1011, 1020, 30523, 1000, 1028, 1026, 7953, 2828, 1027, 1000, 3793, 1000, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1000, 1028, 1026, 7953, 2828, 1027, 1000, 3793, 1000, 30526 ]
# CMAKE generated file: DO NOT EDIT! # Generated by "Unix Makefiles" Generator, CMake Version 3.5 # Default target executed when no arguments are given to make. default_target: all .PHONY : default_target # Allow only one "make -f Makefile2" at a time, but pass parallelism. .NOTPARALLEL: #============================================================================= # Special targets provided by cmake. # Disable implicit rules so canonical targets will work. .SUFFIXES: # Remove some rules from gmake that .SUFFIXES does not remove. SUFFIXES = .SUFFIXES: .hpux_make_needs_suffix_list # Suppress display of executed commands. $(VERBOSE).SILENT: # A target that is always out of date. cmake_force: .PHONY : cmake_force #============================================================================= # Set environment variables for the build. # The shell in which to execute make rules. SHELL = /bin/sh # The CMake executable. CMAKE_COMMAND = /usr/bin/cmake # The command to remove a file. RM = /usr/bin/cmake -E remove -f # Escaping for special characters. EQUALS = = # The top-level source directory on which CMake was run. CMAKE_SOURCE_DIR = /home/us-robot/catkin_ws/src # The top-level build directory on which CMake was run. CMAKE_BINARY_DIR = /home/us-robot/catkin_ws/build #============================================================================= # Targets provided globally by CMake. # Special rule for the target list_install_components list_install_components: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\"" .PHONY : list_install_components # Special rule for the target list_install_components list_install_components/fast: list_install_components .PHONY : list_install_components/fast # Special rule for the target install install: preinstall @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." /usr/bin/cmake -P cmake_install.cmake .PHONY : install # Special rule for the target install install/fast: preinstall/fast @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." /usr/bin/cmake -P cmake_install.cmake .PHONY : install/fast # Special rule for the target rebuild_cache rebuild_cache: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) .PHONY : rebuild_cache # Special rule for the target rebuild_cache rebuild_cache/fast: rebuild_cache .PHONY : rebuild_cache/fast # Special rule for the target install/strip install/strip: preinstall @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..." /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake .PHONY : install/strip # Special rule for the target install/strip install/strip/fast: install/strip .PHONY : install/strip/fast # Special rule for the target install/local install/local: preinstall @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..." /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake .PHONY : install/local # Special rule for the target install/local install/local/fast: install/local .PHONY : install/local/fast # Special rule for the target test test: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." /usr/bin/ctest --force-new-ctest-process $(ARGS) .PHONY : test # Special rule for the target test test/fast: test .PHONY : test/fast # Special rule for the target edit_cache edit_cache: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. .PHONY : edit_cache # Special rule for the target edit_cache edit_cache/fast: edit_cache .PHONY : edit_cache/fast # The main all target all: cmake_check_build_system cd /home/us-robot/catkin_ws/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/us-robot/catkin_ws/build/CMakeFiles /home/us-robot/catkin_ws/build/easy_handeye-master/rqt_easy_handeye/CMakeFiles/progress.marks cd /home/us-robot/catkin_ws/build && $(MAKE) -f CMakeFiles/Makefile2 easy_handeye-master/rqt_easy_handeye/all $(CMAKE_COMMAND) -E cmake_progress_start /home/us-robot/catkin_ws/build/CMakeFiles 0 .PHONY : all # The main clean target clean: cd /home/us-robot/catkin_ws/build && $(MAKE) -f CMakeFiles/Makefile2 easy_handeye-master/rqt_easy_handeye/clean .PHONY : clean # The main clean target clean/fast: clean .PHONY : clean/fast # Prepare targets for installation. preinstall: all cd /home/us-robot/catkin_ws/build && $(MAKE) -f CMakeFiles/Makefile2 easy_handeye-master/rqt_easy_handeye/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: cd /home/us-robot/catkin_ws/build && $(MAKE) -f CMakeFiles/Makefile2 easy_handeye-master/rqt_easy_handeye/preinstall .PHONY : preinstall/fast # clear depends depend: cd /home/us-robot/catkin_ws/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target help: @echo "The following are some of the valid targets for this Makefile:" @echo "... all (the default if no target is provided)" @echo "... clean" @echo "... depend" @echo "... list_install_components" @echo "... install" @echo "... rebuild_cache" @echo "... install/strip" @echo "... install/local" @echo "... test" @echo "... edit_cache" .PHONY : help #============================================================================= # Special targets to cleanup operation of make. # Special rule to run CMake to check the build system integrity. # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: cd /home/us-robot/catkin_ws/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system
robotic-ultrasound-image-system/ur5
build/easy_handeye-master/rqt_easy_handeye/Makefile
Makefile
apache-2.0
6,106
[ 30522, 1001, 4642, 13808, 7013, 5371, 1024, 2079, 2025, 30524, 3499, 2069, 2028, 1000, 2191, 1011, 1042, 2191, 8873, 2571, 2475, 1000, 2012, 1037, 2051, 1010, 2021, 3413, 5903, 2964, 1012, 1012, 2025, 28689, 6216, 2140, 1024, 1001, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1001, 2569, 7889, 3024, 2011, 4642, 13808, 1012, 1001, 4487, 19150, 24655, 3513, 2061, 18562, 7889, 2097, 2147, 1012, 1012, 16809, 2229, 1024, 1001, 6366, 2070, 3513, 2013, 20917, 3489, 2008, 1012, 16809, 2229, 2515, 2025, 6366, 1012, 16809, 2229, 1027, 1012, 16809, 2229, 1024, 1012, 6522, 5602, 1035, 2191, 1035, 3791, 1035, 16809, 1035, 2862, 1001, 16081, 4653, 1997, 6472, 10954, 1012, 1002, 1006, 12034, 9232, 1007, 1012, 4333, 1024, 1001, 1037, 4539, 2008, 2003, 2467, 2041, 1997, 3058, 1012, 4642, 13808, 1035, 2486, 1024, 1012, 6887, 16585, 1024, 4642, 13808, 1035, 2486, 1001, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1001, 2275, 4044, 10857, 2005, 1996, 3857, 1012, 1001, 1996, 5806, 1999, 2029, 2000, 15389, 2191, 3513, 1012, 5806, 1027, 1013, 8026, 1013, 14021, 1001, 1996, 4642, 13808, 4654, 8586, 23056, 1012, 4642, 13808, 1035, 3094, 1027, 1013, 2149, 2099, 1013, 8026, 1013, 4642, 13808, 1001, 1996, 3094, 2000, 6366, 1037, 5371, 1012, 28549, 1027, 1013, 2149, 2099, 1013, 8026, 1013, 4642, 13808, 1011, 1041, 6366, 1011, 1042, 1001, 13002, 2005, 2569, 3494, 1012, 19635, 1027, 1027, 1001, 1996, 2327, 1011, 2504, 3120, 14176, 2006, 2029, 4642, 13808, 2001, 2448, 1012, 4642, 13808, 1035, 3120, 1035, 16101, 1027, 1013, 2188, 1013, 2149, 1011, 8957, 1013, 4937, 4939, 1035, 1059, 2015, 1013, 5034, 2278, 1001, 1996, 2327, 1011, 2504, 3857, 14176, 2006, 2029, 4642, 13808, 2001, 2448, 1012, 4642, 13808, 1035, 12441, 1035, 16101, 1027, 1013, 2188, 1013, 2149, 1011, 8957, 1013, 4937, 4939, 1035, 1059, 2015, 1013, 3857, 1001, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 30523, 10086, 999, 1001, 7013, 2011, 1000, 19998, 2191, 8873, 4244, 1000, 13103, 1010, 4642, 13808, 2544, 1017, 1012, 1019, 1001, 12398, 4539, 6472, 2043, 2053, 9918, 2024, 2445, 2000, 2191, 1012, 12398, 1035, 4539, 1024, 2035, 1012, 6887, 16585, 1024, 12398, 1035, 4539, 1001, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 10086, 999, 1001, 7013, 2011, 1000, 19998, 2191, 8873, 4244, 1000, 13103, 1010, 4642, 13808, 2544, 1017, 1012, 1019, 1001, 12398, 4539, 6472, 2043, 2053, 9918, 2024, 2445, 2000, 2191, 1012, 12398, 1035, 4539, 1024, 2035, 1012, 6887, 16585, 1024, 12398, 1035, 4539, 1001, 30526 ]
/* * dgMaster: A versatile, open source data generator. *(c) 2007 M. Michalakopoulos, [email protected] */ package generator.misc; import java.util.Vector; /** * * Represents the information used to create a new text output file. * It also holds a vector of DataFileItem which define what to output in the * text file. */ public class DataFileDefinition { private String name; private String description; private Vector outDataItems; //a place holder for DataFileItem private String outFilename; private String delimiter; private long numOfRecs; /** Creates a new instance of FileDefinition */ public DataFileDefinition() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public Vector getOutDataItems() { return outDataItems; } public void setOutDataItems(Vector vOutData) { this.outDataItems = vOutData; } public String getOutFilename() { return outFilename; } public void setOutFilename(String outFilename) { this.outFilename = outFilename; } public String getDescription() { return this.description; } public String getDelimiter() { return delimiter; } public void setDelimiter(String delimiter) { this.delimiter = delimiter; } public long getNumOfRecs() { return numOfRecs; } public void setNumOfRecs(long numOfRecs) { this.numOfRecs = numOfRecs; } public void setDescription(String description) { this.description = description; } public String toString() { return name; } }
tspauld98/white-mercury-dg
src/main/java/generator/misc/DataFileDefinition.java
Java
gpl-2.0
1,890
[ 30522, 1013, 1008, 1008, 1040, 21693, 24268, 1024, 1037, 22979, 1010, 2330, 3120, 2951, 13103, 1012, 1008, 1006, 1039, 1007, 2289, 1049, 1012, 23025, 19531, 3683, 24662, 1010, 3461, 7033, 7911, 2243, 1030, 20917, 4014, 1012, 4012, 1008, 1013, 7427, 13103, 1012, 28616, 2278, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 9207, 1025, 1013, 1008, 1008, 1008, 1008, 5836, 1996, 2592, 2109, 2000, 3443, 1037, 2047, 3793, 6434, 5371, 1012, 1008, 2009, 2036, 4324, 1037, 9207, 1997, 2951, 8873, 23057, 18532, 2029, 9375, 2054, 2000, 6434, 1999, 1996, 1008, 3793, 5371, 1012, 1008, 1013, 2270, 2465, 2951, 8873, 3709, 12879, 5498, 3508, 1063, 2797, 5164, 2171, 1025, 2797, 5164, 6412, 1025, 2797, 9207, 2041, 2850, 15444, 18532, 2015, 1025, 1013, 1013, 1037, 2173, 9111, 2005, 2951, 8873, 23057, 18532, 2797, 5164, 2041, 8873, 20844, 4168, 1025, 2797, 5164, 3972, 27605, 3334, 1025, 2797, 2146, 16371, 5302, 19699, 8586, 2015, 1025, 1013, 1008, 1008, 9005, 1037, 2047, 6013, 1997, 6406, 12879, 5498, 3508, 1008, 1013, 2270, 2951, 8873, 3709, 12879, 5498, 3508, 1006, 1007, 1063, 1065, 2270, 5164, 2131, 18442, 1006, 1007, 1063, 2709, 2171, 1025, 1065, 2270, 11675, 2275, 18442, 1006, 5164, 2171, 1007, 1063, 2023, 1012, 2171, 1027, 2171, 1025, 1065, 2270, 9207, 2131, 5833, 2850, 15444, 18532, 2015, 1006, 1007, 1063, 2709, 2041, 2850, 15444, 18532, 2015, 1025, 1065, 2270, 11675, 2275, 5833, 2850, 15444, 18532, 2015, 1006, 9207, 29536, 4904, 2850, 2696, 1007, 1063, 2023, 1012, 2041, 2850, 15444, 18532, 2015, 1027, 29536, 4904, 2850, 2696, 1025, 1065, 2270, 5164, 2131, 5833, 8873, 20844, 4168, 1006, 1007, 1063, 2709, 2041, 8873, 20844, 4168, 1025, 1065, 2270, 11675, 2275, 5833, 8873, 20844, 4168, 1006, 5164, 2041, 8873, 20844, 4168, 1007, 1063, 2023, 1012, 2041, 8873, 20844, 4168, 1027, 2041, 8873, 20844, 4168, 1025, 1065, 2270, 5164, 2131, 6155, 23235, 3258, 1006, 1007, 1063, 2709, 2023, 1012, 6412, 1025, 1065, 2270, 5164, 2131, 9247, 27605, 3334, 1006, 1007, 1063, 2709, 3972, 27605, 3334, 1025, 1065, 2270, 11675, 2275, 9247, 27605, 3334, 1006, 5164, 3972, 27605, 3334, 1007, 1063, 30524, 11675, 2275, 19172, 11253, 2890, 6169, 1006, 2146, 16371, 5302, 19699, 8586, 2015, 1007, 1063, 2023, 1012, 16371, 5302, 19699, 8586, 2015, 1027, 16371, 5302, 19699, 8586, 2015, 1025, 1065, 2270, 11675, 2275, 6155, 23235, 3258, 1006, 5164, 6412, 1007, 1063, 2023, 1012, 6412, 1027, 6412, 1025, 1065, 2270, 5164, 2000, 3367, 4892, 1006, 1007, 1063, 2709, 2171, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 2023, 1012, 3972, 27605, 3334, 1027, 3972, 27605, 3334, 1025, 1065, 2270, 2146, 2131, 19172, 11253, 2890, 6169, 1006, 1007, 1063, 2709, 16371, 5302, 19699, 8586, 2015, 1025, 1065, 2270, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2023, 1012, 3972, 27605, 3334, 1027, 3972, 27605, 3334, 1025, 1065, 2270, 2146, 2131, 19172, 11253, 2890, 6169, 1006, 1007, 1063, 2709, 16371, 5302, 19699, 8586, 2015, 1025, 1065, 2270, 30526 ]
<?php class Zend_View_Helper_WebSectionTemplate extends Zend_View_Helper_Abstract { public function webSectionTemplate($area) { $html = ''; $html.= '<div class="row-fluid">'; $html.= '<div class="span12">'; $html.= '<div class="page-header">'; $html.= '<h1>Header Layout Default</h1>'; $html.= '</div>'; $html.= '</div>'; $html.= '</div>'; $html.= '<div class="row-fluid">'; $html.= '<div class="span12">'; $html.= '<div class="page-header">'; $html.= '<h1>Menu <a href="/">'.$lang->translate('Home').'</a></h1>'; $html.= '</div>'; $html.= '</div>'; $html.= '</div>'; $html.= '<div class="row-fluid">'; $html.= '<div class="span6">'; $html.= '<div class="row-fluid">'; $html.= '<div class="page-header">'; $html.= '<h2>area 1</h2>'; $html.= $area[1]; $html.= '</div>'; $html.= '</div>'; $html.= '</div>'; $html.= '<div class="span6">'; $html.= '<div class="row-fluid">'; $html.= '<div class="page-header">'; $html.= '<h2>area 2</h2>'; $html.= $area[2]; $html.= '</div>'; $html.= '</div>'; $html.= '<div class="row-fluid">'; $html.= '<div class="page-header">'; $html.= '<h2>area 3</h2>'; $html.= $area[3]; $html.= '</div>'; $html.= '</div>'; $html.= '</div>'; $html.= '</div>'; //$html.= $area_1.' '.$area_2.' '.$area_3; return $html; } }
AlexandrosV/beta-thesis
application/modules/default/views/helpers/WebSectionTemplate.php
PHP
gpl-2.0
1,478
[ 30522, 1026, 30524, 1063, 1002, 16129, 1027, 1005, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 5216, 1011, 8331, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 8487, 12521, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 3931, 1011, 20346, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1044, 2487, 1028, 20346, 9621, 12398, 1026, 1013, 1044, 2487, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 5216, 1011, 8331, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 8487, 12521, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 3931, 1011, 20346, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1044, 2487, 1028, 12183, 1026, 1037, 17850, 12879, 1027, 1000, 1013, 1000, 1028, 1005, 1012, 1002, 11374, 1011, 1028, 17637, 1006, 1005, 2188, 1005, 1007, 1012, 1005, 1026, 1013, 1037, 1028, 1026, 1013, 1044, 2487, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 5216, 1011, 8331, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 8487, 2575, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 5216, 1011, 8331, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 3931, 1011, 20346, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1044, 2475, 1028, 2181, 1015, 1026, 1013, 1044, 2475, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1002, 2181, 1031, 1015, 1033, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1013, 4487, 2615, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 8487, 2575, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 5216, 1011, 8331, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 4487, 2615, 2465, 1027, 1000, 3931, 1011, 20346, 1000, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1005, 1026, 1044, 2475, 1028, 2181, 1016, 1026, 1013, 1044, 2475, 1028, 1005, 1025, 1002, 16129, 1012, 1027, 1002, 2181, 1031, 30523, 1029, 25718, 2465, 16729, 2094, 1035, 3193, 1035, 2393, 2121, 1035, 4773, 29015, 18532, 15725, 8908, 16729, 2094, 1035, 3193, 1035, 2393, 2121, 1035, 10061, 1063, 2270, 3853, 4773, 29015, 18532, 15725, 1006, 1002, 2181, 1007, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1029, 25718, 2465, 16729, 2094, 1035, 3193, 1035, 2393, 2121, 1035, 4773, 29015, 18532, 15725, 8908, 16729, 2094, 1035, 3193, 1035, 2393, 2121, 1035, 10061, 1063, 2270, 3853, 4773, 29015, 18532, 15725, 1006, 1002, 2181, 1007, 30526 ]
""" IO classes for Omnivor input file Copyright (C) 2013 DTU Wind Energy Author: Emmanuel Branlard Email: [email protected] Last revision: 25/11/2013 Namelist IO: badis functions to read and parse a fortran file into python dictonary and write it back to a file The parser was adapted from: fortran-namelist on code.google with the following info: __author__ = 'Stephane Chamberland ([email protected])' __version__ = '$Revision: 1.0 $'[11:-2] __date__ = '$Date: 2006/09/05 21:16:24 $' __copyright__ = 'Copyright (c) 2006 RPN' __license__ = 'LGPL' Recognizes files of the form: &namelistname opt1 = value1 ... / """ from __future__ import print_function from we_file_io import WEFileIO, TestWEFileIO import unittest import numpy as np import os.path as path import sys import re import tempfile import os __author__ = 'E. Branlard ' class FortranNamelistIO(WEFileIO): """ Fortran Namelist IO class Scan a Fortran Namelist file and put Section/Parameters into a dictionary Write the file back if needed. """ def _write(self): """ Write a file (overrided) """ with open(self.filename, 'w') as f: for nml in self.data : f.write('&'+nml+'\n') # Sorting dictionary data (in the same order as it was created, thanks to id) SortedList = sorted(self.data[nml].items(), key=lambda(k, v): v['id']) # for param in self.data[nml]: for param in map(lambda(k,v):k,SortedList): f.write(param+'='+','.join(self.data[nml][param]['val'])) if len(self.data[nml][param]['com']) >0: f.write(' !'+self.data[nml][param]['com']) f.write('\n') f.write('/\n') def _read(self): """ Read the file (overrided) """ with open(self.filename, 'r') as f: data = f.read() varname = r'\b[a-zA-Z][a-zA-Z0-9_]*\b' valueInt = re.compile(r'[+-]?[0-9]+') valueReal = re.compile(r'[+-]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)') valueNumber = re.compile(r'\b(([\+\-]?[0-9]+)?\.)?[0-9]*([eE][-+]?[0-9]+)?') valueBool = re.compile(r"(\.(true|false|t|f)\.)",re.I) valueTrue = re.compile(r"(\.(true|t)\.)",re.I) spaces = r'[\s\t]*' quote = re.compile(r"[\s\t]*[\'\"]") namelistname = re.compile(r"^[\s\t]*&(" + varname + r")[\s\t]*$") paramname = re.compile(r"[\s\t]*(" + varname+r')[\s\t]*=[\s\t]*') namlistend = re.compile(r"^" + spaces + r"/" + spaces + r"$") #split sections/namelists mynmlfile = {} mynmlfileRaw = {} mynmlname = '' for item in FortranNamelistIO.clean(data.split("\n"),cleancomma=1): if re.match(namelistname,item): mynmlname = re.sub(namelistname,r"\1",item) mynmlfile[mynmlname] = {} mynmlfileRaw[mynmlname] = [] elif re.match(namlistend,item): mynmlname = '' else: if mynmlname: mynmlfileRaw[mynmlname].append(item) #parse param in each section/namelist for mynmlname in mynmlfile.keys(): #split strings bb = [] for item in mynmlfileRaw[mynmlname]: if item[0]!='!': # discarding lines that starts with a comment bb.extend(FortranNamelistIO.splitstring(item)) #split comma and = aa = [] for item in bb: if not re.match(quote,item): aa.extend(re.sub(r"[\s\t]*=",r" =\n",re.sub(r",+",r"\n",item)).split("\n")) # aa.extend(re.sub(r"[\s\t]*=",r" =\n",item).split("\n")) else: aa.append(item) del(bb) aa = FortranNamelistIO.clean(aa,cleancomma=1) myparname = '' id_cum=0 for item in aa: if re.search(paramname,item): #myparname = re.sub(paramname,r"\1",item).lower() ! NO MORE LOWER CASE myparname = re.sub(paramname,r"\1",item) id_cum=id_cum+1 mynmlfile[mynmlname][myparname] = { 'val' : [], 'id' : id_cum, 'com' : '' } elif paramname: # Storing comments item2=item.split('!') item=item2[0] if len(item) > 1 : mynmlfile[mynmlname][myparname]['com']=''.join(item2[1:]) if re.match(valueBool,item): if re.match(valueTrue,item): mynmlfile[mynmlname][myparname]['val'].append('.true.') else: mynmlfile[mynmlname][myparname]['val'].append('.false.') else: # item2=re.sub(r"(^[\'\"]|[\'\"]$)",r"",item.strip()) mynmlfile[mynmlname][myparname]['val'].append(item.strip()) self.data=mynmlfile # Accessor and mutator dictionary style def __getitem__(self, key): """ Transform the class instance into a dictionary.""" return self.data[key] def __setitem__(self, key, value): """ Transform the class instance into a dictionary.""" self.data[key] = value #==== Helper functions for Parsing of files @staticmethod def clean(mystringlist,commentexpr=r"^[\s\t]*\#.*$",spacemerge=0,cleancomma=0): """ Remove leading and trailing blanks, comments/empty lines from a list of strings mystringlist = foo.clean(mystringlist,spacemerge=0,commentline=r"^[\s\t]*\#",cleancharlist="") commentline: definition of commentline spacemerge: if <>0, merge/collapse multi space cleancomma: Remove leading and trailing commas """ aa = mystringlist if cleancomma: aa = [re.sub("(^([\s\t]*\,)+)|((\,[\s\t]*)+$)","",item).strip() for item in aa] if commentexpr: aa = [re.sub(commentexpr,"",item).strip() for item in aa] if spacemerge: aa = [re.sub("[\s\t]+"," ",item).strip() for item in aa if len(item.strip()) <> 0] else: aa = [item.strip() for item in aa if len(item.strip()) <> 0] return aa @staticmethod def splitstring(mystr): """ Split a string in a list of strings at quote boundaries Input: String Output: list of strings """ dquote=r'(^[^\"\']*)(\"[^"]*\")(.*)$' squote=r"(^[^\"\']*)(\'[^']*\')(.*$)" mystrarr = re.sub(dquote,r"\1\n\2\n\3",re.sub(squote,r"\1\n\2\n\3",mystr)).split("\n") #remove zerolenght items mystrarr = [item for item in mystrarr if len(item) <> 0] if len(mystrarr) > 1: mystrarr2 = [] for item in mystrarr: mystrarr2.extend(FortranNamelistIO.splitstring(item)) mystrarr = mystrarr2 return mystrarr ## Do Some testing ------------------------------------------------------- class TestFortranNamelist(TestWEFileIO): """ Test class for MyFileType class """ test_file = './test/fortran/fortran_namelist.nml' def test_output_identical(self): InputFile=FortranNamelistIO(self.test_file) test_fileout=tempfile.mkstemp()[1] InputFile.write(test_fileout) with open(self.test_file, 'r') as f: data_expected = f.read() with open(test_fileout, 'r') as f: data_read = f.read() try: self.assertMultiLineEqual(data_read, data_expected) finally: os.remove(test_fileout) def test_duplication(self): self._test_duplication(FortranNamelistIO, self.test_file) ## Main function --------------------------------------------------------- if __name__ == '__main__': """ This is the main fuction that will run the tests automatically """ unittest.main()
DTUWindEnergy/Python4WindEnergy
py4we/fortran_namelist_io.py
Python
apache-2.0
8,294
[ 30522, 1000, 1000, 1000, 22834, 4280, 2005, 18168, 3490, 14550, 7953, 5371, 9385, 1006, 1039, 1007, 2286, 26718, 2226, 3612, 2943, 3166, 1024, 14459, 24905, 20822, 10373, 1024, 1041, 10024, 1030, 26718, 2226, 1012, 1040, 2243, 2197, 13921, 1024, 2423, 1013, 2340, 1013, 2286, 2171, 9863, 22834, 1024, 2919, 2483, 4972, 2000, 3191, 1998, 11968, 3366, 1037, 3481, 5521, 5371, 2046, 18750, 4487, 28312, 5649, 1998, 4339, 2009, 2067, 2000, 1037, 5371, 1996, 11968, 8043, 2001, 5967, 2013, 1024, 3481, 5521, 1011, 2171, 9863, 2006, 3642, 1012, 8224, 2007, 1996, 2206, 18558, 1024, 1035, 1035, 3166, 1035, 1035, 1027, 1005, 26624, 4574, 3122, 1006, 26624, 1012, 4574, 3122, 1030, 14925, 1012, 1043, 2278, 1012, 6187, 1007, 1005, 1035, 1035, 2544, 1035, 1035, 1027, 1005, 1002, 13921, 1024, 1015, 1012, 1014, 1002, 1005, 1031, 2340, 1024, 1011, 1016, 1033, 1035, 1035, 3058, 1035, 1035, 1027, 1005, 1002, 3058, 1024, 2294, 1013, 5641, 1013, 5709, 2538, 1024, 2385, 1024, 2484, 1002, 1005, 1035, 1035, 9385, 1035, 1035, 1027, 1005, 9385, 1006, 1039, 1007, 2294, 1054, 2361, 2078, 1005, 1035, 1035, 6105, 1035, 1035, 1027, 1005, 1048, 21600, 2140, 1005, 14600, 6764, 1997, 1996, 2433, 1024, 1004, 2171, 9863, 18442, 23569, 2487, 1027, 3643, 2487, 1012, 1012, 1012, 1013, 1000, 1000, 1000, 2013, 1035, 1035, 2925, 1035, 1035, 12324, 6140, 1035, 3853, 2013, 2057, 1035, 5371, 1035, 22834, 12324, 2057, 8873, 23057, 2080, 1010, 3231, 8545, 8873, 23057, 2080, 12324, 3131, 22199, 12324, 16371, 8737, 2100, 2004, 27937, 12324, 9808, 1012, 4130, 2004, 4130, 12324, 25353, 2015, 12324, 2128, 12324, 8915, 8737, 8873, 2571, 12324, 9808, 1035, 1035, 3166, 1035, 1035, 1027, 1005, 1041, 1012, 24905, 20822, 1005, 2465, 3481, 5521, 18442, 9863, 3695, 1006, 2057, 8873, 23057, 2080, 1007, 1024, 1000, 1000, 1000, 3481, 5521, 2171, 9863, 22834, 2465, 13594, 1037, 3481, 5521, 2171, 9863, 5371, 1998, 2404, 2930, 1013, 11709, 2046, 1037, 9206, 4339, 1996, 5371, 2067, 2065, 2734, 1012, 1000, 1000, 1000, 13366, 1035, 4339, 1006, 2969, 1007, 1024, 1000, 1000, 1000, 4339, 1037, 5371, 1006, 2058, 15637, 2094, 1007, 1000, 1000, 1000, 2007, 2330, 1006, 2969, 1012, 5371, 18442, 1010, 1005, 1059, 1005, 1007, 2004, 1042, 1024, 2005, 13221, 2140, 1999, 2969, 1012, 2951, 1024, 1042, 1012, 4339, 1006, 1005, 1004, 1005, 1009, 13221, 2140, 1009, 1005, 1032, 1050, 1005, 1007, 1001, 22210, 9206, 2951, 1006, 1999, 1996, 2168, 2344, 2004, 2009, 2001, 2580, 1010, 4283, 2000, 8909, 1007, 19616, 9863, 1027, 19616, 1006, 2969, 1012, 2951, 1031, 13221, 2140, 1033, 1012, 5167, 1006, 1007, 1010, 3145, 1027, 23375, 1006, 1047, 30524, 1042, 1012, 4339, 1006, 11498, 2213, 1009, 1005, 1027, 1005, 1009, 1005, 1010, 1005, 1012, 3693, 1006, 2969, 1012, 2951, 1031, 13221, 2140, 1033, 1031, 11498, 2213, 1033, 1031, 1005, 11748, 1005, 1033, 1007, 30523, 1010, 1058, 1007, 1024, 1058, 1031, 1005, 8909, 1005, 1033, 1007, 1001, 2005, 11498, 2213, 1999, 2969, 1012, 2951, 1031, 13221, 2140, 1033, 1024, 2005, 11498, 2213, 1999, 4949, 1006, 23375, 1006, 1047, 1010, 1058, 1007, 1024, 1047, 1010, 19616, 9863, 1007, 1024, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1010, 1058, 1007, 1024, 1058, 1031, 1005, 8909, 1005, 1033, 1007, 1001, 2005, 11498, 2213, 1999, 2969, 1012, 2951, 1031, 13221, 2140, 1033, 1024, 2005, 11498, 2213, 1999, 4949, 1006, 23375, 1006, 1047, 1010, 1058, 1007, 1024, 1047, 1010, 19616, 9863, 1007, 1024, 30526 ]
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.streaming.api.windowing.assigners; import org.apache.flink.api.common.ExecutionConfig; import org.apache.flink.api.common.typeutils.TypeSerializer; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.streaming.api.windowing.time.Time; import org.apache.flink.streaming.api.windowing.triggers.ProcessingTimeTrigger; import org.apache.flink.streaming.api.windowing.triggers.Trigger; import org.apache.flink.streaming.api.windowing.windows.TimeWindow; import java.util.Collection; import java.util.Collections; /** * A {@link WindowAssigner} that windows elements into windows based on the current * system time of the machine the operation is running on. Windows cannot overlap. * * <p>For example, in order to window into windows of 1 minute, every 10 seconds: * <pre> {@code * DataStream<Tuple2<String, Integer>> in = ...; * KeyedStream<String, Tuple2<String, Integer>> keyed = in.keyBy(...); * WindowedStream<Tuple2<String, Integer>, String, TimeWindows> windowed = * keyed.window(TumblingProcessingTimeWindows.of(Time.of(1, MINUTES), Time.of(10, SECONDS)); * } </pre> */ public class TumblingProcessingTimeWindows extends WindowAssigner<Object, TimeWindow> { private static final long serialVersionUID = 1L; private final long size; private final long offset; private TumblingProcessingTimeWindows(long size, long offset) { if (offset < 0 || offset >= size) { throw new IllegalArgumentException("TumblingProcessingTimeWindows parameters must satisfy 0 <= offset < size"); } this.size = size; this.offset = offset; } @Override public Collection<TimeWindow> assignWindows(Object element, long timestamp, WindowAssignerContext context) { final long now = context.getCurrentProcessingTime(); long start = TimeWindow.getWindowStartWithOffset(now, offset, size); return Collections.singletonList(new TimeWindow(start, start + size)); } public long getSize() { return size; } @Override public Trigger<Object, TimeWindow> getDefaultTrigger(StreamExecutionEnvironment env) { return ProcessingTimeTrigger.create(); } @Override public String toString() { return "TumblingProcessingTimeWindows(" + size + ")"; } /** * Creates a new {@code TumblingProcessingTimeWindows} {@link WindowAssigner} that assigns * elements to time windows based on the element timestamp. * * @param size The size of the generated windows. * @return The time policy. */ public static TumblingProcessingTimeWindows of(Time size) { return new TumblingProcessingTimeWindows(size.toMilliseconds(), 0); } /** * Creates a new {@code TumblingProcessingTimeWindows} {@link WindowAssigner} that assigns * elements to time windows based on the element timestamp and offset. * * <p>For example, if you want window a stream by hour,but window begins at the 15th minutes * of each hour, you can use {@code of(Time.hours(1),Time.minutes(15))},then you will get * time windows start at 0:15:00,1:15:00,2:15:00,etc. * * <p>Rather than that,if you are living in somewhere which is not using UTC±00:00 time, * such as China which is using UTC+08:00,and you want a time window with size of one day, * and window begins at every 00:00:00 of local time,you may use {@code of(Time.days(1),Time.hours(-8))}. * The parameter of offset is {@code Time.hours(-8))} since UTC+08:00 is 8 hours earlier than UTC time. * * @param size The size of the generated windows. * @param offset The offset which window start would be shifted by. * @return The time policy. */ public static TumblingProcessingTimeWindows of(Time size, Time offset) { return new TumblingProcessingTimeWindows(size.toMilliseconds(), offset.toMilliseconds()); } @Override public TypeSerializer<TimeWindow> getWindowSerializer(ExecutionConfig executionConfig) { return new TimeWindow.Serializer(); } @Override public boolean isEventTime() { return false; } }
WangTaoTheTonic/flink
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/assigners/TumblingProcessingTimeWindows.java
Java
apache-2.0
4,774
[ 30522, 1013, 1008, 1008, 7000, 2000, 1996, 15895, 4007, 3192, 1006, 2004, 2546, 1007, 2104, 2028, 1008, 2030, 2062, 12130, 6105, 10540, 1012, 2156, 1996, 5060, 5371, 1008, 5500, 2007, 2023, 2147, 2005, 3176, 2592, 1008, 4953, 9385, 6095, 1012, 1996, 2004, 2546, 15943, 2023, 5371, 1008, 2000, 2017, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1008, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 1008, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 30524, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 7427, 8917, 1012, 15895, 1012, 13109, 19839, 1012, 11058, 1012, 17928, 1012, 3332, 2075, 1012, 23911, 2545, 1025, 12324, 8917, 1012, 15895, 1012, 13109, 19839, 1012, 17928, 1012, 2691, 1012, 7781, 8663, 8873, 2290, 1025, 12324, 8917, 1012, 15895, 1012, 13109, 19839, 1012, 17928, 1012, 2691, 1012, 2828, 21823, 4877, 1012, 4127, 11610, 28863, 1025, 12324, 8917, 1012, 15895, 1012, 13109, 19839, 1012, 11058, 1012, 17928, 1012, 4044, 1012, 5460, 10288, 8586, 13700, 2368, 21663, 2239, 3672, 1025, 12324, 8917, 1012, 15895, 1012, 13109, 19839, 1012, 11058, 1012, 17928, 1012, 3332, 2075, 1012, 2051, 1012, 2051, 1025, 12324, 8917, 1012, 15895, 1012, 13109, 19839, 1012, 11058, 1012, 17928, 1012, 3332, 2075, 1012, 27099, 1012, 6364, 7292, 18886, 13327, 1025, 12324, 8917, 1012, 15895, 1012, 13109, 19839, 1012, 11058, 1012, 17928, 1012, 3332, 2075, 1012, 27099, 1012, 9495, 1025, 12324, 8917, 1012, 15895, 1012, 13109, 19839, 1012, 11058, 1012, 17928, 1012, 3332, 2075, 1012, 3645, 1012, 2051, 11101, 5004, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 3074, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 6407, 1025, 1013, 1008, 1008, 1008, 1037, 1063, 1030, 4957, 3332, 12054, 23773, 2121, 1065, 2008, 3645, 3787, 2046, 3645, 2241, 2006, 1996, 2783, 1008, 2291, 2051, 1997, 1996, 3698, 1996, 3169, 2003, 2770, 2006, 1012, 3645, 3685, 17702, 1012, 1008, 1008, 1026, 1052, 1028, 2005, 2742, 1010, 1999, 2344, 2000, 3332, 2046, 3645, 1997, 1015, 3371, 1010, 2296, 2184, 3823, 1024, 1008, 1026, 3653, 1028, 1063, 1030, 3642, 1008, 2951, 21422, 1026, 10722, 10814, 2475, 1026, 5164, 1010, 16109, 1028, 1028, 1999, 1027, 1012, 1012, 1012, 1025, 1008, 3145, 2098, 21422, 1026, 5164, 1010, 10722, 10814, 2475, 1026, 5164, 1010, 16109, 1028, 1028, 3145, 2098, 1027, 1999, 1012, 3145, 3762, 1006, 1012, 1012, 1012, 1007, 1025, 1008, 3332, 2098, 21422, 1026, 10722, 10814, 2475, 1026, 5164, 1010, 16109, 1028, 1010, 5164, 1010, 2051, 11101, 15568, 1028, 3332, 2098, 1027, 1008, 3145, 2098, 1012, 3332, 1006, 21552, 21572, 9623, 7741, 7292, 11101, 15568, 1012, 30523, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 30526 ]
/** * Copyright (c) 2013, Jens Hohmuth * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ package com.lessvoid.coregl; import com.lessvoid.coregl.spi.CoreGL; /** * Simple helper methods to render vertex arrays. * * @author void */ public class CoreRender { private final CoreGL gl; CoreRender(final CoreGL gl) { this.gl = gl; } public static CoreRender createCoreRender(final CoreGL gl) { return new CoreRender(gl); } // Lines /** * Render lines. * * @param count * number of vertices */ public void renderLines(final int count) { gl.glDrawArrays(gl.GL_LINE_STRIP(), 0, count); gl.checkGLError("glDrawArrays"); } /** * Render adjacent lines. * * @param count * number of vertices */ public void renderLinesAdjacent(final int count) { gl.glDrawArrays(gl.GL_LINE_STRIP_ADJACENCY(), 0, count); gl.checkGLError("glDrawArrays"); } // Triangle Strip /** * Render the currently active VAO using triangle strips with the given number * of vertices. * * @param count * number of vertices to render as triangle strips */ public void renderTriangleStrip(final int count) { gl.glDrawArrays(gl.GL_TRIANGLE_STRIP(), 0, count); gl.checkGLError("glDrawArrays"); } /** * Render the currently active VAO using triangle strips, sending the given * number of indizes. * * @param count * number of indizes to render as triangle strips */ public void renderTriangleStripIndexed(final int count) { gl.glDrawElements(gl.GL_TRIANGLE_STRIP(), count, gl.GL_UNSIGNED_INT(), 0); gl.checkGLError("glDrawElements(GL_TRIANGLE_STRIP)"); } /** * Render the currently active VAO using triangle strips with the given number * of vertices AND do that primCount times. * * @param count * number of vertices to render as triangle strips per primitve * @param primCount * number of primitives to render */ public void renderTriangleStripInstances(final int count, final int primCount) { gl.glDrawArraysInstanced(gl.GL_TRIANGLE_STRIP(), 0, count, primCount); gl.checkGLError("glDrawArraysInstanced(GL_TRIANGLE_STRIP)"); } // Triangle Fan /** * Render the currently active VAO using triangle fan with the given number of * vertices. * * @param count * number of vertices to render as triangle fan */ public void renderTriangleFan(final int count) { gl.glDrawArrays(gl.GL_TRIANGLE_FAN(), 0, count); gl.checkGLError("glDrawArrays"); } /** * Render the currently active VAO using triangle fans, sending the given * number of indizes. * * @param count * number of indizes to render as triangle fans. */ public void renderTriangleFanIndexed(final int count) { gl.glDrawElements(gl.GL_TRIANGLE_FAN(), count, gl.GL_UNSIGNED_INT(), 0); gl.checkGLError("glDrawElements(GL_TRIANGLE_FAN)"); } // Individual Triangles /** * Render the currently active VAO using triangles with the given number of * vertices. * * @param vertexCount * number of vertices to render as triangle strips */ public void renderTriangles(final int vertexCount) { gl.glDrawArrays(gl.GL_TRIANGLES(), 0, vertexCount); gl.checkGLError("glDrawArrays"); } /** * Render the currently active VAO using triangles with the given number of * vertices starting at the given offset. * * @param offset * offset to start sending vertices * @param vertexCount * number of vertices to render as triangle strips */ public void renderTrianglesOffset(final int offset, final int vertexCount) { gl.glDrawArrays(gl.GL_TRIANGLES(), offset, vertexCount); gl.checkGLError("glDrawArrays"); } /** * Render the currently active VAO using triangles with the given number of * vertices. * * @param count * number of vertices to render as triangles */ public void renderTrianglesIndexed(final int count) { gl.glDrawElements(gl.GL_TRIANGLES(), count, gl.GL_UNSIGNED_INT(), 0); gl.checkGLError("glDrawElements"); } /** * Render the currently active VAO using triangles with the given number of * vertices AND do that primCount times. * * @param count * number of vertices to render as triangles per primitve * @param primCount * number of primitives to render */ public void renderTrianglesInstances(final int count, final int primCount) { gl.glDrawArraysInstanced(gl.GL_TRIANGLES(), 0, count, primCount); gl.checkGLError("glDrawArraysInstanced(GL_TRIANGLES)"); } // Points /** * Render the currently active VAO using points with the given number of * vertices. * * @param count * number of vertices to render as points */ public void renderPoints(final int count) { gl.glDrawArrays(gl.GL_POINTS(), 0, count); gl.checkGLError("glDrawArrays(GL_POINTS)"); } /** * Render the currently active VAO using points with the given number of * vertices AND do that primCount times. * * @param count * number of vertices to render as points per primitive * @param primCount * number of primitives to render */ public void renderPointsInstances(final int count, final int primCount) { gl.glDrawArraysInstanced(gl.GL_POINTS(), 0, count, primCount); gl.checkGLError("glDrawArraysInstanced(GL_POINTS)"); } // Utils /** * Set the clear color. * * @param r * red * @param g * green * @param b * blue * @param a * alpha */ public void clearColor(final float r, final float g, final float b, final float a) { gl.glClearColor(r, g, b, a); } /** * Clear the color buffer. */ public void clearColorBuffer() { gl.glClear(gl.GL_COLOR_BUFFER_BIT()); } }
bgroenks96/coregl
coregl-utils/src/main/java/com/lessvoid/coregl/CoreRender.java
Java
bsd-2-clause
7,233
[ 30522, 1013, 1008, 1008, 1008, 9385, 1006, 1039, 1007, 2286, 1010, 25093, 7570, 14227, 14317, 1008, 2035, 2916, 9235, 1012, 1008, 1008, 25707, 1998, 2224, 1999, 3120, 1998, 12441, 3596, 1010, 2007, 2030, 2302, 1008, 14080, 1010, 2024, 7936, 3024, 2008, 1996, 2206, 3785, 2024, 1008, 2777, 1024, 1008, 1008, 1008, 25707, 2015, 1997, 3120, 3642, 2442, 9279, 1996, 2682, 9385, 1008, 5060, 1010, 2023, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 1012, 1008, 1008, 25707, 2015, 1999, 12441, 2433, 2442, 21376, 1996, 2682, 9385, 1008, 5060, 1010, 2023, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 1999, 1996, 1008, 12653, 1998, 1013, 2030, 2060, 4475, 3024, 2007, 1996, 4353, 1012, 1008, 1008, 2023, 4007, 2003, 3024, 2011, 1996, 3166, 1998, 16884, 1036, 1036, 2004, 2003, 1005, 1005, 1998, 1008, 2151, 4671, 2030, 13339, 10943, 3111, 1010, 2164, 1010, 2021, 2025, 3132, 2000, 1010, 1996, 1008, 13339, 10943, 3111, 1997, 6432, 8010, 1998, 10516, 2005, 1037, 3327, 1008, 3800, 2024, 5860, 19771, 7583, 1012, 1999, 2053, 2724, 4618, 1996, 3166, 2030, 16884, 2022, 1008, 20090, 2005, 2151, 3622, 1010, 14958, 1010, 5043, 2389, 1010, 2569, 1010, 27792, 1010, 2030, 1008, 9530, 3366, 15417, 4818, 12394, 1006, 2164, 1010, 2021, 2025, 3132, 2000, 1010, 21423, 1997, 1008, 7681, 5350, 2030, 2578, 1025, 3279, 1997, 2224, 1010, 2951, 1010, 2030, 11372, 1025, 2030, 2449, 1008, 24191, 1007, 2174, 3303, 1998, 2006, 2151, 3399, 1997, 14000, 1010, 3251, 1999, 1008, 3206, 1010, 9384, 14000, 1010, 2030, 17153, 2102, 1006, 2164, 27988, 2030, 4728, 1007, 1008, 17707, 1999, 2151, 2126, 2041, 1997, 1996, 2224, 1997, 2023, 4007, 1010, 2130, 2065, 9449, 1997, 1008, 1996, 6061, 1997, 2107, 4053, 1012, 1008, 1013, 7427, 4012, 1012, 2625, 6767, 3593, 1012, 4563, 23296, 1025, 12324, 4012, 1012, 2625, 6767, 3593, 1012, 4563, 23296, 1012, 11867, 2072, 1012, 4563, 23296, 1025, 1013, 1008, 1008, 1008, 3722, 2393, 2121, 4725, 2000, 17552, 19449, 27448, 1012, 1008, 1008, 1030, 3166, 11675, 1008, 1013, 2270, 2465, 4563, 7389, 4063, 1063, 2797, 2345, 4563, 23296, 1043, 2140, 1025, 4563, 7389, 4063, 1006, 2345, 30524, 1012, 1043, 2140, 1027, 1043, 2140, 1025, 1065, 2270, 10763, 4563, 7389, 4063, 3443, 17345, 7389, 4063, 1006, 2345, 4563, 23296, 1043, 2140, 1007, 1063, 2709, 2047, 4563, 7389, 4063, 1006, 1043, 2140, 1007, 1025, 1065, 1013, 1013, 3210, 1013, 1008, 1008, 1008, 17552, 3210, 1012, 1008, 1008, 1030, 11498, 2213, 4175, 1008, 2193, 1997, 18984, 1008, 1013, 2270, 11675, 17552, 12735, 1006, 2345, 20014, 4175, 1007, 1063, 1043, 2140, 1012, 1043, 6392, 2527, 9028, 9447, 2015, 1006, 1043, 2140, 1012, 1043, 2140, 1035, 2240, 1035, 6167, 1006, 1007, 1010, 1014, 1010, 4175, 1007, 1025, 1043, 2140, 1012, 4638, 17420, 29165, 1006, 1000, 1043, 6392, 2527, 9028, 9447, 2015, 1000, 1007, 1025, 1065, 1013, 1008, 1008, 1008, 17552, 5516, 3210, 1012, 1008, 1008, 1030, 11498, 2213, 4175, 1008, 2193, 1997, 18984, 1008, 1013, 2270, 11675, 17552, 12735, 4215, 3900, 13013, 1006, 2345, 20014, 4175, 1007, 1063, 1043, 2140, 30523, 4563, 23296, 1043, 2140, 1007, 1063, 2023, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4563, 23296, 1043, 2140, 1007, 1063, 2023, 30526 ]
// jq_StaticMethod.java, created Mon Feb 5 23:23:20 2001 by joewhaley // Copyright (C) 2001-3 John Whaley <[email protected]> // Licensed under the terms of the GNU LGPL; see COPYING for details. package Clazz; //friend jq_ClassLoader; import Bootstrap.PrimordialClassLoader; import Main.jq; import UTF.Utf8; import Util.Assert; /* * @author John Whaley <[email protected]> * @version $Id: jq_StaticMethod.java,v 1.18 2003/05/12 10:05:13 joewhaley Exp $ */ public class jq_StaticMethod extends jq_Method { // clazz, name, desc, access_flags are inherited protected jq_StaticMethod(jq_Class clazz, jq_NameAndDesc nd) { super(clazz, nd); } // ONLY TO BE CALLED BY jq_ClassLoader!!! static jq_StaticMethod newStaticMethod(jq_Class clazz, jq_NameAndDesc nd) { return new jq_StaticMethod(clazz, nd); } protected void parseMethodSignature() { Utf8.MethodDescriptorIterator i = nd.getDesc().getParamDescriptors(); // count them up int num = 0, words = 0; while (i.hasNext()) { i.nextUtf8(); ++num; } // get them for real param_types = new jq_Type[num]; i = nd.getDesc().getParamDescriptors(); for (int j=0; j<num; ++j) { Utf8 pd = i.nextUtf8(); param_types[j] = PrimordialClassLoader.getOrCreateType(clazz.getClassLoader(), pd); ++words; if ((param_types[j] == jq_Primitive.LONG) || (param_types[j] == jq_Primitive.DOUBLE)) ++words; } param_words = words; Utf8 rd = i.getReturnDescriptor(); return_type = PrimordialClassLoader.getOrCreateType(clazz.getClassLoader(), rd); } public final boolean needsDynamicLink(jq_Method method) { if (getDeclaringClass().needsDynamicLink(method)) return true; if (!jq.RunningNative) return false; return (state < STATE_SFINITIALIZED); } public final boolean isStatic() { return true; } public boolean isClassInitializer() { return false; } public final jq_Member resolve() { return resolve1(); } public jq_StaticMethod resolve1() { this.clazz.load(); if (this.state >= STATE_LOADED) return this; // this reference may be to a superclass or superinterface. jq_StaticMethod m = this.clazz.getStaticMethod(nd); if (m != null) return m; throw new NoSuchMethodError(this.toString()); } public final void prepare() { Assert._assert(state == STATE_LOADED); state = STATE_PREPARED; } public final void unprepare() { Assert._assert(state == STATE_PREPARED); state = STATE_LOADED; } public void accept(jq_MethodVisitor mv) { mv.visitStaticMethod(this); super.accept(mv); } public static final jq_Class _class; static { _class = (jq_Class)PrimordialClassLoader.loader.getOrCreateBSType("LClazz/jq_StaticMethod;"); } }
wctaiwan/joeq
Clazz/jq_StaticMethod.java
Java
lgpl-2.1
2,933
[ 30522, 1013, 1013, 1046, 4160, 1035, 10763, 11368, 6806, 2094, 1012, 9262, 1010, 2580, 12256, 13114, 1019, 2603, 1024, 2603, 1024, 2322, 2541, 2011, 3533, 2860, 15238, 2100, 1013, 1013, 9385, 1006, 1039, 1007, 2541, 1011, 1017, 2198, 13156, 2100, 1026, 1046, 2860, 15238, 2100, 1030, 2632, 2819, 1012, 10210, 1012, 3968, 2226, 1028, 1013, 1013, 7000, 2104, 1996, 3408, 1997, 1996, 27004, 1048, 21600, 2140, 1025, 2156, 24731, 2005, 4751, 1012, 7427, 18856, 10936, 2480, 1025, 1013, 1013, 2767, 1046, 4160, 1035, 2465, 11066, 2121, 1025, 12324, 6879, 6494, 2361, 1012, 26927, 5302, 25070, 26266, 11066, 2121, 1025, 12324, 2364, 1012, 1046, 4160, 1025, 12324, 21183, 2546, 1012, 21183, 2546, 2620, 1025, 12324, 21183, 4014, 1012, 20865, 1025, 1013, 1008, 1008, 1030, 3166, 2198, 13156, 2100, 1026, 1046, 2860, 15238, 2100, 1030, 2632, 2819, 1012, 10210, 1012, 3968, 2226, 1028, 1008, 1030, 2544, 1002, 8909, 1024, 1046, 4160, 1035, 10763, 11368, 6806, 2094, 1012, 9262, 1010, 1058, 1015, 1012, 2324, 2494, 1013, 5709, 1013, 30524, 4078, 2278, 1010, 3229, 1035, 9245, 2024, 7900, 5123, 1046, 4160, 1035, 10763, 11368, 6806, 2094, 1006, 1046, 4160, 1035, 2465, 18856, 10936, 2480, 1010, 1046, 4160, 1035, 2171, 5685, 6155, 2278, 1050, 2094, 1007, 1063, 3565, 1006, 18856, 10936, 2480, 1010, 1050, 2094, 1007, 1025, 1065, 1013, 1013, 2069, 2000, 2022, 2170, 2011, 1046, 4160, 1035, 2465, 11066, 2121, 999, 999, 999, 10763, 1046, 4160, 1035, 10763, 11368, 6806, 2094, 2739, 29336, 2594, 11368, 6806, 2094, 1006, 1046, 4160, 1035, 2465, 18856, 10936, 2480, 1010, 1046, 4160, 1035, 2171, 5685, 6155, 2278, 1050, 2094, 1007, 1063, 2709, 2047, 1046, 4160, 1035, 10763, 11368, 6806, 2094, 1006, 18856, 10936, 2480, 1010, 1050, 2094, 1007, 1025, 1065, 5123, 11675, 11968, 3366, 11368, 6806, 5104, 23773, 4017, 5397, 1006, 1007, 1063, 21183, 2546, 2620, 1012, 4118, 6155, 23235, 10050, 14621, 4263, 1045, 1027, 1050, 2094, 1012, 2131, 6155, 2278, 1006, 1007, 1012, 2131, 28689, 26876, 2229, 23235, 5668, 1006, 1007, 1025, 1013, 1013, 4175, 2068, 2039, 20014, 16371, 2213, 1027, 1014, 1010, 2616, 1027, 1014, 1025, 2096, 1006, 1045, 1012, 8440, 10288, 2102, 1006, 1007, 1007, 1063, 1045, 1012, 2279, 4904, 2546, 2620, 1006, 1007, 1025, 1009, 1009, 16371, 2213, 1025, 1065, 1013, 1013, 2131, 2068, 2005, 2613, 11498, 2213, 1035, 4127, 1027, 2047, 1046, 4160, 1035, 2828, 1031, 16371, 2213, 1033, 1025, 1045, 1027, 1050, 2094, 1012, 2131, 6155, 2278, 1006, 1007, 1012, 2131, 28689, 26876, 2229, 23235, 5668, 1006, 1007, 1025, 2005, 1006, 20014, 1046, 1027, 1014, 1025, 1046, 1026, 16371, 2213, 1025, 1009, 1009, 1046, 1007, 1063, 21183, 2546, 2620, 22851, 1027, 1045, 1012, 2279, 4904, 2546, 2620, 1006, 1007, 1025, 11498, 2213, 1035, 4127, 1031, 1046, 1033, 1027, 26927, 5302, 25070, 26266, 11066, 2121, 1012, 2131, 2953, 16748, 3686, 13874, 1006, 18856, 10936, 2480, 30523, 2260, 2184, 1024, 5709, 1024, 2410, 3533, 2860, 15238, 2100, 4654, 2361, 1002, 1008, 1013, 2270, 2465, 1046, 4160, 1035, 10763, 11368, 6806, 2094, 8908, 1046, 4160, 1035, 4118, 1063, 1013, 1013, 18856, 10936, 2480, 1010, 2171, 1010, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2260, 2184, 1024, 5709, 1024, 2410, 3533, 2860, 15238, 2100, 4654, 2361, 1002, 1008, 1013, 2270, 2465, 1046, 4160, 1035, 10763, 11368, 6806, 2094, 8908, 1046, 4160, 1035, 4118, 1063, 1013, 1013, 18856, 10936, 2480, 1010, 2171, 1010, 30526 ]
## Institutional Proposal Persons [/instprop/api/v1/institutional-proposal-persons/] ### Get Institutional Proposal Persons by Key [GET /instprop/api/v1/institutional-proposal-persons/(key)] + Request + Headers Authorization: Bearer {api-key} Content-Type: application/json + Response 200 + Headers Content-Type: application/json;charset=UTF-8 + Body {"institutionalProposalContactId": "(val)","personId": "(val)","rolodexId": "(val)","fullName": "(val)","academicYearEffort": "(val)","calendarYearEffort": "(val)","summerEffort": "(val)","totalEffort": "(val)","faculty": "(val)","roleCode": "(val)","keyPersonRole": "(val)","proposalNumber": "(val)","sequenceNumber": "(val)","institutionalProposal.proposalId": "(val)","_primaryKey": "(val)"} ### Get All Institutional Proposal Persons [GET /instprop/api/v1/institutional-proposal-persons/] + Request + Headers Authorization: Bearer {api-key} Content-Type: application/json + Response 200 + Headers Content-Type: application/json;charset=UTF-8 + Body [ {"institutionalProposalContactId": "(val)","personId": "(val)","rolodexId": "(val)","fullName": "(val)","academicYearEffort": "(val)","calendarYearEffort": "(val)","summerEffort": "(val)","totalEffort": "(val)","faculty": "(val)","roleCode": "(val)","keyPersonRole": "(val)","proposalNumber": "(val)","sequenceNumber": "(val)","institutionalProposal.proposalId": "(val)","_primaryKey": "(val)"}, {"institutionalProposalContactId": "(val)","personId": "(val)","rolodexId": "(val)","fullName": "(val)","academicYearEffort": "(val)","calendarYearEffort": "(val)","summerEffort": "(val)","totalEffort": "(val)","faculty": "(val)","roleCode": "(val)","keyPersonRole": "(val)","proposalNumber": "(val)","sequenceNumber": "(val)","institutionalProposal.proposalId": "(val)","_primaryKey": "(val)"} ] ### Get All Institutional Proposal Persons with Filtering [GET /instprop/api/v1/institutional-proposal-persons/] + Parameters + institutionalProposalContactId (optional) - InstitutionalProposal Contact ID. Maximum length is 8. + personId (optional) - + rolodexId (optional) - + fullName (optional) - Full Name. Maximum length is 90. + academicYearEffort (optional) - Academic Year Effort. Maximum length is 7. + calendarYearEffort (optional) - Calendar Year Effort. Maximum length is 7. + summerEffort (optional) - Summer Effort. Maximum length is 7. + totalEffort (optional) - Total Effort. Maximum length is 7. + faculty (optional) - Faculty flag. Maximum length is 1. + roleCode (optional) - + keyPersonRole (optional) - Project Role. Maximum length is 60. + proposalNumber (optional) - Institutional Proposal Number. Maximum length is 8. + sequenceNumber (optional) - Sequence Number. Maximum length is 4. + institutionalProposal.proposalId (optional) - + Request + Headers Authorization: Bearer {api-key} Content-Type: application/json + Response 200 + Headers Content-Type: application/json;charset=UTF-8 + Body [ {"institutionalProposalContactId": "(val)","personId": "(val)","rolodexId": "(val)","fullName": "(val)","academicYearEffort": "(val)","calendarYearEffort": "(val)","summerEffort": "(val)","totalEffort": "(val)","faculty": "(val)","roleCode": "(val)","keyPersonRole": "(val)","proposalNumber": "(val)","sequenceNumber": "(val)","institutionalProposal.proposalId": "(val)","_primaryKey": "(val)"}, {"institutionalProposalContactId": "(val)","personId": "(val)","rolodexId": "(val)","fullName": "(val)","academicYearEffort": "(val)","calendarYearEffort": "(val)","summerEffort": "(val)","totalEffort": "(val)","faculty": "(val)","roleCode": "(val)","keyPersonRole": "(val)","proposalNumber": "(val)","sequenceNumber": "(val)","institutionalProposal.proposalId": "(val)","_primaryKey": "(val)"} ] ### Get Schema for Institutional Proposal Persons [GET /instprop/api/v1/institutional-proposal-persons/] + Parameters + _schema (required) - will instruct the endpoint to return a schema data structure for the resource + Request + Headers Authorization: Bearer {api-key} Content-Type: application/json + Response 200 + Headers Content-Type: application/json;charset=UTF-8 + Body {"columns":["institutionalProposalContactId","personId","rolodexId","fullName","academicYearEffort","calendarYearEffort","summerEffort","totalEffort","faculty","roleCode","keyPersonRole","proposalNumber","sequenceNumber","institutionalProposal.proposalId"],"primaryKey":"institutionalProposalContactId"} ### Get Blueprint API specification for Institutional Proposal Persons [GET /instprop/api/v1/institutional-proposal-persons/] + Parameters + _blueprint (required) - will instruct the endpoint to return an api blueprint markdown file for the resource + Request + Headers Authorization: Bearer {api-key} Content-Type: text/markdown + Response 200 + Headers Content-Type: text/markdown;charset=UTF-8 Content-Disposition:attachment; filename="Institutional Proposal Persons.md" transfer-encoding:chunked
UniversityOfHawaiiORS/kc
coeus-webapp/src/main/jsfrontend/apidocs/instprop/institutional-proposal-persons.md
Markdown
agpl-3.0
5,509
[ 30522, 1001, 1001, 12148, 6378, 5381, 1031, 1013, 16021, 25856, 18981, 1013, 17928, 1013, 1058, 2487, 1013, 12148, 1011, 6378, 1011, 5381, 1013, 1033, 1001, 1001, 1001, 2131, 12148, 6378, 5381, 2011, 3145, 1031, 2131, 1013, 16021, 25856, 18981, 1013, 17928, 1013, 1058, 2487, 1013, 12148, 1011, 6378, 1011, 5381, 1013, 30524, 20346, 2015, 4180, 1011, 2828, 1024, 4646, 1013, 1046, 3385, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1009, 2303, 1063, 1000, 12148, 21572, 6873, 12002, 8663, 2696, 6593, 3593, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2711, 3593, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 20996, 4135, 3207, 9048, 2094, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2440, 18442, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 3834, 29100, 12879, 13028, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 8094, 29100, 12879, 13028, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2621, 12879, 13028, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2561, 12879, 13028, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 4513, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2535, 16044, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 3145, 27576, 13153, 2063, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 6378, 19172, 5677, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 5537, 19172, 5677, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 12148, 21572, 6873, 12002, 1012, 6378, 3593, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 1035, 3078, 14839, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1065, 1001, 1001, 1001, 2131, 2035, 12148, 6378, 5381, 1031, 2131, 1013, 16021, 25856, 18981, 1013, 17928, 1013, 1058, 2487, 1013, 12148, 1011, 6378, 1011, 5381, 1013, 1033, 1009, 5227, 1009, 20346, 2015, 20104, 1024, 20905, 1063, 17928, 1011, 3145, 1065, 4180, 1011, 2828, 1024, 4646, 1013, 1046, 3385, 1009, 3433, 3263, 1009, 20346, 2015, 4180, 1011, 2828, 1024, 4646, 1013, 1046, 3385, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1009, 2303, 1031, 1063, 1000, 12148, 21572, 6873, 12002, 8663, 2696, 6593, 3593, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2711, 3593, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 20996, 4135, 3207, 9048, 2094, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2440, 18442, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 3834, 29100, 12879, 13028, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 8094, 29100, 12879, 13028, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2621, 12879, 13028, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2561, 12879, 13028, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 4513, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 2535, 16044, 1000, 1024, 1000, 1006, 11748, 1007, 1000, 1010, 1000, 3145, 27576, 13153, 2063, 1000, 1024, 1000, 1006, 11748, 1007, 30523, 1006, 3145, 1007, 1033, 1009, 5227, 1009, 20346, 2015, 20104, 1024, 20905, 1063, 17928, 1011, 3145, 1065, 4180, 1011, 2828, 1024, 4646, 1013, 1046, 3385, 1009, 3433, 3263, 1009, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1006, 3145, 1007, 1033, 1009, 5227, 1009, 20346, 2015, 20104, 1024, 20905, 1063, 17928, 1011, 3145, 1065, 4180, 1011, 2828, 1024, 4646, 1013, 1046, 3385, 1009, 3433, 3263, 1009, 30526 ]
var http=require('http'); var url = require('url') var httpget = function ( url ) { return new Promise(( resolve,reject)=>{ http.get( url ,function(req,res){ var html=''; req.on('data',function(data){ html+=data; }); req.on('end',function(){ resolve(html); }); req.on('error',function(err){ reject(err); }); }); }) } var httppostsimple = function (posturl,port,postData,username,passwd) { var postDatastr=JSON.stringify(postData); var urlObj = url.parse(posturl) var p = username + ":" + passwd; var b = new Buffer( p ); var cred = b.toString('base64'); var options={ hostname:urlObj.hostname, port:port, path: urlObj.pathname, method:'POST', headers:{ 'Content-Type':'text/plain', 'Content-Length':Buffer.byteLength(postDatastr), 'Authorization': `Basic ${cred}` } } return httppost(options,postDatastr); } var httppost = function (options,postData) { /* var options={ hostname:'www.gongjuji.net', port:80, path:'/', method:'POST', headers:{ //'Content-Type':'application/x-www-form-urlencoded', 'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8', 'Content-Length':Buffer.byteLength(postData) } }*/ return new Promise(( resolve,reject)=>{ var buffers = []; var req=http.request(options, function(res) { res.on('data',function(reposebuffer){ buffers.push(reposebuffer); }); res.on('end',function(){ //console.log('No more data in response.********'); var wholeData = Buffer.concat(buffers); var dataStr = wholeData.toString('utf8'); resolve(dataStr) }); res.on('error',function(err){ reject(err); }); }); req.write(postData); req.end(); }) } exports.httpget = httpget; exports.httppost =httppost; exports.httppostsimple = httppostsimple;
17golang/nodejsstudy
httpclient.js
JavaScript
apache-2.0
2,282
[ 30522, 13075, 8299, 1027, 5478, 1006, 1005, 8299, 1005, 1007, 1025, 13075, 30524, 10663, 1010, 15454, 1007, 1027, 1028, 1063, 8299, 1012, 2131, 1006, 24471, 2140, 1010, 3853, 1006, 2128, 4160, 1010, 24501, 1007, 1063, 13075, 16129, 1027, 1005, 1005, 1025, 2128, 4160, 1012, 2006, 1006, 1005, 2951, 1005, 1010, 3853, 1006, 2951, 1007, 1063, 16129, 1009, 1027, 2951, 1025, 1065, 1007, 1025, 2128, 4160, 1012, 2006, 1006, 1005, 2203, 1005, 1010, 3853, 1006, 1007, 1063, 10663, 1006, 16129, 1007, 1025, 1065, 1007, 1025, 2128, 4160, 1012, 2006, 1006, 1005, 7561, 1005, 1010, 3853, 1006, 9413, 2099, 1007, 1063, 15454, 1006, 9413, 2099, 1007, 1025, 1065, 1007, 1025, 1065, 1007, 1025, 1065, 1007, 1065, 13075, 8299, 19894, 5332, 23344, 1027, 3853, 1006, 2695, 3126, 2140, 1010, 3417, 1010, 2695, 2850, 2696, 1010, 5310, 18442, 1010, 3413, 21724, 1007, 1063, 13075, 2695, 2850, 10230, 16344, 1027, 1046, 3385, 1012, 5164, 8757, 1006, 2695, 2850, 2696, 1007, 1025, 13075, 24471, 4135, 2497, 3501, 1027, 24471, 2140, 1012, 11968, 3366, 1006, 2695, 3126, 2140, 1007, 13075, 1052, 1027, 5310, 18442, 1009, 1000, 1024, 1000, 1009, 3413, 21724, 1025, 13075, 1038, 1027, 2047, 17698, 1006, 1052, 1007, 1025, 13075, 13675, 2098, 1027, 1038, 1012, 2000, 3367, 4892, 1006, 1005, 2918, 21084, 1005, 1007, 1025, 13075, 7047, 1027, 1063, 3677, 18442, 1024, 24471, 4135, 2497, 3501, 1012, 3677, 18442, 1010, 3417, 1024, 3417, 1010, 4130, 1024, 24471, 4135, 2497, 3501, 1012, 4130, 18442, 1010, 4118, 1024, 1005, 2695, 1005, 1010, 20346, 2015, 1024, 1063, 1005, 4180, 1011, 2828, 1005, 1024, 1005, 3793, 1013, 5810, 1005, 1010, 1005, 4180, 1011, 3091, 1005, 1024, 17698, 1012, 24880, 7770, 13512, 2232, 1006, 2695, 2850, 10230, 16344, 1007, 1010, 1005, 20104, 1005, 1024, 1036, 3937, 1002, 1063, 13675, 2098, 1065, 1036, 1065, 1065, 2709, 8299, 19894, 1006, 7047, 1010, 2695, 2850, 10230, 16344, 1007, 1025, 1065, 13075, 8299, 19894, 1027, 3853, 1006, 7047, 1010, 2695, 2850, 2696, 1007, 1063, 1013, 1008, 13075, 7047, 1027, 1063, 3677, 18442, 1024, 1005, 7479, 1012, 17242, 9103, 4478, 1012, 5658, 1005, 1010, 3417, 1024, 3770, 1010, 4130, 1024, 1005, 1013, 1005, 1010, 4118, 1024, 1005, 2695, 1005, 1010, 20346, 2015, 1024, 1063, 1013, 1013, 1005, 4180, 1011, 2828, 1005, 1024, 1005, 4646, 1013, 1060, 1011, 7479, 1011, 2433, 1011, 24471, 7770, 16044, 2094, 1005, 1010, 1005, 4180, 1011, 2828, 1005, 1024, 1005, 4646, 1013, 1060, 1011, 7479, 1011, 2433, 1011, 24471, 7770, 16044, 2094, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1005, 1010, 1005, 4180, 1011, 3091, 1005, 1024, 17698, 1012, 24880, 7770, 13512, 2232, 1006, 2695, 2850, 2696, 1007, 1065, 1065, 1008, 1013, 2709, 2047, 4872, 1006, 1006, 10663, 1010, 15454, 1007, 1027, 1028, 1063, 13075, 17698, 2015, 1027, 1031, 1033, 1025, 13075, 2128, 4160, 1027, 8299, 1012, 5227, 1006, 7047, 1010, 3853, 1006, 24501, 1007, 1063, 24501, 1012, 2006, 1006, 1005, 2951, 1005, 1010, 3853, 30523, 24471, 2140, 1027, 5478, 1006, 1005, 24471, 2140, 1005, 1007, 13075, 8299, 18150, 1027, 3853, 1006, 24471, 2140, 1007, 1063, 2709, 2047, 4872, 1006, 1006, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 24471, 2140, 1027, 5478, 1006, 1005, 24471, 2140, 1005, 1007, 13075, 8299, 18150, 1027, 3853, 1006, 24471, 2140, 1007, 1063, 2709, 2047, 4872, 1006, 1006, 30526 ]
<?php /**************************************************************************/ /* PHP-NUKE: Advanced Content Management System */ /* ============================================ */ /* */ /* This is the language module with all the system messages */ /* */ /* If you made a translation, please go to the site and send to me */ /* the translated file. Please keep the original text order by modules, */ /* and just one message per line, also double check your translation! */ /* */ /* You need to change the second quoted phrase, not the capital one! */ /* */ /* If you need to use double quotes (') remember to add a backslash (\), */ /* so your entry will look like: This is \'double quoted\' text. */ /* And, if you use HTML code, please double check it. */ /* If you create the correct translation for this file please post it */ /* in the forums at www.ravenphpscripts.com */ /* */ /**************************************************************************/ define('_MA_ARTICLE','Articles'); define('_MA_ARTICLEID','Article #'); define('_MA_ARTICLE_AUTHOR_UPDATE','has been tied to '); define('_MA_ARTICLE_UPDATE_WARNING','You must enter an Article ID <strong>and</strong> an author username to move an article.'); define('_MA_READS_TO_MAKE_TOP10','Reads to make top 10: '); define('_MA_NO_AUTHORS','No User Authors'); define('_TOPWELCOME','Welcome to the Articles and Authors page for '); define('_WELCOME','Welcome'); define('_SUBMITCONTENT','Submit Content'); define('_SUBMITARTICLE','Submit Article'); define('_WRITEREVIEW','Write Review'); define('_SUBMITWEBLINK','Submit Web Link'); define('_STATISTICS','Statistics'); define('_QUICKSTATOVERVIEW','Quick Stat Overview'); define('_TOPRECENTSTORIES','Top Stories in the last 30 days'); define('_TOPALLSTORIES','Top Stories of all time'); define('_TOPAUTHORS','Top Authors'); define('_MONTHLYARTICLEOVERVIEW','Monthly Article Overview'); define('_ARTICLECOUNTBYTOPIC','Article Count By Topic'); define('_ARTICLECOUNTBYCATEGORY','Article Count By Category'); define('_STORYREADS','Reads'); define('_STORIES','Stories'); define('_STORYAVGREADS','Avg Reads'); define('_OVERALL','Overall'); define('_RECENT','Recent'); define('_STORYTITLE','Title'); define('_STORYDATE','Date'); define('_AUTHORNAME','Author'); define('_READSPERDAY','Reads Per Day'); define('_READSTORIES','most read stories'); define('_TOP','Top'); define('_AUTHORS','Authors'); define('_NUMSTORIES','# Stories'); define('_TOTALRATINGS','Total Ratings'); define('_AVGRATINGS','Avg Rating'); define('_MONTH','Month'); define('_CATEGORY','Category'); define('_LVOTES','votes'); define('_HITS','Hits'); define('_LINKSDATESTRING','%d. %m. %Y'); ?>
TGates71/PNPv1-Languages
PNPv101-lang-english/modules/MetAuthors/language/lang-english.php
PHP
gpl-3.0
3,154
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1008, 25718, 1011, 16371, 3489, 1024, 3935, 30524, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1008, 1013, 1013, 1008, 1008, 1013, 1013, 1008, 2023, 2003, 1996, 2653, 11336, 2007, 2035, 1996, 2291, 7696, 1008, 1013, 1013, 1008, 1008, 1013, 1013, 1008, 2065, 2017, 2081, 1037, 5449, 1010, 3531, 2175, 2000, 1996, 2609, 1998, 4604, 2000, 2033, 1008, 1013, 1013, 1008, 1996, 5421, 5371, 1012, 3531, 2562, 1996, 2434, 3793, 2344, 2011, 14184, 1010, 1008, 1013, 1013, 1008, 1998, 2074, 2028, 4471, 2566, 2240, 1010, 2036, 3313, 4638, 2115, 5449, 999, 1008, 1013, 1013, 1008, 1008, 1013, 1013, 1008, 2017, 2342, 2000, 2689, 1996, 2117, 9339, 7655, 1010, 2025, 1996, 3007, 2028, 999, 1008, 1013, 1013, 1008, 1008, 1013, 1013, 1008, 2065, 2017, 2342, 2000, 2224, 3313, 16614, 1006, 1005, 1007, 3342, 2000, 5587, 1037, 10457, 27067, 1006, 1032, 1007, 1010, 1008, 1013, 1013, 1008, 2061, 2115, 4443, 2097, 2298, 2066, 1024, 2023, 2003, 1032, 1005, 3313, 9339, 1032, 1005, 3793, 1012, 1008, 1013, 1013, 1008, 1998, 1010, 2065, 2017, 2224, 16129, 3642, 1010, 3531, 3313, 4638, 2009, 1012, 1008, 1013, 1013, 1008, 2065, 2017, 3443, 1996, 6149, 5449, 2005, 2023, 5371, 3531, 2695, 2009, 1008, 1013, 1013, 1008, 1999, 1996, 21415, 2012, 7479, 1012, 10000, 8458, 4523, 23235, 2015, 1012, 4012, 1008, 1013, 1013, 1008, 1008, 1013, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 9375, 1006, 1005, 1035, 5003, 1035, 3720, 1005, 1010, 1005, 4790, 1005, 1007, 1025, 9375, 1006, 1005, 1035, 5003, 1035, 3720, 3593, 1005, 1010, 1005, 3720, 1001, 1005, 1007, 1025, 9375, 1006, 1005, 1035, 5003, 1035, 3720, 1035, 3166, 1035, 10651, 1005, 1010, 1005, 2038, 2042, 5079, 2000, 1005, 1007, 1025, 9375, 1006, 1005, 1035, 5003, 1035, 3720, 1035, 10651, 1035, 5432, 1005, 1010, 1005, 2017, 2442, 4607, 2019, 3720, 8909, 1026, 2844, 1028, 1998, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4180, 2968, 2291, 1008, 1013, 1013, 1008, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 30526 ]
# KiFooKatch
ppoo14152/KiFooKatch
proyecto OK/KiFooKatch.git/trunk/README.md
Markdown
gpl-2.0
13
[ 30522, 1001, 11382, 14876, 12352, 10649, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/* $Id: sungem.h,v 1.1.1.1 2010/03/11 21:07:23 kris Exp $ * sungem.h: Definitions for Sun GEM ethernet driver. * * Copyright (C) 2000 David S. Miller ([email protected]) */ #ifndef _SUNGEM_H #define _SUNGEM_H /* Global Registers */ #define GREG_SEBSTATE 0x0000UL /* SEB State Register */ #define GREG_CFG 0x0004UL /* Configuration Register */ #define GREG_STAT 0x000CUL /* Status Register */ #define GREG_IMASK 0x0010UL /* Interrupt Mask Register */ #define GREG_IACK 0x0014UL /* Interrupt ACK Register */ #define GREG_STAT2 0x001CUL /* Alias of GREG_STAT */ #define GREG_PCIESTAT 0x1000UL /* PCI Error Status Register */ #define GREG_PCIEMASK 0x1004UL /* PCI Error Mask Register */ #define GREG_BIFCFG 0x1008UL /* BIF Configuration Register */ #define GREG_BIFDIAG 0x100CUL /* BIF Diagnostics Register */ #define GREG_SWRST 0x1010UL /* Software Reset Register */ /* Global SEB State Register */ #define GREG_SEBSTATE_ARB 0x00000003 /* State of Arbiter */ #define GREG_SEBSTATE_RXWON 0x00000004 /* RX won internal arbitration */ /* Global Configuration Register */ #define GREG_CFG_IBURST 0x00000001 /* Infinite Burst */ #define GREG_CFG_TXDMALIM 0x0000003e /* TX DMA grant limit */ #define GREG_CFG_RXDMALIM 0x000007c0 /* RX DMA grant limit */ #define GREG_CFG_RONPAULBIT 0x00000800 /* Use mem read multiple for PCI read * after infinite burst (Apple) */ #define GREG_CFG_ENBUG2FIX 0x00001000 /* Fix Rx hang after overflow */ /* Global Interrupt Status Register. * * Reading this register automatically clears bits 0 through 6. * This auto-clearing does not occur when the alias at GREG_STAT2 * is read instead. The rest of the interrupt bits only clear when * the secondary interrupt status register corresponding to that * bit is read (ie. if GREG_STAT_PCS is set, it will be cleared by * reading PCS_ISTAT). */ #define GREG_STAT_TXINTME 0x00000001 /* TX INTME frame transferred */ #define GREG_STAT_TXALL 0x00000002 /* All TX frames transferred */ #define GREG_STAT_TXDONE 0x00000004 /* One TX frame transferred */ #define GREG_STAT_RXDONE 0x00000010 /* One RX frame arrived */ #define GREG_STAT_RXNOBUF 0x00000020 /* No free RX buffers available */ #define GREG_STAT_RXTAGERR 0x00000040 /* RX tag framing is corrupt */ #define GREG_STAT_PCS 0x00002000 /* PCS signalled interrupt */ #define GREG_STAT_TXMAC 0x00004000 /* TX MAC signalled interrupt */ #define GREG_STAT_RXMAC 0x00008000 /* RX MAC signalled interrupt */ #define GREG_STAT_MAC 0x00010000 /* MAC Control signalled irq */ #define GREG_STAT_MIF 0x00020000 /* MIF signalled interrupt */ #define GREG_STAT_PCIERR 0x00040000 /* PCI Error interrupt */ #define GREG_STAT_TXNR 0xfff80000 /* == TXDMA_TXDONE reg val */ #define GREG_STAT_TXNR_SHIFT 19 #define GREG_STAT_ABNORMAL (GREG_STAT_RXNOBUF | GREG_STAT_RXTAGERR | \ GREG_STAT_PCS | GREG_STAT_TXMAC | GREG_STAT_RXMAC | \ GREG_STAT_MAC | GREG_STAT_MIF | GREG_STAT_PCIERR) #define GREG_STAT_NAPI (GREG_STAT_TXALL | GREG_STAT_TXINTME | \ GREG_STAT_RXDONE | GREG_STAT_ABNORMAL) /* The layout of GREG_IMASK and GREG_IACK is identical to GREG_STAT. * Bits set in GREG_IMASK will prevent that interrupt type from being * signalled to the cpu. GREG_IACK can be used to clear specific top-level * interrupt conditions in GREG_STAT, ie. it only works for bits 0 through 6. * Setting the bit will clear that interrupt, clear bits will have no effect * on GREG_STAT. */ /* Global PCI Error Status Register */ #define GREG_PCIESTAT_BADACK 0x00000001 /* No ACK64# during ABS64 cycle */ #define GREG_PCIESTAT_DTRTO 0x00000002 /* Delayed transaction timeout */ #define GREG_PCIESTAT_OTHER 0x00000004 /* Other PCI error, check cfg space */ /* The layout of the GREG_PCIEMASK is identical to that of GREG_PCIESTAT. * Bits set in GREG_PCIEMASK will prevent that interrupt type from being * signalled to the cpu. */ /* Global BIF Configuration Register */ #define GREG_BIFCFG_SLOWCLK 0x00000001 /* Set if PCI runs < 25Mhz */ #define GREG_BIFCFG_B64DIS 0x00000002 /* Disable 64bit wide data cycle*/ #define GREG_BIFCFG_M66EN 0x00000004 /* Set if on 66Mhz PCI segment */ /* Global BIF Diagnostics Register */ #define GREG_BIFDIAG_BURSTSM 0x007f0000 /* PCI Burst state machine */ #define GREG_BIFDIAG_BIFSM 0xff000000 /* BIF state machine */ /* Global Software Reset Register. * * This register is used to perform a global reset of the RX and TX portions * of the GEM asic. Setting the RX or TX reset bit will start the reset. * The driver _MUST_ poll these bits until they clear. One may not attempt * to program any other part of GEM until the bits clear. */ #define GREG_SWRST_TXRST 0x00000001 /* TX Software Reset */ #define GREG_SWRST_RXRST 0x00000002 /* RX Software Reset */ #define GREG_SWRST_RSTOUT 0x00000004 /* Force RST# pin active */ #define GREG_SWRST_CACHESIZE 0x00ff0000 /* RIO only: cache line size */ #define GREG_SWRST_CACHE_SHIFT 16 /* TX DMA Registers */ #define TXDMA_KICK 0x2000UL /* TX Kick Register */ #define TXDMA_CFG 0x2004UL /* TX Configuration Register */ #define TXDMA_DBLOW 0x2008UL /* TX Desc. Base Low */ #define TXDMA_DBHI 0x200CUL /* TX Desc. Base High */ #define TXDMA_FWPTR 0x2014UL /* TX FIFO Write Pointer */ #define TXDMA_FSWPTR 0x2018UL /* TX FIFO Shadow Write Pointer */ #define TXDMA_FRPTR 0x201CUL /* TX FIFO Read Pointer */ #define TXDMA_FSRPTR 0x2020UL /* TX FIFO Shadow Read Pointer */ #define TXDMA_PCNT 0x2024UL /* TX FIFO Packet Counter */ #define TXDMA_SMACHINE 0x2028UL /* TX State Machine Register */ #define TXDMA_DPLOW 0x2030UL /* TX Data Pointer Low */ #define TXDMA_DPHI 0x2034UL /* TX Data Pointer High */ #define TXDMA_TXDONE 0x2100UL /* TX Completion Register */ #define TXDMA_FADDR 0x2104UL /* TX FIFO Address */ #define TXDMA_FTAG 0x2108UL /* TX FIFO Tag */ #define TXDMA_DLOW 0x210CUL /* TX FIFO Data Low */ #define TXDMA_DHIT1 0x2110UL /* TX FIFO Data HighT1 */ #define TXDMA_DHIT0 0x2114UL /* TX FIFO Data HighT0 */ #define TXDMA_FSZ 0x2118UL /* TX FIFO Size */ /* TX Kick Register. * * This 13-bit register is programmed by the driver to hold the descriptor * entry index which follows the last valid transmit descriptor. */ /* TX Completion Register. * * This 13-bit register is updated by GEM to hold to descriptor entry index * which follows the last descriptor already processed by GEM. Note that * this value is mirrored in GREG_STAT which eliminates the need to even * access this register in the driver during interrupt processing. */ /* TX Configuration Register. * * Note that TXDMA_CFG_FTHRESH, the TX FIFO Threshold, is an obsolete feature * that was meant to be used with jumbo packets. It should be set to the * maximum value of 0x4ff, else one risks getting TX MAC Underrun errors. */ #define TXDMA_CFG_ENABLE 0x00000001 /* Enable TX DMA channel */ #define TXDMA_CFG_RINGSZ 0x0000001e /* TX descriptor ring size */ #define TXDMA_CFG_RINGSZ_32 0x00000000 /* 32 TX descriptors */ #define TXDMA_CFG_RINGSZ_64 0x00000002 /* 64 TX descriptors */ #define TXDMA_CFG_RINGSZ_128 0x00000004 /* 128 TX descriptors */ #define TXDMA_CFG_RINGSZ_256 0x00000006 /* 256 TX descriptors */ #define TXDMA_CFG_RINGSZ_512 0x00000008 /* 512 TX descriptors */ #define TXDMA_CFG_RINGSZ_1K 0x0000000a /* 1024 TX descriptors */ #define TXDMA_CFG_RINGSZ_2K 0x0000000c /* 2048 TX descriptors */ #define TXDMA_CFG_RINGSZ_4K 0x0000000e /* 4096 TX descriptors */ #define TXDMA_CFG_RINGSZ_8K 0x00000010 /* 8192 TX descriptors */ #define TXDMA_CFG_PIOSEL 0x00000020 /* Enable TX FIFO PIO from cpu */ #define TXDMA_CFG_FTHRESH 0x001ffc00 /* TX FIFO Threshold, obsolete */ #define TXDMA_CFG_PMODE 0x00200000 /* TXALL irq means TX FIFO empty*/ /* TX Descriptor Base Low/High. * * These two registers store the 53 most significant bits of the base address * of the TX descriptor table. The 11 least significant bits are always * zero. As a result, the TX descriptor table must be 2K aligned. */ /* The rest of the TXDMA_* registers are for diagnostics and debug, I will document * them later. -DaveM */ /* WakeOnLan Registers */ #define WOL_MATCH0 0x3000UL #define WOL_MATCH1 0x3004UL #define WOL_MATCH2 0x3008UL #define WOL_MCOUNT 0x300CUL #define WOL_WAKECSR 0x3010UL /* WOL Match count register */ #define WOL_MCOUNT_N 0x00000010 #define WOL_MCOUNT_M 0x00000000 /* 0 << 8 */ #define WOL_WAKECSR_ENABLE 0x00000001 #define WOL_WAKECSR_MII 0x00000002 #define WOL_WAKECSR_SEEN 0x00000004 #define WOL_WAKECSR_FILT_UCAST 0x00000008 #define WOL_WAKECSR_FILT_MCAST 0x00000010 #define WOL_WAKECSR_FILT_BCAST 0x00000020 #define WOL_WAKECSR_FILT_SEEN 0x00000040 /* Receive DMA Registers */ #define RXDMA_CFG 0x4000UL /* RX Configuration Register */ #define RXDMA_DBLOW 0x4004UL /* RX Descriptor Base Low */ #define RXDMA_DBHI 0x4008UL /* RX Descriptor Base High */ #define RXDMA_FWPTR 0x400CUL /* RX FIFO Write Pointer */ #define RXDMA_FSWPTR 0x4010UL /* RX FIFO Shadow Write Pointer */ #define RXDMA_FRPTR 0x4014UL /* RX FIFO Read Pointer */ #define RXDMA_PCNT 0x4018UL /* RX FIFO Packet Counter */ #define RXDMA_SMACHINE 0x401CUL /* RX State Machine Register */ #define RXDMA_PTHRESH 0x4020UL /* Pause Thresholds */ #define RXDMA_DPLOW 0x4024UL /* RX Data Pointer Low */ #define RXDMA_DPHI 0x4028UL /* RX Data Pointer High */ #define RXDMA_KICK 0x4100UL /* RX Kick Register */ #define RXDMA_DONE 0x4104UL /* RX Completion Register */ #define RXDMA_BLANK 0x4108UL /* RX Blanking Register */ #define RXDMA_FADDR 0x410CUL /* RX FIFO Address */ #define RXDMA_FTAG 0x4110UL /* RX FIFO Tag */ #define RXDMA_DLOW 0x4114UL /* RX FIFO Data Low */ #define RXDMA_DHIT1 0x4118UL /* RX FIFO Data HighT0 */ #define RXDMA_DHIT0 0x411CUL /* RX FIFO Data HighT1 */ #define RXDMA_FSZ 0x4120UL /* RX FIFO Size */ /* RX Configuration Register. */ #define RXDMA_CFG_ENABLE 0x00000001 /* Enable RX DMA channel */ #define RXDMA_CFG_RINGSZ 0x0000001e /* RX descriptor ring size */ #define RXDMA_CFG_RINGSZ_32 0x00000000 /* - 32 entries */ #define RXDMA_CFG_RINGSZ_64 0x00000002 /* - 64 entries */ #define RXDMA_CFG_RINGSZ_128 0x00000004 /* - 128 entries */ #define RXDMA_CFG_RINGSZ_256 0x00000006 /* - 256 entries */ #define RXDMA_CFG_RINGSZ_512 0x00000008 /* - 512 entries */ #define RXDMA_CFG_RINGSZ_1K 0x0000000a /* - 1024 entries */ #define RXDMA_CFG_RINGSZ_2K 0x0000000c /* - 2048 entries */ #define RXDMA_CFG_RINGSZ_4K 0x0000000e /* - 4096 entries */ #define RXDMA_CFG_RINGSZ_8K 0x00000010 /* - 8192 entries */ #define RXDMA_CFG_RINGSZ_BDISAB 0x00000020 /* Disable RX desc batching */ #define RXDMA_CFG_FBOFF 0x00001c00 /* Offset of first data byte */ #define RXDMA_CFG_CSUMOFF 0x000fe000 /* Skip bytes before csum calc */ #define RXDMA_CFG_FTHRESH 0x07000000 /* RX FIFO dma start threshold */ #define RXDMA_CFG_FTHRESH_64 0x00000000 /* - 64 bytes */ #define RXDMA_CFG_FTHRESH_128 0x01000000 /* - 128 bytes */ #define RXDMA_CFG_FTHRESH_256 0x02000000 /* - 256 bytes */ #define RXDMA_CFG_FTHRESH_512 0x03000000 /* - 512 bytes */ #define RXDMA_CFG_FTHRESH_1K 0x04000000 /* - 1024 bytes */ #define RXDMA_CFG_FTHRESH_2K 0x05000000 /* - 2048 bytes */ /* RX Descriptor Base Low/High. * * These two registers store the 53 most significant bits of the base address * of the RX descriptor table. The 11 least significant bits are always * zero. As a result, the RX descriptor table must be 2K aligned. */ /* RX PAUSE Thresholds. * * These values determine when XOFF and XON PAUSE frames are emitted by * GEM. The thresholds measure RX FIFO occupancy in units of 64 bytes. */ #define RXDMA_PTHRESH_OFF 0x000001ff /* XOFF emitted w/FIFO > this */ #define RXDMA_PTHRESH_ON 0x001ff000 /* XON emitted w/FIFO < this */ /* RX Kick Register. * * This 13-bit register is written by the host CPU and holds the last * valid RX descriptor number plus one. This is, if 'N' is written to * this register, it means that all RX descriptors up to but excluding * 'N' are valid. * * The hardware requires that RX descriptors are posted in increments * of 4. This means 'N' must be a multiple of four. For the best * performance, the first new descriptor being posted should be (PCI) * cache line aligned. */ /* RX Completion Register. * * This 13-bit register is updated by GEM to indicate which RX descriptors * have already been used for receive frames. All descriptors up to but * excluding the value in this register are ready to be processed. GEM * updates this register value after the RX FIFO empties completely into * the RX descriptor's buffer, but before the RX_DONE bit is set in the * interrupt status register. */ /* RX Blanking Register. */ #define RXDMA_BLANK_IPKTS 0x000001ff /* RX_DONE asserted after this * many packets received since * previous RX_DONE. */ #define RXDMA_BLANK_ITIME 0x000ff000 /* RX_DONE asserted after this * many clocks (measured in 2048 * PCI clocks) were counted since * the previous RX_DONE. */ /* RX FIFO Size. * * This 11-bit read-only register indicates how large, in units of 64-bytes, * the RX FIFO is. The driver uses this to properly configure the RX PAUSE * thresholds. */ /* The rest of the RXDMA_* registers are for diagnostics and debug, I will document * them later. -DaveM */ /* MAC Registers */ #define MAC_TXRST 0x6000UL /* TX MAC Software Reset Command*/ #define MAC_RXRST 0x6004UL /* RX MAC Software Reset Command*/ #define MAC_SNDPAUSE 0x6008UL /* Send Pause Command Register */ #define MAC_TXSTAT 0x6010UL /* TX MAC Status Register */ #define MAC_RXSTAT 0x6014UL /* RX MAC Status Register */ #define MAC_CSTAT 0x6018UL /* MAC Control Status Register */ #define MAC_TXMASK 0x6020UL /* TX MAC Mask Register */ #define MAC_RXMASK 0x6024UL /* RX MAC Mask Register */ #define MAC_MCMASK 0x6028UL /* MAC Control Mask Register */ #define MAC_TXCFG 0x6030UL /* TX MAC Configuration Register*/ #define MAC_RXCFG 0x6034UL /* RX MAC Configuration Register*/ #define MAC_MCCFG 0x6038UL /* MAC Control Config Register */ #define MAC_XIFCFG 0x603CUL /* XIF Configuration Register */ #define MAC_IPG0 0x6040UL /* InterPacketGap0 Register */ #define MAC_IPG1 0x6044UL /* InterPacketGap1 Register */ #define MAC_IPG2 0x6048UL /* InterPacketGap2 Register */ #define MAC_STIME 0x604CUL /* SlotTime Register */ #define MAC_MINFSZ 0x6050UL /* MinFrameSize Register */ #define MAC_MAXFSZ 0x6054UL /* MaxFrameSize Register */ #define MAC_PASIZE 0x6058UL /* PA Size Register */ #define MAC_JAMSIZE 0x605CUL /* JamSize Register */ #define MAC_ATTLIM 0x6060UL /* Attempt Limit Register */ #define MAC_MCTYPE 0x6064UL /* MAC Control Type Register */ #define MAC_ADDR0 0x6080UL /* MAC Address 0 Register */ #define MAC_ADDR1 0x6084UL /* MAC Address 1 Register */ #define MAC_ADDR2 0x6088UL /* MAC Address 2 Register */ #define MAC_ADDR3 0x608CUL /* MAC Address 3 Register */ #define MAC_ADDR4 0x6090UL /* MAC Address 4 Register */ #define MAC_ADDR5 0x6094UL /* MAC Address 5 Register */ #define MAC_ADDR6 0x6098UL /* MAC Address 6 Register */ #define MAC_ADDR7 0x609CUL /* MAC Address 7 Register */ #define MAC_ADDR8 0x60A0UL /* MAC Address 8 Register */ #define MAC_AFILT0 0x60A4UL /* Address Filter 0 Register */ #define MAC_AFILT1 0x60A8UL /* Address Filter 1 Register */ #define MAC_AFILT2 0x60ACUL /* Address Filter 2 Register */ #define MAC_AF21MSK 0x60B0UL /* Address Filter 2&1 Mask Reg */ #define MAC_AF0MSK 0x60B4UL /* Address Filter 0 Mask Reg */ #define MAC_HASH0 0x60C0UL /* Hash Table 0 Register */ #define MAC_HASH1 0x60C4UL /* Hash Table 1 Register */ #define MAC_HASH2 0x60C8UL /* Hash Table 2 Register */ #define MAC_HASH3 0x60CCUL /* Hash Table 3 Register */ #define MAC_HASH4 0x60D0UL /* Hash Table 4 Register */ #define MAC_HASH5 0x60D4UL /* Hash Table 5 Register */ #define MAC_HASH6 0x60D8UL /* Hash Table 6 Register */ #define MAC_HASH7 0x60DCUL /* Hash Table 7 Register */ #define MAC_HASH8 0x60E0UL /* Hash Table 8 Register */ #define MAC_HASH9 0x60E4UL /* Hash Table 9 Register */ #define MAC_HASH10 0x60E8UL /* Hash Table 10 Register */ #define MAC_HASH11 0x60ECUL /* Hash Table 11 Register */ #define MAC_HASH12 0x60F0UL /* Hash Table 12 Register */ #define MAC_HASH13 0x60F4UL /* Hash Table 13 Register */ #define MAC_HASH14 0x60F8UL /* Hash Table 14 Register */ #define MAC_HASH15 0x60FCUL /* Hash Table 15 Register */ #define MAC_NCOLL 0x6100UL /* Normal Collision Counter */ #define MAC_FASUCC 0x6104UL /* First Attmpt. Succ Coll Ctr. */ #define MAC_ECOLL 0x6108UL /* Excessive Collision Counter */ #define MAC_LCOLL 0x610CUL /* Late Collision Counter */ #define MAC_DTIMER 0x6110UL /* Defer Timer */ #define MAC_PATMPS 0x6114UL /* Peak Attempts Register */ #define MAC_RFCTR 0x6118UL /* Receive Frame Counter */ #define MAC_LERR 0x611CUL /* Length Error Counter */ #define MAC_AERR 0x6120UL /* Alignment Error Counter */ #define MAC_FCSERR 0x6124UL /* FCS Error Counter */ #define MAC_RXCVERR 0x6128UL /* RX code Violation Error Ctr */ #define MAC_RANDSEED 0x6130UL /* Random Number Seed Register */ #define MAC_SMACHINE 0x6134UL /* State Machine Register */ /* TX MAC Software Reset Command. */ #define MAC_TXRST_CMD 0x00000001 /* Start sw reset, self-clears */ /* RX MAC Software Reset Command. */ #define MAC_RXRST_CMD 0x00000001 /* Start sw reset, self-clears */ /* Send Pause Command. */ #define MAC_SNDPAUSE_TS 0x0000ffff /* The pause_time operand used in * Send_Pause and flow-control * handshakes. */ #define MAC_SNDPAUSE_SP 0x00010000 /* Setting this bit instructs the MAC * to send a Pause Flow Control * frame onto the network. */ /* TX MAC Status Register. */ #define MAC_TXSTAT_XMIT 0x00000001 /* Frame Transmitted */ #define MAC_TXSTAT_URUN 0x00000002 /* TX Underrun */ #define MAC_TXSTAT_MPE 0x00000004 /* Max Packet Size Error */ #define MAC_TXSTAT_NCE 0x00000008 /* Normal Collision Cntr Expire */ #define MAC_TXSTAT_ECE 0x00000010 /* Excess Collision Cntr Expire */ #define MAC_TXSTAT_LCE 0x00000020 /* Late Collision Cntr Expire */ #define MAC_TXSTAT_FCE 0x00000040 /* First Collision Cntr Expire */ #define MAC_TXSTAT_DTE 0x00000080 /* Defer Timer Expire */ #define MAC_TXSTAT_PCE 0x00000100 /* Peak Attempts Cntr Expire */ /* RX MAC Status Register. */ #define MAC_RXSTAT_RCV 0x00000001 /* Frame Received */ #define MAC_RXSTAT_OFLW 0x00000002 /* Receive Overflow */ #define MAC_RXSTAT_FCE 0x00000004 /* Frame Cntr Expire */ #define MAC_RXSTAT_ACE 0x00000008 /* Align Error Cntr Expire */ #define MAC_RXSTAT_CCE 0x00000010 /* CRC Error Cntr Expire */ #define MAC_RXSTAT_LCE 0x00000020 /* Length Error Cntr Expire */ #define MAC_RXSTAT_VCE 0x00000040 /* Code Violation Cntr Expire */ /* MAC Control Status Register. */ #define MAC_CSTAT_PRCV 0x00000001 /* Pause Received */ #define MAC_CSTAT_PS 0x00000002 /* Paused State */ #define MAC_CSTAT_NPS 0x00000004 /* Not Paused State */ #define MAC_CSTAT_PTR 0xffff0000 /* Pause Time Received */ /* The layout of the MAC_{TX,RX,C}MASK registers is identical to that * of MAC_{TX,RX,C}STAT. Bits set in MAC_{TX,RX,C}MASK will prevent * that interrupt type from being signalled to front end of GEM. For * the interrupt to actually get sent to the cpu, it is necessary to * properly set the appropriate GREG_IMASK_{TX,RX,}MAC bits as well. */ /* TX MAC Configuration Register. * * NOTE: The TX MAC Enable bit must be cleared and polled until * zero before any other bits in this register are changed. * * Also, enabling the Carrier Extension feature of GEM is * a 3 step process 1) Set TX Carrier Extension 2) Set * RX Carrier Extension 3) Set Slot Time to 0x200. This * mode must be enabled when in half-duplex at 1Gbps, else * it must be disabled. */ #define MAC_TXCFG_ENAB 0x00000001 /* TX MAC Enable */ #define MAC_TXCFG_ICS 0x00000002 /* Ignore Carrier Sense */ #define MAC_TXCFG_ICOLL 0x00000004 /* Ignore Collisions */ #define MAC_TXCFG_EIPG0 0x00000008 /* Enable IPG0 */ #define MAC_TXCFG_NGU 0x00000010 /* Never Give Up */ #define MAC_TXCFG_NGUL 0x00000020 /* Never Give Up Limit */ #define MAC_TXCFG_NBO 0x00000040 /* No Backoff */ #define MAC_TXCFG_SD 0x00000080 /* Slow Down */ #define MAC_TXCFG_NFCS 0x00000100 /* No FCS */ #define MAC_TXCFG_TCE 0x00000200 /* TX Carrier Extension */ /* RX MAC Configuration Register. * * NOTE: The RX MAC Enable bit must be cleared and polled until * zero before any other bits in this register are changed. * * Similar rules apply to the Hash Filter Enable bit when * programming the hash table registers, and the Address Filter * Enable bit when programming the address filter registers. */ #define MAC_RXCFG_ENAB 0x00000001 /* RX MAC Enable */ #define MAC_RXCFG_SPAD 0x00000002 /* Strip Pad */ #define MAC_RXCFG_SFCS 0x00000004 /* Strip FCS */ #define MAC_RXCFG_PROM 0x00000008 /* Promiscuous Mode */ #define MAC_RXCFG_PGRP 0x00000010 /* Promiscuous Group */ #define MAC_RXCFG_HFE 0x00000020 /* Hash Filter Enable */ #define MAC_RXCFG_AFE 0x00000040 /* Address Filter Enable */ #define MAC_RXCFG_DDE 0x00000080 /* Disable Discard on Error */ #define MAC_RXCFG_RCE 0x00000100 /* RX Carrier Extension */ /* MAC Control Config Register. */ #define MAC_MCCFG_SPE 0x00000001 /* Send Pause Enable */ #define MAC_MCCFG_RPE 0x00000002 /* Receive Pause Enable */ #define MAC_MCCFG_PMC 0x00000004 /* Pass MAC Control */ /* XIF Configuration Register. * * NOTE: When leaving or entering loopback mode, a global hardware * init of GEM should be performed. */ #define MAC_XIFCFG_OE 0x00000001 /* MII TX Output Driver Enable */ #define MAC_XIFCFG_LBCK 0x00000002 /* Loopback TX to RX */ #define MAC_XIFCFG_DISE 0x00000004 /* Disable RX path during TX */ #define MAC_XIFCFG_GMII 0x00000008 /* Use GMII clocks + datapath */ #define MAC_XIFCFG_MBOE 0x00000010 /* Controls MII_BUF_EN pin */ #define MAC_XIFCFG_LLED 0x00000020 /* Force LINKLED# active (low) */ #define MAC_XIFCFG_FLED 0x00000040 /* Force FDPLXLED# active (low) */ /* InterPacketGap0 Register. This 8-bit value is used as an extension * to the InterPacketGap1 Register. Specifically it contributes to the * timing of the RX-to-TX IPG. This value is ignored and presumed to * be zero for TX-to-TX IPG calculations and/or when the Enable IPG0 bit * is cleared in the TX MAC Configuration Register. * * This value in this register in terms of media byte time. * * Recommended value: 0x00 */ /* InterPacketGap1 Register. This 8-bit value defines the first 2/3 * portion of the Inter Packet Gap. * * This value in this register in terms of media byte time. * * Recommended value: 0x08 */ /* InterPacketGap2 Register. This 8-bit value defines the second 1/3 * portion of the Inter Packet Gap. * * This value in this register in terms of media byte time. * * Recommended value: 0x04 */ /* Slot Time Register. This 10-bit value specifies the slot time * parameter in units of media byte time. It determines the physical * span of the network. * * Recommended value: 0x40 */ /* Minimum Frame Size Register. This 10-bit register specifies the * smallest sized frame the TXMAC will send onto the medium, and the * RXMAC will receive from the medium. * * Recommended value: 0x40 */ /* Maximum Frame and Burst Size Register. * * This register specifies two things. First it specifies the maximum * sized frame the TXMAC will send and the RXMAC will recognize as * valid. Second, it specifies the maximum run length of a burst of * packets sent in half-duplex gigabit modes. * * Recommended value: 0x200005ee */ #define MAC_MAXFSZ_MFS 0x00007fff /* Max Frame Size */ #define MAC_MAXFSZ_MBS 0x7fff0000 /* Max Burst Size */ /* PA Size Register. This 10-bit register specifies the number of preamble * bytes which will be transmitted at the beginning of each frame. A * value of two or greater should be programmed here. * * Recommended value: 0x07 */ /* Jam Size Register. This 4-bit register specifies the duration of * the jam in units of media byte time. * * Recommended value: 0x04 */ /* Attempts Limit Register. This 8-bit register specifies the number * of attempts that the TXMAC will make to transmit a frame, before it * resets its Attempts Counter. After reaching the Attempts Limit the * TXMAC may or may not drop the frame, as determined by the NGU * (Never Give Up) and NGUL (Never Give Up Limit) bits in the TXMAC * Configuration Register. * * Recommended value: 0x10 */ /* MAX Control Type Register. This 16-bit register specifies the * "type" field of a MAC Control frame. The TXMAC uses this field to * encapsulate the MAC Control frame for transmission, and the RXMAC * uses it for decoding valid MAC Control frames received from the * network. * * Recommended value: 0x8808 */ /* MAC Address Registers. Each of these registers specify the * ethernet MAC of the interface, 16-bits at a time. Register * 0 specifies bits [47:32], register 1 bits [31:16], and register * 2 bits [15:0]. * * Registers 3 through and including 5 specify an alternate * MAC address for the interface. * * Registers 6 through and including 8 specify the MAC Control * Address, which must be the reserved multicast address for MAC * Control frames. * * Example: To program primary station address a:b:c:d:e:f into * the chip. * MAC_Address_2 = (a << 8) | b * MAC_Address_1 = (c << 8) | d * MAC_Address_0 = (e << 8) | f */ /* Address Filter Registers. Registers 0 through 2 specify bit * fields [47:32] through [15:0], respectively, of the address * filter. The Address Filter 2&1 Mask Register denotes the 8-bit * nibble mask for Address Filter Registers 2 and 1. The Address * Filter 0 Mask Register denotes the 16-bit mask for the Address * Filter Register 0. */ /* Hash Table Registers. Registers 0 through 15 specify bit fields * [255:240] through [15:0], respectively, of the hash table. */ /* Statistics Registers. All of these registers are 16-bits and * track occurrences of a specific event. GEM can be configured * to interrupt the host cpu when any of these counters overflow. * They should all be explicitly initialized to zero when the interface * is brought up. */ /* Random Number Seed Register. This 10-bit value is used as the * RNG seed inside GEM for the CSMA/CD backoff algorithm. It is * recommended to program this register to the 10 LSB of the * interfaces MAC address. */ /* Pause Timer, read-only. This 16-bit timer is used to time the pause * interval as indicated by a received pause flow control frame. * A non-zero value in this timer indicates that the MAC is currently in * the paused state. */ /* MIF Registers */ #define MIF_BBCLK 0x6200UL /* MIF Bit-Bang Clock */ #define MIF_BBDATA 0x6204UL /* MIF Bit-Band Data */ #define MIF_BBOENAB 0x6208UL /* MIF Bit-Bang Output Enable */ #define MIF_FRAME 0x620CUL /* MIF Frame/Output Register */ #define MIF_CFG 0x6210UL /* MIF Configuration Register */ #define MIF_MASK 0x6214UL /* MIF Mask Register */ #define MIF_STATUS 0x6218UL /* MIF Status Register */ #define MIF_SMACHINE 0x621CUL /* MIF State Machine Register */ /* MIF Bit-Bang Clock. This 1-bit register is used to generate the * MDC clock waveform on the MII Management Interface when the MIF is * programmed in the "Bit-Bang" mode. Writing a '1' after a '0' into * this register will create a rising edge on the MDC, while writing * a '0' after a '1' will create a falling edge. For every bit that * is transferred on the management interface, both edges have to be * generated. */ /* MIF Bit-Bang Data. This 1-bit register is used to generate the * outgoing data (MDO) on the MII Management Interface when the MIF * is programmed in the "Bit-Bang" mode. The daa will be steered to the * appropriate MDIO based on the state of the PHY_Select bit in the MIF * Configuration Register. */ /* MIF Big-Band Output Enable. THis 1-bit register is used to enable * ('1') or disable ('0') the I-directional driver on the MII when the * MIF is programmed in the "Bit-Bang" mode. The MDIO should be enabled * when data bits are transferred from the MIF to the transceiver, and it * should be disabled when the interface is idle or when data bits are * transferred from the transceiver to the MIF (data portion of a read * instruction). Only one MDIO will be enabled at a given time, depending * on the state of the PHY_Select bit in the MIF Configuration Register. */ /* MIF Configuration Register. This 15-bit register controls the operation * of the MIF. */ #define MIF_CFG_PSELECT 0x00000001 /* Xcvr slct: 0=mdio0 1=mdio1 */ #define MIF_CFG_POLL 0x00000002 /* Enable polling mechanism */ #define MIF_CFG_BBMODE 0x00000004 /* 1=bit-bang 0=frame mode */ #define MIF_CFG_PRADDR 0x000000f8 /* Xcvr poll register address */ #define MIF_CFG_MDI0 0x00000100 /* MDIO_0 present or read-bit */ #define MIF_CFG_MDI1 0x00000200 /* MDIO_1 present or read-bit */ #define MIF_CFG_PPADDR 0x00007c00 /* Xcvr poll PHY address */ /* MIF Frame/Output Register. This 32-bit register allows the host to * communicate with a transceiver in frame mode (as opposed to big-bang * mode). Writes by the host specify an instrution. After being issued * the host must poll this register for completion. Also, after * completion this register holds the data returned by the transceiver * if applicable. */ #define MIF_FRAME_ST 0xc0000000 /* STart of frame */ #define MIF_FRAME_OP 0x30000000 /* OPcode */ #define MIF_FRAME_PHYAD 0x0f800000 /* PHY ADdress */ #define MIF_FRAME_REGAD 0x007c0000 /* REGister ADdress */ #define MIF_FRAME_TAMSB 0x00020000 /* Turn Around MSB */ #define MIF_FRAME_TALSB 0x00010000 /* Turn Around LSB */ #define MIF_FRAME_DATA 0x0000ffff /* Instruction Payload */ /* MIF Status Register. This register reports status when the MIF is * operating in the poll mode. The poll status field is auto-clearing * on read. */ #define MIF_STATUS_DATA 0xffff0000 /* Live image of XCVR reg */ #define MIF_STATUS_STAT 0x0000ffff /* Which bits have changed */ /* MIF Mask Register. This 16-bit register is used when in poll mode * to say which bits of the polled register will cause an interrupt * when changed. */ /* PCS/Serialink Registers */ #define PCS_MIICTRL 0x9000UL /* PCS MII Control Register */ #define PCS_MIISTAT 0x9004UL /* PCS MII Status Register */ #define PCS_MIIADV 0x9008UL /* PCS MII Advertisement Reg */ #define PCS_MIILP 0x900CUL /* PCS MII Link Partner Ability */ #define PCS_CFG 0x9010UL /* PCS Configuration Register */ #define PCS_SMACHINE 0x9014UL /* PCS State Machine Register */ #define PCS_ISTAT 0x9018UL /* PCS Interrupt Status Reg */ #define PCS_DMODE 0x9050UL /* Datapath Mode Register */ #define PCS_SCTRL 0x9054UL /* Serialink Control Register */ #define PCS_SOS 0x9058UL /* Shared Output Select Reg */ #define PCS_SSTATE 0x905CUL /* Serialink State Register */ /* PCD MII Control Register. */ #define PCS_MIICTRL_SPD 0x00000040 /* Read as one, writes ignored */ #define PCS_MIICTRL_CT 0x00000080 /* Force COL signal active */ #define PCS_MIICTRL_DM 0x00000100 /* Duplex mode, forced low */ #define PCS_MIICTRL_RAN 0x00000200 /* Restart auto-neg, self clear */ #define PCS_MIICTRL_ISO 0x00000400 /* Read as zero, writes ignored */ #define PCS_MIICTRL_PD 0x00000800 /* Read as zero, writes ignored */ #define PCS_MIICTRL_ANE 0x00001000 /* Auto-neg enable */ #define PCS_MIICTRL_SS 0x00002000 /* Read as zero, writes ignored */ #define PCS_MIICTRL_WB 0x00004000 /* Wrapback, loopback at 10-bit * input side of Serialink */ #define PCS_MIICTRL_RST 0x00008000 /* Resets PCS, self clearing */ /* PCS MII Status Register. */ #define PCS_MIISTAT_EC 0x00000001 /* Ext Capability: Read as zero */ #define PCS_MIISTAT_JD 0x00000002 /* Jabber Detect: Read as zero */ #define PCS_MIISTAT_LS 0x00000004 /* Link Status: 1=up 0=down */ #define PCS_MIISTAT_ANA 0x00000008 /* Auto-neg Ability, always 1 */ #define PCS_MIISTAT_RF 0x00000010 /* Remote Fault */ #define PCS_MIISTAT_ANC 0x00000020 /* Auto-neg complete */ #define PCS_MIISTAT_ES 0x00000100 /* Extended Status, always 1 */ /* PCS MII Advertisement Register. */ #define PCS_MIIADV_FD 0x00000020 /* Advertise Full Duplex */ #define PCS_MIIADV_HD 0x00000040 /* Advertise Half Duplex */ #define PCS_MIIADV_SP 0x00000080 /* Advertise Symmetric Pause */ #define PCS_MIIADV_AP 0x00000100 /* Advertise Asymmetric Pause */ #define PCS_MIIADV_RF 0x00003000 /* Remote Fault */ #define PCS_MIIADV_ACK 0x00004000 /* Read-only */ #define PCS_MIIADV_NP 0x00008000 /* Next-page, forced low */ /* PCS MII Link Partner Ability Register. This register is equivalent * to the Link Partnet Ability Register of the standard MII register set. * It's layout corresponds to the PCS MII Advertisement Register. */ /* PCS Configuration Register. */ #define PCS_CFG_ENABLE 0x00000001 /* Must be zero while changing * PCS MII advertisement reg. */ #define PCS_CFG_SDO 0x00000002 /* Signal detect override */ #define PCS_CFG_SDL 0x00000004 /* Signal detect active low */ #define PCS_CFG_JS 0x00000018 /* Jitter-study: * 0 = normal operation * 1 = high-frequency test pattern * 2 = low-frequency test pattern * 3 = reserved */ #define PCS_CFG_TO 0x00000020 /* 10ms auto-neg timer override */ /* PCS Interrupt Status Register. This register is self-clearing * when read. */ #define PCS_ISTAT_LSC 0x00000004 /* Link Status Change */ /* Datapath Mode Register. */ #define PCS_DMODE_SM 0x00000001 /* 1 = use internal Serialink */ #define PCS_DMODE_ESM 0x00000002 /* External SERDES mode */ #define PCS_DMODE_MGM 0x00000004 /* MII/GMII mode */ #define PCS_DMODE_GMOE 0x00000008 /* GMII Output Enable */ /* Serialink Control Register. * * NOTE: When in SERDES mode, the loopback bit has inverse logic. */ #define PCS_SCTRL_LOOP 0x00000001 /* Loopback enable */ #define PCS_SCTRL_ESCD 0x00000002 /* Enable sync char detection */ #define PCS_SCTRL_LOCK 0x00000004 /* Lock to reference clock */ #define PCS_SCTRL_EMP 0x00000018 /* Output driver emphasis */ #define PCS_SCTRL_STEST 0x000001c0 /* Self test patterns */ #define PCS_SCTRL_PDWN 0x00000200 /* Software power-down */ #define PCS_SCTRL_RXZ 0x00000c00 /* PLL input to Serialink */ #define PCS_SCTRL_RXP 0x00003000 /* PLL input to Serialink */ #define PCS_SCTRL_TXZ 0x0000c000 /* PLL input to Serialink */ #define PCS_SCTRL_TXP 0x00030000 /* PLL input to Serialink */ /* Shared Output Select Register. For test and debug, allows multiplexing * test outputs into the PROM address pins. Set to zero for normal * operation. */ #define PCS_SOS_PADDR 0x00000003 /* PROM Address */ /* PROM Image Space */ #define PROM_START 0x100000UL /* Expansion ROM run time access*/ #define PROM_SIZE 0x0fffffUL /* Size of ROM */ #define PROM_END 0x200000UL /* End of ROM */ /* MII definitions missing from mii.h */ #define BMCR_SPD2 0x0040 /* Gigabit enable? (bcm5411) */ #define LPA_PAUSE 0x0400 /* More PHY registers (specific to Broadcom models) */ /* MII BCM5201 MULTIPHY interrupt register */ #define MII_BCM5201_INTERRUPT 0x1A #define MII_BCM5201_INTERRUPT_INTENABLE 0x4000 #define MII_BCM5201_AUXMODE2 0x1B #define MII_BCM5201_AUXMODE2_LOWPOWER 0x0008 #define MII_BCM5201_MULTIPHY 0x1E /* MII BCM5201 MULTIPHY register bits */ #define MII_BCM5201_MULTIPHY_SERIALMODE 0x0002 #define MII_BCM5201_MULTIPHY_SUPERISOLATE 0x0008 /* MII BCM5400 1000-BASET Control register */ #define MII_BCM5400_GB_CONTROL 0x09 #define MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP 0x0200 /* MII BCM5400 AUXCONTROL register */ #define MII_BCM5400_AUXCONTROL 0x18 #define MII_BCM5400_AUXCONTROL_PWR10BASET 0x0004 /* MII BCM5400 AUXSTATUS register */ #define MII_BCM5400_AUXSTATUS 0x19 #define MII_BCM5400_AUXSTATUS_LINKMODE_MASK 0x0700 #define MII_BCM5400_AUXSTATUS_LINKMODE_SHIFT 8 /* When it can, GEM internally caches 4 aligned TX descriptors * at a time, so that it can use full cacheline DMA reads. * * Note that unlike HME, there is no ownership bit in the descriptor * control word. The same functionality is obtained via the TX-Kick * and TX-Complete registers. As a result, GEM need not write back * updated values to the TX descriptor ring, it only performs reads. * * Since TX descriptors are never modified by GEM, the driver can * use the buffer DMA address as a place to keep track of allocated * DMA mappings for a transmitted packet. */ struct gem_txd { u64 control_word; u64 buffer; }; #define TXDCTRL_BUFSZ 0x0000000000007fffULL /* Buffer Size */ #define TXDCTRL_CSTART 0x00000000001f8000ULL /* CSUM Start Offset */ #define TXDCTRL_COFF 0x000000001fe00000ULL /* CSUM Stuff Offset */ #define TXDCTRL_CENAB 0x0000000020000000ULL /* CSUM Enable */ #define TXDCTRL_EOF 0x0000000040000000ULL /* End of Frame */ #define TXDCTRL_SOF 0x0000000080000000ULL /* Start of Frame */ #define TXDCTRL_INTME 0x0000000100000000ULL /* "Interrupt Me" */ #define TXDCTRL_NOCRC 0x0000000200000000ULL /* No CRC Present */ /* GEM requires that RX descriptors are provided four at a time, * aligned. Also, the RX ring may not wrap around. This means that * there will be at least 4 unused desciptor entries in the middle * of the RX ring at all times. * * Similar to HME, GEM assumes that it can write garbage bytes before * the beginning of the buffer and right after the end in order to DMA * whole cachelines. * * Unlike for TX, GEM does update the status word in the RX descriptors * when packets arrive. Therefore an ownership bit does exist in the * RX descriptors. It is advisory, GEM clears it but does not check * it in any way. So when buffers are posted to the RX ring (via the * RX Kick register) by the driver it must make sure the buffers are * truly ready and that the ownership bits are set properly. * * Even though GEM modifies the RX descriptors, it guarantees that the * buffer DMA address field will stay the same when it performs these * updates. Therefore it can be used to keep track of DMA mappings * by the host driver just as in the TX descriptor case above. */ struct gem_rxd { u64 status_word; u64 buffer; }; #define RXDCTRL_TCPCSUM 0x000000000000ffffULL /* TCP Pseudo-CSUM */ #define RXDCTRL_BUFSZ 0x000000007fff0000ULL /* Buffer Size */ #define RXDCTRL_OWN 0x0000000080000000ULL /* GEM owns this entry */ #define RXDCTRL_HASHVAL 0x0ffff00000000000ULL /* Hash Value */ #define RXDCTRL_HPASS 0x1000000000000000ULL /* Passed Hash Filter */ #define RXDCTRL_ALTMAC 0x2000000000000000ULL /* Matched ALT MAC */ #define RXDCTRL_BAD 0x4000000000000000ULL /* Frame has bad CRC */ #define RXDCTRL_FRESH(gp) \ ((((RX_BUF_ALLOC_SIZE(gp) - RX_OFFSET) << 16) & RXDCTRL_BUFSZ) | \ RXDCTRL_OWN) #define TX_RING_SIZE 128 #define RX_RING_SIZE 128 #if TX_RING_SIZE == 32 #define TXDMA_CFG_BASE TXDMA_CFG_RINGSZ_32 #elif TX_RING_SIZE == 64 #define TXDMA_CFG_BASE TXDMA_CFG_RINGSZ_64 #elif TX_RING_SIZE == 128 #define TXDMA_CFG_BASE TXDMA_CFG_RINGSZ_128 #elif TX_RING_SIZE == 256 #define TXDMA_CFG_BASE TXDMA_CFG_RINGSZ_256 #elif TX_RING_SIZE == 512 #define TXDMA_CFG_BASE TXDMA_CFG_RINGSZ_512 #elif TX_RING_SIZE == 1024 #define TXDMA_CFG_BASE TXDMA_CFG_RINGSZ_1K #elif TX_RING_SIZE == 2048 #define TXDMA_CFG_BASE TXDMA_CFG_RINGSZ_2K #elif TX_RING_SIZE == 4096 #define TXDMA_CFG_BASE TXDMA_CFG_RINGSZ_4K #elif TX_RING_SIZE == 8192 #define TXDMA_CFG_BASE TXDMA_CFG_RINGSZ_8K #else #error TX_RING_SIZE value is illegal... #endif #if RX_RING_SIZE == 32 #define RXDMA_CFG_BASE RXDMA_CFG_RINGSZ_32 #elif RX_RING_SIZE == 64 #define RXDMA_CFG_BASE RXDMA_CFG_RINGSZ_64 #elif RX_RING_SIZE == 128 #define RXDMA_CFG_BASE RXDMA_CFG_RINGSZ_128 #elif RX_RING_SIZE == 256 #define RXDMA_CFG_BASE RXDMA_CFG_RINGSZ_256 #elif RX_RING_SIZE == 512 #define RXDMA_CFG_BASE RXDMA_CFG_RINGSZ_512 #elif RX_RING_SIZE == 1024 #define RXDMA_CFG_BASE RXDMA_CFG_RINGSZ_1K #elif RX_RING_SIZE == 2048 #define RXDMA_CFG_BASE RXDMA_CFG_RINGSZ_2K #elif RX_RING_SIZE == 4096 #define RXDMA_CFG_BASE RXDMA_CFG_RINGSZ_4K #elif RX_RING_SIZE == 8192 #define RXDMA_CFG_BASE RXDMA_CFG_RINGSZ_8K #else #error RX_RING_SIZE is illegal... #endif #define NEXT_TX(N) (((N) + 1) & (TX_RING_SIZE - 1)) #define NEXT_RX(N) (((N) + 1) & (RX_RING_SIZE - 1)) #define TX_BUFFS_AVAIL(GP) \ (((GP)->tx_old <= (GP)->tx_new) ? \ (GP)->tx_old + (TX_RING_SIZE - 1) - (GP)->tx_new : \ (GP)->tx_old - (GP)->tx_new - 1) #define RX_OFFSET 2 #define RX_BUF_ALLOC_SIZE(gp) ((gp)->rx_buf_sz + 28 + RX_OFFSET + 64) #define RX_COPY_THRESHOLD 256 #if TX_RING_SIZE < 128 #define INIT_BLOCK_TX_RING_SIZE 128 #else #define INIT_BLOCK_TX_RING_SIZE TX_RING_SIZE #endif #if RX_RING_SIZE < 128 #define INIT_BLOCK_RX_RING_SIZE 128 #else #define INIT_BLOCK_RX_RING_SIZE RX_RING_SIZE #endif struct gem_init_block { struct gem_txd txd[INIT_BLOCK_TX_RING_SIZE]; struct gem_rxd rxd[INIT_BLOCK_RX_RING_SIZE]; }; enum gem_phy_type { phy_mii_mdio0, phy_mii_mdio1, phy_serialink, phy_serdes, }; enum link_state { link_down = 0, /* No link, will retry */ link_aneg, /* Autoneg in progress */ link_force_try, /* Try Forced link speed */ link_force_ret, /* Forced mode worked, retrying autoneg */ link_force_ok, /* Stay in forced mode */ link_up /* Link is up */ }; struct gem { spinlock_t lock; spinlock_t tx_lock; void __iomem *regs; int rx_new, rx_old; int tx_new, tx_old; unsigned int has_wol : 1; /* chip supports wake-on-lan */ unsigned int asleep : 1; /* chip asleep, protected by pm_mutex */ unsigned int asleep_wol : 1; /* was asleep with WOL enabled */ unsigned int opened : 1; /* driver opened, protected by pm_mutex */ unsigned int running : 1; /* chip running, protected by lock */ /* cell enable count, protected by lock */ int cell_enabled; struct mutex pm_mutex; u32 msg_enable; u32 status; struct napi_struct napi; struct net_device_stats net_stats; int tx_fifo_sz; int rx_fifo_sz; int rx_pause_off; int rx_pause_on; int rx_buf_sz; u64 pause_entered; u16 pause_last_time_recvd; u32 mac_rx_cfg; u32 swrst_base; int want_autoneg; int last_forced_speed; enum link_state lstate; struct timer_list link_timer; int timer_ticks; int wake_on_lan; struct work_struct reset_task; volatile int reset_task_pending; enum gem_phy_type phy_type; struct mii_phy phy_mii; int mii_phy_addr; struct gem_init_block *init_block; struct sk_buff *rx_skbs[RX_RING_SIZE]; struct sk_buff *tx_skbs[TX_RING_SIZE]; dma_addr_t gblock_dvma; struct pci_dev *pdev; struct net_device *dev; #if defined(CONFIG_PPC_PMAC) || defined(CONFIG_SPARC) struct device_node *of_node; #endif }; #define found_mii_phy(gp) ((gp->phy_type == phy_mii_mdio0 || gp->phy_type == phy_mii_mdio1) \ && gp->phy_mii.def && gp->phy_mii.def->ops) #define ALIGNED_RX_SKB_ADDR(addr) \ ((((unsigned long)(addr) + (64UL - 1UL)) & ~(64UL - 1UL)) - (unsigned long)(addr)) static __inline__ struct sk_buff *gem_alloc_skb(int size, gfp_t gfp_flags) { struct sk_buff *skb = alloc_skb(size + 64, gfp_flags); if (skb) { int offset = (int) ALIGNED_RX_SKB_ADDR(skb->data); if (offset) skb_reserve(skb, offset); } return skb; } #endif /* _SUNGEM_H */
fgoncalves/Modified-TS7500-Kernel
drivers/net/sungem.h
C
gpl-2.0
43,361
[ 30522, 1013, 1008, 1002, 8909, 1024, 7042, 6633, 1012, 1044, 1010, 1058, 1015, 1012, 1015, 1012, 1015, 1012, 1015, 2230, 1013, 6021, 1013, 2340, 2538, 1024, 5718, 1024, 2603, 19031, 4654, 2361, 1002, 1008, 7042, 6633, 1012, 1044, 1024, 15182, 2005, 3103, 17070, 26110, 4062, 1012, 1008, 1008, 9385, 1006, 1039, 1007, 2456, 2585, 1055, 1012, 4679, 1006, 4913, 2213, 1030, 2417, 12707, 1012, 4012, 1007, 1008, 1013, 1001, 2065, 13629, 2546, 1035, 7042, 6633, 1035, 1044, 1001, 9375, 1035, 7042, 6633, 1035, 1044, 1013, 30524, 8889, 2692, 2549, 5313, 1013, 1008, 9563, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 28093, 1014, 2595, 8889, 2692, 10841, 2140, 1013, 1008, 3570, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 10047, 19895, 1014, 2595, 8889, 10790, 5313, 1013, 1008, 17938, 7308, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 24264, 3600, 1014, 2595, 8889, 16932, 5313, 1013, 1008, 17938, 9353, 2243, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 28093, 2475, 1014, 2595, 8889, 2487, 10841, 2140, 1013, 1008, 14593, 1997, 6754, 1035, 28093, 1008, 1013, 1001, 9375, 6754, 1035, 7473, 10458, 4017, 1014, 2595, 18613, 2692, 5313, 1013, 1008, 7473, 2072, 7561, 3570, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 7473, 2666, 9335, 2243, 1014, 2595, 18613, 2549, 5313, 1013, 1008, 7473, 2072, 7561, 7308, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 12170, 11329, 2546, 2290, 1014, 2595, 18613, 2620, 5313, 1013, 1008, 12170, 2546, 9563, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 12170, 2546, 9032, 2290, 1014, 2595, 18613, 10841, 2140, 1013, 1008, 12170, 2546, 16474, 2015, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 25430, 12096, 1014, 2595, 10790, 10790, 5313, 1013, 1008, 4007, 25141, 4236, 1008, 1013, 1013, 1008, 3795, 7367, 2497, 2110, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 7367, 5910, 12259, 1035, 12098, 2497, 1014, 2595, 8889, 8889, 8889, 2692, 2509, 1013, 1008, 2110, 1997, 12098, 16313, 2121, 1008, 1013, 1001, 9375, 6754, 1035, 7367, 5910, 12259, 1035, 1054, 2595, 19291, 1014, 2595, 8889, 8889, 8889, 2692, 2549, 1013, 1008, 1054, 2595, 2180, 4722, 18010, 1008, 1013, 1013, 1008, 3795, 9563, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 12935, 2290, 1035, 21307, 29402, 1014, 2595, 8889, 8889, 8889, 24096, 1013, 1008, 10709, 6532, 1008, 1013, 1001, 9375, 6754, 1035, 12935, 2290, 1035, 19067, 22117, 11475, 2213, 1014, 2595, 8889, 8889, 8889, 2509, 2063, 1013, 1008, 19067, 1040, 2863, 3946, 5787, 1008, 1013, 1001, 9375, 6754, 1035, 12935, 2290, 1035, 1054, 2595, 22117, 11475, 2213, 1014, 2595, 8889, 8889, 2692, 2581, 2278, 2692, 1013, 1008, 1054, 2595, 1040, 2863, 3946, 5787, 1008, 1013, 1001, 9375, 6754, 1035, 12935, 2290, 1035, 6902, 4502, 5313, 16313, 1014, 2595, 8889, 8889, 2692, 17914, 2692, 1013, 1008, 2224, 2033, 2213, 3191, 3674, 2005, 7473, 2072, 3191, 1008, 2044, 10709, 6532, 1006, 6207, 1007, 1008, 1013, 1001, 9375, 6754, 1035, 12935, 2290, 1035, 30523, 1008, 3795, 18687, 1008, 1013, 1001, 9375, 6754, 1035, 7367, 5910, 12259, 1014, 2595, 8889, 8889, 5313, 1013, 1008, 7367, 2497, 2110, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 12935, 2290, 1014, 2595, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1008, 3795, 18687, 1008, 1013, 1001, 9375, 6754, 1035, 7367, 5910, 12259, 1014, 2595, 8889, 8889, 5313, 1013, 1008, 7367, 2497, 2110, 4236, 1008, 1013, 1001, 9375, 6754, 1035, 12935, 2290, 1014, 2595, 30526 ]
<!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" xmlns="http://www.w3.org/1999/html"> <!--<![endif]--> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8" /> <title>icon-retweet: Font Awesome Icons</title> <meta name="description" content="Font Awesome, the iconic font designed for Bootstrap"> <meta name="author" content="Dave Gandy"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!--<meta name="viewport" content="initial-scale=1; maximum-scale=1">--> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- CSS ================================================== --> <link rel="stylesheet" href="../../assets/css/site.css"> <link rel="stylesheet" href="../../assets/css/pygments.css"> <link rel="stylesheet" href="../../assets/font-awesome/css/font-awesome.css"> <!--[if IE 7]> <link rel="stylesheet" href="../../assets/font-awesome/css/font-awesome-ie7.css"> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="../../assets/ico/favicon.ico"> <script type="text/javascript" src="//use.typekit.net/wnc7ioh.js"></script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-30136587-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body data-spy="scroll" data-target=".navbar"> <div class="wrapper"> <!-- necessary for sticky footer. wrap all content except footer --> <div class="navbar navbar-inverse navbar-static-top hidden-print"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="../../"><i class="icon-flag"></i> Font Awesome</a> <div class="nav-collapse collapse"> <ul class="nav"> <li class="hidden-tablet "><a href="../../">Home</a></li> <li><a href="../../get-started/">Get Started</a></li> <li class="dropdown-split-left"><a href="../../icons/">Icons</a></li> <li class="dropdown dropdown-split-right hidden-phone"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-caret-down"></i> </a> <ul class="dropdown-menu pull-right"> <li><a href="../../icons/"><i class="icon-flag icon-fixed-width"></i>&nbsp; Icons</a></li> <li class="divider"></li> <li><a href="../../icons/#new"><i class="icon-shield icon-fixed-width"></i>&nbsp; New Icons in 3.2.1</a></li> <li><a href="../../icons/#web-application"><i class="icon-camera-retro icon-fixed-width"></i>&nbsp; Web Application Icons</a></li> <li><a href="../../icons/#currency"><i class="icon-won icon-fixed-width"></i>&nbsp; Currency Icons</a></li> <li><a href="../../icons/#text-editor"><i class="icon-file-text-alt icon-fixed-width"></i>&nbsp; Text Editor Icons</a></li> <li><a href="../../icons/#directional"><i class="icon-hand-right icon-fixed-width"></i>&nbsp; Directional Icons</a></li> <li><a href="../../icons/#video-player"><i class="icon-play-sign icon-fixed-width"></i>&nbsp; Video Player Icons</a></li> <li><a href="../../icons/#brand"><i class="icon-github icon-fixed-width"></i>&nbsp; Brand Icons</a></li> <li><a href="../../icons/#medical"><i class="icon-medkit icon-fixed-width"></i>&nbsp; Medical Icons</a></li> </ul> </li> <li class="dropdown-split-left"><a href="../../examples/">Examples</a></li> <li class="dropdown dropdown-split-right hidden-phone"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-caret-down"></i> </a> <ul class="dropdown-menu pull-right"> <li><a href="../../examples/">Examples</a></li> <li class="divider"></li> <li><a href="../../examples/#new-styles">New Styles</a></li> <li><a href="../../examples/#inline-icons">Inline Icons</a></li> <li><a href="../../examples/#larger-icons">Larger Icons</a></li> <li><a href="../../examples/#bordered-pulled">Bordered & Pulled</a></li> <li><a href="../../examples/#buttons">Buttons</a></li> <li><a href="../../examples/#button-groups">Button Groups</a></li> <li><a href="../../examples/#button-dropdowns">Button Dropdowns</a></li> <li><a href="../../examples/#bulleted-lists">Bulleted Lists</a></li> <li><a href="../../examples/#navigation">Navigation</a></li> <li><a href="../../examples/#form-inputs">Form Inputs</a></li> <li><a href="../../examples/#animated-spinner">Animated Spinner</a></li> <li><a href="../../examples/#rotated-flipped">Rotated &amp; Flipped</a></li> <li><a href="../../examples/#stacked">Stacked</a></li> <li><a href="../../examples/#custom">Custom CSS</a></li> </ul> </li> <li><a href="../../whats-new/"> <span class="hidden-tablet">What's </span>New</a> </li> <li><a href="../../community/">Community</a></li> <li><a href="../../license/">License</a></li> </ul> <ul class="nav pull-right"> <li><a href="http://blog.fontawesome.io">Blog</a></li> </ul> </div> </div> </div> </div> <div class="jumbotron jumbotron-icon"> <div class="container"> <div class="info-icons"> <i class="icon-retweet icon-6"></i>&nbsp;&nbsp; <span class="hidden-phone"> <i class="icon-retweet icon-5"></i>&nbsp;&nbsp; <span class="hidden-tablet"><i class="icon-retweet icon-4"></i>&nbsp;&nbsp;</span> <i class="icon-retweet icon-3"></i>&nbsp;&nbsp; <i class="icon-retweet icon-2"></i>&nbsp; </span> <i class="icon-retweet icon-1"></i> </div> <h1 class="info-class"> icon-retweet <small> <i class="icon-retweet"></i> &middot; Unicode: <span class="upper">f079</span> &middot; Created: v1.0 &middot; Categories: Web Application Icons </small> </h1> </div> </div> <div class="container"> <section> <div class="row-fluid"> <div class="span9"> <p>After you get <a href="../../integration/">up and running</a>, you can place Font Awesome icons just about anywhere with the <code>&lt;i&gt;</code> tag:</p> <div class="well well-transparent"> <div style="font-size: 24px; line-height: 1.5em;"> <i class="icon-retweet"></i> icon-retweet </div> </div> <div class="highlight"><pre><code class="html"><span class="nt">&lt;i</span> <span class="na">class=</span><span class="s">&quot;icon-retweet&quot;</span><span class="nt">&gt;&lt;/i&gt;</span> icon-retweet </code></pre></div> <br> <div class="lead"><i class="icon-info-sign"></i> Looking for more? Check out the <a href="../../examples/">examples</a>.</div> </div> <div class="span3"> <div class="info-ad"><div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/32291/azcarbon_2_1_0_VERT"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div> </div> </div> </div> </section> </div> <div class="push"><!-- necessary for sticky footer --></div> </div> <footer class="footer hidden-print"> <div class="container text-center"> <div> <i class="icon-flag"></i> Font Awesome 3.2.1 <span class="hidden-phone">&middot;</span><br class="visible-phone"> Created and Maintained by <a href="http://twitter.com/davegandy">Dave Gandy</a> </div> <div> Font Awesome licensed under <a href="http://scripts.sil.org/OFL">SIL OFL 1.1</a> <span class="hidden-phone">&middot;</span><br class="visible-phone"> Code licensed under <a href="http://opensource.org/licenses/mit-license.html">MIT License</a> <span class="hidden-phone hidden-tablet">&middot;</span><br class="visible-phone visible-tablet"> Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a> </div> <div> Thanks to <a href="http://maxcdn.com"><i class="icon-maxcdn"></i> MaxCDN</a> for providing the excellent <a href="http://www.bootstrapcdn.com/#tab_fontawesome">BootstrapCDN for Font Awesome</a> </div> <div class="project"> <a href="https://github.com/FortAwesome/Font-Awesome">GitHub Project</a> &middot; <a href="https://github.com/FortAwesome/Font-Awesome/issues">Issues</a> </div> </div> </footer> <script src="http://platform.twitter.com/widgets.js"></script> <script src="../../assets/js/jquery-1.7.1.min.js"></script> <script src="../../assets/js/ZeroClipboard-1.1.7.min.js"></script> <script src="../../assets/js/bootstrap-2.3.1.min.js"></script> <script src="../../assets/js/site.js"></script> </body> </html>
vinnylinck/listagram
www/lib/font-awesome/src/3.2.1/icon/retweet/index.html
HTML
mit
10,069
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 999, 1011, 1011, 1031, 2065, 8318, 29464, 1021, 1033, 1028, 1026, 16129, 2465, 1027, 1000, 29464, 29464, 2575, 1000, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 999, 1031, 2203, 10128, 1033, 1011, 1011, 1028, 1026, 999, 1011, 1011, 1031, 2065, 29464, 1021, 1033, 1028, 1026, 16129, 2465, 1027, 1000, 29464, 29464, 2581, 1000, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 999, 1031, 2203, 10128, 1033, 1011, 1011, 1028, 1026, 999, 1011, 1011, 1031, 2065, 29464, 1022, 1033, 1028, 1026, 16129, 2465, 1027, 1000, 29464, 29464, 2620, 1000, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 999, 1031, 2203, 10128, 1033, 1011, 1011, 1028, 1026, 999, 1011, 1011, 1031, 2065, 1006, 14181, 2063, 29464, 1023, 1007, 1064, 999, 1006, 29464, 1007, 1033, 1028, 1026, 999, 1011, 1011, 1028, 1026, 16129, 11374, 1027, 1000, 4372, 1000, 20950, 3619, 1027, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 2639, 1013, 16129, 1000, 1028, 1026, 999, 1011, 1011, 1026, 999, 1031, 2203, 10128, 1033, 1011, 1011, 1028, 1026, 2132, 1028, 1026, 999, 1011, 1011, 3937, 3931, 3791, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1011, 1011, 1028, 1026, 18804, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1013, 1028, 1026, 2516, 1028, 12696, 1011, 2128, 2102, 28394, 2102, 1024, 15489, 12476, 18407, 1026, 1013, 2516, 1028, 1026, 18804, 2171, 1027, 1000, 6412, 1000, 4180, 1027, 1000, 15489, 12476, 1010, 1996, 14430, 15489, 30524, 18804, 2171, 1027, 1000, 3166, 1000, 4180, 1027, 1000, 4913, 25957, 5149, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 3193, 6442, 1000, 4180, 1027, 1000, 9381, 1027, 5080, 1011, 9381, 1010, 3988, 1011, 4094, 1027, 1015, 1012, 1014, 1000, 1028, 1026, 999, 1011, 1011, 1026, 18804, 2171, 1027, 1000, 3193, 6442, 1000, 4180, 1027, 1000, 3988, 1011, 4094, 1027, 1015, 1025, 4555, 1011, 4094, 1027, 1015, 1000, 1028, 1011, 1011, 1028, 1026, 999, 1011, 1011, 1031, 2065, 8318, 29464, 1023, 1033, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 8299, 1024, 1013, 1013, 16129, 2629, 6182, 2213, 1012, 8224, 16044, 1012, 4012, 1013, 17917, 2078, 1013, 8260, 1013, 16129, 2629, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 999, 1031, 2203, 10128, 1033, 1011, 1011, 1028, 1026, 999, 1011, 1011, 20116, 2015, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1011, 1011, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 7045, 1013, 30523, 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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2881, 2005, 6879, 6494, 2361, 1000, 1028, 1026, 30526 ]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../includes/main.css" type="text/css"> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"> <title>Apache CloudStack | The Power Behind Your Cloud</title> </head> <body> <div id="insidetopbg"> <div id="inside_wrapper"> <div class="uppermenu_panel"> <div class="uppermenu_box"></div> </div> <div id="main_master"> <div id="inside_header"> <div class="header_top"> <a class="cloud_logo" href="http://cloudstack.org"></a> <div class="mainemenu_panel"></div> </div> </div> <div id="main_content"> <div class="inside_apileftpanel"> <div class="inside_contentpanel" style="width:930px;"> <div class="api_titlebox"> <div class="api_titlebox_left"> <span> Apache CloudStack v4.7.0 Domain Admin API Reference </span> <p></p> <h1>listVirtualMachines</h1> <p>List the virtual machines owned by the account.</p> </div> <div class="api_titlebox_right"> <a class="api_backbutton" href="../TOC_Domain_Admin.html"></a> </div> </div> <div class="api_tablepanel"> <h2>Request parameters</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Parameter Name</strong></td><td style="width:500px;">Description</td><td style="width:180px;">Required</td> </tr> <tr> <td style="width:200px;"><i>account</i></td><td style="width:500px;"><i>list resources by account. Must be used with the domainId parameter.</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>affinitygroupid</i></td><td style="width:500px;"><i>list vms by affinity group</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>details</i></td><td style="width:500px;"><i>comma separated list of host details requested, value can be a list of [all, group, nics, stats, secgrp, tmpl, servoff, diskoff, iso, volume, min, affgrp]. If no parameter is passed in, the details will be defaulted to all</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>displayvm</i></td><td style="width:500px;"><i>list resources by display flag; only ROOT admin is eligible to pass this parameter</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>domainid</i></td><td style="width:500px;"><i>list only resources belonging to the domain specified</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>forvirtualnetwork</i></td><td style="width:500px;"><i>list by network type; true if need to list vms using Virtual Network, false otherwise</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>groupid</i></td><td style="width:500px;"><i>the group ID</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>hostid</i></td><td style="width:500px;"><i>the host ID</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>hostid</i></td><td style="width:500px;"><i>the host ID</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>hypervisor</i></td><td style="width:500px;"><i>the target hypervisor for the template</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>id</i></td><td style="width:500px;"><i>the ID of the virtual machine</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>ids</i></td><td style="width:500px;"><i>the IDs of the virtual machines, mutually exclusive with id</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>isoid</i></td><td style="width:500px;"><i>list vms by iso</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>isrecursive</i></td><td style="width:500px;"><i>defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>keypair</i></td><td style="width:500px;"><i>list vms by ssh keypair name</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>keyword</i></td><td style="width:500px;"><i>List by keyword</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>listall</i></td><td style="width:500px;"><i>If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>name</i></td><td style="width:500px;"><i>name of the virtual machine (a substring match is made against the parameter value, data for all matching VMs will be returned)</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>networkid</i></td><td style="width:500px;"><i>list by network id</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>page</i></td><td style="width:500px;"><i></i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>pagesize</i></td><td style="width:500px;"><i></i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>podid</i></td><td style="width:500px;"><i>the pod ID</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>podid</i></td><td style="width:500px;"><i>the pod ID</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>projectid</i></td><td style="width:500px;"><i>list objects by project</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>serviceofferingid</i></td><td style="width:500px;"><i>list by the service offering</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>state</i></td><td style="width:500px;"><i>state of the virtual machine. Possible values are: Running, Stopped, Present, Destroyed, Expunged. Present is used for the state equal not destroyed.</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>storageid</i></td><td style="width:500px;"><i>the storage ID where vm's volumes belong to</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>storageid</i></td><td style="width:500px;"><i>the storage ID where vm's volumes belong to</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>tags</i></td><td style="width:500px;"><i>List resources by tags (key/value pairs)</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>templateid</i></td><td style="width:500px;"><i>list vms by template</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>userid</i></td><td style="width:500px;"><i>the user ID that created the VM and is under the account that owns the VM</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>vpcid</i></td><td style="width:500px;"><i>list vms by vpc</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>zoneid</i></td><td style="width:500px;"><i>the availability zone ID</i></td><td style="width:180px;"><i>false</i></td> </tr> </table> </div> <div class="api_tablepanel"> <h2>Response Tags</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Response Name</strong></td><td style="width:500px;">Description</td> </tr> <tr> <td style="width:200px;"><strong>id</strong></td><td style="width:500px;">the ID of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>account</strong></td><td style="width:500px;">the account associated with the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>cpunumber</strong></td><td style="width:500px;">the number of cpu this virtual machine is running with</td> </tr> <tr> <td style="width:200px;"><strong>cpuspeed</strong></td><td style="width:500px;">the speed of each cpu</td> </tr> <tr> <td style="width:200px;"><strong>cpuused</strong></td><td style="width:500px;">the amount of the vm's CPU currently used</td> </tr> <tr> <td style="width:200px;"><strong>created</strong></td><td style="width:500px;">the date when this virtual machine was created</td> </tr> <tr> <td style="width:200px;"><strong>details</strong></td><td style="width:500px;">Vm details in key/value pairs.</td> </tr> <tr> <td style="width:200px;"><strong>diskioread</strong></td><td style="width:500px;">the read (io) of disk on the vm</td> </tr> <tr> <td style="width:200px;"><strong>diskiowrite</strong></td><td style="width:500px;">the write (io) of disk on the vm</td> </tr> <tr> <td style="width:200px;"><strong>diskkbsread</strong></td><td style="width:500px;">the read (bytes) of disk on the vm</td> </tr> <tr> <td style="width:200px;"><strong>diskkbswrite</strong></td><td style="width:500px;">the write (bytes) of disk on the vm</td> </tr> <tr> <td style="width:200px;"><strong>diskofferingid</strong></td><td style="width:500px;">the ID of the disk offering of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>diskofferingname</strong></td><td style="width:500px;">the name of the disk offering of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>displayname</strong></td><td style="width:500px;">user generated name. The name of the virtual machine is returned if no displayname exists.</td> </tr> <tr> <td style="width:200px;"><strong>displayvm</strong></td><td style="width:500px;">an optional field whether to the display the vm to the end user or not.</td> </tr> <tr> <td style="width:200px;"><strong>domain</strong></td><td style="width:500px;">the name of the domain in which the virtual machine exists</td> </tr> <tr> <td style="width:200px;"><strong>domainid</strong></td><td style="width:500px;">the ID of the domain in which the virtual machine exists</td> </tr> <tr> <td style="width:200px;"><strong>forvirtualnetwork</strong></td><td style="width:500px;">the virtual network for the service offering</td> </tr> <tr> <td style="width:200px;"><strong>group</strong></td><td style="width:500px;">the group name of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>groupid</strong></td><td style="width:500px;">the group ID of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>guestosid</strong></td><td style="width:500px;">Os type ID of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>haenable</strong></td><td style="width:500px;">true if high-availability is enabled, false otherwise</td> </tr> <tr> <td style="width:200px;"><strong>hostid</strong></td><td style="width:500px;">the ID of the host for the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>hostname</strong></td><td style="width:500px;">the name of the host for the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>hypervisor</strong></td><td style="width:500px;">the hypervisor on which the template runs</td> </tr> <tr> <td style="width:200px;"><strong>instancename</strong></td><td style="width:500px;">instance name of the user vm; this parameter is returned to the ROOT admin only</td> </tr> <tr> <td style="width:200px;"><strong>isdynamicallyscalable</strong></td><td style="width:500px;">true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory.</td> </tr> <tr> <td style="width:200px;"><strong>isodisplaytext</strong></td><td style="width:500px;">an alternate display text of the ISO attached to the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>isoid</strong></td><td style="width:500px;">the ID of the ISO attached to the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>isoname</strong></td><td style="width:500px;">the name of the ISO attached to the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>keypair</strong></td><td style="width:500px;">ssh key-pair</td> </tr> <tr> <td style="width:200px;"><strong>memory</strong></td><td style="width:500px;">the memory allocated for the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>name</strong></td><td style="width:500px;">the name of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>networkkbsread</strong></td><td style="width:500px;">the incoming network traffic on the vm</td> </tr> <tr> <td style="width:200px;"><strong>networkkbswrite</strong></td><td style="width:500px;">the outgoing network traffic on the host</td> </tr> <tr> <td style="width:200px;"><strong>ostypeid</strong></td><td style="width:500px;">OS type id of the vm</td> </tr> <tr> <td style="width:200px;"><strong>password</strong></td><td style="width:500px;">the password (if exists) of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>passwordenabled</strong></td><td style="width:500px;">true if the password rest feature is enabled, false otherwise</td> </tr> <tr> <td style="width:200px;"><strong>project</strong></td><td style="width:500px;">the project name of the vm</td> </tr> <tr> <td style="width:200px;"><strong>projectid</strong></td><td style="width:500px;">the project id of the vm</td> </tr> <tr> <td style="width:200px;"><strong>publicip</strong></td><td style="width:500px;">public IP address id associated with vm via Static nat rule</td> </tr> <tr> <td style="width:200px;"><strong>publicipid</strong></td><td style="width:500px;">public IP address id associated with vm via Static nat rule</td> </tr> <tr> <td style="width:200px;"><strong>rootdeviceid</strong></td><td style="width:500px;">device ID of the root volume</td> </tr> <tr> <td style="width:200px;"><strong>rootdevicetype</strong></td><td style="width:500px;">device type of the root volume</td> </tr> <tr> <td style="width:200px;"><strong>serviceofferingid</strong></td><td style="width:500px;">the ID of the service offering of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>serviceofferingname</strong></td><td style="width:500px;">the name of the service offering of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>servicestate</strong></td><td style="width:500px;">State of the Service from LB rule</td> </tr> <tr> <td style="width:200px;"><strong>state</strong></td><td style="width:500px;">the state of the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>templatedisplaytext</strong></td><td style="width:500px;"> an alternate display text of the template for the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>templateid</strong></td><td style="width:500px;">the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file.</td> </tr> <tr> <td style="width:200px;"><strong>templatename</strong></td><td style="width:500px;">the name of the template for the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>userid</strong></td><td style="width:500px;">the user's ID who deployed the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>username</strong></td><td style="width:500px;">the user's name who deployed the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>vgpu</strong></td><td style="width:500px;">the vgpu type used by the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>zoneid</strong></td><td style="width:500px;">the ID of the availablility zone for the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>zonename</strong></td><td style="width:500px;">the name of the availability zone for the virtual machine</td> </tr> <tr> <td style="width:200px;"><strong>affinitygroup(*)</strong></td><td style="width:500px;">list of affinity groups associated with the virtual machine</td> <tr> <td style="width:180px; padding-left:25px;"><strong>id</strong></td><td style="width:500px;">the ID of the affinity group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>account</strong></td><td style="width:500px;">the account owning the affinity group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>description</strong></td><td style="width:500px;">the description of the affinity group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>domain</strong></td><td style="width:500px;">the domain name of the affinity group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>domainid</strong></td><td style="width:500px;">the domain ID of the affinity group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>name</strong></td><td style="width:500px;">the name of the affinity group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>project</strong></td><td style="width:500px;">the project name of the affinity group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>projectid</strong></td><td style="width:500px;">the project ID of the affinity group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>type</strong></td><td style="width:500px;">the type of the affinity group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>virtualmachineIds</strong></td><td style="width:500px;">virtual machine IDs associated with this affinity group</td> </tr> </tr> <tr> <td style="width:200px;"><strong>nic(*)</strong></td><td style="width:500px;">the list of nics associated with vm</td> <tr> <td style="width:180px; padding-left:25px;"><strong>id</strong></td><td style="width:500px;">the ID of the nic</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>broadcasturi</strong></td><td style="width:500px;">the broadcast uri of the nic</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>deviceid</strong></td><td style="width:500px;">device id for the network when plugged into the virtual machine</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>gateway</strong></td><td style="width:500px;">the gateway of the nic</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>ip6address</strong></td><td style="width:500px;">the IPv6 address of network</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>ip6cidr</strong></td><td style="width:500px;">the cidr of IPv6 network</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>ip6gateway</strong></td><td style="width:500px;">the gateway of IPv6 network</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>ipaddress</strong></td><td style="width:500px;">the ip address of the nic</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>isdefault</strong></td><td style="width:500px;">true if nic is default, false otherwise</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>isolationuri</strong></td><td style="width:500px;">the isolation uri of the nic</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>macaddress</strong></td><td style="width:500px;">true if nic is default, false otherwise</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>netmask</strong></td><td style="width:500px;">the netmask of the nic</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>networkid</strong></td><td style="width:500px;">the ID of the corresponding network</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>networkname</strong></td><td style="width:500px;">the name of the corresponding network</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>secondaryip</strong></td><td style="width:500px;">the Secondary ipv4 addr of nic</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>traffictype</strong></td><td style="width:500px;">the traffic type of the nic</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>type</strong></td><td style="width:500px;">the type of the nic</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>virtualmachineid</strong></td><td style="width:500px;">Id of the vm to which the nic belongs</td> </tr> </tr> <tr> <td style="width:200px;"><strong>securitygroup(*)</strong></td><td style="width:500px;">list of security groups associated with the virtual machine</td> <tr> <td style="width:180px; padding-left:25px;"><strong>id</strong></td><td style="width:500px;">the ID of the security group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>account</strong></td><td style="width:500px;">the account owning the security group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>description</strong></td><td style="width:500px;">the description of the security group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>domain</strong></td><td style="width:500px;">the domain name of the security group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>domainid</strong></td><td style="width:500px;">the domain ID of the security group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>name</strong></td><td style="width:500px;">the name of the security group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>project</strong></td><td style="width:500px;">the project name of the group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>projectid</strong></td><td style="width:500px;">the project id of the group</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>virtualmachinecount</strong></td><td style="width:500px;">the number of virtualmachines associated with this securitygroup</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>virtualmachineids</strong></td><td style="width:500px;">the list of virtualmachine ids associated with this securitygroup</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>egressrule(*)</strong></td><td style="width:500px;">the list of egress rules associated with the security group</td> </tr> <tr> <td style="width:165px; padding-left:40px;">account</td><td style="width:500px;">account owning the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">cidr</td><td style="width:500px;">the CIDR notation for the base IP address of the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">endport</td><td style="width:500px;">the ending IP of the security group rule </td> </tr> <tr> <td style="width:165px; padding-left:40px;">icmpcode</td><td style="width:500px;">the code for the ICMP message response</td> </tr> <tr> <td style="width:165px; padding-left:40px;">icmptype</td><td style="width:500px;">the type of the ICMP message response</td> </tr> <tr> <td style="width:165px; padding-left:40px;">protocol</td><td style="width:500px;">the protocol of the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">ruleid</td><td style="width:500px;">the id of the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">securitygroupname</td><td style="width:500px;">security group name</td> </tr> <tr> <td style="width:165px; padding-left:40px;">startport</td><td style="width:500px;">the starting IP of the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">tags(*)</td><td style="width:500px;">the list of resource tags associated with the rule</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>ingressrule(*)</strong></td><td style="width:500px;">the list of ingress rules associated with the security group</td> </tr> <tr> <td style="width:165px; padding-left:40px;">account</td><td style="width:500px;">account owning the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">cidr</td><td style="width:500px;">the CIDR notation for the base IP address of the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">endport</td><td style="width:500px;">the ending IP of the security group rule </td> </tr> <tr> <td style="width:165px; padding-left:40px;">icmpcode</td><td style="width:500px;">the code for the ICMP message response</td> </tr> <tr> <td style="width:165px; padding-left:40px;">icmptype</td><td style="width:500px;">the type of the ICMP message response</td> </tr> <tr> <td style="width:165px; padding-left:40px;">protocol</td><td style="width:500px;">the protocol of the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">ruleid</td><td style="width:500px;">the id of the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">securitygroupname</td><td style="width:500px;">security group name</td> </tr> <tr> <td style="width:165px; padding-left:40px;">startport</td><td style="width:500px;">the starting IP of the security group rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">tags(*)</td><td style="width:500px;">the list of resource tags associated with the rule</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>tags(*)</strong></td><td style="width:500px;">the list of resource tags associated with the rule</td> </tr> <tr> <td style="width:165px; padding-left:40px;">account</td><td style="width:500px;">the account associated with the tag</td> </tr> <tr> <td style="width:165px; padding-left:40px;">customer</td><td style="width:500px;">customer associated with the tag</td> </tr> <tr> <td style="width:165px; padding-left:40px;">domain</td><td style="width:500px;">the domain associated with the tag</td> </tr> <tr> <td style="width:165px; padding-left:40px;">domainid</td><td style="width:500px;">the ID of the domain associated with the tag</td> </tr> <tr> <td style="width:165px; padding-left:40px;">key</td><td style="width:500px;">tag key name</td> </tr> <tr> <td style="width:165px; padding-left:40px;">project</td><td style="width:500px;">the project name where tag belongs to</td> </tr> <tr> <td style="width:165px; padding-left:40px;">projectid</td><td style="width:500px;">the project id the tag belongs to</td> </tr> <tr> <td style="width:165px; padding-left:40px;">resourceid</td><td style="width:500px;">id of the resource</td> </tr> <tr> <td style="width:165px; padding-left:40px;">resourcetype</td><td style="width:500px;">resource type</td> </tr> <tr> <td style="width:165px; padding-left:40px;">value</td><td style="width:500px;">tag value</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>jobid</strong></td><td style="width:500px;">the ID of the latest async job acting on this object</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>jobstatus</strong></td><td style="width:500px;">the current status of the latest async job acting on this object</td> </tr> </tr> <tr> <td style="width:200px;"><strong>tags(*)</strong></td><td style="width:500px;">the list of resource tags associated with vm</td> <tr> <td style="width:180px; padding-left:25px;"><strong>account</strong></td><td style="width:500px;">the account associated with the tag</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>customer</strong></td><td style="width:500px;">customer associated with the tag</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>domain</strong></td><td style="width:500px;">the domain associated with the tag</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>domainid</strong></td><td style="width:500px;">the ID of the domain associated with the tag</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>key</strong></td><td style="width:500px;">tag key name</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>project</strong></td><td style="width:500px;">the project name where tag belongs to</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>projectid</strong></td><td style="width:500px;">the project id the tag belongs to</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>resourceid</strong></td><td style="width:500px;">id of the resource</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>resourcetype</strong></td><td style="width:500px;">resource type</td> </tr> <tr> <td style="width:180px; padding-left:25px;"><strong>value</strong></td><td style="width:500px;">tag value</td> </tr> </tr> <tr> <td style="width:200px;"><strong>jobid</strong></td><td style="width:500px;">the ID of the latest async job acting on this object</td> </tr> <tr> <td style="width:200px;"><strong>jobstatus</strong></td><td style="width:500px;">the current status of the latest async job acting on this object</td> </tr> </table> </div> </div> </div> </div> </div> <div id="footer"> <div id="footer_mainmaster"> <p>Copyright &copy; 2015 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0.</a> <br> Apache, CloudStack, Apache CloudStack, the Apache CloudStack logo, the CloudMonkey logo and the Apache feather logo are trademarks of The Apache Software Foundation.</p> </div> </div> </div> </div> </body> </html>
pdion891/cloudstack-www
source/api/apidocs-4.7/domain_admin/listVirtualMachines.html
HTML
apache-2.0
29,441
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 16129, 1015, 1012, 1014, 17459, 1013, 1013, 4372, 1000, 1028, 1026, 16129, 20950, 3619, 1027, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 2639, 1013, 1060, 11039, 19968, 1000, 1028, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 2950, 1013, 2364, 1012, 20116, 2015, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 2460, 12690, 12696, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 6904, 7903, 2239, 1012, 24582, 2080, 1000, 2828, 1027, 1000, 3746, 1013, 1060, 1011, 12696, 1000, 1028, 1026, 2516, 1028, 15895, 8044, 2696, 3600, 1064, 1996, 2373, 2369, 2115, 6112, 1026, 1013, 2516, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2503, 14399, 2497, 2290, 1000, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2503, 1035, 10236, 4842, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 3356, 3549, 2226, 1035, 5997, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 3356, 3549, 2226, 1035, 3482, 1000, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2364, 1035, 3040, 1000, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2503, 1035, 20346, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 20346, 1035, 2327, 1000, 1028, 1026, 1037, 2465, 1027, 1000, 6112, 1035, 8154, 1000, 17850, 12879, 1027, 1000, 8299, 1024, 1013, 1013, 8044, 2696, 3600, 1012, 8917, 1000, 1028, 1026, 1013, 1037, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 7081, 3549, 2226, 1035, 5997, 1000, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2364, 1035, 4180, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2503, 1035, 17928, 2571, 6199, 9739, 2884, 1000, 1028, 30524, 2615, 2465, 1027, 1000, 17928, 1035, 2516, 8758, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 17928, 1035, 2516, 8758, 1035, 2187, 1000, 1028, 1026, 8487, 1028, 15895, 8044, 2696, 3600, 1058, 2549, 1012, 1021, 1012, 1014, 5884, 4748, 10020, 17928, 4431, 1026, 1013, 8487, 1028, 1026, 1052, 1028, 1026, 1013, 1052, 1028, 1026, 1044, 2487, 1028, 2862, 21663, 26302, 19145, 17231, 2229, 1026, 1013, 1044, 2487, 1028, 1026, 1052, 1028, 2862, 1996, 7484, 6681, 3079, 2011, 1996, 4070, 1012, 1026, 1013, 1052, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 30523, 1026, 4487, 2615, 2465, 1027, 1000, 2503, 1035, 4180, 9739, 2884, 1000, 2806, 1027, 1000, 9381, 1024, 29359, 2361, 2595, 1025, 1000, 1028, 1026, 4487, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1026, 4487, 2615, 2465, 1027, 1000, 2503, 1035, 4180, 9739, 2884, 1000, 2806, 1027, 1000, 9381, 1024, 29359, 2361, 2595, 1025, 1000, 1028, 1026, 4487, 30526 ]
--- title: उपसंहार date: 26/07/2019 --- थप जानकारी: यस अध्यायको विषयमा थप जानकारी चाहिएमा देहायका सामग्रीहरू उपयोगी छन्: एलेन जी ह्वाइटद्वारा लिखित पाट्रियार्क एण्ड प्रोफेटसको पृ. ७४६-७५५को लेख "द लास्ट ययरस अभ देभिद" सी.यस. लिविसद्वारा लिखित रिफ्लेक्सनस अन द सामसको पृ. १५-२२को लेख "जमेन्ट इन द सामस्"। "दाउदका भजनहरूले जीवनको अनुभवको यावत पलहरूलाई खोतलेका छन्। आफ्नै पापले गर्दा विवेकमा गहिरो घाऊ पारेको कारण आफूले आफैलाई दोष दिने स्थितिदेखि लिएर परमेश्वरप्रति परम आस्था राख्दै उहाँसँगको उच्च कोटीको संवादलाई पनि भजनसंग्रहका पानाहरूमा दाउदको कलमले कोरेको पाइन्छ। पापले लज्जा, सोक र सराप ल्याउँछ भनेर उनको जीवनले पर्दाफास गर्दछ भने मानिस जुनसुकै गहिरो खाल्डोमा परिरहेतापनि परमेश्वरको प्रेम, करुणा र दयाले उसलाई उचाल्न सक्छ। तर उसमा आफ्नो पापको कुकृत्य स्वभावलाई पश्चातापद्वारा परिवर्तन गर्ने गहिरो र सक्कली चाहना हुनुपर्छ। यस स्थितिले उसलाई परमेश्वरका छोराछोरीहरूको संगालोमा समेट्दछ। परमेश्वरको वचनमा हामीलाई उहाँतिर उचालि राख्न अनेकौँ वाचाहरू कोरिएका छन् तर पापको दलदलमा पनि मानिसलाई परमेश्वरको न्याय, विश्वसनीयता र करुणा उपलब्ध हुन सक्छ भन्ने उहाँको अरू गवाही वा वचनहरूमा यो अत्यन्तै विशाल र प्रभावकारी छ।"- एलेन जी ह्वाइट, पाट्रियार्क एण्ड प्रोफेटस्, पृ. ७५४बाट रूपान्तरित। हितोपदेशको पुस्तकमा दिइएका बुद्धिज्ञान, उपदेश र अर्तीहरूको बारेमा सम्बोधन गर्दै एलेन जी ह्वाइटले यसरी टिप्पणी गर्दछिन्: " समाजको सर्वोपरि हितको निम्ति यस पुस्तकमा नीति, उपदेश र सिद्धान्तहरू छन्। धार्मिक संस्था होस् वा धर्मनिरपेक्ष संस्थाहरूको निम्तिहोस्, यसमा लेखिएका वचनहरू सान्दर्भिक र उपयोगी छन्। यसमा लेखिएका नीतिहरूले नै मानिसहरूको भौतिक सम्पदा र जीवनलाई सुरक्षा गर्दछ। कतिपय मानिसहरूको हृदयमा परमेश्वरको व्यवस्था वा नीति ओझेलमा परिरहेको हुन्छ साथै त्यसको अस्तित्व मेटिन लागेको हुन्छ। यद्यपि, यदि मानिसले परमेश्वरमाथि भरोसा राखेर उहाँसँग सहभागी भएर चल्ने अठोट गर्यो भने यो संसार परमेश्वरको व्यवस्थाप्रति ऋणी भएको उसले महसुस गर्द पुग्दछ।"-एजुकेशन, पृ. १३७बाट रूपान्तरित। **चिन्तनमनन** `अ) के तपाईँ आफूलाई अगुवा ठानिरहनुभएको छ वा कुनै प्रतिस्ठित ओहोदामा बसिरहनुभएको छ जसले गर्दा तपाईँको क्रियाकलापले अरूलाई प्रभाव पार्दछ? तपाईँको जीवनको त्यस पक्षमा रहेर तपाईँ न्यायको दूत भएर कसरी काम गर्न सक्नुहुन्छ?` `आ) तपाईँ रहेको सामाजिक, सांस्कृतिक, धार्मिक र राजनैतिक प्रणालीमा रहेर आवश्यक परेकाहरूलाई तपाईँ न्यायमूर्ति कसरी हुनसक्नुहुन्छ?` `इ) बलियो र समृद्ध समाजको निर्माणको निम्ति न्यायोचित, उचित र निस्पक्ष नीतिहरूको आवश्यकता किन पर्छ?` `ई) हाम्रो जीवनको सर्वोच्च हितको निम्ति चाहिने नीति, उपदेश, अर्ती र बुद्धिज्ञानहरू हितोपदेशमा उल्लेख गरिएका छन्। त्यसले परमेश्वरको स्वभावको बारेमा हामीलाई के देखाउँछ?` **सारांश**: जीवनको साधारण चाल र दु:खकष्टहरूमा सच्चा, इमान्दारी र विश्वसनीय भएर बस्न सक्नु अत्यन्तै चुनौतिपूर्ण छ। त्यस चुनौतिलाई सामना गर्न चाहिने अर्ती र हौशलाहरू भजनसंग्रह र हितोपदेका दुई पुस्तकहरूले प्रदान गर्दछ। ती दुवै पुस्तकहरूले आदर्श समाजको निम्ति चाहिने परमेश्वरको भित्रि भावनाहरूलाई व्यक्त गरेका छन् साथै समाजमा पिछडिएका, शोषित भएका, अन्याय र अत्याचारमा परेका, पीडित र दरिद्रहरूप्रति उहाँको विशेष ध्यान भएको ती पुस्तकहरूले बताउँदछन्। बर्तमान समाजमा भइरहेको असमाजिक तत्वहरूको कारण शोषित र वेवास्ता गरिएका मानिसहरूको क्रन्दनलाई परमेश्वरले वेवास्ता गर्नुभएको छैन र तिनीहरूको रक्षा गर्न कुनै न कुनै तरिकाले उहाँले हस्तक्षेप गर्नुहुन्छ भनेर भजनसंग्रह र हितोपदेशमा रहेका बुद्धिज्ञानहरूले बताउँछन्। यदि परमेश्वरको समुच्च स्वभाव त्यस्तो छ भने हामीले पनि हाम्रो जीवनबाट अरूलाई उहाँको स्वभावलाई अवलम्बन गरेर देखाउनुपर्छ।
imasaru/sabbath-school-lessons
src/ne/2019-03/04/07.md
Markdown
mit
8,792
[ 30522, 1011, 1011, 1011, 2516, 1024, 1313, 29864, 29874, 29875, 29876, 29869, 3058, 1024, 2656, 1013, 5718, 1013, 10476, 1011, 1011, 1011, 1324, 29864, 1319, 29876, 29863, 29851, 29876, 29869, 29878, 1024, 1332, 29874, 1311, 29862, 29868, 29876, 29868, 29851, 29879, 1335, 29877, 29873, 29868, 29867, 29876, 1324, 29864, 1319, 29876, 29863, 29851, 29876, 29869, 29878, 1318, 29876, 29875, 29877, 29850, 29867, 29876, 1325, 29875, 29876, 29868, 29851, 29876, 1338, 29876, 29867, 29853, 29869, 29878, 29875, 29869, 1313, 29864, 29868, 29879, 29853, 29878, 100, 1024, 1314, 29870, 29863, 1319, 29878, 100, 1334, 29877, 29852, 29877, 29859, 1328, 29876, 29856, 29869, 29877, 29868, 29876, 29869, 29851, 1314, 29858, 29857, 100, 1328, 1012, 100, 1011, 100, 1334, 29852, 1000, 1325, 1334, 29876, 30524, 1338, 29878, 1012, 1332, 29874, 1012, 1334, 29877, 29871, 29877, 29874, 29861, 29871, 29876, 29869, 29876, 1334, 29877, 29852, 29877, 29859, 100, 1311, 29863, 1325, 1338, 29876, 29867, 29874, 29851, 29879, 1328, 1012, 100, 1011, 100, 1334, 29852, 1000, 1319, 29867, 29863, 29856, 100, 1325, 1338, 29876, 29867, 29874, 1000, 1344, 1000, 1325, 29876, 29849, 29861, 29851, 29876, 1330, 29855, 29863, 29875, 29869, 29870, 1319, 29878, 29871, 29863, 29851, 29879, 1311, 29863, 29866, 29871, 29851, 29879, 1332, 29876, 29871, 29859, 100, 1316, 29879, 29859, 29870, 29851, 29876, 100, 1344, 100, 1328, 29876, 29864, 29870, 1317, 29869, 29861, 29876, 1335, 29877, 29871, 29851, 29867, 29876, 1317, 29875, 29877, 29869, 29879, 100, 1328, 29876, 29869, 29851, 29879, 1315, 29876, 29869, 29858, 100, 100, 1325, 29879, 29873, 1325, 29877, 29863, 1338, 29860, 29877, 29859, 29877, 29861, 29852, 29877, 1334, 29877, 29850, 29869, 1328, 29869, 29867, 29872, 29871, 29869, 29864, 29869, 29859, 29877, 1328, 29869, 29867, 1312, 29874, 29860, 29876, 1333, 29876, 29852, 29861, 1313, 29875, 29876, 29874, 29853, 29851, 29879, 1313, 29854, 29854, 1315, 29879, 29856, 29878, 29851, 29879, 100, 1328, 29863, 29877, 1330, 29855, 29863, 29874, 29853, 29869, 29875, 29851, 29876, 1328, 29876, 29863, 29876, 29875, 29869, 29867, 29876, 1325, 29876, 29849, 29861, 29851, 29879, 1315, 29870, 29867, 29870, 1315, 29879, 29869, 29851, 29879, 100, 1344, 1328, 29876, 29864, 29870, 1334, 29855, 29855, 29876, 1010, 1338, 29879, 29851, 1333, 1338, 29869, 29876, 29864, 100, 1330, 29863, 29869, 1313, 29863, 29851, 29879, 1319, 29878, 29871, 29863, 29870, 100, 100, 1330, 29863, 1331, 29876, 29863, 29877, 29874, 1319, 29863, 29874, 29851, 1317, 29875, 29877, 29869, 29879, 1316, 29876, 29870, 29857, 29879, 29867, 29876, 1328, 29869, 29877, 29869, 29875, 29859, 29876, 29864, 29863, 29877, 1328, 29869, 29867, 29872, 29871, 29869, 29851, 29879, 1328, 29869, 29867, 1010, 1315, 29869, 29858, 29876, 1333, 1325, 29868, 29876, 29870, 100, 1313, 29854, 29876, 29870, 29863, 100, 1344, 1323, 29869, 1313, 29874, 29867, 29876, 100, 1328, 29876, 29864, 29851, 29879, 1315, 29851, 29859, 29868, 100, 1328, 29872, 29854, 29876, 29859, 29876, 29864, 29861, 29871, 29876, 29869, 29876, 1328, 29869, 29877, 29871, 29869, 29859, 29863, 1317, 29869, 29863, 1317, 29875, 29877, 29869, 29879, 1333, 1338, 29851, 29851, 29870, 29878, 1318, 29876, 29875, 29863, 29876, 100, 1344, 1332, 30523, 29874, 29856, 1332, 29868, 29869, 29874, 1311, 29866, 1325, 29866, 29877, 29861, 1000, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 29874, 29856, 1332, 29868, 29869, 29874, 1311, 29866, 1325, 29866, 29877, 29861, 1000, 30526 ]
# Pavetta paludosa Blume SPECIES #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Gentianales/Rubiaceae/Ixora/Ixora paludosa/ Syn. Pavetta paludosa/README.md
Markdown
apache-2.0
179
[ 30522, 1001, 6643, 19510, 2696, 14412, 6784, 8820, 14154, 4168, 2427, 1001, 1001, 1001, 1001, 3570, 10675, 1001, 1001, 1001, 1001, 2429, 2000, 1996, 10161, 1997, 2166, 1010, 3822, 2254, 2249, 1001, 1001, 1001, 1001, 2405, 1999, 19701, 1001, 1001, 1001, 1001, 2434, 2171, 19701, 1001, 1001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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
import { Component, OnDestroy, OnInit, Self } from '@angular/core'; import { Title } from '@angular/platform-browser'; import { Subscription, combineLatest } from 'rxjs'; import { switchMap, scan } from 'rxjs/operators'; import * as moment from 'moment'; import { PullRequest, And, Like } from '../../../../../framework'; import { AllorsFilterService, ErrorService, MediaService, ContextService, NavigationService, Action, RefreshService, MetaService } from '../../../../../angular'; import { Sorter, TableRow, Table, NavigateService, DeleteService } from '../../../..'; import { Person } from '../../../../../domain'; import { ObjectService } from '../../../../../angular/base/object/object.service'; interface Row extends TableRow { object: Person; name: string; email: string; phone: string; lastModifiedDate: string; } @Component({ templateUrl: './person-list.component.html', providers: [ContextService, AllorsFilterService] }) export class PersonListComponent implements OnInit, OnDestroy { public title = 'People'; table: Table<Row>; delete: Action; private subscription: Subscription; constructor( @Self() public allors: ContextService, @Self() private filterService: AllorsFilterService, public metaService: MetaService, public factoryService: ObjectService, public refreshService: RefreshService, public navigateService: NavigateService, public deleteService: DeleteService, public navigation: NavigationService, public mediaService: MediaService, private errorService: ErrorService, titleService: Title) { titleService.setTitle(this.title); this.delete = deleteService.delete(allors.context); this.delete.result.subscribe((v) => { this.table.selection.clear(); }); this.table = new Table({ selection: true, columns: [ { name: 'name', sort: true}, { name: 'email', sort: true }, { name: 'phone', sort: true }, 'lastModifiedDate' ], actions: [ navigateService.overview(), this.delete ], defaultAction: navigateService.overview(), }); } public ngOnInit(): void { const { m, pull, x } = this.metaService; const predicate = new And([ new Like({ roleType: m.Person.FirstName, parameter: 'firstName' }), new Like({ roleType: m.Person.LastName, parameter: 'lasttName' }), // new ContainedIn({ // propertyType: m.Person.GeneralCorrespondence, // extent: new Filter({ // objectType: m.PostalAddress, // predicate: new ContainedIn({ // propertyType: m.PostalAddress.Country, // extent: new Filter({ // objectType: m.Country, // predicate: new Like({roleType: m.Country.Name, parameter: 'countryName'}) // }) // }) // }) // }) ]); this.filterService.init(predicate); const sorter = new Sorter( { name: [m.Person.FirstName, m.Person.LastName], lastModifiedDate: m.Person.LastModifiedDate, } ); this.subscription = combineLatest(this.refreshService.refresh$, this.filterService.filterFields$, this.table.sort$, this.table.pager$) .pipe( scan(([previousRefresh, previousFilterFields], [refresh, filterFields, sort, pageEvent]) => { return [ refresh, filterFields, sort, (previousRefresh !== refresh || filterFields !== previousFilterFields) ? Object.assign({ pageIndex: 0 }, pageEvent) : pageEvent, ]; }, []), switchMap(([, filterFields, sort, pageEvent]) => { const pulls = [ pull.Person({ predicate, sort: sorter.create(sort), include: { Salutation: x, Picture: x, GeneralPhoneNumber: x, GeneralEmail: x, }, arguments: this.filterService.arguments(filterFields), skip: pageEvent.pageIndex * pageEvent.pageSize, take: pageEvent.pageSize, })]; return this.allors.context.load('Pull', new PullRequest({ pulls })); }) ) .subscribe((loaded) => { this.allors.context.reset(); const people = loaded.collections.People as Person[]; this.table.total = loaded.values.People_total; this.table.data = people.map((v) => { return { object: v, name: v.displayName, email: v.displayEmail, phone: v.displayPhone, lastModifiedDate: moment(v.LastModifiedDate).fromNow() } as Row; }); }, this.errorService.handler); } public ngOnDestroy(): void { if (this.subscription) { this.subscription.unsubscribe(); } } }
Allors/apps
Domains/Apps/Workspace/Typescript/Intranet/src/allors/material/apps/objects/person/list/person-list.component.ts
TypeScript
gpl-3.0
4,882
[ 30522, 12324, 1063, 6922, 1010, 2006, 6155, 13181, 2100, 1010, 2006, 5498, 2102, 1010, 2969, 1065, 2013, 1005, 1030, 16108, 1013, 4563, 1005, 1025, 12324, 1063, 2516, 1065, 2013, 1005, 1030, 16108, 1013, 4132, 1011, 16602, 1005, 1025, 12324, 1063, 15002, 1010, 11506, 26786, 2102, 1065, 2013, 1005, 1054, 2595, 22578, 1005, 1025, 12324, 1063, 6942, 2863, 2361, 1010, 13594, 1065, 2013, 1005, 1054, 2595, 22578, 1013, 9224, 1005, 1025, 12324, 1008, 2004, 2617, 2013, 1005, 2617, 1005, 1025, 12324, 1063, 4139, 2890, 15500, 1010, 1998, 1010, 2066, 1065, 2013, 1005, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 7705, 1005, 1025, 12324, 1063, 2035, 5668, 8873, 21928, 8043, 7903, 2063, 1010, 10697, 2121, 7903, 2063, 1010, 2865, 8043, 7903, 2063, 1010, 18046, 2121, 7903, 2063, 1010, 9163, 8043, 7903, 2063, 1010, 2895, 1010, 25416, 21898, 8043, 7903, 2063, 1010, 18804, 8043, 7903, 2063, 1065, 2013, 1005, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 16108, 1005, 1025, 12324, 1063, 4066, 2121, 1010, 2795, 10524, 1010, 2795, 1010, 22149, 8043, 7903, 2063, 1010, 3972, 12870, 8043, 7903, 2063, 1065, 2013, 1005, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1005, 1025, 12324, 1063, 2711, 1065, 2013, 1005, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 5884, 1005, 1025, 12324, 1063, 5200, 2121, 7903, 2063, 1065, 2013, 1005, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 16108, 1013, 2918, 1013, 4874, 1013, 4874, 1012, 2326, 1005, 1025, 8278, 5216, 8908, 2795, 10524, 1063, 4874, 1024, 2711, 1025, 2171, 1024, 5164, 1025, 10373, 1024, 5164, 1025, 3042, 1024, 5164, 1025, 2197, 5302, 4305, 10451, 13701, 1024, 5164, 1025, 1065, 1030, 6922, 1006, 1063, 23561, 3126, 2140, 1024, 1005, 1012, 1013, 2711, 1011, 2862, 1012, 6922, 1012, 16129, 1005, 1010, 11670, 1024, 1031, 18046, 2121, 7903, 2063, 1010, 2035, 5668, 8873, 21928, 8043, 7903, 2063, 1033, 1065, 1007, 9167, 2465, 2711, 9863, 9006, 29513, 3372, 22164, 2006, 5498, 2102, 1010, 2006, 6155, 13181, 2100, 1063, 2270, 2516, 1027, 1005, 2111, 1005, 1025, 2795, 1024, 2795, 1026, 5216, 1028, 1025, 3972, 12870, 1024, 2895, 1025, 2797, 15002, 1024, 15002, 1025, 9570, 2953, 1006, 1030, 2969, 1006, 1007, 2270, 2035, 5668, 1024, 18046, 2121, 7903, 2063, 1010, 1030, 2969, 1006, 1007, 2797, 17736, 30524, 7903, 2063, 1010, 2270, 4713, 8043, 7903, 2063, 1024, 5200, 2121, 7903, 2063, 1010, 2270, 25416, 21898, 8043, 7903, 2063, 1024, 25416, 21898, 8043, 7903, 2063, 1010, 2270, 22149, 8043, 7903, 2063, 1024, 22149, 8043, 7903, 2063, 1010, 2270, 3972, 12870, 8043, 7903, 2063, 1024, 3972, 12870, 8043, 7903, 2063, 1010, 2270, 9163, 1024, 9163, 8043, 7903, 2063, 1010, 2270, 2865, 8043, 7903, 2063, 1024, 2865, 8043, 7903, 2063, 1010, 2797, 10697, 2121, 7903, 2063, 1024, 10697, 2121, 7903, 2063, 30523, 2121, 7903, 2063, 1024, 2035, 5668, 8873, 21928, 8043, 7903, 2063, 1010, 2270, 18804, 8043, 7903, 2063, 1024, 18804, 8043, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2121, 7903, 2063, 1024, 2035, 5668, 8873, 21928, 8043, 7903, 2063, 1010, 2270, 18804, 8043, 7903, 2063, 1024, 18804, 8043, 30526 ]
package sx1272 const ( SX1272_REG_LR_FIFO byte = 0x00 // Common settings SX1272_REG_LR_OPMODE = 0x01 SX1272_REG_LR_FRFMSB = 0x06 SX1272_REG_LR_FRFMID = 0x07 SX1272_REG_LR_FRFLSB = 0x08 // Tx settings SX1272_REG_LR_PACONFIG = 0x09 SX1272_REG_LR_PARAMP = 0x0A SX1272_REG_LR_OCP = 0x0B // Rx settings SX1272_REG_LR_LNA = 0x0C // LoRa registers SX1272_REG_LR_FIFOADDRPTR = 0x0D SX1272_REG_LR_FIFOTXBASEADDR = 0x0E SX1272_REG_LR_FIFORXBASEADDR = 0x0F SX1272_REG_LR_FIFORXCURRENTADDR = 0x10 SX1272_REG_LR_IRQFLAGSMASK = 0x11 SX1272_REG_LR_IRQFLAGS = 0x12 SX1272_REG_LR_RXNBBYTES = 0x13 SX1272_REG_LR_RXHEADERCNTVALUEMSB = 0x14 SX1272_REG_LR_RXHEADERCNTVALUELSB = 0x15 SX1272_REG_LR_RXPACKETCNTVALUEMSB = 0x16 SX1272_REG_LR_RXPACKETCNTVALUELSB = 0x17 SX1272_REG_LR_MODEMSTAT = 0x18 SX1272_REG_LR_PKTSNRVALUE = 0x19 SX1272_REG_LR_PKTRSSIVALUE = 0x1A SX1272_REG_LR_RSSIVALUE = 0x1B SX1272_REG_LR_HOPCHANNEL = 0x1C SX1272_REG_LR_MODEMCONFIG1 = 0x1D SX1272_REG_LR_MODEMCONFIG2 = 0x1E SX1272_REG_LR_SYMBTIMEOUTLSB = 0x1F SX1272_REG_LR_PREAMBLEMSB = 0x20 SX1272_REG_LR_PREAMBLELSB = 0x21 SX1272_REG_LR_PAYLOADLENGTH = 0x22 SX1272_REG_LR_PAYLOADMAXLENGTH = 0x23 SX1272_REG_LR_HOPPERIOD = 0x24 SX1272_REG_LR_FIFORXBYTEADDR = 0x25 SX1272_REG_LR_FEIMSB = 0x28 SX1272_REG_LR_FEIMID = 0x29 SX1272_REG_LR_FEILSB = 0x2A SX1272_REG_LR_RSSIWIDEBAND = 0x2C SX1272_REG_LR_DETECTOPTIMIZE = 0x31 SX1272_REG_LR_INVERTIQ = 0x33 SX1272_REG_LR_DETECTIONTHRESHOLD = 0x37 SX1272_REG_LR_SYNCWORD = 0x39 SX1272_REG_LR_INVERTIQ2 = 0x3B // end of documented register in datasheet // I/O settings SX1272_REG_LR_DIOMAPPING1 = 0x40 SX1272_REG_LR_DIOMAPPING2 = 0x41 // Version SX1272_REG_LR_VERSION = 0x42 // Additional settings SX1272_REG_LR_AGCREF = 0x43 SX1272_REG_LR_AGCTHRESH1 = 0x44 SX1272_REG_LR_AGCTHRESH2 = 0x45 SX1272_REG_LR_AGCTHRESH3 = 0x46 SX1272_REG_LR_PLLHOP = 0x4B SX1272_REG_LR_TCXO = 0x58 SX1272_REG_LR_PADAC = 0x5A SX1272_REG_LR_PLL = 0x5C SX1272_REG_LR_PLLLOWPN = 0x5E SX1272_REG_LR_FORMERTEMP = 0x6C )
NeuralSpaz/semtech1301
sx1272/sx1272LoraRegisters.go
GO
mit
2,318
[ 30522, 7427, 1055, 2595, 12521, 2581, 2475, 9530, 3367, 1006, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10882, 14876, 24880, 1027, 1014, 2595, 8889, 1013, 1013, 2691, 10906, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 6728, 5302, 3207, 1027, 1014, 2595, 24096, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10424, 16715, 19022, 1027, 1014, 2595, 2692, 2575, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10424, 16715, 3593, 1027, 1014, 2595, 2692, 2581, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10424, 10258, 19022, 1027, 1014, 2595, 2692, 2620, 1013, 1013, 19067, 10906, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 14397, 2239, 8873, 2290, 1027, 1014, 2595, 2692, 2683, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 11498, 8737, 1027, 1014, 2595, 2692, 2050, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 1051, 21906, 1027, 1014, 2595, 2692, 2497, 1013, 1013, 1054, 2595, 10906, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 1048, 2532, 1027, 1014, 2595, 2692, 2278, 1013, 1013, 8840, 2527, 18687, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10882, 14876, 4215, 13626, 13876, 2099, 1027, 1014, 2595, 2692, 2094, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10882, 14876, 2102, 2595, 15058, 4215, 13626, 1027, 1014, 2595, 2692, 2063, 1055, 2595, 30524, 14141, 2099, 1027, 1014, 2595, 10790, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 20868, 4160, 10258, 26454, 9335, 2243, 1027, 1014, 2595, 14526, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 20868, 4160, 10258, 26454, 1027, 1014, 2595, 12521, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 1054, 2595, 27698, 3762, 4570, 1027, 1014, 2595, 17134, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 1054, 2595, 4974, 2121, 2278, 3372, 10175, 5657, 5244, 2497, 1027, 1014, 2595, 16932, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 1054, 2595, 4974, 2121, 2278, 3372, 10175, 16284, 19022, 1027, 1014, 2595, 16068, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 1054, 2595, 23947, 3388, 2278, 3372, 10175, 5657, 5244, 2497, 1027, 1014, 2595, 16048, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 1054, 2595, 23947, 3388, 2278, 3372, 10175, 16284, 19022, 1027, 1014, 2595, 16576, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 5549, 5244, 29336, 1027, 1014, 2595, 15136, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 1052, 25509, 2015, 16118, 10175, 5657, 1027, 1014, 2595, 16147, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 1052, 25509, 2869, 5332, 10175, 5657, 30523, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10882, 29278, 2595, 15058, 4215, 13626, 1027, 1014, 2595, 2692, 2546, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10882, 29278, 2595, 10841, 14343, 12380, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10882, 29278, 2595, 15058, 4215, 13626, 1027, 1014, 2595, 2692, 2546, 1055, 2595, 12521, 2581, 2475, 1035, 19723, 1035, 1048, 2099, 1035, 10882, 29278, 2595, 10841, 14343, 12380, 30526 ]
<?php /* * This file is part of Respect/Validation. * * (c) Alexandre Gomes Gaigalas <[email protected]> * * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ namespace Respect\Validation\Rules\SubdivisionCode; use Respect\Validation\Rules\AbstractSearcher; /** * Validator for Serbia subdivision code. * * ISO 3166-1 alpha-2: RS * * @link http://www.geonames.org/RS/administrative-division-serbia.html */ class RsSubdivisionCode extends AbstractSearcher { public $haystack = [ 'KM', // Kosovo 'VO', // Vojvodina '00', // Beograd '01', // Severnobački okrug '02', // Srednjebanatski okrug '03', // Severnobanatski okrug '04', // Južnobanatski okrug '05', // Zapadno-Bački Okrug '06', // Južnobački okrug '07', // Srem '08', // Mačvanski okrug '09', // Kolubarski okrug '10', // Podunavski okrug '11', // Braničevski okrug '12', // Šumadija '13', // Pomoravski okrug '14', // Borski okrug '15', // Zaječar '16', // Zlatibor '17', // Moravički okrug '18', // Raški okrug '19', // Rasinski okrug '20', // Nišavski okrug '21', // Toplica '22', // Pirotski okrug '23', // Jablanički okrug '24', // Pčinjski okrug '25', // Kosovski okrug '26', // Pećki okrug '27', // Prizrenski okrug '28', // Kosovsko-Mitrovački okrug '29', // Kosovsko-Pomoravski okrug ]; public $compareIdentical = true; }
torzuoliH/instabab
vendor/respect/validation/library/Rules/SubdivisionCode/RsSubdivisionCode.php
PHP
mit
1,675
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 4847, 1013, 27354, 1012, 1008, 1008, 1006, 1039, 1007, 16971, 2175, 7834, 11721, 13340, 8523, 1026, 16971, 1030, 11721, 13340, 8523, 1012, 5658, 1028, 1008, 1008, 2005, 1996, 2440, 9385, 1998, 6105, 2592, 1010, 3531, 3193, 1996, 1000, 6105, 1012, 9108, 1000, 1008, 5371, 2008, 2001, 5500, 2007, 2023, 3120, 3642, 1012, 1008, 1013, 3415, 15327, 4847, 1032, 27354, 1032, 3513, 1032, 12572, 16044, 1025, 2224, 4847, 1032, 27354, 1032, 3513, 1032, 29474, 14644, 7474, 1025, 1013, 1008, 1008, 1008, 9398, 8844, 2005, 7238, 12572, 3642, 1012, 1008, 1008, 11163, 23980, 2575, 1011, 1015, 6541, 1011, 1016, 1024, 12667, 1008, 1008, 1030, 4957, 8299, 1024, 1013, 1013, 7479, 1012, 20248, 18442, 2015, 1012, 8917, 1013, 12667, 1013, 3831, 1011, 2407, 1011, 7238, 1012, 16129, 1008, 1013, 2465, 12667, 6342, 2497, 4305, 17084, 16044, 8908, 29474, 14644, 7474, 1063, 2270, 1002, 29051, 2696, 3600, 1027, 1031, 1005, 2463, 1005, 1010, 1013, 1013, 11491, 1005, 29536, 1005, 1010, 1013, 1013, 29536, 3501, 6767, 18979, 1005, 4002, 1005, 1010, 1013, 1013, 2022, 8649, 12173, 1005, 5890, 1005, 1010, 1013, 1013, 24753, 16429, 8684, 2072, 7929, 26549, 1005, 6185, 1005, 1010, 1013, 1013, 5034, 2098, 2078, 6460, 19445, 29064, 2072, 7929, 26549, 1005, 6021, 1005, 1010, 1013, 1013, 24753, 16429, 5162, 29064, 2072, 7929, 26549, 1005, 5840, 1005, 1010, 1013, 1013, 18414, 2480, 25083, 5162, 29064, 2072, 7929, 26549, 1005, 5709, 1005, 1010, 1013, 1013, 23564, 15455, 3630, 1011, 2067, 2072, 7929, 26549, 1005, 5757, 1005, 1010, 1013, 1013, 18414, 2480, 25083, 8684, 2072, 7929, 26549, 1005, 5718, 1005, 1010, 1013, 1013, 5034, 6633, 1005, 5511, 1005, 1010, 1013, 1013, 6097, 6212, 5488, 7929, 26549, 1005, 5641, 1005, 1010, 1013, 1013, 12849, 27959, 11650, 3211, 7929, 26549, 1005, 2184, 1005, 1010, 30524, 1005, 1010, 1013, 1013, 13433, 22122, 15088, 3211, 7929, 26549, 1005, 2403, 1005, 1010, 1013, 1013, 8945, 27472, 2072, 7929, 26549, 1005, 2321, 1005, 1010, 1013, 1013, 23564, 6460, 10010, 1005, 2385, 1005, 1010, 1013, 1013, 1062, 20051, 12322, 2953, 1005, 2459, 1005, 1010, 1013, 1013, 26821, 7903, 3211, 7929, 26549, 1005, 2324, 1005, 1010, 1013, 1013, 20710, 3211, 7929, 26549, 1005, 2539, 1005, 1010, 1013, 1013, 20710, 19880, 7929, 26549, 1005, 2322, 1005, 1010, 1013, 1013, 9152, 3736, 15088, 3211, 7929, 26549, 1005, 2538, 1005, 1010, 1013, 1013, 2327, 19341, 1005, 2570, 1005, 1010, 1013, 1013, 14255, 21709, 5488, 7929, 26549, 1005, 2603, 1005, 1010, 1013, 1013, 14855, 28522, 13542, 2072, 7929, 26549, 1005, 2484, 1005, 1010, 1013, 1013, 7473, 2378, 22578, 3211, 7929, 26549, 1005, 2423, 1005, 1010, 1013, 1013, 12849, 23230, 5488, 7929, 26549, 1005, 2656, 1005, 1010, 1013, 1013, 18082, 2072, 7929, 26549, 1005, 2676, 1005, 1010, 1013, 1013, 26927, 2480, 7389, 5488, 7929, 26549, 1005, 2654, 1005, 1010, 1013, 1013, 12849, 23230, 21590, 1011, 30523, 1013, 1013, 17491, 9521, 15088, 3211, 7929, 26549, 1005, 2340, 1005, 1010, 1013, 1013, 24905, 6610, 15088, 3211, 7929, 26549, 1005, 2260, 1005, 1010, 1013, 1013, 7680, 17190, 3900, 1005, 2410, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 1013, 17491, 9521, 15088, 3211, 7929, 26549, 1005, 2340, 1005, 1010, 1013, 1013, 24905, 6610, 15088, 3211, 7929, 26549, 1005, 2260, 1005, 1010, 1013, 1013, 7680, 17190, 3900, 1005, 2410, 30526 ]
import Subject from "parsers/Subject"; describe("parsers/Subject", () => { it("should split valid subject lines into object hash", () => { let subject = "type(scope): summary summary summary"; let pull = { commits: [{ commit: { message: subject } }] }; expect((new Subject()).parse(pull)).toEqual({ type: "type", scope: "scope", summary: "summary summary summary" }); }); it("should return object with null values on invalid message", () => { let subject = "type(scope) summary summary summary"; let pull = { commits: [{ commit: { message: subject } }] }; expect((new Subject()).parse(pull)).toEqual({ type: null, scope: null, summary: null }); }); it("should parse subjects with special characters", () => { let subject = "type($state!): summary summary summary"; let pull = { commits: [{ commit: { message: subject } }] }; expect((new Subject()).parse(pull).scope).toBe("$state!"); }); });
radify/PR.js
spec/parsers/Subject.js
JavaScript
bsd-3-clause
988
[ 30522, 12324, 3395, 2013, 1000, 11968, 8043, 2015, 1013, 3395, 1000, 1025, 6235, 1006, 1000, 11968, 8043, 2015, 1013, 3395, 1000, 1010, 1006, 1007, 1027, 1028, 1063, 2009, 1006, 1000, 2323, 3975, 9398, 3395, 3210, 2046, 4874, 23325, 1000, 1010, 1006, 1007, 1027, 1028, 1063, 2292, 3395, 1027, 1000, 2828, 1006, 9531, 1007, 1024, 12654, 12654, 12654, 1000, 1025, 2292, 4139, 1027, 1063, 27791, 1024, 1031, 1063, 10797, 1024, 1063, 4471, 1024, 3395, 1065, 1065, 1033, 1065, 1025, 5987, 1006, 1006, 2047, 3395, 1006, 1007, 1007, 1012, 11968, 3366, 1006, 4139, 1007, 1007, 1012, 30524, 2006, 19528, 4471, 1000, 1010, 1006, 1007, 1027, 1028, 1063, 2292, 3395, 1027, 1000, 2828, 1006, 9531, 1007, 12654, 12654, 12654, 1000, 1025, 2292, 4139, 1027, 1063, 27791, 1024, 1031, 1063, 10797, 1024, 1063, 4471, 1024, 3395, 1065, 1065, 1033, 1065, 1025, 5987, 1006, 1006, 2047, 3395, 1006, 1007, 1007, 1012, 11968, 3366, 1006, 4139, 1007, 1007, 1012, 11756, 26426, 1006, 1063, 2828, 1024, 19701, 1010, 9531, 1024, 19701, 1010, 12654, 1024, 19701, 1065, 1007, 1025, 1065, 1007, 1025, 2009, 1006, 1000, 2323, 11968, 3366, 5739, 2007, 2569, 3494, 1000, 1010, 1006, 1007, 1027, 1028, 1063, 2292, 3395, 1027, 1000, 2828, 1006, 1002, 2110, 999, 1007, 1024, 12654, 12654, 12654, 1000, 1025, 2292, 4139, 1027, 1063, 27791, 1024, 1031, 1063, 10797, 1024, 1063, 4471, 1024, 3395, 1065, 1065, 1033, 1065, 1025, 5987, 1006, 1006, 2047, 3395, 1006, 1007, 1007, 1012, 11968, 3366, 1006, 4139, 1007, 1012, 9531, 1007, 1012, 2000, 4783, 1006, 1000, 1002, 2110, 999, 1000, 1007, 1025, 1065, 1007, 1025, 1065, 1007, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 11756, 26426, 1006, 1063, 2828, 1024, 1000, 2828, 1000, 1010, 9531, 1024, 1000, 9531, 1000, 1010, 12654, 1024, 1000, 12654, 12654, 12654, 1000, 1065, 1007, 1025, 1065, 1007, 1025, 2009, 1006, 1000, 2323, 2709, 4874, 2007, 19701, 5300, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 11756, 26426, 1006, 1063, 2828, 1024, 1000, 2828, 1000, 1010, 9531, 1024, 1000, 9531, 1000, 1010, 12654, 1024, 1000, 12654, 12654, 12654, 1000, 1065, 1007, 1025, 1065, 1007, 1025, 2009, 1006, 1000, 2323, 2709, 4874, 2007, 19701, 5300, 30526 ]
/** * Pre Tests * Check to make sure jQuery and Zest are loaded */ module("Setup"); test("jQuery is loaded", function() { expect(3); ok( jQuery, "jQuery is defined." ); ok( $, "$ is defined."); equal( typeof jQuery, "function", "jQuery is a function." ); }); test("Zest is loaded", function() { expect(3); ok( Zest, "Zest is defined." ); ok( Z$, "Z$ is defined." ); equal( typeof Zest, "function", "Zest is a function." ); });
ItsJonQ/zest
test/units/setup.js
JavaScript
mit
518
[ 30522, 1013, 1008, 1008, 1008, 3653, 5852, 1008, 4638, 2000, 2191, 2469, 1046, 4226, 2854, 1998, 27838, 3367, 2024, 8209, 1008, 1013, 11336, 1006, 1000, 16437, 1000, 1007, 1025, 3231, 1006, 1000, 1046, 4226, 2854, 2003, 8209, 1000, 1010, 3853, 1006, 1007, 1063, 5987, 1006, 1017, 1007, 1025, 7929, 1006, 1046, 4226, 2854, 1010, 1000, 1046, 4226, 2854, 2003, 4225, 1012, 1000, 1007, 1025, 7929, 1006, 1002, 1010, 1000, 1002, 2003, 4225, 1012, 1000, 1007, 1025, 5020, 1006, 2828, 11253, 1046, 4226, 2854, 1010, 1000, 3853, 1000, 1010, 1000, 1046, 4226, 2854, 2003, 1037, 3853, 1012, 1000, 1007, 1025, 1065, 1007, 1025, 3231, 1006, 1000, 27838, 3367, 2003, 8209, 1000, 1010, 3853, 1006, 1007, 1063, 5987, 1006, 1017, 1007, 1025, 7929, 1006, 27838, 3367, 1010, 1000, 27838, 3367, 2003, 4225, 1012, 1000, 1007, 1025, 7929, 1006, 1062, 1002, 1010, 1000, 1062, 1002, 2003, 4225, 1012, 1000, 1007, 1025, 5020, 1006, 2828, 11253, 27838, 3367, 1010, 1000, 3853, 1000, 1010, 1000, 27838, 3367, 2003, 1037, 3853, 1012, 1000, 1007, 1025, 1065, 1007, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
require "spec_helper" describe Mongoid::Changeable do describe "#attribute_change" do context "when the attribute has changed from the persisted value" do context "when using the setter" do let(:person) do Person.new(title: "Grand Poobah").tap(&:move_changes) end before do person.title = "Captain Obvious" end it "returns an array of the old value and new value" do expect(person.send(:attribute_change, "title")).to eq( [ "Grand Poobah", "Captain Obvious" ] ) end it "allows access via (attribute)_change" do expect(person.title_change).to eq( [ "Grand Poobah", "Captain Obvious" ] ) end context "when the field is aliased" do let(:person) do Person.new(test: "Aliased 1").tap(&:move_changes) end before do person.test = "Aliased 2" end it "returns an array of the old value and new value" do expect(person.send(:attribute_change, "test")).to eq( [ "Aliased 1", "Aliased 2" ] ) end it "allows access via (attribute)_change" do expect(person.test_change).to eq( [ "Aliased 1", "Aliased 2" ] ) end end end context "when using [] methods" do let(:person) do Person.new(title: "Grand Poobah").tap(&:move_changes) end before do person[:title] = "Captain Obvious" end it "returns an array of the old value and new value" do expect(person.send(:attribute_change, "title")).to eq( [ "Grand Poobah", "Captain Obvious" ] ) end it "allows access via (attribute)_change" do expect(person.title_change).to eq( [ "Grand Poobah", "Captain Obvious" ] ) end end end context "when the attribute has changed from the default value" do context "when using the setter" do let(:person) do Person.new(pets: true) end it "returns an array of nil and new value" do expect(person.send(:attribute_change, "pets")).to eq([ nil, true ]) end it "allows access via (attribute)_change" do expect(person.pets_change).to eq([ nil, true ]) end end context "when using [] methods" do context "when the field is defined" do let(:person) do Person.new end before do person[:pets] = true end it "returns an array of nil and new value" do expect(person.send(:attribute_change, "pets")).to eq([ nil, true ]) end it "allows access via (attribute)_change" do expect(person.pets_change).to eq([ nil, true ]) end end context "when the field is not defined" do let(:person) do Person.new end before do person[:t] = "test" end it "returns an array of nil and new value" do expect(person.send(:attribute_change, "t")).to eq([ nil, "test" ]) end end end end context "when the attribute changes multiple times" do let(:person) do Person.new(title: "Grand Poobah").tap(&:move_changes) end before do person.title = "Captain Obvious" person.title = "Dark Helmet" end it "returns an array of the original value and new value" do expect(person.send(:attribute_change, "title")).to eq( [ "Grand Poobah", "Dark Helmet" ] ) end it "allows access via (attribute)_change" do expect(person.title_change).to eq( [ "Grand Poobah", "Dark Helmet" ] ) end end context "when the attribute is modified in place" do context "when the attribute is an array" do let(:person) do Person.new(aliases: [ "Grand Poobah" ]).tap(&:move_changes) end before do person.aliases[0] = "Dark Helmet" end it "returns an array of the original value and new value" do expect(person.send(:attribute_change, "aliases")).to eq( [[ "Grand Poobah" ], [ "Dark Helmet" ]] ) end it "allows access via (attribute)_change" do expect(person.aliases_change).to eq( [[ "Grand Poobah" ], [ "Dark Helmet" ]] ) end context "when the attribute changes multiple times" do before do person.aliases << "Colonel Sanders" end it "returns an array of the original value and new value" do expect(person.send(:attribute_change, "aliases")).to eq( [[ "Grand Poobah" ], [ "Dark Helmet", "Colonel Sanders" ]] ) end end end context "when the attribute is a hash" do let(:person) do Person.new(map: { location: "Home" }).tap(&:move_changes) end before do person.map[:location] = "Work" end it "returns an array of the original value and new value" do expect(person.send(:attribute_change, "map")).to eq( [{ location: "Home" }, { location: "Work" }] ) end it "allows access via (attribute)_change" do expect(person.map_change).to eq( [{ location: "Home" }, { location: "Work" }] ) end context "when the attribute changes multiple times" do before do person.map[:lat] = 20.0 end it "returns an array of the original value and new value" do expect(person.send(:attribute_change, "map")).to eq( [{ location: "Home" }, { location: "Work", lat: 20.0 }] ) end end context "when the values are arrays" do let(:map) do { "stack1" => [ 1, 2, 3, 4 ], "stack2" => [ 1, 2, 3, 4 ], "stack3" => [ 1, 2, 3, 4 ] } end before do person.map = map person.move_changes end context "when reordering the arrays inline" do before do person.map["stack1"].reverse! end it "flags the attribute as changed" do expect(person.send(:attribute_change, "map")).to eq( [ { "stack1" => [ 1, 2, 3, 4 ], "stack2" => [ 1, 2, 3, 4 ], "stack3" => [ 1, 2, 3, 4 ] }, { "stack1" => [ 4, 3, 2, 1 ], "stack2" => [ 1, 2, 3, 4 ], "stack3" => [ 1, 2, 3, 4 ] }, ] ) end end end end end context "when the attribute has not changed from the persisted value" do let(:person) do Person.new(title: nil) end it "returns nil" do expect(person.send(:attribute_change, "title")).to be_nil end end context "when the attribute has not changed from the default value" do context "when the attribute differs from the persisted value" do let(:person) do Person.new end it "returns the change" do expect(person.send(:attribute_change, "pets")).to eq([ nil, false ]) end end context "when the attribute does not differ from the persisted value" do let(:person) do Person.instantiate("pets" => false) end it "returns nil" do expect(person.send(:attribute_change, "pets")).to be_nil end end end context "when the attribute has been set with the same value" do let(:person) do Person.new(title: "Grand Poobah").tap(&:move_changes) end before do person.title = "Grand Poobah" end it "returns an empty array" do expect(person.send(:attribute_change, "title")).to be_nil end end context "when the attribute is removed" do let(:person) do Person.new(title: "Grand Poobah").tap(&:move_changes) end before do person.remove_attribute(:title) end it "returns an empty array" do expect(person.send(:attribute_change, "title")).to eq( [ "Grand Poobah", nil ] ) end end end describe "#attribute_changed?" do context "when the attribute has changed from the persisted value" do let(:person) do Person.new(title: "Grand Poobah") end before do person.title = "Captain Obvious" end it "returns true" do expect(person.send(:attribute_changed?, "title")).to be true end it "allows access via (attribute)_changed?" do expect(person.title_changed?).to be true end context "when the field is aliased" do let(:person) do Person.new(test: "Aliased 1") end before do person.test = "Aliased 2" end it "returns true" do expect(person.send(:attribute_changed?, "test")).to be true end it "allows access via (attribute)_changed?" do expect(person.test_changed?).to be true end end end context "when the attribute has changed from the default value" do let(:person) do Person.new end before do person.pets = true end it "returns true" do expect(person.send(:attribute_changed?, "pets")).to be true end it "allows access via (attribute)_changed?" do expect(person.pets_changed?).to be true end end context "when the attribute has not changed the persisted value" do let!(:person) do Person.new(title: "Grand Poobah").tap(&:move_changes) end it "returns false" do expect(person.send(:attribute_changed?, "title")).to be false end end context "when the attribute has not changed from the default value" do context "when the attribute is not enumerable" do context "when the attribute differs from the persisted value" do let!(:person) do Person.new end it "returns true" do expect(person.send(:attribute_changed?, "pets")).to be true end end context "when the attribute does not differ from the persisted value" do let!(:person) do Person.instantiate("pets" => false) end it "returns false" do expect(person.send(:attribute_changed?, "pets")).to be false end end end context "when the attribute is an array" do let!(:person) do Person.new(aliases: [ "Bond" ]) end context "when the array is only accessed" do before do person.move_changes person.aliases end it "returns false" do expect(person).to_not be_aliases_changed end end end context "when the attribute is a hash" do let!(:person) do Person.new(map: { key: "value" }) end context "when the hash is only accessed" do before do person.move_changes person.map end it "returns false" do expect(person).to_not be_map_changed end end end end end describe "#attribute_changed_from_default?" do context "when the attribute differs from the default value" do let(:person) do Person.new(age: 33) end it "returns true" do expect(person).to be_age_changed_from_default end end context "when the attribute is the same as the default" do let(:person) do Person.new end it "returns false" do expect(person).to_not be_age_changed_from_default end end end describe "#attribute_was" do context "when the attribute has changed from the persisted value" do let(:person) do Person.new(title: "Grand Poobah").tap(&:move_changes) end before do person.title = "Captain Obvious" end it "returns the old value" do expect(person.send(:attribute_was, "title")).to eq("Grand Poobah") end it "allows access via (attribute)_was" do expect(person.title_was).to eq("Grand Poobah") end context "when the field is aliased" do let(:person) do Person.new(test: "Aliased 1").tap(&:move_changes) end before do person.test = "Aliased 2" end it "returns the old value" do expect(person.send(:attribute_was, "test")).to eq("Aliased 1") end it "allows access via (attribute)_was" do expect(person.test_was).to eq("Aliased 1") end end end context "when the attribute has not changed from the persisted value" do let!(:person) do Person.new(title: "Grand Poobah").tap(&:move_changes) end it "returns the original value" do expect(person.send(:attribute_was, "title")).to eq("Grand Poobah") end end end describe "#attribute_will_change!" do let(:aliases) do [ "007" ] end let(:person) do Person.new(aliases: aliases, test: "Aliased 1") end before do person.changed_attributes.clear end context "when the value has not changed" do before do person.aliases_will_change! end let(:changes) do person.changes end it "does not return the value in the changes" do expect(changes).to be_empty end it "is not flagged as changed" do expect(person).to_not be_changed end end context "when the value has changed" do before do person.aliases_will_change! person.aliases << "008" end let(:changes) do person.changes end it "returns the value in the changes" do expect(changes).to eq({ "aliases" => [[ "007" ], [ "007", "008" ]] }) end end context "when the value is duplicable" do context "when the attribute has not been cloned" do before do person.aliases_will_change! end let(:changed) do person.changed_attributes end it "clones the value" do expect(changed["aliases"]).to_not equal(aliases) end it "puts the old value in the changes" do expect(changed["aliases"]).to eq(aliases) end end context "when the attribute has been flagged" do before do person.changed_attributes["aliases"] = aliases expect(aliases).to receive(:clone).never person.aliases_will_change! end let(:changed) do person.changed_attributes end it "does not clone the value" do expect(changed["aliases"]).to equal(aliases) end it "retains the first value in the changes" do expect(changed["aliases"]).to eq(aliases) end end end end describe "#changed" do context "when the document has changed" do let(:person) do Person.instantiate(title: "Grand Poobah") end before do person.title = "Captain Obvious" end it "returns an array of changed field names" do expect(person.changed).to include("title") end end context "when the document has not changed" do let(:person) do Person.instantiate({}) end it "does not include non changed fields" do expect(person.changed).to_not include("title") end end context "when the document is embedded" do let(:person) do Person.create end let!(:name) do person.create_name(first_name: "Layne", last_name: "Staley") end context "when changing attributes via []" do before do person.name["a"] = "testing" end it "returns true" do expect(person.name).to be_changed end end end end describe "#changed?" do context "when the document has changed" do let(:person) do Person.new(title: "Grand Poobah") end before do person.title = "Captain Obvious" end it "returns true" do expect(person).to be_changed end end context "when a hash field has been accessed" do context "when the field has not changed" do let(:person) do Person.create(map: { name: "value" }) end before do person.map end it "returns false" do expect(person).to_not be_changed end end context "when the field is changed" do let(:person) do Person.create(map: { name: "value" }) end before do person.map = { name: "another" } end it "returns true" do expect(person).to be_changed end end context "when a dynamic field is changed in place" do let(:person) do Person.create(other_name: { full: {first: 'first', last: 'last'} }) end before do person.other_name[:full][:first] = 'Name' end it "returns true" do expect(person.changes).to_not be_empty expect(person).to be_changed end end end context "when the document has not changed" do let(:acolyte) do Acolyte.instantiate("_id" => BSON::ObjectId.new) end it "returns false" do expect(acolyte).to_not be_changed end end context "when a child has changed" do let(:person) do Person.create end let!(:address) do person.addresses.create(street: "hobrecht") end before do address.number = 10 end it "returns true" do expect(person).to be_changed end end context "when a deeply embedded child has changed" do let(:person) do Person.create end let(:address) do person.addresses.create(street: "hobrecht") end let!(:location) do address.locations.create(name: "home") end before do location.name = "work" end it "returns true" do expect(person).to be_changed end end context "when a child is new" do let(:person) do Person.create end let!(:address) do person.addresses.build(street: "hobrecht") end it "returns true" do expect(person).to be_changed end end context "when a deeply embedded child is new" do let(:person) do Person.create end let(:address) do person.addresses.create(street: "hobrecht") end let!(:location) do address.locations.build(name: "home") end it "returns true" do expect(person).to be_changed end end end describe "#changes" do context "when the document has changed" do let(:person) do Person.instantiate(title: "Grand Poobah") end before do person.title = "Captain Obvious" end it "returns a hash of changes" do expect(person.changes["title"]).to eq( [ nil, "Captain Obvious" ] ) end it "returns a hash with indifferent access" do expect(person.changes["title"]).to eq( [ nil, "Captain Obvious" ] ) end end context "when the document has not changed" do let(:acolyte) do Acolyte.instantiate("_id" => BSON::ObjectId.new) end it "returns an empty hash" do expect(acolyte.changes).to be_empty end end end describe "#setters" do context "when the document has changed" do let(:person) do Person.new(aliases: [ "007" ]).tap do |p| p.new_record = false p.move_changes end end context "when an array field has changed" do context "when the array has values removed" do before do person.aliases.delete_one("007") end let!(:setters) do person.setters end it "contains array changes in the setters" do expect(setters).to eq({ "aliases" => [] }) end end context "when the array has values added" do before do person.aliases << "008" end let!(:setters) do person.setters end it "contains array changes in the setters" do expect(setters).to eq({ "aliases" => [ "007", "008" ] }) end end context "when the array has changed completely" do before do person.aliases << "008" person.aliases.delete_one("007") end let!(:setters) do person.setters end it "does not contain array changes in the setters" do expect(setters).to eq({ "aliases" => [ "008" ]}) end end end context "when the document is a root document" do let(:person) do Person.instantiate(title: "Grand Poobah") end before do person.title = "Captain Obvious" end it "returns a hash of field names and new values" do expect(person.setters["title"]).to eq("Captain Obvious") end end context "when the document is embedded" do let(:person) do Person.instantiate(title: "Grand Poobah") end let(:address) do Address.instantiate(street: "Oxford St") end before do person.addresses << address person.instance_variable_set(:@new_record, false) address.instance_variable_set(:@new_record, false) address.street = "Bond St" end it "returns a hash of field names and new values" do expect(address.setters).to eq( { "addresses.0.street" => "Bond St" } ) end context "when the document is embedded multiple levels" do let(:location) do Location.new(name: "Home") end before do location.instance_variable_set(:@new_record, false) address.locations << location location.name = "Work" end it "returns the proper hash with locations" do expect(location.setters).to eq( { "addresses.0.locations.0.name" => "Work" } ) end end end end context "when the document has not changed" do let(:acolyte) do Acolyte.instantiate("_id" => BSON::ObjectId.new) end it "returns an empty hash" do expect(acolyte.setters).to be_empty end end end describe "#previous_changes" do let(:person) do Person.new(title: "Grand Poobah") end before do person.title = "Captain Obvious" end context "when the document has been saved" do before do person.save! end it "returns the changes before the save" do expect(person.previous_changes["title"]).to eq( [ nil, "Captain Obvious" ] ) end end context "when the document has not been saved" do it "returns an empty hash" do expect(person.previous_changes).to be_empty end end end describe "#move_changes" do let(:person) do Person.new(title: "Sir") end before do person.atomic_pulls["addresses"] = Address.new person.atomic_unsets << Address.new person.delayed_atomic_sets["addresses"] = Address.new person.move_changes end it "clears the atomic pulls" do expect(person.atomic_pulls).to be_empty end it "clears the atomic unsets" do expect(person.atomic_unsets).to be_empty end it "clears the delayed atomic sets" do expect(person.delayed_atomic_sets).to be_empty end it "clears the changed attributes" do expect(person.changed_attributes).to be_empty end end describe "#reset_attribute!" do context "when the attribute has changed" do let(:person) do Person.instantiate(title: "Grand Poobah") end before do person.title = "Captain Obvious" person.send(:reset_attribute!, "title") end it "resets the value to the original" do expect(person.title).to be_nil end it "allows access via reset_(attribute)!" do expect(person.title).to be_nil end it "removes the field from the changes" do expect(person.changed).to_not include("title") end context "when the field is aliased" do let(:person) do Person.instantiate(test: "Aliased 1") end before do person.test = "Aliased 2" person.send(:reset_attribute!, "test") end it "resets the value to the original" do expect(person.test).to be_nil end it "removes the field from the changes" do expect(person.changed).to_not include("test") end end end context "when the attribute has not changed" do let(:person) do Person.instantiate(title: "Grand Poobah") end before do person.send(:reset_attribute!, "title") end it "does nothing" do expect(person.title).to be_nil end end end context "when fields have been defined pre-dirty inclusion" do let(:document) do Dokument.new end it "defines a _change method" do expect(document.updated_at_change).to be_nil end it "defines a _changed? method" do expect(document.updated_at_changed?).to be false end it "defines a _changes method" do expect(document.updated_at_was).to be_nil end end context "when only embedded documents change" do let!(:person) do Person.create end context "when the child is an embeds one" do context "when the child is new" do let!(:name) do person.build_name(first_name: "Gordon", last_name: "Ramsay") end it "flags the parent as changed" do expect(person).to be_changed end end context "when the child is modified" do let!(:name) do person.create_name(first_name: "Gordon", last_name: "Ramsay") end before do name.first_name = "G" end it "flags the parent as changed" do expect(person).to be_changed end end context "when the child is not modified" do let!(:name) do person.create_name(first_name: "Gordon", last_name: "Ramsay") end it "does not flag the parent as changed" do expect(person).to_not be_changed end end end context "when the child is an embeds many" do context "when a child is new" do let!(:address) do person.addresses.build(street: "jakobstr.") end it "flags the parent as changed" do expect(person).to be_changed end end context "when a child is modified" do let!(:address) do person.addresses.create(street: "jakobstr.") end before do address.city = "Berlin" end it "flags the parent as changed" do expect(person).to be_changed end end context "when no child is modified" do let!(:address) do person.addresses.create(street: "skalitzerstr.") end it "does not flag the parent as changed" do expect(person).to_not be_changed end end end end context "when changing a hash of hashes" do let!(:person) do Person.create(map: { "test" => {}}) end before do person.map["test"]["value"] = 10 end it "records the changes" do expect(person.changes).to eq( { "map" => [{ "test" => {}}, { "test" => { "value" => 10 }}]} ) end end context "when modifying a many to many key" do let!(:person) do Person.create end let!(:preference) do Preference.create(name: "dirty") end before do person.update_attributes(preference_ids: [ preference.id ]) end it "records the foreign key dirty changes" do expect(person.previous_changes["preference_ids"]).to eq( [nil, [ preference.id ]] ) end end context "when accessing an array field" do let!(:person) do Person.create end let(:from_db) do Person.find(person.id) end context "when the field is not changed" do before do from_db.preference_ids end it "flags the change" do expect(from_db.changes["preference_ids"]).to eq([ nil, []]) end it "does not include the changes in the setters" do expect(from_db.setters).to be_empty end end end context "when reloading an unchanged document" do let!(:person) do Person.create end let(:from_db) do Person.find(person.id) end before do from_db.reload end it "clears the changed attributes" do expect(from_db.changed_attributes).to be_empty end end context "when fields are getting changed" do let(:person) do Person.create( title: "MC", some_dynamic_field: 'blah' ) end before do person.title = "DJ" person.write_attribute(:ssn, "222-22-2222") person.some_dynamic_field = 'bloop' end it "marks the document as changed" do expect(person).to be_changed end it "marks field changes" do expect(person.changes).to eq({ "title" => [ "MC", "DJ" ], "ssn" => [ nil, "222-22-2222" ], "some_dynamic_field" => [ "blah", "bloop" ] }) end it "marks changed fields" do expect(person.changed).to eq([ "title", "ssn", "some_dynamic_field" ]) end it "marks the field as changed" do expect(person.title_changed?).to be true end it "stores previous field values" do expect(person.title_was).to eq("MC") end it "marks field changes" do expect(person.title_change).to eq([ "MC", "DJ" ]) end it "allows reset of field changes" do person.reset_title! expect(person.title).to eq("MC") expect(person.changed).to eq([ "ssn", "some_dynamic_field" ]) end context "after a save" do before do person.save! end it "clears changes" do expect(person).to_not be_changed end it "stores previous changes" do expect(person.previous_changes["title"]).to eq([ "MC", "DJ" ]) expect(person.previous_changes["ssn"]).to eq([ nil, "222-22-2222" ]) end end context "when the previous value is nil" do before do person.score = 100 person.reset_score! end it "removes the attribute from the document" do expect(person.score).to be_nil end end end context "when accessing dirty attributes in callbacks" do context "when the document is persisted" do let!(:acolyte) do Acolyte.create(name: "callback-test") end before do Acolyte.set_callback(:save, :after, if: :callback_test?) do |doc| doc[:changed_in_callback] = doc.changes.dup end end after do Acolyte._save_callbacks.select do |callback| callback.kind == :after end.each do |callback| Acolyte._save_callbacks.delete(callback) end end it "retains the changes until after all callbacks" do acolyte.update_attribute(:status, "testing") expect(acolyte.changed_in_callback).to eq({ "status" => [ nil, "testing" ] }) end end context "when the document is new" do let!(:acolyte) do Acolyte.new(name: "callback-test") end before do Acolyte.set_callback(:save, :after, if: :callback_test?) do |doc| doc[:changed_in_callback] = doc.changes.dup end end after do Acolyte._save_callbacks.select do |callback| callback.kind == :after end.each do |callback| Acolyte._save_callbacks.delete(callback) end end it "retains the changes until after all callbacks" do acolyte.save expect(acolyte.changed_in_callback["name"]).to eq([ nil, "callback-test" ]) end end end context "when associations are getting changed" do let(:person) do Person.create(addresses: [ Address.new ]) end before do person.addresses = [ Address.new ] end it "does not set the association to nil when hitting the database" do expect(person.setters).to_not eq({ "addresses" => nil }) end end end
brixen/mongoid
spec/mongoid/changeable_spec.rb
Ruby
mit
33,779
[ 30522, 5478, 1000, 28699, 1035, 2393, 2121, 1000, 6235, 12256, 3995, 3593, 1024, 1024, 2689, 3085, 2079, 6235, 1000, 1001, 17961, 1035, 2689, 1000, 2079, 6123, 1000, 2043, 1996, 17961, 2038, 2904, 2013, 1996, 19035, 3643, 1000, 2079, 6123, 1000, 2043, 2478, 1996, 2275, 3334, 1000, 2079, 2292, 1006, 1024, 2711, 1007, 2079, 2711, 1012, 2047, 1006, 2516, 1024, 1000, 2882, 13433, 16429, 4430, 1000, 1007, 1012, 11112, 1006, 1004, 1024, 2693, 1035, 3431, 1007, 2203, 30524, 2711, 1012, 4604, 1006, 1024, 17961, 1035, 2689, 1010, 1000, 2516, 1000, 1007, 1007, 1012, 2000, 1041, 4160, 1006, 1031, 1000, 2882, 13433, 16429, 4430, 1000, 1010, 1000, 2952, 5793, 1000, 1033, 1007, 2203, 2009, 1000, 4473, 3229, 3081, 1006, 17961, 1007, 1035, 2689, 1000, 2079, 5987, 1006, 2711, 1012, 2516, 1035, 2689, 1007, 1012, 2000, 1041, 4160, 1006, 1031, 1000, 2882, 13433, 16429, 4430, 1000, 1010, 1000, 2952, 5793, 1000, 1033, 1007, 2203, 6123, 1000, 2043, 1996, 2492, 2003, 14593, 2098, 1000, 2079, 2292, 1006, 1024, 2711, 1007, 2079, 2711, 1012, 2047, 1006, 3231, 1024, 1000, 14593, 2098, 1015, 1000, 1007, 1012, 11112, 1006, 1004, 1024, 2693, 1035, 3431, 1007, 2203, 2077, 2079, 2711, 1012, 3231, 1027, 1000, 14593, 2098, 1016, 1000, 2203, 2009, 1000, 5651, 2019, 9140, 1997, 1996, 2214, 3643, 1998, 2047, 3643, 1000, 2079, 5987, 1006, 2711, 1012, 4604, 1006, 1024, 17961, 1035, 2689, 1010, 1000, 3231, 1000, 1007, 1007, 1012, 2000, 1041, 4160, 1006, 1031, 1000, 14593, 2098, 1015, 1000, 1010, 1000, 14593, 2098, 1016, 1000, 1033, 1007, 2203, 2009, 1000, 4473, 3229, 3081, 1006, 17961, 1007, 1035, 2689, 1000, 2079, 5987, 1006, 2711, 1012, 3231, 1035, 2689, 1007, 1012, 2000, 1041, 4160, 1006, 1031, 1000, 14593, 2098, 1015, 1000, 1010, 1000, 14593, 2098, 1016, 1000, 1033, 1007, 2203, 2203, 2203, 6123, 1000, 2043, 2478, 1031, 1033, 4725, 1000, 2079, 2292, 1006, 1024, 2711, 1007, 2079, 2711, 1012, 2047, 1006, 2516, 1024, 1000, 2882, 13433, 16429, 4430, 1000, 1007, 1012, 11112, 1006, 1004, 1024, 2693, 1035, 3431, 1007, 2203, 2077, 2079, 2711, 1031, 1024, 2516, 1033, 1027, 1000, 2952, 5793, 1000, 2203, 2009, 1000, 5651, 2019, 9140, 1997, 1996, 2214, 3643, 1998, 2047, 3643, 1000, 2079, 5987, 1006, 2711, 1012, 4604, 1006, 1024, 17961, 1035, 2689, 1010, 1000, 2516, 1000, 1007, 1007, 1012, 2000, 1041, 4160, 1006, 1031, 1000, 2882, 13433, 16429, 4430, 1000, 1010, 1000, 2952, 5793, 1000, 1033, 1007, 2203, 2009, 1000, 4473, 3229, 3081, 1006, 17961, 1007, 1035, 2689, 1000, 2079, 5987, 1006, 2711, 1012, 2516, 1035, 2689, 1007, 1012, 2000, 1041, 4160, 1006, 1031, 1000, 2882, 13433, 16429, 4430, 1000, 1010, 1000, 2952, 5793, 1000, 1033, 1007, 2203, 2203, 2203, 6123, 1000, 2043, 1996, 17961, 2038, 2904, 2013, 1996, 12398, 3643, 1000, 2079, 6123, 1000, 2043, 2478, 1996, 2275, 3334, 1000, 2079, 2292, 1006, 1024, 2711, 1007, 2079, 2711, 1012, 2047, 1006, 18551, 1024, 2995, 1007, 2203, 30523, 2077, 2079, 2711, 1012, 2516, 1027, 1000, 2952, 5793, 1000, 2203, 2009, 1000, 5651, 2019, 9140, 1997, 1996, 2214, 3643, 1998, 2047, 3643, 1000, 2079, 5987, 1006, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2077, 2079, 2711, 1012, 2516, 1027, 1000, 2952, 5793, 1000, 2203, 2009, 1000, 5651, 2019, 9140, 1997, 1996, 2214, 3643, 1998, 2047, 3643, 1000, 2079, 5987, 1006, 30526 ]
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package org.spongepowered.common.item.inventory.lens; import org.spongepowered.api.item.inventory.InventoryProperty; import java.util.Collection; import java.util.List; /** * A type of Lens collection whose members are fully mutable and also supports * all aspects of the {@link Collection} interface. */ public interface MutableLensCollection extends List<Lens>, DynamicLensCollection { void add(Lens lens, InventoryProperty<?, ?>... properties); void add(int index, Lens lens, InventoryProperty<?, ?>... properties); }
SpongePowered/SpongeCommon
src/main/java/org/spongepowered/common/item/inventory/lens/MutableLensCollection.java
Java
mit
1,790
[ 30522, 1013, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 25742, 1010, 7000, 2104, 1996, 10210, 6105, 1006, 10210, 1007, 1012, 1008, 1008, 9385, 1006, 1039, 1007, 25742, 27267, 1026, 16770, 1024, 1013, 1013, 7479, 1012, 25742, 27267, 1012, 8917, 1028, 1008, 9385, 1006, 1039, 1007, 16884, 1008, 1008, 6656, 2003, 2182, 3762, 4379, 1010, 2489, 1997, 3715, 1010, 2000, 2151, 2711, 11381, 1037, 6100, 1008, 1997, 2023, 4007, 1998, 3378, 12653, 6764, 1006, 1996, 1000, 4007, 1000, 1007, 1010, 2000, 3066, 1008, 1999, 1996, 4007, 2302, 16840, 1010, 2164, 2302, 22718, 1996, 2916, 1008, 2000, 2224, 1010, 6100, 1010, 19933, 1010, 13590, 1010, 10172, 1010, 16062, 1010, 4942, 13231, 12325, 1010, 1998, 1013, 2030, 5271, 1008, 4809, 1997, 1996, 4007, 1010, 1998, 2000, 9146, 5381, 2000, 3183, 1996, 4007, 2003, 1008, 19851, 2000, 2079, 2061, 1010, 3395, 2000, 1996, 2206, 3785, 1024, 1008, 1008, 1996, 2682, 9385, 5060, 1998, 2023, 6656, 5060, 4618, 2022, 2443, 1999, 1008, 2035, 4809, 2030, 6937, 8810, 1997, 1996, 4007, 1012, 1008, 1008, 1996, 4007, 2003, 3024, 1000, 2004, 2003, 1000, 1010, 2302, 10943, 2100, 1997, 2151, 2785, 1010, 4671, 2030, 1008, 13339, 1010, 2164, 2021, 2025, 3132, 2000, 1996, 10943, 3111, 1997, 6432, 8010, 1010, 1008, 10516, 2005, 1037, 3327, 3800, 1998, 2512, 2378, 19699, 23496, 3672, 1012, 1999, 2053, 2724, 4618, 1996, 1008, 6048, 2030, 9385, 13304, 2022, 20090, 2005, 2151, 4366, 1010, 12394, 2030, 2060, 1008, 14000, 1010, 3251, 1999, 2019, 2895, 1997, 3206, 1010, 17153, 2102, 2030, 4728, 1010, 17707, 2013, 1010, 1008, 2041, 1997, 2030, 1999, 4434, 2007, 1996, 4007, 2030, 1996, 2224, 2030, 2060, 24069, 1999, 1008, 1996, 4007, 1012, 1008, 1013, 7427, 8917, 1012, 25742, 27267, 1012, 2691, 1012, 8875, 1012, 12612, 1012, 10014, 1025, 12324, 8917, 1012, 25742, 27267, 1012, 17928, 1012, 8875, 1012, 12612, 1012, 12612, 21572, 4842, 3723, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 3074, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 1013, 1008, 1008, 1008, 1037, 2828, 1997, 10014, 3074, 3005, 2372, 2024, 3929, 14163, 10880, 1998, 2036, 6753, 1008, 2035, 5919, 1997, 1996, 1063, 1030, 4957, 3074, 1065, 8278, 1012, 1008, 1013, 2270, 8278, 14163, 10880, 7770, 9363, 6216, 7542, 8908, 2862, 1026, 10014, 1028, 1010, 8790, 7770, 9363, 6216, 7542, 1063, 11675, 5587, 1006, 10014, 10014, 1010, 12612, 21572, 4842, 3723, 1026, 1029, 1010, 1029, 1028, 1012, 1012, 1012, 5144, 1007, 1025, 11675, 5587, 1006, 20014, 5950, 1010, 10014, 10014, 1010, 12612, 21572, 4842, 3723, 1026, 1029, 1010, 1029, 1028, 1012, 1012, 1012, 5144, 1007, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
jsonp({"cep":"70377070","logradouro":"Quadra SQS 114 Bloco G","bairro":"Asa Sul","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
lfreneda/cepdb
api/v1/70377070.jsonp.js
JavaScript
cc0-1.0
147
[ 30522, 1046, 3385, 2361, 1006, 1063, 1000, 8292, 2361, 1000, 1024, 1000, 3963, 24434, 19841, 19841, 1000, 1010, 1000, 8833, 12173, 8162, 2080, 1000, 1024, 1000, 17718, 2527, 5490, 2015, 12457, 15984, 2080, 1043, 1000, 1010, 1000, 21790, 18933, 1000, 1024, 1000, 17306, 21396, 1000, 1010, 1000, 28744, 9648, 1000, 1024, 1000, 11655, 2015, 1032, 1057, 8889, 2098, 6632, 1000, 1010, 1000, 1057, 2546, 1000, 1024, 1000, 1040, 2546, 1000, 1010, 1000, 9765, 9365, 1000, 1024, 1000, 4487, 3367, 28414, 2976, 1000, 1065, 1007, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1025, 102, 0, 0, 30526 ]
/* * Javascript terminal * * Copyright (c) 2011 Fabrice Bellard * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ "use strict"; function Term(width, height, handler) { this.w = width; this.h = height; this.cur_h = height; /* current height of the scroll back buffer */ this.tot_h = 1000; /* total height of the scroll back buffer */ this.y_base = 0; /* position of the current top screen line in the * scroll back buffer */ this.y_disp = 0; /* position of the top displayed line in the * scroll back buffer */ /* cursor position */ this.x = 0; this.y = 0; this.cursorstate = 0; this.handler = handler; this.convert_lf_to_crlf = false; this.state = 0; this.output_queue = ""; this.bg_colors = [ "#000000", "#ff0000", "#00ff00", "#ffff00", "#0000ff", "#ff00ff", "#00ffff", "#ffffff" ]; this.fg_colors = [ "#000000", "#ff0000", "#00ff00", "#ffff00", "#0000ff", "#ff00ff", "#00ffff", "#ffffff" ]; this.def_attr = (7 << 3) | 0; this.cur_attr = this.def_attr; this.is_mac = (navigator.userAgent.indexOf("Mac") >=0 ) ? true : false; this.key_rep_state = 0; this.key_rep_str = ""; } Term.prototype.open = function() { var y, line, i, term, c; /* set initial content */ this.lines = new Array(); c = 32 | (this.def_attr << 16); for(y = 0; y < this.cur_h;y++) { line = new Array(); for(i=0;i<this.w;i++) line[i] = c; this.lines[y] = line; } /* create terminal window */ document.writeln('<table border="0" cellspacing="0" cellpadding="0">'); for(y=0;y<this.h;y++) { document.writeln('<tr><td class="term" id="tline' + y + '"></td></tr>'); } document.writeln('</table>'); this.refresh(0, this.h - 1); // key handler document.addEventListener("keydown", this.keyDownHandler.bind(this), true); document.addEventListener("keypress", this.keyPressHandler.bind(this), true); // cursor blinking term = this; setInterval(function() { term.cursor_timer_cb(); }, 1000); }; Term.prototype.refresh = function(ymin, ymax) { var el, y, line, outline, c, w, i, cx, attr, last_attr, fg, bg, y1; for(y = ymin; y <= ymax; y++) { /* convert to HTML string */ y1 = y + this.y_disp; if (y1 >= this.cur_h) y1 -= this.cur_h; line = this.lines[y1]; outline = ""; w = this.w; if (y == this.y && this.cursor_state && this.y_disp == this.y_base) { cx = this.x; } else { cx = -1; } last_attr = this.def_attr; for(i = 0; i < w; i++) { c = line[i]; attr = c >> 16; c &= 0xffff; if (i == cx) { attr = -1; /* cursor */ } if (attr != last_attr) { if (last_attr != this.def_attr) outline += '</span>'; if (attr != this.def_attr) { if (attr == -1) { /* cursor */ outline += '<span class="termReverse">'; } else { outline += '<span style="'; fg = (attr >> 3) & 7; bg = attr & 7; if (fg != 7) { outline += 'color:' + this.fg_colors[fg] + ';'; } if (bg != 0) { outline += 'background-color:' + this.bg_colors[bg] + ';'; } outline += '">'; } } } switch(c) { case 32: outline += "&nbsp;"; break; case 38: // '&' outline += "&amp;"; break; case 60: // '<' outline += "&lt;"; break; case 62: // '>' outline += "&gt;"; break; default: if (c < 32) { outline += "&nbsp;"; } else { outline += String.fromCharCode(c); } break; } last_attr = attr; } if (last_attr != this.def_attr) { outline += '</span>'; } el = document.getElementById("tline" + y); el.innerHTML = outline; } }; Term.prototype.cursor_timer_cb = function() { this.cursor_state ^= 1; this.refresh(this.y, this.y); }; Term.prototype.show_cursor = function() { if (!this.cursor_state) { this.cursor_state = 1; this.refresh(this.y, this.y); } }; Term.prototype.scroll = function() { var y, line, x, c, y1; /* increase height of buffer if possible */ if (this.cur_h < this.tot_h) { this.cur_h++; } /* move down one line */ if (++this.y_base == this.cur_h) this.y_base = 0; this.y_disp = this.y_base; c = 32 | (this.def_attr << 16); line = new Array(); for(x=0;x<this.w;x++) line[x] = c; y1 = this.y_base + this.h - 1; if (y1 >= this.cur_h) y1 -= this.cur_h; this.lines[y1] = line; }; /* scroll down or up in the scroll back buffer by n lines */ Term.prototype.scroll_disp = function(n) { var i, y1; /* slow but it does not really matters */ if (n >= 0) { for(i = 0; i < n; i++) { if (this.y_disp == this.y_base) break; if (++this.y_disp == this.cur_h) this.y_disp = 0; } } else { n = -n; y1 = this.y_base + this.h; if (y1 >= this.cur_h) y1 -= this.cur_h; for(i = 0; i < n; i++) { if (this.y_disp == y1) break; if (--this.y_disp < 0) this.y_disp = this.cur_h - 1; } } this.refresh(0, this.h - 1); }; Term.prototype.write = function(str) { function update(y) { ymin = Math.min(ymin, y); ymax = Math.max(ymax, y); } function erase_to_eol(s, x, y) { var l, i, c, y1; y1 = s.y_base + y; if (y1 >= s.cur_h) y1 -= s.cur_h; l = s.lines[y1]; c = 32 | (s.def_attr << 16); for(i = x; i < s.w; i++) l[i] = c; update(y); } function csi_colors(s, esc_params) { var j, n; if (esc_params.length == 0) { s.cur_attr= s.def_attr; } else { for(j = 0; j < esc_params.length; j++) { n = esc_params[j]; if (n >= 30 && n <= 37) { /* foreground */ s.cur_attr = (s.cur_attr & ~(7 << 3)) | ((n - 30) << 3); } else if (n >= 40 && n <= 47) { /* background */ s.cur_attr = (s.cur_attr & ~7) | (n - 40); } else if (n == 0) { /* default attr */ s.cur_attr = s.def_attr; } } } } var TTY_STATE_NORM = 0; var TTY_STATE_ESC = 1; var TTY_STATE_CSI = 2; var i, c, ymin, ymax, l, n, j, y1; /* update region is in ymin ymax */ ymin = this.h; ymax = -1; update(this.y); // remove the cursor /* reset top of displayed screen to top of real screen */ if (this.y_base != this.y_disp) { this.y_disp = this.y_base; /* force redraw */ ymin = 0; ymax = this.h - 1; } for(i = 0; i < str.length; i++) { c = str.charCodeAt(i); switch(this.state) { case TTY_STATE_NORM: switch(c) { case 10: if (this.convert_lf_to_crlf) { this.x = 0; // emulates '\r' } this.y++; if (this.y >= this.h) { this.y--; this.scroll(); ymin = 0; ymax = this.h - 1; } break; case 13: this.x = 0; break; case 8: if (this.x > 0) { this.x--; } break; case 9: /* tab */ n = (this.x + 8) & ~7; if (n <= this.w) { this.x = n; } break; case 27: this.state = TTY_STATE_ESC; break; default: if (c >= 32) { if (this.x >= this.w) { this.x = 0; this.y++; if (this.y >= this.h) { this.y--; this.scroll(); ymin = 0; ymax = this.h - 1; } } y1 = this.y + this.y_base; if (y1 >= this.cur_h) y1 -= this.cur_h; this.lines[y1][this.x] = (c & 0xffff) | (this.cur_attr << 16); this.x++; update(this.y); } break; } break; case TTY_STATE_ESC: if (c == 91) { // '[' this.esc_params = new Array(); this.cur_param = 0; this.state = TTY_STATE_CSI; } else { this.state = TTY_STATE_NORM; } break; case TTY_STATE_CSI: if (c >= 48 && c <= 57) { // '0' '9' /* numeric */ this.cur_param = this.cur_param * 10 + c - 48; } else { /* add parsed parameter */ this.esc_params[this.esc_params.length] = this.cur_param; this.cur_param = 0; if (c == 59) // ; break; this.state = TTY_STATE_NORM; // console.log("term: csi=" + this.esc_params + " cmd="+c); switch(c) { case 65: // 'A' up n = this.esc_params[0]; if (n < 1) n = 1; this.y -= n; if (this.y < 0) this.y = 0; break; case 66: // 'B' down n = this.esc_params[0]; if (n < 1) n = 1; this.y += n; if (this.y >= this.h) this.y = this.h - 1; break; case 67: // 'C' right n = this.esc_params[0]; if (n < 1) n = 1; this.x += n; if (this.x >= this.w - 1) this.x = this.w - 1; break; case 68: // 'D' left n = this.esc_params[0]; if (n < 1) n = 1; this.x -= n; if (this.x < 0) this.x = 0; break; case 72: // 'H' goto xy { var x1, y1; y1 = this.esc_params[0] - 1; if (this.esc_params.length >= 2) x1 = this.esc_params[1] - 1; else x1 = 0; if (y1 < 0) y1 = 0; else if (y1 >= this.h) y1 = this.h - 1; if (x1 < 0) x1 = 0; else if (x1 >= this.w) x1 = this.w - 1; this.x = x1; this.y = y1; } break; case 74: // 'J' erase to end of screen erase_to_eol(this, this.x, this.y); for(j = this.y + 1; j < this.h; j++) erase_to_eol(this, 0, j); break; case 75: // 'K' erase to end of line erase_to_eol(this, this.x, this.y); break; case 109: // 'm': set color csi_colors(this, this.esc_params); break; case 110: // 'n' return the cursor position this.queue_chars("\x1b[" + (this.y + 1) + ";" + (this.x + 1) + "R"); break; default: break; } } break; } } update(this.y); // show the cursor if (ymax >= ymin) this.refresh(ymin, ymax); }; Term.prototype.writeln = function (str) { this.write(str + '\r\n'); }; Term.prototype.keyDownHandler = function (ev) { var str; str=""; switch(ev.keyCode) { case 8: /* backspace */ str = "\x7f"; break; case 9: /* tab */ str = "\x09"; break; case 13: /* enter */ str = "\x0d"; break; case 27: /* escape */ str = "\x1b"; break; case 37: /* left */ str = "\x1b[D"; break; case 39: /* right */ str = "\x1b[C"; break; case 38: /* up */ if (ev.ctrlKey) { this.scroll_disp(-1); } else { str = "\x1b[A"; } break; case 40: /* down */ if (ev.ctrlKey) { this.scroll_disp(1); } else { str = "\x1b[B"; } break; case 46: /* delete */ str = "\x1b[3~"; break; case 45: /* insert */ str = "\x1b[2~"; break; case 36: /* home */ str = "\x1bOH"; break; case 35: /* end */ str = "\x1bOF"; break; case 33: /* page up */ if (ev.ctrlKey) { this.scroll_disp(-(this.h - 1)); } else { str = "\x1b[5~"; } break; case 34: /* page down */ if (ev.ctrlKey) { this.scroll_disp(this.h - 1); } else { str = "\x1b[6~"; } break; default: if (ev.ctrlKey) { /* ctrl + key */ if (ev.keyCode >= 65 && ev.keyCode <= 90) { str = String.fromCharCode(ev.keyCode - 64); } else if (ev.keyCode == 32) { str = String.fromCharCode(0); } } else if ((!this.is_mac && ev.altKey) || (this.is_mac && ev.metaKey)) { /* meta + key (Note: we only send lower case) */ if (ev.keyCode >= 65 && ev.keyCode <= 90) { str = "\x1b" + String.fromCharCode(ev.keyCode + 32); } } break; } // console.log("keydown: keycode=" + ev.keyCode + " charcode=" + ev.charCode + " str=" + str + " ctrl=" + ev.ctrlKey + " alt=" + ev.altKey + " meta=" + ev.metaKey); if (str) { if (ev.stopPropagation) ev.stopPropagation(); if (ev.preventDefault) ev.preventDefault(); this.show_cursor(); this.key_rep_state = 1; this.key_rep_str = str; this.handler(str); return false; } else { this.key_rep_state = 0; return true; } }; Term.prototype.keyPressHandler = function (ev) { var str, char_code; if (ev.stopPropagation) ev.stopPropagation(); if (ev.preventDefault) ev.preventDefault(); str=""; if (!("charCode" in ev)) { /* on Opera charCode is not defined and keypress is sent for system keys. Moreover, only keupress is repeated which is a problem for system keys. */ char_code = ev.keyCode; if (this.key_rep_state == 1) { this.key_rep_state = 2; return false; } else if (this.key_rep_state == 2) { /* repetition */ this.show_cursor(); this.handler(this.key_rep_str); return false; } } else { char_code = ev.charCode; } if (char_code != 0) { if (!ev.ctrlKey && ((!this.is_mac && !ev.altKey) || (this.is_mac && !ev.metaKey))) { str = String.fromCharCode(char_code); } } // console.log("keypress: keycode=" + ev.keyCode + " charcode=" + ev.charCode + " str=" + str + " ctrl=" + ev.ctrlKey + " alt=" + ev.altKey + " meta=" + ev.metaKey); if (str) { this.show_cursor(); this.handler(str); return false; } else { return true; } }; /* output queue to send back asynchronous responses */ Term.prototype.queue_chars = function (str) { this.output_queue += str; if (this.output_queue) setTimeout(this.outputHandler.bind(this), 0); }; Term.prototype.outputHandler = function () { if (this.output_queue) { this.handler(this.output_queue); this.output_queue = ""; } };
ubercomp/jslm32
third_party/bellard/term.js
JavaScript
lgpl-2.1
18,674
[ 30522, 1013, 1008, 1008, 9262, 22483, 5536, 1008, 1008, 9385, 1006, 1039, 1007, 2249, 8313, 2063, 12101, 4103, 1008, 1008, 6656, 2003, 2182, 3762, 4379, 1010, 2489, 1997, 3715, 1010, 2000, 2151, 2711, 11381, 1037, 6100, 1008, 1997, 2023, 4007, 1998, 3378, 12653, 6764, 1006, 1996, 1000, 4007, 1000, 1007, 1010, 2000, 3066, 1008, 1999, 1996, 4007, 2302, 16840, 1010, 2164, 2302, 22718, 1996, 2916, 1008, 2000, 2224, 1010, 6100, 1010, 19933, 1010, 13590, 1010, 10172, 1010, 16062, 1010, 4942, 13231, 12325, 1010, 1998, 1013, 2030, 5271, 1008, 4809, 1997, 1996, 4007, 1010, 1998, 2000, 9146, 5381, 2000, 3183, 1996, 4007, 2003, 1008, 19851, 2000, 2079, 2061, 1010, 3395, 2000, 1996, 2206, 3785, 1024, 1008, 1008, 1996, 2682, 9385, 5060, 1998, 2023, 6656, 5060, 4618, 2022, 2443, 1999, 1008, 2035, 4809, 2030, 6937, 8810, 1997, 1996, 4007, 1012, 1008, 1008, 1996, 4007, 2003, 3024, 1000, 2004, 2003, 1000, 1010, 2302, 10943, 2100, 1997, 2151, 2785, 1010, 4671, 2030, 1008, 13339, 1010, 2164, 2021, 2025, 3132, 2000, 1996, 10943, 3111, 1997, 6432, 8010, 1010, 1008, 10516, 2005, 1037, 3327, 3800, 1998, 2512, 2378, 19699, 23496, 3672, 1012, 1999, 2053, 2724, 4618, 1008, 1996, 6048, 2030, 9385, 13304, 2022, 20090, 2005, 2151, 4366, 1010, 12394, 2030, 2060, 1008, 14000, 1010, 3251, 1999, 2019, 2895, 1997, 3206, 1010, 17153, 2102, 2030, 4728, 1010, 17707, 2013, 1010, 1008, 2041, 1997, 2030, 1999, 4434, 2007, 1996, 4007, 2030, 1996, 2224, 2030, 2060, 24069, 1999, 1008, 1996, 4007, 1012, 1008, 1013, 1000, 2224, 9384, 1000, 1025, 3853, 2744, 1006, 9381, 1010, 4578, 1010, 28213, 1007, 1063, 2023, 1012, 1059, 1027, 9381, 1025, 2023, 1012, 1044, 1027, 4578, 1025, 2023, 1012, 12731, 2099, 1035, 1044, 1027, 4578, 1025, 1013, 1008, 2783, 4578, 1997, 1996, 17186, 2067, 17698, 1008, 1013, 2023, 1012, 2000, 2102, 1035, 1044, 1027, 6694, 1025, 1013, 1008, 2561, 4578, 1997, 1996, 17186, 2067, 17698, 1008, 1013, 2023, 1012, 1061, 1035, 2918, 1027, 1014, 1025, 1013, 1008, 2597, 1997, 1996, 2783, 2327, 3898, 2240, 1999, 1996, 1008, 17186, 2067, 17698, 1008, 1013, 2023, 1012, 1061, 1035, 4487, 13102, 1027, 1014, 1025, 1013, 1008, 2597, 1997, 1996, 2327, 6913, 2240, 1999, 1996, 1008, 17186, 2067, 17698, 1008, 1013, 1013, 1008, 12731, 25301, 2099, 2597, 1008, 1013, 2023, 1012, 1060, 1027, 1014, 1025, 2023, 1012, 1061, 1027, 1014, 1025, 2023, 1012, 12731, 30524, 1035, 6087, 1027, 1031, 1000, 1001, 2199, 8889, 2692, 1000, 1010, 1000, 1001, 21461, 8889, 8889, 1000, 1010, 1000, 1001, 4002, 4246, 8889, 1000, 1010, 1000, 1001, 21461, 4246, 8889, 1000, 1010, 1000, 1001, 2199, 2692, 4246, 1000, 1010, 1000, 1001, 21461, 8889, 4246, 1000, 1010, 1000, 1001, 4002, 4246, 4246, 1000, 1010, 1000, 1001, 21461, 4246, 4246, 1000, 1033, 1025, 2023, 1012, 1042, 2290, 1035, 6087, 1027, 1031, 30523, 25301, 12096, 3686, 1027, 1014, 1025, 2023, 1012, 28213, 1027, 28213, 1025, 2023, 1012, 10463, 1035, 1048, 2546, 1035, 2000, 1035, 13675, 10270, 1027, 6270, 1025, 2023, 1012, 2110, 1027, 1014, 1025, 2023, 1012, 6434, 1035, 24240, 1027, 1000, 1000, 1025, 2023, 1012, 1038, 2290, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 25301, 12096, 3686, 1027, 1014, 1025, 2023, 1012, 28213, 1027, 28213, 1025, 2023, 1012, 10463, 1035, 1048, 2546, 1035, 2000, 1035, 13675, 10270, 1027, 6270, 1025, 2023, 1012, 2110, 1027, 1014, 1025, 2023, 1012, 6434, 1035, 24240, 1027, 1000, 1000, 1025, 2023, 1012, 1038, 2290, 30526 ]
/* * Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/> * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * * 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, see <http://www.gnu.org/licenses/>. */ #include "WorldSession.h" #include "Common.h" #include "DatabaseEnv.h" #include "GameTime.h" #include "Language.h" #include "Log.h" #include "ObjectMgr.h" #include "Opcodes.h" #include "Player.h" #include "Random.h" #include "TicketMgr.h" #include "Util.h" #include "World.h" #include "WorldPacket.h" #include <zlib.h> void WorldSession::HandleGMTicketCreateOpcode(WorldPacket& recvData) { // Don't accept tickets if the ticket queue is disabled. (Ticket UI is greyed out but not fully dependable) if (sTicketMgr->GetStatus() == GMTICKET_QUEUE_STATUS_DISABLED) return; if (GetPlayer()->GetLevel() < sWorld->getIntConfig(CONFIG_TICKET_LEVEL_REQ)) { SendNotification(GetTrinityString(LANG_TICKET_REQ), sWorld->getIntConfig(CONFIG_TICKET_LEVEL_REQ)); return; } GMTicketResponse response = GMTICKET_RESPONSE_CREATE_ERROR; GmTicket* ticket = sTicketMgr->GetTicketByPlayer(GetPlayer()->GetGUID()); if (ticket && ticket->IsCompleted()) sTicketMgr->CloseTicket(ticket->GetId(), GetPlayer()->GetGUID()); // Player must not have ticket if (!ticket || ticket->IsClosed()) { uint32 mapId; float x, y, z; std::string message; uint32 needResponse; bool needMoreHelp; uint32 count; std::list<uint32> times; uint32 decompressedSize; std::string chatLog; recvData >> mapId; recvData >> x >> y >> z; recvData >> message; if (!ValidateHyperlinksAndMaybeKick(message)) return; recvData >> needResponse; recvData >> needMoreHelp; recvData >> count; for (uint32 i = 0; i < count; i++) { uint32 time; recvData >> time; times.push_back(time); } recvData >> decompressedSize; if (count && decompressedSize && decompressedSize < 0xFFFF) { uint32 pos = recvData.rpos(); ByteBuffer dest; dest.resize(decompressedSize); uLongf realSize = decompressedSize; if (uncompress(dest.contents(), &realSize, recvData.contents() + pos, recvData.size() - pos) == Z_OK) { dest >> chatLog; } else { TC_LOG_ERROR("network", "CMSG_GMTICKET_CREATE possibly corrupt. Uncompression failed."); recvData.rfinish(); return; } recvData.rfinish(); // Will still have compressed data in buffer. } if (!chatLog.empty() && !ValidateHyperlinksAndMaybeKick(chatLog)) return; ticket = new GmTicket(GetPlayer()); ticket->SetPosition(mapId, x, y, z); ticket->SetMessage(message); ticket->SetGmAction(needResponse, needMoreHelp); if (!chatLog.empty()) ticket->SetChatLog(times, chatLog); sTicketMgr->AddTicket(ticket); sTicketMgr->UpdateLastChange(); sWorld->SendGMText(LANG_COMMAND_TICKETNEW, GetPlayer()->GetName().c_str(), ticket->GetId()); response = GMTICKET_RESPONSE_CREATE_SUCCESS; } WorldPacket data(SMSG_GMTICKET_CREATE, 4); data << uint32(response); SendPacket(&data); } void WorldSession::HandleGMTicketUpdateOpcode(WorldPacket& recvData) { std::string message; recvData >> message; if (!ValidateHyperlinksAndMaybeKick(message)) return; GMTicketResponse response = GMTICKET_RESPONSE_UPDATE_ERROR; if (GmTicket* ticket = sTicketMgr->GetTicketByPlayer(GetPlayer()->GetGUID())) { SQLTransaction trans = SQLTransaction(nullptr); ticket->SetMessage(message); ticket->SaveToDB(trans); sWorld->SendGMText(LANG_COMMAND_TICKETUPDATED, GetPlayer()->GetName().c_str(), ticket->GetId()); response = GMTICKET_RESPONSE_UPDATE_SUCCESS; } WorldPacket data(SMSG_GMTICKET_UPDATETEXT, 4); data << uint32(response); SendPacket(&data); } void WorldSession::HandleGMTicketDeleteOpcode(WorldPacket & /*recvData*/) { if (GmTicket* ticket = sTicketMgr->GetTicketByPlayer(GetPlayer()->GetGUID())) { WorldPacket data(SMSG_GMTICKET_DELETETICKET, 4); data << uint32(GMTICKET_RESPONSE_TICKET_DELETED); SendPacket(&data); sWorld->SendGMText(LANG_COMMAND_TICKETPLAYERABANDON, GetPlayer()->GetName().c_str(), ticket->GetId()); sTicketMgr->CloseTicket(ticket->GetId(), GetPlayer()->GetGUID()); sTicketMgr->SendTicket(this, nullptr); } } void WorldSession::HandleGMTicketGetTicketOpcode(WorldPacket & /*recvData*/) { SendQueryTimeResponse(); if (GmTicket* ticket = sTicketMgr->GetTicketByPlayer(GetPlayer()->GetGUID())) { if (ticket->IsCompleted()) ticket->SendResponse(this); else sTicketMgr->SendTicket(this, ticket); } else sTicketMgr->SendTicket(this, nullptr); } void WorldSession::HandleGMTicketSystemStatusOpcode(WorldPacket & /*recvData*/) { // Note: This only disables the ticket UI at client side and is not fully reliable // are we sure this is a uint32? Should ask Zor WorldPacket data(SMSG_GMTICKET_SYSTEMSTATUS, 4); data << uint32(sTicketMgr->GetStatus() ? GMTICKET_QUEUE_STATUS_ENABLED : GMTICKET_QUEUE_STATUS_DISABLED); SendPacket(&data); } void WorldSession::HandleGMSurveySubmit(WorldPacket& recvData) { uint32 nextSurveyID = sTicketMgr->GetNextSurveyID(); // just put the survey into the database uint32 mainSurvey; // GMSurveyCurrentSurvey.dbc, column 1 (all 9) ref to GMSurveySurveys.dbc recvData >> mainSurvey; std::unordered_set<uint32> surveyIds; SQLTransaction trans = CharacterDatabase.BeginTransaction(); // sub_survey1, r1, comment1, sub_survey2, r2, comment2, sub_survey3, r3, comment3, sub_survey4, r4, comment4, sub_survey5, r5, comment5, sub_survey6, r6, comment6, sub_survey7, r7, comment7, sub_survey8, r8, comment8, sub_survey9, r9, comment9, sub_survey10, r10, comment10, for (uint8 i = 0; i < 10; i++) { uint32 subSurveyId; // ref to i'th GMSurveySurveys.dbc field (all fields in that dbc point to fields in GMSurveyQuestions.dbc) recvData >> subSurveyId; if (!subSurveyId) break; uint8 rank; // probably some sort of ref to GMSurveyAnswers.dbc recvData >> rank; std::string comment; // comment ("Usage: GMSurveyAnswerSubmit(question, rank, comment)") recvData >> comment; // make sure the same sub survey is not added to DB twice if (!surveyIds.insert(subSurveyId).second) continue; if (!ValidateHyperlinksAndMaybeKick(comment)) return; PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_GM_SUBSURVEY); stmt->setUInt32(0, nextSurveyID); stmt->setUInt32(1, subSurveyId); stmt->setUInt32(2, rank); stmt->setString(3, comment); trans->Append(stmt); } std::string comment; // just a guess recvData >> comment; if (!ValidateHyperlinksAndMaybeKick(comment)) return; PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_GM_SURVEY); stmt->setUInt32(0, GetPlayer()->GetGUID().GetCounter()); stmt->setUInt32(1, nextSurveyID); stmt->setUInt32(2, mainSurvey); stmt->setString(3, comment); trans->Append(stmt); CharacterDatabase.CommitTransaction(trans); } void WorldSession::HandleReportLag(WorldPacket& recvData) { // just put the lag report into the database... // can't think of anything else to do with it uint32 lagType, mapId; recvData >> lagType; recvData >> mapId; float x, y, z; recvData >> x; recvData >> y; recvData >> z; PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_LAG_REPORT); stmt->setUInt32(0, GetPlayer()->GetGUID().GetCounter()); stmt->setUInt8 (1, lagType); stmt->setUInt16(2, mapId); stmt->setFloat (3, x); stmt->setFloat (4, y); stmt->setFloat (5, z); stmt->setUInt32(6, GetLatency()); stmt->setUInt32(7, GameTime::GetGameTime()); CharacterDatabase.Execute(stmt); } void WorldSession::HandleGMResponseResolve(WorldPacket& /*recvPacket*/) { // empty packet if (GmTicket* ticket = sTicketMgr->GetTicketByPlayer(GetPlayer()->GetGUID())) { uint8 getSurvey = 0; if (roll_chance_f(sWorld->getFloatConfig(CONFIG_CHANCE_OF_GM_SURVEY))) getSurvey = 1; WorldPacket data(SMSG_GMRESPONSE_STATUS_UPDATE, 4); data << uint8(getSurvey); SendPacket(&data); WorldPacket data2(SMSG_GMTICKET_DELETETICKET, 4); data2 << uint32(GMTICKET_RESPONSE_TICKET_DELETED); SendPacket(&data2); sTicketMgr->CloseTicket(ticket->GetId(), GetPlayer()->GetGUID()); sTicketMgr->SendTicket(this, nullptr); } }
123xlex/TrinityCore
src/server/game/Handlers/TicketHandler.cpp
C++
gpl-2.0
9,733
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2263, 1011, 10476, 7124, 17345, 1026, 16770, 1024, 1013, 1013, 7479, 1012, 7124, 17345, 1012, 8917, 1013, 1028, 1008, 9385, 1006, 1039, 1007, 2384, 1011, 2268, 24792, 2015, 1026, 8299, 1024, 1013, 1013, 2131, 2386, 12333, 1012, 4012, 1013, 1028, 1008, 1008, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 1008, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 1008, 2489, 4007, 3192, 1025, 2593, 2544, 1016, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 1008, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 1008, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 1008, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 2236, 2270, 6105, 2005, 1008, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 2247, 1008, 2007, 2023, 2565, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 1008, 1013, 1001, 2421, 1000, 8484, 7971, 3258, 1012, 1044, 1000, 1001, 2421, 1000, 2691, 1012, 1044, 1000, 1001, 2421, 1000, 7809, 2368, 2615, 1012, 1044, 1000, 1001, 2421, 1000, 2208, 7292, 1012, 1044, 1000, 1001, 2421, 1000, 2653, 1012, 1044, 1000, 1001, 2421, 1000, 8833, 1012, 1044, 1000, 1001, 2421, 1000, 4874, 24798, 2099, 1012, 1044, 1000, 1001, 2421, 1000, 6728, 23237, 1012, 1044, 1000, 1001, 2421, 1000, 2447, 1012, 1044, 1000, 1001, 2421, 1000, 6721, 1012, 1044, 1000, 1001, 2421, 1000, 7281, 24798, 2099, 1012, 1044, 1000, 1001, 2421, 1000, 21183, 4014, 1012, 1044, 1000, 1001, 2421, 1000, 2088, 1012, 1044, 1000, 1001, 2421, 1000, 2088, 23947, 3388, 1012, 1044, 1000, 1001, 2421, 1026, 1062, 29521, 1012, 1044, 1028, 11675, 8484, 7971, 3258, 1024, 1024, 5047, 21693, 26348, 3388, 16748, 3686, 7361, 16044, 1006, 2088, 23947, 3388, 1004, 28667, 16872, 6790, 1007, 1063, 1013, 1013, 2123, 1005, 1056, 5138, 9735, 2065, 1996, 7281, 24240, 2003, 9776, 1012, 1006, 7281, 21318, 2003, 4462, 2098, 2041, 2021, 2025, 3929, 12530, 3085, 1007, 2065, 1006, 6293, 3388, 24798, 2099, 1011, 1028, 4152, 29336, 2271, 1006, 1007, 1027, 1027, 13938, 26348, 3388, 1035, 24240, 1035, 3570, 1035, 9776, 1007, 2709, 1025, 2065, 1006, 2131, 13068, 2121, 1006, 1007, 1011, 1028, 2131, 20414, 2884, 1006, 1007, 1026, 25430, 2953, 6392, 1011, 1028, 2131, 18447, 8663, 8873, 2290, 1006, 9530, 8873, 2290, 1035, 7281, 1035, 2504, 1035, 2128, 4160, 1007, 1007, 1063, 4604, 17048, 9031, 1006, 2131, 18886, 22758, 3367, 4892, 1006, 30524, 2128, 4160, 1007, 1010, 25430, 2953, 6392, 1011, 1028, 2131, 18447, 8663, 8873, 2290, 1006, 9530, 8873, 2290, 1035, 7281, 1035, 2504, 1035, 2128, 4160, 1007, 1007, 1025, 2709, 1025, 1065, 13938, 26348, 3388, 6072, 26029, 3366, 3433, 1027, 13938, 26348, 3388, 1035, 3433, 1035, 3443, 1035, 7561, 1025, 13938, 26348, 3388, 30523, 11374, 1035, 7281, 1035, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 11374, 1035, 7281, 1035, 30526 ]
../../../../../../../share/pyshared/orca/scripts/apps/nautilus/script.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/nautilus/script.py
Python
gpl-3.0
72
[ 30522, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 3745, 1013, 1052, 7274, 8167, 2098, 1013, 2030, 3540, 1013, 14546, 1013, 18726, 1013, 6583, 21823, 7393, 1013, 5896, 1012, 1052, 2100, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms. #region Using Statements using System; using WaveEngine.Common.Math; using WaveEngine.Framework; using WaveEngine.Framework.Graphics; #endregion namespace WaveEngine.Components.GameActions { /// <summary> /// Game action which animates an 3D entity /// </summary> public class MoveTo3DGameAction : Vector3AnimationGameAction { /// <summary> /// The transform /// </summary> private Transform3D transform; /// <summary> /// If the animation is in local coordinates. /// </summary> private bool local; /// <summary> /// Initializes a new instance of the <see cref="MoveTo3DGameAction"/> class. /// </summary> /// <param name="entity">The target entity</param> /// <param name="to">The target position</param> /// <param name="time">Animation duration</param> /// <param name="ease">The ease function</param> /// <param name="local">If the position is in local coordinates.</param> public MoveTo3DGameAction(Entity entity, Vector3 to, TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false) : base(entity, Vector3.Zero, to, time, ease) { this.local = local; if (local) { this.updateAction = this.LocalMoveAction; } else { this.updateAction = this.MoveAction; } this.transform = entity.FindComponent<Transform3D>(); } /// <summary> /// Performs the run operation /// </summary> protected override void PerformRun() { this.from = this.local ? this.transform.LocalPosition : this.transform.Position; base.PerformRun(); } /// <summary> /// Move action /// </summary> /// <param name="delta">The delta movement</param> private void MoveAction(Vector3 delta) { this.transform.Position = delta; } /// <summary> /// Move action /// </summary> /// <param name="delta">The delta movement</param> private void LocalMoveAction(Vector3 delta) { this.transform.LocalPosition = delta; } } }
WaveEngine/Components
Shared/GameActions/Animations/MoveTo3DGameAction.cs
C#
mit
2,419
[ 30522, 1013, 1013, 9385, 1075, 2760, 4400, 3194, 1055, 1012, 1048, 1012, 2035, 2916, 9235, 1012, 2224, 2003, 3395, 2000, 6105, 3408, 1012, 1001, 2555, 2478, 8635, 2478, 2291, 1025, 2478, 4400, 13159, 3170, 1012, 2691, 1012, 8785, 1025, 2478, 4400, 13159, 3170, 1012, 7705, 1025, 2478, 4400, 13159, 3170, 1012, 7705, 1012, 8389, 1025, 1001, 2203, 23784, 3415, 15327, 4400, 13159, 3170, 1012, 6177, 1012, 2208, 18908, 8496, 1063, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 2208, 2895, 2029, 2019, 21499, 2015, 2019, 7605, 9178, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 2270, 2465, 2693, 3406, 29097, 16650, 18908, 3258, 1024, 9207, 2509, 7088, 28649, 16650, 18908, 3258, 1063, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 1996, 10938, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 2797, 10938, 29097, 10938, 1025, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 2065, 1996, 7284, 2003, 1999, 2334, 12093, 1012, 1013, 1013, 1013, 1026, 1013, 30524, 1026, 1013, 12654, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 9178, 1000, 1028, 1996, 4539, 9178, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 2000, 1000, 1028, 1996, 4539, 2597, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 2051, 1000, 1028, 7284, 9367, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 7496, 1000, 1028, 1996, 7496, 3853, 1026, 1013, 11498, 2213, 1028, 1013, 1013, 1013, 1026, 11498, 2213, 2171, 1027, 1000, 2334, 1000, 1028, 2065, 1996, 2597, 2003, 1999, 2334, 12093, 1012, 1026, 1013, 11498, 2213, 1028, 2270, 2693, 3406, 29097, 16650, 18908, 3258, 1006, 9178, 9178, 1010, 9207, 2509, 2000, 1010, 2335, 9739, 2051, 1010, 7496, 11263, 27989, 7496, 1027, 7496, 11263, 27989, 1012, 3904, 1010, 22017, 2140, 2334, 1027, 6270, 1007, 1024, 2918, 1006, 9178, 1010, 9207, 2509, 1012, 5717, 1010, 2000, 1010, 2051, 1010, 7496, 1007, 1063, 2023, 1012, 2334, 1027, 2334, 1025, 2065, 1006, 2334, 1007, 1063, 2023, 1012, 10651, 18908, 3258, 1027, 2023, 1012, 2334, 5302, 3726, 18908, 3258, 1025, 1065, 2842, 1063, 2023, 1012, 10651, 18908, 3258, 1027, 2023, 1012, 2693, 18908, 3258, 1025, 1065, 2023, 1012, 10938, 1027, 9178, 1012, 2424, 9006, 29513, 3372, 1026, 10938, 29097, 1028, 1006, 1007, 1025, 1065, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 10438, 1996, 2448, 3169, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 5123, 2058, 15637, 11675, 4685, 15532, 1006, 1007, 1063, 2023, 1012, 2013, 1027, 2023, 1012, 2334, 1029, 2023, 1012, 10938, 1012, 2334, 26994, 1024, 2023, 1012, 10938, 1012, 2597, 1025, 2918, 1012, 4685, 15532, 1006, 1007, 1025, 1065, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 2693, 2895, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 1013, 1013, 1013, 30523, 12654, 1028, 2797, 22017, 2140, 2334, 1025, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 3988, 10057, 1037, 2047, 6013, 1997, 1996, 1026, 2156, 13675, 12879, 1027, 1000, 2693, 3406, 29097, 16650, 18908, 3258, 1000, 1013, 1028, 2465, 1012, 1013, 1013, 1013, 30526 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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12654, 1028, 2797, 22017, 2140, 2334, 1025, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 3988, 10057, 1037, 2047, 6013, 1997, 1996, 1026, 2156, 13675, 12879, 1027, 1000, 2693, 3406, 29097, 16650, 18908, 3258, 1000, 1013, 1028, 2465, 1012, 1013, 1013, 1013, 30526 ]
[instagram-private-api](../../README.md) / [index](../../modules/index.md) / MediaConfigureSidecarVideoItem # Interface: MediaConfigureSidecarVideoItem [index](../../modules/index.md).MediaConfigureSidecarVideoItem ## Hierarchy - [`MediaConfigureSidecarItem`](MediaConfigureSidecarItem.md) ↳ **`MediaConfigureSidecarVideoItem`** ## Table of contents ### Properties - [audio\_muted](MediaConfigureSidecarVideoItem.md#audio_muted) - [caption](MediaConfigureSidecarVideoItem.md#caption) - [clips](MediaConfigureSidecarVideoItem.md#clips) - [date\_time\_original](MediaConfigureSidecarVideoItem.md#date_time_original) - [device](MediaConfigureSidecarVideoItem.md#device) - [edits](MediaConfigureSidecarVideoItem.md#edits) - [extra](MediaConfigureSidecarVideoItem.md#extra) - [filter\_type](MediaConfigureSidecarVideoItem.md#filter_type) - [height](MediaConfigureSidecarVideoItem.md#height) - [length](MediaConfigureSidecarVideoItem.md#length) - [poster\_frame\_index](MediaConfigureSidecarVideoItem.md#poster_frame_index) - [source\_type](MediaConfigureSidecarVideoItem.md#source_type) - [timezone\_offset](MediaConfigureSidecarVideoItem.md#timezone_offset) - [upload\_id](MediaConfigureSidecarVideoItem.md#upload_id) - [usertags](MediaConfigureSidecarVideoItem.md#usertags) - [video\_result](MediaConfigureSidecarVideoItem.md#video_result) - [width](MediaConfigureSidecarVideoItem.md#width) ## Properties ### audio\_muted • `Optional` **audio\_muted**: `string` #### Defined in [src/types/media.configure-sidecar.options.ts:49](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L49) ___ ### caption • `Optional` **caption**: ``null`` #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[caption](MediaConfigureSidecarItem.md#caption) #### Defined in [src/types/media.configure-sidecar.options.ts:27](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L27) ___ ### clips • `Optional` **clips**: `string` \| { `length`: `number` ; `source_type`: `string` }[] #### Defined in [src/types/media.configure-sidecar.options.ts:50](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L50) ___ ### date\_time\_original • `Optional` **date\_time\_original**: `string` #### Defined in [src/types/media.configure-sidecar.options.ts:48](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L48) ___ ### device • `Optional` **device**: `string` \| { `android_release`: `string` ; `android_version`: `number` ; `manufacturer`: `string` ; `model`: `string` } #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[device](MediaConfigureSidecarItem.md#device) #### Defined in [src/types/media.configure-sidecar.options.ts:32](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L32) ___ ### edits • `Optional` **edits**: `string` \| { `crop_center`: [`number`, `number`] ; `crop_original_size`: [`number`, `number`] ; `crop_zoom`: `number` } #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[edits](MediaConfigureSidecarItem.md#edits) #### Defined in [src/types/media.configure-sidecar.options.ts:31](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L31) ___ ### extra • `Optional` **extra**: `string` \| { `source_height`: `number` ; `source_width`: `number` } #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[extra](MediaConfigureSidecarItem.md#extra) #### Defined in [src/types/media.configure-sidecar.options.ts:30](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L30) ___ ### filter\_type • `Optional` **filter\_type**: `string` #### Defined in [src/types/media.configure-sidecar.options.ts:46](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L46) ___ ### height • **height**: `number` #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[height](MediaConfigureSidecarItem.md#height) #### Defined in [src/types/media.configure-sidecar.options.ts:42](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L42) ___ ### length • **length**: `string` #### Defined in [src/types/media.configure-sidecar.options.ts:51](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L51) ___ ### poster\_frame\_index • `Optional` **poster\_frame\_index**: `string` #### Defined in [src/types/media.configure-sidecar.options.ts:52](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L52) ___ ### source\_type • `Optional` **source\_type**: `string` #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[source_type](MediaConfigureSidecarItem.md#source_type) #### Defined in [src/types/media.configure-sidecar.options.ts:28](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L28) ___ ### timezone\_offset • `Optional` **timezone\_offset**: `string` #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[timezone_offset](MediaConfigureSidecarItem.md#timezone_offset) #### Defined in [src/types/media.configure-sidecar.options.ts:26](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L26) ___ ### upload\_id • **upload\_id**: `string` #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[upload_id](MediaConfigureSidecarItem.md#upload_id) #### Defined in [src/types/media.configure-sidecar.options.ts:25](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L25) ___ ### usertags • `Optional` **usertags**: `string` \| `PostingUsertags` #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[usertags](MediaConfigureSidecarItem.md#usertags) #### Defined in [src/types/media.configure-sidecar.options.ts:29](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L29) ___ ### video\_result • `Optional` **video\_result**: `string` #### Defined in [src/types/media.configure-sidecar.options.ts:47](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L47) ___ ### width • **width**: `number` #### Inherited from [MediaConfigureSidecarItem](MediaConfigureSidecarItem.md).[width](MediaConfigureSidecarItem.md#width) #### Defined in [src/types/media.configure-sidecar.options.ts:41](https://github.com/Nerixyz/instagram-private-api/blob/0e0721c/src/types/media.configure-sidecar.options.ts#L41)
huttarichard/instagram-private-api
docs/interfaces/index/MediaConfigureSidecarVideoItem.md
Markdown
mit
7,133
[ 30522, 1031, 16021, 23091, 1011, 2797, 1011, 17928, 1033, 1006, 1012, 1012, 1013, 1012, 1012, 1013, 3191, 4168, 1012, 9108, 1007, 1013, 1031, 5950, 1033, 1006, 1012, 1012, 1013, 1012, 1012, 1013, 14184, 1013, 5950, 1012, 9108, 1007, 1013, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1001, 8278, 1024, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1031, 5950, 1033, 1006, 1012, 1012, 1013, 1012, 1012, 1013, 14184, 1013, 5950, 1012, 9108, 1007, 1012, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1001, 1001, 12571, 1011, 1031, 1036, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 4221, 2213, 1036, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 4221, 2213, 1012, 9108, 1007, 100, 1008, 1008, 1036, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1036, 1008, 1008, 1001, 1001, 2795, 1997, 8417, 1001, 1001, 1001, 5144, 1011, 1031, 5746, 1032, 1035, 22124, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 5746, 1035, 22124, 1007, 1011, 1031, 14408, 3258, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 14408, 3258, 1007, 1011, 1031, 15281, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 15281, 1007, 1011, 1031, 3058, 1032, 1035, 2051, 1032, 1035, 2434, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 3058, 1035, 2051, 1035, 2434, 1007, 1011, 1031, 5080, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 5080, 1007, 1011, 1031, 10086, 2015, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 10086, 2015, 1007, 1011, 1031, 4469, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 4469, 1007, 1011, 1031, 11307, 1032, 1035, 2828, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 11307, 30524, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 3091, 1007, 1011, 1031, 13082, 1032, 1035, 4853, 1032, 1035, 5950, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 13082, 1035, 4853, 1035, 5950, 1007, 1011, 1031, 3120, 1032, 1035, 2828, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 3120, 1035, 2828, 1007, 1011, 1031, 2051, 15975, 1032, 1035, 16396, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 2051, 15975, 1035, 16396, 1007, 1011, 1031, 2039, 11066, 1032, 1035, 8909, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 2039, 11066, 1035, 8909, 1007, 1011, 1031, 5310, 30523, 1035, 2828, 1007, 1011, 1031, 4578, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 4578, 1007, 1011, 1031, 3091, 1033, 1006, 2865, 8663, 8873, 27390, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1035, 2828, 1007, 1011, 1031, 4578, 1033, 1006, 2865, 8663, 8873, 27390, 2229, 5178, 10010, 17258, 8780, 4221, 2213, 1012, 9108, 1001, 4578, 1007, 1011, 1031, 3091, 1033, 1006, 2865, 8663, 8873, 27390, 30526 ]
/* * Copyright 2009-2012 The MyBatis Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ibatis.submitted.manyanno; import java.util.List; public class AnnoPost { private int id; private String subject; private String body; private List<AnnoPostTag> tags; public String getBody() { return body; } public void setBody(String body) { this.body = body; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } public List<AnnoPostTag> getTags() { return tags; } public void setTags(List<AnnoPostTag> tags) { this.tags = tags; } }
ekirkilevics/iBatis
src/test/java/org/apache/ibatis/submitted/manyanno/AnnoPost.java
Java
apache-2.0
1,371
[ 30522, 1013, 1008, 1008, 9385, 2268, 1011, 2262, 1996, 2026, 14479, 2483, 2136, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 30524, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 7427, 8917, 1012, 15895, 1012, 21307, 10450, 2015, 1012, 7864, 1012, 2116, 11639, 2080, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 2270, 2465, 5754, 7361, 14122, 1063, 2797, 20014, 8909, 1025, 2797, 5164, 3395, 1025, 2797, 5164, 2303, 1025, 2797, 2862, 1026, 5754, 7361, 14122, 15900, 1028, 22073, 1025, 2270, 5164, 2131, 23684, 1006, 1007, 1063, 2709, 2303, 1025, 1065, 2270, 11675, 2275, 23684, 1006, 5164, 2303, 1007, 1063, 2023, 1012, 2303, 1027, 2303, 1025, 1065, 2270, 20014, 2131, 3593, 1006, 1007, 1063, 2709, 8909, 1025, 1065, 2270, 11675, 2275, 3593, 1006, 20014, 8909, 1007, 1063, 2023, 1012, 8909, 1027, 8909, 1025, 1065, 2270, 5164, 4152, 12083, 20614, 1006, 1007, 1063, 2709, 3395, 1025, 1065, 2270, 11675, 4520, 12083, 20614, 1006, 5164, 3395, 1007, 1063, 2023, 1012, 3395, 1027, 3395, 1025, 1065, 2270, 2862, 1026, 5754, 7361, 14122, 15900, 1028, 2131, 15900, 2015, 1006, 1007, 1063, 2709, 22073, 1025, 1065, 2270, 11675, 2275, 15900, 2015, 1006, 2862, 1026, 5754, 7361, 14122, 15900, 1028, 22073, 1007, 1063, 2023, 1012, 22073, 1027, 22073, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1010, 4007, 1008, 5500, 2104, 1996, 30526 ]
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.lang.dfa.report; public class ClassNode extends AbstractReportNode { private String className; public ClassNode(String className) { this.className = className; } public String getClassName() { return className; } public boolean equalsNode(AbstractReportNode arg0) { if (!(arg0 instanceof ClassNode)) { return false; } return ((ClassNode) arg0).getClassName().equals(className); } }
byronka/xenos
utils/pmd-bin-5.2.2/src/pmd-core/src/main/java/net/sourceforge/pmd/lang/dfa/report/ClassNode.java
Java
mit
585
[ 30522, 1013, 1008, 1008, 1008, 18667, 2094, 1011, 2806, 6105, 1025, 2005, 2062, 18558, 2156, 8299, 1024, 1013, 1013, 7610, 2094, 1012, 3120, 29278, 3351, 1012, 5658, 1013, 6105, 1012, 16129, 1008, 1013, 7427, 5658, 1012, 3120, 29278, 3351, 1012, 7610, 2094, 1012, 11374, 1012, 1040, 7011, 1012, 3189, 1025, 2270, 2465, 2465, 3630, 3207, 8908, 10061, 2890, 6442, 3630, 3207, 1063, 2797, 5164, 2465, 18442, 1025, 2270, 2465, 3630, 3207, 1006, 5164, 2465, 18442, 1007, 1063, 2023, 1012, 2465, 18442, 1027, 2465, 18442, 1025, 1065, 2270, 5164, 2131, 26266, 18442, 1006, 1007, 1063, 2709, 2465, 18442, 1025, 1065, 2270, 22017, 20898, 19635, 3630, 3207, 1006, 10061, 2890, 6442, 3630, 3207, 12098, 2290, 2692, 1007, 1063, 2065, 1006, 999, 1006, 12098, 2290, 2692, 6013, 11253, 2465, 3630, 3207, 1007, 1007, 1063, 2709, 6270, 1025, 1065, 2709, 1006, 1006, 2465, 3630, 3207, 1007, 12098, 2290, 2692, 1007, 1012, 2131, 26266, 18442, 1006, 1007, 1012, 19635, 1006, 2465, 18442, 1007, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("VowTracker.Tests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("VowTracker.Tests")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("1ba3d16d-e3cf-4ae2-81a2-65fa86038cbb")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
zenzontle/VowTracker
VowTracker.Tests/Properties/AssemblyInfo.cs
C#
mit
1,363
[ 30522, 2478, 2291, 1012, 9185, 1025, 2478, 2291, 1012, 2448, 7292, 1012, 21624, 8043, 7903, 2229, 1025, 2478, 2291, 1012, 2448, 7292, 1012, 6970, 11923, 2121, 7903, 2229, 1025, 1013, 1013, 2236, 2592, 2055, 2019, 3320, 2003, 4758, 2083, 1996, 2206, 1013, 1013, 2275, 1997, 12332, 1012, 2689, 2122, 17961, 5300, 2000, 19933, 1996, 2592, 1013, 1013, 3378, 2007, 2019, 3320, 1012, 1031, 3320, 1024, 3320, 3775, 9286, 1006, 1000, 19076, 6494, 9102, 1012, 5852, 1000, 1007, 1033, 1031, 3320, 1024, 3320, 6155, 23235, 3258, 1006, 1000, 1000, 1007, 1033, 1031, 3320, 1024, 3320, 8663, 8873, 27390, 3370, 1006, 1000, 1000, 1007, 1033, 1031, 3320, 1024, 3320, 9006, 9739, 2100, 1006, 1000, 1000, 1007, 1033, 1031, 3320, 1024, 3320, 21572, 8566, 6593, 1006, 1000, 19076, 6494, 9102, 1012, 5852, 1000, 1007, 1033, 1031, 3320, 1024, 3320, 3597, 7685, 15950, 1006, 1000, 9385, 1075, 2355, 1000, 1007, 1033, 1031, 3320, 1024, 3320, 6494, 3207, 10665, 1006, 1000, 1000, 1007, 1033, 1031, 3320, 1024, 3320, 14561, 1006, 1000, 1000, 1007, 1033, 1013, 1013, 4292, 4012, 11365, 7028, 2000, 6270, 3084, 1996, 4127, 1999, 2023, 3320, 2025, 5710, 1013, 1013, 2000, 4012, 6177, 1012, 2065, 2017, 2342, 2000, 3229, 1037, 2828, 1999, 2023, 3320, 2013, 1013, 1013, 4012, 1010, 2275, 1996, 4012, 11365, 7028, 17961, 2000, 2995, 2006, 2008, 2828, 1012, 1031, 3320, 1024, 4012, 11365, 7028, 1006, 6270, 1007, 1033, 1013, 1013, 1996, 2206, 26458, 2094, 2003, 2005, 1996, 8909, 1997, 1996, 2828, 29521, 2065, 2023, 2622, 2003, 6086, 2000, 4012, 1031, 3320, 1024, 26458, 2094, 1006, 1000, 26314, 2050, 29097, 16048, 2094, 1011, 1041, 2509, 2278, 2546, 1011, 26424, 2063, 2475, 1011, 6282, 2050, 2475, 1011, 3515, 7011, 20842, 2692, 22025, 27421, 2497, 1000, 1007, 1033, 1013, 1013, 2544, 2592, 2005, 2019, 3320, 3774, 1997, 1996, 2206, 2176, 5300, 1024, 1013, 1013, 1013, 1013, 2350, 2544, 1013, 1013, 3576, 2544, 1013, 1013, 3857, 2193, 1013, 1013, 13921, 1013, 1013, 1013, 1013, 2017, 2064, 20648, 2035, 1996, 5300, 2030, 2017, 2064, 12398, 1996, 13921, 1998, 3857, 3616, 1013, 1013, 2011, 2478, 1996, 1005, 1008, 1005, 2004, 3491, 2917, 1024, 1031, 3320, 1024, 3320, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1000, 1015, 1012, 1014, 1012, 1014, 1012, 1014, 1000, 1007, 30526 ]
require 'test_helper' require 'mail_fetcher_config' class MailFetcherConfigTest < ActiveSupport::TestCase # Because the `defaults` method on `Mail` calls `instance_eval` with a block, # we need to have a stub class to test what that block does without relying # too heavily on the internals of `Mail` in our tests. class StubMail def defaults(&block) instance_eval(&block) end end should "raise an error if given strings as keys" do assert_raises ArgumentError do MailFetcherConfig.new("user_name" => "[email protected]") end end should "configure email settings when activated" do mail = StubMail.new mail.expects(:retriever_method).with(:imap, user_name: "[email protected]") MailFetcherConfig.new({user_name: "[email protected]"}).configure(mail) end should "configure the Mail module if not given an explicit argument" do Mail.expects(:defaults).once MailFetcherConfig.new({user_name: "[email protected]"}).configure end should "not configure email settings if given an empty hash" do mail = StubMail.new mail.expects(:defaults).never MailFetcherConfig.new({}).configure(mail) end end
telekomatrix/publisher
test/unit/mail_fetcher_config_test.rb
Ruby
mit
1,173
[ 30522, 5478, 1005, 3231, 1035, 2393, 2121, 1005, 5478, 1005, 5653, 1035, 18584, 2121, 1035, 9530, 8873, 2290, 1005, 2465, 5653, 7959, 10649, 2121, 8663, 8873, 13512, 4355, 1026, 3161, 6342, 9397, 11589, 1024, 1024, 3231, 18382, 1001, 2138, 1996, 1036, 12398, 2015, 1036, 4118, 2006, 1036, 5653, 1036, 4455, 1036, 6013, 1035, 9345, 2140, 1036, 2007, 1037, 3796, 1010, 1001, 2057, 2342, 2000, 2031, 1037, 24646, 2497, 2465, 2000, 3231, 2054, 2008, 3796, 2515, 2302, 18345, 1001, 2205, 4600, 2006, 1996, 4722, 2015, 1997, 1036, 5653, 1036, 1999, 2256, 5852, 1012, 2465, 24646, 25526, 12502, 13366, 12398, 2015, 1006, 1004, 3796, 1007, 6013, 1035, 9345, 2140, 1006, 1004, 3796, 1007, 2203, 2203, 2323, 1000, 5333, 2019, 7561, 2065, 2445, 7817, 2004, 6309, 1000, 2079, 20865, 1035, 13275, 6685, 2121, 29165, 2079, 5653, 7959, 10649, 2121, 8663, 8873, 2290, 1012, 2047, 1006, 1000, 5310, 1035, 2171, 1000, 1027, 1028, 1000, 3960, 1030, 2742, 1012, 4012, 1000, 1007, 2203, 2203, 2323, 1000, 9530, 8873, 27390, 2063, 10373, 10906, 2043, 8878, 1000, 2079, 5653, 1027, 24646, 25526, 12502, 1012, 2047, 5653, 1012, 24273, 1006, 1024, 12850, 2099, 1035, 4118, 1007, 1012, 2007, 1006, 1024, 10047, 9331, 1010, 5310, 1035, 2171, 1024, 1000, 3960, 1030, 2742, 1012, 4012, 1000, 1007, 5653, 7959, 10649, 2121, 8663, 8873, 2290, 1012, 2047, 1006, 1063, 5310, 1035, 2171, 1024, 1000, 3960, 1030, 2742, 1012, 4012, 1000, 1065, 1007, 1012, 9530, 8873, 27390, 2063, 1006, 5653, 1007, 2203, 2323, 1000, 9530, 8873, 27390, 2063, 1996, 5653, 11336, 2065, 2025, 2445, 2019, 13216, 6685, 1000, 2079, 5653, 1012, 24273, 1006, 1024, 12398, 2015, 1007, 1012, 2320, 5653, 7959, 10649, 2121, 8663, 8873, 2290, 1012, 2047, 1006, 1063, 5310, 1035, 2171, 1024, 1000, 3960, 1030, 2742, 1012, 4012, 1000, 1065, 1007, 1012, 9530, 8873, 27390, 2063, 2203, 2323, 1000, 2025, 9530, 8873, 27390, 2063, 10373, 10906, 2065, 2445, 2019, 4064, 23325, 1000, 2079, 5653, 1027, 24646, 25526, 12502, 1012, 2047, 5653, 1012, 24273, 1006, 1024, 12398, 2015, 1007, 1012, 2196, 5653, 7959, 10649, 2121, 8663, 8873, 2290, 1012, 2047, 1006, 1063, 1065, 1007, 1012, 9530, 8873, 27390, 2063, 1006, 5653, 1007, 2203, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Copyright (c) 2016,2017 The plumed team (see the PEOPLE file at the root of the distribution for a list of names) See http://www.plumed.org for more information. This file is part of plumed, version 2. plumed 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 3 of the License, or (at your option) any later version. plumed 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 plumed. If not, see <http://www.gnu.org/licenses/>. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ #include "DRMSD.h" #include "MetricRegister.h" namespace PLMD { class IntermolecularDRMSD : public DRMSD { private: unsigned nblocks; std::vector<unsigned> blocks; public: explicit IntermolecularDRMSD( const ReferenceConfigurationOptions& ro ); void read( const PDB& pdb ); void setup_targets(); }; PLUMED_REGISTER_METRIC(IntermolecularDRMSD,"INTER-DRMSD") IntermolecularDRMSD::IntermolecularDRMSD( const ReferenceConfigurationOptions& ro ): ReferenceConfiguration( ro ), DRMSD( ro ), nblocks(0) { } void IntermolecularDRMSD::read( const PDB& pdb ) { readAtomsFromPDB( pdb, true ); nblocks = pdb.getNumberOfAtomBlocks(); blocks.resize( nblocks+1 ); if( nblocks==1 ) error("Trying to compute intermolecular rmsd but found no TERs in input PDB"); blocks[0]=0; for(unsigned i=0; i<nblocks; ++i) blocks[i+1]=pdb.getAtomBlockEnds()[i]; readBounds(); setup_targets(); } void IntermolecularDRMSD::setup_targets() { plumed_massert( bounds_were_set, "I am missing a call to DRMSD::setBoundsOnDistances"); for(unsigned i=1; i<nblocks; ++i) { for(unsigned j=0; j<i; ++j) { for(unsigned iatom=blocks[i]; iatom<blocks[i+1]; ++iatom) { for(unsigned jatom=blocks[j]; jatom<blocks[j+1]; ++jatom) { double distance = delta( getReferencePosition(iatom), getReferencePosition(jatom) ).modulo(); if(distance < upper && distance > lower ) targets[std::make_pair(iatom,jatom)] = distance; } } } } } }
JFDama/plumed2
src/reference/IntermolecularDRMSD.cpp
C++
lgpl-3.0
2,489
[ 30522, 1013, 1008, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 9385, 1006, 1039, 1007, 2355, 1010, 2418, 1996, 26888, 2094, 2136, 1006, 2156, 1996, 2111, 5371, 2012, 1996, 7117, 1997, 1996, 4353, 2005, 1037, 2862, 1997, 3415, 1007, 2156, 8299, 1024, 1013, 1013, 7479, 1012, 26888, 2094, 1012, 8917, 2005, 2062, 2592, 1012, 2023, 5371, 2003, 2112, 1997, 26888, 2094, 1010, 2544, 1016, 1012, 26888, 2094, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 30524, 2270, 6105, 2005, 2062, 4751, 1012, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2247, 2007, 26888, 2094, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1008, 1013, 1001, 2421, 1000, 2852, 5244, 2094, 1012, 1044, 1000, 1001, 2421, 1000, 12046, 2890, 24063, 2121, 1012, 1044, 1000, 3415, 15327, 20228, 26876, 1063, 2465, 6970, 5302, 2571, 15431, 13626, 5244, 2094, 1024, 2270, 2852, 5244, 2094, 1063, 2797, 1024, 27121, 28013, 25384, 1025, 2358, 2094, 1024, 1024, 9207, 1026, 27121, 1028, 5991, 1025, 2270, 1024, 13216, 6970, 5302, 2571, 15431, 13626, 5244, 2094, 1006, 9530, 3367, 4431, 8663, 8873, 27390, 3370, 7361, 9285, 1004, 20996, 1007, 1025, 11675, 3191, 1006, 9530, 3367, 22851, 2497, 1004, 22851, 2497, 1007, 1025, 11675, 16437, 1035, 7889, 1006, 1007, 1025, 1065, 1025, 26888, 2094, 1035, 4236, 1035, 12046, 1006, 6970, 5302, 2571, 15431, 13626, 5244, 2094, 1010, 1000, 6970, 1011, 2852, 5244, 2094, 1000, 1007, 6970, 5302, 2571, 15431, 13626, 5244, 2094, 1024, 1024, 6970, 5302, 2571, 15431, 13626, 5244, 2094, 1006, 9530, 3367, 4431, 8663, 8873, 27390, 3370, 7361, 9285, 1004, 20996, 1007, 1024, 4431, 8663, 8873, 27390, 3370, 30523, 5724, 1007, 2151, 2101, 2544, 1012, 26888, 2094, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 8276, 2236, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5724, 1007, 2151, 2101, 2544, 1012, 26888, 2094, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 8276, 2236, 30526 ]
package gov.va.med.imaging.exchange.storage.cache.mock; import gov.va.med.GlobalArtifactIdentifier; import gov.va.med.PatientIdentifier; import gov.va.med.RoutingToken; import gov.va.med.imaging.GUID; import gov.va.med.imaging.ImageURN; import gov.va.med.imaging.StudyURN; import gov.va.med.imaging.exceptions.URNFormatException; import gov.va.med.imaging.exchange.business.Study; import gov.va.med.imaging.exchange.business.documents.Document; import gov.va.med.imaging.exchange.business.vistarad.ExamSite; import gov.va.med.imaging.exchange.business.vistarad.PatientEnterpriseExams; import gov.va.med.imaging.exchange.enums.ImageFormat; import gov.va.med.imaging.exchange.enums.ImageQuality; import gov.va.med.imaging.exchange.enums.ObjectOrigin; import gov.va.med.imaging.exchange.enums.StudyDeletedImageState; import gov.va.med.imaging.exchange.enums.StudyLoadLevel; import gov.va.med.imaging.exchange.storage.cache.ImmutableInstance; import gov.va.med.imaging.exchange.storage.cache.VASourcedCache; import gov.va.med.imaging.storage.cache.Cache; import gov.va.med.imaging.storage.cache.Instance; import gov.va.med.imaging.storage.cache.exceptions.CacheException; import gov.va.med.imaging.storage.cache.exceptions.InvalidGroupNameException; @SuppressWarnings({ "unused", "deprecation" }) public class MockVASourcedCache extends AbstractMockCacheDecorator implements VASourcedCache { @Override public ImmutableInstance createImage( GlobalArtifactIdentifier gaid, String quality, String mimeType) throws CacheException { if( MockCacheConfigurator.getCreateImageCacheException() != null) throw MockCacheConfigurator.getCreateImageCacheException(); Instance instance = new MockInstance(); ImmutableInstance immutableInstance = new ImmutableInstance(instance); return immutableInstance; } @Override public ImmutableInstance getImage( GlobalArtifactIdentifier gaid, String quality, String mimeType) throws CacheException { if( MockCacheConfigurator.getGetImageCacheException() != null) throw MockCacheConfigurator.getGetImageCacheException(); Instance instance = new MockInstance(); ImmutableInstance immutableInstance = new ImmutableInstance(instance); return immutableInstance; } @Override public void createPatientEnterpriseExams(PatientEnterpriseExams patientEnterpriseExams) throws CacheException { // TODO Auto-generated method stub } @Override public PatientEnterpriseExams getPatientEnterpriseExams(String patientIcn) throws CacheException { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see gov.va.med.imaging.exchange.storage.cache.VASourcedCache#createPatientPhotoId(java.lang.String, java.lang.String) */ @Override public ImmutableInstance createPatientPhotoId(String siteNumber, PatientIdentifier patientIdentifier) throws CacheException { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see gov.va.med.imaging.exchange.storage.cache.VASourcedCache#getPatientPhotoId(java.lang.String, java.lang.String) */ @Override public ImmutableInstance getPatientPhotoId(String siteNumber, PatientIdentifier patientIdentifier) throws CacheException { // TODO Auto-generated method stub return null; } @Override public void createExamSite(RoutingToken routingToken, String patientIcn, ExamSite examSite) throws CacheException { // TODO Auto-generated method stub } @Override public ExamSite getExamSite(RoutingToken routingToken, String patientIcn) throws CacheException { // TODO Auto-generated method stub return null; } @Override public ImmutableInstance getROIRelease(PatientIdentifier patientIdentifier, GUID guid) throws CacheException { // TODO Auto-generated method stub return null; } @Override public ImmutableInstance createROIRelease(PatientIdentifier patientIdentifier, GUID guid) throws CacheException { // TODO Auto-generated method stub return null; } @Override public ImmutableInstance getAnnotatedImage(GlobalArtifactIdentifier gaid, ImageQuality imageQuality, ImageFormat imageFormat) throws CacheException { // TODO Auto-generated method stub return null; } @Override public ImmutableInstance createAnnotatedImage( GlobalArtifactIdentifier gaid, ImageQuality imageQuality, ImageFormat imageFormat) throws CacheException { // TODO Auto-generated method stub return null; } @Override public Cache getWrappedCache() { // TODO Auto-generated method stub return null; } @Override public String getImageRegionName() { // TODO Auto-generated method stub return null; } @Override public String getMetadataRegionName() { // TODO Auto-generated method stub return null; } }
VHAINNOVATIONS/Telepathology
Source/Java/ImagingExchangeCache/main/src/java/gov/va/med/imaging/exchange/storage/cache/mock/MockVASourcedCache.java
Java
apache-2.0
4,754
[ 30522, 7427, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 5527, 1012, 17053, 1012, 12934, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 3795, 8445, 10128, 18908, 5178, 16778, 8873, 2121, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 5776, 5178, 16778, 8873, 2121, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 16972, 18715, 2368, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 26458, 2094, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3746, 14287, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 2817, 14287, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 11790, 1012, 24471, 2078, 14192, 3686, 2595, 24422, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 2449, 1012, 2817, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 2449, 1012, 5491, 1012, 6254, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 2449, 1012, 13005, 12173, 1012, 13869, 4221, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 2449, 1012, 13005, 12173, 1012, 5776, 29110, 18098, 5562, 10288, 13596, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 4372, 18163, 1012, 3746, 14192, 4017, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 4372, 18163, 1012, 3746, 26426, 3012, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 4372, 18163, 1012, 4874, 10050, 11528, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 4372, 18163, 1012, 2817, 9247, 12870, 22172, 13923, 12259, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 4372, 18163, 1012, 2817, 11066, 20414, 2884, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 5527, 1012, 17053, 1012, 10047, 28120, 3085, 7076, 26897, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 3863, 1012, 5527, 1012, 17053, 1012, 12436, 6499, 3126, 11788, 3540, 5403, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 5527, 1012, 17053, 1012, 17053, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 5527, 1012, 17053, 1012, 6013, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 5527, 1012, 17053, 1012, 11790, 1012, 17053, 10288, 24422, 1025, 12324, 18079, 1012, 12436, 1012, 19960, 1012, 12126, 1012, 5527, 1012, 17053, 1012, 11790, 1012, 19528, 17058, 18442, 10288, 24422, 1025, 1030, 16081, 9028, 5582, 2015, 1006, 1063, 1000, 15171, 1000, 1010, 1000, 2139, 28139, 10719, 1000, 1065, 1007, 2270, 2465, 12934, 12044, 8162, 11788, 3540, 5403, 8908, 10061, 5302, 3600, 3540, 7690, 8586, 30524, 6499, 3126, 11788, 3540, 5403, 1063, 1030, 2058, 15637, 2270, 10047, 28120, 3085, 7076, 26897, 3443, 9581, 3351, 1006, 3795, 8445, 10128, 18908, 5178, 16778, 8873, 2121, 11721, 3593, 1010, 5164, 3737, 1010, 5164, 2771, 11368, 18863, 1007, 11618, 17053, 10288, 24422, 1063, 2065, 1006, 12934, 3540, 5403, 8663, 8873, 27390, 8844, 1012, 2131, 16748, 3686, 9581, 3351, 3540, 25923, 2595, 24422, 1006, 1007, 999, 1027, 19701, 1007, 5466, 30523, 6525, 4263, 22164, 12436, 30526 ]
[ 0, 0, 0, 0, 0, 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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 6525, 4263, 22164, 12436, 30526 ]
# # Cookbook Name:: pacman # Resource:: group # # Copyright:: 2010, Opscode, Inc <[email protected]> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # actions :install, :remove default_action :install attribute :package_name, :name_attribute => true attribute :options, :kind_of => String attribute :exists, :default => false
3ofcoins/idk-repo
vendor/cookbooks/pacman/resources/group.rb
Ruby
apache-2.0
827
[ 30522, 1001, 1001, 5660, 8654, 2171, 1024, 1024, 14397, 2386, 1001, 7692, 1024, 1024, 2177, 1001, 1001, 9385, 1024, 1024, 2230, 1010, 23092, 16044, 1010, 4297, 1026, 3423, 1030, 23092, 16044, 1012, 4012, 1028, 1001, 1001, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1001, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1001, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1001, 1001, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1001, 30524, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1001, 12546, 2104, 1996, 6105, 1012, 1001, 4506, 1024, 16500, 1010, 1024, 6366, 12398, 1035, 2895, 1024, 16500, 17961, 1024, 7427, 1035, 2171, 1010, 1024, 2171, 1035, 17961, 1027, 1028, 2995, 17961, 1024, 7047, 1010, 1024, 2785, 1035, 1997, 1027, 1028, 5164, 17961, 1024, 6526, 1010, 1024, 12398, 1027, 1028, 6270, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1001, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1001, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1001, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1001, 2156, 1996, 30526 ]
/* * linux/lib/vsprintf.c * * Copyright (C) 1991, 1992 Linus Torvalds * (C) Copyright 2000-2009 * Wolfgang Denk, DENX Software Engineering, [email protected]. */ /* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */ /* * Wirzenius wrote this portably, Torvalds fucked it up :-) * * from hush: simple_itoa() was lifted from boa-0.93.15 */ #include <common.h> #include <charset.h> #include <efi_loader.h> #include <div64.h> #include <hexdump.h> #include <stdarg.h> #include <uuid.h> #include <vsprintf.h> #include <linux/ctype.h> #include <linux/err.h> #include <linux/types.h> #include <linux/string.h> /* we use this so that we can do without the ctype library */ #define is_digit(c) ((c) >= '0' && (c) <= '9') static int skip_atoi(const char **s) { int i = 0; while (is_digit(**s)) i = i * 10 + *((*s)++) - '0'; return i; } /* Decimal conversion is by far the most typical, and is used * for /proc and /sys data. This directly impacts e.g. top performance * with many processes running. We optimize it for speed * using code from * http://www.cs.uiowa.edu/~jones/bcd/decimal.html * (with permission from the author, Douglas W. Jones). */ /* Formats correctly any integer in [0,99999]. * Outputs from one to five digits depending on input. * On i386 gcc 4.1.2 -O2: ~250 bytes of code. */ static char *put_dec_trunc(char *buf, unsigned q) { unsigned d3, d2, d1, d0; d1 = (q>>4) & 0xf; d2 = (q>>8) & 0xf; d3 = (q>>12); d0 = 6*(d3 + d2 + d1) + (q & 0xf); q = (d0 * 0xcd) >> 11; d0 = d0 - 10*q; *buf++ = d0 + '0'; /* least significant digit */ d1 = q + 9*d3 + 5*d2 + d1; if (d1 != 0) { q = (d1 * 0xcd) >> 11; d1 = d1 - 10*q; *buf++ = d1 + '0'; /* next digit */ d2 = q + 2*d2; if ((d2 != 0) || (d3 != 0)) { q = (d2 * 0xd) >> 7; d2 = d2 - 10*q; *buf++ = d2 + '0'; /* next digit */ d3 = q + 4*d3; if (d3 != 0) { q = (d3 * 0xcd) >> 11; d3 = d3 - 10*q; *buf++ = d3 + '0'; /* next digit */ if (q != 0) *buf++ = q + '0'; /* most sign. digit */ } } } return buf; } /* Same with if's removed. Always emits five digits */ static char *put_dec_full(char *buf, unsigned q) { /* BTW, if q is in [0,9999], 8-bit ints will be enough, */ /* but anyway, gcc produces better code with full-sized ints */ unsigned d3, d2, d1, d0; d1 = (q>>4) & 0xf; d2 = (q>>8) & 0xf; d3 = (q>>12); /* * Possible ways to approx. divide by 10 * gcc -O2 replaces multiply with shifts and adds * (x * 0xcd) >> 11: 11001101 - shorter code than * 0x67 (on i386) * (x * 0x67) >> 10: 1100111 * (x * 0x34) >> 9: 110100 - same * (x * 0x1a) >> 8: 11010 - same * (x * 0x0d) >> 7: 1101 - same, shortest code (on i386) */ d0 = 6*(d3 + d2 + d1) + (q & 0xf); q = (d0 * 0xcd) >> 11; d0 = d0 - 10*q; *buf++ = d0 + '0'; d1 = q + 9*d3 + 5*d2 + d1; q = (d1 * 0xcd) >> 11; d1 = d1 - 10*q; *buf++ = d1 + '0'; d2 = q + 2*d2; q = (d2 * 0xd) >> 7; d2 = d2 - 10*q; *buf++ = d2 + '0'; d3 = q + 4*d3; q = (d3 * 0xcd) >> 11; /* - shorter code */ /* q = (d3 * 0x67) >> 10; - would also work */ d3 = d3 - 10*q; *buf++ = d3 + '0'; *buf++ = q + '0'; return buf; } /* No inlining helps gcc to use registers better */ static noinline char *put_dec(char *buf, uint64_t num) { while (1) { unsigned rem; if (num < 100000) return put_dec_trunc(buf, num); rem = do_div(num, 100000); buf = put_dec_full(buf, rem); } } #define ZEROPAD 1 /* pad with zero */ #define SIGN 2 /* unsigned/signed long */ #define PLUS 4 /* show plus */ #define SPACE 8 /* space if plus */ #define LEFT 16 /* left justified */ #define SMALL 32 /* Must be 32 == 0x20 */ #define SPECIAL 64 /* 0x */ /* * Macro to add a new character to our output string, but only if it will * fit. The macro moves to the next character position in the output string. */ #define ADDCH(str, ch) do { \ if ((str) < end) \ *(str) = (ch); \ ++str; \ } while (0) static char *number(char *buf, char *end, u64 num, int base, int size, int precision, int type) { /* we are called with base 8, 10 or 16, only, thus don't need "G..." */ static const char digits[16] = "0123456789ABCDEF"; char tmp[66]; char sign; char locase; int need_pfx = ((type & SPECIAL) && base != 10); int i; /* locase = 0 or 0x20. ORing digits or letters with 'locase' * produces same digits or (maybe lowercased) letters */ locase = (type & SMALL); if (type & LEFT) type &= ~ZEROPAD; sign = 0; if (type & SIGN) { if ((s64) num < 0) { sign = '-'; num = -(s64) num; size--; } else if (type & PLUS) { sign = '+'; size--; } else if (type & SPACE) { sign = ' '; size--; } } if (need_pfx) { size--; if (base == 16) size--; } /* generate full string in tmp[], in reverse order */ i = 0; if (num == 0) tmp[i++] = '0'; /* Generic code, for any base: else do { tmp[i++] = (digits[do_div(num,base)] | locase); } while (num != 0); */ else if (base != 10) { /* 8 or 16 */ int mask = base - 1; int shift = 3; if (base == 16) shift = 4; do { tmp[i++] = (digits[((unsigned char)num) & mask] | locase); num >>= shift; } while (num); } else { /* base 10 */ i = put_dec(tmp, num) - tmp; } /* printing 100 using %2d gives "100", not "00" */ if (i > precision) precision = i; /* leading space padding */ size -= precision; if (!(type & (ZEROPAD + LEFT))) { while (--size >= 0) ADDCH(buf, ' '); } /* sign */ if (sign) ADDCH(buf, sign); /* "0x" / "0" prefix */ if (need_pfx) { ADDCH(buf, '0'); if (base == 16) ADDCH(buf, 'X' | locase); } /* zero or space padding */ if (!(type & LEFT)) { char c = (type & ZEROPAD) ? '0' : ' '; while (--size >= 0) ADDCH(buf, c); } /* hmm even more zero padding? */ while (i <= --precision) ADDCH(buf, '0'); /* actual digits of result */ while (--i >= 0) ADDCH(buf, tmp[i]); /* trailing space padding */ while (--size >= 0) ADDCH(buf, ' '); return buf; } static char *string(char *buf, char *end, char *s, int field_width, int precision, int flags) { int len, i; if (s == NULL) s = "<NULL>"; len = strnlen(s, precision); if (!(flags & LEFT)) while (len < field_width--) ADDCH(buf, ' '); for (i = 0; i < len; ++i) ADDCH(buf, *s++); while (len < field_width--) ADDCH(buf, ' '); return buf; } /* U-Boot uses UTF-16 strings in the EFI context only. */ #if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD) static char *string16(char *buf, char *end, u16 *s, int field_width, int precision, int flags) { const u16 *str = s ? s : L"<NULL>"; ssize_t i, len = utf16_strnlen(str, precision); if (!(flags & LEFT)) for (; len < field_width; --field_width) ADDCH(buf, ' '); for (i = 0; i < len && buf + utf16_utf8_strnlen(str, 1) <= end; ++i) { s32 s = utf16_get(&str); if (s < 0) s = '?'; utf8_put(s, &buf); } for (; len < field_width; --field_width) ADDCH(buf, ' '); return buf; } #if CONFIG_IS_ENABLED(EFI_DEVICE_PATH_TO_TEXT) static char *device_path_string(char *buf, char *end, void *dp, int field_width, int precision, int flags) { u16 *str; /* If dp == NULL output the string '<NULL>' */ if (!dp) return string16(buf, end, dp, field_width, precision, flags); str = efi_dp_str((struct efi_device_path *)dp); if (!str) return ERR_PTR(-ENOMEM); buf = string16(buf, end, str, field_width, precision, flags); efi_free_pool(str); return buf; } #endif #endif static char *mac_address_string(char *buf, char *end, u8 *addr, int field_width, int precision, int flags) { /* (6 * 2 hex digits), 5 colons and trailing zero */ char mac_addr[6 * 3]; char *p = mac_addr; int i; for (i = 0; i < 6; i++) { p = hex_byte_pack(p, addr[i]); if (!(flags & SPECIAL) && i != 5) *p++ = ':'; } *p = '\0'; return string(buf, end, mac_addr, field_width, precision, flags & ~SPECIAL); } static char *ip6_addr_string(char *buf, char *end, u8 *addr, int field_width, int precision, int flags) { /* (8 * 4 hex digits), 7 colons and trailing zero */ char ip6_addr[8 * 5]; char *p = ip6_addr; int i; for (i = 0; i < 8; i++) { p = hex_byte_pack(p, addr[2 * i]); p = hex_byte_pack(p, addr[2 * i + 1]); if (!(flags & SPECIAL) && i != 7) *p++ = ':'; } *p = '\0'; return string(buf, end, ip6_addr, field_width, precision, flags & ~SPECIAL); } static char *ip4_addr_string(char *buf, char *end, u8 *addr, int field_width, int precision, int flags) { /* (4 * 3 decimal digits), 3 dots and trailing zero */ char ip4_addr[4 * 4]; char temp[3]; /* hold each IP quad in reverse order */ char *p = ip4_addr; int i, digits; for (i = 0; i < 4; i++) { digits = put_dec_trunc(temp, addr[i]) - temp; /* reverse the digits in the quad */ while (digits--) *p++ = temp[digits]; if (i != 3) *p++ = '.'; } *p = '\0'; return string(buf, end, ip4_addr, field_width, precision, flags & ~SPECIAL); } #ifdef CONFIG_LIB_UUID /* * This works (roughly) the same way as Linux's. * * %pUb: 01020304-0506-0708-090a-0b0c0d0e0f10 * %pUB: 01020304-0506-0708-090A-0B0C0D0E0F10 * %pUl: 04030201-0605-0807-090a-0b0c0d0e0f10 * %pUL: 04030201-0605-0807-090A-0B0C0D0E0F10 */ static char *uuid_string(char *buf, char *end, u8 *addr, int field_width, int precision, int flags, const char *fmt) { char uuid[UUID_STR_LEN + 1]; int str_format; switch (*(++fmt)) { case 'L': str_format = UUID_STR_FORMAT_GUID | UUID_STR_UPPER_CASE; break; case 'l': str_format = UUID_STR_FORMAT_GUID; break; case 'B': str_format = UUID_STR_FORMAT_STD | UUID_STR_UPPER_CASE; break; default: str_format = UUID_STR_FORMAT_STD; break; } if (addr) uuid_bin_to_str(addr, uuid, str_format); else strcpy(uuid, "<NULL>"); return string(buf, end, uuid, field_width, precision, flags); } #endif /* * Show a '%p' thing. A kernel extension is that the '%p' is followed * by an extra set of alphanumeric characters that are extended format * specifiers. * * Right now we handle: * * - 'M' For a 6-byte MAC address, it prints the address in the * usual colon-separated hex notation * - 'I' [46] for IPv4/IPv6 addresses printed in the usual way (dot-separated * decimal for v4 and colon separated network-order 16 bit hex for v6) * - 'i' [46] for 'raw' IPv4/IPv6 addresses, IPv6 omits the colons, IPv4 is * currently the same * * Note: The difference between 'S' and 'F' is that on ia64 and ppc64 * function pointers are really function descriptors, which contain a * pointer to the real address. */ static char *pointer(const char *fmt, char *buf, char *end, void *ptr, int field_width, int precision, int flags) { u64 num = (uintptr_t)ptr; /* * Being a boot loader, we explicitly allow pointers to * (physical) address null. */ #if 0 if (!ptr) return string(buf, end, "(null)", field_width, precision, flags); #endif switch (*fmt) { /* Device paths only exist in the EFI context. */ #if CONFIG_IS_ENABLED(EFI_DEVICE_PATH_TO_TEXT) && !defined(API_BUILD) case 'D': return device_path_string(buf, end, ptr, field_width, precision, flags); #endif case 'a': flags |= SPECIAL | ZEROPAD; switch (fmt[1]) { case 'p': default: field_width = sizeof(phys_addr_t) * 2 + 2; num = *(phys_addr_t *)ptr; break; } break; case 'm': flags |= SPECIAL; /* Fallthrough */ case 'M': return mac_address_string(buf, end, ptr, field_width, precision, flags); case 'i': flags |= SPECIAL; /* Fallthrough */ case 'I': if (fmt[1] == '6') return ip6_addr_string(buf, end, ptr, field_width, precision, flags); if (fmt[1] == '4') return ip4_addr_string(buf, end, ptr, field_width, precision, flags); flags &= ~SPECIAL; break; #ifdef CONFIG_LIB_UUID case 'U': return uuid_string(buf, end, ptr, field_width, precision, flags, fmt); #endif default: break; } flags |= SMALL; if (field_width == -1) { field_width = 2*sizeof(void *); flags |= ZEROPAD; } return number(buf, end, num, 16, field_width, precision, flags); } static int vsnprintf_internal(char *buf, size_t size, const char *fmt, va_list args) { u64 num; int base; char *str; int flags; /* flags to number() */ int field_width; /* width of output field */ int precision; /* min. # of digits for integers; max number of chars for from string */ int qualifier; /* 'h', 'l', or 'L' for integer fields */ /* 'z' support added 23/7/1999 S.H. */ /* 'z' changed to 'Z' --davidm 1/25/99 */ /* 't' added for ptrdiff_t */ char *end = buf + size; /* Make sure end is always >= buf - do we want this in U-Boot? */ if (end < buf) { end = ((void *)-1); size = end - buf; } str = buf; for (; *fmt ; ++fmt) { if (*fmt != '%') { ADDCH(str, *fmt); continue; } /* process flags */ flags = 0; repeat: ++fmt; /* this also skips first '%' */ switch (*fmt) { case '-': flags |= LEFT; goto repeat; case '+': flags |= PLUS; goto repeat; case ' ': flags |= SPACE; goto repeat; case '#': flags |= SPECIAL; goto repeat; case '0': flags |= ZEROPAD; goto repeat; } /* get field width */ field_width = -1; if (is_digit(*fmt)) field_width = skip_atoi(&fmt); else if (*fmt == '*') { ++fmt; /* it's the next argument */ field_width = va_arg(args, int); if (field_width < 0) { field_width = -field_width; flags |= LEFT; } } /* get the precision */ precision = -1; if (*fmt == '.') { ++fmt; if (is_digit(*fmt)) precision = skip_atoi(&fmt); else if (*fmt == '*') { ++fmt; /* it's the next argument */ precision = va_arg(args, int); } if (precision < 0) precision = 0; } /* get the conversion qualifier */ qualifier = -1; if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' || *fmt == 'Z' || *fmt == 'z' || *fmt == 't') { qualifier = *fmt; ++fmt; if (qualifier == 'l' && *fmt == 'l') { qualifier = 'L'; ++fmt; } } /* default base */ base = 10; switch (*fmt) { case 'c': if (!(flags & LEFT)) { while (--field_width > 0) ADDCH(str, ' '); } ADDCH(str, (unsigned char) va_arg(args, int)); while (--field_width > 0) ADDCH(str, ' '); continue; case 's': /* U-Boot uses UTF-16 strings in the EFI context only. */ #if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD) if (qualifier == 'l') { str = string16(str, end, va_arg(args, u16 *), field_width, precision, flags); } else #endif { str = string(str, end, va_arg(args, char *), field_width, precision, flags); } continue; case 'p': str = pointer(fmt + 1, str, end, va_arg(args, void *), field_width, precision, flags); if (IS_ERR(str)) return PTR_ERR(str); /* Skip all alphanumeric pointer suffixes */ while (isalnum(fmt[1])) fmt++; continue; case 'n': if (qualifier == 'l') { long *ip = va_arg(args, long *); *ip = (str - buf); } else { int *ip = va_arg(args, int *); *ip = (str - buf); } continue; case '%': ADDCH(str, '%'); continue; /* integer number formats - set up the flags and "break" */ case 'o': base = 8; break; case 'x': flags |= SMALL; case 'X': base = 16; break; case 'd': case 'i': flags |= SIGN; case 'u': break; default: ADDCH(str, '%'); if (*fmt) ADDCH(str, *fmt); else --fmt; continue; } if (qualifier == 'L') /* "quad" for 64 bit variables */ num = va_arg(args, unsigned long long); else if (qualifier == 'l') { num = va_arg(args, unsigned long); if (flags & SIGN) num = (signed long) num; } else if (qualifier == 'Z' || qualifier == 'z') { num = va_arg(args, size_t); } else if (qualifier == 't') { num = va_arg(args, ptrdiff_t); } else if (qualifier == 'h') { num = (unsigned short) va_arg(args, int); if (flags & SIGN) num = (signed short) num; } else { num = va_arg(args, unsigned int); if (flags & SIGN) num = (signed int) num; } str = number(str, end, num, base, field_width, precision, flags); } if (size > 0) { ADDCH(str, '\0'); if (str > end) end[-1] = '\0'; --str; } /* the trailing null byte doesn't count towards the total */ return str - buf; } int vsnprintf(char *buf, size_t size, const char *fmt, va_list args) { return vsnprintf_internal(buf, size, fmt, args); } int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) { int i; i = vsnprintf(buf, size, fmt, args); if (likely(i < size)) return i; if (size != 0) return size - 1; return 0; } int snprintf(char *buf, size_t size, const char *fmt, ...) { va_list args; int i; va_start(args, fmt); i = vsnprintf(buf, size, fmt, args); va_end(args); return i; } int scnprintf(char *buf, size_t size, const char *fmt, ...) { va_list args; int i; va_start(args, fmt); i = vscnprintf(buf, size, fmt, args); va_end(args); return i; } /** * Format a string and place it in a buffer (va_list version) * * @param buf The buffer to place the result into * @param fmt The format string to use * @param args Arguments for the format string * * The function returns the number of characters written * into @buf. Use vsnprintf() or vscnprintf() in order to avoid * buffer overflows. * * If you're not already dealing with a va_list consider using sprintf(). */ int vsprintf(char *buf, const char *fmt, va_list args) { return vsnprintf_internal(buf, INT_MAX, fmt, args); } int sprintf(char *buf, const char *fmt, ...) { va_list args; int i; va_start(args, fmt); i = vsprintf(buf, fmt, args); va_end(args); return i; } #if CONFIG_IS_ENABLED(PRINTF) int printf(const char *fmt, ...) { va_list args; uint i; char printbuffer[CONFIG_SYS_PBSIZE]; va_start(args, fmt); /* * For this to work, printbuffer must be larger than * anything we ever want to print. */ i = vscnprintf(printbuffer, sizeof(printbuffer), fmt, args); va_end(args); /* Handle error */ if (i <= 0) return i; /* Print the string */ puts(printbuffer); return i; } int vprintf(const char *fmt, va_list args) { uint i; char printbuffer[CONFIG_SYS_PBSIZE]; /* * For this to work, printbuffer must be larger than * anything we ever want to print. */ i = vscnprintf(printbuffer, sizeof(printbuffer), fmt, args); /* Handle error */ if (i <= 0) return i; /* Print the string */ puts(printbuffer); return i; } #endif char *simple_itoa(ulong i) { /* 21 digits plus null terminator, good for 64-bit or smaller ints */ static char local[22]; char *p = &local[21]; *p-- = '\0'; do { *p-- = '0' + i % 10; i /= 10; } while (i > 0); return p + 1; } /* We don't seem to have %'d in U-Boot */ void print_grouped_ull(unsigned long long int_val, int digits) { char str[21], *s; int grab = 3; digits = (digits + 2) / 3; sprintf(str, "%*llu", digits * 3, int_val); for (s = str; *s; s += grab) { if (s != str) putc(s[-1] != ' ' ? ',' : ' '); printf("%.*s", grab, s); grab = 3; } } bool str2off(const char *p, loff_t *num) { char *endptr; *num = simple_strtoull(p, &endptr, 16); return *p != '\0' && *endptr == '\0'; } bool str2long(const char *p, ulong *num) { char *endptr; *num = simple_strtoul(p, &endptr, 16); return *p != '\0' && *endptr == '\0'; } char *strmhz(char *buf, unsigned long hz) { long l, n; long m; n = DIV_ROUND_CLOSEST(hz, 1000) / 1000L; l = sprintf(buf, "%ld", n); hz -= n * 1000000L; m = DIV_ROUND_CLOSEST(hz, 1000L); if (m != 0) sprintf(buf + l, ".%03ld", m); return buf; }
Digilent/u-boot-digilent
lib/vsprintf.c
C
gpl-2.0
19,676
[ 30522, 1013, 1008, 1008, 11603, 1013, 5622, 2497, 1013, 5443, 16550, 2546, 1012, 1039, 1008, 1008, 9385, 1006, 1039, 1007, 2889, 1010, 2826, 11409, 2271, 17153, 10175, 5104, 1008, 1006, 1039, 1007, 9385, 2456, 1011, 2268, 1008, 13865, 7939, 2243, 1010, 7939, 2595, 4007, 3330, 1010, 1059, 2094, 1030, 7939, 30524, 1008, 15536, 15378, 18595, 2271, 2626, 2023, 3417, 8231, 1010, 17153, 10175, 5104, 21746, 2009, 2039, 1024, 1011, 1007, 1008, 1008, 2013, 20261, 1024, 3722, 1035, 23333, 2050, 1006, 1007, 2001, 4196, 2013, 8945, 2050, 1011, 1014, 1012, 6109, 1012, 2321, 1008, 1013, 1001, 2421, 1026, 2691, 1012, 1044, 1028, 1001, 2421, 1026, 25869, 13462, 1012, 1044, 1028, 1001, 2421, 1026, 1041, 8873, 1035, 7170, 2121, 1012, 1044, 1028, 1001, 2421, 1026, 4487, 2615, 21084, 1012, 1044, 1028, 1001, 2421, 1026, 2002, 2595, 8566, 8737, 1012, 1044, 1028, 1001, 2421, 1026, 2358, 7662, 2290, 1012, 1044, 1028, 1001, 2421, 1026, 1057, 21272, 1012, 1044, 1028, 1001, 2421, 1026, 5443, 16550, 2546, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 14931, 18863, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 9413, 2099, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 4127, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 5164, 1012, 1044, 1028, 1013, 1008, 2057, 2224, 2023, 2061, 2008, 2057, 2064, 2079, 2302, 1996, 14931, 18863, 3075, 1008, 1013, 1001, 9375, 2003, 1035, 15340, 1006, 1039, 1007, 1006, 1006, 1039, 1007, 1028, 1027, 1005, 1014, 1005, 1004, 1004, 1006, 1039, 1007, 1026, 1027, 1005, 1023, 1005, 1007, 10763, 20014, 13558, 1035, 2012, 10448, 1006, 9530, 3367, 25869, 1008, 1008, 1055, 1007, 1063, 20014, 1045, 1027, 1014, 1025, 2096, 1006, 2003, 1035, 15340, 1006, 1008, 1008, 1055, 1007, 1007, 1045, 1027, 1045, 1008, 2184, 1009, 1008, 1006, 1006, 1008, 1055, 1007, 1009, 1009, 1007, 1011, 1005, 1014, 1005, 1025, 2709, 1045, 1025, 1065, 1013, 1008, 26066, 7584, 2003, 2011, 2521, 1996, 2087, 5171, 1010, 1998, 2003, 2109, 1008, 2005, 1013, 4013, 2278, 1998, 1013, 25353, 2015, 2951, 1012, 2023, 3495, 14670, 1041, 1012, 1043, 1012, 2327, 2836, 1008, 2007, 2116, 6194, 2770, 1012, 2057, 23569, 27605, 4371, 2009, 2005, 3177, 1008, 2478, 3642, 2013, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 20116, 1012, 21318, 21293, 1012, 3968, 2226, 1013, 1066, 3557, 1013, 4647, 2094, 1013, 26066, 1012, 16129, 1008, 1006, 2007, 6656, 2013, 1996, 3166, 1010, 5203, 1059, 1012, 3557, 1007, 1012, 1008, 1013, 1013, 1008, 11630, 11178, 2151, 16109, 1999, 1031, 1014, 1010, 25897, 2683, 2683, 1033, 1012, 1008, 27852, 2013, 2028, 2000, 2274, 16648, 5834, 2006, 7953, 1012, 1008, 2006, 1045, 22025, 2575, 1043, 9468, 1018, 1012, 1015, 1012, 1016, 1011, 1051, 2475, 1024, 1066, 5539, 27507, 1997, 3642, 1012, 1008, 1013, 10763, 25869, 1008, 2404, 1035, 11703, 1035, 19817, 4609, 2278, 1006, 25869, 1008, 20934, 2546, 1010, 27121, 1053, 1007, 1063, 27121, 1040, 2509, 1010, 1040, 30523, 2595, 1012, 2139, 1012, 1008, 1013, 1013, 1008, 5443, 16550, 2546, 1012, 1039, 1011, 1011, 16357, 15536, 15378, 18595, 2271, 1004, 11409, 2271, 17153, 10175, 5104, 1012, 1008, 1013, 1013, 1008, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2595, 1012, 2139, 1012, 1008, 1013, 1013, 1008, 5443, 16550, 2546, 1012, 1039, 1011, 1011, 16357, 15536, 15378, 18595, 2271, 1004, 11409, 2271, 17153, 10175, 5104, 1012, 1008, 1013, 1013, 1008, 30526 ]
#!/bin/sh curl -X GET http://localhost:8080/v3/facts --data-urlencode 'query=["=", "certname", "puppetmaster.example.com"]'
clarenceb/puppetdb_spike
queries/FACTS_all_facts_for_node.sh
Shell
mit
125
[ 30522, 1001, 999, 1013, 8026, 1013, 14021, 15390, 1011, 1060, 2131, 8299, 1024, 1013, 1013, 2334, 15006, 2102, 1024, 3770, 17914, 1013, 1058, 2509, 1013, 8866, 1011, 1011, 2951, 1011, 24471, 7770, 16044, 1005, 23032, 1027, 1031, 1000, 1027, 1000, 1010, 1000, 8292, 5339, 18442, 1000, 1010, 1000, 13997, 8706, 1012, 2742, 1012, 4012, 1000, 1033, 1005, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="de"> <head> <!-- Generated by javadoc (version 1.7.0_11) on Mon Apr 07 19:10:16 CEST 2014 --> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>Uses of Class at.irian.ankor.serialization.json.common.ChangeDeserializer (Ankor - Project 0.2-SNAPSHOT API)</title> <meta name="date" content="2014-04-07"> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class at.irian.ankor.serialization.json.common.ChangeDeserializer (Ankor - Project 0.2-SNAPSHOT API)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../at/irian/ankor/serialization/json/common/ChangeDeserializer.html" title="class in at.irian.ankor.serialization.json.common">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../index.html?at/irian/ankor/serialization/json/common/class-use/ChangeDeserializer.html" target="_top">Frames</a></li> <li><a href="ChangeDeserializer.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class at.irian.ankor.serialization.json.common.ChangeDeserializer" class="title">Uses of Class<br>at.irian.ankor.serialization.json.common.ChangeDeserializer</h2> </div> <div class="classUseContainer">No usage of at.irian.ankor.serialization.json.common.ChangeDeserializer</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../at/irian/ankor/serialization/json/common/ChangeDeserializer.html" title="class in at.irian.ankor.serialization.json.common">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../index.html?at/irian/ankor/serialization/json/common/class-use/ChangeDeserializer.html" target="_top">Frames</a></li> <li><a href="ChangeDeserializer.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2014. All rights reserved.</small></p> </body> </html>
ankor-io/ankor-framework
website/ankorsite/static/javadoc/apidocs-0.2/at/irian/ankor/serialization/json/common/class-use/ChangeDeserializer.html
HTML
apache-2.0
4,688
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 16129, 1018, 1012, 5890, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 19817, 1013, 16129, 2549, 1013, 6065, 1012, 26718, 2094, 1000, 1028, 1026, 999, 1011, 1011, 2047, 13704, 1011, 1011, 1028, 1026, 16129, 11374, 1027, 1000, 2139, 1000, 1028, 1026, 2132, 1028, 1026, 999, 1011, 1011, 7013, 2011, 9262, 3527, 2278, 1006, 2544, 1015, 1012, 1021, 1012, 1014, 1035, 2340, 1007, 2006, 12256, 19804, 5718, 2539, 1024, 2184, 1024, 2385, 8292, 3367, 2297, 1011, 1011, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1000, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 2516, 1028, 3594, 1997, 2465, 2012, 1012, 20868, 2937, 1012, 2019, 21815, 1012, 7642, 3989, 1012, 1046, 3385, 1012, 2691, 1012, 2904, 6810, 14482, 17629, 1006, 2019, 21815, 1011, 2622, 1014, 1012, 1016, 1011, 20057, 12326, 17928, 1007, 1026, 1013, 2516, 1028, 1026, 18804, 2171, 1027, 1000, 3058, 1000, 4180, 1027, 1000, 2297, 1011, 5840, 1011, 5718, 1000, 30524, 1012, 1013, 1012, 1012, 1013, 6782, 21030, 2102, 1012, 20116, 2015, 1000, 2516, 1027, 1000, 2806, 1000, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 1028, 1026, 999, 1011, 1011, 2065, 1006, 3295, 1012, 17850, 12879, 1012, 5950, 11253, 1006, 1005, 2003, 1011, 6327, 1027, 2995, 1005, 1007, 1027, 1027, 1011, 1015, 1007, 1063, 6687, 1012, 6254, 1012, 2516, 1027, 1000, 3594, 1997, 2465, 2012, 1012, 20868, 2937, 1012, 2019, 21815, 1012, 7642, 3989, 1012, 1046, 3385, 1012, 2691, 1012, 2904, 6810, 14482, 17629, 1006, 2019, 21815, 1011, 2622, 1014, 1012, 1016, 1011, 20057, 12326, 17928, 1007, 1000, 1025, 1065, 1013, 1013, 1011, 1011, 1028, 1026, 1013, 5896, 1028, 1026, 16839, 23235, 1028, 1026, 4487, 2615, 1028, 9262, 22483, 2003, 9776, 2006, 2115, 16602, 1012, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 16839, 23235, 1028, 1026, 999, 1011, 1011, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 2707, 1997, 2327, 6583, 26493, 2906, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1011, 1011, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2327, 2532, 2615, 1000, 1028, 1026, 1037, 2171, 1027, 1000, 6583, 26493, 2906, 1035, 2327, 1000, 1028, 1026, 999, 1011, 1011, 1011, 1011, 1028, 1026, 1013, 1037, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 1001, 13558, 1011, 6583, 26493, 2906, 1035, 2327, 1000, 2516, 1027, 1000, 13558, 9163, 6971, 1000, 1028, 1026, 1013, 1037, 1028, 1026, 1037, 2171, 1027, 1000, 6583, 26493, 2906, 1035, 2327, 1035, 2034, 10524, 1000, 1028, 1026, 999, 1011, 1011, 1011, 1011, 1028, 1026, 1013, 1037, 1028, 1026, 17359, 2465, 1027, 1000, 6583, 30523, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 17850, 12879,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1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 30526 ]
jsonp({"cep":"33860390","logradouro":"Rua Top\u00f3grafo Nei Pereira Souza","bairro":"Santa Martinha","cidade":"Ribeir\u00e3o das Neves","uf":"MG","estado":"Minas Gerais"});
lfreneda/cepdb
api/v1/33860390.jsonp.js
JavaScript
cc0-1.0
174
[ 30522, 1046, 3385, 2361, 1006, 1063, 1000, 8292, 2361, 1000, 1024, 1000, 27908, 16086, 23499, 2692, 1000, 1010, 1000, 8833, 12173, 8162, 2080, 1000, 1024, 1000, 21766, 2050, 2327, 1032, 1057, 8889, 2546, 2509, 17643, 14876, 11265, 2072, 23857, 26598, 1000, 1010, 1000, 21790, 18933, 1000, 1024, 1000, 4203, 3235, 3270, 1000, 1010, 1000, 28744, 9648, 1000, 1024, 1000, 19395, 7416, 2099, 1032, 1057, 8889, 2063, 2509, 2080, 8695, 11265, 6961, 1000, 1010, 1000, 1057, 2546, 1000, 1024, 1000, 11460, 1000,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
// Copyright (C) 2003--2005 Carnegie Mellon University // Copyright (C) 2011--2014 Google Inc // // This file is part of Ymer. // // Ymer 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. // // Ymer 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 Ymer; if not, write to the Free Software Foundation, // Inc., #59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // Internal state of parser. #ifndef PARSER_STATE_H_ #define PARSER_STATE_H_ #include <optional> #include <string> #include <vector> #include "model.h" #include "strutil.h" class ParserState { public: ParserState(const std::optional<std::string>& filename, std::vector<std::string>* errors) : filename_(filename), errors_(errors), success_(true) {} Model* mutable_model() { if (!model_.has_value()) { model_ = Model(); } return &model_.value(); } void add_property(std::unique_ptr<const Expression>&& property) { properties_.push_back(std::move(property)); } void add_error(const std::string& error) { if (!filename_.has_value() || filename_.value() == "-") { errors_->push_back(error); } else { errors_->push_back(StrCat(filename_.value(), ":", error)); } success_ = false; } bool has_model() const { return model_.has_value(); } Model release_model() { return std::move(model_.value()); } UniquePtrVector<const Expression> release_properties() { return std::move(properties_); } bool success() const { return success_; } private: const std::optional<std::string> filename_; std::vector<std::string>* const errors_; std::optional<Model> model_; UniquePtrVector<const Expression> properties_; bool success_; }; #endif // PARSER_STATE_H_
hlsyounes/ymer
src/parser-state.h
C
gpl-2.0
2,182
[ 30522, 1013, 1013, 9385, 1006, 1039, 1007, 2494, 1011, 1011, 2384, 11298, 22181, 2118, 1013, 1013, 9385, 1006, 1039, 1007, 2249, 1011, 1011, 2297, 8224, 4297, 1013, 1013, 1013, 1013, 2023, 5371, 2003, 2112, 1997, 1061, 5017, 1012, 1013, 1013, 1013, 1013, 1061, 5017, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 1013, 1013, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1013, 1013, 1996, 2489, 4007, 3192, 1025, 2593, 2544, 1016, 1997, 1996, 6105, 1010, 2030, 1013, 1013, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1013, 1013, 1013, 1013, 1061, 5017, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 1013, 1013, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 1013, 1013, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 2236, 2270, 1013, 1013, 6105, 2005, 2062, 4751, 1012, 1013, 1013, 1013, 1013, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 1013, 1013, 2247, 2007, 1061, 5017, 1025, 2065, 2025, 1010, 4339, 2000, 1996, 2489, 4007, 3192, 1010, 1013, 1013, 4297, 1012, 1010, 1001, 5354, 3379, 2173, 1010, 7621, 14210, 1010, 3731, 1010, 5003, 6185, 14526, 2487, 1011, 7558, 2581, 3915, 1013, 1013, 1013, 1013, 4722, 2110, 1997, 11968, 8043, 1012, 1001, 2065, 13629, 2546, 11968, 8043, 1035, 2110, 1035, 1044, 1035, 1001, 9375, 11968, 8043, 1035, 2110, 1035, 1044, 1035, 1001, 2421, 1026, 11887, 1028, 1001, 2421, 1026, 5164, 1028, 1001, 2421, 1026, 9207, 1028, 1001, 2421, 1000, 2944, 1012, 1044, 1000, 1001, 2421, 1000, 2358, 22134, 4014, 1012, 1044, 1000, 2465, 11968, 8043, 9153, 2618, 1063, 2270, 1024, 11968, 8043, 9153, 2618, 1006, 9530, 3367, 2358, 2094, 1024, 1024, 11887, 1026, 2358, 2094, 1024, 1024, 5164, 1028, 1004, 5371, 18442, 1010, 2358, 2094, 1024, 1024, 9207, 1026, 2358, 2094, 1024, 1024, 5164, 1028, 1008, 10697, 1007, 1024, 5371, 18442, 1035, 1006, 5371, 18442, 1007, 1010, 10697, 1035, 1006, 10697, 1007, 1010, 3112, 1035, 1006, 2995, 1007, 1063, 30524, 1063, 2065, 1006, 999, 2944, 1035, 1012, 2038, 1035, 3643, 1006, 1007, 1007, 1063, 2944, 1035, 1027, 2944, 1006, 1007, 1025, 1065, 2709, 1004, 2944, 1035, 1012, 3643, 1006, 1007, 1025, 1065, 11675, 5587, 1035, 3200, 1006, 2358, 2094, 1024, 1024, 4310, 1035, 13866, 2099, 1026, 9530, 3367, 3670, 1028, 1004, 1004, 3200, 1007, 1063, 5144, 1035, 1012, 5245, 1035, 2067, 1006, 2358, 2094, 1024, 1024, 2693, 1006, 3200, 1007, 1007, 1025, 1065, 11675, 5587, 1035, 7561, 1006, 9530, 3367, 2358, 2094, 1024, 1024, 5164, 1004, 7561, 1007, 1063, 2065, 1006, 999, 5371, 18442, 1035, 1012, 2038, 1035, 3643, 1006, 1007, 1064, 1064, 5371, 18442, 1035, 1012, 3643, 1006, 1007, 1027, 1027, 1000, 1011, 1000, 1007, 1063, 10697, 1035, 1011, 1028, 5245, 1035, 2067, 1006, 7561, 1007, 1025, 1065, 2842, 1063, 10697, 1035, 1011, 1028, 5245, 1035, 2067, 1006, 2358, 18992, 2102, 1006, 5371, 18442, 1035, 1012, 3643, 1006, 1007, 30523, 1065, 2944, 1008, 14163, 10880, 1035, 2944, 1006, 1007, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1065, 2944, 1008, 14163, 10880, 1035, 2944, 1006, 1007, 30526 ]
#include "ComboBox.h" #include <QDebug> ComboBox::ComboBox(QWidget* parent) : QComboBox(parent) { } ComboBox::~ComboBox() { } void ComboBox::setCurrentItemById(const int id) { const int size = count(); for (int i = 0; i < size; ++i) { if (id == itemData(i).toInt()) { setCurrentIndex(i); return; } } qDebug() << __FUNCTION__ << "Cannot find id: " << id; } int ComboBox::currentId() { return itemData(currentIndex()).toInt(); }
CBRUhelsinki/CENTplatform
CENTSources/cent/CENTSystem/CENTApplication/src/ui/ComboBox.cpp
C++
gpl-2.0
488
[ 30522, 1001, 2421, 1000, 25025, 8758, 1012, 1044, 1000, 1001, 2421, 1026, 1053, 3207, 8569, 2290, 1028, 25025, 8758, 1024, 1024, 25025, 8758, 1006, 1053, 9148, 24291, 1008, 6687, 1007, 1024, 25196, 5358, 5092, 8758, 1006, 6687, 1007, 1063, 1065, 25025, 8758, 1024, 1024, 1066, 25025, 8758, 1006, 1007, 1063, 1065, 11675, 25025, 8758, 1024, 1024, 2275, 10841, 14343, 16778, 18532, 3762, 3593, 1006, 9530, 3367, 20014, 8909, 1007, 1063, 9530, 3367, 20014, 2946, 1027, 4175, 1006, 1007, 1025, 2005, 1006, 20014, 1045, 1027, 1014, 1025, 1045, 1026, 2946, 1025, 1009, 1009, 1045, 1007, 1063, 2065, 1006, 8909, 1027, 1027, 8875, 2850, 2696, 1006, 1045, 1007, 1012, 2000, 18447, 1006, 1007, 1007, 1063, 2275, 10841, 14343, 16778, 13629, 2595, 1006, 1045, 1007, 1025, 2709, 1025, 1065, 1065, 1053, 3207, 8569, 2290, 1006, 1007, 1026, 1026, 1035, 1035, 3853, 1035, 1035, 1026, 1026, 1000, 3685, 2424, 8909, 1024, 1000, 1026, 1026, 8909, 1025, 1065, 20014, 25025, 8758, 1024, 1024, 2783, 3593, 1006, 1007, 1063, 2709, 8875, 2850, 2696, 1006, 2783, 22254, 10288, 1006, 1007, 1007, 1012, 2000, 18447, 1006, 1007, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]