hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
b511615faf93d7f59230fbed00377f6585a343be
759
rs
Rust
src/main.rs
gaeulbyul/just
ef45b02cc38d7cf8b7223a764c2935cd38f70be2
[ "CC0-1.0" ]
null
null
null
src/main.rs
gaeulbyul/just
ef45b02cc38d7cf8b7223a764c2935cd38f70be2
[ "CC0-1.0" ]
null
null
null
src/main.rs
gaeulbyul/just
ef45b02cc38d7cf8b7223a764c2935cd38f70be2
[ "CC0-1.0" ]
null
null
null
#[macro_use] extern crate lazy_static; extern crate ansi_term; extern crate brev; extern crate clap; extern crate dotenv; extern crate edit_distance; extern crate itertools; extern crate libc; extern crate regex; extern crate target; extern crate tempdir; extern crate unicode_width; #[cfg(test)] #[macro_use] mod testing; mod assignment_evaluator; mod assignment_resolver; mod color; mod command_ext; mod common; mod compilation_error; mod configuration; mod cooked_string; mod expression; mod fragment; mod function; mod justfile; mod lexer; mod load_dotenv; mod misc; mod parameter; mod parser; mod platform; mod range_ext; mod recipe; mod recipe_resolver; mod run; mod runtime_error; mod shebang; mod token; use common::*; fn main() { run::run(); }
15.18
27
0.781291
4d888bd8eaeb4e694ab623be7221fc8438aa8e03
6,215
lua
Lua
game/helpers/mahjong/logic.lua
lualcs/xsServer
dc774f9f4364b5a24924c9ce5293d7cf5265c2d4
[ "MIT" ]
1
2021-02-08T12:27:24.000Z
2021-02-08T12:27:24.000Z
game/helpers/mahjong/logic.lua
lualcs/xsServer
dc774f9f4364b5a24924c9ce5293d7cf5265c2d4
[ "MIT" ]
null
null
null
game/helpers/mahjong/logic.lua
lualcs/xsServer
dc774f9f4364b5a24924c9ce5293d7cf5265c2d4
[ "MIT" ]
1
2022-01-23T05:14:55.000Z
2022-01-23T05:14:55.000Z
--[[ file:mahjongLogic.lua desc:麻将扑克 auth:Carol Luo ]] local ipairs = ipairs local math = require("extend_math") local table = require("extend_table") local class = require("class") local gameLogic = require("game.logic") ---@class mahjongLogic:gameLogic @麻将扑克 local logic = class(gameLogic) local this = logic local senum = require("mahjong.enum") ---构造函数 ---@param table mahjongCompetition function logic:ctor(table) self._competition = table end ---数据获取 ------@param senum senum @索引 ---@return table<senum,any> function logic:getDriver(senum) return self._competition:getDriver(senum) end ---数据设置 ------@param senum senum @索引 ------@param data any @数据 function logic:setDriver(senum,data) return self._competition:setDriver(senum,data) end ---最大玩家 ---@return mjCount function logic:maxPlayer() return self._competition:getMaxPlayer() end ---保存数据 ---@param senum senum @映射值 ---@param data any @数据值 function logic:setData(senum,data) self._competition:setData(senum,data) end ---获取数据 ---@return any function logic:getData(senum) return self._competition:getData(senum) end ---玩家数组 ---@return mahjongPlayer[] function logic:arrPlayer() return self._competition:getArrPlayer() end ---剩余牌库 ----@return mjCard[] function logic:paiKu() return self:getDriver(senum.paiKu()) end ---包含牌库 ----@return mjCard[] function logic:baoHan() return self:getDriver(senum.baoHan()) end ---庄家玩家 ---@return mahjongPlayer function logic:zhuang() return self:getDriver(senum.zhuang()) end ---构建牌库 ---@param builds mjFill[] function logic:gameSystemCards(builds) local lis = {} local map = {} self:setDriver(senum.paiKu(),lis) self:setDriver(senum.baoHan(),map) ---游戏辅助 ---@type mahjongHelper local help = self._hlp for _,item in ipairs(builds) do for value=item.start,item.close do local card = help.getCard(item.color,value) map[card] = true for again=1,item.again do table.insert(lis,card) end end end end ---系统定庄 function logic:gameSystemDingZhuang() local zhuangs = self:getData(senum.zhuangs()) local maxseat = self:maxPlayer() if table.empty(zhuangs) then ---随机庄家 local banker = math.random(1,maxseat) self:setDriver(senum.zhuang(),banker) table.insert(zhuangs,banker) return end local huangs = self:getData(senum.huangs()) if table.last(huangs) then ---慌庄连庄 local banker = table.last(zhuangs) self:setDriver(senum.zhuang(),banker) table.insert(zhuangs,banker) return end ---首胡坐庄|点炮多响 local banker = self:getData(senum.dingZhuang()) self:setDriver(senum.zhuang(),banker) table.insert(zhuangs,banker) end ---系统发牌 function logic:gameSystemFapai() local users = self:arrPlayer() local cards = self:paiKu() for _,player in ipairs(users) do local hands = player:getHands() for again=1,13 do local card = table.remove(cards) table.insert(hands,card) end end local player = self:banker() --庄家摸牌 self:gameSystemMoPai(player) end ---摸牌操作 ---@param player mahjongPlayer function logic:gameSystemMoPai(player) local hands = player:getHands() local card = table.remove(self:paiKu()) table.insert(hands,card) end ---出牌 ---@param player mahjongPlayer @麻将玩家 ---@return boolean function logic:ableChuPai(player) local hands = player:getHands() --检查数量 local count = #hands if 2 ~= count % 3 then return false end return true end ---碰牌 ---@param player mahjongPlayer @麻将玩家 ---@return boolean function logic:ablePengPai(player) local hands = player:getHands() --检查玩家 if player == self._last_chupai_play then return false end --检查数量 local count = #hands if 1 ~= count % 3 then return false end --检查出牌 local card = self._last_chupai_card if not table.existCount(hands,card,2) then return false end return true end ---直杠 ---@param player mahjongPlayer @麻将玩家 ---@return boolean function logic:ableZhiGang(player) local hands = player:getHands() --检查玩家 if player == self._last_chupai_play then return false end --检查数量 local count = #hands if 1 ~= count % 3 then return false end --检查出牌 local card = self._last_chupai_card if not table.existCount(hands,card,3) then return false end return true end local copy1 = {nil} ---绕杠 ---@param player mahjongPlayer @麻将玩家 ---@return boolean function logic:ableRaoGang(player) local hands = player:getHands() --检查数量 local count = #hands if 2 ~= count % 3 then return false end --检查绕杠 local list = table.clear(copy1) local pengs = player:getPengs() for _,card in ipairs(pengs) do if table.exist(hands,card) then table.insert(list,card) end end local ok = not table.empty(list) return ok,list end local copy1 = {nil} local copy2 = {nil} ---暗杠 ---@param player mahjongPlayer @麻将玩家 ---@return boolean function logic:ableAnGang(player) local hands = player:getHands() --检查数量 local count = #hands if 2 ~= count % 3 then return false end --检查暗杠 local list = table.clear(copy1) local maps = table.arrToHas(hands,copy2) for card,count in ipairs(maps) do if count >= 4 then table.insert(list,card) end end local ok = not table.empty(list) return ok,list end ---点炮 ---@param player mahjongPlayer @麻将玩家 ---@return boolean function logic:ableDianPao(player) end ---抢杠 ---@param player mahjongPlayer @麻将玩家 ---@return boolean function logic:ableQiangGang(player) end ---自摸 ---@param player mahjongPlayer @麻将玩家 ---@return boolean function logic:ableZiMo(player) end ---出牌操作 ---@param player mahjongPlayer @玩家 ---@param card mjCard @出牌 function logic:gamePlayingChuPai(player,card) ---最后出牌 ---@type mjCard self._last_chupai_card = card ---出牌玩家 ---@type mahjongPlayer self._last_chupai_play = player end return logic
20.57947
55
0.651167
b2f530408fd43221cdf3c37a95a00dd22b60da33
18,688
sql
SQL
===db/omwebsolution (19).sql
Mrunal001/omwebsolution
51ddbed51b351c75f3aeec682b02be29834fa3dd
[ "MIT" ]
null
null
null
===db/omwebsolution (19).sql
Mrunal001/omwebsolution
51ddbed51b351c75f3aeec682b02be29834fa3dd
[ "MIT" ]
null
null
null
===db/omwebsolution (19).sql
Mrunal001/omwebsolution
51ddbed51b351c75f3aeec682b02be29834fa3dd
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 02, 2022 at 07:55 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `omwebsolution` -- -- -------------------------------------------------------- -- -- Table structure for table `career` -- CREATE TABLE `career` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `education` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `mobile` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `experience` float NOT NULL, `c_salary` int(11) NOT NULL, `e_salary` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `reason` text COLLATE utf8mb4_unicode_ci NOT NULL, `upload` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `country` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `state` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `city` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `extra` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `career` -- INSERT INTO `career` (`id`, `name`, `email`, `education`, `mobile`, `experience`, `c_salary`, `e_salary`, `reason`, `upload`, `country`, `state`, `city`, `extra`, `created_at`, `updated_at`) VALUES (1, 'test', 'keshvi.5santoki@gmail.com', 'primary', NULL, 2, 123, '3k-4k', 'testing', '1641059458.pdf', 'country', 'state', 'city', 'cfgcghvg', '2022-01-01 12:20:58', '2022-01-01 12:20:58'), (2, 'aa', 'keshvi.5santoki@gmail.com', 'primary', NULL, 4, 12345, '3k-4k', 'sccc', '1641059651.pdf', 'dcdc', 'ccd', 'dc', 'scds', '2022-01-01 12:24:12', '2022-01-01 12:24:12'); -- -------------------------------------------------------- -- -- Table structure for table `contact` -- CREATE TABLE `contact` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `country` varchar(255) NOT NULL, `state` varchar(255) NOT NULL, `city` varchar(255) NOT NULL, `subject` varchar(255) NOT NULL, `message` text NOT NULL, `answer` text DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `contact` -- INSERT INTO `contact` (`id`, `name`, `email`, `country`, `state`, `city`, `subject`, `message`, `answer`, `created_at`, `updated_at`) VALUES (1, 'keshvi', 'keshvi.5santoki@gmail.com', 'India', 'Gujarat', 'Rajkot', 'Test Contact', 'testing message', 'testing', '2022-01-01 10:28:09', '2022-01-01 12:18:51'); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `faq` -- CREATE TABLE `faq` ( `id` int(11) NOT NULL, `pid` int(11) NOT NULL, `uid` int(11) NOT NULL, `question` text NOT NULL, `answer` text DEFAULT NULL, `status` int(11) NOT NULL DEFAULT 0 COMMENT '1=active,0=inactive', `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `faq` -- INSERT INTO `faq` (`id`, `pid`, `uid`, `question`, `answer`, `status`, `created_at`, `updated_at`) VALUES (1, 2, 1, 'Test Question', 'Test Answer', 1, '2021-12-31 12:42:35', '2021-12-31 12:42:58'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2019_12_14_000001_create_personal_access_tokens_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `amount` float NOT NULL, `paid_response` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `orders` -- INSERT INTO `orders` (`id`, `user_id`, `amount`, `paid_response`, `created_at`, `updated_at`) VALUES (1, 1, 124, 'pay_IeAvPa3JKC1W9d', '2021-12-31 18:11:54', '2021-12-31 18:11:54'), (2, 1, 1, 'pay_IeWr8YsPpU2gZq', '2022-01-01 15:39:08', '2022-01-01 15:39:08'), (3, 1, 1, 'pay_IeWte1GylKIDny', '2022-01-01 15:41:38', '2022-01-01 15:41:38'), (4, 1, 123, 'pay_IeWxFcazGlvddM', '2022-01-01 15:44:56', '2022-01-01 15:44:56'); -- -------------------------------------------------------- -- -- Table structure for table `order_items` -- CREATE TABLE `order_items` ( `id` int(11) NOT NULL, `order_id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `amount` float NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `order_items` -- INSERT INTO `order_items` (`id`, `order_id`, `product_id`, `amount`, `created_at`, `updated_at`) VALUES (1, 1, 2, 1, '2021-12-31 18:11:54', '2021-12-31 18:11:54'), (2, 1, 1, 123, '2021-12-31 18:11:54', '2021-12-31 18:11:54'), (3, 2, 2, 1, '2022-01-01 15:39:09', '2022-01-01 15:39:09'), (4, 3, 2, 1, '2022-01-01 15:41:38', '2022-01-01 15:41:38'), (5, 4, 1, 123, '2022-01-01 15:44:56', '2022-01-01 15:44:56'); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `password_resets` -- INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES ('admin@gmail.com', '$2y$10$oA/sSBWc2j2fr8gkT8C1.e/Afz8B6t90qXVL1C0ew28NhhGZPIO2O', '2021-11-23 11:14:32'); -- -------------------------------------------------------- -- -- Table structure for table `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `last_used_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `portfolio` -- CREATE TABLE `portfolio` ( `id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `images` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `status` int(11) NOT NULL DEFAULT 1 COMMENT '1=active,0=inactive', `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `portfolio` -- INSERT INTO `portfolio` (`id`, `title`, `images`, `type`, `status`, `created_at`, `updated_at`) VALUES (1, 'test', '7832E300-DE87-47DB-907D-DB6CFB1FBEAB.png', 'Web Development', 1, '2021-12-31 11:32:46', '2021-12-31 11:32:46'), (2, 'test1', '1629791158477.jpg', 'Web Design', 1, '2021-12-31 11:33:03', '2021-12-31 11:33:03'), (3, 'test2', 'audit.jpeg', 'Application', 1, '2021-12-31 11:33:26', '2021-12-31 11:33:26'), (4, 'test4', 'adult-blur-business-close-up-239548-min.jpg', 'Software', 1, '2021-12-31 11:33:43', '2021-12-31 11:33:43'), (5, 'test5', 'index.jpg', 'Web Development', 1, '2021-12-31 11:34:12', '2021-12-31 11:34:12'), (6, 'test6', 'download.jpg', 'Application', 1, '2021-12-31 11:35:20', '2021-12-31 11:35:20'); -- -------------------------------------------------------- -- -- Table structure for table `project` -- CREATE TABLE `project` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `description` text NOT NULL, `technology` text NOT NULL, `can_be_used` text NOT NULL, `modules` text NOT NULL, `price` int(11) NOT NULL, `status` int(11) NOT NULL DEFAULT 1 COMMENT '1=active,0=inactive', `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `project` -- INSERT INTO `project` (`id`, `name`, `description`, `technology`, `can_be_used`, `modules`, `price`, `status`, `created_at`, `updated_at`) VALUES (1, 'Online Event Management System', 'They keep all payment information on papers. There is no system to check the past expenses on any event. To do this they have to check payment register and this task is very time consuming and tiresome. Keeping all these problem in mind we have developed this system.', 'test1, test2,test3', 'This is an Online event management system software project that serves the functionality of an event manager. The system allows only registered users to login and new users are allowed to resister on the application.', 'Event management system is used to manage all the activity related to event. In any event many service providers work simultaneously and it is very hard to manage these providers. It is also important for event organizer that he has all the contacts details of these service providers', 123, 1, '2021-12-31 16:40:22', '2021-12-31 16:40:22'), (2, 'smart School Management', 'MyClassCampus School Management Software brings the best of technology to provide 360 degree experience to schools which not only improves productivity of administrative staff but improves experience and productivity of all the stakeholders- principal, management, teachers, administration staff, students and parents.', 'php, mysql, javascript', 'All', 'In today\'s time every school around the world needs one or other kind of School Management Sytem or which is called as School Management Software.', 1, 1, '2021-12-31 16:55:57', '2021-12-31 16:55:57'); -- -------------------------------------------------------- -- -- Table structure for table `project_images` -- CREATE TABLE `project_images` ( `id` int(11) NOT NULL, `pid` int(11) NOT NULL, `pimage` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `project_images` -- INSERT INTO `project_images` (`id`, `pid`, `pimage`, `created_at`, `updated_at`) VALUES (1, 1, 'index2.jpg', '2021-12-31 16:40:22', '2021-12-31 16:40:22'), (2, 2, 'index.jpg', '2021-12-31 16:55:57', '2021-12-31 16:55:57'); -- -------------------------------------------------------- -- -- Table structure for table `register` -- CREATE TABLE `register` ( `id` int(11) NOT NULL, `fullname` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `phone` varchar(255) NOT NULL, `gender` varchar(255) NOT NULL, `status` int(11) NOT NULL DEFAULT 1 COMMENT '1=active, 0-inactive', `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `register` -- INSERT INTO `register` (`id`, `fullname`, `email`, `password`, `phone`, `gender`, `status`, `created_at`, `updated_at`) VALUES (1, 'test', 'test@gmail.com', '$2y$10$puvlKT4iG6WRqnvkKEFQXebTs783CH7thQ4j/uM3iZ0nbGRWLAZai', '9870123654', 'Male', 1, '2021-12-31 11:51:03', '2021-12-31 11:51:03'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'admin', 'admin@gmail.com', NULL, '$2y$10$otqCFHcar8W1wH1IJTNZ5O8li7qOVZpryo0xQnX99hY1I5L44el5K', 'Tis6RyGRCPQyTAdZF2NWeLQjDYPg4sC0p4PZyei1rmx10d38gEEoxFX36ANf', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `visitors` -- CREATE TABLE `visitors` ( `id` int(11) NOT NULL, `count` int(11) NOT NULL DEFAULT 0, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `visitors` -- INSERT INTO `visitors` (`id`, `count`, `created_at`, `updated_at`) VALUES (1, 1, '2022-01-01 17:59:01', '2022-01-01 12:29:24'); -- -- Indexes for dumped tables -- -- -- Indexes for table `career` -- ALTER TABLE `career` ADD PRIMARY KEY (`id`); -- -- Indexes for table `contact` -- ALTER TABLE `contact` ADD PRIMARY KEY (`id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `faq` -- ALTER TABLE `faq` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `order_items` -- ALTER TABLE `order_items` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`); -- -- Indexes for table `portfolio` -- ALTER TABLE `portfolio` ADD PRIMARY KEY (`id`); -- -- Indexes for table `project` -- ALTER TABLE `project` ADD PRIMARY KEY (`id`); -- -- Indexes for table `project_images` -- ALTER TABLE `project_images` ADD PRIMARY KEY (`id`); -- -- Indexes for table `register` -- ALTER TABLE `register` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- Indexes for table `visitors` -- ALTER TABLE `visitors` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `career` -- ALTER TABLE `career` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `contact` -- ALTER TABLE `contact` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `faq` -- ALTER TABLE `faq` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `order_items` -- ALTER TABLE `order_items` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `portfolio` -- ALTER TABLE `portfolio` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `project` -- ALTER TABLE `project` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `project_images` -- ALTER TABLE `project_images` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `register` -- ALTER TABLE `register` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `visitors` -- ALTER TABLE `visitors` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
32.785965
893
0.678457
feda0dd23ee06bd06bfc5e94efd8c6bd28f7296a
25
html
HTML
projects/ng-multi-keywords-highlighter/src/lib/color-palette/color-palette.component.html
dylannnn/ng-multi-keywords-highlighter-workspace
ef434cef2843c22a0380b4e703e446ed30290e5b
[ "MIT" ]
1
2021-02-25T19:46:27.000Z
2021-02-25T19:46:27.000Z
projects/ng-multi-keywords-highlighter/src/lib/color-palette/color-palette.component.html
dylannnn/multi-keywords-highlighter-workspace
ef434cef2843c22a0380b4e703e446ed30290e5b
[ "MIT" ]
1
2021-03-01T12:01:25.000Z
2021-03-01T12:01:25.000Z
projects/ng-multi-keywords-highlighter/src/lib/color-palette/color-palette.component.html
dylannnn/ng-multi-keywords-highlighter-workspace
ef434cef2843c22a0380b4e703e446ed30290e5b
[ "MIT" ]
null
null
null
<p>Works in progress</p>
12.5
24
0.68
74c255402e983c73d83484c079fb4dc14fb70ca0
82,220
js
JavaScript
client/web-h5/static/js/pages-index-index.2916f04c.js
lxh888/openshop
62e81d913d8fdbde70e4b8b5ad5f3cda6e445614
[ "Apache-2.0" ]
null
null
null
client/web-h5/static/js/pages-index-index.2916f04c.js
lxh888/openshop
62e81d913d8fdbde70e4b8b5ad5f3cda6e445614
[ "Apache-2.0" ]
null
null
null
client/web-h5/static/js/pages-index-index.2916f04c.js
lxh888/openshop
62e81d913d8fdbde70e4b8b5ad5f3cda6e445614
[ "Apache-2.0" ]
null
null
null
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"06e1":function(t,e,o){e=t.exports=o("2350")(!1),e.push([t.i,'.content[data-v-d2df5580]{width:100%;text-align:center;overflow-y:sroll}.content .title-box[data-v-d2df5580]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:%?710?%;padding:0 %?20?%;height:%?100?%}.content .title-box .scan[data-v-d2df5580]{width:%?40?%;height:%?40?%}.content .title-box .input-box[data-v-d2df5580]{margin-left:%?20?%;width:%?650?%;height:%?58?%;border:%?1?% solid #d3d3d3}.content .title-box .input-box .search[data-v-d2df5580]{display:inline-block;position:absolute;top:0;left:0}.content .title-box .input-box .input[data-v-d2df5580]{width:80%;display:inline-block;font-size:%?28?%;text-align:left;line-height:100%;height:100%}.content .title-box .chat[data-v-d2df5580]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.content .casual[data-v-d2df5580]{width:100%;height:%?400?%}.content .casual .swiper-box[data-v-d2df5580]{width:100%;height:100%}.content .casual .swiper-box .swiper[data-v-d2df5580]{width:100%;height:100%}.content .casual .swiper-box .swiper .image[data-v-d2df5580]{width:100%;height:100%}.content .nav-box[data-v-d2df5580]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:%?50?% %?0?%}.content .nav-box .nav-item[data-v-d2df5580]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:25%;font-size:%?24?%;margin:%?20?% 0;color:#666}.content .nav-box .nav-item .image[data-v-d2df5580]{width:%?70?%;height:%?70?%}.content .recomend-box[data-v-d2df5580]{width:100%;height:auto}.content .recomend-box .top[data-v-d2df5580]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:100%;height:50%;background-color:#fff}.content .recomend-box .top .buy[data-v-d2df5580],.content .recomend-box .top .new[data-v-d2df5580]{width:100%;height:%?300?%;float:left;text-align:left;margin-left:3%}.content .recomend-box .top .buy .title[data-v-d2df5580],.content .recomend-box .top .new .title[data-v-d2df5580]{font-size:%?40?%;font-weight:600;margin-right:%?10?%}.content .recomend-box .top .buy .spectial[data-v-d2df5580],.content .recomend-box .top .new .spectial[data-v-d2df5580]{display:block;text-align:left;margin-bottom:%?20?%}.content .recomend-box .top .buy .spectialTime[data-v-d2df5580],.content .recomend-box .top .new .spectialTime[data-v-d2df5580]{margin-top:%?5?%}.content .recomend-box .top .buy .time-item[data-v-d2df5580],.content .recomend-box .top .new .time-item[data-v-d2df5580]{width:%?20?%;height:%?20?%;color:#fff;font-size:%?20?%;margin-right:%?8?%;background-color:#333}.content .recomend-box .top .buy .time-item[data-v-d2df5580]:after,.content .recomend-box .top .new .time-item[data-v-d2df5580]:after{content:":";background-color:#fff;color:#333}.content .recomend-box .top .buy .time-zone[data-v-d2df5580],.content .recomend-box .top .new .time-zone[data-v-d2df5580]{font-size:%?24?%}.content .recomend-box .top .buy .goods-list[data-v-d2df5580],.content .recomend-box .top .new .goods-list[data-v-d2df5580]{width:48%;height:70%;margin-top:%?36?%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.content .recomend-box .top .buy .goods-list uni-image[data-v-d2df5580],.content .recomend-box .top .new .goods-list uni-image[data-v-d2df5580]{width:%?130?%;height:%?130?%}.content .recomend-box .top .buy .goods-list .nowSalePrice[data-v-d2df5580],.content .recomend-box .top .new .goods-list .nowSalePrice[data-v-d2df5580]{font-size:%?24?%;color:red;margin-right:%?10?%}.content .recomend-box .top .buy .goods-list .normalSalePrice[data-v-d2df5580],.content .recomend-box .top .new .goods-list .normalSalePrice[data-v-d2df5580]{font-size:%?18?%;color:#ccc}.content .recomend-box .top .new[data-v-d2df5580]{width:50%;height:%?300?%}.content .recomend-box .bottom[data-v-d2df5580]{width:100%}.content .recomend-box .bottom .content[data-v-d2df5580]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:100%;margin-bottom:%?40?%}.content .recomend-box .bottom .content .kinds[data-v-d2df5580]{width:32.5%;height:%?300?%;text-align:center}.content .recomend-box .bottom .content .kinds .title[data-v-d2df5580]{display:block;font-size:%?40?%;font-weight:600}.content .recomend-box .bottom .content .kinds .subTitle[data-v-d2df5580]{display:block;font-size:%?24?%;margin:%?10?% 0 %?40?%}.content .recomend-box .bottom .content .kinds uni-image[data-v-d2df5580]{width:%?210?%;height:%?150?%;border-radius:%?10?%}.selected-activities-content[data-v-d2df5580]{width:100%;height:100%}.selected-activities-content .selected-activities[data-v-d2df5580]{width:100%;height:%?150?%;background-color:#f4f3f3;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.selected-activities-content .selected-activities .selected-activities-text[data-v-d2df5580]{font-size:%?40?%;font-weight:600}.selected-activities-content .recomend-goods-box[data-v-d2df5580]{width:100%;background-color:#fff}.selected-activities-content .recomend-goods-box .recomend-goods-item1[data-v-d2df5580]{display:inline-block;width:30%;height:%?240?%;margin:%?20?% %?10?%;background-color:#f4f3f3}.selected-activities-content .recomend-goods-box .recomend-goods-item1 uni-text[data-v-d2df5580]{display:block;font-size:%?24?%;text-align:center;margin-bottom:%?5?%}.selected-activities-content .recomend-goods-box .recomend-goods-item1 uni-text[data-v-d2df5580]:first-child{padding-top:%?10?%}.selected-activities-content .recomend-goods-box .recomend-goods-item1 .img-box[data-v-d2df5580]{width:100%;height:50%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.selected-activities-content .recomend-goods-box .recomend-goods-item1 .img-box uni-image[data-v-d2df5580]{width:%?80?%;height:%?80?%;margin:0 auto}.selected-activities-content .recomend-goods-box .recomend-goods-item2[data-v-d2df5580]{display:inline-block;width:30%;height:%?240?%;margin:%?20?% %?10?%}.selected-activities-content .recomend-goods-box .recomend-goods-item2 .img-box[data-v-d2df5580]{width:100%;height:50%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.selected-activities-content .recomend-goods-box .recomend-goods-item2 .img-box uni-image[data-v-d2df5580]{width:%?150?%;height:%?150?%}.selected-activities-content .recomend-goods-box .recomend-goods-item2 .des[data-v-d2df5580]{display:block;font-size:%?24?%;margin:%?30?% 0 %?5?%;color:#666}.selected-activities-content .recomend-goods-box .recomend-goods-item2 .price[data-v-d2df5580]{font-size:%?32?%;color:red}.getMore[data-v-d2df5580]{width:100%;height:%?150?%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:#f4f3f3;font-size:%?28?%;line-height:%?100?%}',""])},"09d6":function(t,e,o){var n=o("06e1");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("532d875a",n,!0,{sourceMap:!1,shadowMode:!1})},"31b3":function(t,e,o){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"title-box"},[n("v-uni-view",{staticClass:"scan",on:{click:function(e){e=t.$handleEvent(e),t.scanCode()}}},[n("v-uni-image",{staticStyle:{width:"40upx",height:"40upx"},attrs:{src:"http://rs.eonfox.cc/clzy/static/scan-ico.png",mode:""}})],1),n("v-uni-view",{staticClass:"input-box",on:{click:function(e){e=t.$handleEvent(e),t.openSearch(e)}}},[n("v-uni-view",{staticStyle:{float:"left"}},[n("v-uni-image",{staticStyle:{width:"40upx",height:"40upx","margin-left":"10upx","margin-right":"10upx","margin-top":"10upx"},attrs:{src:"../../static/search.png",mode:""}})],1),n("v-uni-view",{staticStyle:{float:"left",height:"100%"}},[n("v-uni-input",{staticClass:"input",attrs:{type:"text",value:"",placeholder:"输入关键字搜索"}})],1)],1)],1),""!=t.itemList?n("v-uni-view",{staticClass:"casual"},[n("v-uni-swiper",{staticClass:"swiper-box",attrs:{"indicator-dots":"true",autoplay:"true",interval:"3000",duration:"500"}},t._l(t.itemList,function(e,o){return n("v-uni-swiper-item",{key:o,staticClass:"swiper"},[n("v-uni-image",{staticClass:"image",attrs:{src:t.qiniu+e.image_id,mode:"aspectFill"},on:{click:function(o){o=t.$handleEvent(o),t.item_click(e.json)}}})],1)}),1)],1):t._e(),n("v-uni-view",{staticClass:"nav-box"},[t._l(t.categorize,function(e,o){return n("v-uni-view",{key:o,staticClass:"nav-item",attrs:{"data-Businessid":e.type_id},on:{click:function(o){o=t.$handleEvent(o),t.enterDetailsPage(e.type_id,e.name,e.json)}}},[n("v-uni-view",[n("v-uni-image",{staticClass:"image",attrs:{src:t.qiniu+e.image_id}})],1),n("v-uni-text",[t._v(t._s(e.name))])],1)}),n("v-uni-view",{staticClass:"nav-item",on:{click:function(e){e=t.$handleEvent(e),t.goStore(e)}}},[n("v-uni-view",[n("v-uni-image",{staticClass:"image",attrs:{src:"../../static/Noimg.png"}})],1),n("v-uni-text",[t._v("店铺分类")])],1)],2),n("v-uni-view",{staticClass:"recomend-box"},[n("v-uni-view",{staticClass:"top"},[t.PromptGoodsList.shop_goods_min_money?n("v-uni-view",{staticClass:"buy"},[n("v-uni-view",[n("v-uni-text",{staticClass:"title"},[t._v("限时购")])],1),n("v-uni-view",{staticClass:"goods-list"},t._l(t.PromptGoodsList,function(e,o){return n("v-uni-view",{key:o,staticStyle:{float:"left","margin-right":"10upx"},on:{click:function(o){o=t.$handleEvent(o),t.goGoodsDetails2(e.shop_goods_id)}}},[n("v-uni-image",{attrs:{src:t.qiniu+e.shop_goods_image_main[0].image_id,mode:"aspectFit"}}),n("v-uni-text",{staticClass:"nowSalePrice"},[t._v("¥"+t._s(e.shop_goods_min_money/100))])],1)}),1)],1):t._e()],1),n("v-uni-view",{staticClass:"bottom"},[n("v-uni-view",{staticClass:"content"},t._l(t.classList,function(e,o){return o<3?n("v-uni-view",{key:o,staticClass:"kinds",on:{click:function(o){o=t.$handleEvent(o),t.search(e.type_id)}}},[n("v-uni-text",{attrs:{clas:"title"}},[t._v(t._s(e.label))]),n("v-uni-text",{staticClass:"subTitle"},[t._v(t._s(e.name))]),n("v-uni-image",{attrs:{src:t.qiniu+e.image_id,mode:"aspectFit"}})],1):t._e()}),1),n("v-uni-view",{staticClass:"content"},t._l(t.classList,function(e,o){return o>=3?n("v-uni-view",{key:o,staticClass:"kinds",on:{click:function(o){o=t.$handleEvent(o),t.search(e.type_id)}}},[n("v-uni-text",{attrs:{clas:"title"}},[t._v(t._s(e.label))]),n("v-uni-text",{staticClass:"subTitle"},[t._v(t._s(e.name))]),n("v-uni-image",{attrs:{src:t.qiniu+e.image_id,mode:"aspectFit"}})],1):t._e()}),1)],1)],1),""!=t.sGoodsList?n("v-uni-view",{staticClass:"backgroundE"}):t._e(),""!=t.sGoodsList?n("v-uni-view",{staticClass:"spikeWrapper spikeHeight"},[n("v-uni-view",{staticClass:"stitleWrapper"},[n("img",{staticClass:"stitleImg",attrs:{src:"http://mp.emshop.eonfox.com/zrhzstatic/emShopImg/spikeListIcom.jpg",alt:""}}),n("v-uni-view",{staticClass:"stitleWord"},[t._v("限时购")])],1),t._l(t.sGoodsList,function(e,o){return n("v-uni-view",{key:o,staticClass:"spikeContentWrapper",on:{click:function(o){o=t.$handleEvent(o),t.goGoodsDetail(e.id)}}},[n("v-uni-view",{staticClass:"spikeConImgWrapper"},[n("v-uni-image",{staticClass:"assembleConImg spikeConImg",attrs:{src:t.qiniu+e.image_id,mode:"aspectFit",alt:""}})],1),n("v-uni-view",{staticClass:"spikeConWordWrapper"},[n("v-uni-view",{staticClass:"spikeConTitleWord"},[t._v(t._s(e.name))]),n("v-uni-view",{staticClass:"spikeConSaleInfoWrapper clearFix"},[0==e.property?n("v-uni-view",{staticClass:"spikeconSaleInfo left"},[n("v-uni-view",{staticClass:"saleMoney"},[t._v("¥"+t._s(e.price_min/100))]),n("v-uni-view",{staticClass:"money"},[t._v("¥"+t._s(e.market_price_min/100))])],1):t._e(),1==e.property?n("v-uni-view",{staticClass:"spikeconSaleInfo left"},[n("v-uni-view",{staticClass:"saleMoney",staticStyle:{"margin-top":"8px"}},[t._v(t._s(e.price_min/100)+"积分")]),n("v-uni-view",{staticClass:"money"},[t._v(t._s(e.market_price_min/100)+"积分")])],1):t._e(),n("v-uni-view",{staticClass:"spikeconSaleTime right"},[n("v-uni-view",{staticClass:"time"},[t._v("开始时间:"+t._s(e.when_start_time))]),n("v-uni-view",{staticClass:"begin"},[t._v("开抢")])],1)],1)],1)],1)}),t._l(t.sGoodsList,function(e,o){return 0==e.sku_stock?n("v-uni-view",{key:o,staticClass:"spikeContentWrapper endWrapper",on:{click:function(e){e=t.$handleEvent(e),t.goNoGoodsDetail()}}},[n("v-uni-view",{staticClass:"spikeConImgWrapper"},[n("v-uni-image",{staticClass:"assembleConImg spikeConImg",attrs:{src:t.qiniu+e.image_id,mode:"aspectFit",alt:""}})],1),n("v-uni-view",{staticClass:"spikeConWordWrapper"},[n("v-uni-view",{staticClass:"spikeConTitleWord"},[t._v(t._s(e.name))]),n("v-uni-view",{staticClass:"spikeConSaleInfoWrapper clearFix"},[0==e.property?n("v-uni-view",{staticClass:"spikeconSaleInfo left"},[n("v-uni-view",{staticClass:"saleMoney"},[t._v("¥"+t._s(e.price_min/100))]),n("v-uni-view",{staticClass:"money"},[t._v("¥"+t._s(e.market_price_min/100))])],1):t._e(),1==e.property?n("v-uni-view",{staticClass:"spikeconSaleInfo left"},[n("v-uni-view",{staticClass:"saleMoney"},[t._v(t._s(e.price_min/100)+"积分")]),n("v-uni-view",{staticClass:"money"},[t._v(t._s(e.market_price_min/100)+"积分")])],1):t._e(),n("v-uni-view",{staticClass:"spikeconSaleTime right"},[n("v-uni-view",{staticClass:"time",staticStyle:{"margin-top":"8px"}},[t._v(t._s(e.when_start_time))]),n("v-uni-view",{staticClass:"begin"},[t._v("已抢光")])],1)],1)],1)],1):t._e()})],2):t._e(),""!=t.goodsList?n("v-uni-view",{staticClass:"backgroundE"}):t._e(),""!=t.goodsList?n("v-uni-view",{staticClass:"assembelWrapper spikeWrapper assembelHeight"},[n("v-uni-view",{staticClass:"atitleWrapper stitleWrapper"},[n("img",{staticClass:"atitileImg stitleImg",attrs:{src:"http://mp.emshop.eonfox.com/zrhzstatic/emShopImg/assemble.jpg",alt:""}}),n("v-uni-view",{staticClass:"atitleWord stitleWord"},[t._v("拼团抢购")])],1),t._l(t.goodsList,function(e,i){return n("v-uni-view",{key:i,staticClass:"assembleContentWrapper spikeContentWrapper",on:{click:function(o){o=t.$handleEvent(o),t.goGroupgoodsDetails(e.id)}}},[n("v-uni-view",{staticClass:"assembleConImgWrapper spikeConImgWrapper"},[n("v-uni-image",{staticClass:"assembleConImg spikeConImg",attrs:{src:t.qiniu+e.image_id,mode:"aspectFit",alt:""}})],1),n("v-uni-view",{staticClass:"assembleConWordWrapper spikeConWordWrapper"},[n("v-uni-view",{staticClass:"assembelConTitleWord spikeConTitleWord"},[t._v(t._s(e.name))]),n("v-uni-view",{staticClass:"assembleConSaleInfoWrapper spikeConSaleInfoWrapper clearFix"},[0==e.property?n("v-uni-view",{staticClass:"assembleconSaleInfo spikeconSaleInfo left"},[0==e.property?n("v-uni-view",{staticClass:"saleMoney"},[t._v("¥"+t._s(e.group_price/100))]):t._e(),0==e.property?n("v-uni-view",{staticClass:"money"},[t._v("¥"+t._s(e.price/100))]):t._e()],1):t._e(),1==e.property?n("v-uni-view",{staticClass:"assembleconSaleInfo spikeconSaleInfo left"},[1==e.property?n("v-uni-view",{staticClass:"saleMoney"},[t._v("¥"+t._s(e.group_price/100))]):t._e(),1==e.property?n("v-uni-view",{staticClass:"money"},[t._v("¥"+t._s(e.price/100))]):t._e()],1):t._e(),n("v-uni-view",{staticClass:"assembleconSaleTime spikeconSaleTime right"},[n("v-uni-view",{staticClass:"assembletime"},[n("img",{staticClass:"clock left",attrs:{src:o("8d13"),alt:""}}),n("uni-countdown",{attrs:{day:e.timeDay,hour:e.timeHour,minute:e.timeMinite,"border-color":"#fff",color:"#d62c2c",second:e.timeScond}})],1),n("v-uni-view",{staticClass:"assemblebegin clearFix"},[n("img",{staticClass:"assembleNum left",attrs:{src:o("4238"),alt:""}}),n("span",{staticClass:"pNumber left"},[t._v("("+t._s(e.group_people_now)+"/"+t._s(e.group_people)+")")]),n("v-uni-view",{staticClass:"progress progress-box left"},[n("v-uni-progress",{attrs:{percent:t.percentCom(e.group_people_now,e.group_people),active:"","stroke-width":"3",activeColor:"#F76161"}})],1)],1)],1)],1)],1)],1)})],2):t._e()],1)],1)},i=[];o.d(e,"a",function(){return n}),o.d(e,"b",function(){return i})},"363b":function(t,e,o){"use strict";o.r(e);var n=o("fb33"),i=o.n(n);for(var r in n)"default"!==r&&function(t){o.d(e,t,function(){return n[t]})}(r);e["default"]=i.a},4238:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAATlElEQVR4Xu2dCZAWxRXH5UaBIMSYSBTFxGg0IoJHolGXQvGIRhDxgADLoaY0KB7lgRVdj4CJF4i5KK4VCqEIEaMmCihrpDQmElET0WhQxIgajMhhkIUlv7fO4pcVlm/7m+lj+k3VV98e0/1e/1//po/p6Wmyix6qgCqwQwWaqDaqgCqwYwUUEK0dqkADCiggWj1UAQVE64AqYKaAtiBmummqSBRQQCIJtBbTTAEFxEw3TRWJAgpIJIHWYpopoICY6aapIlFAAYkk0FpMMwUUEDPdNFUkCiggkQRai2mmgAJippumikQBBSSSQGsxzRRQQMx001SRKKCARBJoLaaZAgqImW6aKhIFFJBIAq3FNFNAATHTTVNFooACEkmgtZhmCiggZrppqkgUUEAiCbQW00wBBcRMN00ViQIKSCSB1mKaKaCAmOmmqSJRQAGJJNBaTDMFFBAz3TRVJAooIJEEWotppoACYqabpopEAQUkkkBrMc0UUEDMdNNUkSiggEQSaC2mmQIKiJlumioSBRSQSAKtxTRTQAEx001TRaKAAhJJoLWYZgooIGa6aapIFFBAIgm0FtNMAQXETDdNFYkCCkgkgdZimimggJjppqkiUUABiSTQWkwzBRQQM900VSQKKCCRBFqLaaaAAmKmm6aKRAEFJJJAazHNFFBAzHTTVJEooIBEEmgtppkCCoiZbpoqEgUUkBwEun///m3btWt3EEXpVFNTs0eTJk3k03Tr1q2rmzZtupq/rWrRosUrEydO/CgHxbVaBAXEqtzpGLvwwgvbb9q0qR8Q9CXHw/n+apE5vwc0Szn/oebNm88GmNVFpov2NAUkoNCXl5cfSuWu4HNWSm4/Suty07Rp0/6UUn65y0YBCSCkw4cP/zoVeSxgnJ2Fu7QqC/hcDShLs8g/5DwVEM+jN2zYsH5U3krgaJOxq9XYuWrq1Kn3ZGwnqOwVEE/DxcC7JQPvu3HvYssu/m7dunUD58yZs96yXS/NKSAehmXo0KH70GI8KANwR+69QZfuNLpcrziy741ZBaSBUMhsERWlY3V1dUdOa02l/aBly5ars5z9YSB+ClOzs7DX3mUtobv1X+wPp8t1v0s/XNtWQAoiQOX8CpWzN5WjDzCcxL/aNhCgxZz3NJ8nudL+Po1A0nIcQz6Lse1NXCjfeUAyO43yhZiHN4FwKR5gHEedvJbPaSZ+UIk+IN0MPhOpTC+b5MFMVUfykbRfNkmfYZqP0eXgyZMnr8jQhrdZRw2IgEGLIQPhHilGaC55XTplypR3GpMns1VPcH7PxqSxda7cXORO/FF0Latt2fTFTpSADB48+IvNmjUbx5XxB1kEQvrv5H0zkNxWTP6Aeg2gFnVuMfllcQ5luofW8bIs8vY5z+gA4Ur9HQLyMB8ZeGd6UKlmU6nOa8gIcBwJHH/O1JGUMgf60+lqPZJSdkFkExUgCRzziUxDg++0AzefmbAzGchv3F7GDMyfoeJ9O22jWeQH8K8B/IHkvTWL/H3MMxpABA4C/DiVcVcHgXiE7tbp9e0Cxwn4U+XAH2OTaDgISGRCIoojCkBGjBixN1dxmSFq5yqqVKzRVKyxhfYBZBGAlLnyycRubK1IDIA0SboxR5tUiBTTwGhNGV2tpyRPWYAolS3F/K1lhd+9gF1m3XJ/5B4Q4LiOq/QYHyJJxRpLxRotvuDX9fh1qw9+GfjwC7qMlxikCy5JrgEZMGBAh1atWq20sBK22MCfTMWSSQIBZAl+dS82oWfnraIcnTzzKRN3cg0IlXA8lfDSTJRrfKabWSXbhlWym1ipuysrdT9ufBb+pGBq+uBJkyYt88ejbDzJLSDMWskV7k0+LbKRrtG5Luaqe5ykYvxxvKzhanQOHiXA/wExLGTMLSC0HmNoPa7zqE7dAiA3JN2rS/FtvEe+mbjyU8pzrUnCkNLkGZC/yyI7X4JReP8AeO/Atyt98c3Qj1kAcr5h2mCS5RIQujD7UiGle+XNwRRvP6Z4fysO0f2byNcF3jhn5sh2b36aZeVvqlwCwhV6CFfoaT7JDiCnAsijCSDyEFKDa7R88n17vnABeooxyPG++1mqf3kF5FYAub5UcdJMjz8nsNDvj8kYZE5WO5Sk6XNDeQHIswASxBqyUjTJJSB0YeQJuHNKESbttFu2bDmisrJySQLIZAAZlrYNy/nNZwxysmWb1s3lFZCFKNnLupoNGCy8bwDAd3LqFT7511hfilnK39g8fTw/l4AwBlnAFfpEnwQvXL8EID/Gt5t98q+xvlCeX9LFsr0lUWPdLPn8vAIyP9l0oWSBUszgBroktyRdrPPxb2aKebvI6krKc5cLwzZt5hIQrtCyy8ipNoUswtajVKhan1h+34VZreVFpPH2FFqQY2lBnvbWwZQcyysgP0cfr5p/KtRaKtTu+FX7NB7dwPdoRfZMKY62s6levnz5blVVVZttG7ZtL6+AyFLse22LuTN7mzdvPuy+++57Uc6jlZvKV/nO0vj4f2BfAOy9ffQtbZ9yCQgbIZQxa7QobbFSyO92ullXSz7c7e9FRZPZtuAO/C4HkMrgHDdwOK+AyDah/3H0/PkOwyDbAbG/1F51b3oKtJvFTqzVHaZPn77BoL4FlySXgCR9/FkAcq6HERlDK1J7l59uljxd+BMPfWwIctk98qKQfC7F19wCQjfrLLpZssuhb8d6Xn+2t7QigwYNasPPbwOyDN5DODbTCu4PICtDcDYNH3MLSNKKvEHl2y8NoVLOYyityLSkFQnmpiFwRNV6SHzyDoh3q3qpZP9ev379vjx6K68X2KWsrKx5ly5dngbkI1OGMO3sVjD2OCSWsUedeLkGRC4ADIRfpvLJK5K9OADkh3RRfl3ojDwezN/lAS9fu1rV3NjswXL9l7wQ0aITeQdkl2TvW3mLa1OLuu7I1OudO3c+sKKioqb+CYB8MoDUPi/i4XERXUJ5yCu6I/eA+NLPlylePkc3dBWmJZGdF716zhuff0OL1z86MpICRwFIAonsaPhdF4Gmkm1lRu2MInZGbwIk4uexLvzcjs1lbFXUo2685IlPVt2IBhCmVPdkSnUh3ZhDrSqMMfrvg2k5phdjV6Z+uZkom0P3Keb8DM9ZxNKY/iyNkbdnRXtEA4hEWF7KSdBlZ8OjLEX8E4DsV0TL8Tl3aEkuoOGRje+s7kaPzS04cyPdKtmuNZrXHOyoPkQFiIjAoL013R1ZDt8zY0jWUdlOKWVJOAP3gwFEdkKRd3LYOFbhc198ftaGsRBsRAeIBIWtP5u1adPmR4AiDzCl/koEKtljvOJtBFtzvl1qJaDV241WT5bvl5ea107Sz9u4ceOwmTNnfpixnaCyjxKQugjJa5+5Qlfw++CUujKLyWscU6KpL3GR1oS8ZbeWvinXsEWMkUYzRpKpcD3qKRA1IHVa0KK05TiPyiebuTVqfEJrIe/4mEFrVGnjVcm8gLQrrdMgbJ6Lv/uY1Gi5m0/aWaS9H5ifMckjljQKSL1Ic6X+En86jQp0BhWpK98HFJzyKj/XfvjfP/i8wJX3L64qy5AhQ3oASzf8+GayWkDuyO+BP3tIi8jP/+JbZqHeEX/5eRnfL5YyLnJVVld2FRCUp6vVjcrTnk8Zv+5OJeqWBGS/+osd+d8a/re0LmD8v4ouyhq+lybAyP8zO2RbVfbY+gYGDqDV+hrf0vXqiG15MWlb/JAxVQdxQHzl9/V8r+fXdXzkGZnXE7gF8NfYq+ufmTmbg4yjBESAoHKdSfzk6luW5hoo8ntToOF7Hp8naWGMgWFJStOVK1ceRj495UO+8vqE9mnWO/KVB58W872I1mjR2rVrl3BjUKZ69UCBaABJoBhCRehTv1XIsiZgT1qWadioLAaWgQMHfoEbhWcmAMveXqkCUURZpcVZJIBv2rTpgdhntXINCFDsTkW7jGCX24SigUo4TSoeY4AHC89JbmCew//64adX23ni0xP4NI9VCPfzkNfqIgDL1Sm5BAQw9gOMG5PWwrcl5C8wZhlFa1LF3fL9qU1XJAC38blm4eNGQJHlMncy8yUTFVEcuQIkaTHuJnLlvkVPxiN8KgQMZp+Opb8vu5t83zc/i/GHcjzGefLG3ieLOT/kc3IBSEFXalSaA+6UArutxWBHxb1pPWS7zrwsH5+H3qNs3P9JKRaNziZ4QJIp2qkEqm5qttEiZJTgI/KtoDsybuTIka14zPYafLyGv+2WkT0n2SZdr9sBfwyt40YnTmRoNGhA6MPfKJUwQ32MsqbSVPKRccYaAD6F8dCvyGhfo8zCSfQ2kFxMmR8Kx+WdexokINKl4mq8yMdWg0rSR8YZ8vwJ07UTCIFXL/LZeZUo+Yy5TA+PnDFjxqqSc/Igg+AASbpUAodXs1PJIFzgkFZjGK2GjDVs38PwoErV3sFfK91JupfScgZ9BAUIXapyxL/bNzioAZfLWINv2UVlEv6F/nq1VCo1sZrCTNcIMgv2watgABE4EFp2RPfpkIH4KNkETgbiGzZseIDffXsviWu9/sCzN30nTJjwiWtHTOwHAYivcDDeKKNLtXTAgAEdWrduLY/yHmEShAjSPMfDWL1DXLbiPSCewiH3NsoFjmQwLq93tvVYbKg8vcrOjMezM+P7IRXAa0CSBYbPeyboCuDoJoPxZEfEpxhzyJIRPXaiAGOS5bIimS7pO6GI5S0gyVSubD7t02zVR3XdKp7s68wCPmk58n5/I+26vIIMjwkFEm8BYTboec/uc2yDg4eWOgLKEk9WCKddgTPPT1oS7hF1r3uRUOYGSzDgJSB0XSook9wl9+YAiMNlzCEPMb311lvyerfjvXEuQEeAZGHynkOvp4C9A8TTcUfdfQ55O+1dtByXB1gnfXT5Nrpa1/noWJ1P3gHiW9dK1lVxpSsXwWjZZMsd2chNj5QUoGX+Hi2zbOTn5eEVIB52rWQ6V+51rGGpehc2S3iJ1sPrB5u8rGUNOCXLUvgciMbv+ui7N4D4OGtVN+4gcLKE5Dng6O5jEEP3CUCqaKWz3grWSCZvAPGt9SBo4wnaqKRrFdzbaI1qg8NEyWPI4x26sF3TXgDiYeux7WYgj8cewuOxf/MtcHnzRx684tOVrpbsVOnN4QUgtB5ypZZnyb04uJr1lGc6xBm6VvPpWp3khWM5dwJAHqDVPsunYnoBCJXQm9c1y3MdBKlMgkTLdhzPdcjdcj0sKID2cnSX+00WzBVlwjkgVMIyKqHcePPiKGw9aNnkPRmN2szai0IE7ASAPMwF6gxfiuAcEFqPaXRhhvggSGHrARy98Um2t9HDsgIFs4eWLX/enA+AfOjLgsR6rcdC5OrlPEJxOjCXO+xn+1B0p4D4tKykXushy9d113N3NbSGbncn3tD1njsXPrXsFBDP7n0MlUdnRRT8khm12nsgejhT4AbiIa/Ic3o4BYTxRxXdqxOcKpAYp3vVQZaU8LaplrxtSt7A9AUf/IrVB1r0dxmsd6L8Tlf7ugbEi/FH4YJEoJVXm8nryfRwrABxOJFtTR936YYzQJL9dL14oyqB6Esg5kkgAGQKvw91GRS1/akCXLh+Risi27U6O1wC4s39D/q623QAkPcBRN5TqIdjBQDkrwDSw6UbzgDxZXlJvTvnBzF7ssxlQNT2ZwrIbXUeze3g8tFcl4BUIIUPj9XeRAsivsjs1Ui+7tFK6o8CTJ6cw+TJHFceRQ9IvYWJM+lene8qGGr38wrIVrN0s65wpY0CUlPThSvUm0kL8hLf33IVDLW7XUAWJJs7OJHHGSAMhsdxtb7MSakLjBYM0JvQxdrMv5q69knt/984RO6H7OVKE2eA+HAXvXCAzkZwXdkI7gVXgVC7O1aAfX07utrX1xkg8iZaJJGPy2NN3bMHACsvupnt0hm1vUMFZLvSxS70cQaIi8I2ZBNAhvP/Sb75pf7UKnA2gMx1oYUCkqgOIJfw470ugqA2d6rARQAycadnZXCCAvIZIFfy4x0ZaKxZlqgAY8XRDNTHlpiNUXIFJJGNWbXrmVW71UhFTZSpAgByJ4BclamRHWSugHzWglTwow939l3UA69tJu86lDGi9UMBUUCsV7rGGix8HKGxaUs9XwFJFEx2VykrVVBNn74CdH2X1j2OkH7uDeeogNhWXO0FpYACElS41FnbCiggthVXe0EpoIAEFS511rYCCohtxdVeUAooIEGFS521rYACYltxtReUAgpIUOFSZ20roIDYVlztBaWAAhJUuNRZ2wooILYVV3tBKaCABBUudda2AgqIbcXVXlAKKCBBhUudta2AAmJbcbUXlAIKSFDhUmdtK6CA2FZc7QWlgAISVLjUWdsKKCC2FVd7QSmggAQVLnXWtgIKiG3F1V5QCiggQYVLnbWtgAJiW3G1F5QCCkhQ4VJnbSuggNhWXO0FpYACElS41FnbCiggthVXe0EpoIAEFS511rYCCohtxdVeUAooIEGFS521rYACYltxtReUAgpIUOFSZ20roIDYVlztBaWAAhJUuNRZ2wooILYVV3tBKaCABBUudda2AgqIbcXVXlAKKCBBhUudta2AAmJbcbUXlAIKSFDhUmdtK6CA2FZc7QWlgAISVLjUWdsKKCC2FVd7QSmggAQVLnXWtgIKiG3F1V5QCiggQYVLnbWtgAJiW3G1F5QCCkhQ4VJnbSuggNhWXO0FpYACElS41FnbCvwPO9yRI5YyhpIAAAAASUVORK5CYII="},"54e1":function(t,e,o){"use strict";var n=o("7d31"),i=o.n(n);i.a},"5df3":function(t,e,o){"use strict";var n=o("02f4")(!0);o("01f9")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,o=this._i;return o>=e.length?{value:void 0,done:!0}:(t=n(e,o),this._i+=t.length,{value:t,done:!1})})},"695c3":function(t,e,o){e=t.exports=o("2350")(!1),e.push([t.i,".backgroundE[data-v-d2df5580]{width:100%;height:%?30?%;background:#ddd;border-color:#bbb}.left[data-v-d2df5580]{float:left}.right[data-v-d2df5580]{float:right}.title-box1[data-v-d2df5580]{width:100%;height:60px;color:hsla(0,0%,40%,.4);font-size:18px;line-height:60px;background-color:#fff;text-align:center}.nnews[data-v-d2df5580]{width:96%;height:%?400?%;margin-left:2%}.jifen[data-v-d2df5580]{width:100%;height:%?300?%}.jifen uni-image[data-v-d2df5580]{width:100%;height:100%;border-radius:%?20?%}.goodsWrapper .titleWrapper[data-v-d2df5580],.spikeWrapper .stitleWrapper[data-v-d2df5580]{padding:%?20?% 0 0 0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.goodsWrapper .titleWrapper .titleImg[data-v-d2df5580],.spikeWrapper .stitleWrapper .stitleImg[data-v-d2df5580]{display:block;width:%?36?%;height:%?36?%;margin:0 %?20?%}.goodsWrapper .titleWrapper .titleWord[data-v-d2df5580],.spikeWrapper .stitleWrapper .stitleWord[data-v-d2df5580]{font-family:PingFangSC;font-weight:700;font-size:%?36?%;color:#fb9529;font-style:normal;letter-spacing:0;text-decoration:none\r\n\t/* flex: 1; */}.goodsDetailWrapper[data-v-d2df5580]{width:100%;height:auto}.goodsDetailWrapper .goodsDetail[data-v-d2df5580]{width:33.3%;height:200px;overflow:hidden}.goodsDetailWrapper .goodsDetail .goodsImgWrapper[data-v-d2df5580]{position:relative;width:70%;margin-left:15%}.goodsDetailWrapper .goodsDetail .goodsImgWrapper .goodsImg[data-v-d2df5580]{width:100%;height:%?200?%;display:block}.goodsDetailWrapper .goodsDetail .goodsImgWrapper .goodsWord[data-v-d2df5580]{position:absolute;left:%?-30?%;bottom:%?-18?%;width:%?60?%;height:%?36?%;line-height:%?36?%;font-size:%?24?%;color:#fff;background-color:#f76161;border-width:0;border-style:solid;text-align:center}.goodsDetailWrapper .goodsDetail .goodsNameWrapper[data-v-d2df5580]{margin-top:%?35?%;margin-bottom:%?16?%;padding-top:%?17?%;width:90%;margin-left:5%;border-top:%?2?% solid #d9d9d9}.goodsDetailWrapper .goodsDetail .goodsNameWrapper .goodsName[data-v-d2df5580]{font-size:%?24?%;font-family:PingFangSC;font-weight:400;color:#666;letter-spacing:0;height:%?50?%;line-height:%?40?%;width:100%;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.goodsDetailWrapper .goodsDetail .goodsNameWrapper .priceWrapper[data-v-d2df5580]{font-family:PingFangSC;height:%?45?%;line-height:%?45?%;font-size:%?28?%}.priceWrapper .salePrice[data-v-d2df5580]{font-weight:700;color:#f76161;letter-spacing:0;font-size:%?24?%;margin-right:%?10?%}.priceWrapper .price[data-v-d2df5580]{font-family:PingFangSC;font-weight:400;font-size:%?24?%;color:#bbb;letter-spacing:0;text-decoration:line-through}\r\n/* 秒杀开始 */.spikeWrapper[data-v-d2df5580]{width:100%}.spikeWrapper .spikeContentWrapper[data-v-d2df5580]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:%?20?% 0;border-bottom:%?2?% solid #d9d9d9}.spikeContentWrapper .spikeConImgWrapper[data-v-d2df5580]{width:%?250?%;height:%?250?%}.spikeContentWrapper .spikeConImg[data-v-d2df5580]{width:%?190?%;height:%?190?%;margin:%?30?%;max-width:100%;max-height:100%}.spikeContentWrapper .spikeConWordWrapper[data-v-d2df5580]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-right:%?20?%}.spikeConWordWrapper .spikeConTitleWord[data-v-d2df5580]{font-family:PingFangSC;font-weight:400;font-size:%?28?%;color:#101010;font-style:normal;letter-spacing:0}.spikeConWordWrapper .spikeConSaleInfoWrapper[data-v-d2df5580]{margin-top:%?20?%}.spikeConSaleInfoWrapper .spikeconSaleInfo .sale[data-v-d2df5580]{text-align:left;width:%?90?%;margin:%?10?% 0;padding-left:%?8?%;height:%?30?%;border:%?2?% solid;color:#f76161;border-color:#f76161;font-size:%?26?%;line-height:%?30?%}.spikeConSaleInfoWrapper .spikeconSaleInfo .saleMoney[data-v-d2df5580]{font-family:PingFangSC;font-weight:700;margin-top:%?10?%;font-size:%?32?%;color:#f76161;letter-spacing:0}.spikeConSaleInfoWrapper .spikeconSaleInfo .money[data-v-d2df5580]{font-family:PingFangSC;font-weight:400;font-size:%?28?%;color:#666;letter-spacing:0;text-decoration:line-through}.spikeConSaleInfoWrapper .spikeconSaleTime[data-v-d2df5580]{text-align:center}.spikeConSaleInfoWrapper .spikeconSaleTime .time[data-v-d2df5580]{font-family:PingFangSC;font-weight:700;font-size:%?24?%;margin:%?10?% 0;color:#f76161;letter-spacing:0}.spikeConSaleInfoWrapper .spikeconSaleTime .begin[data-v-d2df5580]{height:%?50?%;line-height:%?50?%;font-size:%?36?%;background-color:#e60b30;border-radius:4px;text-align:center;color:#fff}\r\n/* 拼团开始 */.assembleconSaleTime .assembletime .clock[data-v-d2df5580]{margin-top:%?10?%;height:%?30?%;width:%?30?%;margin-right:%?8?%;margin-top:%?14?%}.assembleconSaleTime .assembletime .timeDiv[data-v-d2df5580]{font-family:PingFangSC;font-weight:700;font-size:%?28?%;color:#f76161;letter-spacing:0}.assemblebegin[data-v-d2df5580]{vertical-align:middle;height:%?38?%}.assemblebegin .assembleNum[data-v-d2df5580]{vertical-align:middle;height:%?38?%;width:%?38?%;margin-right:%?8?%}.pNumber[data-v-d2df5580]{font-family:PingFangSC;font-weight:400;font-size:%?24?%;color:#666;letter-spacing:0;margin-right:%?8?%;vertical-align:middle}.progress[data-v-d2df5580]{width:50%;margin-top:%?14?%;vertical-align:middle}.bottomImgWrapper[data-v-d2df5580]{margin-top:%?20?%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.bottomImgWrapper .bottomImg[data-v-d2df5580]{height:%?80?%;width:%?394?%;color:#fff;background-color:#f76161;border-radius:62px;font-size:18px}",""])},7822:function(t,e,o){"use strict";o.r(e);var n=o("c1de"),i=o.n(n);for(var r in n)"default"!==r&&function(t){o.d(e,t,function(){return n[t]})}(r);e["default"]=i.a},"7d31":function(t,e,o){var n=o("695c3");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("6aa88358",n,!0,{sourceMap:!1,shadowMode:!1})},"7f8b":function(t,e,o){"use strict";var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"uni-countdown"},[t.showDay?o("v-uni-view",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,background:t.backgroundColor}},[t._v(t._s(t.d))]):t._e(),t.showDay?o("v-uni-view",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("天")]):t._e(),o("v-uni-view",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,background:t.backgroundColor}},[t._v(t._s(t.h))]),o("v-uni-view",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"时"))]),o("v-uni-view",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,background:t.backgroundColor}},[t._v(t._s(t.i))]),o("v-uni-view",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"分"))]),o("v-uni-view",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,background:t.backgroundColor}},[t._v(t._s(t.s))]),t.showColon?t._e():o("v-uni-view",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("秒")])],1)},i=[];o.d(e,"a",function(){return n}),o.d(e,"b",function(){return i})},"83e3":function(t,e,o){e=t.exports=o("2350")(!1),e.push([t.i,".uni-countdown[data-v-8736f4e8]{padding:%?2?% 0;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.uni-countdown__splitor[data-v-8736f4e8]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;line-height:%?44?%;padding:0 %?5?%;font-size:%?28?%}.uni-countdown__number[data-v-8736f4e8]{line-height:%?44?%;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:%?44?%;border-radius:%?6?%;margin:0 %?5?%;font-size:%?28?%;border:1px solid #000;font-size:%?24?%;padding:0 %?10?%}",""])},"83e6":function(t,e,o){"use strict";var n=o("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(o("f499")),r=n(o("c997")),a=new r.default,s=function(t){};s.prototype={url:"wss://eapie.eonfox.com:9999",connect_type:0,debug:!1,close_type:0,token:"",open:!1,client_id:"",server_time:0,messages:[],message_max_number:10,messages_change:function(){},heartbeat_interval_id:null,heartbeat_ms:15e3,heartbeat_messages:[],heartbeat_message_max_number:10,heartbeat_messages_change:function(){},connect_parameter:null,debug_message:function(t,e){if(!s.prototype.debug)return!1;console.log(t),uni.showToast({title:t,icon:"none",duration:3e3}),"function"==typeof e&&e()},get_data:function(t){return!!t.data&&JSON.parse(t.data)},set_heartbeat_messages:function(t){this.heartbeat_messages.length>=this.heartbeat_message_max_number&&this.heartbeat_messages.pop(),this.heartbeat_messages.unshift(t),"function"==typeof s.prototype.heartbeat_messages_change&&s.prototype.heartbeat_messages_change()},set_messages:function(t){this.messages.length>=this.message_max_number&&this.messages.pop(),this.messages.unshift(t),"function"==typeof s.prototype.messages_change&&s.prototype.messages_change()},messages_change_function:function(t){s.prototype.messages_change=t},heartbeat_messages_change_function:function(t){s.prototype.heartbeat_messages_change=t},session_websocket_token:function(t){if("function"!=typeof t){var e=a.token();return function(){try{return e["session_websocket_token"]}catch(t){return!1}}()?e["session_websocket_token"]:""}return a.submit({callback:function(){var e="",o=a.token();(function(){try{return o["session_websocket_token"]}catch(t){return!1}})()&&(e=o["session_websocket_token"]),t(e)}}),!0},get_token:function(t){var e=s.prototype.session_websocket_token();e?(console.log("get_websocket_token 已存在",e),t(e)):(console.log("get_websocket_token 不存在,异步获取"),s.prototype.session_websocket_token(function(e){t(e)}))},connect:function(t){s.prototype.connect_type=1,s.prototype.not_android_connect(t)},android_connect:function(t){},not_android_connect:function(t){var e=this;s.prototype.debug_message("websocket.connect 连接 websocket"),s.prototype.connect_parameter=t,s.prototype.get_token(function(t){t||s.prototype.debug_message("websocket.connect 连接失败!没有获取到 websocket token"),uni.connectSocket({url:s.prototype.url,success:function(){e.set_messages({state:!0,content:"连接webscoket成功"}),s.prototype.token=t,s.prototype.debug_message(" uni.connectSocket 连接webscoket成功!token:"+t)},fail:function(){e.set_messages({state:!1,content:"连接webscoket失败"}),s.prototype.debug_message(" uni.connectSocket 连接webscoket失败!token:"+t)}})}),uni.onSocketOpen(function(){s.prototype.close_type=0,s.prototype.open=!0,s.prototype.debug_message("uni.onSocketOpen WebSocket连接已经打开监听!"),t&&"function"==typeof t.onSocketOpen&&t.onSocketOpen()}),uni.onSocketClose(function(e){s.prototype.token="",s.prototype.open=!1,s.prototype.client_id="",s.prototype.heartbeat_interval_id&&clearInterval(s.prototype.heartbeat_interval_id),t&&"function"==typeof t.onSocketClose&&t.onSocketClose(e),0==s.prototype.close_type&&(s.prototype.debug_message("uni.onSocketClose 非手动关闭,开启心跳守护"),setTimeout(function(){s.prototype.connect(t)},s.prototype.heartbeat_ms)),s.prototype.debug_message("uni.onSocketClose WebSocket 已关闭!")}),uni.onSocketMessage(function(e){console.log("onSocketMessage!!!!!!!!"),setTimeout(function(){console.log("setTimeout!!!!!!!!"),s.prototype.debug_message("onSocketMessage 获取 websocket 数据:"+(0,i.default)(e));var o=a.websocketToken(),n=s.prototype.get_data(e);if(n.data&&n.data.client_id&&s.prototype.client_id!=n.data.client_id||n.data&&n.data.server_time&&s.prototype.server_time!=n.data.server_time||s.prototype.token!=o)return n.data&&n.data.client_id&&s.prototype.client_id!=n.data.client_id&&s.prototype.debug_message("websocket 连接ID 不一致",function(){console.log("websocket.prototype.client_id != r.data.client_id",s.prototype.client_id,n.data.client_id)}),n.data&&n.data.server_time&&s.prototype.server_time!=n.data.server_time&&s.prototype.debug_message("websocket 服务器时间 不一致",function(){console.log("websocket.prototype.server_time != r.data.server_time",s.prototype.server_time,n.data.server_time)}),s.prototype.token!=o&&s.prototype.debug_message("websocket_token 不一致",function(){console.log("websocket.prototype.token != websocket_token",s.prototype.token,o)}),s.prototype.init(n.data.client_id,n.data.server_time,o,t,function(){"function"==typeof t.onSocketMessage&&t.onSocketMessage(e)});t&&"function"==typeof t.onSocketMessage&&t.onSocketMessage(e)},0)}),uni.onSocketError(function(o){setTimeout(function(){s.prototype.connect(t)},s.prototype.heartbeat_ms),t&&"function"==typeof t.onSocketError&&t.onSocketError(o),e.set_messages({state:!1,content:"连接webscoket失败",error:o}),s.prototype.debug_message("uni.onSocketError WebSocket连接打开失败,请检查!error:"+o)})},init:function(t,e,o,n,i){s.prototype.open,s.prototype.token;s.prototype.open&&t||(_this.set_messages({state:!1,content:"websocket 初始化失败",error:""}),s.prototype.debug_message("websocket 初始化失败!")),a.submit({request:{s:["SESSIONWEBSOCKETSELFCLIENT",[{client_id:t,server_time:e}]]},callback:function(){s.prototype.client_id=t,s.prototype.server_time=e,s.prototype.token=o,s.prototype.heartbeat_interval_id&&clearInterval(s.prototype.heartbeat_interval_id),s.prototype.heartbeat_interval_id=setInterval(function(){s.prototype.debug_message("websocket init 心跳检测"),s.prototype.heartbeat(function(t){s.prototype.debug_message("websocket init 心跳检测失败",function(){console.log("websocket_init 心跳检测失败返回值:",t)}),clearInterval(s.prototype.heartbeat_interval_id),s.prototype.connect(n)})},s.prototype.heartbeat_ms),"function"!=typeof n.initSuccess&&(n.initSuccess=function(){}),n.initSuccess(),s.prototype.debug_message("websocket init 初始化成功"),s.prototype.set_heartbeat_messages({state:!0,content:"websocket init 初始化成功!"}),"function"!=typeof i&&(i=function(){}),i()},error:function(t){return s.prototype.debug_message("websocket init 初始化错误"),s.prototype.set_heartbeat_messages({state:!1,content:"websocket init 初始化错误!",error:t}),n.initError(t)}})},heartbeat:function(t){var e={open:s.prototype.open,token:s.prototype.token,client_id:s.prototype.client_id};if(!s.prototype.open||!s.prototype.token)return"function"!=typeof t&&(t=function(){}),s.prototype.debug_message("websocket heartbeat 初始化失败!"),s.prototype.set_heartbeat_messages({state:!1,content:"websocket 初始化失败!"}),t(e);var o=(0,i.default)({module:"heartbeat",application:a.application,token:s.prototype.token});uni.sendSocketMessage({data:o,success:function(t){s.prototype.debug_message("websocket heartbeat 保持心跳成功!"),s.prototype.set_heartbeat_messages({state:!0,content:"websocket heartbeat 保持心跳成功!"})},fail:function(o){return s.prototype.debug_message("websocket heartbeat 保持心跳失败!"),s.prototype.set_heartbeat_messages({state:!1,content:"websocket heartbeat 保持心跳失败!",error:o}),t(e)}})},restart:function(){s.prototype.close(),s.prototype.connect(s.prototype.connect_parameter),s.prototype.debug_message("重启 websocket")},close:function(){s.prototype.open&&1==s.prototype.connect_type&&uni.closeSocket(),s.prototype.close_type=1,s.prototype.token="",s.prototype.open=!1,s.prototype.client_id="",s.prototype.heartbeat_interval_id&&clearInterval(s.prototype.heartbeat_interval_id)},user_push:function(t,e,o){var n={open:s.prototype.open,token:s.prototype.token};if(!s.prototype.open||!s.prototype.token)return"function"!=typeof o&&(o=function(){}),o(n);var r=(0,i.default)({module:"user_push",application:a.application,token:s.prototype.token,user_id:t,message:e});uni.sendSocketMessage({data:r,success:function(t){s.prototype.debug_message("websocket 消息推送成功!",function(){console.log("user_push",t)}),s.prototype.set_messages({state:!0,content:"websocket user_push 消息推送成功!"})},fail:function(t){return s.prototype.debug_message("websocket 消息推送失败!",function(){console.log("user_push",t)}),s.prototype.set_messages({state:!1,content:"websocket user_push 消息推送失败!",error:t}),o(errorData)}})},admin_push:function(t,e){var o={open:s.prototype.open,token:s.prototype.token};if(!s.prototype.open||!s.prototype.token)return"function"!=typeof e&&(e=function(){}),e(o);var n=(0,i.default)({module:"admin_push",application:a.application,token:s.prototype.token,message:t});uni.sendSocketMessage({data:n,success:function(t){s.prototype.debug_message("websocket 消息推送成功!",function(){console.log("admin_push",t)}),s.prototype.set_messages({state:!0,content:"websocket admin_push 消息推送成功!"})},fail:function(t){return s.prototype.debug_message("websocket 消息推送失败!",function(){console.log("admin_push",t)}),s.prototype.set_messages({state:!1,content:"websocket admin_push 消息推送失败!",error:t}),e(errorData)}})}};var c=s;e.default=c},"8d13":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAVYElEQVR4Xu2dUXLbNhPHQaUPiWfaxCeI++akD0lOEPcESS9QyydIeoI4J6hzAtu9QNUTVDlBnYfaefvUE8ROZ+w+1MT3X5KqZEWyQHIXBMDlTCZpBYLgAj/uLnYBZEYvlYBKYKUEMpWNSkAlsFoCCoiODpXALRJQQHR4qAQUEB0DKoFmElAN0kxueldPJKCA9KSj9TWbSUABaSY3vasnElBAetLR+prNJKCANJOb3tUTCSggPelofc1mElBAmslN7+qJBBSQDjv60+F3T7+6c32fmpDb7Kkx2YPlzbHng8yezP/27/Wdi829P2/8vw5fJdlHKyCCXfvpcHvrqzvm4XTwW2sBgQEEBAP9zXHZCWqZZCabmIz+NidZlp9//ePH9xy1970OBYRxBPz9y/ZzgsFas4NqSSNsMVbfpKqTzNhxlmXj6zz/sLn3kWDSq4YEFJAawlos+vn48QsLEKAZAERGUAR+WdI0ACYHMP/8trk3OQ+8wZ03TwGp2QUFFNa8BBgvcSuTmVSzEWzF7Qi+zeg6N+9VuywXqgLiMNjSgmLlC8N3sUd5bqFZ1BSbSkkBWTFeyMEeZIM3aWgKh6/AjSJ2BLPxHUAZ170ztfIKyEKPAowdOLWv4FOQCdX362SQ5Qff7H487qsgFJCq5z8fb+9iBmoYh7PtfbieZ5k5yPP8uG/mV68B+XS49WAwuLcLp/t1AFOy3kd9kwdi2vggt1dv+zID1ltAKo2xr2A0wcRUGuUSfkraU8W9A4TSOxAH+FlNqUZgLNxkJ5gm3k/ZR+kNIIU5lW38jFkp+Bl68UrATjDrtZfirFcvALk4fvym9DNiD+zxDmvu2lL0T5IGpDSn7CEGAiUH6uVFAmlpk2QBuTh+9MraDE64ag0vXCw8JBVtkhwg5Gtk2T1oDQ30dQHGzWfGr02SAqSMgg9+Va3RPRrzLUCQcf/+7unbsFrl1ppkALk4eoQZqowccb2ClADld11hpiuuuEn0gFQmFbRGDOsxghy5Pht1Ar8QkMSzVDhqQEo4Nn7XWSqfY7z1s87LmMnZqHVNHiqIFpBqCpfgiHzR0oJba80HY2y10i/DB8A88TAOvD+C0y8pliYMshe06UWeZ1jPwqehogQkVmccwcpq8GfjckTmxd91ItCkNY25S3GdLWMG+GPxh/5tEPPJih1SYrkw+I7uD0/3mra3WprwZtG8blvvfHuiAwRCGWKmioJ/QV8wIy7QQGzLQzDk4zoQNH0x0qrGXNNmETu0c0oM2qfJYHZZmlAu+DprPWkTFSChw1FpiCN82QEEn5pvDkyhbbDwa/ASsMAECfaC8375/boZrroZ2Khzc12d6yQSDSChwjGDwo5CXkxUmWYhw7IUknLNzgayIurn0lmbA7p2y4ajACQ0OCrzCbMwdj9kKFZ9HcmphVYZov0wV7OH676iHn8/eTA8fUbPK/cEyF4htoV2NpuI6QUgIcFRgpEdGHN50FZ1exx0tz6K5It3IlCeh9Am8kmoHRzLEpIHpJrK/aPrjgMYf1Xaoui8FC+aEQIo+6GAwiFjaKPWFlLrCjheZFkdIcQ5So1hX8OMShaMRdlXoBwFZno1GmbJAhIIHO+MuYKPEVfuUKORtOSmyvQijRKSj+L8eqT1Mc0LX6vdFZwGqXKrYFZlrV+uiWgg2PfkvMbofDd539vuKWe+7hEk2Ccsrov6EYDAbGx3BQfI+dEjSjz0vmlbNTMFMOLIEWrX7fXujtHsShKQT4ePXuNrhR1H/F6qNdbLu9QmG+gfg9SO8K/kIuldzVghAIVN0E73w+/yMFqIjxhpd3Lig8774urXIEysKm39fxC8t8zcauqWfI1xGEMvnlZUgcZRyLle6N+fYC4jZtXuCgIQ+B1IW/e34KlMD7nc6esMVbshU95dOfAH0CS7HPVx18ERJKQ2dQ7Ip8PHmCXxZ9cCjt8ABzRHP6dvuQbibF/jMHeOSQIQ334H1C52Jz8bcg2SPtbTJnnQp7w4Mnk71yA+TSsup81nJ4f0rLkDhaL4wHBE0TsFxOeULtQt7Rt7FNKAi6UtFAPBSVu7HMmDPt85akB8zlpxzYf77NwQnrVqOWsIbVvXBq4gYWcaxFe0XH2OdUPpy99TOB4iakCqDRdoNxLRS+GoL96u8+Dqt3j5HZx973Wa11cH0FQuouPe87nqdPDsaOn/diWZZCab5LY4B3Bcpy6usj79Qq42L6uHc0LGMyDyMY/Qg4BuJowdY5vOH3zHagDIOIUFU1EC4sMxLzNyB4iQd7+jyLIvW711LrQz+tUzn5CkA4jFx4UnK9ubBvERMQ95OrehefnfJgaSJsm07nRMrPa7mUxl4g0QzFwhGTHbkupoTsdMoo1NPxA+oa/yqyahZ+qu6x9skA3Ny2NFeAFEemcS8jvglAd9zFqLD4RnLUK7M+bI1I1zqS3BwxUk9BYHaTE41n0sit85vxhOD6xZqG3OGWeHuzS9WhyFNR9B78a48lU45SWuQTxoj+AXPLWN/XT1Aag2bqCU9qAXR82Twm1NiAMiqT3KRU9XT33O9Lh8gRfLtAeEz+ms2/5yQ2xL2iSKYxg4o+jiJhYtz8TXh84MFLm4cv5FGjdXacyAzM1wkSYJfneTyAB5TMsyRXYVjyFaPhtcxeGijdNrQvkQxLAenTNIKKpBqsDgJ4mvcxkQvNoK3bRKDRB6n2oqmGa5gtjLd3F8RQSI3BY+3EKQgHi+zhRMrC/9Kvm0oSb9wh03EnPSz48e06bT7LGJ2LRH+dVNw8RaNvmA4G9Q+/hym6MigLSd97/tyxGb9kgZkJnJtRFMzCQSQB6JzXhAAN/Gtm9uqhrkphn5iM4DpH18O42ZcG3WMH03EQ0C84qcc/ZN4ELPt1ql+foASKlNuo+ZcEbRRWaxZM2r+LRH6ibWl35JdzvCk3+KNHfWDzO7BmmatbpuxoI7ALTueZy/90WDLJhc3vfwlRgjAoDIrErjnr7jBGBdXX0EpNKcW9Usl5eYSfCASAUHJVTnukHN+XtfAZnKUMqqWOwjCR+VVYNI5V5JvDgnAOvq6jsgUz8M2oQi8GKzXBIhAG5ARKZ3u0r3XjfwXX9XQEpJSa8zCR4QidR2rsMYXQezRDkF5KZUpda+cwcJWad5aXNjZKzSITisV+zmVd+meV07XyJmEjogrVK6VwkWgLBt4eLaedzlVIMslyj3ITwSWRZsPojUTAV36gD34HepTwG5XUpc60y4o+jMJhb/4iju9cUug1mijAKyXqoc5x4GDYhEervErMT6ruIvoYC4y7SpJSL1MWUzsQAIzljhvSScLt4WutWmgLjJaVqK5FU3ZiK1BJsFEKkExRT8D53FqgfHDJIi6dF5aa/Ux5QJEP7dS2JPL5kfFqpBmkFSflzWL92WDAUwAcK/Plki8ax5N7W7UwFpK7/V26FKwsE2iwXKaV0y64HyKZ0tqIC0A2TONxnieIst/DftdXBCfgrXJtWrWsikQfhT3AHIT1j8csAj2m5rUUC6lX+bpwcMSHfbbbYR6LJ7FRBuifqrL2BA+M548CfO5U9SQLrugebPZwFEIgYiERVtLqZ2dyog7eTX5d0KiAfpKyAehCz0CAVESLDz1SogHoQs9IjWgEhE0aXyaoRkuLZaBWStiIItwABIu31nl0kmpSAhvZ8CEuz4X9swBWStiNoXUEDay7CrGhQQD5JXQDwIWegRCoiQYNVJ9yBYD4/gAIR9swb1QW72vFQqt4fxFf0jWgNCEuAOFCogCkgoZCkgHnpCfRAPQhZ6RJCAkFJCqsmm0Dt7r1YB8S5ytgeGCojRXKxZH6sPwjbea1cULCCprEenHlENUntcBnMDCyBYUTjBisKHnG+V0ldTAeEcGX7r4gJkzH2wvAKiJpZfFJY/jQsQgTXp5u3m3ul+CEJq2wYGDbKHk32P2rZD768vASZAJHY1UUAWoiFjxIcIlEn9btY7mkqACZD1exfVbWBKwcK2GmRedllm9vP88t3m3uS8rky1fH0JMAHCn/KOV0kmFsIJSNnFdjLI7P43ux+P63e53lFHAkyAfPc0y+wfdR7sUlbivAeX53KX4Qdk2kILs2uA7ZH+xB5ReklIgAUQahh3PlbxnbR5Es6p1Olb0wGRGXuQ2ytMaqjZxQ0JGyAysRALW/vsNfdLd1EftvXHRszmheCzz6HF9+/vnr0TfEbvquYEhH2qF71xgpSTZyn0SnlATHYieQxyJacTaF6YXR/HKcit63fgBOQ1Ov9n7hdKKyer2ISZgqpiZ4XPzC5zlNtLgKJmV5sxyQiIlKMe/yGe8x0kcbrrLQMAZpc5uL97+rbNIOnzvWyAyDnq9hh+yDC1Tmp61FgzOdhJFWRUs6umAFkBgaPOnpNFE2QprQ25qU22hzhb/rBmn7UobkflrvkajXcVIjcgB7CvX7k+3LVcCmelr3rX0uTKSW7PXeXRtpxG490lyA3IS3T0r+6PdyspfYqQWytkS2GWC2ZkRqCIO/Dlm5DZZegMlpHsm8VdOzMg2+w7nFTiTdbMumlyFQdX7kto4dXDVKPxtyHMCgg9CM4n5vrNE+7vRipRdRe5lMcgD6BN+OW46vkajV8uGQFA+DN7K5Ng/GB49r3LAEulDJ3winchjeLJ7DLngyx/rUmQsxEkAIiYmYXcrHROnXKFuIzAF9pEMk1loTlkdunaExIKOyCyZlaaMREXWKBNXqIcOfGsa/9vefY5Pkjf9z1TWAgQKTOryPD9tq/z+J8OyYnfQEqPeeMCFUMZQHIJefc3XUUIEEkzK52luE0HsN/YiR3B9/uhaVtjv08EEEkzC3X3/qs2HXS+Yid91tqCgEiaWf31RRa/yKXZdY98k12przUCisnsMFNXRoKAyJlZ9JJ9/qot62TJ2ElKG2gEA0hpZj2SWERVvaPtXVzEpXMpSxifD1qbwxY7UUBcJN+gjMQJuPPNSGn3xQbiXXlLtXqRPk4sCZAKCGfvLNQllAI/fUoyS3IluoArdqI+iETvVHXSTIvkmgd83ZLZ2EGiGyonvlUCZJ/9PTEnfb6zJXY8UVOrHk5NYyd9/wD5AkRkQ4fZEKG1DVfP+hzxdcWlTgIkTKsPxlzu9FmungAp5urpDBG2mZXFAYEXObo/PN1zHSh9LucSOwEcvwGOoQQcpM3uDK6fWDPYon5A351c5/mHEFOIvABSTvny7wC/OMhTXporAXQ124VpYYOFbtlzyO8Cw3VMS4C599UiKAeDjVd4xhDPKMD48gpvz2FvgJSQ8J9EtSBkzUCVIKllnTSbBgBpcwpYEi5XOOn2vgERWbP+JST9zkB1GYK+yrSYxQziY+cVkEqLSGwNtNjf2H7zEmsZ+pum7QuA257TAo6q2u4nXzoAROQskS/6SZ32bhFpD8e0/d2m23sHpNIigjlas4GhkHQDCR8cZfu7TCnqCBBvO53TFKJO/3rkRCL/rst90ToBpNIiwsFD1SQeuSgeVcHxu/tslXMLO9sXrTNAPDrsRS+oJnEejI0KCsIxNbM62YugY0D8mVoKSaNx73RT5XPQ2TCOcQ6nam8U6soP6RSQSov4iI3MCZuCUFc/6BRw/UG67I6L48dvkJayz1Pb6lp6C0gJifj5fQuSp/n1ASDR02HbDOyLo8eH1phhmzpc7+05IPLJjEs6ApHa4iy/I9dO0nKlBCivKss2yBnH0Q1+rq6O4uvcxJqKV+4s8ds7kDZtvj88+8lPN8f/lLKfKK8q2/L1NpRZvLl3SjtLer+CAaT8MsltFbRGskhNyXAmu5pcq+RUZONm995Yk3k/lrvLnf2DAqSCxEuUfdlAoJOX9MDLLyXThdaYtoIWbUF7eDPlFt8+OEBKSGTOGHHUz6pNKkF1qTVmgHS7o3+ggBSbNCPr198BMku+HL0+Z/zz8fZubrN9n77GYh90aVpN2xIkIKUWKQ63pNR4sWW6DhqlOGc8zy+xc0o/UudDAIP6JZTNIoIFpITET2q8Kygp+yeVrCka3pm9PzOrwtl7OWhAKkhE99VygGO+SKVR8uMQNxio+S5F8UpjDGFK7TS5n/ueLqd0l71L8IAECEklRzsqzYCPY+5BIl0fma84i3AXU7YAQy5/qu57dJnWvqqtUQASLiSFtTyBEEe5HUCrhBtHoRmpO4O7L9BOimN0bkYtDsgQ4aA2RgNICUkQjvstH8YSlsHAjr7+8eP7ul9Q7vJ//7L9HEDswGyhKHRwUEzfN1Q4ogMkDkjmh7kd06ZomIkbX+eX7yVnwkhDfHXn7hNMzT4FEPAnCp9CLP2cC+aQ4YgSkPgguQHMBP8FLZNNoLtJ2wCe/Pzfa/OXi9NPGmFaG4FgrNlCNi00A/4dAQyxmFXz7YzKxJpveGVujTwei8z10dR6yHOzFpnUZwehCyNaQEpNUqTJEyQsB8WE3lkptK/c3tS+jmWZQdSATAcMsoDpEMtXKQyglN8BcPxlzOBlyLN9i/JPApBSm2wPYYsTKF2mpqQ8vlu9Gx3jZswV4IgrZScZQOacd/VLWg1l/ptjPsItKUBmfskG1pSYF/xdrTXWkUBpUlmcMRJftsH0PZMDZM4voeAYLb5Sk6vOqGYqK3kAD1MTnapJFhDVJk79z16onKUy0BpnI/bKO6gwaUBUm/gdUZS8CUd8PzZH/DYp9QKQmTa51+o4ZL/DLZ6nlYd95hTbGMfTareW9gaQmTYptjslUHbdRKSlVkmgcsKhMdLdW6x3gMyBslOBolH4mt+A6rBPpIlc4rDPuOIaNV81rnT3ui/nUp6WmiK6iwBjdxtEuLQzhDJ9AmMq795qkMUBRyex4v/RmSWqURaE00cwFJAVn+S5s8Np1/lex1DK9BB7lLKPsU4zqwZZCQplCt+FVikc+ofrBJnK71UcAzGMAfyLcJcQ+5K3AuIg6WrtyRBFSaskCUsZ+c5HfdYWy4aCAuIAyHyRGSwZdjmP17Gv/IoxQWHMPwAj7dmomt38X3EFpKnkcF/lr5AZhpkwS8cCBO2zlAE9CyjMOJVUkBbd53SrAuIkJrdCJTDFhgm0TrxTDVMG8cwE7SAtASDSi3K79Uq7UgpIO/mtvbuMs9A1IC1Du4wQPDihicc8K2ea6CIQ7Dn+nMBkOlGTaW3XOBVQQJzEJFeo9Gmul2zPUwBVDfjF5ysAcj1ys2YFxJek9TlRSkABibLbtNG+JKCA+JK0PidKCSggUXabNtqXBBQQX5LW50QpAQUkym7TRvuSgALiS9L6nCgloIBE2W3aaF8SUEB8SVqfE6UEFJAou00b7UsCCogvSetzopSAAhJlt2mjfUng/xPphm7wfOfMAAAAAElFTkSuQmCC"},a72a:function(t,e,o){"use strict";var n=o("cfd5"),i=o.n(n);i.a},b8c5:function(t,e,o){"use strict";o.r(e);var n=o("7f8b"),i=o("363b");for(var r in i)"default"!==r&&function(t){o.d(e,t,function(){return i[t]})}(r);o("a72a");var a=o("2877"),s=Object(a["a"])(i["default"],n["a"],n["b"],!1,null,"8736f4e8",null);e["default"]=s.exports},c1de:function(t,e,o){"use strict";var n=o("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(o("5176"));o("ac6a");var r=n(o("6d58")),a=n(o("c997")),s=n(o("d148")),c=(n(o("a47a")),n(o("83e6"))),l=n(o("b8c5")),u=(n(o("d7a9")),new c.default),d=(uni.createInnerAudioContext(),new a.default),p={data:function(){return{message:"",sjID:"",messageID:"",ypsrc:"",integral:[],categorize:[],a2:[],unionid:"",qiniu:"",merchant_id:"",itemList:[],time_limit:[{price_original:288,price_now:188,img:"http://rs.eonfox.cc/clzy/static/raw_1521976314.png",href:""},{price_original:288,price_now:166,img:"http://rs.eonfox.cc/clzy/static/raw_1521976348.png",href:""}],new_daily:[{img:"http://rs.eonfox.cc/clzy/static/raw_1521976632.png"}],setup:!1,src:"",webviewStyles:{progress:{color:"#FF3333"}},PromptGoodsList:[],classList:"",getSystemInfo:{},VersionNumber:"",system:"",sGoodsList:[],goodsList:[]}},components:{uniIcon:r.default,eonfox:a.default,uniCountdown:l.default},onLoad:function(){},onShow:function(){var t=new a.default,e=this;uni.getSystemInfo({success:function(t){e.getSystemInfo=t,e.system=t.system}}),t.submit({request:{images:["APPLICATIONSLIDESHOW",[{module:"home",label:"APP"}]],config:["APPLICATIONCONFIG"],whenGoodsList:["SHOPGOODSLIST",[{search:{when:1}}]],integral:["APPLICATIONTYPEOPTION",[{module:"home"}]],a:["APPLICATIONTYPEOPTION",[{module:"shop_goods_type",label:"APP首页专区"}]],s:["APPLICATIONTYPEOPTION",[{module:"shop_goods_type",label:"APP首页菜单"}]],shopGoodsList:["SHOPGOODSLIST",[{search:{group:1}}]]},callback:function(t){var o=s.default.checkError(t,["config","integral","whenGoodsList","images"],function(t,e){console.log(t,e)});if(console.log("xxxxxxxxxx",o),o.a&&o.a[0]&&o.a[0].son&&(e.classList=o.a[0].son),o.s&&(e.categorize=o.s),o.integral&&(e.integral=o.integral),o.whenGoodsList&&o.whenGoodsList.data&&(e.sGoodsList=o.whenGoodsList.data,console.log("限时商品",e.sGoodsList)),o.shopGoodsList&&o.shopGoodsList.data){var n=o.shopGoodsList.data;n.forEach(function(t){var o=e.countDown(t.group_start_time,t.group_end_time);(0,i.default)(t,o)}),e.goodsList=n}o.images&&(e.itemList=o.images),o.config&&o.config.qiniu_domain&&(e.qiniu=o.config.qiniu_domain)}})},methods:{goStore:function(){uni.navigateTo({url:"../../pagesA/stores/stores"})},search:function(t){uni.navigateTo({url:"../../pagesB/search-result/search-result?id="+t})},enterDetailsPage:function(t,e){uni.navigateTo({url:"../../pages/details/details?flid="+t+"&name="+e}),console.log(t,e)},goSearch:function(t){var e=JSON.parse(t),o=1;"integral"==e.type&&uni.navigateTo({url:"../../pagesB/search-result/search-result?property="+o})},gogogo:function(){u.admin_push({type:"商家提现提醒",content:"提现IDxxxxxxxxx"},function(t){console.log("!!!!!!提醒后台商家提现失败!!!!!",t)})},gogo:function(){u.admin_push({type:"商城购物下单提醒",content:"提现IDxxxxxxxxx"},function(t){console.log("!!!!!!提醒后台商家提现失败!!!!!",t)})},errorCB:function(){uni.navigateTo({url:"../../pagesB/DownloadPage/DownloadPage"})},goGroupgoodsDetails:function(t){console.log("group_id",t),uni.navigateTo({url:"../../pagesA/groupGoodsDetails/groupGoodsDetails?id="+t})},goGoodsDetails:function(t){uni.navigateTo({url:"../../pages/goodsDetails/goodsDetails?id="+t})},item_click:function(t){var e=this;if(t){console.log("轮播图参数",t);var o=JSON.parse(t);switch(console.log("轮播图参数",o),o["类型"]){case"购物商城商品详情":e.item_goods(o["商品ID"]);break;case"内容管理文章详情":e.item_essays(o["文章ID"]);break;default:s.default.err("该类型参数暂未做处理");break}}else console.log("json参数为空")},item_goods:function(t){t?uni.navigateTo({url:"../goodsDetails/goodsDetails?id="+t}):s.default.err("商品ID未设置")},item_essays:function(t){t?uni.navigateTo({url:"../../pagesA/InformationDetails/InformationDetails?newsId="+t}):s.default.err("文章ID未设置")},test:function(){console.log("获取Token:",d.token())},openSearch:function(){uni.navigateTo({url:"../../pages/search/search"})},openNews:function(){uni.navigateTo({url:"../../pagesB/news/news"})},openNearby:function(){uni.navigateTo({url:"../nearbyBusiness/nearbyBusiness"})},openshoppingCar:function(){uni.navigateTo({url:"../shoppingCar/shoppingCar"})},openMe:function(){uni.navigateTo({url:"../../pagesA/register/register"})},scanCode:function(){var t=this;uni.scanCode({onlyFromCamera:!0,success:function(e){if(console.log("res:",e),e.result){var o=e.result;console.log("res.result:",o);var n=JSON.parse(o);if(n.errno)uni.showToast({title:n.error,icon:"none"});else switch(n.type){case"merchant_money_plus":if(t.merchant_id=n.data.merchant_id,n.data&&n.data.user_id)var i=n.data.user_id;else i="";uni.navigateTo({url:"../../pagesB/payUser/payUser?mch_id="+n.data.merchant_id+"&user_id="+i});break;default:uni.showToast({title:"二维码未知",icon:"none"});break}}}})},countDown:function(t,e){var o=e-t;if(!(o>0))return!1;var n=Math.floor(o/60/60/24),i=Math.floor(o/60/60%24),r=Math.floor(o/60%60),a=Math.floor(o%60);return{timeDay:n,timeHour:i,timeMinite:r,timeScond:a}},percentCom:function(t,e){return e/t*100},goGoodsDetails2:function(t,e){uni.navigateTo({url:"../../pages/goodsDetails/goodsDetails?id="+t+"&label="+e})},goGoodsDetail:function(t){uni.navigateTo({url:"../../pages/goodsDetails/goodsDetails?id="+t})}}};e.default=p},cfd5:function(t,e,o){var n=o("83e3");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("2fced22e",n,!0,{sourceMap:!1,shadowMode:!1})},d7a9:function(t,e,o){"use strict";var n=o("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("5df3");var i=n(o("795b"));o("a481");var r=n(o("0a0d")),a=n(o("774e"));o("7f7f");var s=n(o("061b")),c=n(o("a745"));o("ac6a");var l=n(o("67bb")),u=n(o("5176")),d=n(o("e265")),p=n(o("4aa6")),f=n(o("d847")),g=n(o("a4bb"));o("28a5");var m=n(o("85f2")); /*! * AMapJS v1.2.1 * * Copyright (c) 2018-present Derek Li * Released under the MIT License - https://choosealicense.com/licenses/mit/ * * https://github.com/iDerekLi/amap-js */ function v(t,e){return t(e={exports:{}},e.exports),e.exports}o("6b54"),o("87b3");var h=v(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),b=v(function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)}),y=(b.version,function(t){return"object"==typeof t?null!==t:"function"==typeof t}),w=function(t){if(!y(t))throw TypeError(t+" is not an object!");return t},k=function(t){try{return!!t()}catch(Oo){return!0}},x=!k(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),_=h.document,C=y(_)&&y(_.createElement),A=function(t){return C?_.createElement(t):{}},S=!x&&!k(function(){return 7!=Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a}),I=function(t,e){if(!y(t))return t;var o,n;if(e&&"function"==typeof(o=t.toString)&&!y(n=o.call(t)))return n;if("function"==typeof(o=t.valueOf)&&!y(n=o.call(t)))return n;if(!e&&"function"==typeof(o=t.toString)&&!y(n=o.call(t)))return n;throw TypeError("Can't convert object to primitive value")},P=m.default,T={f:x?m.default:function(t,e,o){if(w(t),e=I(e,!0),w(o),S)try{return P(t,e,o)}catch(Oo){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(t[e]=o.value),t}},E=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},F=x?function(t,e,o){return T.f(t,e,E(1,o))}:function(t,e,o){return t[e]=o,t},W={}.hasOwnProperty,L=function(t,e){return W.call(t,e)},M=0,D=Math.random(),U=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++M+D).toString(36))},O=v(function(t){var e="__core-js_shared__",o=h[e]||(h[e]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:b.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),N=O("native-function-to-string",Function.toString),B=v(function(t){var e=U("src"),o="toString",n=(""+N).split(o);b.inspectSource=function(t){return N.call(t)},(t.exports=function(t,o,i,r){var a="function"==typeof i;a&&(L(i,"name")||F(i,"name",o)),t[o]!==i&&(a&&(L(i,e)||F(i,e,t[o]?""+t[o]:n.join(String(o)))),t===h?t[o]=i:r?t[o]?t[o]=i:F(t,o,i):(delete t[o],F(t,o,i)))})(Function.prototype,o,function(){return"function"==typeof this&&this[e]||N.call(this)})}),K=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Q=function(t,e,o){if(K(t),void 0===e)return t;switch(o){case 1:return function(o){return t.call(e,o)};case 2:return function(o,n){return t.call(e,o,n)};case 3:return function(o,n,i){return t.call(e,o,n,i)}}return function(){return t.apply(e,arguments)}},j="prototype",z=function t(e,o,n){var i,r,a,s,c=e&t.F,l=e&t.G,u=e&t.S,d=e&t.P,p=e&t.B,f=l?h:u?h[o]||(h[o]={}):(h[o]||{})[j],g=l?b:b[o]||(b[o]={}),m=g[j]||(g[j]={});for(i in l&&(n=o),n)a=((r=!c&&f&&void 0!==f[i])?f:n)[i],s=p&&r?Q(a,h):d&&"function"==typeof a?Q(Function.call,a):a,f&&B(f,i,a,e&t.U),g[i]!=a&&F(g,i,s),d&&m[i]!=a&&(m[i]=a)};h.core=b,z.F=1,z.G=2,z.S=4,z.P=8,z.B=16,z.W=32,z.U=64,z.R=128;var R=z,X={}.toString,J=function(t){return X.call(t).slice(8,-1)},G=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==J(t)?t.split(""):Object(t)},V=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},q=function(t){return G(V(t))},Z=Math.ceil,H=Math.floor,Y=function(t){return isNaN(t=+t)?0:(t>0?H:Z)(t)},$=Math.min,tt=function(t){return t>0?$(Y(t),9007199254740991):0},et=Math.max,ot=Math.min,nt=function(t,e){return(t=Y(t))<0?et(t+e,0):ot(t,e)},it=function(t){return function(e,o,n){var i,r=q(e),a=tt(r.length),s=nt(n,a);if(t&&o!=o){for(;a>s;)if((i=r[s++])!=i)return!0}else for(;a>s;s++)if((t||s in r)&&r[s]===o)return t||s||0;return!t&&-1}},rt=O("keys"),at=function(t){return rt[t]||(rt[t]=U(t))},st=it(!1),ct=at("IE_PROTO"),lt=function(t,e){var o,n=q(t),i=0,r=[];for(o in n)o!=ct&&L(n,o)&&r.push(o);for(;e.length>i;)L(n,o=e[i++])&&(~st(r,o)||r.push(o));return r},ut="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),dt=g.default||function(t){return lt(t,ut)},pt=x?f.default:function(t,e){w(t);for(var o,n=dt(e),i=n.length,r=0;i>r;)T.f(t,o=n[r++],e[o]);return t};R(R.S+R.F*!x,"Object",{defineProperties:pt}),R(R.S+R.F*!x,"Object",{defineProperty:T.f});var ft=h.document,gt=ft&&ft.documentElement,mt=at("IE_PROTO"),vt=function(){},ht="prototype",bt=function(){var t,e=A("iframe"),o=ut.length,n="<",i=">";for(e.style.display="none",gt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(n+"script"+i+"document.F=Object"+n+"/script"+i),t.close(),bt=t.F;o--;)delete bt[ht][ut[o]];return bt()},yt=p.default||function(t,e){var o;return null!==t?(vt[ht]=w(t),o=new vt,vt[ht]=null,o[mt]=t):o=bt(),void 0===e?o:pt(o,e)};R(R.S,"Object",{create:yt});var wt={f:d.default},kt={f:{}.propertyIsEnumerable},xt=function(t){return Object(V(t))},_t=u.default,Ct=!_t||k(function(){var t={},e={},o=(0,l.default)(),n="abcdefghijklmnopqrst";return t[o]=7,n.split("").forEach(function(t){e[t]=t}),7!=_t({},t)[o]||(0,g.default)(_t({},e)).join("")!=n})?function(t,e){for(var o=xt(t),n=arguments.length,i=1,r=wt.f,a=kt.f;n>i;)for(var s,c=G(arguments[i++]),l=r?dt(c).concat(r(c)):dt(c),u=l.length,d=0;u>d;)s=l[d++],x&&!a.call(c,s)||(o[s]=c[s]);return o}:_t;R(R.S+R.F,"Object",{assign:Ct});var At=c.default||function(t){return"Array"==J(t)},St=v(function(t){var e=O("wks"),o=h.Symbol,n="function"==typeof o;(t.exports=function(t){return e[t]||(e[t]=n&&o[t]||(n?o:U)("Symbol."+t))}).store=e}),It=St("species"),Pt=function(t){var e;return At(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!At(e.prototype)||(e=void 0),y(e)&&null===(e=e[It])&&(e=void 0)),void 0===e?Array:e},Tt=function(t,e){return new(Pt(t))(e)},Et=function(t,e){return!!t&&k(function(){e?t.call(null,function(){},1):t.call(null)})},Ft=function(t,e){var o=1==t,n=2==t,i=3==t,r=4==t,a=6==t,s=5==t||a,c=e||Tt;return function(e,l,u){for(var d,p,f=xt(e),g=G(f),m=Q(l,u,3),v=tt(g.length),h=0,b=o?c(e,v):n?c(e,0):void 0;v>h;h++)if((s||h in g)&&(p=m(d=g[h],h,f),t))if(o)b[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:b.push(d)}else if(r)return!1;return a?-1:i||r?r:b}}(0),Wt=Et([].forEach,!0);R(R.P+R.F*!Wt,"Array",{forEach:function(t){return Ft(this,t,arguments[1])}}),R(R.S,"Array",{isArray:At});var Lt=St("toStringTag"),Mt="Arguments"==J(function(){return arguments}()),Dt=function(t,e){try{return t[e]}catch(Oo){}},Ut=function(t){var e,o,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=Dt(e=Object(t),Lt))?o:Mt?J(e):"Object"==(n=J(e))&&"function"==typeof e.callee?"Arguments":n},Ot={};Ot[St("toStringTag")]="z",Ot+""!="[object z]"&&B(Object.prototype,"toString",function(){return"[object "+Ut(this)+"]"},!0);var Nt=function(t){return function(e,o){var n,i,r=String(V(e)),a=Y(o),s=r.length;return a<0||a>=s?t?"":void 0:(n=r.charCodeAt(a))<55296||n>56319||a+1===s||(i=r.charCodeAt(a+1))<56320||i>57343?t?r.charAt(a):n:t?r.slice(a,a+2):i-56320+(n-55296<<10)+65536}},Bt={},Kt=T.f,Qt=St("toStringTag"),jt=function(t,e,o){t&&!L(t=o?t:t.prototype,Qt)&&Kt(t,Qt,{configurable:!0,value:e})},zt={};F(zt,St("iterator"),function(){return this});var Rt=function(t,e,o){t.prototype=yt(zt,{next:E(1,o)}),jt(t,e+" Iterator")},Xt=at("IE_PROTO"),Jt=Object.prototype,Gt=s.default||function(t){return t=xt(t),L(t,Xt)?t[Xt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Jt:null},Vt=St("iterator"),qt=!([].keys&&"next"in[].keys()),Zt="@@iterator",Ht="keys",Yt="values",$t=function(){return this},te=function(t,e,o,n,i,r,a){Rt(o,e,n);var s,c,l,u=function(t){if(!qt&&t in g)return g[t];switch(t){case Ht:return function(){return new o(this,t)};case Yt:return function(){return new o(this,t)}}return function(){return new o(this,t)}},d=e+" Iterator",p=i==Yt,f=!1,g=t.prototype,m=g[Vt]||g[Zt]||i&&g[i],v=m||u(i),h=i?p?u("entries"):v:void 0,b="Array"==e&&g.entries||m;if(b&&(l=Gt(b.call(new t)))!==Object.prototype&&l.next&&(jt(l,d,!0),"function"!=typeof l[Vt]&&F(l,Vt,$t)),p&&m&&m.name!==Yt&&(f=!0,v=function(){return m.call(this)}),(qt||f||!g[Vt])&&F(g,Vt,v),Bt[e]=v,Bt[d]=$t,i)if(s={values:p?v:u(Yt),keys:r?v:u(Ht),entries:h},a)for(c in s)c in g||B(g,c,s[c]);else R(R.P+R.F*(qt||f),e,s);return s},ee=Nt(!0);te(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,o=this._i;return o>=e.length?{value:void 0,done:!0}:(t=ee(e,o),this._i+=t.length,{value:t,done:!1})});var oe=St("unscopables"),ne=Array.prototype;void 0==ne[oe]&&F(ne,oe,{});var ie=function(t){ne[oe][t]=!0},re=function(t,e){return{value:e,done:!!t}},ae=te(Array,"Array",function(t,e){this._t=q(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,o=this._i++;return!t||o>=t.length?(this._t=void 0,re(1)):re(0,"keys"==e?o:"values"==e?t[o]:[o,t[o]])},"values");Bt.Arguments=Bt.Array,ie("keys"),ie("values"),ie("entries");for(var se=St("iterator"),ce=St("toStringTag"),le=Bt.Array,ue={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},de=dt(ue),pe=0;pe<de.length;pe++){var fe,ge=de[pe],me=ue[ge],ve=h[ge],he=ve&&ve.prototype;if(he&&(he[se]||F(he,se,le),he[ce]||F(he,ce,ge),Bt[ge]=le,me))for(fe in ae)he[fe]||B(he,fe,ae[fe],!0)}var be,ye,we,ke=function(t,e,o,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(o+": incorrect invocation!");return t},xe=function(t,e,o,n){try{return n?e(w(o)[0],o[1]):e(o)}catch(Oo){var i=t["return"];throw void 0!==i&&w(i.call(t)),Oo}},_e=St("iterator"),Ce=Array.prototype,Ae=function(t){return void 0!==t&&(Bt.Array===t||Ce[_e]===t)},Se=St("iterator"),Ie=b.getIteratorMethod=function(t){if(void 0!=t)return t[Se]||t["@@iterator"]||Bt[Ut(t)]},Pe=v(function(t){var e={},o={},n=t.exports=function(t,n,i,r,a){var s,c,l,u,d=a?function(){return t}:Ie(t),p=Q(i,r,n?2:1),f=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(Ae(d)){for(s=tt(t.length);s>f;f++)if((u=n?p(w(c=t[f])[0],c[1]):p(t[f]))===e||u===o)return u}else for(l=d.call(t);!(c=l.next()).done;)if((u=xe(l,p,c.value,n))===e||u===o)return u};n.BREAK=e,n.RETURN=o}),Te=St("species"),Ee=function(t,e){var o,n=w(t).constructor;return void 0===n||void 0==(o=w(n)[Te])?e:K(o)},Fe=function(t,e,o){var n=void 0===o;switch(e.length){case 0:return n?t():t.call(o);case 1:return n?t(e[0]):t.call(o,e[0]);case 2:return n?t(e[0],e[1]):t.call(o,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(o,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(o,e[0],e[1],e[2],e[3])}return t.apply(o,e)},We=h.process,Le=h.setImmediate,Me=h.clearImmediate,De=h.MessageChannel,Ue=h.Dispatch,Oe=0,Ne={},Be="onreadystatechange",Ke=function(){var t=+this;if(Ne.hasOwnProperty(t)){var e=Ne[t];delete Ne[t],e()}},Qe=function(t){Ke.call(t.data)};Le&&Me||(Le=function(t){for(var e=[],o=1;arguments.length>o;)e.push(arguments[o++]);return Ne[++Oe]=function(){Fe("function"==typeof t?t:Function(t),e)},be(Oe),Oe},Me=function(t){delete Ne[t]},"process"==J(We)?be=function(t){We.nextTick(Q(Ke,t,1))}:Ue&&Ue.now?be=function(t){Ue.now(Q(Ke,t,1))}:De?(we=(ye=new De).port2,ye.port1.onmessage=Qe,be=Q(we.postMessage,we,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(be=function(t){h.postMessage(t+"","*")},h.addEventListener("message",Qe,!1)):be=Be in A("script")?function(t){gt.appendChild(A("script"))[Be]=function(){gt.removeChild(this),Ke.call(t)}}:function(t){setTimeout(Q(Ke,t,1),0)});var je={set:Le,clear:Me},ze=je.set,Re=h.MutationObserver||h.WebKitMutationObserver,Xe=h.process,Je=h.Promise,Ge="process"==J(Xe),Ve=function(){var t,e,o,n=function(){var n,i;for(Ge&&(n=Xe.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(Oo){throw t?o():e=void 0,Oo}}e=void 0,n&&n.enter()};if(Ge)o=function(){Xe.nextTick(n)};else if(!Re||h.navigator&&h.navigator.standalone)if(Je&&Je.resolve){var i=Je.resolve(void 0);o=function(){i.then(n)}}else o=function(){ze.call(h,n)};else{var r=!0,a=document.createTextNode("");new Re(n).observe(a,{characterData:!0}),o=function(){a.data=r=!r}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,o()),e=i}};function qe(t){var e,o;this.promise=new t(function(t,n){if(void 0!==e||void 0!==o)throw TypeError("Bad Promise constructor");e=t,o=n}),this.resolve=K(e),this.reject=K(o)}var Ze={f:function(t){return new qe(t)}},He=function(t){try{return{e:!1,v:t()}}catch(Oo){return{e:!0,v:Oo}}},Ye=h.navigator,$e=Ye&&Ye.userAgent||"",to=function(t,e){if(w(t),y(e)&&e.constructor===t)return e;var o=Ze.f(t);return(0,o.resolve)(e),o.promise},eo=function(t,e,o){for(var n in e)B(t,n,e[n],o);return t},oo=St("species"),no=function(t){var e=h[t];x&&e&&!e[oo]&&T.f(e,oo,{configurable:!0,get:function(){return this}})},io=St("iterator"),ro=!1;try{var ao=[7][io]();ao["return"]=function(){ro=!0},(0,a.default)(ao,function(){throw 2})}catch(Oo){}var so,co,lo,uo,po=function(t,e){if(!e&&!ro)return!1;var o=!1;try{var n=[7],i=n[io]();i.next=function(){return{done:o=!0}},n[io]=function(){return i},t(n)}catch(Oo){}return o},fo=je.set,go=Ve(),mo="Promise",vo=h.TypeError,ho=h.process,bo=ho&&ho.versions,yo=bo&&bo.v8||"",wo=h[mo],ko="process"==Ut(ho),xo=function(){},_o=co=Ze.f,Co=!!function(){try{var t=wo.resolve(1),e=(t.constructor={})[St("species")]=function(t){t(xo,xo)};return(ko||"function"==typeof PromiseRejectionEvent)&&t.then(xo)instanceof e&&0!==yo.indexOf("6.6")&&-1===$e.indexOf("Chrome/66")}catch(Oo){}}(),Ao=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},So=function(t,e){if(!t._n){t._n=!0;var o=t._c;go(function(){for(var n=t._v,i=1==t._s,r=0,a=function(e){var o,r,a,s=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(i||(2==t._h&&To(t),t._h=1),!0===s?o=n:(u&&u.enter(),o=s(n),u&&(u.exit(),a=!0)),o===e.promise?l(vo("Promise-chain cycle")):(r=Ao(o))?r.call(o,c,l):c(o)):l(n)}catch(Oo){u&&!a&&u.exit(),l(Oo)}};o.length>r;)a(o[r++]);t._c=[],t._n=!1,e&&!t._h&&Io(t)})}},Io=function(t){fo.call(h,function(){var e,o,n,i=t._v,r=Po(t);if(r&&(e=He(function(){ko?ho.emit("unhandledRejection",i,t):(o=h.onunhandledrejection)?o({promise:t,reason:i}):(n=h.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=ko||Po(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},Po=function(t){return 1!==t._h&&0===(t._a||t._c).length},To=function(t){fo.call(h,function(){var e;ko?ho.emit("rejectionHandled",t):(e=h.onrejectionhandled)&&e({promise:t,reason:t._v})})},Eo=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),So(e,!0))},Fo=function t(e){var o,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw vo("Promise can't be resolved itself");(o=Ao(e))?go(function(){var i={_w:n,_d:!1};try{o.call(e,Q(t,i,1),Q(Eo,i,1))}catch(Oo){Eo.call(i,Oo)}}):(n._v=e,n._s=1,So(n,!1))}catch(Oo){Eo.call({_w:n,_d:!1},Oo)}}};Co||(wo=function(t){ke(this,wo,mo,"_h"),K(t),so.call(this);try{t(Q(Fo,this,1),Q(Eo,this,1))}catch(b){Eo.call(this,b)}},(so=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=eo(wo.prototype,{then:function(t,e){var o=_o(Ee(this,wo));return o.ok="function"!=typeof t||t,o.fail="function"==typeof e&&e,o.domain=ko?ho.domain:void 0,this._c.push(o),this._a&&this._a.push(o),this._s&&So(this,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),lo=function(){var t=new so;this.promise=t,this.resolve=Q(Fo,t,1),this.reject=Q(Eo,t,1)},Ze.f=_o=function(t){return t===wo||t===uo?new lo(t):co(t)}),R(R.G+R.W+R.F*!Co,{Promise:wo}),jt(wo,mo),no(mo),uo=b[mo],R(R.S+R.F*!Co,mo,{reject:function(t){var e=_o(this);return(0,e.reject)(t),e.promise}}),R(R.S+R.F*!Co,mo,{resolve:function(t){return to(this,t)}}),R(R.S+R.F*!(Co&&po(function(t){wo.all(t)["catch"](xo)})),mo,{all:function(t){var e=this,o=_o(e),n=o.resolve,i=o.reject,r=He(function(){var o=[],r=0,a=1;Pe(t,!1,function(t){var s=r++,c=!1;o.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,o[s]=t,--a||n(o))},i)}),--a||n(o)});return r.e&&i(r.v),o.promise},race:function(t){var e=this,o=_o(e),n=o.reject,i=He(function(){Pe(t,!1,function(t){e.resolve(t).then(o.resolve,n)})});return i.e&&n(i.v),o.promise}}),b.Promise;var Wo="1.2.1",Lo=function(){};function Mo(){return(Mo=u.default||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t}).apply(this,arguments)}function Do(t,e){t.prototype=(0,p.default)(e.prototype),t.prototype.constructor=t,t.__proto__=e /*! * httpJsonp v1.1.1 * * Copyright (c) 2019-present Derek Li * Released under the MIT License - https://choosealicense.com/licenses/mit/ * * https://github.com/iDerekLi/http-jsonp */}function Uo(){return(Uo=u.default||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t}).apply(this,arguments)}(0,u.default)(Lo.prototype,{load:function(){}});var Oo="1.1.1";function No(t){function e(e,o){if("object"==typeof t[o]&&"object"==typeof e)t[o]=No(t[o],e);else if("object"==typeof e&&null!==e){var n="[object Array]"===Object.prototype.toString.call(e)?[]:{};t[o]=No(n,e)}else t[o]=e}for(var o=arguments.length,n=new Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];for(var r=0,a=n.length;r<a;r++)for(var s in n[r])e(n[r][s],s);return t}function Bo(t,e,o){if("object"!=typeof t||null===t)throw Error("obj is not an Object type");if(!e)return t;var n="string"==typeof e?e.split("."):e,i=n.length,r=n.shift();if("string"!=typeof r||""===r)throw Error("error attribute path");return i>1?Bo(t[r],n,o):void 0!==o?t[r]=o:t[r]}function Ko(t,e){for(var o in e)if(t===e[o])return!0;return!1}function Qo(t,e){void 0===e&&(e=""),e="boolean"==typeof e?"?":e;var o=[],n=function(e){var n=t[e];if(Ko(n,["",void 0,null]))return"continue";n.constructor===Array?n.forEach(function(t){o.push(encodeURIComponent(e)+"[]="+encodeURIComponent(t))}):o.push(encodeURIComponent(e)+"="+encodeURIComponent(n))};for(var i in t)n(i);return o.length?e+o.join("&"):""}var jo={baseURL:"",url:"",params:{},callbackProp:!1,callbackNamespase:"__httpJsonpCallback",callbackName:"",timeout:6e4,scriptAttr:{type:"",charset:"",crossOrigin:null,async:!0,defer:!1},keepScriptTag:!1,callback:null,load:null,error:null,complete:null,then:null,catch:null,finally:null},zo=(0,r.default)();function Ro(){}var Xo=function(t,e,o){var n=Bo(window,t);if(n=t&&!n?Bo(window,t,{}):n||window,!o)return n[e];n[e]=o},Jo=function(t,e){void 0!==t.onload?t.onload=function(){e()}:t.onreadystatechange=function(){"loaded"!=t.readyState&&"complete"!=t.readyState||(t.onreadystatechange=null,e())}},Go=function(t,e){t.onerror=e};function Vo(t,e){"string"==typeof t&&(t={url:t}),e||(e={});var o,n,i=No({},jo,t||{}),r=Uo({callback:i.callback,load:i.load,error:i.error,complete:i.complete},e),a=i.params,s="",c="",l=i.callbackNamespase,u=i.callbackProp;function d(){i.keepScriptTag||o.parentNode&&o.parentNode.removeChild(o),c&&Xo(l,c,Ro),Jo(o,Ro),Go(o,Ro),n&&clearTimeout(n)}function p(){s="cancel",Xo(l,c)&&d()}u&&""!==a[u]&&(c=a[u]?a[u]:i.callbackName||"jp"+zo++,a[u]=l?l+"."+c:c);var f=i.timeout;f&&(n=setTimeout(function(){s="error",d(),r.error&&r.error(new Error("Request Timeout")),r.complete&&r.complete()},f));var g=i.baseURL+i.url;g=(g+=Qo(a,~g.indexOf("?")?"&":"?")).replace("?&","?"),o=document.createElement("script");var m=i.scriptAttr;for(var v in delete m.text,delete m.src,m)o[v]=m[v];c?Xo(l,c,function(t){d(),"error"!==s&&(s="callback",r.callback&&r.callback(t),r.complete&&r.complete())}):Jo(o,function(){d(),"error"!==s&&(s="load",r.load&&r.load(),r.complete&&r.complete())}),Go(o,function(){s="error",d(),r.error&&r.error(new Error("script error")),r.complete&&r.complete()}),o.src=g;var h=document.getElementsByTagName("script")[0]||document.head||document.getElementsByTagName("head")[0];return h.parentNode.insertBefore(o,h),{cancel:p}}Vo.version=Oo;var qo={protocol:"https:",path:"webapi.amap.com/maps",key:"",v:"1.4.14",params:null,callbackProp:"callback",callbackName:"",crossOrigin:"anonymous",keepScriptTag:!1},Zo=function(t){function e(e){var o;o=t.call(this,e)||this;var n=(0,u.default)({},qo,e);return o.protocol=n.protocol,o.path=n.path,o.params=Mo({key:n.key,v:n.v},n.params),o.callbackProp=n.callbackProp,o.callbackName=n.callbackName,o.crossOrigin=n.crossOrigin,o.keepScriptTag=n.keepScriptTag,o}Do(e,t);var o=e.prototype;return o.load=function(){var t=this;return this.__loadPromise?this.__loadPromise:(this.__loadPromise=new i.default(function(e,o){var n=function(){t.__loadPromise=null,e(window.AMap)};if(t.checkCorrectness())return n();Vo({url:t.protocol+("//"===t.path.slice(0,2)?t.path:"//"+t.path),params:t.params,callbackProp:t.callbackProp,callbackName:t.callbackName,scriptAttr:{async:!0,crossOrigin:t.crossOrigin},keepScriptTag:t.keepScriptTag,callback:n,error:function(e){t.__loadPromise=null,o(e)}})}),this.__loadPromise)},o.checkCorrectness=function(){if(!window.AMap&&"object"!=typeof window.AMap)return!1;for(var t=0,e=["v","Pixel","LngLat","Size","Bounds","Map"];t<e.length;t++)if(!(e[t]in window.AMap))return!1;return this.versionCompare(window.AMap.v,this.params.v)},o.versionCompare=function(t,e){return t===e},o.setProtocol=function(t){return this.protocol=t,this},o.setPath=function(t){return this.path=t,this},o.setKey=function(t){return this.params&&(this.params.key=t),this},o.setV=function(t){return this.params&&(this.params.v=t),this},o.setParams=function(t){return this.params=t,this},o.setCrossOrigin=function(t){return this.crossOrigin=t,this},e}(Lo),Ho={protocol:"https:",path:"webapi.amap.com/ui/{v}/main-async.js",v:"1.0",initAMapUI:"initAMapUI",isAutoInitAMapUI:!1,AMapUIProtocol:void 0,crossOrigin:"anonymous",keepScriptTag:!1},Yo=function(t){function e(e){var o;o=t.call(this,e)||this;var n=(0,u.default)({},Ho,e);return o.v=n.v,o.protocol=n.protocol,o.path=n.path,o.AMapUIProtocol=n.AMapUIProtocol,o.initAMapUI=n.initAMapUI,o.isAutoInitAMapUI=n.isAutoInitAMapUI,o.crossOrigin=n.crossOrigin,o.keepScriptTag=n.keepScriptTag,"string"==typeof o.AMapUIProtocol&&o.setAMapUIProtocol(o.AMapUIProtocol),o}Do(e,t);var o=e.prototype;return o.load=function(){var t=this;return this.__loadPromise?this.__loadPromise:(this.__loadPromise=new i.default(function(e,o){var n=function(){t.__loadPromise=null;var o=function(){return t.checkCorrectness()?window.AMapUI:(window[t.initAMapUI](),window.AMapUI)};e(t.isAutoInitAMapUI?o():o)};if(t.checkCorrectness())return n();var i=t.protocol,r=t.v,a=t.path.replace("{v}",r);Vo({url:i+(a="//"===a.replace("{v}",r).slice(0,2)?a:"//"+a),params:t.params,callbackProp:!1,scriptAttr:{async:!0,crossOrigin:t.crossOrigin},keepScriptTag:t.keepScriptTag,load:n,error:function(e){t.__loadPromise=null,o(e)}})}),this.__loadPromise)},o.checkCorrectness=function(){if(!window.AMapUI)return!1;for(var t=0,e=["libConf","uiMods","docProtocol","version"];t<e.length;t++)if(!(e[t]in window.AMapUI))return!1;return this.versionCompare(window.AMapUI.libConf.mainVersion,this.v)},o.versionCompare=function(t,e){return t===e},o.setProtocol=function(t){return this.protocol=t,this},o.setPath=function(t){return this.path=t,this},o.setV=function(t){return this.v=t,this},o.setAMapUIProtocol=function(t){var e="https:"===t?"https:":"http:";return window.AMapUIProtocol=e,this},o.setCrossOrigin=function(t){return this.crossOrigin=t,this},e}(Lo);function $o(t,e,o,n){var r=[];((0,c.default)(t)?t:[t]).forEach(function(t){if(!(t instanceof Lo))throw new TypeError(t+" is not an instance of Loader");if("function"!=typeof t.load)throw new TypeError(t.load+" is not a function");var e=t.load();r.push(e)});var a=i.default.all(r),s={then:e,catch:o,finally:n},l={then:function(t){s.then.apply(s,t)},catch:function(t){s["catch"](t)},finally:function(){s["finally"]()}},u=a;for(var d in s)"function"==typeof s[d]&&(u=u[d](l[d]));return a}var tn=new(function(){function t(){this.length=0,this.__state={}}var e=t.prototype;return e.set=function(t,e){t in this.__state?this.__state[t]=e:(this.__state[t]=e,this.length++)},e.remove=function(t){t in this.__state&&(delete this.__state[t],this.length--)},e.get=function(t){return this.__state[t]},e.getAll=function(){return this.__state},e.clear=function(){for(var t in this.__state)this.remove(t)},t}());function en(t,e){t.install(on,e)}var on={version:Wo,Loader:Lo,AMapJSAPILoader:Zo,AMapUILoader:Yo,load:$o,use:en,store:tn},nn=on;e.default=nn},dca4:function(t,e,o){"use strict";var n=o("09d6"),i=o.n(n);i.a},e759:function(t,e,o){"use strict";o.r(e);var n=o("31b3"),i=o("7822");for(var r in i)"default"!==r&&function(t){o.d(e,t,function(){return i[t]})}(r);o("dca4"),o("54e1");var a=o("2877"),s=Object(a["a"])(i["default"],n["a"],n["b"],!1,null,"d2df5580",null);e["default"]=s.exports},fb33:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("c5f6");var n={name:"uni-countdown",props:{showDay:{type:Boolean,default:!0},showColon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#000000"},color:{type:String,value:"#000000"},splitorColor:{type:String,default:"#000000"},day:{type:Number,default:0},hour:{type:Number,default:0},minute:{type:Number,default:0},second:{type:Number,default:0}},data:function(){return{timer:null,d:"00",h:"00",i:"00",s:"00",leftTime:0,seconds:0}},created:function(t){var e=this;this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.countDown(),this.timer=setInterval(function(){e.seconds--,e.seconds<0?e.timeUp():e.countDown()},1e3)},beforeDestroy:function(){clearInterval(this.timer)},methods:{toSeconds:function(t,e,o,n){return 60*t*60*24+60*e*60+60*o+n},timeUp:function(){clearInterval(this.timer),this.$emit("timeup")},countDown:function(){var t=this.seconds,e=0,o=0,n=0,i=0;t>0?(e=Math.floor(t/86400),o=Math.floor(t/3600)-24*e,n=Math.floor(t/60)-24*e*60-60*o,i=Math.floor(t)-24*e*60*60-60*o*60-60*n):this.timeUp(),e<10&&(e="0"+e),o<10&&(o="0"+o),n<10&&(n="0"+n),i<10&&(i="0"+i),this.d=e,this.h=o,this.i=n,this.s=i}}};e.default=n}}]);
4,567.777778
55,597
0.754293
478ba80787b2c8590c611a5afdd7cc86b702aa8f
173
html
HTML
kb/knowledge_base_of_numeric_models/sections/section_calculus_and_analysis/sections/section_special_functions/sections/section_transcendental_inequalities/concepts/concept_exponential_inequality/exponential_inequality_3.html
CMEXOB/ostis-algebra
4742dbd99dea47cf5b36d21681e5a70ccf0578e4
[ "MIT" ]
null
null
null
kb/knowledge_base_of_numeric_models/sections/section_calculus_and_analysis/sections/section_special_functions/sections/section_transcendental_inequalities/concepts/concept_exponential_inequality/exponential_inequality_3.html
CMEXOB/ostis-algebra
4742dbd99dea47cf5b36d21681e5a70ccf0578e4
[ "MIT" ]
1
2021-12-15T08:20:29.000Z
2021-12-15T08:20:29.000Z
kb/knowledge_base_of_numeric_models/sections/section_calculus_and_analysis/sections/section_special_functions/sections/section_transcendental_inequalities/concepts/concept_exponential_inequality/exponential_inequality_3.html
CMEXOB/ostis-algebra
4742dbd99dea47cf5b36d21681e5a70ccf0578e4
[ "MIT" ]
4
2021-12-15T17:55:14.000Z
2021-12-18T11:02:19.000Z
Если a > 1, неравенство a<sup>f(x)</sup> > a<sup>g(x)</sup> равносильно неравенству f(x) > g(x). Аналогично, a<sup>f(x)</sup> &lt; a<sup>g(x)</sup> &hArr; f(x) &lt; g(x).
24.714286
73
0.583815
af8cfa3038529c47ba17c0ad3c9d09a26c264101
1,839
rb
Ruby
attributes/default.rb
tubbo/omakase
08a34eb5583cf95060b0e1f5b299269113f604dc
[ "MIT" ]
1
2015-02-11T19:09:08.000Z
2015-02-11T19:09:08.000Z
attributes/default.rb
tubbo/omakase
08a34eb5583cf95060b0e1f5b299269113f604dc
[ "MIT" ]
null
null
null
attributes/default.rb
tubbo/omakase
08a34eb5583cf95060b0e1f5b299269113f604dc
[ "MIT" ]
null
null
null
# # Cookbook Name:: omakase # Attributes:: default # # These attributes are set up as an example only. They are mostly used # as fixture data within Test Kitchen to stand up test instances of this # cookbook. For more information on how to properly use this cookbook, # see the README. # # Copyright (C) 2014 Tom Scott # # 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. default['omakase']['repository'] = 'https://github.com/tubbo/breakbeat.git' default['omakase']['user'] = 'breakbeat' default['omakase']['version'] = 'master' default['omakase']['keep_releases'] = 1 default['omakase']['rollback_on_error'] = false default['omakase']['database_adapter'] = :postgresql default['omakase']['master_database_password'] = SecureRandom.hex.to_s default['omakase']['environment'] = 'development' default['omakase']['services'] = %w(puma)
47.153846
79
0.760196
6083670ea87fece642c68fc8e1631210a15c7fe7
204,688
sql
SQL
plug-in/region_type_plugin_dev_hartenfeller_slideover.sql
phartenfeller/apex-slide-over-plugin
8c7621340cc21ffc83e3e620261b91d613669886
[ "MIT" ]
1
2021-05-29T05:12:48.000Z
2021-05-29T05:12:48.000Z
plug-in/region_type_plugin_dev_hartenfeller_slideover.sql
phartenfeller/apex-slide-over-plugin
8c7621340cc21ffc83e3e620261b91d613669886
[ "MIT" ]
3
2021-06-10T10:18:38.000Z
2021-06-11T07:06:35.000Z
plug-in/region_type_plugin_dev_hartenfeller_slideover.sql
phartenfeller/apex-slide-over-plugin
8c7621340cc21ffc83e3e620261b91d613669886
[ "MIT" ]
1
2021-06-14T12:20:36.000Z
2021-06-14T12:20:36.000Z
prompt --application/set_environment set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle user -- APEX_210100 or as the owner (parsing schema) of the application. -- -- NOTE: Calls to apex_application_install override the defaults below. -- -------------------------------------------------------------------------------- begin wwv_flow_api.import_begin ( p_version_yyyy_mm_dd=>'2019.10.04' ,p_release=>'19.2.0.00.18' ,p_default_workspace_id=>4801001554511370018 ,p_default_application_id=>61804 ,p_default_id_offset=>9938102699976514337 ,p_default_owner=>'WKSP_HARTENFELLERDEV' ); end; / prompt APPLICATION 61804 - Slide-Over (DEV) -- -- Application Export: -- Application: 61804 -- Name: Slide-Over (DEV) -- Date and Time: 15:27 Thursday June 10, 2021 -- Exported By: HARTENFELLER.DEV@GMAIL.COM -- Flashback: 0 -- Export Type: Component Export -- Manifest -- PLUGIN: 17046641022682360231 -- Manifest End -- Version: 21.1.0 -- Instance ID: 63113759365424 -- begin -- replace components wwv_flow_api.g_mode := 'REPLACE'; end; / prompt --application/shared_components/plugins/region_type/dev_hartenfeller_slideover begin wwv_flow_api.create_plugin( p_id=>wwv_flow_api.id(17046641022682360231) ,p_plugin_type=>'REGION TYPE' ,p_name=>'DEV.HARTENFELLER.SLIDEOVER' ,p_display_name=>'Slideover' ,p_supported_ui_types=>'DESKTOP' ,p_javascript_file_urls=>'#PLUGIN_FILES#js/index#MIN#.js' ,p_plsql_code=>wwv_flow_string.join(wwv_flow_t_varchar2( 'function render_region (', ' p_region in apex_plugin.t_region', ', p_plugin in apex_plugin.t_plugin', ', p_is_printer_friendly in boolean', ') return apex_plugin.t_region_render_result', 'as', ' l_result apex_plugin.t_region_render_result;', '', ' l_region_id p_region.static_id%type := p_region.static_id;', '', ' --perform escaping', ' l_region_id_esc p_region.static_id%type := apex_escape.html_attribute(l_region_id);', '', ' l_title p_region.attribute_01%type := p_region.attribute_01;', ' l_width p_region.attribute_02%type := p_region.attribute_02;', ' l_direction p_region.attribute_03%type := p_region.attribute_03;', 'begin', '', ' --debug', ' if apex_application.g_debug ', ' then', ' apex_plugin_util.debug_region', ' ( p_plugin => p_plugin', ' , p_region => p_region', ' );', ' end if;', '', ' apex_javascript.add_onload_code (', ' p_code => ''window.hartenfeller_dev.slideover_plugin.initAPEXRegion({'' || ', ' apex_javascript.add_attribute(', ' p_name => ''regionId''', ' , p_value => l_region_id_esc', ' )', ' ||', ' apex_javascript.add_attribute(', ' p_name => ''title''', ' , p_value => l_title', ' )', ' ||', ' apex_javascript.add_attribute(', ' p_name => ''width''', ' , p_value => l_width', ' )', ' ||', ' apex_javascript.add_attribute(', ' p_name => ''direction''', ' , p_value => l_direction', ' )', ' || ''});''', ' );', '', ' --write html to buffer via sys.htp.p', ' --sys.htp.p(''<slide-over title="''|| l_title ||''"></slide-over>'');', ' ', ' return l_result;', 'end render_region;')) ,p_api_version=>2 ,p_render_function=>'render_region' ,p_substitute_attributes=>true ,p_subscribe_plugin_settings=>true ,p_version_identifier=>'1.2' ,p_about_url=>'https://github.com/phartenfeller/apex-slide-over-plugin' ,p_files_version=>101 ); wwv_flow_api.create_plugin_attribute( p_id=>wwv_flow_api.id(17046753338788801065) ,p_plugin_id=>wwv_flow_api.id(17046641022682360231) ,p_attribute_scope=>'COMPONENT' ,p_attribute_sequence=>1 ,p_display_sequence=>10 ,p_prompt=>'Title' ,p_attribute_type=>'TEXT' ,p_is_required=>false ,p_is_translatable=>false ,p_examples=>'Details' ,p_help_text=>'Title of the slideover next to the close button. Keep empty for none.' ); wwv_flow_api.create_plugin_attribute( p_id=>wwv_flow_api.id(17046754971015840041) ,p_plugin_id=>wwv_flow_api.id(17046641022682360231) ,p_attribute_scope=>'COMPONENT' ,p_attribute_sequence=>2 ,p_display_sequence=>20 ,p_prompt=>'Width' ,p_attribute_type=>'TEXT' ,p_is_required=>true ,p_default_value=>'25%' ,p_is_translatable=>false ,p_examples=>'200px, 25%, 25vw' ,p_help_text=>'Width of the slideover. Use css width units.' ); wwv_flow_api.create_plugin_attribute( p_id=>wwv_flow_api.id(17047042385534283980) ,p_plugin_id=>wwv_flow_api.id(17046641022682360231) ,p_attribute_scope=>'COMPONENT' ,p_attribute_sequence=>3 ,p_display_sequence=>30 ,p_prompt=>'Direction' ,p_attribute_type=>'SELECT LIST' ,p_is_required=>true ,p_default_value=>'right' ,p_is_translatable=>false ,p_lov_type=>'STATIC' ,p_help_text=>'Side where the slideover comes from.' ); wwv_flow_api.create_plugin_attr_value( p_id=>wwv_flow_api.id(17047043059472285176) ,p_plugin_attribute_id=>wwv_flow_api.id(17047042385534283980) ,p_display_sequence=>10 ,p_display_value=>'Right' ,p_return_value=>'right' ,p_is_quick_pick=>true ); wwv_flow_api.create_plugin_attr_value( p_id=>wwv_flow_api.id(17047043406856285766) ,p_plugin_attribute_id=>wwv_flow_api.id(17047042385534283980) ,p_display_sequence=>20 ,p_display_value=>'Left' ,p_return_value=>'left' ,p_is_quick_pick=>true ); end; / begin wwv_flow_api.g_varchar2_table := wwv_flow_api.empty_varchar2_table; wwv_flow_api.g_varchar2_table(1) := '2F2A2120466F72206C6963656E736520696E666F726D6174696F6E20706C656173652073656520696E6465782E6D696E2E6A732E4C4943454E53452E747874202A2F0A2828293D3E7B76617220653D7B3836343A28293D3E7B77696E646F772E68617274'; wwv_flow_api.g_varchar2_table(2) := '656E66656C6C65725F6465767C7C2877696E646F772E68617274656E66656C6C65725F6465763D7B7D292C77696E646F772E68617274656E66656C6C65725F6465762E736C6964656F7665725F706C7567696E7C7C2877696E646F772E68617274656E66'; wwv_flow_api.g_varchar2_table(3) := '656C6C65725F6465762E736C6964656F7665725F706C7567696E3D7B7D292C77696E646F772E68617274656E66656C6C65725F6465762E736C6964656F7665725F706C7567696E2E696E697441504558526567696F6E3D66756E6374696F6E2865297B76'; wwv_flow_api.g_varchar2_table(4) := '617220743D652E726567696F6E49642C6E3D652E7469746C652C693D652E77696474682C723D652E646972656374696F6E2C6F3D21303B617065782E64656275672E696E666F2822736C6964656F7665722070726F7073222C7B726567696F6E49643A74'; wwv_flow_api.g_varchar2_table(5) := '2C7469746C653A6E2C77696474683A697D293B76617220733D22736C6964656F7665725F222E636F6E6361742874293B7472797B766172206C3D646F63756D656E742E717565727953656C6563746F72282223222E636F6E636174287429293B6C2E736C'; wwv_flow_api.g_varchar2_table(6) := '6F743D22636F6E74656E74223B76617220613D646F63756D656E742E637265617465456C656D656E742822736C6964652D6F76657222293B612E69643D732C612E6F70656E3D2266616C7365222C612E6865616465723D6E2C612E77696474683D692C61'; wwv_flow_api.g_varchar2_table(7) := '2E646972656374696F6E3D722C612E617070656E644368696C64286C292C646F63756D656E742E717565727953656C6563746F72282223777776466C6F77466F726D22292E617070656E644368696C642861297D63617463682865297B636F6E736F6C65'; wwv_flow_api.g_varchar2_table(8) := '2E6572726F72282243616E6E6F7420736574757020536C6964656F76657220506C75672D496E5C6E222E636F6E636174286529297D617065782E6A51756572792877696E646F77292E6F6E28226170657877696E646F77726573697A6564222C2866756E'; wwv_flow_api.g_varchar2_table(9) := '6374696F6E28297B6F3D21307D29292C617065782E726567696F6E2E63726561746528742C7B747970653A22536C6964656F766572222C6F70656E3A66756E6374696F6E28297B6F262628646F63756D656E742E717565727953656C6563746F72416C6C'; wwv_flow_api.g_varchar2_table(10) := '282223222E636F6E63617428742C27206469765B726F6C653D22726567696F6E225D2729292E666F7245616368282866756E6374696F6E2865297B76617220743D652E69643B7472797B766172206E3D617065782E726567696F6E2874293B766F696420'; wwv_flow_api.g_varchar2_table(11) := '30213D3D6E2E63616C6C26266E2E63616C6C2822726573697A6522297D63617463682865297B7D7D29292C6F3D2131292C646F63756D656E742E676574456C656D656E74427949642873292E6F70656E3D2274727565227D2C636C6F73653A66756E6374'; wwv_flow_api.g_varchar2_table(12) := '696F6E28297B646F63756D656E742E676574456C656D656E74427949642873292E6F70656E3D2266616C7365227D2C7365745469746C653A66756E6374696F6E2865297B646F63756D656E742E676574456C656D656E74427949642873292E6865616465'; wwv_flow_api.g_varchar2_table(13) := '723D657D2C77696467657446756C6C4E616D653A22536C6964656F7665722D576964676574227D297D7D7D2C743D7B7D3B66756E6374696F6E206E2869297B76617220723D745B695D3B696628766F69642030213D3D722972657475726E20722E657870'; wwv_flow_api.g_varchar2_table(14) := '6F7274733B766172206F3D745B695D3D7B6578706F7274733A7B7D7D3B72657475726E20655B695D286F2C6F2E6578706F7274732C6E292C6F2E6578706F7274737D2828293D3E7B2275736520737472696374223B636F6E737420653D77696E646F772E'; wwv_flow_api.g_varchar2_table(15) := '536861646F77526F6F74262628766F696420303D3D3D77696E646F772E53686164794353537C7C77696E646F772E53686164794353532E6E6174697665536861646F772926262261646F707465645374796C6553686565747322696E20446F63756D656E'; wwv_flow_api.g_varchar2_table(16) := '742E70726F746F747970652626227265706C61636522696E204353535374796C6553686565742E70726F746F747970652C743D53796D626F6C28293B636C61737320697B636F6E7374727563746F7228652C6E297B6966286E213D3D74297468726F7720'; wwv_flow_api.g_varchar2_table(17) := '4572726F722822435353526573756C74206973206E6F7420636F6E73747275637461626C652E205573652060756E7361666543535360206F7220606373736020696E73746561642E22293B746869732E637373546578743D657D676574207374796C6553'; wwv_flow_api.g_varchar2_table(18) := '6865657428297B72657475726E20652626766F696420303D3D3D746869732E74262628746869732E743D6E6577204353535374796C6553686565742C746869732E742E7265706C61636553796E6328746869732E6373735465787429292C746869732E74'; wwv_flow_api.g_varchar2_table(19) := '7D746F537472696E6728297B72657475726E20746869732E637373546578747D7D636F6E737420723D6E6577204D61702C6F3D653D3E7B6C6574206E3D722E6765742865293B72657475726E20766F696420303D3D3D6E2626722E73657428652C6E3D6E'; wwv_flow_api.g_varchar2_table(20) := '6577206928652C7429292C6E7D2C733D653F653D3E653A653D3E6520696E7374616E63656F66204353535374796C6553686565743F28653D3E7B6C657420743D22223B666F7228636F6E7374206E206F6620652E63737352756C657329742B3D6E2E6373'; wwv_flow_api.g_varchar2_table(21) := '73546578743B72657475726E28653D3E6F2822737472696E67223D3D747970656F6620653F653A652B222229292874297D292865293A653B766172206C2C612C632C643B636F6E737420683D7B746F41747472696275746528652C74297B737769746368'; wwv_flow_api.g_varchar2_table(22) := '2874297B6361736520426F6F6C65616E3A653D653F22223A6E756C6C3B627265616B3B63617365204F626A6563743A636173652041727261793A653D6E756C6C3D3D653F653A4A534F4E2E737472696E676966792865297D72657475726E20657D2C6672'; wwv_flow_api.g_varchar2_table(23) := '6F6D41747472696275746528652C74297B6C6574206E3D653B7377697463682874297B6361736520426F6F6C65616E3A6E3D6E756C6C213D3D653B627265616B3B63617365204E756D6265723A6E3D6E756C6C3D3D3D653F6E756C6C3A4E756D62657228'; wwv_flow_api.g_varchar2_table(24) := '65293B627265616B3B63617365204F626A6563743A636173652041727261793A7472797B6E3D4A534F4E2E70617273652865297D63617463682865297B6E3D6E756C6C7D7D72657475726E206E7D7D2C753D28652C74293D3E74213D3D65262628743D3D'; wwv_flow_api.g_varchar2_table(25) := '747C7C653D3D65292C703D7B6174747269627574653A21302C747970653A537472696E672C636F6E7665727465723A682C7265666C6563743A21312C6861734368616E6765643A757D3B636C617373206620657874656E64732048544D4C456C656D656E'; wwv_flow_api.g_varchar2_table(26) := '747B636F6E7374727563746F7228297B737570657228292C746869732ECEA0693D6E6577204D61702C746869732ECEA06F3D766F696420302C746869732ECEA06C3D766F696420302C746869732E697355706461746550656E64696E673D21312C746869'; wwv_flow_api.g_varchar2_table(27) := '732E686173557064617465643D21312C746869732ECEA0683D6E756C6C2C746869732E7528297D73746174696320616464496E697469616C697A65722865297B76617220743B6E756C6C213D3D28743D746869732E76292626766F69642030213D3D747C'; wwv_flow_api.g_varchar2_table(28) := '7C28746869732E763D5B5D292C746869732E762E707573682865297D73746174696320676574206F627365727665644174747269627574657328297B746869732E66696E616C697A6528293B636F6E737420653D5B5D3B72657475726E20746869732E65'; wwv_flow_api.g_varchar2_table(29) := '6C656D656E7450726F706572746965732E666F7245616368282828742C6E293D3E7B636F6E737420693D746869732ECEA070286E2C74293B766F69642030213D3D69262628746869732ECEA06D2E73657428692C6E292C652E70757368286929297D2929'; wwv_flow_api.g_varchar2_table(30) := '2C657D7374617469632063726561746550726F706572747928652C743D70297B696628742E7374617465262628742E6174747269627574653D2131292C746869732E66696E616C697A6528292C746869732E656C656D656E7450726F706572746965732E'; wwv_flow_api.g_varchar2_table(31) := '73657428652C74292C21742E6E6F4163636573736F72262621746869732E70726F746F747970652E6861734F776E50726F7065727479286529297B636F6E7374206E3D2273796D626F6C223D3D747970656F6620653F53796D626F6C28293A225F5F222B'; wwv_flow_api.g_varchar2_table(32) := '652C693D746869732E67657450726F706572747944657363726970746F7228652C6E2C74293B766F69642030213D3D6926264F626A6563742E646566696E6550726F706572747928746869732E70726F746F747970652C652C69297D7D73746174696320'; wwv_flow_api.g_varchar2_table(33) := '67657450726F706572747944657363726970746F7228652C742C6E297B72657475726E7B67657428297B72657475726E20746869735B745D7D2C7365742869297B636F6E737420723D746869735B655D3B746869735B745D3D692C746869732E72657175'; wwv_flow_api.g_varchar2_table(34) := '65737455706461746528652C722C6E297D2C636F6E666967757261626C653A21302C656E756D657261626C653A21307D7D7374617469632067657450726F70657274794F7074696F6E732865297B72657475726E20746869732E656C656D656E7450726F'; wwv_flow_api.g_varchar2_table(35) := '706572746965732E6765742865297C7C707D7374617469632066696E616C697A6528297B696628746869732E6861734F776E50726F7065727479282266696E616C697A656422292972657475726E21313B746869732E66696E616C697A65643D21303B63'; wwv_flow_api.g_varchar2_table(36) := '6F6E737420653D4F626A6563742E67657450726F746F747970654F662874686973293B696628652E66696E616C697A6528292C746869732E656C656D656E7450726F706572746965733D6E6577204D617028652E656C656D656E7450726F706572746965'; wwv_flow_api.g_varchar2_table(37) := '73292C746869732ECEA06D3D6E6577204D61702C746869732E6861734F776E50726F7065727479282270726F706572746965732229297B636F6E737420653D746869732E70726F706572746965732C743D5B2E2E2E4F626A6563742E6765744F776E5072'; wwv_flow_api.g_varchar2_table(38) := '6F70657274794E616D65732865292C2E2E2E4F626A6563742E6765744F776E50726F706572747953796D626F6C732865295D3B666F7228636F6E7374206E206F66207429746869732E63726561746550726F7065727479286E2C655B6E5D297D72657475'; wwv_flow_api.g_varchar2_table(39) := '726E20746869732E656C656D656E745374796C65733D746869732E66696E616C697A655374796C657328746869732E7374796C6573292C21307D7374617469632066696E616C697A655374796C65732865297B636F6E737420743D5B5D3B696628417272'; wwv_flow_api.g_varchar2_table(40) := '61792E69734172726179286529297B636F6E7374206E3D6E65772053657428652E666C617428312F30292E726576657273652829293B666F7228636F6E73742065206F66206E29742E756E73686966742873286529297D656C736520766F69642030213D'; wwv_flow_api.g_varchar2_table(41) := '3D652626742E707573682873286529293B72657475726E20747D73746174696320CEA07028652C74297B636F6E7374206E3D742E6174747269627574653B72657475726E21313D3D3D6E3F766F696420303A22737472696E67223D3D747970656F66206E'; wwv_flow_api.g_varchar2_table(42) := '3F6E3A22737472696E67223D3D747970656F6620653F652E746F4C6F7765724361736528293A766F696420307D7528297B76617220653B746869732ECEA0673D6E65772050726F6D6973652828653D3E746869732E656E61626C655570646174696E673D'; wwv_flow_api.g_varchar2_table(43) := '6529292C746869732E4C3D6E6577204D61702C746869732ECEA05F28292C746869732E7265717565737455706461746528292C6E756C6C3D3D3D28653D746869732E636F6E7374727563746F722E76297C7C766F696420303D3D3D657C7C652E666F7245'; wwv_flow_api.g_varchar2_table(44) := '6163682828653D3E6528746869732929297D616464436F6E74726F6C6C65722865297B76617220742C6E3B286E756C6C213D3D28743D746869732ECEA055292626766F69642030213D3D743F743A746869732ECEA0553D5B5D292E707573682865292C76'; wwv_flow_api.g_varchar2_table(45) := '6F69642030213D3D746869732E72656E646572526F6F742626746869732E6973436F6E6E65637465642626286E756C6C3D3D3D286E3D652E686F7374436F6E6E6563746564297C7C766F696420303D3D3D6E7C7C6E2E63616C6C286529297D72656D6F76'; wwv_flow_api.g_varchar2_table(46) := '65436F6E74726F6C6C65722865297B76617220743B6E756C6C3D3D3D28743D746869732ECEA055297C7C766F696420303D3D3D747C7C742E73706C69636528746869732ECEA0552E696E6465784F662865293E3E3E302C31297DCEA05F28297B74686973'; wwv_flow_api.g_varchar2_table(47) := '2E636F6E7374727563746F722E656C656D656E7450726F706572746965732E666F7245616368282828652C74293D3E7B746869732E6861734F776E50726F7065727479287429262628746869732ECEA0692E73657428742C746869735B745D292C64656C'; wwv_flow_api.g_varchar2_table(48) := '65746520746869735B745D297D29297D63726561746552656E646572526F6F7428297B76617220743B636F6E7374206E3D6E756C6C213D3D28743D746869732E736861646F77526F6F74292626766F69642030213D3D743F743A746869732E6174746163'; wwv_flow_api.g_varchar2_table(49) := '68536861646F7728746869732E636F6E7374727563746F722E736861646F77526F6F744F7074696F6E73293B72657475726E2828742C6E293D3E7B653F742E61646F707465645374796C655368656574733D6E2E6D61702828653D3E6520696E7374616E'; wwv_flow_api.g_varchar2_table(50) := '63656F66204353535374796C6553686565743F653A652E7374796C65536865657429293A6E2E666F72456163682828653D3E7B636F6E7374206E3D646F63756D656E742E637265617465456C656D656E7428227374796C6522293B6E2E74657874436F6E'; wwv_flow_api.g_varchar2_table(51) := '74656E743D652E637373546578742C742E617070656E644368696C64286E297D29297D29286E2C746869732E636F6E7374727563746F722E656C656D656E745374796C6573292C6E7D636F6E6E656374656443616C6C6261636B28297B76617220653B76'; wwv_flow_api.g_varchar2_table(52) := '6F696420303D3D3D746869732E72656E646572526F6F74262628746869732E72656E646572526F6F743D746869732E63726561746552656E646572526F6F742829292C746869732E656E61626C655570646174696E67282130292C6E756C6C3D3D3D2865'; wwv_flow_api.g_varchar2_table(53) := '3D746869732ECEA055297C7C766F696420303D3D3D657C7C652E666F72456163682828653D3E7B76617220743B72657475726E206E756C6C3D3D3D28743D652E686F7374436F6E6E6563746564297C7C766F696420303D3D3D743F766F696420303A742E'; wwv_flow_api.g_varchar2_table(54) := '63616C6C2865297D29292C746869732ECEA06C262628746869732ECEA06C28292C746869732ECEA06F3D746869732ECEA06C3D766F69642030297D656E61626C655570646174696E672865297B7D646973636F6E6E656374656443616C6C6261636B2829'; wwv_flow_api.g_varchar2_table(55) := '7B76617220653B6E756C6C3D3D3D28653D746869732ECEA055297C7C766F696420303D3D3D657C7C652E666F72456163682828653D3E7B76617220743B72657475726E206E756C6C3D3D3D28743D652E686F7374446973636F6E6E6563746564297C7C76'; wwv_flow_api.g_varchar2_table(56) := '6F696420303D3D3D743F766F696420303A742E63616C6C2865297D29292C746869732ECEA06F3D6E65772050726F6D6973652828653D3E746869732ECEA06C3D6529297D6174747269627574654368616E67656443616C6C6261636B28652C742C6E297B'; wwv_flow_api.g_varchar2_table(57) := '746869732E4B28652C6E297DCEA06A28652C742C6E3D70297B76617220692C723B636F6E7374206F3D746869732E636F6E7374727563746F722ECEA07028652C6E293B696628766F69642030213D3D6F262621303D3D3D6E2E7265666C656374297B636F'; wwv_flow_api.g_varchar2_table(58) := '6E737420733D286E756C6C213D3D28723D6E756C6C3D3D3D28693D6E2E636F6E766572746572297C7C766F696420303D3D3D693F766F696420303A692E746F417474726962757465292626766F69642030213D3D723F723A682E746F4174747269627574'; wwv_flow_api.g_varchar2_table(59) := '652928742C6E2E74797065293B746869732ECEA0683D652C6E756C6C3D3D733F746869732E72656D6F7665417474726962757465286F293A746869732E736574417474726962757465286F2C73292C746869732ECEA0683D6E756C6C7D7D4B28652C7429'; wwv_flow_api.g_varchar2_table(60) := '7B766172206E2C692C723B636F6E7374206F3D746869732E636F6E7374727563746F722C733D6F2ECEA06D2E6765742865293B696628766F69642030213D3D732626746869732ECEA068213D3D73297B636F6E737420653D6F2E67657450726F70657274'; wwv_flow_api.g_varchar2_table(61) := '794F7074696F6E732873292C6C3D652E636F6E7665727465722C613D6E756C6C213D3D28723D6E756C6C213D3D28693D6E756C6C3D3D3D286E3D6C297C7C766F696420303D3D3D6E3F766F696420303A6E2E66726F6D417474726962757465292626766F'; wwv_flow_api.g_varchar2_table(62) := '69642030213D3D693F693A2266756E6374696F6E223D3D747970656F66206C3F6C3A6E756C6C292626766F69642030213D3D723F723A682E66726F6D4174747269627574653B746869732ECEA0683D732C746869735B735D3D6128742C652E7479706529'; wwv_flow_api.g_varchar2_table(63) := '2C746869732ECEA0683D6E756C6C7D7D7265717565737455706461746528652C742C6E297B6C657420693D21303B766F69642030213D3D6526262828286E3D6E7C7C746869732E636F6E7374727563746F722E67657450726F70657274794F7074696F6E'; wwv_flow_api.g_varchar2_table(64) := '73286529292E6861734368616E6765647C7C752928746869735B655D2C74293F28746869732E4C2E6861732865297C7C746869732E4C2E73657428652C74292C21303D3D3D6E2E7265666C6563742626746869732ECEA068213D3D65262628766F696420'; wwv_flow_api.g_varchar2_table(65) := '303D3D3D746869732ECEA06B262628746869732ECEA06B3D6E6577204D6170292C746869732ECEA06B2E73657428652C6E2929293A693D2131292C21746869732E697355706461746550656E64696E67262669262628746869732ECEA0673D746869732E'; wwv_flow_api.g_varchar2_table(66) := 'CEA0712829297D6173796E6320CEA07128297B746869732E697355706461746550656E64696E673D21303B7472797B666F7228617761697420746869732ECEA0673B746869732ECEA06F3B29617761697420746869732ECEA06F7D63617463682865297B'; wwv_flow_api.g_varchar2_table(67) := '50726F6D6973652E72656A6563742865297D636F6E737420653D746869732E706572666F726D55706461746528293B72657475726E206E756C6C213D652626617761697420652C21746869732E697355706461746550656E64696E677D706572666F726D'; wwv_flow_api.g_varchar2_table(68) := '55706461746528297B76617220653B69662821746869732E697355706461746550656E64696E672972657475726E3B746869732E686173557064617465642C746869732ECEA069262628746869732ECEA0692E666F7245616368282828652C74293D3E74'; wwv_flow_api.g_varchar2_table(69) := '6869735B745D3D6529292C746869732ECEA0693D766F69642030293B6C657420743D21313B636F6E7374206E3D746869732E4C3B7472797B743D746869732E73686F756C64557064617465286E292C743F28746869732E77696C6C557064617465286E29'; wwv_flow_api.g_varchar2_table(70) := '2C6E756C6C3D3D3D28653D746869732ECEA055297C7C766F696420303D3D3D657C7C652E666F72456163682828653D3E7B76617220743B72657475726E206E756C6C3D3D3D28743D652E686F7374557064617465297C7C766F696420303D3D3D743F766F'; wwv_flow_api.g_varchar2_table(71) := '696420303A742E63616C6C2865297D29292C746869732E757064617465286E29293A746869732ECEA02428297D63617463682865297B7468726F7720743D21312C746869732ECEA02428292C657D742626746869732E45286E297D77696C6C5570646174'; wwv_flow_api.g_varchar2_table(72) := '652865297B7D452865297B76617220743B6E756C6C3D3D3D28743D746869732ECEA055297C7C766F696420303D3D3D747C7C742E666F72456163682828653D3E7B76617220743B72657475726E206E756C6C3D3D3D28743D652E686F7374557064617465'; wwv_flow_api.g_varchar2_table(73) := '64297C7C766F696420303D3D3D743F766F696420303A742E63616C6C2865297D29292C746869732E686173557064617465647C7C28746869732E686173557064617465643D21302C746869732E666972737455706461746564286529292C746869732E75'; wwv_flow_api.g_varchar2_table(74) := '7064617465642865297DCEA02428297B746869732E4C3D6E6577204D61702C746869732E697355706461746550656E64696E673D21317D67657420757064617465436F6D706C65746528297B72657475726E20746869732E676574557064617465436F6D'; wwv_flow_api.g_varchar2_table(75) := '706C65746528297D676574557064617465436F6D706C65746528297B72657475726E20746869732ECEA0677D73686F756C645570646174652865297B72657475726E21307D7570646174652865297B766F69642030213D3D746869732ECEA06B26262874'; wwv_flow_api.g_varchar2_table(76) := '6869732ECEA06B2E666F7245616368282828652C74293D3E746869732ECEA06A28742C746869735B745D2C652929292C746869732ECEA06B3D766F69642030292C746869732ECEA02428297D757064617465642865297B7D666972737455706461746564'; wwv_flow_api.g_varchar2_table(77) := '2865297B7D7D76617220762C6D2C792C673B662E66696E616C697A65643D21302C662E656C656D656E7450726F706572746965733D6E6577204D61702C662E656C656D656E745374796C65733D5B5D2C662E736861646F77526F6F744F7074696F6E733D'; wwv_flow_api.g_varchar2_table(78) := '7B6D6F64653A226F70656E227D2C6E756C6C3D3D3D28613D286C3D676C6F62616C54686973292E7265616374697665456C656D656E74506C6174666F726D537570706F7274297C7C766F696420303D3D3D617C7C612E63616C6C286C2C7B526561637469'; wwv_flow_api.g_varchar2_table(79) := '7665456C656D656E743A667D292C286E756C6C213D3D28633D28643D676C6F62616C54686973292E7265616374697665456C656D656E7456657273696F6E73292626766F69642030213D3D633F633A642E7265616374697665456C656D656E7456657273'; wwv_flow_api.g_varchar2_table(80) := '696F6E733D5B5D292E707573682822312E302E302D72632E3222293B636F6E737420623D676C6F62616C546869732E7472757374656454797065732C773D623F622E637265617465506F6C69637928226C69742D68746D6C222C7B63726561746548544D'; wwv_flow_api.g_varchar2_table(81) := '4C3A653D3E657D293A766F696420302C6B3D606C697424247B284D6174682E72616E646F6D28292B2222292E736C6963652839297D24602C533D223F222B6B2C453D603C247B537D3E602C783D646F63756D656E742C433D28653D2222293D3E782E6372'; wwv_flow_api.g_varchar2_table(82) := '65617465436F6D6D656E742865292C503D653D3E6E756C6C3D3D3D657C7C226F626A65637422213D747970656F66206526262266756E6374696F6E22213D747970656F6620652C413D41727261792E697341727261792C4F3D653D3E7B76617220743B72'; wwv_flow_api.g_varchar2_table(83) := '657475726E20412865297C7C2266756E6374696F6E223D3D747970656F66286E756C6C3D3D3D28743D65297C7C766F696420303D3D3D743F766F696420303A745B53796D626F6C2E6974657261746F725D297D2C543D2F3C283F3A28212D2D7C5C2F5B5E'; wwv_flow_api.g_varchar2_table(84) := '612D7A412D5A5D297C285C2F3F5B612D7A412D5A5D5B5E3E5C735D2A297C285C2F3F2429292F672C553D2F2D2D3E2F672C523D2F3E2F672C7A3D2F3E7C5B20095C6E0C5C725D283F3A285B5E5C7322273E3D2F5D2B29285B20095C6E0C5C725D2A3D5B20'; wwv_flow_api.g_varchar2_table(85) := '095C6E0C5C725D2A283F3A5B5E20095C6E0C5C722227603C3E3D5D7C28227C27297C29297C24292F672C243D2F272F672C483D2F222F672C6A3D2F5E283F3A7363726970747C7374796C657C746578746172656129242F692C5F3D653D3E28742C2E2E2E'; wwv_flow_api.g_varchar2_table(86) := '6E293D3E287B5F246C697454797065243A652C737472696E67733A742C76616C7565733A6E7D292C4E3D5F2831292C443D285F2832292C53796D626F6C2E666F7228226C69742D6E6F4368616E67652229292C4C3D53796D626F6C2E666F7228226C6974'; wwv_flow_api.g_varchar2_table(87) := '2D6E6F7468696E6722292C493D6E6577205765616B4D61702C4D3D782E6372656174655472656557616C6B657228782C3132392C6E756C6C2C2131292C423D28652C74293D3E7B636F6E7374206E3D652E6C656E6774682D312C693D5B5D3B6C65742072'; wwv_flow_api.g_varchar2_table(88) := '2C6F3D323D3D3D743F223C7376673E223A22222C733D543B666F72286C657420743D303B743C6E3B742B2B297B636F6E7374206E3D655B745D3B6C6574206C2C612C633D2D312C643D303B666F72283B643C6E2E6C656E677468262628732E6C61737449'; wwv_flow_api.g_varchar2_table(89) := '6E6465783D642C613D732E65786563286E292C6E756C6C213D3D61293B29643D732E6C617374496E6465782C733D3D3D543F22212D2D223D3D3D615B315D3F733D553A766F69642030213D3D615B315D3F733D523A766F69642030213D3D615B325D3F28'; wwv_flow_api.g_varchar2_table(90) := '6A2E7465737428615B325D29262628723D52656745787028223C2F222B615B325D2C22672229292C733D7A293A766F69642030213D3D615B335D262628733D7A293A733D3D3D7A3F223E223D3D3D615B305D3F28733D6E756C6C213D723F723A542C633D'; wwv_flow_api.g_varchar2_table(91) := '2D31293A766F696420303D3D3D615B315D3F633D2D323A28633D732E6C617374496E6465782D615B325D2E6C656E6774682C6C3D615B315D2C733D766F696420303D3D3D615B335D3F7A3A2722273D3D3D615B335D3F483A24293A733D3D3D487C7C733D'; wwv_flow_api.g_varchar2_table(92) := '3D3D243F733D7A3A733D3D3D557C7C733D3D3D523F733D543A28733D7A2C723D766F69642030293B636F6E737420683D733D3D3D7A2626655B742B315D2E7374617274735769746828222F3E22293F2220223A22223B6F2B3D733D3D3D543F6E2B453A63'; wwv_flow_api.g_varchar2_table(93) := '3E3D303F28692E70757368286C292C6E2E736C69636528302C63292B22246C697424222B6E2E736C6963652863292B6B2B68293A6E2B6B2B282D323D3D3D633F28692E7075736828766F69642030292C74293A68297D636F6E7374206C3D6F2B28655B6E'; wwv_flow_api.g_varchar2_table(94) := '5D7C7C223C3F3E22292B28323D3D3D743F223C2F7376673E223A2222293B72657475726E5B766F69642030213D3D773F772E63726561746548544D4C286C293A6C2C695D7D3B636C61737320467B636F6E7374727563746F72287B737472696E67733A65'; wwv_flow_api.g_varchar2_table(95) := '2C5F246C697454797065243A747D2C6E297B6C657420693B746869732E70617274733D5B5D3B6C657420723D302C6F3D303B636F6E737420733D652E6C656E6774682D312C6C3D746869732E70617274732C5B612C635D3D4228652C74293B6966287468'; wwv_flow_api.g_varchar2_table(96) := '69732E656C3D462E637265617465456C656D656E7428612C6E292C4D2E63757272656E744E6F64653D746869732E656C2E636F6E74656E742C323D3D3D74297B636F6E737420653D746869732E656C2E636F6E74656E742C743D652E6669727374436869'; wwv_flow_api.g_varchar2_table(97) := '6C643B742E72656D6F766528292C652E617070656E64282E2E2E742E6368696C644E6F646573297D666F72283B6E756C6C213D3D28693D4D2E6E6578744E6F646528292926266C2E6C656E6774683C733B297B696628313D3D3D692E6E6F646554797065'; wwv_flow_api.g_varchar2_table(98) := '297B696628692E686173417474726962757465732829297B636F6E737420653D5B5D3B666F7228636F6E73742074206F6620692E6765744174747269627574654E616D6573282929696628742E656E6473576974682822246C69742422297C7C742E7374'; wwv_flow_api.g_varchar2_table(99) := '6172747357697468286B29297B636F6E7374206E3D635B6F2B2B5D3B696628652E707573682874292C766F69642030213D3D6E297B636F6E737420653D692E676574417474726962757465286E2E746F4C6F7765724361736528292B22246C6974242229'; wwv_flow_api.g_varchar2_table(100) := '2E73706C6974286B292C743D2F285B2E3F405D293F282E2A292F2E65786563286E293B6C2E70757368287B747970653A312C696E6465783A722C6E616D653A745B325D2C737472696E67733A652C63746F723A222E223D3D3D745B315D3F4A3A223F223D'; wwv_flow_api.g_varchar2_table(101) := '3D3D745B315D3F583A2240223D3D3D745B315D3F5A3A4B7D297D656C7365206C2E70757368287B747970653A362C696E6465783A727D297D666F7228636F6E73742074206F66206529692E72656D6F76654174747269627574652874297D6966286A2E74'; wwv_flow_api.g_varchar2_table(102) := '65737428692E7461674E616D6529297B636F6E737420653D692E74657874436F6E74656E742E73706C6974286B292C743D652E6C656E6774682D313B696628743E30297B692E74657874436F6E74656E743D623F622E656D7074795363726970743A2222'; wwv_flow_api.g_varchar2_table(103) := '3B666F72286C6574206E3D303B6E3C743B6E2B2B29692E617070656E6428655B6E5D2C432829292C4D2E6E6578744E6F646528292C6C2E70757368287B747970653A322C696E6465783A2B2B727D293B692E617070656E6428655B745D2C432829297D7D'; wwv_flow_api.g_varchar2_table(104) := '7D656C736520696628383D3D3D692E6E6F64655479706529696628692E646174613D3D3D53296C2E70757368287B747970653A322C696E6465783A727D293B656C73657B6C657420653D2D313B666F72283B2D31213D3D28653D692E646174612E696E64'; wwv_flow_api.g_varchar2_table(105) := '65784F66286B2C652B3129293B296C2E70757368287B747970653A372C696E6465783A727D292C652B3D6B2E6C656E6774682D317D722B2B7D7D73746174696320637265617465456C656D656E7428652C74297B636F6E7374206E3D782E637265617465'; wwv_flow_api.g_varchar2_table(106) := '456C656D656E74282274656D706C61746522293B72657475726E206E2E696E6E657248544D4C3D652C6E7D7D66756E6374696F6E207128652C742C6E3D652C69297B76617220722C6F2C732C6C3B696628743D3D3D442972657475726E20743B6C657420'; wwv_flow_api.g_varchar2_table(107) := '613D766F69642030213D3D693F6E756C6C3D3D3D28723D6E2ECEA369297C7C766F696420303D3D3D723F766F696420303A725B695D3A6E2ECEA36F3B636F6E737420633D502874293F766F696420303A742E5F246C6974446972656374697665243B7265'; wwv_flow_api.g_varchar2_table(108) := '7475726E286E756C6C3D3D613F766F696420303A612E636F6E7374727563746F7229213D3D632626286E756C6C3D3D3D286F3D6E756C6C3D3D613F766F696420303A612E4F297C7C766F696420303D3D3D6F7C7C6F2E63616C6C28612C2131292C766F69'; wwv_flow_api.g_varchar2_table(109) := '6420303D3D3D633F613D766F696420303A28613D6E657720632865292C612E5428652C6E2C6929292C766F69642030213D3D693F286E756C6C213D3D28733D286C3D6E292ECEA369292626766F69642030213D3D733F733A6C2ECEA3693D5B5D295B695D'; wwv_flow_api.g_varchar2_table(110) := '3D613A6E2ECEA36F3D61292C766F69642030213D3D61262628743D7128652C612E5328652C742E76616C756573292C612C6929292C747D636C61737320577B636F6E7374727563746F7228652C74297B746869732E6C3D5B5D2C746869732E4E3D766F69'; wwv_flow_api.g_varchar2_table(111) := '6420302C746869732E443D652C746869732E4D3D747D752865297B76617220743B636F6E73747B656C3A7B636F6E74656E743A6E7D2C70617274733A697D3D746869732E442C723D286E756C6C213D3D28743D6E756C6C3D3D653F766F696420303A652E'; wwv_flow_api.g_varchar2_table(112) := '6372656174696F6E53636F7065292626766F69642030213D3D743F743A78292E696D706F72744E6F6465286E2C2130293B4D2E63757272656E744E6F64653D723B6C6574206F3D4D2E6E6578744E6F646528292C733D302C6C3D302C613D695B305D3B66'; wwv_flow_api.g_varchar2_table(113) := '6F72283B766F69642030213D3D613B297B696628733D3D3D612E696E646578297B6C657420743B323D3D3D612E747970653F743D6E65772056286F2C6F2E6E6578745369626C696E672C746869732C65293A313D3D3D612E747970653F743D6E65772061'; wwv_flow_api.g_varchar2_table(114) := '2E63746F72286F2C612E6E616D652C612E737472696E67732C746869732C65293A363D3D3D612E74797065262628743D6E65772051286F2C746869732C6529292C746869732E6C2E707573682874292C613D695B2B2B6C5D7D73213D3D286E756C6C3D3D'; wwv_flow_api.g_varchar2_table(115) := '613F766F696420303A612E696E646578292626286F3D4D2E6E6578744E6F646528292C732B2B297D72657475726E20727D762865297B6C657420743D303B666F7228636F6E7374206E206F6620746869732E6C29766F69642030213D3D6E262628766F69'; wwv_flow_api.g_varchar2_table(116) := '642030213D3D6E2E737472696E67733F286E2E4928652C6E2C74292C742B3D6E2E737472696E67732E6C656E6774682D32293A6E2E4928655B745D29292C742B2B7D7D636C61737320567B636F6E7374727563746F7228652C742C6E2C69297B74686973'; wwv_flow_api.g_varchar2_table(117) := '2E747970653D322C746869732E4E3D766F696420302C746869732E413D652C746869732E423D742C746869732E4D3D6E2C746869732E6F7074696F6E733D697D736574436F6E6E65637465642865297B76617220743B6E756C6C3D3D3D28743D74686973'; wwv_flow_api.g_varchar2_table(118) := '2E50297C7C766F696420303D3D3D747C7C742E63616C6C28746869732C65297D67657420706172656E744E6F646528297B72657475726E20746869732E412E706172656E744E6F64657D6765742073746172744E6F646528297B72657475726E20746869'; wwv_flow_api.g_varchar2_table(119) := '732E417D67657420656E644E6F646528297B72657475726E20746869732E427D4928652C743D74686973297B653D7128746869732C652C74292C502865293F653D3D3D4C7C7C6E756C6C3D3D657C7C22223D3D3D653F28746869732E48213D3D4C262674'; wwv_flow_api.g_varchar2_table(120) := '6869732E5228292C746869732E483D4C293A65213D3D746869732E48262665213D3D442626746869732E6D2865293A766F69642030213D3D652E5F246C697454797065243F746869732E5F2865293A766F69642030213D3D652E6E6F6465547970653F74'; wwv_flow_api.g_varchar2_table(121) := '6869732E242865293A4F2865293F746869732E672865293A746869732E6D2865297D6B28652C743D746869732E42297B72657475726E20746869732E412E706172656E744E6F64652E696E736572744265666F726528652C74297D242865297B74686973'; wwv_flow_api.g_varchar2_table(122) := '2E48213D3D65262628746869732E5228292C746869732E483D746869732E6B286529297D6D2865297B636F6E737420743D746869732E412E6E6578745369626C696E673B6E756C6C213D3D742626333D3D3D742E6E6F6465547970652626286E756C6C3D'; wwv_flow_api.g_varchar2_table(123) := '3D3D746869732E423F6E756C6C3D3D3D742E6E6578745369626C696E673A743D3D3D746869732E422E70726576696F75735369626C696E67293F742E646174613D653A746869732E2428782E637265617465546578744E6F6465286529292C746869732E'; wwv_flow_api.g_varchar2_table(124) := '483D657D5F2865297B76617220743B636F6E73747B76616C7565733A6E2C5F246C697454797065243A697D3D652C723D226E756D626572223D3D747970656F6620693F746869732E432865293A28766F696420303D3D3D692E656C262628692E656C3D46'; wwv_flow_api.g_varchar2_table(125) := '2E637265617465456C656D656E7428692E682C746869732E6F7074696F6E7329292C69293B696628286E756C6C3D3D3D28743D746869732E48297C7C766F696420303D3D3D743F766F696420303A742E44293D3D3D7229746869732E482E76286E293B65'; wwv_flow_api.g_varchar2_table(126) := '6C73657B636F6E737420653D6E6577205728722C74686973292C743D652E7528746869732E6F7074696F6E73293B652E76286E292C746869732E242874292C746869732E483D657D7D432865297B6C657420743D492E67657428652E737472696E677329'; wwv_flow_api.g_varchar2_table(127) := '3B72657475726E20766F696420303D3D3D742626492E73657428652E737472696E67732C743D6E65772046286529292C747D672865297B4128746869732E48297C7C28746869732E483D5B5D2C746869732E522829293B636F6E737420743D746869732E'; wwv_flow_api.g_varchar2_table(128) := '483B6C6574206E2C693D303B666F7228636F6E73742072206F66206529693D3D3D742E6C656E6774683F742E70757368286E3D6E6577205628746869732E6B28432829292C746869732E6B28432829292C746869732C746869732E6F7074696F6E732929'; wwv_flow_api.g_varchar2_table(129) := '3A6E3D745B695D2C6E2E492872292C692B2B3B693C742E6C656E677468262628746869732E52286E26266E2E422E6E6578745369626C696E672C69292C742E6C656E6774683D69297D5228653D746869732E412E6E6578745369626C696E672C74297B76'; wwv_flow_api.g_varchar2_table(130) := '6172206E3B666F72286E756C6C3D3D3D286E3D746869732E50297C7C766F696420303D3D3D6E7C7C6E2E63616C6C28746869732C21312C21302C74293B65262665213D3D746869732E423B297B636F6E737420743D652E6E6578745369626C696E673B65'; wwv_flow_api.g_varchar2_table(131) := '2E72656D6F766528292C653D747D7D7D636C617373204B7B636F6E7374727563746F7228652C742C6E2C692C72297B746869732E747970653D312C746869732E483D4C2C746869732E4E3D766F696420302C746869732E563D766F696420302C74686973'; wwv_flow_api.g_varchar2_table(132) := '2E656C656D656E743D652C746869732E6E616D653D742C746869732E4D3D692C746869732E6F7074696F6E733D722C6E2E6C656E6774683E327C7C2222213D3D6E5B305D7C7C2222213D3D6E5B315D3F28746869732E483D4172726179286E2E6C656E67'; wwv_flow_api.g_varchar2_table(133) := '74682D31292E66696C6C284C292C746869732E737472696E67733D6E293A746869732E483D4C7D676574207461674E616D6528297B72657475726E20746869732E656C656D656E742E7461674E616D657D4928652C743D746869732C6E2C69297B636F6E'; wwv_flow_api.g_varchar2_table(134) := '737420723D746869732E737472696E67733B6C6574206F3D21313B696628766F696420303D3D3D7229653D7128746869732C652C742C30292C6F3D21502865297C7C65213D3D746869732E48262665213D3D442C6F262628746869732E483D65293B656C'; wwv_flow_api.g_varchar2_table(135) := '73657B636F6E737420693D653B6C657420732C6C3B666F7228653D725B305D2C733D303B733C722E6C656E6774682D313B732B2B296C3D7128746869732C695B6E2B735D2C742C73292C6C3D3D3D442626286C3D746869732E485B735D292C6F7C7C286F'; wwv_flow_api.g_varchar2_table(136) := '3D2150286C297C7C6C213D3D746869732E485B735D292C6C3D3D3D4C3F653D4C3A65213D3D4C262628652B3D286E756C6C213D6C3F6C3A2222292B725B732B315D292C746869732E485B735D3D6C7D6F262621692626746869732E572865297D57286529'; wwv_flow_api.g_varchar2_table(137) := '7B653D3D3D4C3F746869732E656C656D656E742E72656D6F766541747472696275746528746869732E6E616D65293A746869732E656C656D656E742E73657441747472696275746528746869732E6E616D652C6E756C6C213D653F653A2222297D7D636C'; wwv_flow_api.g_varchar2_table(138) := '617373204A20657874656E6473204B7B636F6E7374727563746F7228297B7375706572282E2E2E617267756D656E7473292C746869732E747970653D337D572865297B746869732E656C656D656E745B746869732E6E616D655D3D653D3D3D4C3F766F69'; wwv_flow_api.g_varchar2_table(139) := '6420303A657D7D636C617373205820657874656E6473204B7B636F6E7374727563746F7228297B7375706572282E2E2E617267756D656E7473292C746869732E747970653D347D572865297B65262665213D3D4C3F746869732E656C656D656E742E7365'; wwv_flow_api.g_varchar2_table(140) := '7441747472696275746528746869732E6E616D652C2222293A746869732E656C656D656E742E72656D6F766541747472696275746528746869732E6E616D65297D7D636C617373205A20657874656E6473204B7B636F6E7374727563746F7228297B7375'; wwv_flow_api.g_varchar2_table(141) := '706572282E2E2E617267756D656E7473292C746869732E747970653D357D4928652C743D74686973297B766172206E3B69662828653D6E756C6C213D3D286E3D7128746869732C652C742C3029292626766F69642030213D3D6E3F6E3A4C293D3D3D4429'; wwv_flow_api.g_varchar2_table(142) := '72657475726E3B636F6E737420693D746869732E482C723D653D3D3D4C262669213D3D4C7C7C652E63617074757265213D3D692E636170747572657C7C652E6F6E6365213D3D692E6F6E63657C7C652E70617373697665213D3D692E706173736976652C'; wwv_flow_api.g_varchar2_table(143) := '6F3D65213D3D4C262628693D3D3D4C7C7C72293B722626746869732E656C656D656E742E72656D6F76654576656E744C697374656E657228746869732E6E616D652C746869732C69292C6F2626746869732E656C656D656E742E6164644576656E744C69'; wwv_flow_api.g_varchar2_table(144) := '7374656E657228746869732E6E616D652C746869732C65292C746869732E483D657D68616E646C654576656E742865297B76617220742C6E3B2266756E6374696F6E223D3D747970656F6620746869732E483F746869732E482E63616C6C286E756C6C21'; wwv_flow_api.g_varchar2_table(145) := '3D3D286E3D6E756C6C3D3D3D28743D746869732E6F7074696F6E73297C7C766F696420303D3D3D743F766F696420303A742E686F7374292626766F69642030213D3D6E3F6E3A746869732E656C656D656E742C65293A746869732E482E68616E646C6545'; wwv_flow_api.g_varchar2_table(146) := '76656E742865297D7D636C61737320517B636F6E7374727563746F7228652C742C6E297B746869732E656C656D656E743D652C746869732E747970653D362C746869732E4E3D766F696420302C746869732E563D766F696420302C746869732E4D3D742C'; wwv_flow_api.g_varchar2_table(147) := '746869732E6F7074696F6E733D6E7D492865297B7128746869732C65297D7D76617220472C592C65652C74652C6E652C69653B6E756C6C3D3D3D286D3D28763D676C6F62616C54686973292E6C697448746D6C506C6174666F726D537570706F7274297C'; wwv_flow_api.g_varchar2_table(148) := '7C766F696420303D3D3D6D7C7C6D2E63616C6C28762C462C56292C286E756C6C213D3D28793D28673D676C6F62616C54686973292E6C697448746D6C56657273696F6E73292626766F69642030213D3D793F793A672E6C697448746D6C56657273696F6E'; wwv_flow_api.g_varchar2_table(149) := '733D5B5D292E707573682822322E302E302D72632E3322293B286E756C6C213D3D28473D2869653D676C6F62616C54686973292E6C6974456C656D656E7456657273696F6E73292626766F69642030213D3D473F473A69652E6C6974456C656D656E7456'; wwv_flow_api.g_varchar2_table(150) := '657273696F6E733D5B5D292E707573682822332E302E302D72632E3222293B636C61737320726520657874656E647320667B636F6E7374727563746F7228297B7375706572282E2E2E617267756D656E7473292C746869732E72656E6465724F7074696F'; wwv_flow_api.g_varchar2_table(151) := '6E733D7B686F73743A746869737D2C746869732ECEA6743D766F696420307D63726561746552656E646572526F6F7428297B76617220652C743B636F6E7374206E3D73757065722E63726561746552656E646572526F6F7428293B72657475726E206E75'; wwv_flow_api.g_varchar2_table(152) := '6C6C213D3D28653D28743D746869732E72656E6465724F7074696F6E73292E72656E6465724265666F7265292626766F69642030213D3D657C7C28742E72656E6465724265666F72653D6E2E66697273744368696C64292C6E7D7570646174652865297B'; wwv_flow_api.g_varchar2_table(153) := '636F6E737420743D746869732E72656E64657228293B73757065722E7570646174652865292C746869732ECEA6743D2828652C742C6E293D3E7B76617220692C723B636F6E7374206F3D6E756C6C213D3D28693D6E756C6C3D3D6E3F766F696420303A6E'; wwv_flow_api.g_varchar2_table(154) := '2E72656E6465724265666F7265292626766F69642030213D3D693F693A743B6C657420733D6F2E5F246C697450617274243B696628766F696420303D3D3D73297B636F6E737420653D6E756C6C213D3D28723D6E756C6C3D3D6E3F766F696420303A6E2E'; wwv_flow_api.g_varchar2_table(155) := '72656E6465724265666F7265292626766F69642030213D3D723F723A6E756C6C3B6F2E5F246C697450617274243D733D6E6577205628742E696E736572744265666F7265284328292C65292C652C766F696420302C6E297D72657475726E20732E492865'; wwv_flow_api.g_varchar2_table(156) := '292C737D2928742C746869732E72656E646572526F6F742C746869732E72656E6465724F7074696F6E73297D636F6E6E656374656443616C6C6261636B28297B76617220653B73757065722E636F6E6E656374656443616C6C6261636B28292C6E756C6C'; wwv_flow_api.g_varchar2_table(157) := '3D3D3D28653D746869732ECEA674297C7C766F696420303D3D3D657C7C652E736574436F6E6E6563746564282130297D646973636F6E6E656374656443616C6C6261636B28297B76617220653B73757065722E646973636F6E6E656374656443616C6C62'; wwv_flow_api.g_varchar2_table(158) := '61636B28292C6E756C6C3D3D3D28653D746869732ECEA674297C7C766F696420303D3D3D657C7C652E736574436F6E6E6563746564282131297D72656E64657228297B72657475726E20447D7D72652E66696E616C697A65643D21302C72652E5F246C69'; wwv_flow_api.g_varchar2_table(159) := '74456C656D656E74243D21302C6E756C6C3D3D3D2865653D28593D676C6F62616C54686973292E6C6974456C656D656E7448796472617465537570706F7274297C7C766F696420303D3D3D65657C7C65652E63616C6C28592C7B4C6974456C656D656E74'; wwv_flow_api.g_varchar2_table(160) := '3A72657D292C6E756C6C3D3D3D286E653D2874653D676C6F62616C54686973292E6C6974456C656D656E74506C6174666F726D537570706F7274297C7C766F696420303D3D3D6E657C7C6E652E63616C6C2874652C7B4C6974456C656D656E743A72657D'; wwv_flow_api.g_varchar2_table(161) := '293B636F6E7374206F653D28652C74293D3E226D6574686F64223D3D3D742E6B696E642626742E64657363726970746F72262621282276616C756522696E20742E64657363726970746F72293F7B2E2E2E742C66696E6973686572286E297B6E2E637265'; wwv_flow_api.g_varchar2_table(162) := '61746550726F706572747928742E6B65792C65297D7D3A7B6B696E643A226669656C64222C6B65793A53796D626F6C28292C706C6163656D656E743A226F776E222C64657363726970746F723A7B7D2C6F726967696E616C4B65793A742E6B65792C696E'; wwv_flow_api.g_varchar2_table(163) := '697469616C697A657228297B2266756E6374696F6E223D3D747970656F6620742E696E697469616C697A6572262628746869735B742E6B65795D3D742E696E697469616C697A65722E63616C6C287468697329297D2C66696E6973686572286E297B6E2E'; wwv_flow_api.g_varchar2_table(164) := '63726561746550726F706572747928742E6B65792C65297D7D3B66756E6374696F6E2073652865297B72657475726E28742C6E293D3E766F69642030213D3D6E3F2828652C742C6E293D3E7B742E636F6E7374727563746F722E63726561746550726F70'; wwv_flow_api.g_varchar2_table(165) := '65727479286E2C65297D2928652C742C6E293A6F6528652C74297D636F6E7374206C653D456C656D656E742E70726F746F747970653B6C652E6D734D61746368657353656C6563746F727C7C6C652E7765626B69744D61746368657353656C6563746F72'; wwv_flow_api.g_varchar2_table(166) := '3B7661722061652C63653B6E28383634293B66756E6374696F6E2064652865297B72657475726E2864653D2266756E6374696F6E223D3D747970656F662053796D626F6C26262273796D626F6C223D3D747970656F662053796D626F6C2E697465726174'; wwv_flow_api.g_varchar2_table(167) := '6F723F66756E6374696F6E2865297B72657475726E20747970656F6620657D3A66756E6374696F6E2865297B72657475726E206526262266756E6374696F6E223D3D747970656F662053796D626F6C2626652E636F6E7374727563746F723D3D3D53796D'; wwv_flow_api.g_varchar2_table(168) := '626F6C262665213D3D53796D626F6C2E70726F746F747970653F2273796D626F6C223A747970656F6620657D292865297D66756E6374696F6E20686528652C74297B72657475726E20747C7C28743D652E736C696365283029292C4F626A6563742E6672'; wwv_flow_api.g_varchar2_table(169) := '65657A65284F626A6563742E646566696E6550726F7065727469657328652C7B7261773A7B76616C75653A4F626A6563742E667265657A652874297D7D29297D66756E6374696F6E20756528652C74297B69662821286520696E7374616E63656F662074'; wwv_flow_api.g_varchar2_table(170) := '29297468726F77206E657720547970654572726F72282243616E6E6F742063616C6C206120636C61737320617320612066756E6374696F6E22297D66756E6374696F6E20706528652C74297B72657475726E2870653D4F626A6563742E73657450726F74'; wwv_flow_api.g_varchar2_table(171) := '6F747970654F667C7C66756E6374696F6E28652C74297B72657475726E20652E5F5F70726F746F5F5F3D742C657D2928652C74297D66756E6374696F6E2066652865297B76617220743D66756E6374696F6E28297B69662822756E646566696E6564223D'; wwv_flow_api.g_varchar2_table(172) := '3D747970656F66205265666C6563747C7C215265666C6563742E636F6E7374727563742972657475726E21313B6966285265666C6563742E636F6E7374727563742E7368616D2972657475726E21313B6966282266756E6374696F6E223D3D747970656F'; wwv_flow_api.g_varchar2_table(173) := '662050726F78792972657475726E21303B7472797B72657475726E20426F6F6C65616E2E70726F746F747970652E76616C75654F662E63616C6C285265666C6563742E636F6E73747275637428426F6F6C65616E2C5B5D2C2866756E6374696F6E28297B'; wwv_flow_api.g_varchar2_table(174) := '7D2929292C21307D63617463682865297B72657475726E21317D7D28293B72657475726E2066756E6374696F6E28297B766172206E2C693D50652865293B69662874297B76617220723D50652874686973292E636F6E7374727563746F723B6E3D526566'; wwv_flow_api.g_varchar2_table(175) := '6C6563742E636F6E73747275637428692C617267756D656E74732C72297D656C7365206E3D692E6170706C7928746869732C617267756D656E7473293B72657475726E20766528746869732C6E297D7D66756E6374696F6E20766528652C74297B726574'; wwv_flow_api.g_varchar2_table(176) := '75726E21747C7C226F626A65637422213D3D646528742926262266756E6374696F6E22213D747970656F6620743F6D652865293A747D66756E6374696F6E206D652865297B696628766F696420303D3D3D65297468726F77206E6577205265666572656E'; wwv_flow_api.g_varchar2_table(177) := '63654572726F72282274686973206861736E2774206265656E20696E697469616C69736564202D2073757065722829206861736E2774206265656E2063616C6C656422293B72657475726E20657D66756E6374696F6E20796528297B79653D66756E6374'; wwv_flow_api.g_varchar2_table(178) := '696F6E28297B72657475726E20657D3B76617220653D7B656C656D656E7473446566696E6974696F6E4F726465723A5B5B226D6574686F64225D2C5B226669656C64225D5D2C696E697469616C697A65496E7374616E6365456C656D656E74733A66756E'; wwv_flow_api.g_varchar2_table(179) := '6374696F6E28652C74297B5B226D6574686F64222C226669656C64225D2E666F7245616368282866756E6374696F6E286E297B742E666F7245616368282866756E6374696F6E2874297B742E6B696E643D3D3D6E2626226F776E223D3D3D742E706C6163'; wwv_flow_api.g_varchar2_table(180) := '656D656E742626746869732E646566696E65436C617373456C656D656E7428652C74297D292C74686973297D292C74686973297D2C696E697469616C697A65436C617373456C656D656E74733A66756E6374696F6E28652C74297B766172206E3D652E70'; wwv_flow_api.g_varchar2_table(181) := '726F746F747970653B5B226D6574686F64222C226669656C64225D2E666F7245616368282866756E6374696F6E2869297B742E666F7245616368282866756E6374696F6E2874297B76617220723D742E706C6163656D656E743B696628742E6B696E643D'; wwv_flow_api.g_varchar2_table(182) := '3D3D6926262822737461746963223D3D3D727C7C2270726F746F74797065223D3D3D7229297B766172206F3D22737461746963223D3D3D723F653A6E3B746869732E646566696E65436C617373456C656D656E74286F2C74297D7D292C74686973297D29'; wwv_flow_api.g_varchar2_table(183) := '2C74686973297D2C646566696E65436C617373456C656D656E743A66756E6374696F6E28652C74297B766172206E3D742E64657363726970746F723B696628226669656C64223D3D3D742E6B696E64297B76617220693D742E696E697469616C697A6572'; wwv_flow_api.g_varchar2_table(184) := '3B6E3D7B656E756D657261626C653A6E2E656E756D657261626C652C7772697461626C653A6E2E7772697461626C652C636F6E666967757261626C653A6E2E636F6E666967757261626C652C76616C75653A766F696420303D3D3D693F766F696420303A'; wwv_flow_api.g_varchar2_table(185) := '692E63616C6C2865297D7D4F626A6563742E646566696E6550726F706572747928652C742E6B65792C6E297D2C6465636F72617465436C6173733A66756E6374696F6E28652C74297B766172206E3D5B5D2C693D5B5D2C723D7B7374617469633A5B5D2C'; wwv_flow_api.g_varchar2_table(186) := '70726F746F747970653A5B5D2C6F776E3A5B5D7D3B696628652E666F7245616368282866756E6374696F6E2865297B746869732E616464456C656D656E74506C6163656D656E7428652C72297D292C74686973292C652E666F7245616368282866756E63'; wwv_flow_api.g_varchar2_table(187) := '74696F6E2865297B6966282177652865292972657475726E206E2E707573682865293B76617220743D746869732E6465636F72617465456C656D656E7428652C72293B6E2E7075736828742E656C656D656E74292C6E2E707573682E6170706C79286E2C'; wwv_flow_api.g_varchar2_table(188) := '742E657874726173292C692E707573682E6170706C7928692C742E66696E697368657273297D292C74686973292C21742972657475726E7B656C656D656E74733A6E2C66696E6973686572733A697D3B766172206F3D746869732E6465636F7261746543'; wwv_flow_api.g_varchar2_table(189) := '6F6E7374727563746F72286E2C74293B72657475726E20692E707573682E6170706C7928692C6F2E66696E697368657273292C6F2E66696E6973686572733D692C6F7D2C616464456C656D656E74506C6163656D656E743A66756E6374696F6E28652C74'; wwv_flow_api.g_varchar2_table(190) := '2C6E297B76617220693D745B652E706C6163656D656E745D3B696628216E26262D31213D3D692E696E6465784F6628652E6B657929297468726F77206E657720547970654572726F7228224475706C69636174656420656C656D656E742028222B652E6B'; wwv_flow_api.g_varchar2_table(191) := '65792B222922293B692E7075736828652E6B6579297D2C6465636F72617465456C656D656E743A66756E6374696F6E28652C74297B666F7228766172206E3D5B5D2C693D5B5D2C723D652E6465636F7261746F72732C6F3D722E6C656E6774682D313B6F'; wwv_flow_api.g_varchar2_table(192) := '3E3D303B6F2D2D297B76617220733D745B652E706C6163656D656E745D3B732E73706C69636528732E696E6465784F6628652E6B6579292C31293B766172206C3D746869732E66726F6D456C656D656E7444657363726970746F722865292C613D746869'; wwv_flow_api.g_varchar2_table(193) := '732E746F456C656D656E7446696E69736865724578747261732828302C725B6F5D29286C297C7C6C293B653D612E656C656D656E742C746869732E616464456C656D656E74506C6163656D656E7428652C74292C612E66696E69736865722626692E7075'; wwv_flow_api.g_varchar2_table(194) := '736828612E66696E6973686572293B76617220633D612E6578747261733B69662863297B666F722876617220643D303B643C632E6C656E6774683B642B2B29746869732E616464456C656D656E74506C6163656D656E7428635B645D2C74293B6E2E7075'; wwv_flow_api.g_varchar2_table(195) := '73682E6170706C79286E2C63297D7D72657475726E7B656C656D656E743A652C66696E6973686572733A692C6578747261733A6E7D7D2C6465636F72617465436F6E7374727563746F723A66756E6374696F6E28652C74297B666F7228766172206E3D5B'; wwv_flow_api.g_varchar2_table(196) := '5D2C693D742E6C656E6774682D313B693E3D303B692D2D297B76617220723D746869732E66726F6D436C61737344657363726970746F722865292C6F3D746869732E746F436C61737344657363726970746F722828302C745B695D292872297C7C72293B'; wwv_flow_api.g_varchar2_table(197) := '696628766F69642030213D3D6F2E66696E697368657226266E2E70757368286F2E66696E6973686572292C766F69642030213D3D6F2E656C656D656E7473297B653D6F2E656C656D656E74733B666F722876617220733D303B733C652E6C656E6774682D'; wwv_flow_api.g_varchar2_table(198) := '313B732B2B29666F7228766172206C3D732B313B6C3C652E6C656E6774683B6C2B2B29696628655B735D2E6B65793D3D3D655B6C5D2E6B65792626655B735D2E706C6163656D656E743D3D3D655B6C5D2E706C6163656D656E74297468726F77206E6577'; wwv_flow_api.g_varchar2_table(199) := '20547970654572726F7228224475706C69636174656420656C656D656E742028222B655B735D2E6B65792B222922297D7D72657475726E7B656C656D656E74733A652C66696E6973686572733A6E7D7D2C66726F6D456C656D656E744465736372697074'; wwv_flow_api.g_varchar2_table(200) := '6F723A66756E6374696F6E2865297B76617220743D7B6B696E643A652E6B696E642C6B65793A652E6B65792C706C6163656D656E743A652E706C6163656D656E742C64657363726970746F723A652E64657363726970746F727D3B72657475726E204F62'; wwv_flow_api.g_varchar2_table(201) := '6A6563742E646566696E6550726F706572747928742C53796D626F6C2E746F537472696E675461672C7B76616C75653A2244657363726970746F72222C636F6E666967757261626C653A21307D292C226669656C64223D3D3D652E6B696E64262628742E'; wwv_flow_api.g_varchar2_table(202) := '696E697469616C697A65723D652E696E697469616C697A6572292C747D2C746F456C656D656E7444657363726970746F72733A66756E6374696F6E2865297B76617220743B696628766F69642030213D3D652972657475726E28743D652C66756E637469'; wwv_flow_api.g_varchar2_table(203) := '6F6E2865297B69662841727261792E697341727261792865292972657475726E20657D2874297C7C66756E6374696F6E2865297B69662822756E646566696E656422213D747970656F662053796D626F6C26266E756C6C213D655B53796D626F6C2E6974'; wwv_flow_api.g_varchar2_table(204) := '657261746F725D7C7C6E756C6C213D655B2240406974657261746F72225D2972657475726E2041727261792E66726F6D2865297D2874297C7C66756E6374696F6E28652C74297B69662865297B69662822737472696E67223D3D747970656F6620652972'; wwv_flow_api.g_varchar2_table(205) := '657475726E20786528652C74293B766172206E3D4F626A6563742E70726F746F747970652E746F537472696E672E63616C6C2865292E736C69636528382C2D31293B72657475726E224F626A656374223D3D3D6E2626652E636F6E7374727563746F7226'; wwv_flow_api.g_varchar2_table(206) := '26286E3D652E636F6E7374727563746F722E6E616D65292C224D6170223D3D3D6E7C7C22536574223D3D3D6E3F41727261792E66726F6D2865293A22417267756D656E7473223D3D3D6E7C7C2F5E283F3A55697C49296E74283F3A387C31367C33322928'; wwv_flow_api.g_varchar2_table(207) := '3F3A436C616D706564293F4172726179242F2E74657374286E293F786528652C74293A766F696420307D7D2874297C7C66756E6374696F6E28297B7468726F77206E657720547970654572726F722822496E76616C696420617474656D707420746F2064'; wwv_flow_api.g_varchar2_table(208) := '65737472756374757265206E6F6E2D6974657261626C6520696E7374616E63652E5C6E496E206F7264657220746F206265206974657261626C652C206E6F6E2D6172726179206F626A65637473206D75737420686176652061205B53796D626F6C2E6974'; wwv_flow_api.g_varchar2_table(209) := '657261746F725D2829206D6574686F642E22297D2829292E6D6170282866756E6374696F6E2865297B76617220743D746869732E746F456C656D656E7444657363726970746F722865293B72657475726E20746869732E646973616C6C6F7750726F7065'; wwv_flow_api.g_varchar2_table(210) := '72747928652C2266696E6973686572222C22416E20656C656D656E742064657363726970746F7222292C746869732E646973616C6C6F7750726F706572747928652C22657874726173222C22416E20656C656D656E742064657363726970746F7222292C'; wwv_flow_api.g_varchar2_table(211) := '747D292C74686973297D2C746F456C656D656E7444657363726970746F723A66756E6374696F6E2865297B76617220743D537472696E6728652E6B696E64293B696628226D6574686F6422213D3D742626226669656C6422213D3D74297468726F77206E'; wwv_flow_api.g_varchar2_table(212) := '657720547970654572726F722827416E20656C656D656E742064657363726970746F725C2773202E6B696E642070726F7065727479206D7573742062652065697468657220226D6574686F6422206F7220226669656C64222C206275742061206465636F'; wwv_flow_api.g_varchar2_table(213) := '7261746F72206372656174656420616E20656C656D656E742064657363726970746F722077697468202E6B696E642022272B742B272227293B766172206E3D456528652E6B6579292C693D537472696E6728652E706C6163656D656E74293B6966282273'; wwv_flow_api.g_varchar2_table(214) := '746174696322213D3D6926262270726F746F7479706522213D3D692626226F776E22213D3D69297468726F77206E657720547970654572726F722827416E20656C656D656E742064657363726970746F725C2773202E706C6163656D656E742070726F70'; wwv_flow_api.g_varchar2_table(215) := '65727479206D757374206265206F6E65206F662022737461746963222C202270726F746F7479706522206F7220226F776E222C206275742061206465636F7261746F72206372656174656420616E20656C656D656E742064657363726970746F72207769'; wwv_flow_api.g_varchar2_table(216) := '7468202E706C6163656D656E742022272B692B272227293B76617220723D652E64657363726970746F723B746869732E646973616C6C6F7750726F706572747928652C22656C656D656E7473222C22416E20656C656D656E742064657363726970746F72'; wwv_flow_api.g_varchar2_table(217) := '22293B766172206F3D7B6B696E643A742C6B65793A6E2C706C6163656D656E743A692C64657363726970746F723A4F626A6563742E61737369676E287B7D2C72297D3B72657475726E226669656C6422213D3D743F746869732E646973616C6C6F775072'; wwv_flow_api.g_varchar2_table(218) := '6F706572747928652C22696E697469616C697A6572222C2241206D6574686F642064657363726970746F7222293A28746869732E646973616C6C6F7750726F706572747928722C22676574222C225468652070726F70657274792064657363726970746F'; wwv_flow_api.g_varchar2_table(219) := '72206F662061206669656C642064657363726970746F7222292C746869732E646973616C6C6F7750726F706572747928722C22736574222C225468652070726F70657274792064657363726970746F72206F662061206669656C64206465736372697074'; wwv_flow_api.g_varchar2_table(220) := '6F7222292C746869732E646973616C6C6F7750726F706572747928722C2276616C7565222C225468652070726F70657274792064657363726970746F72206F662061206669656C642064657363726970746F7222292C6F2E696E697469616C697A65723D'; wwv_flow_api.g_varchar2_table(221) := '652E696E697469616C697A6572292C6F7D2C746F456C656D656E7446696E69736865724578747261733A66756E6374696F6E2865297B72657475726E7B656C656D656E743A746869732E746F456C656D656E7444657363726970746F722865292C66696E'; wwv_flow_api.g_varchar2_table(222) := '69736865723A536528652C2266696E697368657222292C6578747261733A746869732E746F456C656D656E7444657363726970746F727328652E657874726173297D7D2C66726F6D436C61737344657363726970746F723A66756E6374696F6E2865297B'; wwv_flow_api.g_varchar2_table(223) := '76617220743D7B6B696E643A22636C617373222C656C656D656E74733A652E6D617028746869732E66726F6D456C656D656E7444657363726970746F722C74686973297D3B72657475726E204F626A6563742E646566696E6550726F706572747928742C'; wwv_flow_api.g_varchar2_table(224) := '53796D626F6C2E746F537472696E675461672C7B76616C75653A2244657363726970746F72222C636F6E666967757261626C653A21307D292C747D2C746F436C61737344657363726970746F723A66756E6374696F6E2865297B76617220743D53747269'; wwv_flow_api.g_varchar2_table(225) := '6E6728652E6B696E64293B69662822636C61737322213D3D74297468726F77206E657720547970654572726F7228274120636C6173732064657363726970746F725C2773202E6B696E642070726F7065727479206D7573742062652022636C617373222C'; wwv_flow_api.g_varchar2_table(226) := '206275742061206465636F7261746F722063726561746564206120636C6173732064657363726970746F722077697468202E6B696E642022272B742B272227293B746869732E646973616C6C6F7750726F706572747928652C226B6579222C224120636C'; wwv_flow_api.g_varchar2_table(227) := '6173732064657363726970746F7222292C746869732E646973616C6C6F7750726F706572747928652C22706C6163656D656E74222C224120636C6173732064657363726970746F7222292C746869732E646973616C6C6F7750726F706572747928652C22'; wwv_flow_api.g_varchar2_table(228) := '64657363726970746F72222C224120636C6173732064657363726970746F7222292C746869732E646973616C6C6F7750726F706572747928652C22696E697469616C697A6572222C224120636C6173732064657363726970746F7222292C746869732E64'; wwv_flow_api.g_varchar2_table(229) := '6973616C6C6F7750726F706572747928652C22657874726173222C224120636C6173732064657363726970746F7222293B766172206E3D536528652C2266696E697368657222293B72657475726E7B656C656D656E74733A746869732E746F456C656D65'; wwv_flow_api.g_varchar2_table(230) := '6E7444657363726970746F727328652E656C656D656E7473292C66696E69736865723A6E7D7D2C72756E436C61737346696E6973686572733A66756E6374696F6E28652C74297B666F7228766172206E3D303B6E3C742E6C656E6774683B6E2B2B297B76'; wwv_flow_api.g_varchar2_table(231) := '617220693D28302C745B6E5D292865293B696628766F69642030213D3D69297B6966282266756E6374696F6E22213D747970656F662069297468726F77206E657720547970654572726F72282246696E697368657273206D7573742072657475726E2061'; wwv_flow_api.g_varchar2_table(232) := '20636F6E7374727563746F722E22293B653D697D7D72657475726E20657D2C646973616C6C6F7750726F70657274793A66756E6374696F6E28652C742C6E297B696628766F69642030213D3D655B745D297468726F77206E657720547970654572726F72'; wwv_flow_api.g_varchar2_table(233) := '286E2B222063616E277420686176652061202E222B742B222070726F70657274792E22297D7D3B72657475726E20657D66756E6374696F6E2067652865297B76617220742C6E3D456528652E6B6579293B226D6574686F64223D3D3D652E6B696E643F74'; wwv_flow_api.g_varchar2_table(234) := '3D7B76616C75653A652E76616C75652C7772697461626C653A21302C636F6E666967757261626C653A21302C656E756D657261626C653A21317D3A22676574223D3D3D652E6B696E643F743D7B6765743A652E76616C75652C636F6E666967757261626C'; wwv_flow_api.g_varchar2_table(235) := '653A21302C656E756D657261626C653A21317D3A22736574223D3D3D652E6B696E643F743D7B7365743A652E76616C75652C636F6E666967757261626C653A21302C656E756D657261626C653A21317D3A226669656C64223D3D3D652E6B696E64262628'; wwv_flow_api.g_varchar2_table(236) := '743D7B636F6E666967757261626C653A21302C7772697461626C653A21302C656E756D657261626C653A21307D293B76617220693D7B6B696E643A226669656C64223D3D3D652E6B696E643F226669656C64223A226D6574686F64222C6B65793A6E2C70'; wwv_flow_api.g_varchar2_table(237) := '6C6163656D656E743A652E7374617469633F22737461746963223A226669656C64223D3D3D652E6B696E643F226F776E223A2270726F746F74797065222C64657363726970746F723A747D3B72657475726E20652E6465636F7261746F7273262628692E'; wwv_flow_api.g_varchar2_table(238) := '6465636F7261746F72733D652E6465636F7261746F7273292C226669656C64223D3D3D652E6B696E64262628692E696E697469616C697A65723D652E76616C7565292C697D66756E6374696F6E20626528652C74297B766F69642030213D3D652E646573'; wwv_flow_api.g_varchar2_table(239) := '63726970746F722E6765743F742E64657363726970746F722E6765743D652E64657363726970746F722E6765743A742E64657363726970746F722E7365743D652E64657363726970746F722E7365747D66756E6374696F6E2077652865297B7265747572'; wwv_flow_api.g_varchar2_table(240) := '6E20652E6465636F7261746F72732626652E6465636F7261746F72732E6C656E6774687D66756E6374696F6E206B652865297B72657475726E20766F69642030213D3D6526262128766F696420303D3D3D652E76616C75652626766F696420303D3D3D65'; wwv_flow_api.g_varchar2_table(241) := '2E7772697461626C65297D66756E6374696F6E20536528652C74297B766172206E3D655B745D3B696628766F69642030213D3D6E26262266756E6374696F6E22213D747970656F66206E297468726F77206E657720547970654572726F72282245787065'; wwv_flow_api.g_varchar2_table(242) := '637465642027222B742B222720746F20626520612066756E6374696F6E22293B72657475726E206E7D66756E6374696F6E2045652865297B76617220743D66756E6374696F6E28652C74297B696628226F626A65637422213D3D64652865297C7C6E756C'; wwv_flow_api.g_varchar2_table(243) := '6C3D3D3D652972657475726E20653B766172206E3D655B53796D626F6C2E746F5072696D69746976655D3B696628766F69642030213D3D6E297B76617220693D6E2E63616C6C28652C747C7C2264656661756C7422293B696628226F626A65637422213D'; wwv_flow_api.g_varchar2_table(244) := '3D64652869292972657475726E20693B7468726F77206E657720547970654572726F7228224040746F5072696D6974697665206D7573742072657475726E2061207072696D69746976652076616C75652E22297D72657475726E2822737472696E67223D'; wwv_flow_api.g_varchar2_table(245) := '3D3D743F537472696E673A4E756D626572292865297D28652C22737472696E6722293B72657475726E2273796D626F6C223D3D3D64652874293F743A537472696E672874297D66756E6374696F6E20786528652C74297B286E756C6C3D3D747C7C743E65'; wwv_flow_api.g_varchar2_table(246) := '2E6C656E67746829262628743D652E6C656E677468293B666F7228766172206E3D302C693D6E65772041727261792874293B6E3C743B6E2B2B29695B6E5D3D655B6E5D3B72657475726E20697D66756E6374696F6E20436528652C742C6E297B72657475'; wwv_flow_api.g_varchar2_table(247) := '726E2843653D22756E646566696E656422213D747970656F66205265666C65637426265265666C6563742E6765743F5265666C6563742E6765743A66756E6374696F6E28652C742C6E297B76617220693D66756E6374696F6E28652C74297B666F72283B'; wwv_flow_api.g_varchar2_table(248) := '214F626A6563742E70726F746F747970652E6861734F776E50726F70657274792E63616C6C28652C742926266E756C6C213D3D28653D5065286529293B293B72657475726E20657D28652C74293B69662869297B76617220723D4F626A6563742E676574'; wwv_flow_api.g_varchar2_table(249) := '4F776E50726F706572747944657363726970746F7228692C74293B72657475726E20722E6765743F722E6765742E63616C6C286E293A722E76616C75657D7D2928652C742C6E7C7C65297D66756E6374696F6E2050652865297B72657475726E2850653D'; wwv_flow_api.g_varchar2_table(250) := '4F626A6563742E73657450726F746F747970654F663F4F626A6563742E67657450726F746F747970654F663A66756E6374696F6E2865297B72657475726E20652E5F5F70726F746F5F5F7C7C4F626A6563742E67657450726F746F747970654F66286529'; wwv_flow_api.g_varchar2_table(251) := '7D292865297D2166756E6374696F6E28652C742C6E2C69297B76617220723D796528293B6966286929666F7228766172206F3D303B6F3C692E6C656E6774683B6F2B2B29723D695B6F5D2872293B76617220733D74282866756E6374696F6E2865297B72'; wwv_flow_api.g_varchar2_table(252) := '2E696E697469616C697A65496E7374616E6365456C656D656E747328652C6C2E656C656D656E7473297D292C6E292C6C3D722E6465636F72617465436C6173732866756E6374696F6E2865297B666F722876617220743D5B5D2C6E3D66756E6374696F6E'; wwv_flow_api.g_varchar2_table(253) := '2865297B72657475726E226D6574686F64223D3D3D652E6B696E642626652E6B65793D3D3D6F2E6B65792626652E706C6163656D656E743D3D3D6F2E706C6163656D656E747D2C693D303B693C652E6C656E6774683B692B2B297B76617220722C6F3D65'; wwv_flow_api.g_varchar2_table(254) := '5B695D3B696628226D6574686F64223D3D3D6F2E6B696E64262628723D742E66696E64286E2929296966286B65286F2E64657363726970746F72297C7C6B6528722E64657363726970746F7229297B6966287765286F297C7C7765287229297468726F77'; wwv_flow_api.g_varchar2_table(255) := '206E6577205265666572656E63654572726F7228224475706C696361746564206D6574686F64732028222B6F2E6B65792B22292063616E2774206265206465636F72617465642E22293B722E64657363726970746F723D6F2E64657363726970746F727D'; wwv_flow_api.g_varchar2_table(256) := '656C73657B6966287765286F29297B6966287765287229297468726F77206E6577205265666572656E63654572726F7228224465636F7261746F72732063616E277420626520706C61636564206F6E20646966666572656E74206163636573736F727320'; wwv_flow_api.g_varchar2_table(257) := '7769746820666F72207468652073616D652070726F70657274792028222B6F2E6B65792B22292E22293B722E6465636F7261746F72733D6F2E6465636F7261746F72737D6265286F2C72297D656C736520742E70757368286F297D72657475726E20747D'; wwv_flow_api.g_varchar2_table(258) := '28732E642E6D617028676529292C65293B722E696E697469616C697A65436C617373456C656D656E747328732E462C6C2E656C656D656E7473292C722E72756E436C61737346696E69736865727328732E462C6C2E66696E697368657273297D285B2865'; wwv_flow_api.g_varchar2_table(259) := '3D3E743D3E2266756E6374696F6E223D3D747970656F6620743F2828652C74293D3E2877696E646F772E637573746F6D456C656D656E74732E646566696E6528652C74292C74292928652C74293A2828652C74293D3E7B636F6E73747B6B696E643A6E2C'; wwv_flow_api.g_varchar2_table(260) := '656C656D656E74733A697D3D743B72657475726E7B6B696E643A6E2C656C656D656E74733A692C66696E69736865722874297B77696E646F772E637573746F6D456C656D656E74732E646566696E6528652C74297D7D7D2928652C7429292822736C6964'; wwv_flow_api.g_varchar2_table(261) := '652D6F76657222295D2C2866756E6374696F6E28652C74297B766172206E3D66756E6374696F6E2874297B2166756E6374696F6E28652C74297B6966282266756E6374696F6E22213D747970656F66207426266E756C6C213D3D74297468726F77206E65'; wwv_flow_api.g_varchar2_table(262) := '7720547970654572726F72282253757065722065787072657373696F6E206D75737420656974686572206265206E756C6C206F7220612066756E6374696F6E22293B652E70726F746F747970653D4F626A6563742E63726561746528742626742E70726F'; wwv_flow_api.g_varchar2_table(263) := '746F747970652C7B636F6E7374727563746F723A7B76616C75653A652C7772697461626C653A21302C636F6E666967757261626C653A21307D7D292C742626706528652C74297D28692C74293B766172206E3D66652869293B66756E6374696F6E206928'; wwv_flow_api.g_varchar2_table(264) := '297B76617220743B756528746869732C69293B666F722876617220723D617267756D656E74732E6C656E6774682C6F3D6E65772041727261792872292C733D303B733C723B732B2B296F5B735D3D617267756D656E74735B735D3B72657475726E20743D'; wwv_flow_api.g_varchar2_table(265) := '6E2E63616C6C2E6170706C79286E2C5B746869735D2E636F6E636174286F29292C65286D65287429292C747D72657475726E20697D2874293B72657475726E7B463A6E2C643A5B7B6B696E643A226669656C64222C6465636F7261746F72733A5B736528'; wwv_flow_api.g_varchar2_table(266) := '7B747970653A537472696E672C7265666C6563743A21307D295D2C6B65793A226F70656E222C76616C75653A66756E6374696F6E28297B72657475726E2266616C7365227D7D2C7B6B696E643A226669656C64222C6465636F7261746F72733A5B736528'; wwv_flow_api.g_varchar2_table(267) := '7B747970653A537472696E677D295D2C6B65793A22686561646572222C76616C75653A66756E6374696F6E28297B72657475726E22227D7D2C7B6B696E643A226669656C64222C6465636F7261746F72733A5B7365287B747970653A537472696E677D29'; wwv_flow_api.g_varchar2_table(268) := '5D2C6B65793A227769647468222C76616C75653A66756E6374696F6E28297B72657475726E223530307078227D7D2C7B6B696E643A226669656C64222C6465636F7261746F72733A5B7365287B747970653A537472696E677D295D2C6B65793A22646972'; wwv_flow_api.g_varchar2_table(269) := '656374696F6E222C76616C75653A66756E6374696F6E28297B72657475726E227269676874227D7D2C7B6B696E643A226669656C64222C6B65793A22696E697469616C697A6564222C76616C75653A66756E6374696F6E28297B72657475726E21317D7D'; wwv_flow_api.g_varchar2_table(270) := '2C7B6B696E643A226669656C64222C6B65793A2274686174222C76616C75653A66756E6374696F6E28297B72657475726E20746869737D7D2C7B6B696E643A22676574222C7374617469633A21302C6B65793A227374796C6573222C76616C75653A6675'; wwv_flow_api.g_varchar2_table(271) := '6E6374696F6E28297B72657475726E2828652C2E2E2E74293D3E7B636F6E7374206E3D313D3D3D652E6C656E6774683F655B305D3A742E726564756365282828742C6E2C72293D3E742B28653D3E7B6966286520696E7374616E63656F66206929726574'; wwv_flow_api.g_varchar2_table(272) := '75726E20652E637373546578743B696628226E756D626572223D3D747970656F6620652972657475726E20653B7468726F77204572726F72282256616C75652070617373656420746F2027637373272066756E6374696F6E206D75737420626520612027'; wwv_flow_api.g_varchar2_table(273) := '637373272066756E6374696F6E20726573756C743A20222B652B222E205573652027756E736166654353532720746F2070617373206E6F6E2D6C69746572616C2076616C7565732C206275742074616B65206361726520746F20656E7375726520706167'; wwv_flow_api.g_varchar2_table(274) := '652073656375726974792E22297D29286E292B655B722B315D292C655B305D293B72657475726E206F286E297D292861657C7C2861653D6865285B225C6E202020202020406D656469612028707265666572732D726564756365642D6D6F74696F6E3A20'; wwv_flow_api.g_varchar2_table(275) := '72656475636529207B5C6E20202020202020202A207B5C6E202020202020202020207472616E736974696F6E3A206E6F6E652021696D706F7274616E743B5C6E20202020202020207D5C6E2020202020207D5C6E5C6E202020202020406D656469612073'; wwv_flow_api.g_varchar2_table(276) := '637265656E20616E6420286D696E2D77696474683A203170782920616E6420286D61782D77696474683A20343830707829207B5C6E20202020202020202E736C6964652D6F766572207B5C6E2020202020202020202077696474683A2031303025202169'; wwv_flow_api.g_varchar2_table(277) := '6D706F7274616E743B5C6E202020202020202020206261636B67726F756E642D636F6C6F723A207265643B5C6E20202020202020207D5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6F70656E207B5C6E20202020202020202D2D6C61'; wwv_flow_api.g_varchar2_table(278) := '792D6F7665722D6F7061636974793A20302E37353B5C6E20202020202020202D2D7472616E736C6174653A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D636C6F736564207B5C6E20202020202020202D2D6C61792D6F766572'; wwv_flow_api.g_varchar2_table(279) := '2D6F7061636974793A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D636C6F736564202E736C6964652D6F7665722D72207B5C6E20202020202020202D2D7472616E736C6174653A20313030253B5C6E2020202020207D5C6E5C'; wwv_flow_api.g_varchar2_table(280) := '6E2020202020202E736C6964652D636C6F736564202E736C6964652D6F7665722D6C207B5C6E20202020202020202D2D7472616E736C6174653A202D313030253B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D636C6F736564202E6C'; wwv_flow_api.g_varchar2_table(281) := '61792D6F766572207B5C6E20202020202020206F7061636974793A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6F70656E202E6C61792D6F766572207B5C6E2020202020202020706F696E7465722D6576656E74733A206175'; wwv_flow_api.g_varchar2_table(282) := '746F3B5C6E2020202020207D5C6E5C6E2020202020202E6C61792D6F766572207B5C6E2020202020202020706F736974696F6E3A2066697865643B5C6E2020202020202020746F703A20303B5C6E202020202020202072696768743A20303B5C6E202020'; wwv_flow_api.g_varchar2_table(283) := '2020202020626F74746F6D3A20303B5C6E20202020202020206C6566743A20303B5C6E20202020202020206261636B67726F756E642D636F6C6F723A20726762612834312C2034312C2034312C20302E36293B5C6E20202020202020207A2D696E646578'; wwv_flow_api.g_varchar2_table(284) := '3A203930303B5C6E20202020202020206F7061636974793A20313B5C6E2020202020202020706F696E7465722D6576656E74733A206E6F6E653B5C6E5C6E20202020202020207472616E736974696F6E3A206F706163697479203135306D732065617365'; wwv_flow_api.g_varchar2_table(285) := '2D696E2D6F75743B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6F766572207B5C6E2020202020202020706F696E7465722D6576656E74733A206175746F3B5C6E2020202020202020706F736974696F6E3A2066697865643B5C6E20'; wwv_flow_api.g_varchar2_table(286) := '20202020202020746F703A20303B5C6E2020202020202020626F74746F6D3A20303B5C6E20202020202020206261636B67726F756E643A20766172282D2D75742D626F64792D6261636B67726F756E642D636F6C6F722C2023666666293B5C6E20202020'; wwv_flow_api.g_varchar2_table(287) := '202020207A2D696E6465783A203930313B5C6E20202020202020206865696768743A20313030253B5C6E2020202020202020626F782D736861646F773A203020323070782032357078202D357078207267626128302C20302C20302C20302E31292C5C6E'; wwv_flow_api.g_varchar2_table(288) := '202020202020202020203020313070782031307078202D357078207267626128302C20302C20302C20302E3034293B5C6E20202020202020207472616E73666F726D3A207472616E736C6174655828766172282D2D7472616E736C61746529293B5C6E20'; wwv_flow_api.g_varchar2_table(289) := '202020202020207472616E736974696F6E3A207472616E73666F726D20302E33357320656173652D696E2D6F75743B5C6E20202020202020206D61782D6865696768743A2031303076683B5C6E20202020202020206F766572666C6F772D793A20617574'; wwv_flow_api.g_varchar2_table(290) := '6F3B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6F7665722D72207B5C6E202020202020202072696768743A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6F7665722D6C207B5C6E20202020202020206C'; wwv_flow_api.g_varchar2_table(291) := '6566743A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D686561646572207B5C6E202020202020202070616464696E673A20313670783B5C6E2020202020202020646973706C61793A20666C65783B5C6E20202020202020206A'; wwv_flow_api.g_varchar2_table(292) := '7573746966792D636F6E74656E743A2073706163652D6265747765656E3B5C6E2020202020202020616C69676E2D6974656D733A2063656E7465723B5C6E5C6E2020202020202020626F726465722D626F74746F6D2D77696474683A20766172282D2D6A'; wwv_flow_api.g_varchar2_table(293) := '75692D6469616C6F672D7469746C656261722D626F726465722D77696474682C20317078293B5C6E2020202020202020626F726465722D626F74746F6D2D7374796C653A20736F6C69643B5C6E2020202020202020626F726465722D626F74746F6D2D63'; wwv_flow_api.g_varchar2_table(294) := '6F6C6F723A20766172282D2D6A75692D6469616C6F672D7469746C656261722D626F726465722D636F6C6F722C2023643464346434293B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6865616465722D74657874207B5C6E20202020'; wwv_flow_api.g_varchar2_table(295) := '202020206D617267696E3A20303B5C6E2020202020202020636F6C6F723A20766172282D2D75742D626F64792D7469746C652D746578742D636F6C6F722C2023323632363236293B5C6E2020202020202020666F6E742D73697A653A20312E3572656D3B'; wwv_flow_api.g_varchar2_table(296) := '5C6E2020202020202020666F6E742D66616D696C793A20766172285C6E202020202020202020202D2D75742D6865726F2D726567696F6E2D7469746C652D666F6E742D66616D696C792C5C6E2020202020202020202075692D73616E732D73657269662C'; wwv_flow_api.g_varchar2_table(297) := '5C6E2020202020202020202073797374656D2D75692C5C6E202020202020202020202D6170706C652D73797374656D2C5C6E20202020202020202020426C696E6B4D616353797374656D466F6E742C5C6E20202020202020202020275365676F65205549'; wwv_flow_api.g_varchar2_table(298) := '272C5C6E20202020202020202020526F626F746F2C5C6E202020202020202020202748656C766574696361204E657565272C5C6E20202020202020202020417269616C2C5C6E2020202020202020202073616E732D73657269663B5C6E20202020202020'; wwv_flow_api.g_varchar2_table(299) := '20293B5C6E2020202020202020666F6E742D7765696768743A2076617228363030293B5C6E2020202020207D5C6E5C6E2020202020202E636C6F73652D627574746F6E207B5C6E2020202020202020646973706C61793A20666C65783B5C6E2020202020'; wwv_flow_api.g_varchar2_table(300) := '20202070616464696E673A203470783B5C6E2020202020202020626F726465723A206E6F6E653B5C6E20202020202020206261636B67726F756E642D636F6C6F723A207472616E73706172656E743B5C6E2020202020202020636F6C6F723A2076617228'; wwv_flow_api.g_varchar2_table(301) := '2D2D75742D626F64792D746578742D636F6C6F722C2023396361336166293B5C6E20202020202020206F7061636974793A20302E353B5C6E2020202020202020626F726465723A2032707820736F6C6964207472616E73706172656E743B5C6E20202020'; wwv_flow_api.g_varchar2_table(302) := '20202020637572736F723A20706F696E7465723B5C6E20202020202020206C696E652D6865696768743A20696E68657269743B5C6E2020202020202020626F726465722D7261646975733A203870783B5C6E2020202020207D5C6E5C6E2020202020202E'; wwv_flow_api.g_varchar2_table(303) := '636C6F73652D627574746F6E3A686F766572207B5C6E20202020202020206F7061636974793A20313B5C6E2020202020207D5C6E5C6E2020202020202E636C6F73652D627574746F6E3A666F637573207B5C6E2020202020202020626F726465722D636F'; wwv_flow_api.g_varchar2_table(304) := '6C6F723A20766172282D2D75742D70616C657474652D7072696D6172792C2023396361336166293B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D636F6E74656E74207B5C6E2020202020202020706F736974696F6E3A207374617469'; wwv_flow_api.g_varchar2_table(305) := '633B5C6E202020202020202070616464696E673A20313670783B5C6E2020202020207D5C6E20202020225D2929297D7D2C7B6B696E643A226D6574686F64222C6B65793A2272656E646572222C76616C75653A66756E6374696F6E28297B72657475726E'; wwv_flow_api.g_varchar2_table(306) := '204E2863657C7C2863653D6865285B273C6469762069643D22736C6964652D777261707065722220636C6173733D22736C6964652D636C6F736564223E5C6E2020202020203C6469765C6E202020202020202069643D226C61792D6F766572225C6E2020'; wwv_flow_api.g_varchar2_table(307) := '202020202020636C6173733D226C61792D6F766572225C6E2020202020202020706172743D226C61792D6F766572225C6E202020202020202040636C69636B3D22272C27225C6E2020202020203E3C2F6469763E5C6E2020202020203C6469765C6E2020'; wwv_flow_api.g_varchar2_table(308) := '20202020202069643D22736C6964652D6F766572225C6E2020202020202020706172743D22736C6964652D6F766572225C6E2020202020202020636C6173733D22736C6964652D6F76657220272C27225C6E2020202020203E5C6E20202020202020203C'; wwv_flow_api.g_varchar2_table(309) := '68656164657220636C6173733D22736C6964652D686561646572223E5C6E202020202020202020203C683220636C6173733D22736C6964652D6865616465722D746578742220706172743D22736C6964652D6865616465722D74657874223E5C6E202020'; wwv_flow_api.g_varchar2_table(310) := '202020202020202020272C275C6E202020202020202020203C2F68323E5C6E202020202020202020203C627574746F6E5C6E202020202020202020202020747970653D22627574746F6E225C6E20202020202020202020202069643D22746573742D636C'; wwv_flow_api.g_varchar2_table(311) := '6F7365225C6E202020202020202020202020636C6173733D22636C6F73652D627574746F6E225C6E202020202020202020202020706172743D22636C6F73652D627574746F6E225C6E20202020202020202020202040636C69636B3D22272C27225C6E20'; wwv_flow_api.g_varchar2_table(312) := '2020202020202020203E5C6E2020202020202020202020203C7376675C6E20202020202020202020202020207374796C653D2277696474683A20312E3572656D3B206865696768743A20312E3572656D3B225C6E2020202020202020202020202020782D'; wwv_flow_api.g_varchar2_table(313) := '6465736372697074696F6E3D224865726F69636F6E206E616D653A206F75746C696E652F78225C6E2020202020202020202020202020786D6C6E733D22687474703A2F2F7777772E77332E6F72672F323030302F737667225C6E20202020202020202020'; wwv_flow_api.g_varchar2_table(314) := '2020202066696C6C3D226E6F6E65225C6E202020202020202020202020202076696577426F783D22302030203234203234225C6E20202020202020202020202020207374726F6B653D2263757272656E74436F6C6F72225C6E2020202020202020202020'; wwv_flow_api.g_varchar2_table(315) := '202020617269612D68696464656E3D2274727565225C6E2020202020202020202020203E5C6E20202020202020202020202020203C706174685C6E202020202020202020202020202020207374726F6B652D6C696E656361703D22726F756E64225C6E20'; wwv_flow_api.g_varchar2_table(316) := '2020202020202020202020202020207374726F6B652D6C696E656A6F696E3D22726F756E64225C6E202020202020202020202020202020207374726F6B652D77696474683D2232225C6E20202020202020202020202020202020643D224D362031384C31'; wwv_flow_api.g_varchar2_table(317) := '3820364D3620366C3132203132225C6E20202020202020202020202020203E3C2F706174683E5C6E2020202020202020202020203C2F7376673E5C6E202020202020202020203C2F627574746F6E3E5C6E20202020202020203C2F6865616465723E5C6E'; wwv_flow_api.g_varchar2_table(318) := '20202020202020203C6D61696E20636C6173733D22736C6964652D636F6E74656E74223E5C6E202020202020202020203C736C6F74206E616D653D22636F6E74656E74223E436F6E74656E7420486572653C2F736C6F743E5C6E20202020202020203C2F'; wwv_flow_api.g_varchar2_table(319) := '6D61696E3E5C6E2020202020203C2F6469763E5C6E202020203C2F6469763E275D29292C746869732E636C6F73652C227269676874223D3D3D746869732E646972656374696F6E3F22736C6964652D6F7665722D72223A22736C6964652D6F7665722D6C'; wwv_flow_api.g_varchar2_table(320) := '222C746869732E6865616465722C746869732E636C6F7365297D7D2C7B6B696E643A226D6574686F64222C6B65793A22666972737455706461746564222C76616C75653A66756E6374696F6E28297B746869732E777261707065723D746869732E736861'; wwv_flow_api.g_varchar2_table(321) := '646F77526F6F742E717565727953656C6563746F72282223736C6964652D7772617070657222292C746869732E736C6964654F7665723D746869732E736861646F77526F6F742E717565727953656C6563746F72282223736C6964652D6F76657222292C'; wwv_flow_api.g_varchar2_table(322) := '746869732E736C6964654F7665722E7374796C652E77696474683D746869732E77696474682C746869732E696E697469616C697A65643D21307D7D2C7B6B696E643A226D6574686F64222C6B65793A22636C6F7365222C76616C75653A66756E6374696F'; wwv_flow_api.g_varchar2_table(323) := '6E28297B746869732E6F70656E3D2266616C7365227D7D2C7B6B696E643A226D6574686F64222C6B65793A22746F67676C655374617465222C76616C75653A66756E6374696F6E28297B746869732E696E697469616C697A65642626282274727565223D'; wwv_flow_api.g_varchar2_table(324) := '3D3D746869732E6F70656E3F28746869732E777261707065722E636C6173734C6973742E72656D6F76652822736C6964652D636C6F73656422292C746869732E777261707065722E636C6173734C6973742E6164642822736C6964652D6F70656E22292C'; wwv_flow_api.g_varchar2_table(325) := '746869732E696E6974436C69636B4C697374656E6572732829293A28746869732E777261707065722E636C6173734C6973742E72656D6F76652822736C6964652D6F70656E22292C746869732E777261707065722E636C6173734C6973742E6164642822'; wwv_flow_api.g_varchar2_table(326) := '736C6964652D636C6F73656422292C746869732E72656D6F76654576656E744C697374656E657273282929297D7D2C7B6B696E643A226669656C64222C6B65793A2268616E646C654B6579436C69636B222C76616C75653A66756E6374696F6E28297B76'; wwv_flow_api.g_varchar2_table(327) := '617220653D746869733B72657475726E2066756E6374696F6E2874297B22457363617065223D3D3D742E6B65792626652E636C6F736528297D7D7D2C7B6B696E643A226D6574686F64222C6B65793A22696E6974436C69636B4C697374656E657273222C'; wwv_flow_api.g_varchar2_table(328) := '76616C75653A66756E6374696F6E28297B646F63756D656E742E6164644576656E744C697374656E657228226B65797570222C746869732E68616E646C654B6579436C69636B297D7D2C7B6B696E643A226D6574686F64222C6B65793A2272656D6F7665'; wwv_flow_api.g_varchar2_table(329) := '4576656E744C697374656E657273222C76616C75653A66756E6374696F6E28297B646F63756D656E742E72656D6F76654576656E744C697374656E657228226B65797570222C746869732E68616E646C654B6579436C69636B297D7D2C7B6B696E643A22'; wwv_flow_api.g_varchar2_table(330) := '6D6574686F64222C6B65793A226174747269627574654368616E67656443616C6C6261636B222C76616C75653A66756E6374696F6E28652C742C69297B4365285065286E2E70726F746F74797065292C226174747269627574654368616E67656443616C'; wwv_flow_api.g_varchar2_table(331) := '6C6261636B222C74686973292E63616C6C28746869732C652C742C69292C226F70656E223D3D3D652626746869732E746F67676C65537461746528297D7D2C7B6B696E643A226D6574686F64222C6B65793A22646973636F6E6E656374656443616C6C62'; wwv_flow_api.g_varchar2_table(332) := '61636B222C76616C75653A66756E6374696F6E28297B746869732E72656D6F76654576656E744C697374656E65727328292C4365285065286E2E70726F746F74797065292C22646973636F6E6E656374656443616C6C6261636B222C74686973292E6361'; wwv_flow_api.g_varchar2_table(333) := '6C6C2874686973297D7D5D7D7D292C7265297D2928297D2928293B'; null; end; / begin wwv_flow_api.create_plugin_file( p_id=>wwv_flow_api.id(17046740980715386229) ,p_plugin_id=>wwv_flow_api.id(17046641022682360231) ,p_file_name=>'js/index.min.js' ,p_mime_type=>'text/javascript' ,p_file_charset=>'utf-8' ,p_file_content=>wwv_flow_api.varchar2_to_blob(wwv_flow_api.g_varchar2_table) ); end; / begin wwv_flow_api.g_varchar2_table := wwv_flow_api.empty_varchar2_table; wwv_flow_api.g_varchar2_table(1) := '2F2A2A2A2A2A2A2F20282829203D3E207B202F2F207765627061636B426F6F7473747261700A2F2A2A2A2A2A2A2F2009766172205F5F7765627061636B5F6D6F64756C65735F5F203D20287B0A0A2F2A2A2A2F203836343A0A2F2A2A2A2F20282829203D'; wwv_flow_api.g_varchar2_table(2) := '3E207B0A0A2F2A20676C6F62616C2061706578202A2F0A2F2F206372656174652074686520776562636F6D706F6E656E742061732061206368696C64206F662074686520726567696F6E69640A2F2F20616E64206D6F766520746865206578697374696E'; wwv_flow_api.g_varchar2_table(3) := '67207265737420696E746F206974206173206120736C6F740A76617220696E697441504558526567696F6E203D2066756E6374696F6E20696E697441504558526567696F6E285F72656629207B0A202076617220726567696F6E4964203D205F7265662E'; wwv_flow_api.g_varchar2_table(4) := '726567696F6E49642C0A2020202020207469746C65203D205F7265662E7469746C652C0A2020202020207769647468203D205F7265662E77696474682C0A202020202020646972656374696F6E203D205F7265662E646972656374696F6E3B0A20207661'; wwv_flow_api.g_varchar2_table(5) := '72206D757374526573697A65203D20747275653B0A2020617065782E64656275672E696E666F2827736C6964656F7665722070726F7073272C207B0A20202020726567696F6E49643A20726567696F6E49642C0A202020207469746C653A207469746C65'; wwv_flow_api.g_varchar2_table(6) := '2C0A2020202077696474683A2077696474680A20207D293B0A202076617220656C656D656E744964203D2022736C6964656F7665725F222E636F6E63617428726567696F6E4964293B0A0A2020747279207B0A2020202076617220726567696F6E203D20'; wwv_flow_api.g_varchar2_table(7) := '646F63756D656E742E717565727953656C6563746F72282223222E636F6E63617428726567696F6E496429293B202F2F2061646420736C6F742061747472696275746520746F2075736520696E7369646520736C6964656F7665722077656220636F6D70'; wwv_flow_api.g_varchar2_table(8) := '6F6E656E740A0A20202020726567696F6E2E736C6F74203D2027636F6E74656E74273B202F2F206372656174652077656220636F6D706F6E656E7420696E7374616E63650A0A2020202076617220656C65203D20646F63756D656E742E63726561746545'; wwv_flow_api.g_varchar2_table(9) := '6C656D656E742827736C6964652D6F76657227293B0A20202020656C652E6964203D20656C656D656E7449643B0A20202020656C652E6F70656E203D202766616C7365273B0A20202020656C652E686561646572203D207469746C653B0A20202020656C'; wwv_flow_api.g_varchar2_table(10) := '652E7769647468203D2077696474683B0A20202020656C652E646972656374696F6E203D20646972656374696F6E3B202F2F206D6F766520736C6F74746564206170657820706C75672D696E20726567696F6E20696E7369646520746865207765622063'; wwv_flow_api.g_varchar2_table(11) := '6F6D706F6E656E740A0A20202020656C652E617070656E644368696C6428726567696F6E293B0A20202020646F63756D656E742E717565727953656C6563746F72282723777776466C6F77466F726D27292E617070656E644368696C6428656C65293B20'; wwv_flow_api.g_varchar2_table(12) := '2F2F20706172656E744E6F64652E617070656E644368696C6428656C65293B0A20207D20636174636820286529207B0A202020202F2F2065736C696E742D64697361626C652D6E6578742D6C696E65206E6F2D636F6E736F6C650A20202020636F6E736F'; wwv_flow_api.g_varchar2_table(13) := '6C652E6572726F72282243616E6E6F7420736574757020536C6964656F76657220506C75672D496E5C6E222E636F6E636174286529293B0A20207D202F2F20726573697A6520696E7465726163746976652067726964732074686174206F746865727769'; wwv_flow_api.g_varchar2_table(14) := '7365206C6F6F6B206F7574206F6620706C6163650A0A0A202076617220726573697A65203D2066756E6374696F6E20726573697A652829207B0A20202020646F63756D656E74202F2F2066696E6420616C6C20737562726567696F6E73206F6620746865'; wwv_flow_api.g_varchar2_table(15) := '20736C6964656F7665720A202020202E717565727953656C6563746F72416C6C282223222E636F6E63617428726567696F6E49642C2022206469765B726F6C653D5C22726567696F6E5C225D2229292E666F72456163682866756E6374696F6E20286529'; wwv_flow_api.g_varchar2_table(16) := '207B0A202020202020766172206964203D20652E69643B0A0A202020202020747279207B0A202020202020202076617220737562726567696F6E203D20617065782E726567696F6E286964293B0A0A202020202020202069662028747970656F66207375'; wwv_flow_api.g_varchar2_table(17) := '62726567696F6E2E63616C6C20213D3D2027756E646566696E65642729207B0A20202020202020202020737562726567696F6E2E63616C6C2827726573697A6527293B0A20202020202020207D0A2020202020207D20636174636820285F29207B2F2F20'; wwv_flow_api.g_varchar2_table(18) := '646F206E6F7468696E67207768656E20726567696F6E20646F6573206E6F7420737570706F727420726573697A650A2020202020207D0A202020207D293B0A20207D3B0A0A2020617065782E6A51756572792877696E646F77292E6F6E28276170657877'; wwv_flow_api.g_varchar2_table(19) := '696E646F77726573697A6564272C2066756E6374696F6E202829207B0A202020206D757374526573697A65203D20747275653B0A20207D293B0A2020617065782E726567696F6E2E63726561746528726567696F6E49642C207B0A20202020747970653A'; wwv_flow_api.g_varchar2_table(20) := '2027536C6964656F766572272C0A202020206F70656E3A2066756E6374696F6E206F70656E2829207B0A202020202020696620286D757374526573697A6529207B0A2020202020202020726573697A6528293B0A20202020202020206D75737452657369'; wwv_flow_api.g_varchar2_table(21) := '7A65203D2066616C73653B0A2020202020207D202F2F207365742070726F706572747920226F70656E22206F662077656220636F6D706F6E656E740A0A0A202020202020646F63756D656E742E676574456C656D656E744279496428656C656D656E7449'; wwv_flow_api.g_varchar2_table(22) := '64292E6F70656E203D202774727565273B0A202020207D2C0A20202020636C6F73653A2066756E6374696F6E20636C6F73652829207B0A202020202020646F63756D656E742E676574456C656D656E744279496428656C656D656E744964292E6F70656E'; wwv_flow_api.g_varchar2_table(23) := '203D202766616C7365273B0A202020207D2C0A202020207365745469746C653A2066756E6374696F6E207365745469746C65286E65775469746C6529207B0A202020202020646F63756D656E742E676574456C656D656E744279496428656C656D656E74'; wwv_flow_api.g_varchar2_table(24) := '4964292E686561646572203D206E65775469746C653B0A202020207D2C0A202020202F2F206E656564656420666F7220636865636B20696620726567696F6E2063616E206265206F70656E6564202F20636C6F7365640A2020202077696467657446756C'; wwv_flow_api.g_varchar2_table(25) := '6C4E616D653A2027536C6964656F7665722D576964676574270A20207D293B0A7D3B0A0A696620282177696E646F772E68617274656E66656C6C65725F646576292077696E646F772E68617274656E66656C6C65725F646576203D207B7D3B0A69662028'; wwv_flow_api.g_varchar2_table(26) := '2177696E646F772E68617274656E66656C6C65725F6465762E736C6964656F7665725F706C7567696E292077696E646F772E68617274656E66656C6C65725F6465762E736C6964656F7665725F706C7567696E203D207B7D3B0A77696E646F772E686172'; wwv_flow_api.g_varchar2_table(27) := '74656E66656C6C65725F6465762E736C6964656F7665725F706C7567696E2E696E697441504558526567696F6E203D20696E697441504558526567696F6E3B0A0A2F2A2A2A2F207D290A0A2F2A2A2A2A2A2A2F20097D293B0A2F2A2A2A2A2A2A2A2A2A2A'; wwv_flow_api.g_varchar2_table(28) := '2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2F0A2F2A2A2A2A2A2A2F20092F2F20546865206D6F64756C652063616368650A2F2A2A2A2A2A'; wwv_flow_api.g_varchar2_table(29) := '2A2F2009766172205F5F7765627061636B5F6D6F64756C655F63616368655F5F203D207B7D3B0A2F2A2A2A2A2A2A2F20090A2F2A2A2A2A2A2A2F20092F2F2054686520726571756972652066756E6374696F6E0A2F2A2A2A2A2A2A2F200966756E637469'; wwv_flow_api.g_varchar2_table(30) := '6F6E205F5F7765627061636B5F726571756972655F5F286D6F64756C65496429207B0A2F2A2A2A2A2A2A2F2009092F2F20436865636B206966206D6F64756C6520697320696E2063616368650A2F2A2A2A2A2A2A2F200909766172206361636865644D6F'; wwv_flow_api.g_varchar2_table(31) := '64756C65203D205F5F7765627061636B5F6D6F64756C655F63616368655F5F5B6D6F64756C6549645D3B0A2F2A2A2A2A2A2A2F200909696620286361636865644D6F64756C6520213D3D20756E646566696E656429207B0A2F2A2A2A2A2A2A2F20090909'; wwv_flow_api.g_varchar2_table(32) := '72657475726E206361636865644D6F64756C652E6578706F7274733B0A2F2A2A2A2A2A2A2F2009097D0A2F2A2A2A2A2A2A2F2009092F2F204372656174652061206E6577206D6F64756C652028616E642070757420697420696E746F2074686520636163'; wwv_flow_api.g_varchar2_table(33) := '6865290A2F2A2A2A2A2A2A2F200909766172206D6F64756C65203D205F5F7765627061636B5F6D6F64756C655F63616368655F5F5B6D6F64756C6549645D203D207B0A2F2A2A2A2A2A2A2F200909092F2F206E6F206D6F64756C652E6964206E65656465'; wwv_flow_api.g_varchar2_table(34) := '640A2F2A2A2A2A2A2A2F200909092F2F206E6F206D6F64756C652E6C6F61646564206E65656465640A2F2A2A2A2A2A2A2F200909096578706F7274733A207B7D0A2F2A2A2A2A2A2A2F2009097D3B0A2F2A2A2A2A2A2A2F20090A2F2A2A2A2A2A2A2F2009'; wwv_flow_api.g_varchar2_table(35) := '092F2F204578656375746520746865206D6F64756C652066756E6374696F6E0A2F2A2A2A2A2A2A2F2009095F5F7765627061636B5F6D6F64756C65735F5F5B6D6F64756C6549645D286D6F64756C652C206D6F64756C652E6578706F7274732C205F5F77'; wwv_flow_api.g_varchar2_table(36) := '65627061636B5F726571756972655F5F293B0A2F2A2A2A2A2A2A2F20090A2F2A2A2A2A2A2A2F2009092F2F2052657475726E20746865206578706F727473206F6620746865206D6F64756C650A2F2A2A2A2A2A2A2F20090972657475726E206D6F64756C'; wwv_flow_api.g_varchar2_table(37) := '652E6578706F7274733B0A2F2A2A2A2A2A2A2F20097D0A2F2A2A2A2A2A2A2F20090A2F2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A'; wwv_flow_api.g_varchar2_table(38) := '2A2A2A2A2A2A2A2F0A766172205F5F7765627061636B5F6578706F7274735F5F203D207B7D3B0A2F2F205468697320656E747279206E65656420746F206265207772617070656420696E20616E20494946452062656361757365206974206E6565642074'; wwv_flow_api.g_varchar2_table(39) := '6F20626520696E20737472696374206D6F64652E0A282829203D3E207B0A2275736520737472696374223B0A0A2F2F20554E55534544204558504F5254533A2064656661756C740A0A3B2F2F20434F4E434154454E41544544204D4F44554C453A202E2F'; wwv_flow_api.g_varchar2_table(40) := '6E6F64655F6D6F64756C65732F406C69742F72656163746976652D656C656D656E742F6373732D7461672E6A730A2F2A2A0A202A20406C6963656E73650A202A20436F70797269676874203230313920476F6F676C65204C4C430A202A20535044582D4C'; wwv_flow_api.g_varchar2_table(41) := '6963656E73652D4964656E7469666965723A204253442D332D436C617573650A202A2F0A636F6E7374206373735F7461675F743D77696E646F772E536861646F77526F6F74262628766F696420303D3D3D77696E646F772E53686164794353537C7C7769'; wwv_flow_api.g_varchar2_table(42) := '6E646F772E53686164794353532E6E6174697665536861646F772926262261646F707465645374796C6553686565747322696E20446F63756D656E742E70726F746F747970652626227265706C61636522696E204353535374796C6553686565742E7072'; wwv_flow_api.g_varchar2_table(43) := '6F746F747970652C6373735F7461675F653D53796D626F6C28293B636C61737320737B636F6E7374727563746F7228742C73297B69662873213D3D6373735F7461675F65297468726F77204572726F722822435353526573756C74206973206E6F742063'; wwv_flow_api.g_varchar2_table(44) := '6F6E73747275637461626C652E205573652060756E7361666543535360206F7220606373736020696E73746561642E22293B746869732E637373546578743D747D676574207374796C65536865657428297B72657475726E206373735F7461675F742626'; wwv_flow_api.g_varchar2_table(45) := '766F696420303D3D3D746869732E74262628746869732E743D6E6577204353535374796C6553686565742C746869732E742E7265706C61636553796E6328746869732E6373735465787429292C746869732E747D746F537472696E6728297B7265747572'; wwv_flow_api.g_varchar2_table(46) := '6E20746869732E637373546578747D7D636F6E7374206E3D6E6577204D61702C6F3D743D3E7B6C6574206F3D6E2E6765742874293B72657475726E20766F696420303D3D3D6F26266E2E73657428742C6F3D6E6577207328742C6373735F7461675F6529'; wwv_flow_api.g_varchar2_table(47) := '292C6F7D2C723D743D3E6F2822737472696E67223D3D747970656F6620743F743A742B2222292C693D28742C2E2E2E65293D3E7B636F6E7374206E3D313D3D3D742E6C656E6774683F745B305D3A652E726564756365282828652C6E2C6F293D3E652B28'; wwv_flow_api.g_varchar2_table(48) := '743D3E7B6966287420696E7374616E63656F6620732972657475726E20742E637373546578743B696628226E756D626572223D3D747970656F6620742972657475726E20743B7468726F77204572726F72282256616C75652070617373656420746F2027'; wwv_flow_api.g_varchar2_table(49) := '637373272066756E6374696F6E206D75737420626520612027637373272066756E6374696F6E20726573756C743A20222B742B222E205573652027756E736166654353532720746F2070617373206E6F6E2D6C69746572616C2076616C7565732C206275'; wwv_flow_api.g_varchar2_table(50) := '742074616B65206361726520746F20656E7375726520706167652073656375726974792E22297D29286E292B745B6F2B315D292C745B305D293B72657475726E206F286E297D2C533D28652C73293D3E7B6373735F7461675F743F652E61646F70746564'; wwv_flow_api.g_varchar2_table(51) := '5374796C655368656574733D732E6D61702828743D3E7420696E7374616E63656F66204353535374796C6553686565743F743A742E7374796C65536865657429293A732E666F72456163682828743D3E7B636F6E737420733D646F63756D656E742E6372'; wwv_flow_api.g_varchar2_table(52) := '65617465456C656D656E7428227374796C6522293B732E74657874436F6E74656E743D742E637373546578742C652E617070656E644368696C642873297D29297D2C753D6373735F7461675F743F743D3E743A743D3E7420696E7374616E63656F662043'; wwv_flow_api.g_varchar2_table(53) := '53535374796C6553686565743F28743D3E7B6C657420653D22223B666F7228636F6E73742073206F6620742E63737352756C657329652B3D732E637373546578743B72657475726E20722865297D292874293A743B0A2F2F2320736F757263654D617070'; wwv_flow_api.g_varchar2_table(54) := '696E6755524C3D6373732D7461672E6A732E6D61700A0A3B2F2F20434F4E434154454E41544544204D4F44554C453A202E2F6E6F64655F6D6F64756C65732F406C69742F72656163746976652D656C656D656E742F72656163746976652D656C656D656E'; wwv_flow_api.g_varchar2_table(55) := '742E6A730A0A2F2A2A0A202A20406C6963656E73650A202A20436F70797269676874203230313720476F6F676C65204C4C430A202A20535044582D4C6963656E73652D4964656E7469666965723A204253442D332D436C617573650A202A2F7661722072'; wwv_flow_api.g_varchar2_table(56) := '656163746976655F656C656D656E745F732C72656163746976655F656C656D656E745F652C682C72656163746976655F656C656D656E745F723B636F6E73742072656163746976655F656C656D656E745F6F3D7B746F41747472696275746528742C6929'; wwv_flow_api.g_varchar2_table(57) := '7B7377697463682869297B6361736520426F6F6C65616E3A743D743F22223A6E756C6C3B627265616B3B63617365204F626A6563743A636173652041727261793A743D6E756C6C3D3D743F743A4A534F4E2E737472696E676966792874297D7265747572'; wwv_flow_api.g_varchar2_table(58) := '6E20747D2C66726F6D41747472696275746528742C69297B6C657420733D743B7377697463682869297B6361736520426F6F6C65616E3A733D6E756C6C213D3D743B627265616B3B63617365204E756D6265723A733D6E756C6C3D3D3D743F6E756C6C3A'; wwv_flow_api.g_varchar2_table(59) := '4E756D6265722874293B627265616B3B63617365204F626A6563743A636173652041727261793A7472797B733D4A534F4E2E70617273652874297D63617463682874297B733D6E756C6C7D7D72657475726E20737D7D2C72656163746976655F656C656D'; wwv_flow_api.g_varchar2_table(60) := '656E745F6E3D28742C69293D3E69213D3D74262628693D3D697C7C743D3D74292C6C3D7B6174747269627574653A21302C747970653A537472696E672C636F6E7665727465723A72656163746976655F656C656D656E745F6F2C7265666C6563743A2131'; wwv_flow_api.g_varchar2_table(61) := '2C6861734368616E6765643A72656163746976655F656C656D656E745F6E7D3B636C617373206120657874656E64732048544D4C456C656D656E747B636F6E7374727563746F7228297B737570657228292C746869732ECEA0693D6E6577204D61702C74'; wwv_flow_api.g_varchar2_table(62) := '6869732ECEA06F3D766F696420302C746869732ECEA06C3D766F696420302C746869732E697355706461746550656E64696E673D21312C746869732E686173557064617465643D21312C746869732ECEA0683D6E756C6C2C746869732E7528297D737461'; wwv_flow_api.g_varchar2_table(63) := '74696320616464496E697469616C697A65722874297B76617220693B6E756C6C213D3D28693D746869732E76292626766F69642030213D3D697C7C28746869732E763D5B5D292C746869732E762E707573682874297D73746174696320676574206F6273'; wwv_flow_api.g_varchar2_table(64) := '65727665644174747269627574657328297B746869732E66696E616C697A6528293B636F6E737420743D5B5D3B72657475726E20746869732E656C656D656E7450726F706572746965732E666F7245616368282828692C73293D3E7B636F6E737420653D'; wwv_flow_api.g_varchar2_table(65) := '746869732ECEA07028732C69293B766F69642030213D3D65262628746869732ECEA06D2E73657428652C73292C742E70757368286529297D29292C747D7374617469632063726561746550726F706572747928742C693D6C297B696628692E7374617465'; wwv_flow_api.g_varchar2_table(66) := '262628692E6174747269627574653D2131292C746869732E66696E616C697A6528292C746869732E656C656D656E7450726F706572746965732E73657428742C69292C21692E6E6F4163636573736F72262621746869732E70726F746F747970652E6861'; wwv_flow_api.g_varchar2_table(67) := '734F776E50726F7065727479287429297B636F6E737420733D2273796D626F6C223D3D747970656F6620743F53796D626F6C28293A225F5F222B742C653D746869732E67657450726F706572747944657363726970746F7228742C732C69293B766F6964'; wwv_flow_api.g_varchar2_table(68) := '2030213D3D6526264F626A6563742E646566696E6550726F706572747928746869732E70726F746F747970652C742C65297D7D7374617469632067657450726F706572747944657363726970746F7228742C692C73297B72657475726E7B67657428297B'; wwv_flow_api.g_varchar2_table(69) := '72657475726E20746869735B695D7D2C7365742865297B636F6E737420683D746869735B745D3B746869735B695D3D652C746869732E7265717565737455706461746528742C682C73297D2C636F6E666967757261626C653A21302C656E756D65726162'; wwv_flow_api.g_varchar2_table(70) := '6C653A21307D7D7374617469632067657450726F70657274794F7074696F6E732874297B72657475726E20746869732E656C656D656E7450726F706572746965732E6765742874297C7C6C7D7374617469632066696E616C697A6528297B696628746869'; wwv_flow_api.g_varchar2_table(71) := '732E6861734F776E50726F7065727479282266696E616C697A656422292972657475726E21313B746869732E66696E616C697A65643D21303B636F6E737420743D4F626A6563742E67657450726F746F747970654F662874686973293B696628742E6669'; wwv_flow_api.g_varchar2_table(72) := '6E616C697A6528292C746869732E656C656D656E7450726F706572746965733D6E6577204D617028742E656C656D656E7450726F70657274696573292C746869732ECEA06D3D6E6577204D61702C746869732E6861734F776E50726F7065727479282270'; wwv_flow_api.g_varchar2_table(73) := '726F706572746965732229297B636F6E737420743D746869732E70726F706572746965732C693D5B2E2E2E4F626A6563742E6765744F776E50726F70657274794E616D65732874292C2E2E2E4F626A6563742E6765744F776E50726F706572747953796D'; wwv_flow_api.g_varchar2_table(74) := '626F6C732874295D3B666F7228636F6E73742073206F66206929746869732E63726561746550726F706572747928732C745B735D297D72657475726E20746869732E656C656D656E745374796C65733D746869732E66696E616C697A655374796C657328'; wwv_flow_api.g_varchar2_table(75) := '746869732E7374796C6573292C21307D7374617469632066696E616C697A655374796C65732869297B636F6E737420733D5B5D3B69662841727261792E69734172726179286929297B636F6E737420653D6E65772053657428692E666C617428312F3029'; wwv_flow_api.g_varchar2_table(76) := '2E726576657273652829293B666F7228636F6E73742069206F66206529732E756E73686966742875286929297D656C736520766F69642030213D3D692626732E707573682875286929293B72657475726E20737D73746174696320CEA07028742C69297B'; wwv_flow_api.g_varchar2_table(77) := '636F6E737420733D692E6174747269627574653B72657475726E21313D3D3D733F766F696420303A22737472696E67223D3D747970656F6620733F733A22737472696E67223D3D747970656F6620743F742E746F4C6F7765724361736528293A766F6964'; wwv_flow_api.g_varchar2_table(78) := '20307D7528297B76617220743B746869732ECEA0673D6E65772050726F6D6973652828743D3E746869732E656E61626C655570646174696E673D7429292C746869732E4C3D6E6577204D61702C746869732ECEA05F28292C746869732E72657175657374'; wwv_flow_api.g_varchar2_table(79) := '55706461746528292C6E756C6C3D3D3D28743D746869732E636F6E7374727563746F722E76297C7C766F696420303D3D3D747C7C742E666F72456163682828743D3E7428746869732929297D616464436F6E74726F6C6C65722874297B76617220692C73'; wwv_flow_api.g_varchar2_table(80) := '3B286E756C6C213D3D28693D746869732ECEA055292626766F69642030213D3D693F693A746869732ECEA0553D5B5D292E707573682874292C766F69642030213D3D746869732E72656E646572526F6F742626746869732E6973436F6E6E656374656426'; wwv_flow_api.g_varchar2_table(81) := '26286E756C6C3D3D3D28733D742E686F7374436F6E6E6563746564297C7C766F696420303D3D3D737C7C732E63616C6C287429297D72656D6F7665436F6E74726F6C6C65722874297B76617220693B6E756C6C3D3D3D28693D746869732ECEA055297C7C'; wwv_flow_api.g_varchar2_table(82) := '766F696420303D3D3D697C7C692E73706C69636528746869732ECEA0552E696E6465784F662874293E3E3E302C31297DCEA05F28297B746869732E636F6E7374727563746F722E656C656D656E7450726F706572746965732E666F724561636828282874'; wwv_flow_api.g_varchar2_table(83) := '2C69293D3E7B746869732E6861734F776E50726F7065727479286929262628746869732ECEA0692E73657428692C746869735B695D292C64656C65746520746869735B695D297D29297D63726561746552656E646572526F6F7428297B76617220743B63'; wwv_flow_api.g_varchar2_table(84) := '6F6E737420733D6E756C6C213D3D28743D746869732E736861646F77526F6F74292626766F69642030213D3D743F743A746869732E617474616368536861646F7728746869732E636F6E7374727563746F722E736861646F77526F6F744F7074696F6E73'; wwv_flow_api.g_varchar2_table(85) := '293B72657475726E205328732C746869732E636F6E7374727563746F722E656C656D656E745374796C6573292C737D636F6E6E656374656443616C6C6261636B28297B76617220743B766F696420303D3D3D746869732E72656E646572526F6F74262628'; wwv_flow_api.g_varchar2_table(86) := '746869732E72656E646572526F6F743D746869732E63726561746552656E646572526F6F742829292C746869732E656E61626C655570646174696E67282130292C6E756C6C3D3D3D28743D746869732ECEA055297C7C766F696420303D3D3D747C7C742E'; wwv_flow_api.g_varchar2_table(87) := '666F72456163682828743D3E7B76617220693B72657475726E206E756C6C3D3D3D28693D742E686F7374436F6E6E6563746564297C7C766F696420303D3D3D693F766F696420303A692E63616C6C2874297D29292C746869732ECEA06C26262874686973'; wwv_flow_api.g_varchar2_table(88) := '2ECEA06C28292C746869732ECEA06F3D746869732ECEA06C3D766F69642030297D656E61626C655570646174696E672874297B7D646973636F6E6E656374656443616C6C6261636B28297B76617220743B6E756C6C3D3D3D28743D746869732ECEA05529'; wwv_flow_api.g_varchar2_table(89) := '7C7C766F696420303D3D3D747C7C742E666F72456163682828743D3E7B76617220693B72657475726E206E756C6C3D3D3D28693D742E686F7374446973636F6E6E6563746564297C7C766F696420303D3D3D693F766F696420303A692E63616C6C287429'; wwv_flow_api.g_varchar2_table(90) := '7D29292C746869732ECEA06F3D6E65772050726F6D6973652828743D3E746869732ECEA06C3D7429297D6174747269627574654368616E67656443616C6C6261636B28742C692C73297B746869732E4B28742C73297DCEA06A28742C692C733D6C297B76'; wwv_flow_api.g_varchar2_table(91) := '617220652C683B636F6E737420723D746869732E636F6E7374727563746F722ECEA07028742C73293B696628766F69642030213D3D72262621303D3D3D732E7265666C656374297B636F6E7374206E3D286E756C6C213D3D28683D6E756C6C3D3D3D2865'; wwv_flow_api.g_varchar2_table(92) := '3D732E636F6E766572746572297C7C766F696420303D3D3D653F766F696420303A652E746F417474726962757465292626766F69642030213D3D683F683A72656163746976655F656C656D656E745F6F2E746F4174747269627574652928692C732E7479'; wwv_flow_api.g_varchar2_table(93) := '7065293B746869732ECEA0683D742C6E756C6C3D3D6E3F746869732E72656D6F76654174747269627574652872293A746869732E73657441747472696275746528722C6E292C746869732ECEA0683D6E756C6C7D7D4B28742C69297B76617220732C652C'; wwv_flow_api.g_varchar2_table(94) := '683B636F6E737420723D746869732E636F6E7374727563746F722C6E3D722ECEA06D2E6765742874293B696628766F69642030213D3D6E2626746869732ECEA068213D3D6E297B636F6E737420743D722E67657450726F70657274794F7074696F6E7328'; wwv_flow_api.g_varchar2_table(95) := '6E292C6C3D742E636F6E7665727465722C613D6E756C6C213D3D28683D6E756C6C213D3D28653D6E756C6C3D3D3D28733D6C297C7C766F696420303D3D3D733F766F696420303A732E66726F6D417474726962757465292626766F69642030213D3D653F'; wwv_flow_api.g_varchar2_table(96) := '653A2266756E6374696F6E223D3D747970656F66206C3F6C3A6E756C6C292626766F69642030213D3D683F683A72656163746976655F656C656D656E745F6F2E66726F6D4174747269627574653B746869732ECEA0683D6E2C746869735B6E5D3D612869'; wwv_flow_api.g_varchar2_table(97) := '2C742E74797065292C746869732ECEA0683D6E756C6C7D7D7265717565737455706461746528742C692C73297B6C657420653D21303B766F69642030213D3D742626282828733D737C7C746869732E636F6E7374727563746F722E67657450726F706572'; wwv_flow_api.g_varchar2_table(98) := '74794F7074696F6E73287429292E6861734368616E6765647C7C72656163746976655F656C656D656E745F6E2928746869735B745D2C69293F28746869732E4C2E6861732874297C7C746869732E4C2E73657428742C69292C21303D3D3D732E7265666C'; wwv_flow_api.g_varchar2_table(99) := '6563742626746869732ECEA068213D3D74262628766F696420303D3D3D746869732ECEA06B262628746869732ECEA06B3D6E6577204D6170292C746869732ECEA06B2E73657428742C732929293A653D2131292C21746869732E69735570646174655065'; wwv_flow_api.g_varchar2_table(100) := '6E64696E67262665262628746869732ECEA0673D746869732ECEA0712829297D6173796E6320CEA07128297B746869732E697355706461746550656E64696E673D21303B7472797B666F7228617761697420746869732ECEA0673B746869732ECEA06F3B'; wwv_flow_api.g_varchar2_table(101) := '29617761697420746869732ECEA06F7D63617463682874297B50726F6D6973652E72656A6563742874297D636F6E737420743D746869732E706572666F726D55706461746528293B72657475726E206E756C6C213D742626617761697420742C21746869'; wwv_flow_api.g_varchar2_table(102) := '732E697355706461746550656E64696E677D706572666F726D55706461746528297B76617220743B69662821746869732E697355706461746550656E64696E672972657475726E3B746869732E686173557064617465642C746869732ECEA06926262874'; wwv_flow_api.g_varchar2_table(103) := '6869732ECEA0692E666F7245616368282828742C69293D3E746869735B695D3D7429292C746869732ECEA0693D766F69642030293B6C657420693D21313B636F6E737420733D746869732E4C3B7472797B693D746869732E73686F756C64557064617465'; wwv_flow_api.g_varchar2_table(104) := '2873292C693F28746869732E77696C6C5570646174652873292C6E756C6C3D3D3D28743D746869732ECEA055297C7C766F696420303D3D3D747C7C742E666F72456163682828743D3E7B76617220693B72657475726E206E756C6C3D3D3D28693D742E68'; wwv_flow_api.g_varchar2_table(105) := '6F7374557064617465297C7C766F696420303D3D3D693F766F696420303A692E63616C6C2874297D29292C746869732E757064617465287329293A746869732ECEA02428297D63617463682874297B7468726F7720693D21312C746869732ECEA0242829'; wwv_flow_api.g_varchar2_table(106) := '2C747D692626746869732E452873297D77696C6C5570646174652874297B7D452874297B76617220693B6E756C6C3D3D3D28693D746869732ECEA055297C7C766F696420303D3D3D697C7C692E666F72456163682828743D3E7B76617220693B72657475'; wwv_flow_api.g_varchar2_table(107) := '726E206E756C6C3D3D3D28693D742E686F737455706461746564297C7C766F696420303D3D3D693F766F696420303A692E63616C6C2874297D29292C746869732E686173557064617465647C7C28746869732E686173557064617465643D21302C746869'; wwv_flow_api.g_varchar2_table(108) := '732E666972737455706461746564287429292C746869732E757064617465642874297DCEA02428297B746869732E4C3D6E6577204D61702C746869732E697355706461746550656E64696E673D21317D67657420757064617465436F6D706C6574652829'; wwv_flow_api.g_varchar2_table(109) := '7B72657475726E20746869732E676574557064617465436F6D706C65746528297D676574557064617465436F6D706C65746528297B72657475726E20746869732ECEA0677D73686F756C645570646174652874297B72657475726E21307D757064617465'; wwv_flow_api.g_varchar2_table(110) := '2874297B766F69642030213D3D746869732ECEA06B262628746869732ECEA06B2E666F7245616368282828742C69293D3E746869732ECEA06A28692C746869735B695D2C742929292C746869732ECEA06B3D766F69642030292C746869732ECEA0242829'; wwv_flow_api.g_varchar2_table(111) := '7D757064617465642874297B7D6669727374557064617465642874297B7D7D612E66696E616C697A65643D21302C612E656C656D656E7450726F706572746965733D6E6577204D61702C612E656C656D656E745374796C65733D5B5D2C612E736861646F'; wwv_flow_api.g_varchar2_table(112) := '77526F6F744F7074696F6E733D7B6D6F64653A226F70656E227D2C6E756C6C3D3D3D2872656163746976655F656C656D656E745F653D2872656163746976655F656C656D656E745F733D676C6F62616C54686973292E7265616374697665456C656D656E'; wwv_flow_api.g_varchar2_table(113) := '74506C6174666F726D537570706F7274297C7C766F696420303D3D3D72656163746976655F656C656D656E745F657C7C72656163746976655F656C656D656E745F652E63616C6C2872656163746976655F656C656D656E745F732C7B5265616374697665'; wwv_flow_api.g_varchar2_table(114) := '456C656D656E743A617D292C286E756C6C213D3D28683D2872656163746976655F656C656D656E745F723D676C6F62616C54686973292E7265616374697665456C656D656E7456657273696F6E73292626766F69642030213D3D683F683A726561637469'; wwv_flow_api.g_varchar2_table(115) := '76655F656C656D656E745F722E7265616374697665456C656D656E7456657273696F6E733D5B5D292E707573682822312E302E302D72632E3222293B0A2F2F2320736F757263654D617070696E6755524C3D72656163746976652D656C656D656E742E6A'; wwv_flow_api.g_varchar2_table(116) := '732E6D61700A0A3B2F2F20434F4E434154454E41544544204D4F44554C453A202E2F6E6F64655F6D6F64756C65732F6C69742D68746D6C2F6C69742D68746D6C2E6A730A2F2A2A0A202A20406C6963656E73650A202A20436F7079726967687420323031'; wwv_flow_api.g_varchar2_table(117) := '3720476F6F676C65204C4C430A202A20535044582D4C6963656E73652D4964656E7469666965723A204253442D332D436C617573650A202A2F0A766172206C69745F68746D6C5F742C6C69745F68746D6C5F692C6C69745F68746D6C5F732C6C69745F68'; wwv_flow_api.g_varchar2_table(118) := '746D6C5F653B636F6E7374206C69745F68746D6C5F6F3D676C6F62616C546869732E7472757374656454797065732C6C69745F68746D6C5F6C3D6C69745F68746D6C5F6F3F6C69745F68746D6C5F6F2E637265617465506F6C69637928226C69742D6874'; wwv_flow_api.g_varchar2_table(119) := '6D6C222C7B63726561746548544D4C3A743D3E747D293A766F696420302C6C69745F68746D6C5F6E3D606C697424247B284D6174682E72616E646F6D28292B2222292E736C6963652839297D24602C6C69745F68746D6C5F683D223F222B6C69745F6874'; wwv_flow_api.g_varchar2_table(120) := '6D6C5F6E2C6C69745F68746D6C5F723D603C247B6C69745F68746D6C5F687D3E602C6C69745F68746D6C5F753D646F63756D656E742C633D28743D2222293D3E6C69745F68746D6C5F752E637265617465436F6D6D656E742874292C643D743D3E6E756C'; wwv_flow_api.g_varchar2_table(121) := '6C3D3D3D747C7C226F626A65637422213D747970656F66207426262266756E6374696F6E22213D747970656F6620742C763D41727261792E697341727261792C6C69745F68746D6C5F613D743D3E7B76617220693B72657475726E20762874297C7C2266'; wwv_flow_api.g_varchar2_table(122) := '756E6374696F6E223D3D747970656F66286E756C6C3D3D3D28693D74297C7C766F696420303D3D3D693F766F696420303A695B53796D626F6C2E6974657261746F725D297D2C663D2F3C283F3A28212D2D7C5C2F5B5E612D7A412D5A5D297C285C2F3F5B'; wwv_flow_api.g_varchar2_table(123) := '612D7A412D5A5D5B5E3E5C735D2A297C285C2F3F2429292F672C5F3D2F2D2D3E2F672C6D3D2F3E2F672C703D2F3E7C5B20095C6E0C5C725D283F3A285B5E5C7322273E3D2F5D2B29285B20095C6E0C5C725D2A3D5B20095C6E0C5C725D2A283F3A5B5E20'; wwv_flow_api.g_varchar2_table(124) := '095C6E0C5C722227603C3E3D5D7C28227C27297C29297C24292F672C243D2F272F672C673D2F222F672C793D2F5E283F3A7363726970747C7374796C657C746578746172656129242F692C623D743D3E28692C2E2E2E73293D3E287B5F246C6974547970'; wwv_flow_api.g_varchar2_table(125) := '65243A742C737472696E67733A692C76616C7565733A737D292C543D622831292C783D622832292C773D53796D626F6C2E666F7228226C69742D6E6F4368616E676522292C413D53796D626F6C2E666F7228226C69742D6E6F7468696E6722292C503D6E'; wwv_flow_api.g_varchar2_table(126) := '6577205765616B4D61702C563D28742C692C73293D3E7B76617220652C6F3B636F6E7374206C3D6E756C6C213D3D28653D6E756C6C3D3D733F766F696420303A732E72656E6465724265666F7265292626766F69642030213D3D653F653A693B6C657420'; wwv_flow_api.g_varchar2_table(127) := '6E3D6C2E5F246C697450617274243B696628766F696420303D3D3D6E297B636F6E737420743D6E756C6C213D3D286F3D6E756C6C3D3D733F766F696420303A732E72656E6465724265666F7265292626766F69642030213D3D6F3F6F3A6E756C6C3B6C2E'; wwv_flow_api.g_varchar2_table(128) := '5F246C697450617274243D6E3D6E6577204328692E696E736572744265666F7265286328292C74292C742C766F696420302C73297D72657475726E206E2E492874292C6E7D2C453D6C69745F68746D6C5F752E6372656174655472656557616C6B657228'; wwv_flow_api.g_varchar2_table(129) := '6C69745F68746D6C5F752C3132392C6E756C6C2C2131292C4D3D28742C69293D3E7B636F6E737420733D742E6C656E6774682D312C653D5B5D3B6C6574206F2C683D323D3D3D693F223C7376673E223A22222C753D663B666F72286C657420693D303B69'; wwv_flow_api.g_varchar2_table(130) := '3C733B692B2B297B636F6E737420733D745B695D3B6C6574206C2C632C643D2D312C763D303B666F72283B763C732E6C656E677468262628752E6C617374496E6465783D762C633D752E657865632873292C6E756C6C213D3D63293B29763D752E6C6173'; wwv_flow_api.g_varchar2_table(131) := '74496E6465782C753D3D3D663F22212D2D223D3D3D635B315D3F753D5F3A766F69642030213D3D635B315D3F753D6D3A766F69642030213D3D635B325D3F28792E7465737428635B325D292626286F3D52656745787028223C2F222B635B325D2C226722'; wwv_flow_api.g_varchar2_table(132) := '29292C753D70293A766F69642030213D3D635B335D262628753D70293A753D3D3D703F223E223D3D3D635B305D3F28753D6E756C6C213D6F3F6F3A662C643D2D31293A766F696420303D3D3D635B315D3F643D2D323A28643D752E6C617374496E646578'; wwv_flow_api.g_varchar2_table(133) := '2D635B325D2E6C656E6774682C6C3D635B315D2C753D766F696420303D3D3D635B335D3F703A2722273D3D3D635B335D3F673A24293A753D3D3D677C7C753D3D3D243F753D703A753D3D3D5F7C7C753D3D3D6D3F753D663A28753D702C6F3D766F696420'; wwv_flow_api.g_varchar2_table(134) := '30293B636F6E737420613D753D3D3D702626745B692B315D2E7374617274735769746828222F3E22293F2220223A22223B682B3D753D3D3D663F732B6C69745F68746D6C5F723A643E3D303F28652E70757368286C292C732E736C69636528302C64292B'; wwv_flow_api.g_varchar2_table(135) := '22246C697424222B732E736C6963652864292B6C69745F68746D6C5F6E2B61293A732B6C69745F68746D6C5F6E2B282D323D3D3D643F28652E7075736828766F69642030292C69293A61297D636F6E737420633D682B28745B735D7C7C223C3F3E22292B'; wwv_flow_api.g_varchar2_table(136) := '28323D3D3D693F223C2F7376673E223A2222293B72657475726E5B766F69642030213D3D6C69745F68746D6C5F6C3F6C69745F68746D6C5F6C2E63726561746548544D4C2863293A632C655D7D3B636C617373204E7B636F6E7374727563746F72287B73'; wwv_flow_api.g_varchar2_table(137) := '7472696E67733A742C5F246C697454797065243A697D2C73297B6C657420653B746869732E70617274733D5B5D3B6C6574206C3D302C723D303B636F6E737420753D742E6C656E6774682D312C643D746869732E70617274732C5B762C615D3D4D28742C'; wwv_flow_api.g_varchar2_table(138) := '69293B696628746869732E656C3D4E2E637265617465456C656D656E7428762C73292C452E63757272656E744E6F64653D746869732E656C2E636F6E74656E742C323D3D3D69297B636F6E737420743D746869732E656C2E636F6E74656E742C693D742E'; wwv_flow_api.g_varchar2_table(139) := '66697273744368696C643B692E72656D6F766528292C742E617070656E64282E2E2E692E6368696C644E6F646573297D666F72283B6E756C6C213D3D28653D452E6E6578744E6F64652829292626642E6C656E6774683C753B297B696628313D3D3D652E'; wwv_flow_api.g_varchar2_table(140) := '6E6F646554797065297B696628652E686173417474726962757465732829297B636F6E737420743D5B5D3B666F7228636F6E73742069206F6620652E6765744174747269627574654E616D6573282929696628692E656E6473576974682822246C697424'; wwv_flow_api.g_varchar2_table(141) := '22297C7C692E73746172747357697468286C69745F68746D6C5F6E29297B636F6E737420733D615B722B2B5D3B696628742E707573682869292C766F69642030213D3D73297B636F6E737420743D652E67657441747472696275746528732E746F4C6F77'; wwv_flow_api.g_varchar2_table(142) := '65724361736528292B22246C69742422292E73706C6974286C69745F68746D6C5F6E292C693D2F285B2E3F405D293F282E2A292F2E657865632873293B642E70757368287B747970653A312C696E6465783A6C2C6E616D653A695B325D2C737472696E67'; wwv_flow_api.g_varchar2_table(143) := '733A742C63746F723A222E223D3D3D695B315D3F493A223F223D3D3D695B315D3F4C3A2240223D3D3D695B315D3F523A487D297D656C736520642E70757368287B747970653A362C696E6465783A6C7D297D666F7228636F6E73742069206F6620742965'; wwv_flow_api.g_varchar2_table(144) := '2E72656D6F76654174747269627574652869297D696628792E7465737428652E7461674E616D6529297B636F6E737420743D652E74657874436F6E74656E742E73706C6974286C69745F68746D6C5F6E292C693D742E6C656E6774682D313B696628693E'; wwv_flow_api.g_varchar2_table(145) := '30297B652E74657874436F6E74656E743D6C69745F68746D6C5F6F3F6C69745F68746D6C5F6F2E656D7074795363726970743A22223B666F72286C657420733D303B733C693B732B2B29652E617070656E6428745B735D2C632829292C452E6E6578744E'; wwv_flow_api.g_varchar2_table(146) := '6F646528292C642E70757368287B747970653A322C696E6465783A2B2B6C7D293B652E617070656E6428745B695D2C632829297D7D7D656C736520696628383D3D3D652E6E6F64655479706529696628652E646174613D3D3D6C69745F68746D6C5F6829'; wwv_flow_api.g_varchar2_table(147) := '642E70757368287B747970653A322C696E6465783A6C7D293B656C73657B6C657420743D2D313B666F72283B2D31213D3D28743D652E646174612E696E6465784F66286C69745F68746D6C5F6E2C742B3129293B29642E70757368287B747970653A372C'; wwv_flow_api.g_varchar2_table(148) := '696E6465783A6C7D292C742B3D6C69745F68746D6C5F6E2E6C656E6774682D317D6C2B2B7D7D73746174696320637265617465456C656D656E7428742C69297B636F6E737420733D6C69745F68746D6C5F752E637265617465456C656D656E7428227465'; wwv_flow_api.g_varchar2_table(149) := '6D706C61746522293B72657475726E20732E696E6E657248544D4C3D742C737D7D66756E6374696F6E206C69745F68746D6C5F5328742C692C733D742C65297B766172206F2C6C2C6E2C683B696628693D3D3D772972657475726E20693B6C657420723D'; wwv_flow_api.g_varchar2_table(150) := '766F69642030213D3D653F6E756C6C3D3D3D286F3D732ECEA369297C7C766F696420303D3D3D6F3F766F696420303A6F5B655D3A732ECEA36F3B636F6E737420753D642869293F766F696420303A692E5F246C6974446972656374697665243B72657475'; wwv_flow_api.g_varchar2_table(151) := '726E286E756C6C3D3D723F766F696420303A722E636F6E7374727563746F7229213D3D752626286E756C6C3D3D3D286C3D6E756C6C3D3D723F766F696420303A722E4F297C7C766F696420303D3D3D6C7C7C6C2E63616C6C28722C2131292C766F696420'; wwv_flow_api.g_varchar2_table(152) := '303D3D3D753F723D766F696420303A28723D6E657720752874292C722E5428742C732C6529292C766F69642030213D3D653F286E756C6C213D3D286E3D28683D73292ECEA369292626766F69642030213D3D6E3F6E3A682ECEA3693D5B5D295B655D3D72'; wwv_flow_api.g_varchar2_table(153) := '3A732ECEA36F3D72292C766F69642030213D3D72262628693D6C69745F68746D6C5F5328742C722E5328742C692E76616C756573292C722C6529292C697D636C617373206B7B636F6E7374727563746F7228742C69297B746869732E6C3D5B5D2C746869'; wwv_flow_api.g_varchar2_table(154) := '732E4E3D766F696420302C746869732E443D742C746869732E4D3D697D752874297B76617220693B636F6E73747B656C3A7B636F6E74656E743A737D2C70617274733A657D3D746869732E442C6F3D286E756C6C213D3D28693D6E756C6C3D3D743F766F'; wwv_flow_api.g_varchar2_table(155) := '696420303A742E6372656174696F6E53636F7065292626766F69642030213D3D693F693A6C69745F68746D6C5F75292E696D706F72744E6F646528732C2130293B452E63757272656E744E6F64653D6F3B6C6574206C3D452E6E6578744E6F646528292C'; wwv_flow_api.g_varchar2_table(156) := '6E3D302C683D302C723D655B305D3B666F72283B766F69642030213D3D723B297B6966286E3D3D3D722E696E646578297B6C657420693B323D3D3D722E747970653F693D6E65772043286C2C6C2E6E6578745369626C696E672C746869732C74293A313D'; wwv_flow_api.g_varchar2_table(157) := '3D3D722E747970653F693D6E657720722E63746F72286C2C722E6E616D652C722E737472696E67732C746869732C74293A363D3D3D722E74797065262628693D6E6577207A286C2C746869732C7429292C746869732E6C2E707573682869292C723D655B'; wwv_flow_api.g_varchar2_table(158) := '2B2B685D7D6E213D3D286E756C6C3D3D723F766F696420303A722E696E646578292626286C3D452E6E6578744E6F646528292C6E2B2B297D72657475726E206F7D762874297B6C657420693D303B666F7228636F6E73742073206F6620746869732E6C29'; wwv_flow_api.g_varchar2_table(159) := '766F69642030213D3D73262628766F69642030213D3D732E737472696E67733F28732E4928742C732C69292C692B3D732E737472696E67732E6C656E6774682D32293A732E4928745B695D29292C692B2B7D7D636C61737320437B636F6E737472756374'; wwv_flow_api.g_varchar2_table(160) := '6F7228742C692C732C65297B746869732E747970653D322C746869732E4E3D766F696420302C746869732E413D742C746869732E423D692C746869732E4D3D732C746869732E6F7074696F6E733D657D736574436F6E6E65637465642874297B76617220'; wwv_flow_api.g_varchar2_table(161) := '693B6E756C6C3D3D3D28693D746869732E50297C7C766F696420303D3D3D697C7C692E63616C6C28746869732C74297D67657420706172656E744E6F646528297B72657475726E20746869732E412E706172656E744E6F64657D6765742073746172744E'; wwv_flow_api.g_varchar2_table(162) := '6F646528297B72657475726E20746869732E417D67657420656E644E6F646528297B72657475726E20746869732E427D4928742C693D74686973297B743D6C69745F68746D6C5F5328746869732C742C69292C642874293F743D3D3D417C7C6E756C6C3D'; wwv_flow_api.g_varchar2_table(163) := '3D747C7C22223D3D3D743F28746869732E48213D3D412626746869732E5228292C746869732E483D41293A74213D3D746869732E48262674213D3D772626746869732E6D2874293A766F69642030213D3D742E5F246C697454797065243F746869732E5F'; wwv_flow_api.g_varchar2_table(164) := '2874293A766F69642030213D3D742E6E6F6465547970653F746869732E242874293A6C69745F68746D6C5F612874293F746869732E672874293A746869732E6D2874297D6B28742C693D746869732E42297B72657475726E20746869732E412E70617265'; wwv_flow_api.g_varchar2_table(165) := '6E744E6F64652E696E736572744265666F726528742C69297D242874297B746869732E48213D3D74262628746869732E5228292C746869732E483D746869732E6B287429297D6D2874297B636F6E737420693D746869732E412E6E6578745369626C696E'; wwv_flow_api.g_varchar2_table(166) := '673B6E756C6C213D3D692626333D3D3D692E6E6F6465547970652626286E756C6C3D3D3D746869732E423F6E756C6C3D3D3D692E6E6578745369626C696E673A693D3D3D746869732E422E70726576696F75735369626C696E67293F692E646174613D74'; wwv_flow_api.g_varchar2_table(167) := '3A746869732E24286C69745F68746D6C5F752E637265617465546578744E6F6465287429292C746869732E483D747D5F2874297B76617220693B636F6E73747B76616C7565733A732C5F246C697454797065243A657D3D742C6F3D226E756D626572223D'; wwv_flow_api.g_varchar2_table(168) := '3D747970656F6620653F746869732E432874293A28766F696420303D3D3D652E656C262628652E656C3D4E2E637265617465456C656D656E7428652E682C746869732E6F7074696F6E7329292C65293B696628286E756C6C3D3D3D28693D746869732E48'; wwv_flow_api.g_varchar2_table(169) := '297C7C766F696420303D3D3D693F766F696420303A692E44293D3D3D6F29746869732E482E762873293B656C73657B636F6E737420743D6E6577206B286F2C74686973292C693D742E7528746869732E6F7074696F6E73293B742E762873292C74686973'; wwv_flow_api.g_varchar2_table(170) := '2E242869292C746869732E483D747D7D432874297B6C657420693D502E67657428742E737472696E6773293B72657475726E20766F696420303D3D3D692626502E73657428742E737472696E67732C693D6E6577204E287429292C697D672874297B7628'; wwv_flow_api.g_varchar2_table(171) := '746869732E48297C7C28746869732E483D5B5D2C746869732E522829293B636F6E737420693D746869732E483B6C657420732C653D303B666F7228636F6E7374206F206F66207429653D3D3D692E6C656E6774683F692E7075736828733D6E6577204328'; wwv_flow_api.g_varchar2_table(172) := '746869732E6B28632829292C746869732E6B28632829292C746869732C746869732E6F7074696F6E7329293A733D695B655D2C732E49286F292C652B2B3B653C692E6C656E677468262628746869732E5228732626732E422E6E6578745369626C696E67'; wwv_flow_api.g_varchar2_table(173) := '2C65292C692E6C656E6774683D65297D5228743D746869732E412E6E6578745369626C696E672C69297B76617220733B666F72286E756C6C3D3D3D28733D746869732E50297C7C766F696420303D3D3D737C7C732E63616C6C28746869732C21312C2130'; wwv_flow_api.g_varchar2_table(174) := '2C69293B74262674213D3D746869732E423B297B636F6E737420693D742E6E6578745369626C696E673B742E72656D6F766528292C743D697D7D7D636C61737320487B636F6E7374727563746F7228742C692C732C652C6F297B746869732E747970653D'; wwv_flow_api.g_varchar2_table(175) := '312C746869732E483D412C746869732E4E3D766F696420302C746869732E563D766F696420302C746869732E656C656D656E743D742C746869732E6E616D653D692C746869732E4D3D652C746869732E6F7074696F6E733D6F2C732E6C656E6774683E32'; wwv_flow_api.g_varchar2_table(176) := '7C7C2222213D3D735B305D7C7C2222213D3D735B315D3F28746869732E483D417272617928732E6C656E6774682D31292E66696C6C2841292C746869732E737472696E67733D73293A746869732E483D417D676574207461674E616D6528297B72657475'; wwv_flow_api.g_varchar2_table(177) := '726E20746869732E656C656D656E742E7461674E616D657D4928742C693D746869732C732C65297B636F6E7374206F3D746869732E737472696E67733B6C6574206C3D21313B696628766F696420303D3D3D6F29743D6C69745F68746D6C5F5328746869'; wwv_flow_api.g_varchar2_table(178) := '732C742C692C30292C6C3D21642874297C7C74213D3D746869732E48262674213D3D772C6C262628746869732E483D74293B656C73657B636F6E737420653D743B6C6574206E2C683B666F7228743D6F5B305D2C6E3D303B6E3C6F2E6C656E6774682D31'; wwv_flow_api.g_varchar2_table(179) := '3B6E2B2B29683D6C69745F68746D6C5F5328746869732C655B732B6E5D2C692C6E292C683D3D3D77262628683D746869732E485B6E5D292C6C7C7C286C3D21642868297C7C68213D3D746869732E485B6E5D292C683D3D3D413F743D413A74213D3D4126'; wwv_flow_api.g_varchar2_table(180) := '2628742B3D286E756C6C213D683F683A2222292B6F5B6E2B315D292C746869732E485B6E5D3D687D6C262621652626746869732E572874297D572874297B743D3D3D413F746869732E656C656D656E742E72656D6F766541747472696275746528746869'; wwv_flow_api.g_varchar2_table(181) := '732E6E616D65293A746869732E656C656D656E742E73657441747472696275746528746869732E6E616D652C6E756C6C213D743F743A2222297D7D636C617373204920657874656E647320487B636F6E7374727563746F7228297B7375706572282E2E2E'; wwv_flow_api.g_varchar2_table(182) := '617267756D656E7473292C746869732E747970653D337D572874297B746869732E656C656D656E745B746869732E6E616D655D3D743D3D3D413F766F696420303A747D7D636C617373204C20657874656E647320487B636F6E7374727563746F7228297B'; wwv_flow_api.g_varchar2_table(183) := '7375706572282E2E2E617267756D656E7473292C746869732E747970653D347D572874297B74262674213D3D413F746869732E656C656D656E742E73657441747472696275746528746869732E6E616D652C2222293A746869732E656C656D656E742E72'; wwv_flow_api.g_varchar2_table(184) := '656D6F766541747472696275746528746869732E6E616D65297D7D636C617373205220657874656E647320487B636F6E7374727563746F7228297B7375706572282E2E2E617267756D656E7473292C746869732E747970653D357D4928742C693D746869'; wwv_flow_api.g_varchar2_table(185) := '73297B76617220733B69662828743D6E756C6C213D3D28733D6C69745F68746D6C5F5328746869732C742C692C3029292626766F69642030213D3D733F733A41293D3D3D772972657475726E3B636F6E737420653D746869732E482C6F3D743D3D3D4126'; wwv_flow_api.g_varchar2_table(186) := '2665213D3D417C7C742E63617074757265213D3D652E636170747572657C7C742E6F6E6365213D3D652E6F6E63657C7C742E70617373697665213D3D652E706173736976652C6C3D74213D3D41262628653D3D3D417C7C6F293B6F2626746869732E656C'; wwv_flow_api.g_varchar2_table(187) := '656D656E742E72656D6F76654576656E744C697374656E657228746869732E6E616D652C746869732C65292C6C2626746869732E656C656D656E742E6164644576656E744C697374656E657228746869732E6E616D652C746869732C74292C746869732E'; wwv_flow_api.g_varchar2_table(188) := '483D747D68616E646C654576656E742874297B76617220692C733B2266756E6374696F6E223D3D747970656F6620746869732E483F746869732E482E63616C6C286E756C6C213D3D28733D6E756C6C3D3D3D28693D746869732E6F7074696F6E73297C7C'; wwv_flow_api.g_varchar2_table(189) := '766F696420303D3D3D693F766F696420303A692E686F7374292626766F69642030213D3D733F733A746869732E656C656D656E742C74293A746869732E482E68616E646C654576656E742874297D7D636C617373207A7B636F6E7374727563746F722874'; wwv_flow_api.g_varchar2_table(190) := '2C692C73297B746869732E656C656D656E743D742C746869732E747970653D362C746869732E4E3D766F696420302C746869732E563D766F696420302C746869732E4D3D692C746869732E6F7074696F6E733D737D492874297B6C69745F68746D6C5F53'; wwv_flow_api.g_varchar2_table(191) := '28746869732C74297D7D636F6E7374205A3D7B5A3A22246C697424222C553A6C69745F68746D6C5F6E2C593A6C69745F68746D6C5F682C713A312C583A4D2C74743A6B2C69743A6C69745F68746D6C5F612C73743A6C69745F68746D6C5F532C65743A43'; wwv_flow_api.g_varchar2_table(192) := '2C6F743A482C6E743A4C2C72743A522C6C743A492C68743A7A7D3B6E756C6C3D3D3D286C69745F68746D6C5F693D286C69745F68746D6C5F743D676C6F62616C54686973292E6C697448746D6C506C6174666F726D537570706F7274297C7C766F696420'; wwv_flow_api.g_varchar2_table(193) := '303D3D3D6C69745F68746D6C5F697C7C6C69745F68746D6C5F692E63616C6C286C69745F68746D6C5F742C4E2C43292C286E756C6C213D3D286C69745F68746D6C5F733D286C69745F68746D6C5F653D676C6F62616C54686973292E6C697448746D6C56'; wwv_flow_api.g_varchar2_table(194) := '657273696F6E73292626766F69642030213D3D6C69745F68746D6C5F733F6C69745F68746D6C5F733A6C69745F68746D6C5F652E6C697448746D6C56657273696F6E733D5B5D292E707573682822322E302E302D72632E3322293B0A2F2F2320736F7572'; wwv_flow_api.g_varchar2_table(195) := '63654D617070696E6755524C3D6C69742D68746D6C2E6A732E6D61700A0A3B2F2F20434F4E434154454E41544544204D4F44554C453A202E2F6E6F64655F6D6F64756C65732F6C69742D656C656D656E742F6C69742D656C656D656E742E6A730A0A2F2A'; wwv_flow_api.g_varchar2_table(196) := '2A0A202A20406C6963656E73650A202A20436F70797269676874203230313720476F6F676C65204C4C430A202A20535044582D4C6963656E73652D4964656E7469666965723A204253442D332D436C617573650A202A2F766172206C69745F656C656D65'; wwv_flow_api.g_varchar2_table(197) := '6E745F692C6C69745F656C656D656E745F6C2C6C69745F656C656D656E745F6F2C6C69745F656C656D656E745F732C6C69745F656C656D656E745F6E2C6C69745F656C656D656E745F613B636F6E7374206C69745F656C656D656E745F633D282F2A2075'; wwv_flow_api.g_varchar2_table(198) := '6E7573656420707572652065787072657373696F6E206F72207375706572202A2F206E756C6C20262620287429293B286E756C6C213D3D286C69745F656C656D656E745F693D286C69745F656C656D656E745F613D676C6F62616C54686973292E6C6974'; wwv_flow_api.g_varchar2_table(199) := '456C656D656E7456657273696F6E73292626766F69642030213D3D6C69745F656C656D656E745F693F6C69745F656C656D656E745F693A6C69745F656C656D656E745F612E6C6974456C656D656E7456657273696F6E733D5B5D292E707573682822332E'; wwv_flow_api.g_varchar2_table(200) := '302E302D72632E3222293B636C617373206C69745F656C656D656E745F6820657874656E647320617B636F6E7374727563746F7228297B7375706572282E2E2E617267756D656E7473292C746869732E72656E6465724F7074696F6E733D7B686F73743A'; wwv_flow_api.g_varchar2_table(201) := '746869737D2C746869732ECEA6743D766F696420307D63726561746552656E646572526F6F7428297B76617220742C653B636F6E737420723D73757065722E63726561746552656E646572526F6F7428293B72657475726E206E756C6C213D3D28743D28'; wwv_flow_api.g_varchar2_table(202) := '653D746869732E72656E6465724F7074696F6E73292E72656E6465724265666F7265292626766F69642030213D3D747C7C28652E72656E6465724265666F72653D722E66697273744368696C64292C727D7570646174652874297B636F6E737420723D74'; wwv_flow_api.g_varchar2_table(203) := '6869732E72656E64657228293B73757065722E7570646174652874292C746869732ECEA6743D5628722C746869732E72656E646572526F6F742C746869732E72656E6465724F7074696F6E73297D636F6E6E656374656443616C6C6261636B28297B7661'; wwv_flow_api.g_varchar2_table(204) := '7220743B73757065722E636F6E6E656374656443616C6C6261636B28292C6E756C6C3D3D3D28743D746869732ECEA674297C7C766F696420303D3D3D747C7C742E736574436F6E6E6563746564282130297D646973636F6E6E656374656443616C6C6261'; wwv_flow_api.g_varchar2_table(205) := '636B28297B76617220743B73757065722E646973636F6E6E656374656443616C6C6261636B28292C6E756C6C3D3D3D28743D746869732ECEA674297C7C766F696420303D3D3D747C7C742E736574436F6E6E6563746564282131297D72656E6465722829'; wwv_flow_api.g_varchar2_table(206) := '7B72657475726E20777D7D6C69745F656C656D656E745F682E66696E616C697A65643D21302C6C69745F656C656D656E745F682E5F246C6974456C656D656E74243D21302C6E756C6C3D3D3D286C69745F656C656D656E745F6F3D286C69745F656C656D'; wwv_flow_api.g_varchar2_table(207) := '656E745F6C3D676C6F62616C54686973292E6C6974456C656D656E7448796472617465537570706F7274297C7C766F696420303D3D3D6C69745F656C656D656E745F6F7C7C6C69745F656C656D656E745F6F2E63616C6C286C69745F656C656D656E745F'; wwv_flow_api.g_varchar2_table(208) := '6C2C7B4C6974456C656D656E743A6C69745F656C656D656E745F687D292C6E756C6C3D3D3D286C69745F656C656D656E745F6E3D286C69745F656C656D656E745F733D676C6F62616C54686973292E6C6974456C656D656E74506C6174666F726D537570'; wwv_flow_api.g_varchar2_table(209) := '706F7274297C7C766F696420303D3D3D6C69745F656C656D656E745F6E7C7C6C69745F656C656D656E745F6E2E63616C6C286C69745F656C656D656E745F732C7B4C6974456C656D656E743A6C69745F656C656D656E745F687D293B636F6E7374206C69'; wwv_flow_api.g_varchar2_table(210) := '745F656C656D656E745F753D7B4B3A28742C652C72293D3E7B742E4B28652C72297D2C4C3A743D3E742E4C7D3B0A2F2F2320736F757263654D617070696E6755524C3D6C69742D656C656D656E742E6A732E6D61700A0A3B2F2F20434F4E434154454E41'; wwv_flow_api.g_varchar2_table(211) := '544544204D4F44554C453A202E2F6E6F64655F6D6F64756C65732F6C69742F696E6465782E6A730A0A2F2F2320736F757263654D617070696E6755524C3D696E6465782E6A732E6D61700A0A3B2F2F20434F4E434154454E41544544204D4F44554C453A'; wwv_flow_api.g_varchar2_table(212) := '202E2F6E6F64655F6D6F64756C65732F406C69742F72656163746976652D656C656D656E742F6465636F7261746F72732F637573746F6D2D656C656D656E742E6A730A2F2A2A0A202A20406C6963656E73650A202A20436F707972696768742032303137'; wwv_flow_api.g_varchar2_table(213) := '20476F6F676C65204C4C430A202A20535044582D4C6963656E73652D4964656E7469666965723A204253442D332D436C617573650A202A2F0A636F6E737420637573746F6D5F656C656D656E745F6E3D6E3D3E653D3E2266756E6374696F6E223D3D7479'; wwv_flow_api.g_varchar2_table(214) := '70656F6620653F28286E2C65293D3E2877696E646F772E637573746F6D456C656D656E74732E646566696E65286E2C65292C652929286E2C65293A28286E2C65293D3E7B636F6E73747B6B696E643A742C656C656D656E74733A697D3D653B7265747572'; wwv_flow_api.g_varchar2_table(215) := '6E7B6B696E643A742C656C656D656E74733A692C66696E69736865722865297B77696E646F772E637573746F6D456C656D656E74732E646566696E65286E2C65297D7D7D29286E2C65293B0A2F2F2320736F757263654D617070696E6755524C3D637573'; wwv_flow_api.g_varchar2_table(216) := '746F6D2D656C656D656E742E6A732E6D61700A0A3B2F2F20434F4E434154454E41544544204D4F44554C453A202E2F6E6F64655F6D6F64756C65732F406C69742F72656163746976652D656C656D656E742F6465636F7261746F72732F70726F70657274'; wwv_flow_api.g_varchar2_table(217) := '792E6A730A2F2A2A0A202A20406C6963656E73650A202A20436F70797269676874203230313720476F6F676C65204C4C430A202A20535044582D4C6963656E73652D4964656E7469666965723A204253442D332D436C617573650A202A2F0A636F6E7374'; wwv_flow_api.g_varchar2_table(218) := '2070726F70657274795F693D28692C65293D3E226D6574686F64223D3D3D652E6B696E642626652E64657363726970746F72262621282276616C756522696E20652E64657363726970746F72293F7B2E2E2E652C66696E6973686572286E297B6E2E6372'; wwv_flow_api.g_varchar2_table(219) := '6561746550726F706572747928652E6B65792C69297D7D3A7B6B696E643A226669656C64222C6B65793A53796D626F6C28292C706C6163656D656E743A226F776E222C64657363726970746F723A7B7D2C6F726967696E616C4B65793A652E6B65792C69'; wwv_flow_api.g_varchar2_table(220) := '6E697469616C697A657228297B2266756E6374696F6E223D3D747970656F6620652E696E697469616C697A6572262628746869735B652E6B65795D3D652E696E697469616C697A65722E63616C6C287468697329297D2C66696E6973686572286E297B6E'; wwv_flow_api.g_varchar2_table(221) := '2E63726561746550726F706572747928652E6B65792C69297D7D3B66756E6374696F6E2070726F70657274795F652865297B72657475726E286E2C74293D3E766F69642030213D3D743F2828692C652C6E293D3E7B652E636F6E7374727563746F722E63'; wwv_flow_api.g_varchar2_table(222) := '726561746550726F7065727479286E2C69297D2928652C6E2C74293A70726F70657274795F6928652C6E297D0A2F2F2320736F757263654D617070696E6755524C3D70726F70657274792E6A732E6D61700A0A3B2F2F20434F4E434154454E4154454420'; wwv_flow_api.g_varchar2_table(223) := '4D4F44554C453A202E2F6E6F64655F6D6F64756C65732F406C69742F72656163746976652D656C656D656E742F6465636F7261746F72732F71756572792D61737369676E65642D6E6F6465732E6A730A0A2F2A2A0A202A20406C6963656E73650A202A20'; wwv_flow_api.g_varchar2_table(224) := '436F70797269676874203230313720476F6F676C65204C4C430A202A20535044582D4C6963656E73652D4964656E7469666965723A204253442D332D436C617573650A202A2F0A636F6E73742071756572795F61737369676E65645F6E6F6465735F743D'; wwv_flow_api.g_varchar2_table(225) := '456C656D656E742E70726F746F747970652C71756572795F61737369676E65645F6E6F6465735F6E3D71756572795F61737369676E65645F6E6F6465735F742E6D734D61746368657353656C6563746F727C7C71756572795F61737369676E65645F6E6F'; wwv_flow_api.g_varchar2_table(226) := '6465735F742E7765626B69744D61746368657353656C6563746F723B66756E6374696F6E2071756572795F61737369676E65645F6E6F6465735F6F28743D22222C6F3D21312C723D2222297B72657475726E2065287B64657363726970746F723A653D3E'; wwv_flow_api.g_varchar2_table(227) := '287B67657428297B76617220652C6C3B636F6E737420693D22736C6F74222B28743F605B6E616D653D247B747D5D603A223A6E6F74285B6E616D655D2922293B6C657420613D6E756C6C3D3D3D286C3D6E756C6C3D3D3D28653D746869732E72656E6465'; wwv_flow_api.g_varchar2_table(228) := '72526F6F74297C7C766F696420303D3D3D653F766F696420303A652E717565727953656C6563746F72286929297C7C766F696420303D3D3D6C3F766F696420303A6C2E61737369676E65644E6F646573287B666C617474656E3A6F7D293B72657475726E'; wwv_flow_api.g_varchar2_table(229) := '2061262672262628613D612E66696C7465722828653D3E652E6E6F6465547970653D3D3D4E6F64652E454C454D454E545F4E4F4445262628652E6D6174636865733F652E6D6174636865732872293A71756572795F61737369676E65645F6E6F6465735F'; wwv_flow_api.g_varchar2_table(230) := '6E2E63616C6C28652C7229292929292C617D2C656E756D657261626C653A21302C636F6E666967757261626C653A21307D297D297D0A2F2F2320736F757263654D617070696E6755524C3D71756572792D61737369676E65642D6E6F6465732E6A732E6D'; wwv_flow_api.g_varchar2_table(231) := '61700A0A3B2F2F20434F4E434154454E41544544204D4F44554C453A202E2F6E6F64655F6D6F64756C65732F6C69742F6465636F7261746F72732E6A730A0A2F2F2320736F757263654D617070696E6755524C3D6465636F7261746F72732E6A732E6D61'; wwv_flow_api.g_varchar2_table(232) := '700A0A2F2F2045585445524E414C204D4F44554C453A202E2F7372632F617065782F696E6974526567696F6E2E6A730A76617220696E6974526567696F6E203D205F5F7765627061636B5F726571756972655F5F28383634293B0A3B2F2F20434F4E4341'; wwv_flow_api.g_varchar2_table(233) := '54454E41544544204D4F44554C453A202E2F7372632F696E6465782E6A730A66756E6374696F6E205F747970656F66286F626A29207B202240626162656C2F68656C70657273202D20747970656F66223B2069662028747970656F662053796D626F6C20'; wwv_flow_api.g_varchar2_table(234) := '3D3D3D202266756E6374696F6E2220262620747970656F662053796D626F6C2E6974657261746F72203D3D3D202273796D626F6C2229207B205F747970656F66203D2066756E6374696F6E205F747970656F66286F626A29207B2072657475726E207479'; wwv_flow_api.g_varchar2_table(235) := '70656F66206F626A3B207D3B207D20656C7365207B205F747970656F66203D2066756E6374696F6E205F747970656F66286F626A29207B2072657475726E206F626A20262620747970656F662053796D626F6C203D3D3D202266756E6374696F6E222026'; wwv_flow_api.g_varchar2_table(236) := '26206F626A2E636F6E7374727563746F72203D3D3D2053796D626F6C202626206F626A20213D3D2053796D626F6C2E70726F746F74797065203F202273796D626F6C22203A20747970656F66206F626A3B207D3B207D2072657475726E205F747970656F'; wwv_flow_api.g_varchar2_table(237) := '66286F626A293B207D0A0A766172205F74656D706C6174654F626A6563742C205F74656D706C6174654F626A656374323B0A0A66756E6374696F6E205F74616767656454656D706C6174654C69746572616C28737472696E67732C2072617729207B2069'; wwv_flow_api.g_varchar2_table(238) := '6620282172617729207B20726177203D20737472696E67732E736C6963652830293B207D2072657475726E204F626A6563742E667265657A65284F626A6563742E646566696E6550726F7065727469657328737472696E67732C207B207261773A207B20'; wwv_flow_api.g_varchar2_table(239) := '76616C75653A204F626A6563742E667265657A652872617729207D207D29293B207D0A0A66756E6374696F6E205F636C61737343616C6C436865636B28696E7374616E63652C20436F6E7374727563746F7229207B20696620282128696E7374616E6365'; wwv_flow_api.g_varchar2_table(240) := '20696E7374616E63656F6620436F6E7374727563746F722929207B207468726F77206E657720547970654572726F72282243616E6E6F742063616C6C206120636C61737320617320612066756E6374696F6E22293B207D207D0A0A66756E6374696F6E20'; wwv_flow_api.g_varchar2_table(241) := '5F696E68657269747328737562436C6173732C207375706572436C61737329207B2069662028747970656F66207375706572436C61737320213D3D202266756E6374696F6E22202626207375706572436C61737320213D3D206E756C6C29207B20746872'; wwv_flow_api.g_varchar2_table(242) := '6F77206E657720547970654572726F72282253757065722065787072657373696F6E206D75737420656974686572206265206E756C6C206F7220612066756E6374696F6E22293B207D20737562436C6173732E70726F746F74797065203D204F626A6563'; wwv_flow_api.g_varchar2_table(243) := '742E637265617465287375706572436C617373202626207375706572436C6173732E70726F746F747970652C207B20636F6E7374727563746F723A207B2076616C75653A20737562436C6173732C207772697461626C653A20747275652C20636F6E6669'; wwv_flow_api.g_varchar2_table(244) := '67757261626C653A2074727565207D207D293B20696620287375706572436C61737329205F73657450726F746F747970654F6628737562436C6173732C207375706572436C617373293B207D0A0A66756E6374696F6E205F73657450726F746F74797065'; wwv_flow_api.g_varchar2_table(245) := '4F66286F2C207029207B205F73657450726F746F747970654F66203D204F626A6563742E73657450726F746F747970654F66207C7C2066756E6374696F6E205F73657450726F746F747970654F66286F2C207029207B206F2E5F5F70726F746F5F5F203D'; wwv_flow_api.g_varchar2_table(246) := '20703B2072657475726E206F3B207D3B2072657475726E205F73657450726F746F747970654F66286F2C2070293B207D0A0A66756E6374696F6E205F6372656174655375706572284465726976656429207B20766172206861734E61746976655265666C'; wwv_flow_api.g_varchar2_table(247) := '656374436F6E737472756374203D205F69734E61746976655265666C656374436F6E73747275637428293B2072657475726E2066756E6374696F6E205F6372656174655375706572496E7465726E616C2829207B20766172205375706572203D205F6765'; wwv_flow_api.g_varchar2_table(248) := '7450726F746F747970654F662844657269766564292C20726573756C743B20696620286861734E61746976655265666C656374436F6E73747275637429207B20766172204E6577546172676574203D205F67657450726F746F747970654F662874686973'; wwv_flow_api.g_varchar2_table(249) := '292E636F6E7374727563746F723B20726573756C74203D205265666C6563742E636F6E7374727563742853757065722C20617267756D656E74732C204E6577546172676574293B207D20656C7365207B20726573756C74203D2053757065722E6170706C'; wwv_flow_api.g_varchar2_table(250) := '7928746869732C20617267756D656E7473293B207D2072657475726E205F706F737369626C65436F6E7374727563746F7252657475726E28746869732C20726573756C74293B207D3B207D0A0A66756E6374696F6E205F706F737369626C65436F6E7374'; wwv_flow_api.g_varchar2_table(251) := '727563746F7252657475726E2873656C662C2063616C6C29207B206966202863616C6C20262620285F747970656F662863616C6C29203D3D3D20226F626A65637422207C7C20747970656F662063616C6C203D3D3D202266756E6374696F6E222929207B'; wwv_flow_api.g_varchar2_table(252) := '2072657475726E2063616C6C3B207D2072657475726E205F61737365727454686973496E697469616C697A65642873656C66293B207D0A0A66756E6374696F6E205F61737365727454686973496E697469616C697A65642873656C6629207B2069662028'; wwv_flow_api.g_varchar2_table(253) := '73656C66203D3D3D20766F6964203029207B207468726F77206E6577205265666572656E63654572726F72282274686973206861736E2774206265656E20696E697469616C69736564202D2073757065722829206861736E2774206265656E2063616C6C'; wwv_flow_api.g_varchar2_table(254) := '656422293B207D2072657475726E2073656C663B207D0A0A66756E6374696F6E205F69734E61746976655265666C656374436F6E7374727563742829207B2069662028747970656F66205265666C656374203D3D3D2022756E646566696E656422207C7C'; wwv_flow_api.g_varchar2_table(255) := '20215265666C6563742E636F6E737472756374292072657475726E2066616C73653B20696620285265666C6563742E636F6E7374727563742E7368616D292072657475726E2066616C73653B2069662028747970656F662050726F7879203D3D3D202266'; wwv_flow_api.g_varchar2_table(256) := '756E6374696F6E22292072657475726E20747275653B20747279207B20426F6F6C65616E2E70726F746F747970652E76616C75654F662E63616C6C285265666C6563742E636F6E73747275637428426F6F6C65616E2C205B5D2C2066756E6374696F6E20'; wwv_flow_api.g_varchar2_table(257) := '2829207B7D29293B2072657475726E20747275653B207D20636174636820286529207B2072657475726E2066616C73653B207D207D0A0A66756E6374696F6E205F6465636F72617465286465636F7261746F72732C20666163746F72792C207375706572'; wwv_flow_api.g_varchar2_table(258) := '436C6173732C206D6978696E7329207B2076617220617069203D205F6765744465636F7261746F727341706928293B20696620286D6978696E7329207B20666F7220287661722069203D20303B2069203C206D6978696E732E6C656E6774683B20692B2B'; wwv_flow_api.g_varchar2_table(259) := '29207B20617069203D206D6978696E735B695D28617069293B207D207D207661722072203D20666163746F72792866756E6374696F6E20696E697469616C697A65284F29207B206170692E696E697469616C697A65496E7374616E6365456C656D656E74'; wwv_flow_api.g_varchar2_table(260) := '73284F2C206465636F72617465642E656C656D656E7473293B207D2C207375706572436C617373293B20766172206465636F7261746564203D206170692E6465636F72617465436C617373285F636F616C65736365436C617373456C656D656E74732872'; wwv_flow_api.g_varchar2_table(261) := '2E642E6D6170285F637265617465456C656D656E7444657363726970746F7229292C206465636F7261746F7273293B206170692E696E697469616C697A65436C617373456C656D656E747328722E462C206465636F72617465642E656C656D656E747329'; wwv_flow_api.g_varchar2_table(262) := '3B2072657475726E206170692E72756E436C61737346696E69736865727328722E462C206465636F72617465642E66696E697368657273293B207D0A0A66756E6374696F6E205F6765744465636F7261746F72734170692829207B205F6765744465636F'; wwv_flow_api.g_varchar2_table(263) := '7261746F7273417069203D2066756E6374696F6E205F6765744465636F7261746F72734170692829207B2072657475726E206170693B207D3B2076617220617069203D207B20656C656D656E7473446566696E6974696F6E4F726465723A205B5B226D65'; wwv_flow_api.g_varchar2_table(264) := '74686F64225D2C205B226669656C64225D5D2C20696E697469616C697A65496E7374616E6365456C656D656E74733A2066756E6374696F6E20696E697469616C697A65496E7374616E6365456C656D656E7473284F2C20656C656D656E747329207B205B'; wwv_flow_api.g_varchar2_table(265) := '226D6574686F64222C20226669656C64225D2E666F72456163682866756E6374696F6E20286B696E6429207B20656C656D656E74732E666F72456163682866756E6374696F6E2028656C656D656E7429207B2069662028656C656D656E742E6B696E6420'; wwv_flow_api.g_varchar2_table(266) := '3D3D3D206B696E6420262620656C656D656E742E706C6163656D656E74203D3D3D20226F776E2229207B20746869732E646566696E65436C617373456C656D656E74284F2C20656C656D656E74293B207D207D2C2074686973293B207D2C207468697329'; wwv_flow_api.g_varchar2_table(267) := '3B207D2C20696E697469616C697A65436C617373456C656D656E74733A2066756E6374696F6E20696E697469616C697A65436C617373456C656D656E747328462C20656C656D656E747329207B207661722070726F746F203D20462E70726F746F747970'; wwv_flow_api.g_varchar2_table(268) := '653B205B226D6574686F64222C20226669656C64225D2E666F72456163682866756E6374696F6E20286B696E6429207B20656C656D656E74732E666F72456163682866756E6374696F6E2028656C656D656E7429207B2076617220706C6163656D656E74'; wwv_flow_api.g_varchar2_table(269) := '203D20656C656D656E742E706C6163656D656E743B2069662028656C656D656E742E6B696E64203D3D3D206B696E642026262028706C6163656D656E74203D3D3D202273746174696322207C7C20706C6163656D656E74203D3D3D202270726F746F7479'; wwv_flow_api.g_varchar2_table(270) := '7065222929207B20766172207265636569766572203D20706C6163656D656E74203D3D3D202273746174696322203F2046203A2070726F746F3B20746869732E646566696E65436C617373456C656D656E742872656365697665722C20656C656D656E74'; wwv_flow_api.g_varchar2_table(271) := '293B207D207D2C2074686973293B207D2C2074686973293B207D2C20646566696E65436C617373456C656D656E743A2066756E6374696F6E20646566696E65436C617373456C656D656E742872656365697665722C20656C656D656E7429207B20766172'; wwv_flow_api.g_varchar2_table(272) := '2064657363726970746F72203D20656C656D656E742E64657363726970746F723B2069662028656C656D656E742E6B696E64203D3D3D20226669656C642229207B2076617220696E697469616C697A6572203D20656C656D656E742E696E697469616C69'; wwv_flow_api.g_varchar2_table(273) := '7A65723B2064657363726970746F72203D207B20656E756D657261626C653A2064657363726970746F722E656E756D657261626C652C207772697461626C653A2064657363726970746F722E7772697461626C652C20636F6E666967757261626C653A20'; wwv_flow_api.g_varchar2_table(274) := '64657363726970746F722E636F6E666967757261626C652C2076616C75653A20696E697469616C697A6572203D3D3D20766F69642030203F20766F69642030203A20696E697469616C697A65722E63616C6C28726563656976657229207D3B207D204F62'; wwv_flow_api.g_varchar2_table(275) := '6A6563742E646566696E6550726F70657274792872656365697665722C20656C656D656E742E6B65792C2064657363726970746F72293B207D2C206465636F72617465436C6173733A2066756E6374696F6E206465636F72617465436C61737328656C65'; wwv_flow_api.g_varchar2_table(276) := '6D656E74732C206465636F7261746F727329207B20766172206E6577456C656D656E7473203D205B5D3B207661722066696E697368657273203D205B5D3B2076617220706C6163656D656E7473203D207B2022737461746963223A205B5D2C2070726F74'; wwv_flow_api.g_varchar2_table(277) := '6F747970653A205B5D2C206F776E3A205B5D207D3B20656C656D656E74732E666F72456163682866756E6374696F6E2028656C656D656E7429207B20746869732E616464456C656D656E74506C6163656D656E7428656C656D656E742C20706C6163656D'; wwv_flow_api.g_varchar2_table(278) := '656E7473293B207D2C2074686973293B20656C656D656E74732E666F72456163682866756E6374696F6E2028656C656D656E7429207B2069662028215F6861734465636F7261746F727328656C656D656E7429292072657475726E206E6577456C656D65'; wwv_flow_api.g_varchar2_table(279) := '6E74732E7075736828656C656D656E74293B2076617220656C656D656E7446696E697368657273457874726173203D20746869732E6465636F72617465456C656D656E7428656C656D656E742C20706C6163656D656E7473293B206E6577456C656D656E'; wwv_flow_api.g_varchar2_table(280) := '74732E7075736828656C656D656E7446696E6973686572734578747261732E656C656D656E74293B206E6577456C656D656E74732E707573682E6170706C79286E6577456C656D656E74732C20656C656D656E7446696E6973686572734578747261732E'; wwv_flow_api.g_varchar2_table(281) := '657874726173293B2066696E6973686572732E707573682E6170706C792866696E6973686572732C20656C656D656E7446696E6973686572734578747261732E66696E697368657273293B207D2C2074686973293B2069662028216465636F7261746F72'; wwv_flow_api.g_varchar2_table(282) := '7329207B2072657475726E207B20656C656D656E74733A206E6577456C656D656E74732C2066696E6973686572733A2066696E697368657273207D3B207D2076617220726573756C74203D20746869732E6465636F72617465436F6E7374727563746F72'; wwv_flow_api.g_varchar2_table(283) := '286E6577456C656D656E74732C206465636F7261746F7273293B2066696E6973686572732E707573682E6170706C792866696E6973686572732C20726573756C742E66696E697368657273293B20726573756C742E66696E697368657273203D2066696E'; wwv_flow_api.g_varchar2_table(284) := '6973686572733B2072657475726E20726573756C743B207D2C20616464456C656D656E74506C6163656D656E743A2066756E6374696F6E20616464456C656D656E74506C6163656D656E7428656C656D656E742C20706C6163656D656E74732C2073696C'; wwv_flow_api.g_varchar2_table(285) := '656E7429207B20766172206B657973203D20706C6163656D656E74735B656C656D656E742E706C6163656D656E745D3B20696620282173696C656E74202626206B6579732E696E6465784F6628656C656D656E742E6B65792920213D3D202D3129207B20'; wwv_flow_api.g_varchar2_table(286) := '7468726F77206E657720547970654572726F7228224475706C69636174656420656C656D656E74202822202B20656C656D656E742E6B6579202B20222922293B207D206B6579732E7075736828656C656D656E742E6B6579293B207D2C206465636F7261'; wwv_flow_api.g_varchar2_table(287) := '7465456C656D656E743A2066756E6374696F6E206465636F72617465456C656D656E7428656C656D656E742C20706C6163656D656E747329207B2076617220657874726173203D205B5D3B207661722066696E697368657273203D205B5D3B20666F7220'; wwv_flow_api.g_varchar2_table(288) := '28766172206465636F7261746F7273203D20656C656D656E742E6465636F7261746F72732C2069203D206465636F7261746F72732E6C656E677468202D20313B2069203E3D20303B20692D2D29207B20766172206B657973203D20706C6163656D656E74'; wwv_flow_api.g_varchar2_table(289) := '735B656C656D656E742E706C6163656D656E745D3B206B6579732E73706C696365286B6579732E696E6465784F6628656C656D656E742E6B6579292C2031293B2076617220656C656D656E744F626A656374203D20746869732E66726F6D456C656D656E'; wwv_flow_api.g_varchar2_table(290) := '7444657363726970746F7228656C656D656E74293B2076617220656C656D656E7446696E6973686572457874726173203D20746869732E746F456C656D656E7446696E69736865724578747261732828302C206465636F7261746F72735B695D2928656C'; wwv_flow_api.g_varchar2_table(291) := '656D656E744F626A65637429207C7C20656C656D656E744F626A656374293B20656C656D656E74203D20656C656D656E7446696E69736865724578747261732E656C656D656E743B20746869732E616464456C656D656E74506C6163656D656E7428656C'; wwv_flow_api.g_varchar2_table(292) := '656D656E742C20706C6163656D656E7473293B2069662028656C656D656E7446696E69736865724578747261732E66696E697368657229207B2066696E6973686572732E7075736828656C656D656E7446696E69736865724578747261732E66696E6973'; wwv_flow_api.g_varchar2_table(293) := '686572293B207D20766172206E6577457874726173203D20656C656D656E7446696E69736865724578747261732E6578747261733B20696620286E657745787472617329207B20666F722028766172206A203D20303B206A203C206E6577457874726173'; wwv_flow_api.g_varchar2_table(294) := '2E6C656E6774683B206A2B2B29207B20746869732E616464456C656D656E74506C6163656D656E74286E65774578747261735B6A5D2C20706C6163656D656E7473293B207D206578747261732E707573682E6170706C79286578747261732C206E657745'; wwv_flow_api.g_varchar2_table(295) := '7874726173293B207D207D2072657475726E207B20656C656D656E743A20656C656D656E742C2066696E6973686572733A2066696E6973686572732C206578747261733A20657874726173207D3B207D2C206465636F72617465436F6E7374727563746F'; wwv_flow_api.g_varchar2_table(296) := '723A2066756E6374696F6E206465636F72617465436F6E7374727563746F7228656C656D656E74732C206465636F7261746F727329207B207661722066696E697368657273203D205B5D3B20666F7220287661722069203D206465636F7261746F72732E'; wwv_flow_api.g_varchar2_table(297) := '6C656E677468202D20313B2069203E3D20303B20692D2D29207B20766172206F626A203D20746869732E66726F6D436C61737344657363726970746F7228656C656D656E7473293B2076617220656C656D656E7473416E6446696E6973686572203D2074'; wwv_flow_api.g_varchar2_table(298) := '6869732E746F436C61737344657363726970746F722828302C206465636F7261746F72735B695D29286F626A29207C7C206F626A293B2069662028656C656D656E7473416E6446696E69736865722E66696E697368657220213D3D20756E646566696E65'; wwv_flow_api.g_varchar2_table(299) := '6429207B2066696E6973686572732E7075736828656C656D656E7473416E6446696E69736865722E66696E6973686572293B207D2069662028656C656D656E7473416E6446696E69736865722E656C656D656E747320213D3D20756E646566696E656429'; wwv_flow_api.g_varchar2_table(300) := '207B20656C656D656E7473203D20656C656D656E7473416E6446696E69736865722E656C656D656E74733B20666F722028766172206A203D20303B206A203C20656C656D656E74732E6C656E677468202D20313B206A2B2B29207B20666F722028766172'; wwv_flow_api.g_varchar2_table(301) := '206B203D206A202B20313B206B203C20656C656D656E74732E6C656E6774683B206B2B2B29207B2069662028656C656D656E74735B6A5D2E6B6579203D3D3D20656C656D656E74735B6B5D2E6B657920262620656C656D656E74735B6A5D2E706C616365'; wwv_flow_api.g_varchar2_table(302) := '6D656E74203D3D3D20656C656D656E74735B6B5D2E706C6163656D656E7429207B207468726F77206E657720547970654572726F7228224475706C69636174656420656C656D656E74202822202B20656C656D656E74735B6A5D2E6B6579202B20222922'; wwv_flow_api.g_varchar2_table(303) := '293B207D207D207D207D207D2072657475726E207B20656C656D656E74733A20656C656D656E74732C2066696E6973686572733A2066696E697368657273207D3B207D2C2066726F6D456C656D656E7444657363726970746F723A2066756E6374696F6E'; wwv_flow_api.g_varchar2_table(304) := '2066726F6D456C656D656E7444657363726970746F7228656C656D656E7429207B20766172206F626A203D207B206B696E643A20656C656D656E742E6B696E642C206B65793A20656C656D656E742E6B65792C20706C6163656D656E743A20656C656D65'; wwv_flow_api.g_varchar2_table(305) := '6E742E706C6163656D656E742C2064657363726970746F723A20656C656D656E742E64657363726970746F72207D3B207661722064657363203D207B2076616C75653A202244657363726970746F72222C20636F6E666967757261626C653A2074727565'; wwv_flow_api.g_varchar2_table(306) := '207D3B204F626A6563742E646566696E6550726F7065727479286F626A2C2053796D626F6C2E746F537472696E675461672C2064657363293B2069662028656C656D656E742E6B696E64203D3D3D20226669656C642229206F626A2E696E697469616C69'; wwv_flow_api.g_varchar2_table(307) := '7A6572203D20656C656D656E742E696E697469616C697A65723B2072657475726E206F626A3B207D2C20746F456C656D656E7444657363726970746F72733A2066756E6374696F6E20746F456C656D656E7444657363726970746F727328656C656D656E'; wwv_flow_api.g_varchar2_table(308) := '744F626A6563747329207B2069662028656C656D656E744F626A65637473203D3D3D20756E646566696E6564292072657475726E3B2072657475726E205F746F417272617928656C656D656E744F626A65637473292E6D61702866756E6374696F6E2028'; wwv_flow_api.g_varchar2_table(309) := '656C656D656E744F626A65637429207B2076617220656C656D656E74203D20746869732E746F456C656D656E7444657363726970746F7228656C656D656E744F626A656374293B20746869732E646973616C6C6F7750726F706572747928656C656D656E'; wwv_flow_api.g_varchar2_table(310) := '744F626A6563742C202266696E6973686572222C2022416E20656C656D656E742064657363726970746F7222293B20746869732E646973616C6C6F7750726F706572747928656C656D656E744F626A6563742C2022657874726173222C2022416E20656C'; wwv_flow_api.g_varchar2_table(311) := '656D656E742064657363726970746F7222293B2072657475726E20656C656D656E743B207D2C2074686973293B207D2C20746F456C656D656E7444657363726970746F723A2066756E6374696F6E20746F456C656D656E7444657363726970746F722865'; wwv_flow_api.g_varchar2_table(312) := '6C656D656E744F626A65637429207B20766172206B696E64203D20537472696E6728656C656D656E744F626A6563742E6B696E64293B20696620286B696E6420213D3D20226D6574686F6422202626206B696E6420213D3D20226669656C642229207B20'; wwv_flow_api.g_varchar2_table(313) := '7468726F77206E657720547970654572726F722827416E20656C656D656E742064657363726970746F725C2773202E6B696E642070726F7065727479206D7573742062652065697468657220226D6574686F6422206F7227202B202720226669656C6422'; wwv_flow_api.g_varchar2_table(314) := '2C206275742061206465636F7261746F72206372656174656420616E20656C656D656E742064657363726970746F72207769746827202B2027202E6B696E64202227202B206B696E64202B20272227293B207D20766172206B6579203D205F746F50726F'; wwv_flow_api.g_varchar2_table(315) := '70657274794B657928656C656D656E744F626A6563742E6B6579293B2076617220706C6163656D656E74203D20537472696E6728656C656D656E744F626A6563742E706C6163656D656E74293B2069662028706C6163656D656E7420213D3D2022737461'; wwv_flow_api.g_varchar2_table(316) := '7469632220262620706C6163656D656E7420213D3D202270726F746F747970652220262620706C6163656D656E7420213D3D20226F776E2229207B207468726F77206E657720547970654572726F722827416E20656C656D656E74206465736372697074'; wwv_flow_api.g_varchar2_table(317) := '6F725C2773202E706C6163656D656E742070726F7065727479206D757374206265206F6E65206F662022737461746963222C27202B2027202270726F746F7479706522206F7220226F776E222C206275742061206465636F7261746F7220637265617465'; wwv_flow_api.g_varchar2_table(318) := '6420616E20656C656D656E742064657363726970746F7227202B20272077697468202E706C6163656D656E74202227202B20706C6163656D656E74202B20272227293B207D207661722064657363726970746F72203D20656C656D656E744F626A656374'; wwv_flow_api.g_varchar2_table(319) := '2E64657363726970746F723B20746869732E646973616C6C6F7750726F706572747928656C656D656E744F626A6563742C2022656C656D656E7473222C2022416E20656C656D656E742064657363726970746F7222293B2076617220656C656D656E7420'; wwv_flow_api.g_varchar2_table(320) := '3D207B206B696E643A206B696E642C206B65793A206B65792C20706C6163656D656E743A20706C6163656D656E742C2064657363726970746F723A204F626A6563742E61737369676E287B7D2C2064657363726970746F7229207D3B20696620286B696E'; wwv_flow_api.g_varchar2_table(321) := '6420213D3D20226669656C642229207B20746869732E646973616C6C6F7750726F706572747928656C656D656E744F626A6563742C2022696E697469616C697A6572222C202241206D6574686F642064657363726970746F7222293B207D20656C736520'; wwv_flow_api.g_varchar2_table(322) := '7B20746869732E646973616C6C6F7750726F70657274792864657363726970746F722C2022676574222C20225468652070726F70657274792064657363726970746F72206F662061206669656C642064657363726970746F7222293B20746869732E6469'; wwv_flow_api.g_varchar2_table(323) := '73616C6C6F7750726F70657274792864657363726970746F722C2022736574222C20225468652070726F70657274792064657363726970746F72206F662061206669656C642064657363726970746F7222293B20746869732E646973616C6C6F7750726F'; wwv_flow_api.g_varchar2_table(324) := '70657274792864657363726970746F722C202276616C7565222C20225468652070726F70657274792064657363726970746F72206F662061206669656C642064657363726970746F7222293B20656C656D656E742E696E697469616C697A6572203D2065'; wwv_flow_api.g_varchar2_table(325) := '6C656D656E744F626A6563742E696E697469616C697A65723B207D2072657475726E20656C656D656E743B207D2C20746F456C656D656E7446696E69736865724578747261733A2066756E6374696F6E20746F456C656D656E7446696E69736865724578'; wwv_flow_api.g_varchar2_table(326) := '7472617328656C656D656E744F626A65637429207B2076617220656C656D656E74203D20746869732E746F456C656D656E7444657363726970746F7228656C656D656E744F626A656374293B207661722066696E6973686572203D205F6F7074696F6E61'; wwv_flow_api.g_varchar2_table(327) := '6C43616C6C61626C6550726F706572747928656C656D656E744F626A6563742C202266696E697368657222293B2076617220657874726173203D20746869732E746F456C656D656E7444657363726970746F727328656C656D656E744F626A6563742E65'; wwv_flow_api.g_varchar2_table(328) := '7874726173293B2072657475726E207B20656C656D656E743A20656C656D656E742C2066696E69736865723A2066696E69736865722C206578747261733A20657874726173207D3B207D2C2066726F6D436C61737344657363726970746F723A2066756E'; wwv_flow_api.g_varchar2_table(329) := '6374696F6E2066726F6D436C61737344657363726970746F7228656C656D656E747329207B20766172206F626A203D207B206B696E643A2022636C617373222C20656C656D656E74733A20656C656D656E74732E6D617028746869732E66726F6D456C65'; wwv_flow_api.g_varchar2_table(330) := '6D656E7444657363726970746F722C207468697329207D3B207661722064657363203D207B2076616C75653A202244657363726970746F72222C20636F6E666967757261626C653A2074727565207D3B204F626A6563742E646566696E6550726F706572'; wwv_flow_api.g_varchar2_table(331) := '7479286F626A2C2053796D626F6C2E746F537472696E675461672C2064657363293B2072657475726E206F626A3B207D2C20746F436C61737344657363726970746F723A2066756E6374696F6E20746F436C61737344657363726970746F72286F626A29'; wwv_flow_api.g_varchar2_table(332) := '207B20766172206B696E64203D20537472696E67286F626A2E6B696E64293B20696620286B696E6420213D3D2022636C6173732229207B207468726F77206E657720547970654572726F7228274120636C6173732064657363726970746F725C2773202E'; wwv_flow_api.g_varchar2_table(333) := '6B696E642070726F7065727479206D7573742062652022636C617373222C206275742061206465636F7261746F7227202B20272063726561746564206120636C6173732064657363726970746F722077697468202E6B696E64202227202B206B696E6420'; wwv_flow_api.g_varchar2_table(334) := '2B20272227293B207D20746869732E646973616C6C6F7750726F7065727479286F626A2C20226B6579222C20224120636C6173732064657363726970746F7222293B20746869732E646973616C6C6F7750726F7065727479286F626A2C2022706C616365'; wwv_flow_api.g_varchar2_table(335) := '6D656E74222C20224120636C6173732064657363726970746F7222293B20746869732E646973616C6C6F7750726F7065727479286F626A2C202264657363726970746F72222C20224120636C6173732064657363726970746F7222293B20746869732E64'; wwv_flow_api.g_varchar2_table(336) := '6973616C6C6F7750726F7065727479286F626A2C2022696E697469616C697A6572222C20224120636C6173732064657363726970746F7222293B20746869732E646973616C6C6F7750726F7065727479286F626A2C2022657874726173222C2022412063'; wwv_flow_api.g_varchar2_table(337) := '6C6173732064657363726970746F7222293B207661722066696E6973686572203D205F6F7074696F6E616C43616C6C61626C6550726F7065727479286F626A2C202266696E697368657222293B2076617220656C656D656E7473203D20746869732E746F'; wwv_flow_api.g_varchar2_table(338) := '456C656D656E7444657363726970746F7273286F626A2E656C656D656E7473293B2072657475726E207B20656C656D656E74733A20656C656D656E74732C2066696E69736865723A2066696E6973686572207D3B207D2C2072756E436C61737346696E69'; wwv_flow_api.g_varchar2_table(339) := '73686572733A2066756E6374696F6E2072756E436C61737346696E69736865727328636F6E7374727563746F722C2066696E69736865727329207B20666F7220287661722069203D20303B2069203C2066696E6973686572732E6C656E6774683B20692B'; wwv_flow_api.g_varchar2_table(340) := '2B29207B20766172206E6577436F6E7374727563746F72203D2028302C2066696E6973686572735B695D2928636F6E7374727563746F72293B20696620286E6577436F6E7374727563746F7220213D3D20756E646566696E656429207B20696620287479'; wwv_flow_api.g_varchar2_table(341) := '70656F66206E6577436F6E7374727563746F7220213D3D202266756E6374696F6E2229207B207468726F77206E657720547970654572726F72282246696E697368657273206D7573742072657475726E206120636F6E7374727563746F722E22293B207D'; wwv_flow_api.g_varchar2_table(342) := '20636F6E7374727563746F72203D206E6577436F6E7374727563746F723B207D207D2072657475726E20636F6E7374727563746F723B207D2C20646973616C6C6F7750726F70657274793A2066756E6374696F6E20646973616C6C6F7750726F70657274'; wwv_flow_api.g_varchar2_table(343) := '79286F626A2C206E616D652C206F626A6563745479706529207B20696620286F626A5B6E616D655D20213D3D20756E646566696E656429207B207468726F77206E657720547970654572726F72286F626A65637454797065202B20222063616E27742068'; wwv_flow_api.g_varchar2_table(344) := '6176652061202E22202B206E616D65202B20222070726F70657274792E22293B207D207D207D3B2072657475726E206170693B207D0A0A66756E6374696F6E205F637265617465456C656D656E7444657363726970746F722864656629207B2076617220'; wwv_flow_api.g_varchar2_table(345) := '6B6579203D205F746F50726F70657274794B6579286465662E6B6579293B207661722064657363726970746F723B20696620286465662E6B696E64203D3D3D20226D6574686F642229207B2064657363726970746F72203D207B2076616C75653A206465'; wwv_flow_api.g_varchar2_table(346) := '662E76616C75652C207772697461626C653A20747275652C20636F6E666967757261626C653A20747275652C20656E756D657261626C653A2066616C7365207D3B207D20656C736520696620286465662E6B696E64203D3D3D20226765742229207B2064'; wwv_flow_api.g_varchar2_table(347) := '657363726970746F72203D207B206765743A206465662E76616C75652C20636F6E666967757261626C653A20747275652C20656E756D657261626C653A2066616C7365207D3B207D20656C736520696620286465662E6B696E64203D3D3D202273657422'; wwv_flow_api.g_varchar2_table(348) := '29207B2064657363726970746F72203D207B207365743A206465662E76616C75652C20636F6E666967757261626C653A20747275652C20656E756D657261626C653A2066616C7365207D3B207D20656C736520696620286465662E6B696E64203D3D3D20'; wwv_flow_api.g_varchar2_table(349) := '226669656C642229207B2064657363726970746F72203D207B20636F6E666967757261626C653A20747275652C207772697461626C653A20747275652C20656E756D657261626C653A2074727565207D3B207D2076617220656C656D656E74203D207B20'; wwv_flow_api.g_varchar2_table(350) := '6B696E643A206465662E6B696E64203D3D3D20226669656C6422203F20226669656C6422203A20226D6574686F64222C206B65793A206B65792C20706C6163656D656E743A206465665B22737461746963225D203F202273746174696322203A20646566'; wwv_flow_api.g_varchar2_table(351) := '2E6B696E64203D3D3D20226669656C6422203F20226F776E22203A202270726F746F74797065222C2064657363726970746F723A2064657363726970746F72207D3B20696620286465662E6465636F7261746F72732920656C656D656E742E6465636F72'; wwv_flow_api.g_varchar2_table(352) := '61746F7273203D206465662E6465636F7261746F72733B20696620286465662E6B696E64203D3D3D20226669656C64222920656C656D656E742E696E697469616C697A6572203D206465662E76616C75653B2072657475726E20656C656D656E743B207D'; wwv_flow_api.g_varchar2_table(353) := '0A0A66756E6374696F6E205F636F616C6573636547657474657253657474657228656C656D656E742C206F7468657229207B2069662028656C656D656E742E64657363726970746F722E67657420213D3D20756E646566696E656429207B206F74686572'; wwv_flow_api.g_varchar2_table(354) := '2E64657363726970746F722E676574203D20656C656D656E742E64657363726970746F722E6765743B207D20656C7365207B206F746865722E64657363726970746F722E736574203D20656C656D656E742E64657363726970746F722E7365743B207D20'; wwv_flow_api.g_varchar2_table(355) := '7D0A0A66756E6374696F6E205F636F616C65736365436C617373456C656D656E747328656C656D656E747329207B20766172206E6577456C656D656E7473203D205B5D3B2076617220697353616D65456C656D656E74203D2066756E6374696F6E206973'; wwv_flow_api.g_varchar2_table(356) := '53616D65456C656D656E74286F7468657229207B2072657475726E206F746865722E6B696E64203D3D3D20226D6574686F6422202626206F746865722E6B6579203D3D3D20656C656D656E742E6B6579202626206F746865722E706C6163656D656E7420'; wwv_flow_api.g_varchar2_table(357) := '3D3D3D20656C656D656E742E706C6163656D656E743B207D3B20666F7220287661722069203D20303B2069203C20656C656D656E74732E6C656E6774683B20692B2B29207B2076617220656C656D656E74203D20656C656D656E74735B695D3B20766172'; wwv_flow_api.g_varchar2_table(358) := '206F746865723B2069662028656C656D656E742E6B696E64203D3D3D20226D6574686F642220262620286F74686572203D206E6577456C656D656E74732E66696E6428697353616D65456C656D656E74292929207B20696620285F697344617461446573'; wwv_flow_api.g_varchar2_table(359) := '63726970746F7228656C656D656E742E64657363726970746F7229207C7C205F69734461746144657363726970746F72286F746865722E64657363726970746F722929207B20696620285F6861734465636F7261746F727328656C656D656E7429207C7C'; wwv_flow_api.g_varchar2_table(360) := '205F6861734465636F7261746F7273286F746865722929207B207468726F77206E6577205265666572656E63654572726F7228224475706C696361746564206D6574686F6473202822202B20656C656D656E742E6B6579202B2022292063616E27742062'; wwv_flow_api.g_varchar2_table(361) := '65206465636F72617465642E22293B207D206F746865722E64657363726970746F72203D20656C656D656E742E64657363726970746F723B207D20656C7365207B20696620285F6861734465636F7261746F727328656C656D656E742929207B20696620'; wwv_flow_api.g_varchar2_table(362) := '285F6861734465636F7261746F7273286F746865722929207B207468726F77206E6577205265666572656E63654572726F7228224465636F7261746F72732063616E277420626520706C61636564206F6E20646966666572656E74206163636573736F72'; wwv_flow_api.g_varchar2_table(363) := '73207769746820666F722022202B20227468652073616D652070726F7065727479202822202B20656C656D656E742E6B6579202B2022292E22293B207D206F746865722E6465636F7261746F7273203D20656C656D656E742E6465636F7261746F72733B'; wwv_flow_api.g_varchar2_table(364) := '207D205F636F616C6573636547657474657253657474657228656C656D656E742C206F74686572293B207D207D20656C7365207B206E6577456C656D656E74732E7075736828656C656D656E74293B207D207D2072657475726E206E6577456C656D656E'; wwv_flow_api.g_varchar2_table(365) := '74733B207D0A0A66756E6374696F6E205F6861734465636F7261746F727328656C656D656E7429207B2072657475726E20656C656D656E742E6465636F7261746F727320262620656C656D656E742E6465636F7261746F72732E6C656E6774683B207D0A'; wwv_flow_api.g_varchar2_table(366) := '0A66756E6374696F6E205F69734461746144657363726970746F72286465736329207B2072657475726E206465736320213D3D20756E646566696E6564202626202128646573632E76616C7565203D3D3D20756E646566696E656420262620646573632E'; wwv_flow_api.g_varchar2_table(367) := '7772697461626C65203D3D3D20756E646566696E6564293B207D0A0A66756E6374696F6E205F6F7074696F6E616C43616C6C61626C6550726F7065727479286F626A2C206E616D6529207B207661722076616C7565203D206F626A5B6E616D655D3B2069'; wwv_flow_api.g_varchar2_table(368) := '66202876616C756520213D3D20756E646566696E656420262620747970656F662076616C756520213D3D202266756E6374696F6E2229207B207468726F77206E657720547970654572726F7228224578706563746564202722202B206E616D65202B2022'; wwv_flow_api.g_varchar2_table(369) := '2720746F20626520612066756E6374696F6E22293B207D2072657475726E2076616C75653B207D0A0A66756E6374696F6E205F746F50726F70657274794B65792861726729207B20766172206B6579203D205F746F5072696D6974697665286172672C20'; wwv_flow_api.g_varchar2_table(370) := '22737472696E6722293B2072657475726E205F747970656F66286B657929203D3D3D202273796D626F6C22203F206B6579203A20537472696E67286B6579293B207D0A0A66756E6374696F6E205F746F5072696D697469766528696E7075742C2068696E'; wwv_flow_api.g_varchar2_table(371) := '7429207B20696620285F747970656F6628696E7075742920213D3D20226F626A65637422207C7C20696E707574203D3D3D206E756C6C292072657475726E20696E7075743B20766172207072696D203D20696E7075745B53796D626F6C2E746F5072696D'; wwv_flow_api.g_varchar2_table(372) := '69746976655D3B20696620287072696D20213D3D20756E646566696E656429207B2076617220726573203D207072696D2E63616C6C28696E7075742C2068696E74207C7C202264656661756C7422293B20696620285F747970656F66287265732920213D'; wwv_flow_api.g_varchar2_table(373) := '3D20226F626A65637422292072657475726E207265733B207468726F77206E657720547970654572726F7228224040746F5072696D6974697665206D7573742072657475726E2061207072696D69746976652076616C75652E22293B207D207265747572'; wwv_flow_api.g_varchar2_table(374) := '6E202868696E74203D3D3D2022737472696E6722203F20537472696E67203A204E756D6265722928696E707574293B207D0A0A66756E6374696F6E205F746F41727261792861727229207B2072657475726E205F617272617957697468486F6C65732861'; wwv_flow_api.g_varchar2_table(375) := '727229207C7C205F6974657261626C65546F41727261792861727229207C7C205F756E737570706F727465644974657261626C65546F41727261792861727229207C7C205F6E6F6E4974657261626C655265737428293B207D0A0A66756E6374696F6E20'; wwv_flow_api.g_varchar2_table(376) := '5F6E6F6E4974657261626C65526573742829207B207468726F77206E657720547970654572726F722822496E76616C696420617474656D707420746F206465737472756374757265206E6F6E2D6974657261626C6520696E7374616E63652E5C6E496E20'; wwv_flow_api.g_varchar2_table(377) := '6F7264657220746F206265206974657261626C652C206E6F6E2D6172726179206F626A65637473206D75737420686176652061205B53796D626F6C2E6974657261746F725D2829206D6574686F642E22293B207D0A0A66756E6374696F6E205F756E7375'; wwv_flow_api.g_varchar2_table(378) := '70706F727465644974657261626C65546F4172726179286F2C206D696E4C656E29207B2069662028216F292072657475726E3B2069662028747970656F66206F203D3D3D2022737472696E6722292072657475726E205F61727261794C696B65546F4172'; wwv_flow_api.g_varchar2_table(379) := '726179286F2C206D696E4C656E293B20766172206E203D204F626A6563742E70726F746F747970652E746F537472696E672E63616C6C286F292E736C69636528382C202D31293B20696620286E203D3D3D20224F626A65637422202626206F2E636F6E73'; wwv_flow_api.g_varchar2_table(380) := '74727563746F7229206E203D206F2E636F6E7374727563746F722E6E616D653B20696620286E203D3D3D20224D617022207C7C206E203D3D3D202253657422292072657475726E2041727261792E66726F6D286F293B20696620286E203D3D3D20224172'; wwv_flow_api.g_varchar2_table(381) := '67756D656E747322207C7C202F5E283F3A55697C49296E74283F3A387C31367C333229283F3A436C616D706564293F4172726179242F2E74657374286E29292072657475726E205F61727261794C696B65546F4172726179286F2C206D696E4C656E293B'; wwv_flow_api.g_varchar2_table(382) := '207D0A0A66756E6374696F6E205F61727261794C696B65546F4172726179286172722C206C656E29207B20696620286C656E203D3D206E756C6C207C7C206C656E203E206172722E6C656E67746829206C656E203D206172722E6C656E6774683B20666F'; wwv_flow_api.g_varchar2_table(383) := '7220287661722069203D20302C2061727232203D206E6577204172726179286C656E293B2069203C206C656E3B20692B2B29207B20617272325B695D203D206172725B695D3B207D2072657475726E20617272323B207D0A0A66756E6374696F6E205F69'; wwv_flow_api.g_varchar2_table(384) := '74657261626C65546F4172726179286974657229207B2069662028747970656F662053796D626F6C20213D3D2022756E646566696E65642220262620697465725B53796D626F6C2E6974657261746F725D20213D206E756C6C207C7C20697465725B2240'; wwv_flow_api.g_varchar2_table(385) := '406974657261746F72225D20213D206E756C6C292072657475726E2041727261792E66726F6D2869746572293B207D0A0A66756E6374696F6E205F617272617957697468486F6C65732861727229207B206966202841727261792E697341727261792861'; wwv_flow_api.g_varchar2_table(386) := '727229292072657475726E206172723B207D0A0A66756E6374696F6E205F676574287461726765742C2070726F70657274792C20726563656976657229207B2069662028747970656F66205265666C65637420213D3D2022756E646566696E6564222026'; wwv_flow_api.g_varchar2_table(387) := '26205265666C6563742E67657429207B205F676574203D205265666C6563742E6765743B207D20656C7365207B205F676574203D2066756E6374696F6E205F676574287461726765742C2070726F70657274792C20726563656976657229207B20766172'; wwv_flow_api.g_varchar2_table(388) := '2062617365203D205F737570657250726F7042617365287461726765742C2070726F7065727479293B20696620282162617365292072657475726E3B207661722064657363203D204F626A6563742E6765744F776E50726F706572747944657363726970'; wwv_flow_api.g_varchar2_table(389) := '746F7228626173652C2070726F7065727479293B2069662028646573632E67657429207B2072657475726E20646573632E6765742E63616C6C287265636569766572293B207D2072657475726E20646573632E76616C75653B207D3B207D207265747572'; wwv_flow_api.g_varchar2_table(390) := '6E205F676574287461726765742C2070726F70657274792C207265636569766572207C7C20746172676574293B207D0A0A66756E6374696F6E205F737570657250726F7042617365286F626A6563742C2070726F706572747929207B207768696C652028'; wwv_flow_api.g_varchar2_table(391) := '214F626A6563742E70726F746F747970652E6861734F776E50726F70657274792E63616C6C286F626A6563742C2070726F70657274792929207B206F626A656374203D205F67657450726F746F747970654F66286F626A656374293B20696620286F626A'; wwv_flow_api.g_varchar2_table(392) := '656374203D3D3D206E756C6C2920627265616B3B207D2072657475726E206F626A6563743B207D0A0A66756E6374696F6E205F67657450726F746F747970654F66286F29207B205F67657450726F746F747970654F66203D204F626A6563742E73657450'; wwv_flow_api.g_varchar2_table(393) := '726F746F747970654F66203F204F626A6563742E67657450726F746F747970654F66203A2066756E6374696F6E205F67657450726F746F747970654F66286F29207B2072657475726E206F2E5F5F70726F746F5F5F207C7C204F626A6563742E67657450'; wwv_flow_api.g_varchar2_table(394) := '726F746F747970654F66286F293B207D3B2072657475726E205F67657450726F746F747970654F66286F293B207D0A0A0A0A0A0A76617220536C6964654F766572203D205F6465636F72617465285B637573746F6D5F656C656D656E745F6E2827736C69'; wwv_flow_api.g_varchar2_table(395) := '64652D6F76657227295D2C2066756E6374696F6E20285F696E697469616C697A652C205F4C6974456C656D656E7429207B0A202076617220536C6964654F766572203D202F2A235F5F505552455F5F2A2F66756E6374696F6E20285F4C6974456C656D65'; wwv_flow_api.g_varchar2_table(396) := '6E743229207B0A202020205F696E68657269747328536C6964654F7665722C205F4C6974456C656D656E7432293B0A0A20202020766172205F7375706572203D205F637265617465537570657228536C6964654F766572293B0A0A2020202066756E6374'; wwv_flow_api.g_varchar2_table(397) := '696F6E20536C6964654F7665722829207B0A202020202020766172205F746869733B0A0A2020202020205F636C61737343616C6C436865636B28746869732C20536C6964654F766572293B0A0A202020202020666F722028766172205F6C656E203D2061'; wwv_flow_api.g_varchar2_table(398) := '7267756D656E74732E6C656E6774682C2061726773203D206E6577204172726179285F6C656E292C205F6B6579203D20303B205F6B6579203C205F6C656E3B205F6B65792B2B29207B0A2020202020202020617267735B5F6B65795D203D20617267756D'; wwv_flow_api.g_varchar2_table(399) := '656E74735B5F6B65795D3B0A2020202020207D0A0A2020202020205F74686973203D205F73757065722E63616C6C2E6170706C79285F73757065722C205B746869735D2E636F6E636174286172677329293B0A0A2020202020205F696E697469616C697A'; wwv_flow_api.g_varchar2_table(400) := '65285F61737365727454686973496E697469616C697A6564285F7468697329293B0A0A20202020202072657475726E205F746869733B0A202020207D0A0A2020202072657475726E20536C6964654F7665723B0A20207D285F4C6974456C656D656E7429'; wwv_flow_api.g_varchar2_table(401) := '3B0A0A202072657475726E207B0A20202020463A20536C6964654F7665722C0A20202020643A205B7B0A2020202020206B696E643A20226669656C64222C0A2020202020206465636F7261746F72733A205B70726F70657274795F65287B0A2020202020'; wwv_flow_api.g_varchar2_table(402) := '202020747970653A20537472696E672C0A20202020202020207265666C6563743A20747275650A2020202020207D295D2C0A2020202020206B65793A20226F70656E222C0A20202020202076616C75653A2066756E6374696F6E2076616C75652829207B'; wwv_flow_api.g_varchar2_table(403) := '0A202020202020202072657475726E202766616C7365273B0A2020202020207D0A202020207D2C207B0A2020202020206B696E643A20226669656C64222C0A2020202020206465636F7261746F72733A205B70726F70657274795F65287B0A2020202020'; wwv_flow_api.g_varchar2_table(404) := '202020747970653A20537472696E670A2020202020207D295D2C0A2020202020206B65793A2022686561646572222C0A20202020202076616C75653A2066756E6374696F6E2076616C75652829207B0A202020202020202072657475726E2027273B0A20'; wwv_flow_api.g_varchar2_table(405) := '20202020207D0A202020207D2C207B0A2020202020206B696E643A20226669656C64222C0A2020202020206465636F7261746F72733A205B70726F70657274795F65287B0A2020202020202020747970653A20537472696E670A2020202020207D295D2C'; wwv_flow_api.g_varchar2_table(406) := '0A2020202020206B65793A20227769647468222C0A20202020202076616C75653A2066756E6374696F6E2076616C75652829207B0A202020202020202072657475726E20273530307078273B0A2020202020207D0A202020207D2C207B0A202020202020'; wwv_flow_api.g_varchar2_table(407) := '6B696E643A20226669656C64222C0A2020202020206465636F7261746F72733A205B70726F70657274795F65287B0A2020202020202020747970653A20537472696E670A2020202020207D295D2C0A2020202020206B65793A2022646972656374696F6E'; wwv_flow_api.g_varchar2_table(408) := '222C0A20202020202076616C75653A2066756E6374696F6E2076616C75652829207B0A202020202020202072657475726E20277269676874273B0A2020202020207D0A202020207D2C207B0A2020202020206B696E643A20226669656C64222C0A202020'; wwv_flow_api.g_varchar2_table(409) := '2020206B65793A2022696E697469616C697A6564222C0A20202020202076616C75653A2066756E6374696F6E2076616C75652829207B0A202020202020202072657475726E2066616C73653B0A2020202020207D0A202020207D2C207B0A202020202020'; wwv_flow_api.g_varchar2_table(410) := '6B696E643A20226669656C64222C0A2020202020206B65793A202274686174222C0A20202020202076616C75653A2066756E6374696F6E2076616C75652829207B0A202020202020202072657475726E20746869733B0A2020202020207D0A202020207D'; wwv_flow_api.g_varchar2_table(411) := '2C207B0A2020202020206B696E643A2022676574222C0A20202020202022737461746963223A20747275652C0A2020202020206B65793A20227374796C6573222C0A20202020202076616C75653A2066756E6374696F6E207374796C65732829207B0A20'; wwv_flow_api.g_varchar2_table(412) := '2020202020202072657475726E2069285F74656D706C6174654F626A656374207C7C20285F74656D706C6174654F626A656374203D205F74616767656454656D706C6174654C69746572616C285B225C6E202020202020406D6564696120287072656665'; wwv_flow_api.g_varchar2_table(413) := '72732D726564756365642D6D6F74696F6E3A2072656475636529207B5C6E20202020202020202A207B5C6E202020202020202020207472616E736974696F6E3A206E6F6E652021696D706F7274616E743B5C6E20202020202020207D5C6E202020202020'; wwv_flow_api.g_varchar2_table(414) := '7D5C6E5C6E202020202020406D656469612073637265656E20616E6420286D696E2D77696474683A203170782920616E6420286D61782D77696474683A20343830707829207B5C6E20202020202020202E736C6964652D6F766572207B5C6E2020202020'; wwv_flow_api.g_varchar2_table(415) := '202020202077696474683A20313030252021696D706F7274616E743B5C6E202020202020202020206261636B67726F756E642D636F6C6F723A207265643B5C6E20202020202020207D5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6F'; wwv_flow_api.g_varchar2_table(416) := '70656E207B5C6E20202020202020202D2D6C61792D6F7665722D6F7061636974793A20302E37353B5C6E20202020202020202D2D7472616E736C6174653A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D636C6F736564207B5C'; wwv_flow_api.g_varchar2_table(417) := '6E20202020202020202D2D6C61792D6F7665722D6F7061636974793A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D636C6F736564202E736C6964652D6F7665722D72207B5C6E20202020202020202D2D7472616E736C617465'; wwv_flow_api.g_varchar2_table(418) := '3A20313030253B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D636C6F736564202E736C6964652D6F7665722D6C207B5C6E20202020202020202D2D7472616E736C6174653A202D313030253B5C6E2020202020207D5C6E5C6E202020'; wwv_flow_api.g_varchar2_table(419) := '2020202E736C6964652D636C6F736564202E6C61792D6F766572207B5C6E20202020202020206F7061636974793A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6F70656E202E6C61792D6F766572207B5C6E20202020202020'; wwv_flow_api.g_varchar2_table(420) := '20706F696E7465722D6576656E74733A206175746F3B5C6E2020202020207D5C6E5C6E2020202020202E6C61792D6F766572207B5C6E2020202020202020706F736974696F6E3A2066697865643B5C6E2020202020202020746F703A20303B5C6E202020'; wwv_flow_api.g_varchar2_table(421) := '202020202072696768743A20303B5C6E2020202020202020626F74746F6D3A20303B5C6E20202020202020206C6566743A20303B5C6E20202020202020206261636B67726F756E642D636F6C6F723A20726762612834312C2034312C2034312C20302E36'; wwv_flow_api.g_varchar2_table(422) := '293B5C6E20202020202020207A2D696E6465783A203930303B5C6E20202020202020206F7061636974793A20313B5C6E2020202020202020706F696E7465722D6576656E74733A206E6F6E653B5C6E5C6E20202020202020207472616E736974696F6E3A'; wwv_flow_api.g_varchar2_table(423) := '206F706163697479203135306D7320656173652D696E2D6F75743B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6F766572207B5C6E2020202020202020706F696E7465722D6576656E74733A206175746F3B5C6E2020202020202020'; wwv_flow_api.g_varchar2_table(424) := '706F736974696F6E3A2066697865643B5C6E2020202020202020746F703A20303B5C6E2020202020202020626F74746F6D3A20303B5C6E20202020202020206261636B67726F756E643A20766172282D2D75742D626F64792D6261636B67726F756E642D'; wwv_flow_api.g_varchar2_table(425) := '636F6C6F722C2023666666293B5C6E20202020202020207A2D696E6465783A203930313B5C6E20202020202020206865696768743A20313030253B5C6E2020202020202020626F782D736861646F773A203020323070782032357078202D357078207267'; wwv_flow_api.g_varchar2_table(426) := '626128302C20302C20302C20302E31292C5C6E202020202020202020203020313070782031307078202D357078207267626128302C20302C20302C20302E3034293B5C6E20202020202020207472616E73666F726D3A207472616E736C61746558287661'; wwv_flow_api.g_varchar2_table(427) := '72282D2D7472616E736C61746529293B5C6E20202020202020207472616E736974696F6E3A207472616E73666F726D20302E33357320656173652D696E2D6F75743B5C6E20202020202020206D61782D6865696768743A2031303076683B5C6E20202020'; wwv_flow_api.g_varchar2_table(428) := '202020206F766572666C6F772D793A206175746F3B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D6F7665722D72207B5C6E202020202020202072696768743A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D'; wwv_flow_api.g_varchar2_table(429) := '6F7665722D6C207B5C6E20202020202020206C6566743A20303B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D686561646572207B5C6E202020202020202070616464696E673A20313670783B5C6E2020202020202020646973706C61'; wwv_flow_api.g_varchar2_table(430) := '793A20666C65783B5C6E20202020202020206A7573746966792D636F6E74656E743A2073706163652D6265747765656E3B5C6E2020202020202020616C69676E2D6974656D733A2063656E7465723B5C6E5C6E2020202020202020626F726465722D626F'; wwv_flow_api.g_varchar2_table(431) := '74746F6D2D77696474683A20766172282D2D6A75692D6469616C6F672D7469746C656261722D626F726465722D77696474682C20317078293B5C6E2020202020202020626F726465722D626F74746F6D2D7374796C653A20736F6C69643B5C6E20202020'; wwv_flow_api.g_varchar2_table(432) := '20202020626F726465722D626F74746F6D2D636F6C6F723A20766172282D2D6A75692D6469616C6F672D7469746C656261722D626F726465722D636F6C6F722C2023643464346434293B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D'; wwv_flow_api.g_varchar2_table(433) := '6865616465722D74657874207B5C6E20202020202020206D617267696E3A20303B5C6E2020202020202020636F6C6F723A20766172282D2D75742D626F64792D7469746C652D746578742D636F6C6F722C2023323632363236293B5C6E20202020202020'; wwv_flow_api.g_varchar2_table(434) := '20666F6E742D73697A653A20312E3572656D3B5C6E2020202020202020666F6E742D66616D696C793A20766172285C6E202020202020202020202D2D75742D6865726F2D726567696F6E2D7469746C652D666F6E742D66616D696C792C5C6E2020202020'; wwv_flow_api.g_varchar2_table(435) := '202020202075692D73616E732D73657269662C5C6E2020202020202020202073797374656D2D75692C5C6E202020202020202020202D6170706C652D73797374656D2C5C6E20202020202020202020426C696E6B4D616353797374656D466F6E742C5C6E'; wwv_flow_api.g_varchar2_table(436) := '20202020202020202020275365676F65205549272C5C6E20202020202020202020526F626F746F2C5C6E202020202020202020202748656C766574696361204E657565272C5C6E20202020202020202020417269616C2C5C6E2020202020202020202073'; wwv_flow_api.g_varchar2_table(437) := '616E732D73657269663B5C6E2020202020202020293B5C6E2020202020202020666F6E742D7765696768743A2076617228363030293B5C6E2020202020207D5C6E5C6E2020202020202E636C6F73652D627574746F6E207B5C6E20202020202020206469'; wwv_flow_api.g_varchar2_table(438) := '73706C61793A20666C65783B5C6E202020202020202070616464696E673A203470783B5C6E2020202020202020626F726465723A206E6F6E653B5C6E20202020202020206261636B67726F756E642D636F6C6F723A207472616E73706172656E743B5C6E'; wwv_flow_api.g_varchar2_table(439) := '2020202020202020636F6C6F723A20766172282D2D75742D626F64792D746578742D636F6C6F722C2023396361336166293B5C6E20202020202020206F7061636974793A20302E353B5C6E2020202020202020626F726465723A2032707820736F6C6964'; wwv_flow_api.g_varchar2_table(440) := '207472616E73706172656E743B5C6E2020202020202020637572736F723A20706F696E7465723B5C6E20202020202020206C696E652D6865696768743A20696E68657269743B5C6E2020202020202020626F726465722D7261646975733A203870783B5C'; wwv_flow_api.g_varchar2_table(441) := '6E2020202020207D5C6E5C6E2020202020202E636C6F73652D627574746F6E3A686F766572207B5C6E20202020202020206F7061636974793A20313B5C6E2020202020207D5C6E5C6E2020202020202E636C6F73652D627574746F6E3A666F637573207B'; wwv_flow_api.g_varchar2_table(442) := '5C6E2020202020202020626F726465722D636F6C6F723A20766172282D2D75742D70616C657474652D7072696D6172792C2023396361336166293B5C6E2020202020207D5C6E5C6E2020202020202E736C6964652D636F6E74656E74207B5C6E20202020'; wwv_flow_api.g_varchar2_table(443) := '20202020706F736974696F6E3A207374617469633B5C6E202020202020202070616464696E673A20313670783B5C6E2020202020207D5C6E20202020225D2929293B0A2020202020207D0A202020207D2C207B0A2020202020206B696E643A20226D6574'; wwv_flow_api.g_varchar2_table(444) := '686F64222C0A2020202020206B65793A202272656E646572222C0A20202020202076616C75653A2066756E6374696F6E2072656E6465722829207B0A202020202020202072657475726E2054285F74656D706C6174654F626A65637432207C7C20285F74'; wwv_flow_api.g_varchar2_table(445) := '656D706C6174654F626A65637432203D205F74616767656454656D706C6174654C69746572616C285B223C6469762069643D5C22736C6964652D777261707065725C2220636C6173733D5C22736C6964652D636C6F7365645C223E5C6E2020202020203C'; wwv_flow_api.g_varchar2_table(446) := '6469765C6E202020202020202069643D5C226C61792D6F7665725C225C6E2020202020202020636C6173733D5C226C61792D6F7665725C225C6E2020202020202020706172743D5C226C61792D6F7665725C225C6E202020202020202040636C69636B3D'; wwv_flow_api.g_varchar2_table(447) := '5C22222C20225C225C6E2020202020203E3C2F6469763E5C6E2020202020203C6469765C6E202020202020202069643D5C22736C6964652D6F7665725C225C6E2020202020202020706172743D5C22736C6964652D6F7665725C225C6E20202020202020'; wwv_flow_api.g_varchar2_table(448) := '20636C6173733D5C22736C6964652D6F76657220222C20225C225C6E2020202020203E5C6E20202020202020203C68656164657220636C6173733D5C22736C6964652D6865616465725C223E5C6E202020202020202020203C683220636C6173733D5C22'; wwv_flow_api.g_varchar2_table(449) := '736C6964652D6865616465722D746578745C2220706172743D5C22736C6964652D6865616465722D746578745C223E5C6E202020202020202020202020222C20225C6E202020202020202020203C2F68323E5C6E202020202020202020203C627574746F'; wwv_flow_api.g_varchar2_table(450) := '6E5C6E202020202020202020202020747970653D5C22627574746F6E5C225C6E20202020202020202020202069643D5C22746573742D636C6F73655C225C6E202020202020202020202020636C6173733D5C22636C6F73652D627574746F6E5C225C6E20'; wwv_flow_api.g_varchar2_table(451) := '2020202020202020202020706172743D5C22636C6F73652D627574746F6E5C225C6E20202020202020202020202040636C69636B3D5C22222C20225C225C6E202020202020202020203E5C6E2020202020202020202020203C7376675C6E202020202020'; wwv_flow_api.g_varchar2_table(452) := '20202020202020207374796C653D5C2277696474683A20312E3572656D3B206865696768743A20312E3572656D3B5C225C6E2020202020202020202020202020782D6465736372697074696F6E3D5C224865726F69636F6E206E616D653A206F75746C69'; wwv_flow_api.g_varchar2_table(453) := '6E652F785C225C6E2020202020202020202020202020786D6C6E733D5C22687474703A2F2F7777772E77332E6F72672F323030302F7376675C225C6E202020202020202020202020202066696C6C3D5C226E6F6E655C225C6E2020202020202020202020'; wwv_flow_api.g_varchar2_table(454) := '20202076696577426F783D5C223020302032342032345C225C6E20202020202020202020202020207374726F6B653D5C2263757272656E74436F6C6F725C225C6E2020202020202020202020202020617269612D68696464656E3D5C22747275655C225C'; wwv_flow_api.g_varchar2_table(455) := '6E2020202020202020202020203E5C6E20202020202020202020202020203C706174685C6E202020202020202020202020202020207374726F6B652D6C696E656361703D5C22726F756E645C225C6E202020202020202020202020202020207374726F6B'; wwv_flow_api.g_varchar2_table(456) := '652D6C696E656A6F696E3D5C22726F756E645C225C6E202020202020202020202020202020207374726F6B652D77696474683D5C22325C225C6E20202020202020202020202020202020643D5C224D362031384C313820364D3620366C31322031325C22'; wwv_flow_api.g_varchar2_table(457) := '5C6E20202020202020202020202020203E3C2F706174683E5C6E2020202020202020202020203C2F7376673E5C6E202020202020202020203C2F627574746F6E3E5C6E20202020202020203C2F6865616465723E5C6E20202020202020203C6D61696E20'; wwv_flow_api.g_varchar2_table(458) := '636C6173733D5C22736C6964652D636F6E74656E745C223E5C6E202020202020202020203C736C6F74206E616D653D5C22636F6E74656E745C223E436F6E74656E7420486572653C2F736C6F743E5C6E20202020202020203C2F6D61696E3E5C6E202020'; wwv_flow_api.g_varchar2_table(459) := '2020203C2F6469763E5C6E202020203C2F6469763E225D29292C20746869732E636C6F73652C20746869732E646972656374696F6E203D3D3D2027726967687427203F2027736C6964652D6F7665722D7227203A2027736C6964652D6F7665722D6C272C'; wwv_flow_api.g_varchar2_table(460) := '20746869732E6865616465722C20746869732E636C6F7365293B0A2020202020207D0A202020207D2C207B0A2020202020206B696E643A20226D6574686F64222C0A2020202020206B65793A2022666972737455706461746564222C0A20202020202076'; wwv_flow_api.g_varchar2_table(461) := '616C75653A2066756E6374696F6E206669727374557064617465642829207B0A2020202020202020746869732E77726170706572203D20746869732E736861646F77526F6F742E717565727953656C6563746F72282723736C6964652D77726170706572'; wwv_flow_api.g_varchar2_table(462) := '27293B0A2020202020202020746869732E736C6964654F766572203D20746869732E736861646F77526F6F742E717565727953656C6563746F72282723736C6964652D6F76657227293B0A2020202020202020746869732E736C6964654F7665722E7374'; wwv_flow_api.g_varchar2_table(463) := '796C652E7769647468203D20746869732E77696474683B0A2020202020202020746869732E696E697469616C697A6564203D20747275653B0A2020202020207D0A202020207D2C207B0A2020202020206B696E643A20226D6574686F64222C0A20202020'; wwv_flow_api.g_varchar2_table(464) := '20206B65793A2022636C6F7365222C0A20202020202076616C75653A2066756E6374696F6E20636C6F73652829207B0A2020202020202020746869732E6F70656E203D202766616C7365273B0A2020202020207D0A202020207D2C207B0A202020202020'; wwv_flow_api.g_varchar2_table(465) := '6B696E643A20226D6574686F64222C0A2020202020206B65793A2022746F67676C655374617465222C0A20202020202076616C75653A2066756E6374696F6E20746F67676C6553746174652829207B0A20202020202020206966202821746869732E696E'; wwv_flow_api.g_varchar2_table(466) := '697469616C697A6564292072657475726E3B0A0A202020202020202069662028746869732E6F70656E203D3D3D2027747275652729207B0A20202020202020202020746869732E777261707065722E636C6173734C6973742E72656D6F76652827736C69'; wwv_flow_api.g_varchar2_table(467) := '64652D636C6F73656427293B0A20202020202020202020746869732E777261707065722E636C6173734C6973742E6164642827736C6964652D6F70656E27293B0A20202020202020202020746869732E696E6974436C69636B4C697374656E6572732829'; wwv_flow_api.g_varchar2_table(468) := '3B0A20202020202020207D20656C7365207B0A20202020202020202020746869732E777261707065722E636C6173734C6973742E72656D6F76652827736C6964652D6F70656E27293B0A20202020202020202020746869732E777261707065722E636C61'; wwv_flow_api.g_varchar2_table(469) := '73734C6973742E6164642827736C6964652D636C6F73656427293B0A20202020202020202020746869732E72656D6F76654576656E744C697374656E65727328293B0A20202020202020207D0A2020202020207D202F2F206172726F772066756E637469'; wwv_flow_api.g_varchar2_table(470) := '6F6E20736F2074686174206074686973602077696C6C20776F726B207768656E2063616C6C65640A2020202020202F2F2066726F6D20646F63756D656E74206576656E74206C697374656E65720A0A202020207D2C207B0A2020202020206B696E643A20'; wwv_flow_api.g_varchar2_table(471) := '226669656C64222C0A2020202020206B65793A202268616E646C654B6579436C69636B222C0A20202020202076616C75653A2066756E6374696F6E2076616C75652829207B0A2020202020202020766172205F7468697332203D20746869733B0A0A2020'; wwv_flow_api.g_varchar2_table(472) := '20202020202072657475726E2066756E6374696F6E20286529207B0A2020202020202020202069662028652E6B6579203D3D3D20274573636170652729207B0A2020202020202020202020205F74686973322E636C6F736528293B0A2020202020202020'; wwv_flow_api.g_varchar2_table(473) := '20207D0A20202020202020207D3B0A2020202020207D0A202020207D2C207B0A2020202020206B696E643A20226D6574686F64222C0A2020202020206B65793A2022696E6974436C69636B4C697374656E657273222C0A20202020202076616C75653A20'; wwv_flow_api.g_varchar2_table(474) := '66756E6374696F6E20696E6974436C69636B4C697374656E6572732829207B0A2020202020202020646F63756D656E742E6164644576656E744C697374656E657228276B65797570272C20746869732E68616E646C654B6579436C69636B293B0A202020'; wwv_flow_api.g_varchar2_table(475) := '2020207D0A202020207D2C207B0A2020202020206B696E643A20226D6574686F64222C0A2020202020206B65793A202272656D6F76654576656E744C697374656E657273222C0A20202020202076616C75653A2066756E6374696F6E2072656D6F766545'; wwv_flow_api.g_varchar2_table(476) := '76656E744C697374656E6572732829207B0A2020202020202020646F63756D656E742E72656D6F76654576656E744C697374656E657228276B65797570272C20746869732E68616E646C654B6579436C69636B293B0A2020202020207D0A202020207D2C'; wwv_flow_api.g_varchar2_table(477) := '207B0A2020202020206B696E643A20226D6574686F64222C0A2020202020206B65793A20226174747269627574654368616E67656443616C6C6261636B222C0A20202020202076616C75653A2066756E6374696F6E206174747269627574654368616E67'; wwv_flow_api.g_varchar2_table(478) := '656443616C6C6261636B286E616D652C206F6C6456616C75652C206E657756616C756529207B0A20202020202020205F676574285F67657450726F746F747970654F6628536C6964654F7665722E70726F746F74797065292C2022617474726962757465'; wwv_flow_api.g_varchar2_table(479) := '4368616E67656443616C6C6261636B222C2074686973292E63616C6C28746869732C206E616D652C206F6C6456616C75652C206E657756616C7565293B0A0A2020202020202020696620286E616D65203D3D3D20276F70656E2729207B0A202020202020'; wwv_flow_api.g_varchar2_table(480) := '20202020746869732E746F67676C65537461746528293B0A20202020202020207D0A2020202020207D0A202020207D2C207B0A2020202020206B696E643A20226D6574686F64222C0A2020202020206B65793A2022646973636F6E6E656374656443616C'; wwv_flow_api.g_varchar2_table(481) := '6C6261636B222C0A20202020202076616C75653A2066756E6374696F6E20646973636F6E6E656374656443616C6C6261636B2829207B0A2020202020202020746869732E72656D6F76654576656E744C697374656E65727328293B0A0A20202020202020'; wwv_flow_api.g_varchar2_table(482) := '205F676574285F67657450726F746F747970654F6628536C6964654F7665722E70726F746F74797065292C2022646973636F6E6E656374656443616C6C6261636B222C2074686973292E63616C6C2874686973293B0A2020202020207D0A202020207D5D'; wwv_flow_api.g_varchar2_table(483) := '0A20207D3B0A7D2C206C69745F656C656D656E745F68293B0A0A2F2A206861726D6F6E792064656661756C74206578706F7274202A2F20636F6E737420737263203D2028282F2A20756E7573656420707572652065787072657373696F6E206F72207375'; wwv_flow_api.g_varchar2_table(484) := '706572202A2F206E756C6C2026262028536C6964654F7665722929293B0A7D2928293B0A0A2F2A2A2A2A2A2A2F207D2928290A3B'; null; end; / begin wwv_flow_api.create_plugin_file( p_id=>wwv_flow_api.id(17046741341352386241) ,p_plugin_id=>wwv_flow_api.id(17046641022682360231) ,p_file_name=>'js/index.js' ,p_mime_type=>'text/javascript' ,p_file_charset=>'utf-8' ,p_file_content=>wwv_flow_api.varchar2_to_blob(wwv_flow_api.g_varchar2_table) ); end; / begin wwv_flow_api.g_varchar2_table := wwv_flow_api.empty_varchar2_table; wwv_flow_api.g_varchar2_table(1) := '2F2A2A0A202A20406C6963656E73650A202A20436F70797269676874203230313720476F6F676C65204C4C430A202A20535044582D4C6963656E73652D4964656E7469666965723A204253442D332D436C617573650A202A2F0A0A2F2A2A0A202A20406C'; wwv_flow_api.g_varchar2_table(2) := '6963656E73650A202A20436F70797269676874203230313920476F6F676C65204C4C430A202A20535044582D4C6963656E73652D4964656E7469666965723A204253442D332D436C617573650A202A2F0A'; null; end; / begin wwv_flow_api.create_plugin_file( p_id=>wwv_flow_api.id(17047041657190262525) ,p_plugin_id=>wwv_flow_api.id(17046641022682360231) ,p_file_name=>'js/index.min.js.LICENSE.txt' ,p_mime_type=>'text/plain' ,p_file_charset=>'utf-8' ,p_file_content=>wwv_flow_api.varchar2_to_blob(wwv_flow_api.g_varchar2_table) ); end; / prompt --application/end_environment begin wwv_flow_api.import_end(p_auto_install_sup_obj => nvl(wwv_flow_application_install.get_auto_install_sup_obj, false)); commit; end; / set verify on feedback on define on prompt ...done
194.017062
241
0.946279
662c7d4a3eba4ccf4e556e75cd81258429a1af30
91
lua
Lua
src/components/generate-Lua/sources/original/DigiLed.lua
graphical-interface-programming/Scratch_miniCar
785978398f40c142d5fe2ba6bfa312300094f3fb
[ "BSD-3-Clause" ]
2
2019-08-15T17:34:41.000Z
2019-08-19T01:43:44.000Z
src/components/generate-Lua/sources/original/DigiLed.lua
graphical-interface-programming/Scratch_miniCar
785978398f40c142d5fe2ba6bfa312300094f3fb
[ "BSD-3-Clause" ]
null
null
null
src/components/generate-Lua/sources/original/DigiLed.lua
graphical-interface-programming/Scratch_miniCar
785978398f40c142d5fe2ba6bfa312300094f3fb
[ "BSD-3-Clause" ]
3
2019-08-15T17:34:42.000Z
2019-09-16T07:27:04.000Z
-- 数码管接受信号 --1 function SetDigiLed(dispArr) sendCanMsg(11, dispArr) -- id, len, data{} end
18.2
43
0.703297
9e22ed8734ebdb82ff1da4d8ae0c9018e434bba7
104
sql
SQL
yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/yoomath/ym-task/src/main/java/tpl/sql/SectionQuestionStat.sql
wangsikai/learn
af85f7c7db5c38b5009ebdfb8c8985032eca565c
[ "Apache-2.0" ]
1
2019-01-20T06:19:53.000Z
2019-01-20T06:19:53.000Z
yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/yoomath/ym-task/src/main/java/tpl/sql/SectionQuestionStat.sql
wangsikai/learn
af85f7c7db5c38b5009ebdfb8c8985032eca565c
[ "Apache-2.0" ]
null
null
null
yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/yoomath/ym-task/src/main/java/tpl/sql/SectionQuestionStat.sql
wangsikai/learn
af85f7c7db5c38b5009ebdfb8c8985032eca565c
[ "Apache-2.0" ]
2
2019-01-20T06:19:54.000Z
2021-07-21T14:13:44.000Z
##删除统计表 #macro($deleteStat(version)) delete from section_question_stat where version = :version #end
26
60
0.769231
7bc93fdecfa5b82897ceb1c95e7758cf25f991ca
2,021
css
CSS
component/_var.css
thefirstweb/layout_component
7acf39ec839bff23d00b323a46226c786202d38c
[ "MIT" ]
null
null
null
component/_var.css
thefirstweb/layout_component
7acf39ec839bff23d00b323a46226c786202d38c
[ "MIT" ]
null
null
null
component/_var.css
thefirstweb/layout_component
7acf39ec839bff23d00b323a46226c786202d38c
[ "MIT" ]
null
null
null
:root { --content-width: 1260px; --flag-bg-color: #fff100; --flag-fg-color: #f7e31b; --flag-bg-width: 28px; --flag-fg-width: 24px; --grid-img-width: 150px; --grid-border-width: 4px; --gird-divider: solid 1px #dcdcdc; --grid-product-width: calc(200px + 3px*2); --grid-price-comparison-width: calc(230px + var(--grid-border-width)*2 + 6px*2); --price-color: #ef4141; --product-title-color: #1f1f1f; --product-shop-color: #7f7f7f; --product-buy-btn-width: 56px; --theme-feebee: #ffe400; --theme-d4: #5c5c5c; --theme-d4-bg: #d4e1ee; --theme-cell-phone: #0090d4; --theme-cell-phone-bg: #d4e1ee; --theme-appliances: #bdc423; --theme-appliances-bg: #edeed4; --theme-camera: #55728d; --theme-camera-bg: #aac1d7; --container-layout: { margin: 0 auto; margin-bottom: 20px; width: var(--content-width); box-sizing: border-box; }; } body { font-family: Microsoft JhengHei, calibri, arial, helvetica, monospace, clean, sans-serif; background: #f3f3f3; font-size: 16px; } img { object-fit: contain; } a { color: #1488bb; text-decoration: none; } a:hover { /* text-decoration: underline; */ } .clearfix:after { display: table; content: ""; line-height: 0; clear: both; } .vertical_middle:before { content: ''; display: inline-block; vertical-align: middle; height: 100%; } .hide { display: none !important; } .xlarge { font-size: 24px; } .large { font-size: 20px; } .small { font-size: 14px; } .xsmall { font-size: 12px; } .ellipsis { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .container_layout_center { @apply --container-layout; } .sub_title { font-size: 32px; font-weight: bold; letter-spacing: -.1em; } .shelves, .price { color: var(--price-color); vertical-align: middle; font-family: Verdana; word-break: break-all; }
20.21
93
0.601188
6513f213b7ae02509adbae8bebb7d8031a8a3323
110
py
Python
pond5/blueprints/webui/views.py
IvanFrezzaJr/pond5
02cc39262b33eac59727ee416645f7006a99b099
[ "MIT" ]
null
null
null
pond5/blueprints/webui/views.py
IvanFrezzaJr/pond5
02cc39262b33eac59727ee416645f7006a99b099
[ "MIT" ]
null
null
null
pond5/blueprints/webui/views.py
IvanFrezzaJr/pond5
02cc39262b33eac59727ee416645f7006a99b099
[ "MIT" ]
null
null
null
from flask import render_template def index(): return render_template("index.html", title='pond5 test')
18.333333
60
0.745455
6fe07f6bbcf564bf1355bbc028f03e5afbd1aeaa
8,829
rs
Rust
binary/src/cli/remote.rs
iiYese/OMFG
38162bdc322de53d50bb34abc6fd244636694cb7
[ "MIT" ]
null
null
null
binary/src/cli/remote.rs
iiYese/OMFG
38162bdc322de53d50bb34abc6fd244636694cb7
[ "MIT" ]
null
null
null
binary/src/cli/remote.rs
iiYese/OMFG
38162bdc322de53d50bb34abc6fd244636694cb7
[ "MIT" ]
null
null
null
use std::{ io::{Write, Read}, fs::{File, rename}, path::{Path, PathBuf}, env::current_exe }; use reqwest::{ StatusCode, blocking::{Client, multipart::Form} }; use serde::{Serialize, Deserialize}; use anyhow::{Context, anyhow, bail, Result as AnyHow}; use mac_address::get_mac_address; use short_crypt::ShortCrypt; use crate::utils::{PathBufExt, DebugPrint}; use super::*; #[derive(Serialize, Deserialize)] struct Credentials { email: String, access_key: String, } pub struct ClientHandle { client: Client, server: String, credentials: Credentials, } impl ClientHandle { fn crypt() -> AnyHow<ShortCrypt> { let crypt = ShortCrypt::new( get_mac_address()? .ok_or(anyhow!("Could not get key for encryption"))? .to_string() ); Ok(crypt) } pub fn save_credentials(email: &str, access_key: &str) -> AnyHow<()> { let crypt = Self::crypt()?; let credentials = Credentials { email: email.to_string(), access_key: access_key.to_string() }; let (base, credentials) = crypt.encrypt(&serde_json::to_string(&credentials)?); let path = current_exe()? .parent() .context("Could not get parent directory")? .to_path_buf() .join("credentials"); path.write_plus("")?; let mut file = File::create(path) .map_err(|e| anyhow!("Failed to open credentials file: {}", e))?; file.write_all(&[&[base], credentials.as_slice()].concat()) .map_err(|e| anyhow!("Failed to write credentials: {}", e)) } pub fn new(server: &str) -> AnyHow<Self> { let credential_path = current_exe()? .parent() .context("Could not get parent directory")? .to_path_buf() .join("credentials"); let f = File::open(credential_path)?; let mut reader = std::io::BufReader::new(f); let mut contents = Vec::new(); // Read file into vector. reader.read_to_end(&mut contents)?; let crypt = Self::crypt()?; if contents.len() < 2 { bail!("Corrupt credentials file"); } let contents = crypt .decrypt(&(contents[0], contents[1..].to_vec())) .map_err(|e| anyhow!("Could not decrypt credentials: {}", e))?; Ok( ClientHandle { client: Client::new(), server: server.to_string(), credentials: serde_json::from_str(std::str::from_utf8(contents.as_slice())?)? } ) } pub fn list_projects(&self) -> AnyHow<()>{ let resp: ProjectList = self .client .post(&format!("{}/list_projects", self.server)) .basic_auth(&self.credentials.email, Some(&self.credentials.access_key)) .send()? .json()?; println!( "{:#?}", resp.extract()? ); Ok(()) } pub fn create_project(&self) -> AnyHow<String> { let resp: CreateProj = self .client .post(&format!("{}/create_project", self.server)) .basic_auth(&self.credentials.email, Some(&self.credentials.access_key)) .send()? .json()?; let id = resp.extract()?; println!("{}", id); Ok(id) } pub fn delete_project(&self, map_id: &str) -> AnyHow<()> { let resp: GenericResponse = self .client .post(&format!("{}/delete_project/{}", self.server, map_id)) .basic_auth(&self.credentials.email, Some(&self.credentials.access_key)) .send()? .json()?; resp.ok() } pub fn get_status(&self, map_id: &str) -> AnyHow<()> { let resp: ModdingStatus = self .client .post(&format!("{}/modding_status/{}", self.server, map_id)) .send()? .json()?; println!("{}", resp.status); Ok(()) } fn change_modding(&self, map_id: &str, to: &str) -> AnyHow<()> { let resp: GenericResponse = self .client .post(&format!("{}/{}_modding/{}", self.server, to, map_id)) .basic_auth(&self.credentials.email, Some(&self.credentials.access_key)) .send()? .json()?; resp.ok() // query server again to get new status } pub fn try_open(&self, map_id: &str) -> AnyHow<()> { self.change_modding(map_id, "open") } pub fn try_close(&self, map_id: &str) -> AnyHow<()> { self.change_modding(map_id, "close") } pub fn check_upto_date(&self, map_id: &str, sum: u32) -> AnyHow<()> { let resp: Checksum = self .client .get(&format!("{}/get_checksum/{}", self.server, map_id)) .send()? .json()?; if resp.sum != sum { println!("Checksum mismatch"); } println!("ok"); Ok(()) } pub fn submit_map(&self, map_id: &str, path: &Path) -> AnyHow<()> { let resp: GenericResponse = self .client .post(&format!("{}/update_map/{}", self.server, map_id)) .basic_auth(&self.credentials.email, Some(&self.credentials.access_key)) .multipart(Form::new().file("file", path)?) .send()? .json()?; resp.ok() } pub fn fetch_project(&self, map_id: &str) -> AnyHow<Vec<u8>> { let resp = self .client .post(&format!("{}/sync/{}", self.server, map_id)) .basic_auth(&self.credentials.email, Some(&self.credentials.access_key)) .send()?; match resp.status() { StatusCode::OK => { let bytes = resp.bytes()?; Ok(bytes.to_vec()) }, StatusCode::NOT_FOUND => { bail!("Project not found"); }, _ => { bail!("Failed to fetch project"); } } } pub fn submit_mods(&self, map_id: &str, mod_paths: &[PathBuf]) -> AnyHow<()> { let zip_path = current_exe()? .parent() .context("Could not get parent directory")? .to_path_buf() .join("temp"); let file = File::create(&zip_path)?; let mut zip = zip::ZipWriter::new(file); let options = zip::write::FileOptions::default(); for path in mod_paths { let name = path .file_name() .context("Could not get file name")? .to_str() .context("Could not convert to string")?; zip.start_file(name, options)?; zip.write_all(path.read()?.as_bytes())?; } zip.finish()?; let resp: ModSubmission = self .client .post(&format!("{}/submit_mods/{}", self.server, map_id)) .basic_auth(&self.credentials.email, Some(&self.credentials.access_key)) .multipart(Form::new().file("zip_file", &zip_path)?) .send()? .json()?; let new_ids = resp.ok()?; for path in mod_paths { let old = path .file_name() .context("Could not get file name")? .to_str() .context("Could not convert to string")?; let new = path.parent() .context("Could not get parent directory")? .to_path_buf() .join(&new_ids[old]); rename(path, &new)?; } Ok(()) } pub fn submit_patches(&self, map_id: &str, temp_path: &Path, patched: Vec<String>) -> AnyHow<()> { let zip_path = current_exe()? .parent() .context("Could not get parent directory")? .to_path_buf() .join("temp"); let file = File::create(&zip_path)?; let mut zip = zip::ZipWriter::new(file); let options = zip::write::FileOptions::default(); zip.start_file("map_file", options)?; zip.write_all(temp_path.to_path_buf().read()?.as_bytes())?; zip.start_file("changes.json", options)?; let changes_json = serde_json::to_string(&Patches{ patched })?; zip.write_all(changes_json.as_bytes())?; zip.finish()?; let resp: GenericResponse = self.client .post(&format!("{}/patch_mods/{}", self.server, map_id)) .basic_auth(&self.credentials.email, Some(&self.credentials.access_key)) .multipart(Form::new().file("zip_file", zip_path)?) .send()? .json()?; resp.ok() } }
29.235099
102
0.508891
a6b567d4127164502dc5453f9f462fbecf5f943f
425
swift
Swift
src/util/AppleScript.swift
Norviah/spotify
d11dafca6dd8ef72b71d661a4c51499404b85ecd
[ "MIT" ]
1
2020-08-15T23:28:22.000Z
2020-08-15T23:28:22.000Z
src/util/AppleScript.swift
Norviah/spotify
d11dafca6dd8ef72b71d661a4c51499404b85ecd
[ "MIT" ]
null
null
null
src/util/AppleScript.swift
Norviah/spotify
d11dafca6dd8ef72b71d661a4c51499404b85ecd
[ "MIT" ]
null
null
null
// // AppleScript.swift // spotify // // Created by Norviah on 8/10/20. // Copyright © 2020 Norviah. All rights reserved. // import Foundation /// Executes the given string as AppleScript. /// - Parameter source: The script to execute. /// - Returns: The result of the execution. @discardableResult func AppleScript(source: String) -> String? { NSAppleScript(source: source)?.executeAndReturnError(nil).stringValue }
23.611111
71
0.722353
5da3d5f79a11c826b17a756ba82e7adda225bc73
596
sql
SQL
parse/src/test/resources/ddl/alter/test_44.sql
yuanweikang2020/canal
9f6021cf36f78cc8ac853dcf37a1769f359b868b
[ "Apache-2.0" ]
23,220
2015-01-04T13:48:17.000Z
2022-03-31T15:38:51.000Z
parse/src/test/resources/ddl/alter/test_44.sql
yuanweikang2020/canal
9f6021cf36f78cc8ac853dcf37a1769f359b868b
[ "Apache-2.0" ]
3,863
2015-01-04T12:13:41.000Z
2022-03-31T11:06:07.000Z
parse/src/test/resources/ddl/alter/test_44.sql
yuanweikang2020/canal
9f6021cf36f78cc8ac853dcf37a1769f359b868b
[ "Apache-2.0" ]
7,006
2015-01-04T10:06:29.000Z
2022-03-31T07:25:23.000Z
CREATE TABLE `tb_sgqyviwkyz` ( `col_qcgurbenzo` enum('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET utf8mb4, UNIQUE `uk_vidzaimrjm` (`col_qcgurbenzo`) ) DEFAULT CHARSET=latin1; RENAME TABLE `tb_sgqyviwkyz` TO `tb_faqsxuetwm`; ALTER TABLE `tb_faqsxuetwm` CHARACTER SET utf8mb4; ALTER TABLE `tb_faqsxuetwm` ADD UNIQUE KEY `uk_zgssrxjpck` (`col_qcgurbenzo`); ALTER TABLE `tb_faqsxuetwm` ALTER COLUMN `col_qcgurbenzo` DROP DEFAULT; ALTER TABLE `tb_faqsxuetwm` ALTER COLUMN `col_qcgurbenzo` DROP DEFAULT; ALTER TABLE `tb_faqsxuetwm` ALTER COLUMN `col_qcgurbenzo` SET DEFAULT NULL;
54.181818
95
0.798658
15afac12ee5f97e6c04966c0d018fc4da23dabef
2,362
rb
Ruby
db/schema.rb
saintprug/ddd_cqrs_example
0ea7d3d1c3381b591e681dddc068199aa1985525
[ "MIT" ]
1
2019-02-16T13:58:48.000Z
2019-02-16T13:58:48.000Z
db/schema.rb
saintprug/ddd_cqrs_example
0ea7d3d1c3381b591e681dddc068199aa1985525
[ "MIT" ]
null
null
null
db/schema.rb
saintprug/ddd_cqrs_example
0ea7d3d1c3381b591e681dddc068199aa1985525
[ "MIT" ]
1
2019-08-13T15:58:01.000Z
2019-08-13T15:58:01.000Z
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # database schema. If you need to create the application database on another # system, you should be using db:schema:load, not running all the migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended that you check this file into your version control system. ActiveRecord::Schema.define(version: 2018_12_27_045754) do create_table "customers", force: :cascade do |t| t.string "name" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "event_store_events", id: :string, limit: 36, force: :cascade do |t| t.string "event_type", null: false t.binary "metadata" t.binary "data", null: false t.datetime "created_at", null: false t.index ["created_at"], name: "index_event_store_events_on_created_at" t.index ["event_type"], name: "index_event_store_events_on_event_type" end create_table "event_store_events_in_streams", force: :cascade do |t| t.string "stream", null: false t.integer "position" t.string "event_id", limit: 36, null: false t.datetime "created_at", null: false t.index ["created_at"], name: "index_event_store_events_in_streams_on_created_at" t.index ["stream", "event_id"], name: "index_event_store_events_in_streams_on_stream_and_event_id", unique: true t.index ["stream", "position"], name: "index_event_store_events_in_streams_on_stream_and_position", unique: true end create_table "account_transactions", force: :cascade do |t| t.string "account_uid" t.integer "transaction_type", default: 0 t.string "description" t.integer "amount_deposited" t.integer "amount_withdrawn" t.integer "balance" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "accounts", force: :cascade do |t| t.string "uid" t.string "owner_uid" t.integer "balance" t.string "created_by" end end
40.724138
116
0.737511
841134aef66eaf1e4db76592adc76d3eb50bd16d
1,000
asm
Assembly
programs/oeis/014/A014217.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/014/A014217.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/014/A014217.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A014217: a(n) = floor(phi^n), where phi = (1+sqrt(5))/2 is the golden ratio. ; 1,1,2,4,6,11,17,29,46,76,122,199,321,521,842,1364,2206,3571,5777,9349,15126,24476,39602,64079,103681,167761,271442,439204,710646,1149851,1860497,3010349,4870846,7881196,12752042,20633239,33385281,54018521,87403802,141422324,228826126,370248451,599074577,969323029,1568397606,2537720636,4106118242,6643838879,10749957121,17393796001,28143753122,45537549124,73681302246,119218851371,192900153617,312119004989,505019158606,817138163596,1322157322202,2139295485799,3461452808001,5600748293801,9062201101802,14662949395604,23725150497406,38388099893011,62113250390417,100501350283429,162614600673846,263115950957276,425730551631122,688846502588399,1114577054219521,1803423556807921,2918000611027442,4721424167835364,7639424778862806 add $0,1 mov $3,4 lpb $0,1 sub $0,1 trn $2,4 trn $3,3 sub $5,$4 mov $4,$5 add $5,$2 add $2,$1 add $4,2 add $2,$4 add $5,$3 mov $1,$5 add $1,2 mov $5,3 lpe sub $1,2
45.454545
729
0.788
7022a2195656909f1c5fa2293284995323441e63
4,281
go
Go
cmd/cmd/tags.go
jtvaughan/freebean
45cad104c392e5a4c0f5fce2446d51e0d70d0697
[ "BSD-2-Clause" ]
null
null
null
cmd/cmd/tags.go
jtvaughan/freebean
45cad104c392e5a4c0f5fce2446d51e0d70d0697
[ "BSD-2-Clause" ]
null
null
null
cmd/cmd/tags.go
jtvaughan/freebean
45cad104c392e5a4c0f5fce2446d51e0d70d0697
[ "BSD-2-Clause" ]
null
null
null
/* Copyright (c) 2021, Jordan Vaughan All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package cmd import ( "encoding/csv" "fmt" "github.com/jtvaughan/freebean/pkg/core" "github.com/jtvaughan/freebean/pkg/functions" "github.com/jtvaughan/freebean/pkg/parser" "github.com/spf13/cobra" "os" ) var tagsCmd = &cobra.Command{ Use: "tags", Short: "Print all tags", Long: `The tags subcommand reads a ledger from standard input and prints all tags in CSV format. The output includes a header. The -a flag makes Freebean print tagged accounts. The output will include a type column with the value "account" and a name column. Note that this flag makes the output repeat tags, once per tagged account. The -c flag makes Freebean print tagged commodities. The output will include a type column with the value "commodity" and a name column. Note that this flag makes the output repeat tags, once per tagged commodity. Specifying both -a and -c with interleave their results. The -d flag specifies the date on which to stop parsing. The date should be formatted "YYYY-MM-DD". Parsing stops at the end of the day, so accounts opened and commodities created on that day are included. Freebean parses all input by default.`, Run: func(cmd *cobra.Command, args []string) { runTags() }, } var tagsOptions = struct { Date Date PrintAccounts bool PrintCommodities bool }{} func init() { rootCmd.AddCommand(tagsCmd) tagsCmd.Flags().VarP(&tagsOptions.Date, "date", "d", "date to stop parsing") tagsCmd.Flags().BoolVarP(&tagsOptions.PrintAccounts, "print-accounts", "a", false, "print tagged accounts") tagsCmd.Flags().BoolVarP(&tagsOptions.PrintCommodities, "print-commodities", "c", false, "print tagged commodities") } func runTags() { done := &struct{}{} p := functions.NewParser(os.Stdin) p.AddCoreFunctions() date := core.Date(tagsOptions.Date) if !date.IsZero() { p.Functions["date"] = func(fn string, op parser.Operands, ctx *core.Context) error { if err := functions.DateFunction(fn, op, ctx); err != nil { return err } else if ctx.Date.After(date) { panic(done) } return nil } } defer func() { if r := recover(); r != nil && r != done { panic(r) } w := csv.NewWriter(os.Stdout) row := []string{"name"} addlColumns := tagsOptions.PrintAccounts || tagsOptions.PrintCommodities if addlColumns { row = append(row, "type", "name") } w.Write(row) for tn, tagged := range p.Context().Tags { row = append(row[:0], tn) if addlColumns { for _, to := range tagged { switch v := to.(type) { case *core.Account: if tagsOptions.PrintAccounts && !v.IsClosed(p.Context().Date) { row = append(row[:1], "account", v.Name) w.Write(row) } case *core.Commodity: if tagsOptions.PrintCommodities { row = append(row[:1], "commodity", v.Name) w.Write(row) } } } } else { w.Write(row) } } w.Flush() }() if err := p.Parse(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(2) } }
32.679389
117
0.71175
a3391222a301df745d3c307e7292b961f08becdd
353
swift
Swift
Sources/Mendoza/Plugins/TestExtractionPlugin.swift
IgorPlotnikov/Mendoza
a129904aac354e214e52fecaf8684ff7f500516e
[ "Apache-2.0" ]
50
2019-03-18T10:51:13.000Z
2022-03-24T12:27:48.000Z
Sources/Mendoza/Plugins/TestExtractionPlugin.swift
IgorPlotnikov/Mendoza
a129904aac354e214e52fecaf8684ff7f500516e
[ "Apache-2.0" ]
6
2019-04-16T06:20:27.000Z
2021-11-02T05:40:19.000Z
Sources/Mendoza/Plugins/TestExtractionPlugin.swift
IgorPlotnikov/Mendoza
a129904aac354e214e52fecaf8684ff7f500516e
[ "Apache-2.0" ]
10
2019-03-22T09:19:32.000Z
2021-11-24T08:24:21.000Z
// // TestExtractionPlugin.swift // Mendoza // // Created by Tomas Camin on 22/01/2019. // import Foundation class TestExtractionPlugin: Plugin<TestExtractionInput, [TestCase]> { init(baseUrl: URL, plugin: (data: String?, debug: Bool) = (nil, false)) { super.init(name: "TestExtractionPlugin", baseUrl: baseUrl, plugin: plugin) } }
23.533333
82
0.68272
0ee82c56c2ad451f5d18a4e2f26f8c2f52234881
1,593
h
C
R-link/aimms4r/src/ReadTable.h
aimms/R-Link
42007491f3565429e06d6124a476e3d1080ebee5
[ "DOC", "Unlicense" ]
1
2022-03-07T20:22:47.000Z
2022-03-07T20:22:47.000Z
R-link/aimms4r/src/ReadTable.h
aimms/R-Link
42007491f3565429e06d6124a476e3d1080ebee5
[ "DOC", "Unlicense" ]
null
null
null
R-link/aimms4r/src/ReadTable.h
aimms/R-Link
42007491f3565429e06d6124a476e3d1080ebee5
[ "DOC", "Unlicense" ]
2
2017-10-07T01:06:24.000Z
2021-02-25T04:53:46.000Z
/* This file is part of R-Link. R-Link 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. R-Link 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 R-Link. If not, see <http://www.gnu.org/licenses/>. */ #pragma once #include "IReadTable.h" namespace R{ class ReadTable : public Aimms::IReadTable{ public: ReadTable(){} virtual ~ReadTable(){ //std::wcout <<"~ReadTable dtor()" << std::endl; m_Column.clear(); } virtual void addRow( const std::vector<Aimms::Value>& row ) override { for (size_t i = 0; i < m_Column.size(); ++i){ try{ m_Column[i]->addValue(row[i]); } catch( ... ){ std::wcout << "Exception when adding column " << i << std::endl; throw; } } } Rcpp::DataFrame createDataFrame(){ Rcpp::DataFrame::Parent dfObj; Rcpp::CharacterVector names; for (auto column : m_Column){ column->commit(dfObj, names); } dfObj.attr("names") = names; return Rcpp::DataFrame(dfObj); } }; };
31.235294
80
0.595104
3e10ea75b9b1fcfd7404f6cfe6d013997d46350a
797
kt
Kotlin
src/main/kotlin/com/example/word_wrap/exception/CustomExceptionHandler.kt
sur3-bb2/word_wrap
0807c2e7afdacecab3f9bdfb6ce611b3d981f5f3
[ "Apache-2.0" ]
null
null
null
src/main/kotlin/com/example/word_wrap/exception/CustomExceptionHandler.kt
sur3-bb2/word_wrap
0807c2e7afdacecab3f9bdfb6ce611b3d981f5f3
[ "Apache-2.0" ]
null
null
null
src/main/kotlin/com/example/word_wrap/exception/CustomExceptionHandler.kt
sur3-bb2/word_wrap
0807c2e7afdacecab3f9bdfb6ce611b3d981f5f3
[ "Apache-2.0" ]
null
null
null
package com.example.word_wrap.exception import org.springframework.http.HttpStatus import org.springframework.web.bind.annotation.ControllerAdvice import org.springframework.web.bind.annotation.ExceptionHandler import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler import java.io.IOException import javax.servlet.http.HttpServletResponse import javax.validation.ConstraintViolationException @ControllerAdvice class CustomGlobalExceptionHandler : ResponseEntityExceptionHandler() { @ExceptionHandler(ConstraintViolationException::class) @Throws(IOException::class) fun handleConstraintViolation(error: ConstraintViolationException, response: HttpServletResponse) { response.sendError(HttpStatus.BAD_REQUEST.value(), error.message) } }
44.277778
103
0.848181
996f59dafd585e7faae903af1086f8d8ec09bcbd
403
h
C
headers/particle.h
chiragdhawan24/majorphyengine
e41f68defe32bd7d9fe676e0b3d993a16966da57
[ "MIT" ]
null
null
null
headers/particle.h
chiragdhawan24/majorphyengine
e41f68defe32bd7d9fe676e0b3d993a16966da57
[ "MIT" ]
null
null
null
headers/particle.h
chiragdhawan24/majorphyengine
e41f68defe32bd7d9fe676e0b3d993a16966da57
[ "MIT" ]
null
null
null
#include"namedefs.h" #include"vectormath.h" namespace wizphys{ class Particle{ public: Vector3D position; Vector3D velocity; Vector3D acceleration; Vector3D forceAccum; real damping; real massinverse; real mass; void integrate(real duration); bool hasFiniteMass(); real getMass(); void addForce(Vector3D newForce); Vector3D getVelocity(); }; }
20.15
37
0.677419
189e1af7dc3c0867b5ce2e7dfcc1832fd4f34dae
1,884
rb
Ruby
lib/rchess/move_validators/check_validator.rb
AlexeyBazanov/rchess
f0e0268a844ab5099eb80bc8d50736d2e82891fe
[ "MIT" ]
null
null
null
lib/rchess/move_validators/check_validator.rb
AlexeyBazanov/rchess
f0e0268a844ab5099eb80bc8d50736d2e82891fe
[ "MIT" ]
null
null
null
lib/rchess/move_validators/check_validator.rb
AlexeyBazanov/rchess
f0e0268a844ab5099eb80bc8d50736d2e82891fe
[ "MIT" ]
null
null
null
module Rchess class CheckValidator < MoveValidator def validate(turn, round) current_side_move_collections = round.get_move_collections turn.color opposite_side_move_collections = round.get_move_collections turn.color.opposite check_moves = collect_check_moves opposite_side_move_collections return if check_moves.length.zero? if can_defend? check_moves prohibit_all_except_king_and_defence check_moves.first, current_side_move_collections else prohibit_all_except_king current_side_move_collections end end private def can_defend?(check_moves) check_moves.length <= 1 end def collect_check_moves(move_collections) check_moves = [] move_collections.each do |move_collection| check_move = move_collection.check_move check_moves.push check_move unless check_move.nil? end check_moves end def prohibit_all_except_king(move_collections) exclude_king_moves(move_collections) do |move_collection| move_collection.prohibit_moves(get_move_prohibition) end end def prohibit_all_except_king_and_defence(check_move, move_collections) puts "\n" exclude_king_moves(move_collections) do |move_collection| move_collection.prohibit_moves(get_move_prohibition) do |moves| get_defencive_moves check_move, moves end end end def get_defencive_moves(check_move, moves) moves.reject { |move| check_move.intersect?(move.position_to) || move.attack_to?(check_move.figure) } end def exclude_king_moves(move_collections) move_collections.each do |move_collection| next if move_collection.figure.is_a? King yield move_collection end end def get_move_prohibition MoveProhibitionFactory.create_king_under_attack end end end
30.387097
107
0.737261
c6b724fa1abe00c04e2a08c7c395c97362fb3ff1
656
rb
Ruby
spec/cucumber/rest/body_spec.rb
blinkboxbooks/cucumber-rest.rb
3b6d53a77a42cb8c0140e9a1aac0ef75eb76e010
[ "MIT" ]
null
null
null
spec/cucumber/rest/body_spec.rb
blinkboxbooks/cucumber-rest.rb
3b6d53a77a42cb8c0140e9a1aac0ef75eb76e010
[ "MIT" ]
null
null
null
spec/cucumber/rest/body_spec.rb
blinkboxbooks/cucumber-rest.rb
3b6d53a77a42cb8c0140e9a1aac0ef75eb76e010
[ "MIT" ]
null
null
null
require "cucumber/rest/body" describe Cucumber::Rest::Body, :body do context "#ensure_empty" do def generate_response(body: nil) response = MockResponse.new response.body = body response end it "does not raise an error when the response body is empty" do response = generate_response(body: nil) expect { Cucumber::Rest::Body.ensure_empty(response: response) }.to_not raise_error end it "raises an error when the response body is non-empty" do response = generate_response(body: "something") expect { Cucumber::Rest::Body.ensure_empty(response: response) }.to raise_error end end end
29.818182
89
0.698171
8e98703ecf6a67fbc8620f26f87529b770785884
756
rb
Ruby
app/models/profile.rb
JhymerMartinez/mo_clon
36d3deb04b689e3691dd99f425ca6af1a10f9e07
[ "MIT" ]
null
null
null
app/models/profile.rb
JhymerMartinez/mo_clon
36d3deb04b689e3691dd99f425ca6af1a10f9e07
[ "MIT" ]
87
2015-01-28T17:38:08.000Z
2022-03-30T22:16:04.000Z
app/models/profile.rb
JhymerMartinez/mo_clon
36d3deb04b689e3691dd99f425ca6af1a10f9e07
[ "MIT" ]
1
2018-03-13T22:07:56.000Z
2018-03-13T22:07:56.000Z
# == Schema Information # # Table name: profiles # # id :integer not null, primary key # name :string # biography :text # user_id :integer not null # neuron_ids :text default([]), is an Array # created_at :datetime not null # updated_at :datetime not null # class Profile < ActiveRecord::Base belongs_to :user ## # rejects blanks and casts to Array # # @example Using strings # profile.neuron_ids = "1,2,3" # @example Using array # profile.neuron_ids = [1,2,3,""] def neuron_ids=(ids) ids = ids.split(",") if ids.is_a?(String) write_attribute :neuron_ids, Array(ids).flatten .reject(&:blank?) end end
24.387097
56
0.56746
dbf7efc2ab9792c24fbe0f79e7bb703d0b6d80d8
3,948
kt
Kotlin
web/src/main/kotlin/service/AuthenticationService.kt
MFori/Piskvorky
8333fa53793a3ea1a9c83cfa821b5c4e8573ec4b
[ "Apache-2.0" ]
null
null
null
web/src/main/kotlin/service/AuthenticationService.kt
MFori/Piskvorky
8333fa53793a3ea1a9c83cfa821b5c4e8573ec4b
[ "Apache-2.0" ]
null
null
null
web/src/main/kotlin/service/AuthenticationService.kt
MFori/Piskvorky
8333fa53793a3ea1a9c83cfa821b5c4e8573ec4b
[ "Apache-2.0" ]
null
null
null
package service import core.ApiClient import core.ApiResult import cz.martinforejt.piskvorky.api.Api import cz.martinforejt.piskvorky.api.model.* import cz.martinforejt.piskvorky.domain.model.UserWithToken import cz.martinforejt.piskvorky.domain.service.AuthenticationService import cz.martinforejt.piskvorky.domain.usecase.Error import cz.martinforejt.piskvorky.domain.usecase.Result import kotlinx.browser.localStorage import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.json.Json import kotlinx.serialization.modules.SerializersModule import org.w3c.dom.get import org.w3c.dom.set /** * [AuthenticationService] implementation for web client * * Created by Martin Forejt on 27.12.2020. * me@martinforejt.cz * * @author Martin Forejt */ class AuthenticationServiceImpl : AuthenticationService { private val format = Json { serializersModule = SerializersModule { } } @ExperimentalSerializationApi override suspend fun login(request: LoginRequest): Result<UserWithToken> { val res = ApiClient.post<LoginResponse>(Api.EP.LOGIN, format.encodeToString(LoginRequest.serializer(), request)) return if (res.isSuccess) { val data = res.data!! val user = UserWithToken(request.email, data.token) store(user.email, user.token) Result(user) } else { logout() res.toErrorResult() } } @ExperimentalSerializationApi override suspend fun register(request: RegisterRequest): Result<UserWithToken> { val res = ApiClient.post<LoginResponse>(Api.EP.REGISTER, format.encodeToString(RegisterRequest.serializer(), request)) return if (res.isSuccess) { val data = res.data!! val user = UserWithToken(request.email, data.token) store(user.email, user.token) Result(user) } else { res.toErrorResult() } } @ExperimentalSerializationApi override suspend fun changePassword(request: ChangePasswordRequest, token: String): Result<Unit> { val res = ApiClient.post<Unit>( Api.EP.CHANGE_PASSWORD, format.encodeToString(ChangePasswordRequest.serializer(), request), token ) return if (res.isSuccess) { Result(Unit) } else { res.toErrorResult() } } @ExperimentalSerializationApi override suspend fun lostPassword(request: LostPasswordRequest): Result<Unit> { val res = ApiClient.post<Unit>(Api.EP.LOST_PASSWORD, format.encodeToString(LostPasswordRequest.serializer(), request)) return if (res.isSuccess) { Result(Unit) } else { res.toErrorResult() } } @ExperimentalSerializationApi override suspend fun resetPassword(request: ResetPasswordRequest): Result<Unit> { val res = ApiClient.post<Unit>(Api.EP.RESET_PASSWORD, format.encodeToString(ResetPasswordRequest.serializer(), request)) return if (res.isSuccess) { Result(Unit) } else { res.toErrorResult() } } private fun <T : Any> ApiResult<*>.toErrorResult(): Result<T> { val error = error!! return Result( error = Error( error.code, error.message ) ) } private fun store(email: String, token: String) { localStorage["user_email"] = email localStorage["user_token"] = token } override fun logout() { localStorage.removeItem("user_email") localStorage.removeItem("user_token") } override fun getCurrentUser(): UserWithToken? { val email = localStorage["user_email"] val token = localStorage["user_token"] return if (email != null && token != null) { UserWithToken(email, token) } else { null } } }
32.9
128
0.650709
5b163fd2c9cf669619a5f19dd0e9828047036492
1,577
c
C
thread_io.c
angel-devicente/thread_io
fc5c375e99ed67285984aafd41acb5ee51ef0f2b
[ "MIT" ]
null
null
null
thread_io.c
angel-devicente/thread_io
fc5c375e99ed67285984aafd41acb5ee51ef0f2b
[ "MIT" ]
null
null
null
thread_io.c
angel-devicente/thread_io
fc5c375e99ed67285984aafd41acb5ee51ef0f2b
[ "MIT" ]
null
null
null
#include <mpi.h> #include <stdio.h> #include <string.h> #include <pthread.h> #include <unistd.h> #include "def.h" #include "thread_io.h" static pthread_t thread_id; static FILE* tlog; /*******************************************************/ void *io_processor(void *io_comm) { char buf[IO_MAX_LEN]; MPI_Status status; while (1) { MPI_Recv(&buf,IO_MAX_LEN,MPI_CHAR, MPI_ANY_SOURCE, MPI_ANY_TAG, *((MPI_Comm*)io_comm), &status); if (status.MPI_TAG == EXIT_IO_TAG) return 0; if (status.MPI_TAG == SOUT_IO) { fprintf(stdout,"[%d] %s",status.MPI_SOURCE,buf); } else if (status.MPI_TAG == SERR_IO) { fprintf(stderr,"[%d] %s",status.MPI_SOURCE,buf); } else if (status.MPI_TAG == SLOG_IO) { if (fprintf(tlog,"[%d] %s",status.MPI_SOURCE,buf) < 0) { fprintf(stderr, "STACK ERROR: cannot write to log-file"); }; } } return 0; } void init_io_comm (MPI_Comm comm, MPI_Comm *io_comm) { int rank; MPI_Comm_dup_with_info(comm,MPI_INFO_NULL, io_comm); MPI_Comm_rank(comm,&rank); if (rank ==0) { pthread_create(&thread_id, NULL, io_processor, io_comm); tlog = fopen(LOG_FILENAME,"w"); } MPI_Barrier(comm); } void print_t0(MPI_Comm io_comm, char* b, int bs, int stream) { MPI_Ssend(b,bs,MPI_CHAR,0,stream,io_comm); } void end_io_comm(MPI_Comm *io_comm) { int rank; MPI_Barrier(*io_comm); MPI_Comm_rank(*io_comm, &rank); if (rank == 0) { MPI_Ssend(MPI_BOTTOM,0,MPI_CHAR,0,EXIT_IO_TAG,*io_comm); pthread_join(thread_id,NULL); fclose(tlog); } MPI_Comm_free(io_comm); }
25.031746
67
0.639822
95cffc364ccba6fc4a92b4ca81625bee576b5d48
8,701
css
CSS
public/style.css
grace-shopper-gh1809/donutJar
2c6686f17e67682cff0c14ba2d8cc9b78960a069
[ "MIT" ]
null
null
null
public/style.css
grace-shopper-gh1809/donutJar
2c6686f17e67682cff0c14ba2d8cc9b78960a069
[ "MIT" ]
85
2018-10-29T20:04:12.000Z
2018-11-06T22:59:10.000Z
public/style.css
grace-shopper-gh1809/donutJar
2c6686f17e67682cff0c14ba2d8cc9b78960a069
[ "MIT" ]
null
null
null
* { box-sizing: border-box; font-family: arial, sans-serif; } body { font-family: sans-serif; background: linear-gradient(#f57cbe, #d1aac9); height: 100%; margin: 0; background-repeat: no-repeat; background-attachment: fixed; font-weight: bold; color: rgba(59, 5, 46, 0.863); text-shadow: 0px 2px 3px rgba(22, 3, 15, 0.205); /* text-shadow: 2px 8px 6px rgba(0,0,0,0.2), 0px -5px 35px rgba(255,255,255,0.3); */ } a { text-decoration: none; } label { display: block; color: rgba(59, 5, 46, 0.863); } nav { justify-content: space-evenly; white-space: nowrap; align-items: center; color: rgba(59, 5, 46, 0.863); background-color: rgba(238, 217, 233, 0.863); display: flex; height: 4em; padding: 1em; width: 100vw; position: fixed; z-index: 2; text-shadow: 2px 8px 6px rgba(0, 0, 0, 0.2), 0px -5px 35px rgba(255, 255, 255, 0.3); } nav a { display: inline-block; margin: 1em; } h1 { size: 20em; margin-left: 2em; text-shadow: 2px 8px 6px rgba(0, 0, 0, 0.2), 0px -5px 35px rgba(255, 255, 255, 0.3); } nav .home { flex: 0 0 10; color: rgba(59, 5, 46, 0.863); float: left; height: 1.5em; margin: 0 1.5em 0 0; text-decoration: none; font-size: 1em; padding: 1em; } nav .signin { float: center; height: 1.5em; margin: 0 1.5em 0 0; color: rgba(59, 5, 46, 0.863); text-decoration: none; font-size: 1em; padding: 0.5em; } form div { margin: 1em; display: inline-block; } .email { margin: 1em; display: inline-block; /* flex-direction: column; */ justify-content: center; position: relative; padding-top: 5em; } .password { margin: 1em; display: inline-block; /* flex-direction: column; */ justify-content: center; position: relative; padding-top: 5em; } form { color: rgba(59, 5, 46, 0.863); justify-content: center; margin: 7em; } .homepage { color: rgba(59, 5, 46, 0.863); justify-content: center; margin: 10em; } .donut-title { text-decoration: none; text-align: center; color: rgba(59, 5, 46, 0.863); } .sides { display: flex; justify-content: center; align-content: center; } .wrap { margin: 1em; color: rgb(78, 9, 52); text-decoration: none; } .donut-header, .single-product-title { padding-top: 3em; text-align: center; color: rgb(78, 9, 52); text-shadow: 2px 8px 6px rgba(0, 0, 0, 0.2), 0px -5px 35px rgba(255, 255, 255, 0.3); /* text-shadow: rgba(124, 51, 116, 0.452) 1px 0 10px; */ } .left-side { display: flex; flex-wrap: wrap; justify-content: center; } .single-product { justify-content: center; text-align: center; } .top-padding { padding-top: 7em; } .buttons { text-decoration: none; border-radius: 19%; border: 0.1em solid rgb(243, 75, 159); text-align: center; justify-content: center; height: 2em; width: 6em; margin: 0.5em; padding: 0.1em; font-size: 0.8em; font-weight: bold; color: rgb(248, 210, 242) !important; background-color: rgb(243, 75, 159); -webkit-box-shadow: inset rgba(255, 254, 255, 0.6) 0 0.3em 0.3em, inset rgba(0, 0, 0, 0.15) 0 -0.1em 0.3em, /* inner shadow */ hsl(327, 70%, 50%) 0 0.1em 3px, hsl(327, 80%, 40%) 0 0.3em 1px, /* color border */ rgba(0, 0, 0, 0.2) 0 0.5em 5px; /* drop shadow */ -moz-box-shadow: inset rgba(255, 254, 255, 0.6) 0 0.3em 0.3em, inset rgba(0, 0, 0, 0.15) 0 -0.1em 0.3em, /* inner shadow */ hsl(327, 70%, 50%) 0 0.1em 3px, hsl(327, 80%, 40%) 0 0.3em 1px, /* color border */ rgba(0, 0, 0, 0.2) 0 0.5em 5px; /* drop shadow */ box-shadow: inset rgba(255, 254, 255, 0.6) 0 0.3em 0.3em, inset rgba(0, 0, 0, 0.15) 0 -0.1em 0.3em, /* inner shadow */ hsl(327, 70%, 50%) 0 0.1em 3px, hsl(327, 80%, 40%) 0 0.3em 1px, /* color border */ rgba(0, 0, 0, 0.2) 0 0.5em 5px; /* drop shadow */ } .google { /* color: rgba(59, 5, 46, 0.863); */ justify-content: center; margin: 1em; width: 7em; height: 3em; padding: 0.5em; font-weight: bold; } .search-btn { padding: 0.1em; justify-content: center; font-weight: bold; } .cart { display: flex; flex-wrap: wrap; justify-content: center; } .checkout { margin: 1em; padding-top: 10em; } .buttons:hover { background-color: hsl(327, 100%, 83%); } .buttons:focus { outline: none; color: rgba(254, 255, 255, 0.9) !important; text-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px; } .buttons:active { background-image: -webkit-gradient( radial, 50% 0, 100, 50% 0, 0, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 0)) ), url(noise.png); background-image: -moz-gradient( radial, 50% 0, 100, 50% 0, 0, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 0)) ), url(noise.png); background-image: gradient( radial, 50% 0, 100, 50% 0, 0, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 0)) ), url(noise.png); -webkit-box-shadow: inset rgba(255, 255, 255, 0.6) 0 0.3em 0.3em, inset rgba(0, 0, 0, 0.2) 0 -0.1em 0.3em, /* inner shadow */ rgba(0, 0, 0, 0.4) 0 0.1em 1px, /* border */ rgba(0, 0, 0, 0.2) 0 0.2em 6px; /* drop shadow */ -moz-box-shadow: inset rgba(255, 255, 255, 0.6) 0 0.3em 0.3em, inset rgba(0, 0, 0, 0.2) 0 -0.1em 0.3em, /* inner shadow */ rgba(0, 0, 0, 0.4) 0 0.1em 1px, /* border */ rgba(0, 0, 0, 0.2) 0 0.2em 6px; /* drop shadow */ box-shadow: inset rgba(255, 255, 255, 0.6) 0 0.3em 0.3em, inset rgba(0, 0, 0, 0.2) 0 -0.1em 0.3em, /* inner shadow */ rgba(0, 0, 0, 0.4) 0 0.1em 1px, /* border */ rgba(0, 0, 0, 0.2) 0 0.2em 6px; /* drop shadow */ -webkit-transform: translateY(0.2em); -moz-transform: translateY(0.2em); transform: translateY(0.2em); } .usersb { justify-content: center; vertical-align: middle; } .cart-image { width: 3em; height: 3em; clear: both; } table { /* border-collapse: separate; */ /* border-spacing: 0; padding: 0em; */ color: rgba(59, 5, 46, 0.863); font: 1.4em; } th, td { padding: 0.7em 0.7em; vertical-align: middle; text-align: center; } thead { background: rgb(243, 75, 159); background: linear-gradient (rgb(243, 75, 159), #f395e7); color: #fff; font-size: 1em; color: rgb(248, 210, 242) !important; background-color: rgb(243, 75, 159); -webkit-box-shadow: inset rgba(255, 254, 255, 0.6) 0 0.3em 0.3em, inset rgba(0, 0, 0, 0.15) 0 -0.1em 0.3em, /* inner shadow */ hsl(327, 70%, 50%) 0 0.1em 3px, hsl(327, 80%, 40%) 0 0.3em 1px, /* color border */; -moz-box-shadow: inset rgba(255, 254, 255, 0.6) 0 0.3em 0.3em, inset rgba(0, 0, 0, 0.15) 0 -0.1em 0.3em, /* inner shadow */ hsl(327, 70%, 50%) 0 0.1em 3px, hsl(327, 80%, 40%) 0 0.3em 1px, /* color border */; box-shadow: inset rgba(255, 254, 255, 0.6) 0 0.3em 0.3em, inset rgba(0, 0, 0, 0.15) 0 -0.1em 0.3em, /* inner shadow */ hsl(327, 70%, 50%) 0 0.1em 3px, hsl(327, 80%, 40%) 0 0.3em 1px, /* color border */; } td { border-bottom: 0.05em solid #cecfd5; border-right: 0.05em solid #cecfd5; vertical-align: middle; text-align: center; } td:first-child { border-left: 0.05em solid #cecfd5; } .cart-form { display: block; height: 10%; } .order-padding { padding: 0em; margin: 0.5em; padding-top: 0.5em; } .cart-title { display: block; justify-content: center; text-align: left; } .cart-image { text-align: left; justify-content: center; font-size: 0.5em; } .reviewrating { display: inline-block; /* flex-wrap: wrap; */ justify-content: center; text-shadow: none; margin-right: 1em; } .reviewratingstar { display: inline-block; /* margin-top: 8em; */ margin-right: 1em; /* justify-content: center; */ text-align: center; text-shadow: none; } .reviewform { display: inline-block; margin-right: 1em; justify-content: center; text-align: center; text-shadow: none; } .reviewratingform { display: inline-block; justify-content: left; text-shadow: none; } .formratingstar { display: inline-block; margin-right: 1em; text-align: left; text-shadow: none; } .form-reviewform { margin-bottom: 1em; display: inline-block; justify-content: left; text-align: left; text-shadow: none; } /* drop down menu */ .custom-select { position: relative; font-family: Arial; background: rgb(250, 226, 246); color: rgba(59, 5, 46, 0.863); font-size: 1em; border: 0.1em solid rgb(250, 226, 246); } .textbox { position: relative; font-family: Arial; background-color: rgb(250, 226, 246); color: rgba(59, 5, 46, 0.863); font-size: 1em; margin: 0.5em; border: 0.1em solid rgb(250, 226, 246); vertical-align: middle; }
20.915865
72
0.600161
4946d1dbf708e2508829fe777208e1469f70247f
389
swift
Swift
Isomet/Portals/PortalStart.swift
mtrsservices/demon
f626faca1605bb58c8140f3fb97f219d0dc6f4d8
[ "MIT" ]
null
null
null
Isomet/Portals/PortalStart.swift
mtrsservices/demon
f626faca1605bb58c8140f3fb97f219d0dc6f4d8
[ "MIT" ]
null
null
null
Isomet/Portals/PortalStart.swift
mtrsservices/demon
f626faca1605bb58c8140f3fb97f219d0dc6f4d8
[ "MIT" ]
null
null
null
let Portal = "Portal" func PortalStartLink(URL("./1"){ func start(){ INSERT(ParametersArray[]=['0','...','100']) INSERT(MenuOptionsArray[]=['0','...','61']) INSERT(PermissionsArray[]=['0','...','17']) INSERT(UserArray[]=['0','1','2','3'])} if User = (UserAthenticated) then {return Start.append.UserArray[]=['4'] else{ return print("User"+""+"Athentication"+""+"Failed")
22.882353
53
0.596401
cb1a053c8dfc68f93c75f50e4afad3b2ca52fc69
397
kt
Kotlin
buildSrc/src/main/java/Dependencies.kt
Innovattic/App-Badge
a87b0659b4b331701623cb0c6e495f5c1f75f23a
[ "MIT" ]
1
2021-09-14T14:01:02.000Z
2021-09-14T14:01:02.000Z
buildSrc/src/main/java/Dependencies.kt
Innovattic/App-Badge
a87b0659b4b331701623cb0c6e495f5c1f75f23a
[ "MIT" ]
null
null
null
buildSrc/src/main/java/Dependencies.kt
Innovattic/App-Badge
a87b0659b4b331701623cb0c6e495f5c1f75f23a
[ "MIT" ]
null
null
null
object Versions { const val kotlin = "1.5.30" const val gradlePlugin = "7.0.1" const val projectVersion = "1.0.4" } object BuildScriptPlugins { const val android = "com.android.tools.build:gradle:${Versions.gradlePlugin}" const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}" } object Plugins { const val appBadgeId = "com.innovattic.badge" }
26.466667
85
0.700252
7fba380d633cca1b3126f7360f3bb7f7cf5ae026
217
go
Go
checkParam.go
gonyyi/mutt
9333a661a62bd93a1c23cb81da24334636e91445
[ "MIT" ]
null
null
null
checkParam.go
gonyyi/mutt
9333a661a62bd93a1c23cb81da24334636e91445
[ "MIT" ]
null
null
null
checkParam.go
gonyyi/mutt
9333a661a62bd93a1c23cb81da24334636e91445
[ "MIT" ]
null
null
null
// (C) 2021 GON Y YI. // https://gonyyi.com/copyright.txt package mutt func CheckParamString(fields ...string) bool { for i := 0; i < len(fields); i++ { if fields[i] == "" { return false } } return true }
15.5
46
0.599078
e753ae0bbb9fe406685a205661e19967d59f6dbe
2,061
js
JavaScript
client/src/statuspage/Statuspage.test.js
noeleont/renku-ui
f9c5429d8a724386bc3783571beeac276cc241bf
[ "Apache-2.0" ]
7
2019-02-07T13:28:26.000Z
2021-10-19T05:26:22.000Z
client/src/statuspage/Statuspage.test.js
noeleont/renku-ui
f9c5429d8a724386bc3783571beeac276cc241bf
[ "Apache-2.0" ]
1,255
2018-05-17T22:13:29.000Z
2022-03-31T11:05:42.000Z
client/src/statuspage/Statuspage.test.js
noeleont/renku-ui
f9c5429d8a724386bc3783571beeac276cc241bf
[ "Apache-2.0" ]
4
2018-06-01T08:55:48.000Z
2022-02-17T10:19:52.000Z
/*! * Copyright 2021 - Swiss Data Science Center (SDSC) * A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and * Eidgenössische Technische Hochschule Zürich (ETHZ). * * 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. */ /** * renku-ui * * Statuspage.test.js * Tests for statuspage code. */ import React from "react"; import ReactDOM from "react-dom"; import { MemoryRouter } from "react-router-dom"; import { statuspage as fakeStatuspage } from "../api-client/test-samples"; import { StateModel, globalSchema } from "../model"; import { StatuspageBanner, StatuspageDisplay } from "../statuspage"; function dummyStatusSummary() { return { retrieved_at: new Date(), statuspage: fakeStatuspage, error: null }; } describe("rendering", () => { const model = new StateModel(globalSchema); const statusSummary = dummyStatusSummary(); model.subModel("statuspage").setObject(statusSummary); const location = { pathname: "" }; it("renders StatuspageBanner", () => { const div = document.createElement("div"); document.body.appendChild(div); ReactDOM.render( <MemoryRouter> <StatuspageBanner store={model.reduxStore} model={model} location={location} /> </MemoryRouter>, div ); }); it("renders StatuspageDetails", () => { const div = document.createElement("div"); document.body.appendChild(div); ReactDOM.render( <MemoryRouter> <StatuspageDisplay store={model.reduxStore} model={model} /> </MemoryRouter>, div ); }); });
30.761194
87
0.693838
672c1d8f650051131845ac40e711a2ccbacdd94a
333
lua
Lua
assets/preload/characters/rtbf.lua
NT810/fnfremix
14ff85a57d8157d0288fbb9e515e93df34c75ec0
[ "Apache-2.0" ]
null
null
null
assets/preload/characters/rtbf.lua
NT810/fnfremix
14ff85a57d8157d0288fbb9e515e93df34c75ec0
[ "Apache-2.0" ]
null
null
null
assets/preload/characters/rtbf.lua
NT810/fnfremix
14ff85a57d8157d0288fbb9e515e93df34c75ec0
[ "Apache-2.0" ]
1
2022-03-12T12:41:36.000Z
2022-03-12T12:41:36.000Z
function onCreate() setPropertyFromClass('GameOverSubstate', 'characterName', 'rtbf'); --Character json file for the death animation setPropertyFromClass('GameOverSubstate', 'loopSoundName', 'heartbreak'); --put in mods/music/ setPropertyFromClass('GameOverSubstate', 'endSoundName', 'heartbreakend'); --put in mods/music/ end
66.6
114
0.771772
cf379fe2717dd0c923d1316dc3447cd90ea2aa98
411
kt
Kotlin
compiler/fir/analysis-tests/testData/resolve/scopes/specialFunctionInJava_3.kt
andreyfomenkov/kotlin-relaxed
0f3f251454e49d20d4c7242beeac5d4bda021c28
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
compiler/fir/analysis-tests/testData/resolve/scopes/specialFunctionInJava_3.kt
andreyfomenkov/kotlin-relaxed
0f3f251454e49d20d4c7242beeac5d4bda021c28
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
compiler/fir/analysis-tests/testData/resolve/scopes/specialFunctionInJava_3.kt
andreyfomenkov/kotlin-relaxed
0f3f251454e49d20d4c7242beeac5d4bda021c28
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
// SCOPE_DUMP: D:x;getX;y;getY // FILE: B.java public abstract class B extends A { @Override public int getX() { return 0; } } // FILE: C.java public interface C { int getX(); int getY(); } // FILE: D.java public abstract class D extends B implements C {} // FILE: main.kt abstract class A { open val x: Int get() = 1 open val y: Int get() = 2 } class DImpl : D()
14.172414
49
0.579075
e654764b1b101c29a5d2f7b86cfd12f77348f911
826
swift
Swift
library/swift/TestEngineBuilder.swift
phlax/envoy-mobile
4f4b43d6c4d03aaec8b2229a6142283f04ab75a3
[ "Apache-2.0" ]
399
2019-06-17T23:05:09.000Z
2020-11-11T09:15:47.000Z
library/swift/TestEngineBuilder.swift
phlax/envoy-mobile
4f4b43d6c4d03aaec8b2229a6142283f04ab75a3
[ "Apache-2.0" ]
619
2019-06-17T22:22:59.000Z
2020-11-11T03:58:27.000Z
library/swift/TestEngineBuilder.swift
phlax/envoy-mobile
4f4b43d6c4d03aaec8b2229a6142283f04ab75a3
[ "Apache-2.0" ]
40
2019-06-18T16:09:58.000Z
2020-10-21T19:11:42.000Z
import Foundation /// Builder that can be used to construct instances of the Envoy engine /// which have the added functionality of returning "direct" responses to /// requests over a local connection. This can be particularly useful for mocking/testing. public final class TestEngineBuilder: EngineBuilder { /// Adds a direct response configuration which will be used when starting the engine. /// Doing so will cause Envoy to clear its route cache for each stream in order to allow /// filters to mutate headers (which can subsequently affect routing). /// /// - parameter response: The response configuration to add. /// /// - returns: This builder. @discardableResult public func addDirectResponse(_ response: DirectResponse) -> Self { self.addDirectResponseInternal(response) return self } }
41.3
90
0.751816
1410c372222c2ae5c4ad890f48fd7478a98bef6f
5,255
lua
Lua
torch_lua/src/util/torch_util.lua
migushu/rul-1
a25f8a21ab978cfef2826ed7918de6dccaaa1c22
[ "MIT" ]
17
2017-11-22T19:14:49.000Z
2021-11-09T07:22:52.000Z
torch_lua/src/util/torch_util.lua
johnsbuck/rul
a25f8a21ab978cfef2826ed7918de6dccaaa1c22
[ "MIT" ]
null
null
null
torch_lua/src/util/torch_util.lua
johnsbuck/rul
a25f8a21ab978cfef2826ed7918de6dccaaa1c22
[ "MIT" ]
4
2018-11-19T01:35:56.000Z
2020-02-17T05:47:07.000Z
---------------------------------------------------------------------- -- A utility module containing Torch-based functions for editing -- tensors, normalization, and other purposes. -- @author John Bucknam -- @license MIT -- @module Torch-Utilities ---------------------------------------------------------------------- require 'torch' ---------------------------------------------------------------------- -- Matrix Utilities -- @section matrix-utilities ---------------------------------------------------------------------- --- -- Measures the covariance between 2 tensors with 1-D data vectors. -- @tensor x -- @tensor y -- @treturn number The covariance of x and y function rutil.cov(x, y) local len = x:size()[1] local covariance = 0 for i=1, len do local a = x[i] - x:mean() local b = y[i] - y:mean() covariance = covariance + (a*b)/len end return covariance end --- -- Creates a covariance matrix for a given tensor. -- @tensor X -- @treturn tensor A 2-D matrix with matrix[i][j] corresponding to cov(i,j) function rutil.cov_matrix(X) local len = X:size()[2] local matrix = torch.Tensor(len,len) for i=1, len do print("I: ", i) for j=1, len do print("J: ", j) matrix[i][j] = rutil.cov(X[{{},i}], X[{{},j}]) end end return matrix end --- -- Measures the correlation between 2 tensors with 1-D data vectors. -- @tensor x -- @tensor y -- @treturn number The correlation of x and y function rutil.corr(x,y) local correlation = 0 return rutil.cov(x,y)/(x:std()*y:std()) end ---------------------------------------------------------------------- -- Normalization -- @section normalization ---------------------------------------------------------------------- --- -- Subtracts each point of a given -- tensor by the minimum and divides by -- the difference between the maximum -- and minimum. -- -- Feature Scaling Formula: (x - Low_X)/(High_X - Low_X) -- -- @tensor data Vectors in given Tensor -- @treturn tensor Scaled tensor based on minimum and maximum function rutil.scale_features(data) local info = data:clone() -- Feature Scaling if #info:size() > 1 then for i=1, info:size()[2] do local min = info[{{},i}]:min() local max = info[{{},i}]:max() if max ~= min then info[{{},i}]:add(-min) info[{{},i}]:div(max-min) else info[{{},i}]:add(-min+1) end end else local min = info:min() local max = info:max() if max ~= min then info:add(-min) info:div(max-min) else info[{{},i}]:add(-min+1) end end return info end --- -- Takes an existing tensor and subtracts each value by its column's -- mean. Afterwards, it divides itself by its standard deviation. -- -- Standardization Formula: (x - MEAN) / STD -- -- @tensor data A Torch tensor containing data to be normalized. -- @treturn tensor A normalized Torch tensor of the same type as data. function rutil.standardize(data) local info = data:clone() -- Standardization if #info:size() > 1 then MEAN = {} STD = {} for i=1, info:size()[#info:size()] do MEAN[i] = info[{{},i}]:mean() STD[i] = info[{{},i}]:std() info[{{},i}]:add(-info[{{},i}]:mean()) info[{{},i}]:div(info[{{},i}]:std()) end else MEAN = info:mean() STD = info:std() info:add(-info:mean()) info:div(info:std()) end return info end --- -- Takes a standardized Tensor and multiples it by the STD. -- It then adds the MEAN to each data point. -- -- Destandardize Formula: (x * prevSTD) + prevMEAN -- -- @tensor data A Torch Tensor containing data vectors. -- @treturn tensor A destandardized tensor. function rutil.destandardize(data) local info = data:clone() -- Standardization if #info:size() > 1 then for i=1, info:size()[#info:size()] do info[{{},i}]:mul(STD[i]) info[{{},i}]:add(MEAN[i]) end else info:mul(STD) info:add(MEAN) end return info end ---------------------------------------------------------------------- -- Normalization based on Previous Data Vector -- @section normalization-prev-data ---------------------------------------------------------------------- --- -- Returns all data points as the log of themselves -- minus the log of their previous data point. -- -- Subtractive Log Formula: ln(close_price[i]) - ln(close_price[i-1]) -- -- @tensor data A Torch Tensor containing data vectors. -- @treturn tensor A normalized Torch tensor of the same type as data. function rutil.log_prev(data) local info = data:clone() --Previous log minus info = info:log() for i=1, info:size()[1] - 1 do info[i] = info[i] - info[i+1] end return info end --- -- Returns a Tensor with each point being subtracted -- by the previous point and divided by the previous point. -- -- Divisive Percent Formula: ((X[i] - X[i-1]) * 100)/X[i-1] -- -- @tensor data A Torch Tensor containing data vectors. -- @treturn tensor A normalized Torch tensor of the same type as data. function rutil.percent_prev(data) local info = data:clone() --Previous percent for i=1, info:size()[1] - 1 do info[i] = (info[i] - info[i+1])/info[i+1] end return info end
25.386473
75
0.559087
11e47cbd109bfb9c190110c889aa6701caf6aec8
22,079
html
HTML
Docs/api/UnofficialMultiplayerAPI.ISyncMethod.html
Pecius/UnofficialMultiplayerAPI
0775cb4052b82aa18ee427b7bf23ee8a41f17fd6
[ "MIT" ]
2
2019-03-14T21:58:06.000Z
2019-05-19T06:45:58.000Z
Docs/api/UnofficialMultiplayerAPI.ISyncMethod.html
Pecius/UnofficialMultiplayerAPI
0775cb4052b82aa18ee427b7bf23ee8a41f17fd6
[ "MIT" ]
1
2019-03-15T12:43:46.000Z
2019-03-15T12:43:46.000Z
Docs/api/UnofficialMultiplayerAPI.ISyncMethod.html
Pecius/UnofficialMultiplayerAPI
0775cb4052b82aa18ee427b7bf23ee8a41f17fd6
[ "MIT" ]
null
null
null
<!DOCTYPE html> <!--[if IE]><![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Interface ISyncMethod </title> <meta name="viewport" content="width=device-width"> <meta name="title" content="Interface ISyncMethod "> <meta name="generator" content="docfx 2.40.12.0"> <link rel="shortcut icon" href="../favicon.png"> <link rel="stylesheet" href="../styles/docfx.vendor.css"> <link rel="stylesheet" href="../styles/docfx.css"> <link rel="stylesheet" href="../styles/main.css"> <meta property="docfx:navrel" content="../toc"> <meta property="docfx:tocrel" content="toc"> <meta property="docfx:rel" content="../"> </head> <body data-spy="scroll" data-target="#affix" data-offset="120"> <div id="wrapper"> <header> <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar"> <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"> <img id="logo" class="svg" src="../logo.png" alt=""> </a> </div> <div class="collapse navbar-collapse" id="navbar"> <form class="navbar-form navbar-right" role="search" id="search"> <div class="form-group"> <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off"> </div> </form> <ul class="nav level1 navbar-nav"> <li> <a href="../api/UnofficialMultiplayerAPI.html" title="API Documentation">API Documentation</a> </li> </ul> </div> </div> </nav> <div class="subnav navbar navbar-default"> <div class="container hide-when-search" id="breadcrumb"> <ul class="breadcrumb"> <li></li> </ul> </div> </div> </header> <div class="container body-content"> <div id="search-results"> <div class="search-list"></div> <div class="sr-items"> <p><i class="glyphicon glyphicon-refresh index-loading"></i></p> </div> <ul id="pagination"></ul> </div> </div> <div role="main" class="container body-content hide-when-search"> <div class="sidenav hide-when-search"> <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a> <div class="sidetoggle collapse" id="sidetoggle"> <div> <div class="sidefilter"> <form class="toc-filter"> <span class="glyphicon glyphicon-filter filter-icon"></span> <input type="text" id="toc_filter_input" placeholder="Enter here to filter..." onkeypress="if(event.keyCode==13) {return false;}"> </form> </div> <div class="sidetoc"> <div class="toc" id="toc"> <ul class="nav level1"> <li class=""> <span class="expand-stub"></span> <a href="UnofficialMultiplayerAPI.html" title="UnofficialMultiplayerAPI" class="">UnofficialMultiplayerAPI</a> <ul class="nav level2"> <li class=""> <a href="UnofficialMultiplayerAPI.IMultiplayerInit.html" title="IMultiplayerInit" class="">IMultiplayerInit</a> </li> <li class=""> <a href="UnofficialMultiplayerAPI.ISyncable.html" title="ISyncable" class="">ISyncable</a> </li> <li class=""> <a href="UnofficialMultiplayerAPI.ISyncField.html" title="ISyncField" class="">ISyncField</a> </li> <li class="active"> <a href="UnofficialMultiplayerAPI.ISyncMethod.html" title="ISyncMethod" class="active">ISyncMethod</a> </li> <li class=""> <a href="UnofficialMultiplayerAPI.MPApi.html" title="MPApi" class="">MPApi</a> </li> <li class=""> <a href="UnofficialMultiplayerAPI.SyncContext.html" title="SyncContext" class="">SyncContext</a> </li> <li class=""> <a href="UnofficialMultiplayerAPI.SyncerAttribute.html" title="SyncerAttribute" class="">SyncerAttribute</a> </li> <li class=""> <a href="UnofficialMultiplayerAPI.SyncMethodAttribute.html" title="SyncMethodAttribute" class="">SyncMethodAttribute</a> </li> <li class=""> <a href="UnofficialMultiplayerAPI.SyncWorker.html" title="SyncWorker" class="">SyncWorker</a> </li> <li class=""> <a href="UnofficialMultiplayerAPI.UninitializedAPI.html" title="UninitializedAPI" class="">UninitializedAPI</a> </li> </ul> </li> </ul> </div> </div> </div> </div> </div> <div class="article row grid-right"> <div class="col-md-10"> <article class="content wrap" id="_content" data-uid="UnofficialMultiplayerAPI.ISyncMethod"> <h1 id="UnofficialMultiplayerAPI_ISyncMethod" data-uid="UnofficialMultiplayerAPI.ISyncMethod" class="text-break">Interface ISyncMethod </h1> <div class="markdown level0 summary"><p>SyncMethod interface.</p> </div> <div class="markdown level0 conceptual"></div> <h6><strong>Namespace</strong>: <a class="xref" href="UnofficialMultiplayerAPI.html">UnofficialMultiplayerAPI</a></h6> <h6><strong>Assembly</strong>: 0UnofficialMultiplayerAPI.dll</h6> <h5 id="UnofficialMultiplayerAPI_ISyncMethod_syntax">Syntax</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">public interface ISyncMethod</code></pre> </div> <h5 id="UnofficialMultiplayerAPI_ISyncMethod_remarks"><strong>Remarks</strong></h5> <div class="markdown level0 remarks"><p>See <a class="xref" href="UnofficialMultiplayerAPI.SyncMethodAttribute.html">SyncMethodAttribute</a>, <a class="xref" href="UnofficialMultiplayerAPI.MPApi.html#UnofficialMultiplayerAPI_MPApi_RegisterSyncMethod_System_Reflection_MethodInfo_UnofficialMultiplayerAPI_SyncType___">RegisterSyncMethod(MethodInfo, SyncType[])</a> and <a class="xref" href="UnofficialMultiplayerAPI.MPApi.html#UnofficialMultiplayerAPI_MPApi_RegisterSyncMethod_System_Type_System_String_UnofficialMultiplayerAPI_SyncType___">RegisterSyncMethod(Type, String, SyncType[])</a> to see how to use it.</p> </div> <h3 id="methods">Methods </h3> <a id="UnofficialMultiplayerAPI_ISyncMethod_CancelIfAnyArgNull_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.CancelIfAnyArgNull*"></a> <h4 id="UnofficialMultiplayerAPI_ISyncMethod_CancelIfAnyArgNull" data-uid="UnofficialMultiplayerAPI.ISyncMethod.CancelIfAnyArgNull">CancelIfAnyArgNull()</h4> <div class="markdown level1 summary"><p>Instructs SyncMethod to cancel synchronization if any arg is null.</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">ISyncMethod CancelIfAnyArgNull()</code></pre> </div> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.ISyncMethod.html">ISyncMethod</a></td> <td><p>self</p> </td> </tr> </tbody> </table> <a id="UnofficialMultiplayerAPI_ISyncMethod_CancelIfNoSelectedMapObjects_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.CancelIfNoSelectedMapObjects*"></a> <h4 id="UnofficialMultiplayerAPI_ISyncMethod_CancelIfNoSelectedMapObjects" data-uid="UnofficialMultiplayerAPI.ISyncMethod.CancelIfNoSelectedMapObjects">CancelIfNoSelectedMapObjects()</h4> <div class="markdown level1 summary"><p>Instructs SyncMethod to cancel synchronization if no map objects were selected during call replication.</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">ISyncMethod CancelIfNoSelectedMapObjects()</code></pre> </div> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.ISyncMethod.html">ISyncMethod</a></td> <td><p>self</p> </td> </tr> </tbody> </table> <a id="UnofficialMultiplayerAPI_ISyncMethod_CancelIfNoSelectedWorldObjects_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.CancelIfNoSelectedWorldObjects*"></a> <h4 id="UnofficialMultiplayerAPI_ISyncMethod_CancelIfNoSelectedWorldObjects" data-uid="UnofficialMultiplayerAPI.ISyncMethod.CancelIfNoSelectedWorldObjects">CancelIfNoSelectedWorldObjects()</h4> <div class="markdown level1 summary"><p>Instructs SyncMethod to cancel synchronization if no world objects were selected during call replication.</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">ISyncMethod CancelIfNoSelectedWorldObjects()</code></pre> </div> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.ISyncMethod.html">ISyncMethod</a></td> <td><p>self</p> </td> </tr> </tbody> </table> <a id="UnofficialMultiplayerAPI_ISyncMethod_ExposeParameter_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.ExposeParameter*"></a> <h4 id="UnofficialMultiplayerAPI_ISyncMethod_ExposeParameter_System_Int32_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.ExposeParameter(System.Int32)">ExposeParameter(Int32)</h4> <div class="markdown level1 summary"><p>Use parameter&apos;s type&apos;s IExposable interface to transfer its data to other clients.</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">ISyncMethod ExposeParameter(int index)</code></pre> </div> <h5 class="parameters">Parameters</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td> <td><span class="parametername">index</span></td> <td><p>Index at which parameter is to be marked to expose</p> </td> </tr> </tbody> </table> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.ISyncMethod.html">ISyncMethod</a></td> <td><p>self</p> </td> </tr> </tbody> </table> <h5 id="UnofficialMultiplayerAPI_ISyncMethod_ExposeParameter_System_Int32__remarks">Remarks</h5> <div class="markdown level1 remarks"><p>IExposable is the interface used for saving data to the save which means it utilizes IExposable.ExposeData() method.</p> </div> <a id="UnofficialMultiplayerAPI_ISyncMethod_MinTime_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.MinTime*"></a> <h4 id="UnofficialMultiplayerAPI_ISyncMethod_MinTime_System_Int32_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.MinTime(System.Int32)">MinTime(Int32)</h4> <div class="markdown level1 summary"><p>Currently unused in the Multiplayer mod.</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">ISyncMethod MinTime(int time)</code></pre> </div> <h5 class="parameters">Parameters</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td> <td><span class="parametername">time</span></td> <td><p>Milliseconds between resends</p> </td> </tr> </tbody> </table> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.ISyncMethod.html">ISyncMethod</a></td> <td><p>self</p> </td> </tr> </tbody> </table> <a id="UnofficialMultiplayerAPI_ISyncMethod_SetContext_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.SetContext*"></a> <h4 id="UnofficialMultiplayerAPI_ISyncMethod_SetContext_UnofficialMultiplayerAPI_SyncContext_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.SetContext(UnofficialMultiplayerAPI.SyncContext)">SetContext(SyncContext)</h4> <div class="markdown level1 summary"><p>Instructs method to send context along with the call.</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">ISyncMethod SetContext(SyncContext context)</code></pre> </div> <h5 class="parameters">Parameters</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.SyncContext.html">SyncContext</a></td> <td><span class="parametername">context</span></td> <td><p>One or more context flags</p> </td> </tr> </tbody> </table> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.ISyncMethod.html">ISyncMethod</a></td> <td><p>self</p> </td> </tr> </tbody> </table> <h5 id="UnofficialMultiplayerAPI_ISyncMethod_SetContext_UnofficialMultiplayerAPI_SyncContext__remarks">Remarks</h5> <div class="markdown level1 remarks"><p>Context is restored after method is called.</p> </div> <a id="UnofficialMultiplayerAPI_ISyncMethod_SetDebugOnly_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.SetDebugOnly*"></a> <h4 id="UnofficialMultiplayerAPI_ISyncMethod_SetDebugOnly" data-uid="UnofficialMultiplayerAPI.ISyncMethod.SetDebugOnly">SetDebugOnly()</h4> <div class="markdown level1 summary"><p>Instructs SyncMethod to synchronize only in debug mode.</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">ISyncMethod SetDebugOnly()</code></pre> </div> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.ISyncMethod.html">ISyncMethod</a></td> <td><p>self</p> </td> </tr> </tbody> </table> <a id="UnofficialMultiplayerAPI_ISyncMethod_SetPreInvoke_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.SetPreInvoke*"></a> <h4 id="UnofficialMultiplayerAPI_ISyncMethod_SetPreInvoke_System_Action_System_Object_System_Object____" data-uid="UnofficialMultiplayerAPI.ISyncMethod.SetPreInvoke(System.Action{System.Object,System.Object[]})">SetPreInvoke(Action&lt;Object, Object[]&gt;)</h4> <div class="markdown level1 summary"><p>Adds an Action that runs before a call is replicated on client.</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">ISyncMethod SetPreInvoke(Action&lt;object, object[]&gt; action)</code></pre> </div> <h5 class="parameters">Parameters</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.action-2">Action</a>&lt;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a>[]&gt;</td> <td><span class="parametername">action</span></td> <td><p>An action ran before a call is replicated on client. Called with target and value.</p> </td> </tr> </tbody> </table> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.ISyncMethod.html">ISyncMethod</a></td> <td><p>self</p> </td> </tr> </tbody> </table> <a id="UnofficialMultiplayerAPI_ISyncMethod_SetVersion_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.SetVersion*"></a> <h4 id="UnofficialMultiplayerAPI_ISyncMethod_SetVersion_System_Int32_" data-uid="UnofficialMultiplayerAPI.ISyncMethod.SetVersion(System.Int32)">SetVersion(Int32)</h4> <div class="markdown level1 summary"></div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">ISyncMethod SetVersion(int version)</code></pre> </div> <h5 class="parameters">Parameters</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td> <td><span class="parametername">version</span></td> <td><p>Handler version</p> </td> </tr> </tbody> </table> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="UnofficialMultiplayerAPI.ISyncMethod.html">ISyncMethod</a></td> <td><p>self</p> </td> </tr> </tbody> </table> </article> </div> <div class="hidden-sm col-md-2" role="complementary"> <div class="sideaffix"> <div class="contribution"> <ul class="nav"> </ul> </div> <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix"> <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> --> </nav> </div> </div> </div> </div> <footer> <div class="grad-bottom"></div> <div class="footer"> <div class="container"> <span class="pull-right"> <a href="#top">Back to top</a> </span> <span>Generated by <strong>DocFX</strong></span> </div> </div> </footer> </div> <script type="text/javascript" src="../styles/docfx.vendor.js"></script> <script type="text/javascript" src="../styles/docfx.js"></script> <script type="text/javascript" src="../styles/main.js"></script> </body> </html>
41.895636
616
0.601884
c84da5e318d0b088d6b41f35bbdcd9d0c857f7b8
1,832
kt
Kotlin
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/PushUp.kt
ravitejasc/compose-icons
09f752ef051b1c47e60554f3893bbed5ddd8bc1f
[ "MIT" ]
230
2020-11-11T14:52:11.000Z
2022-03-31T05:04:52.000Z
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/PushUp.kt
ravitejasc/compose-icons
09f752ef051b1c47e60554f3893bbed5ddd8bc1f
[ "MIT" ]
17
2021-03-02T00:00:32.000Z
2022-03-02T16:01:03.000Z
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/PushUp.kt
ravitejasc/compose-icons
09f752ef051b1c47e60554f3893bbed5ddd8bc1f
[ "MIT" ]
18
2021-02-08T06:18:41.000Z
2022-03-22T21:48:23.000Z
package compose.icons.cssggicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graphics.vector.ImageVector.Builder import androidx.compose.ui.graphics.vector.path import androidx.compose.ui.unit.dp import compose.icons.CssGgIcons public val CssGgIcons.PushUp: ImageVector get() { if (_pushUp != null) { return _pushUp!! } _pushUp = Builder(name = "PushUp", defaultWidth = 24.0.dp, defaultHeight = 24.0.dp, viewportWidth = 24.0f, viewportHeight = 24.0f).apply { path(fill = SolidColor(Color(0xFF000000)), stroke = null, strokeLineWidth = 0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f, pathFillType = EvenOdd) { moveTo(11.0001f, 22.2877f) horizontalLineTo(13.0001f) verticalLineTo(7.8024f) lineTo(16.2428f, 11.045f) lineTo(17.657f, 9.6308f) lineTo(12.0001f, 3.9739f) lineTo(6.3433f, 9.6308f) lineTo(7.7575f, 11.045f) lineTo(11.0001f, 7.8024f) verticalLineTo(22.2877f) close() moveTo(18.0f, 3.0f) horizontalLineTo(6.0f) verticalLineTo(1.0f) horizontalLineTo(18.0f) verticalLineTo(3.0f) close() } } .build() return _pushUp!! } private var _pushUp: ImageVector? = null
38.166667
93
0.607533
30fa96b1fc34001efa2db1c626cf63ea265e3d1c
395
asm
Assembly
programs/oeis/204/A204160.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/204/A204160.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/204/A204160.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A204160: Symmetric matrix based on f(i,j)=(3i-2 if i=j and = 0 otherwise), by antidiagonals. ; 1,1,1,1,4,1,1,1,1,1,1,1,7,1,1,1,1,1,1,1,1,1,1,1,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,13,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,16,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,1,1,1,1,1,1,1,1,1,1,1,1 lpb $0,1 add $1,4 sub $0,$1 lpe lpb $0,1 div $0,8 mov $1,$2 lpe div $1,4 mul $1,3 add $1,1
26.333333
199
0.55443
f16ff4a0094062012a3a3dc99d9980c9f45f72e3
5,059
rb
Ruby
caption/serve.rb
amatsuda/takeout-app
861964cd51ee932daf9f93f4d0b59ae49ebc44b6
[ "MIT" ]
90
2021-09-11T06:17:13.000Z
2022-03-30T13:47:14.000Z
caption/serve.rb
amatsuda/takeout-app
861964cd51ee932daf9f93f4d0b59ae49ebc44b6
[ "MIT" ]
null
null
null
caption/serve.rb
amatsuda/takeout-app
861964cd51ee932daf9f93f4d0b59ae49ebc44b6
[ "MIT" ]
8
2021-09-11T07:43:08.000Z
2021-09-14T05:36:16.000Z
require 'socket' require 'logger' require 'thread' require 'aws-sdk-transcribestreamingservice' require 'json' require_relative '../config/environment' require_relative '../app/models/conference' # ffmpeg -i ... -vn -f s16le -ar 16000 -ac 1 - | ruby serve.rb a |& tee -a /tmp/serve # ffmpeg -i udp://0.0.0.0:10000 -f mpegts -c:a pcm_s16le -vn -f s16le -ar 16000 -ac 1 - | ruby serve.rb a |& tee -a /tmp/serve class StdinInput def initialize @on_data = proc { } end def on_data(&block) @on_data = block self end def start th = Thread.new do $stdin.binmode $stderr.puts({binmode?: $stdin.binmode?}.inspect) until $stdin.eof? buf = $stdin.read(32000) # 256Kb @on_data.call buf end end.abort_on_exception = true end end class TranscribeEngine def initialize @client = Aws::TranscribeStreamingService::AsyncClient.new(region: 'ap-northeast-1') @input_stream = Aws::TranscribeStreamingService::EventStreams::AudioStream.new @output_stream = Aws::TranscribeStreamingService::EventStreams::TranscriptResultStream.new @output_stream.on_bad_request_exception_event do |exception| raise exception end @output_stream.on_event do |event| p event unless event.is_a?(Aws::TranscribeStreamingService::Types::TranscriptEvent) end end attr_reader :output_stream def feed(audio_chunk) @input_stream.signal_audio_event_event(audio_chunk: audio_chunk) self rescue Seahorse::Client::Http2ConnectionClosedError @client.connection.errors.each do |e| p e end raise end def start @client.start_stream_transcription( language_code: ENV.fetch('TRANSCRIBE_LANGUAGE_CODE', 'en-US'), enable_partial_results_stabilization: true, partial_results_stability: 'high', media_encoding: "pcm", media_sample_rate_hertz: 16000, vocabulary_name: ENV.fetch('TRANSCRIBE_VOCABULARY_NAME', 'rk_2021_words'), input_event_stream_handler: @input_stream, output_event_stream_handler: @output_stream, ) end def finish @input_stream.signal_end_stream end def on_transcript_event(&block) output_stream.on_transcript_event_event(&block) self end end CaptionData = Struct.new(:result_id, :is_partial, :transcript) class GenericOutput def initialize() @data_lock = Mutex.new @data = {} end def feed(event) @data_lock.synchronize do event.transcript.results.each do |result| caption = CaptionData.new(result.result_id, result.is_partial, result.alternatives[0]&.transcript) @data[result.result_id] = caption if caption.transcript end end end def start th = Thread.new do loop do begin data = nil @data_lock.synchronize do data = @data @data = {} end data.each do |k, caption| handle(caption) end end sleep 0.7 end end.abort_on_exception = true end end class ChimeMessgagingOutput < GenericOutput def initialize(chime_user_arn:, channel_arn:) @chimemessaging = Aws::ChimeSDKMessaging::Client.new(region: 'us-east-1', logger: Logger.new($stdout)) @chime_user_arn = chime_user_arn @channel_arn = channel_arn @id_map = {} super() end def handle(caption) message_id = @id_map[caption.result_id] content = {control: {caption: caption.to_h}}.to_json if message_id p [:update_channel_message, message_id, caption] @chimemessaging.update_channel_message( chime_bearer: @chime_user_arn, channel_arn: @channel_arn, message_id: message_id, content: content, ) else p [:send_channel_message, caption] resp = @chimemessaging.send_channel_message( chime_bearer: @chime_user_arn, channel_arn: @channel_arn, content: content, type: 'STANDARD', persistence: 'PERSISTENT', ) @id_map[caption.result_id] = resp.message_id end @id_map.delete(caption.result_id) unless caption.is_partial end end class StderrOutput < GenericOutput def handle(caption) $stderr.puts caption.to_h.to_json end end track_slug = ARGV[0] chime_user_arn = Conference.data.fetch(:chime).fetch(:app_user_arn) channel_arn = Conference.data .fetch(:tracks) .fetch(track_slug, {}) .fetch(:chime, {}) .fetch(:caption_channel_arn, nil) p env: Rails.env, chime_user_arn: chime_user_arn, channel_arn: channel_arn if track_slug && !channel_arn raise "define caption_channel_arn" end input = StdinInput.new engine = TranscribeEngine.new output = track_slug ? ChimeMessgagingOutput.new(chime_user_arn: chime_user_arn, channel_arn: channel_arn) : StderrOutput.new input.on_data do |chunk| p on_audio: chunk.bytesize engine.feed(chunk) end engine.on_transcript_event do |e| output.feed(e) end # TODO: graceful restart begin output.start call = engine.start input.start p call.wait.inspect rescue Interrupt engine.finish end
24.090476
126
0.692232
2bf7a282c11fd73c5cc905d1b7acaca5e2b2f355
427
lua
Lua
ensure/keystroke.lua
anoxape/.hammerspoon
6f5cccab9c2b7f6dd2bae8cca0b140b135d5d70f
[ "MIT" ]
4
2017-08-05T10:06:15.000Z
2020-10-19T03:27:27.000Z
ensure/keystroke.lua
anoxape/.hammerspoon
6f5cccab9c2b7f6dd2bae8cca0b140b135d5d70f
[ "MIT" ]
null
null
null
ensure/keystroke.lua
anoxape/.hammerspoon
6f5cccab9c2b7f6dd2bae8cca0b140b135d5d70f
[ "MIT" ]
1
2020-10-19T03:27:39.000Z
2020-10-19T03:27:39.000Z
local newKeyEvent = require 'hs.eventtap'.event.newKeyEvent local usleep = require 'hs.timer'.usleep local _M = {} _M.config = { delay = 200000, } local delay function _M.init(config) delay = config.delay end local function send(app, modifiers, character) newKeyEvent(modifiers, character, true):post(app) usleep(delay) newKeyEvent(modifiers, character, false):post(app) end _M.send = send return _M
17.08
59
0.716628
abb91dc04859d56df64cca8558f1c74a23a34fe4
5,928
rb
Ruby
lib/calendrical/base.rb
kipcole9/calendrical-ruby
e7e5693fa582c443ed3802fc8eed1dd98b59e9f3
[ "MIT" ]
1
2016-09-19T11:23:08.000Z
2016-09-19T11:23:08.000Z
lib/calendrical/base.rb
kipcole9/calendrical-ruby
e7e5693fa582c443ed3802fc8eed1dd98b59e9f3
[ "MIT" ]
null
null
null
lib/calendrical/base.rb
kipcole9/calendrical-ruby
e7e5693fa582c443ed3802fc8eed1dd98b59e9f3
[ "MIT" ]
null
null
null
module Calendrical class InvalidQuarter < StandardError; end class InvalidMonth < StandardError; end class InvalidWeek < StandardError; end class InvalidDay< StandardError; end class UnknownLunarPhase < StandardError; end class DayError < StandardError; end class MonthError < StandardError; end class StartEnd < StandardError; end class Proximity < StandardError; end class Type < StandardError; end class DanglingDays < StandardError; end module Base # see lines 249-252 in calendrica-3.0.cl # m // n # The following # from operator import floordiv as quotient # is not ok, the corresponding CL code # uses CL 'floor' which always returns an integer # (the floating point equivalent is 'ffloor'), while # 'quotient' from operator module (or corresponding //) # can return a float if at least one of the operands # is a float...so I redefine it (and 'floor' and 'round' as well: in CL # they always return an integer.) # # Ruby floor always returns an integer def quotient(m, n) (m / n).floor end # Add iround for compatibility with the CL and python code def iround(x) x.round end # m % n (this works as described in book for negative integres) # It is interesting to note that # mod(1.5, 1) # returns the decimal part of 1.5, so 0.5; given a moment 'm' # mod(m, 1) # returns the time of the day # Ruby mod behaves per the book # from operator import mod # see lines 254-257 in calendrica-3.0.cl # Return the same as a % b with b instead of 0. def amod(x, y) y + (x % -y) end # see lines 502-510 in calendrica-3.0.cl # Return those moments in list ell that occur in range 'range'. def list_range(ell, range) ell.select{|l| range.include?(l) }.compact end # see lines 482-485 in calendrica-3.0.cl # Return the range data structure.""" def interval(t0, t1) t0..t1 end # see lines 259-264 in calendrica-3.0.cl # Return first integer greater or equal to initial index, i, # such that condition, p, holds. def next_of(i, p) x = i while !p.call(x) do x += 1 end x end # see lines 266-271 in calendrica-3.0.cl # Return last integer greater or equal to initial index, i, # such that condition, p, holds. def final_of(i, p) if not p.call(i) return i - 1 else final_of(i+1, p) end end # see lines 273-281 in calendrica-3.0.cl # Return the sum of f(i) from i=k, k+1, ... till p(i) holds true or 0. # This is a tail recursive implementation. def summa(f, k, p) if not p.call(k) return 0 else f.call(k) + summa(f, k+1, p) end end # Return the sum of f(i) from i=k, k+1, ... till p(i) holds true or 0. # This is an implementation of the Summation formula from Kahan, # see Theorem 8 in Goldberg, David 'What Every Computer Scientist # Should Know About Floating-Point Arithmetic', ACM Computer Survey, # Vol. 23, No. 1, March 1991. def altsumma(f, k, p) if not p.call(k) return 0 else s = f.call(k) c = 0 j = k + 1 while p.call(j) do y = f.call(j) - c t = s + y c = (t - s) - y s = t j += 1 end end return s end # see lines 283-293 in calendrica-3.0.cl # Bisection search for x in [lo, hi] such that condition 'e' holds. # p determines when to go left. def binary_search(lo, hi, p, e) x = (lo + hi) / 2 if p.call(lo, hi) return x elsif e.call(x) return binary_search(lo, x, p, e) else return binary_search(x, hi, p, e) end end # see lines 295-302 in calendrica-3.0.cl # Find inverse of angular function 'f' at 'y' within interval [a,b]. # Default precision is 0.00001 def invert_angular(f, y, a, b, prec = 10**-5) binary_search(a, b, lambda{|l, h| ((h - l) <= prec)}, lambda{|x| ((f.call(x) - y) % 360) < 180} ) end #def invert_angular(f, y, a, b): # from scipy.optimize import brentq # return(brentq((lambda x: mod(f(x) - y), 360)), a, b, xtol=error) # see lines 304-313 in calendrica-3.0.cl # Return the sum of body 'b' for indices i1..in # running simultaneously thru lists l1..ln. # List 'l' is of the form [[i1 l1]..[in ln]] def sigma(l, b) # 'l' is a list of 'n' lists of the same lenght 'L' [l1, l2, l3, ...] # 'b' is a lambda with 'n' args # 'sigma' sums all 'L' applications of 'b' to the relevant tuple of args # >>> a = [ 1, 2, 3, 4] # >>> b = [ 5, 6, 7, 8] # >>> c = [ 9,10,11,12] # >>> l = [a,b,c] # >>> z = zip(*l) # >>> z # [(1, 5, 9), (2, 6, 10), (3, 7, 11), (4, 8, 12)] # >>> b = lambda x, y, z: x * y * z # >>> b(*z[0]) # apply b to first elem of i # 45 # >>> temp = [] # >>> z = zip(*l) # >>> for e in z: temp.append(b(*e)) # >>> temp # [45, 120, 231, 384] # >>> from operator import add # >>> reduce(add, temp) # 780 # return sum(b(*e) for e in zip(*l)) # puts "Zipped: #{l.first.zip(*l[1..-1]).map{|x| b.call(*x)}}" l.first.zip(*l[1..-1]).map{|x| b.call(*x)}.reduce(:+) end # see lines 315-321 in calendrica-3.0.cl # Calculate polynomial with coefficients 'a' at point x. # The polynomial is a[0] + a[1] * x + a[2] * x^2 + ...a[n-1]x^(n-1) # the result is # a[0] + x(a[1] + x(a[2] +...+ x(a[n-1])...) def poly(x, a) # This implementation is also known as Horner's Rule. n = a.length - 1 p = a[n] for i in 1..n do p = p * x + a[n-i] end p end end end
30.244898
78
0.550776
7e019890c3305fd173343d5248e9f8b141514046
451
asm
Assembly
oeis/271/A271578.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/271/A271578.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/271/A271578.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A271578: Magic sums of 4 X 4 magic squares composed of primes. ; Submitted by Jon Maiga ; 120,126,132,136,138,140,142,144,146,148,150,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234 mov $1,$0 mov $3,$0 mul $0,2 mov $2,3 lpb $1 mov $1,$3 trn $1,1 trn $3,$2 sub $0,$3 add $0,1 add $2,$1 sub $3,6 lpe mul $0,2 add $0,120
22.55
209
0.660754
abbfcb4de0637b910c5024fce85eff32b6ba4284
278
kt
Kotlin
src/main/kotlin/io/github/durun/lateko/model/structure/StructureElement.kt
Durun/lateko
b5809e171acf41a804b2fbdb4ddb21185bd93e8b
[ "MIT" ]
1
2022-01-16T10:50:55.000Z
2022-01-16T10:50:55.000Z
src/main/kotlin/io/github/durun/lateko/model/structure/StructureElement.kt
Durun/lateko
b5809e171acf41a804b2fbdb4ddb21185bd93e8b
[ "MIT" ]
20
2020-03-04T13:10:08.000Z
2020-04-10T13:57:02.000Z
src/main/kotlin/io/github/durun/lateko/model/structure/StructureElement.kt
Durun/lateko
b5809e171acf41a804b2fbdb4ddb21185bd93e8b
[ "MIT" ]
null
null
null
package io.github.durun.lateko.model.structure import io.github.durun.lateko.model.Element interface StructureElement : Element { fun <R> accept(visitor: StructureVisitor<R>): R val id: String get() = this.hashCode().toString() val context: StructureContext? get() = null }
30.888889
50
0.758993
42cc0ac1546cae4ebc687ac3254e52adae4e8ef0
1,792
lua
Lua
src/luacheck/check_state.lua
srinivas32/luacheck
7ab26494a4a0f41c6f96e85fda846045429e3326
[ "MIT" ]
1,641
2015-01-03T18:57:09.000Z
2022-03-30T22:08:29.000Z
src/luacheck/check_state.lua
srinivas32/luacheck
7ab26494a4a0f41c6f96e85fda846045429e3326
[ "MIT" ]
206
2015-01-05T09:22:24.000Z
2022-03-10T03:33:54.000Z
src/luacheck/check_state.lua
srinivas32/luacheck
7ab26494a4a0f41c6f96e85fda846045429e3326
[ "MIT" ]
299
2015-01-07T02:08:52.000Z
2022-03-27T10:26:47.000Z
local utils = require "luacheck.utils" local check_state = {} local CheckState = utils.class() function CheckState:__init(source_bytes) self.source_bytes = source_bytes self.warnings = {} end -- Returns column of a character in a line given its offset. -- The column is never larger than the line length. -- This can be called if line length is not yet known. function CheckState:offset_to_column(line, offset) local line_length = self.line_lengths[line] local column = offset - self.line_offsets[line] + 1 if not line_length then return column end return math.max(1, math.min(line_length, column)) end function CheckState:warn_column_range(code, range, warning) warning = warning or {} warning.code = code warning.line = range.line warning.column = range.column warning.end_column = range.end_column table.insert(self.warnings, warning) return warning end function CheckState:warn(code, line, offset, end_offset, warning) warning = warning or {} warning.code = code warning.line = line warning.column = self:offset_to_column(line, offset) warning.end_column = self:offset_to_column(line, end_offset) table.insert(self.warnings, warning) return warning end function CheckState:warn_range(code, range, warning) return self:warn(code, range.line, range.offset, range.end_offset, warning) end function CheckState:warn_var(code, var, warning) warning = self:warn_range(code, var.node, warning) warning.name = var.name return warning end function CheckState:warn_value(code, value, warning) warning = self:warn_range(code, value.var_node, warning) warning.name = value.var.name return warning end function check_state.new(source_bytes) return CheckState(source_bytes) end return check_state
26.746269
78
0.748884
38a7f8b0d9a5da3be59bd3c39ba6c33b530ce757
807
swift
Swift
swiftGame/SSExtension.swift
shen5214444887/lightGame
f6bcbeab0c1a19d3a8f8c9e89a0650c2cad475d9
[ "MIT" ]
1
2018-05-29T10:29:49.000Z
2018-05-29T10:29:49.000Z
swiftGame/SSExtension.swift
shen5214444887/lightGame
f6bcbeab0c1a19d3a8f8c9e89a0650c2cad475d9
[ "MIT" ]
null
null
null
swiftGame/SSExtension.swift
shen5214444887/lightGame
f6bcbeab0c1a19d3a8f8c9e89a0650c2cad475d9
[ "MIT" ]
null
null
null
// // SSExtension.swift // swiftGame // // Created by xiaobei on 2018/5/28. // Copyright © 2018年 xiaobei. All rights reserved. // import UIKit extension UIColor { var toImage: UIImage { let bounds = CGRect(origin: .zero, size: CGSize(width: 1.0, height: 1.0)) let renderer = UIGraphicsImageRenderer(bounds: bounds) return renderer.image(actions: { (context) in self.setFill() context.fill(CGRect(x: 0, y: 0, width: 1.0, height: 1.0)) }) } } extension Int { /// 随机值 var arc4random: Int { if self > 0 { return Int(arc4random_uniform(UInt32(self))) } else if self < 0 { return -Int(arc4random_uniform(UInt32(self))) } else { return 0 } } }
21.810811
81
0.550186
0bcc8bb22fe6e01746b28050ed699fd62037c9d2
982
js
JavaScript
server.js
deeleman/mean-boilerplate
9cd443647b50a2d089e11b39fc3c01b4726e53da
[ "Unlicense" ]
null
null
null
server.js
deeleman/mean-boilerplate
9cd443647b50a2d089e11b39fc3c01b4726e53da
[ "Unlicense" ]
null
null
null
server.js
deeleman/mean-boilerplate
9cd443647b50a2d089e11b39fc3c01b4726e53da
[ "Unlicense" ]
null
null
null
'use strict'; var port = process.env.PORT || 3000; var express = require('express'); var app = express(); var fs = require('fs'); var notifications = require('./app/lib/notifications'); // Routes fs.readdirSync(__dirname + '/app/routes').forEach(function (controller) { app.use('/api/' + controller.replace('.js', ''), require('./app/routes/' + controller)); }); // Public files and folders app.use(express.static(__dirname + '/app/public')); app.use(express.static(__dirname + '/app/views')); // Main shell route, protected against hotlinking app.get('/shell.html', function(req, res) { res.send(404); }); app.get('*', function(req, res) { res.sendFile(__dirname + '/app/views/shell.html'); }); // Error handling app.use(function (err, req, res, foo) { console.error(err); res.status(500).send(err.stack); }); // Server + Sockets initialization notifications.initialize(app.listen(port, function () { console.log('Server running on port', port); }));
27.277778
92
0.667006
b85506f691d8cf99a5fb824a2f063eb80c3b84e7
44
rs
Rust
mk/src/component/not_yet_complete.rs
AcrylicShrimp/mk
518bd804ff1b6f56b22163e94d758a0d5581a40a
[ "MIT" ]
null
null
null
mk/src/component/not_yet_complete.rs
AcrylicShrimp/mk
518bd804ff1b6f56b22163e94d758a0d5581a40a
[ "MIT" ]
null
null
null
mk/src/component/not_yet_complete.rs
AcrylicShrimp/mk
518bd804ff1b6f56b22163e94d758a0d5581a40a
[ "MIT" ]
null
null
null
#[derive(Debug)] pub struct NotYetComplete;
14.666667
26
0.772727
51a324d8da36a820def95d82d248a64e0f57971f
5,980
swift
Swift
PsychopompNX/Services/Generated/Nn_Grcsrv.swift
daeken/HelenaNX
ccc24813f775b55e9ad2424f8026ffcc907e0e4c
[ "Apache-2.0" ]
63
2020-12-03T22:29:35.000Z
2022-03-25T09:36:43.000Z
PsychopompNX/Services/Generated/Nn_Grcsrv.swift
daeken/HelenaNX
ccc24813f775b55e9ad2424f8026ffcc907e0e4c
[ "Apache-2.0" ]
1
2020-12-22T18:57:22.000Z
2020-12-22T18:57:22.000Z
PsychopompNX/Services/Generated/Nn_Grcsrv.swift
daeken/HelenaNX
ccc24813f775b55e9ad2424f8026ffcc907e0e4c
[ "Apache-2.0" ]
3
2020-12-14T08:12:06.000Z
2021-08-22T10:53:18.000Z
typealias NnGrcsrv_GameMovieId = [UInt8] class NnGrcsrv_IContinuousRecorder: IpcService { func unknown1() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown1") } func unknown2() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown2") } func unknown10() throws -> KObject { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown10") } func unknown11() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown11") } func unknown12() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown12") } func unknown13(_ _0: Any?) throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown13") } override func dispatch(_ im: IncomingMessage, _ om: OutgoingMessage) throws { switch im.commandId { case 1: try unknown1() om.initialize(0, 0, 0) case 2: try unknown2() om.initialize(0, 0, 0) case 10: let ret = try unknown10() om.initialize(0, 1, 0) om.copy(0, ret) case 11: try unknown11() om.initialize(0, 0, 0) case 12: try unknown12() om.initialize(0, 0, 0) case 13: try unknown13(nil) om.initialize(0, 0, 0) default: print("Unhandled command to nn::grcsrv::IContinuousRecorder: \(im.commandId)") try! bailout() } } } /* class NnGrcsrv_IContinuousRecorder_Impl: NnGrcsrv_IContinuousRecorder { override func unknown1() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown1") } override func unknown2() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown2") } override func unknown10() throws -> KObject { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown10") } override func unknown11() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown11") } override func unknown12() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown12") } override func unknown13(_ _0: Any?) throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown13") } } */ class NnGrcsrv_IGameMovieTrimmer: IpcService { func beginTrim(_ _0: UInt32, _ _1: UInt32, _ _2: NnGrcsrv_GameMovieId) throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGameMovieTrimmer#BeginTrim") } func endTrim() throws -> NnGrcsrv_GameMovieId { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGameMovieTrimmer#EndTrim") } func getNotTrimmingEvent() throws -> KObject { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGameMovieTrimmer#GetNotTrimmingEvent") } func setThumbnailRgba(_ _0: UInt32, _ _1: UInt32, _ _2: Buffer<UInt8>) throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGameMovieTrimmer#SetThumbnailRgba") } override func dispatch(_ im: IncomingMessage, _ om: OutgoingMessage) throws { switch im.commandId { case 1: try beginTrim(im.getData(8) as UInt32, im.getData(12) as UInt32, im.getBytes(16, 0x40)) om.initialize(0, 0, 0) case 2: let ret = try endTrim() om.initialize(0, 0, 64) if ret.count != 0x40 { throw IpcError.byteCountMismatch } om.setBytes(8, ret) case 10: let ret = try getNotTrimmingEvent() om.initialize(0, 1, 0) om.copy(0, ret) case 20: try setThumbnailRgba(im.getData(8) as UInt32, im.getData(12) as UInt32, im.getBuffer(0x45, 0)! as Buffer<UInt8>) om.initialize(0, 0, 0) default: print("Unhandled command to nn::grcsrv::IGameMovieTrimmer: \(im.commandId)") try! bailout() } } } /* class NnGrcsrv_IGameMovieTrimmer_Impl: NnGrcsrv_IGameMovieTrimmer { override func beginTrim(_ _0: UInt32, _ _1: UInt32, _ _2: NnGrcsrv_GameMovieId) throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGameMovieTrimmer#BeginTrim") } override func endTrim() throws -> NnGrcsrv_GameMovieId { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGameMovieTrimmer#EndTrim") } override func getNotTrimmingEvent() throws -> KObject { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGameMovieTrimmer#GetNotTrimmingEvent") } override func setThumbnailRgba(_ _0: UInt32, _ _1: UInt32, _ _2: Buffer<UInt8>) throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGameMovieTrimmer#SetThumbnailRgba") } } */ class NnGrcsrv_IGrcService: IpcService { func openContinuousRecorder(_ _0: Any?, _ _1: KObject) throws -> NnGrcsrv_IContinuousRecorder { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGrcService#OpenContinuousRecorder") } func openGameMovieTrimmer(_ _0: Any?, _ _1: KObject) throws -> NnGrcsrv_IGameMovieTrimmer { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGrcService#OpenGameMovieTrimmer") } override func dispatch(_ im: IncomingMessage, _ om: OutgoingMessage) throws { switch im.commandId { case 1: let ret = try openContinuousRecorder(nil, try Emulator.instance!.kernel.tryGetHandle(im.getCopy(0)) as KObject) om.initialize(1, 0, 0) om.move(0, ret) case 2: let ret = try openGameMovieTrimmer(nil, try Emulator.instance!.kernel.tryGetHandle(im.getCopy(0)) as KObject) om.initialize(1, 0, 0) om.move(0, ret) default: print("Unhandled command to nn::grcsrv::IGrcService: \(im.commandId)") try! bailout() } } } /* class NnGrcsrv_IGrcService_Impl: NnGrcsrv_IGrcService { override func openContinuousRecorder(_ _0: Any?, _ _1: KObject) throws -> NnGrcsrv_IContinuousRecorder { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGrcService#OpenContinuousRecorder") } override func openGameMovieTrimmer(_ _0: Any?, _ _1: KObject) throws -> NnGrcsrv_IGameMovieTrimmer { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IGrcService#OpenGameMovieTrimmer") } } */
46.71875
204
0.738127
16374b3d18f7538d753116a8f261078d00b22b9c
35,467
c
C
apps/plugins/resistor.c
Rockbox-Chinese-Community/Rockbox-RCC
a701aefe45f03ca391a8e2f1a6e3da1b8774b2f2
[ "BSD-3-Clause" ]
24
2015-03-10T08:43:56.000Z
2022-01-05T14:09:46.000Z
apps/plugins/resistor.c
Rockbox-Chinese-Community/Rockbox-RCC
a701aefe45f03ca391a8e2f1a6e3da1b8774b2f2
[ "BSD-3-Clause" ]
4
2015-07-04T18:15:33.000Z
2018-05-18T05:33:33.000Z
apps/plugins/resistor.c
Rockbox-Chinese-Community/Rockbox-RCC
a701aefe45f03ca391a8e2f1a6e3da1b8774b2f2
[ "BSD-3-Clause" ]
15
2015-01-21T13:58:13.000Z
2020-11-04T04:30:22.000Z
/* === Rockbox Resistor code/value calculator === [insert relevant/useful information here] TODO: [ ] Own numeric keypad */ #include "plugin.h" #include "lib/display_text.h" #include "lib/pluginlib_actions.h" #include "lib/picture.h" #include "lib/helper.h" /* Defining player-specific constants */ #if defined(HAVE_LCD_COLOR) #define RESISTOR_BMP_X ((LCD_WIDTH - BMPWIDTH_resistor) / 2) #if LCD_WIDTH >= 320 && LCD_HEIGHT >= 240 /* iPod video or larger */ #define RESISTOR_BMP_Y 3 #elif LCD_WIDTH >= 240 && LCD_HEIGHT >= 320 /* Onda, mostly */ #define RESISTOR_BMP_Y 3 #elif LCD_WIDTH >= 220 && LCD_HEIGHT >= 176 /* Fuze or larger */ #define RESISTOR_BMP_Y 15 #elif LCD_WIDTH >= 176 && LCD_HEIGHT >= 220 /* e200 or larger */ #define RESISTOR_BMP_Y 11 #elif LCD_WIDTH >= 176 && LCD_HEIGHT >= 132 /* ipod nano or larger */ #define RESISTOR_BMP_Y 7 #elif LCD_WIDTH >= 160 && LCD_HEIGHT >= 128 /* H10 or larger */ #define RESISTOR_BMP_Y 3 #elif LCD_WIDTH >= 128 && LCD_HEIGHT >= 128 /* GoGear */ #define RESISTOR_BMP_Y 3 #else /* Small screens */ #define RESISTOR_BMP_Y 0 #endif #else /* HAVE_LCD_COLOR */ #define USE_TEXT_ONLY #endif /* HAVE_LCD_COLOR */ #define total_resistance_str_x 1 #define tolerance_str_x 1 #define resistance_val_x 1 #define r_to_c_out_str_x 1 #define INITIAL_TEXT_Y 0 #ifndef USE_TEXT_ONLY /* (below is for color targets */ #include "pluginbitmaps/resistor.h" #define band_width (BMPWIDTH_resistor/15) #define band_height (BMPHEIGHT_resistor*9/10) #define first_band_x (BMPWIDTH_resistor/4 + RESISTOR_BMP_X - band_width/2) #define second_band_x (3*BMPWIDTH_resistor/8 + RESISTOR_BMP_X - band_width/2) #define third_band_x (BMPWIDTH_resistor/2 + RESISTOR_BMP_X - band_width/2) #define fourth_band_x (3*BMPWIDTH_resistor/4 + RESISTOR_BMP_X - band_width/2) #define universal_y ((BMPHEIGHT_resistor)/2 - band_height/2) #endif /* USE_TEXT_ONLY */ enum color { RES_BLACK, RES_BROWN, RES_RED, RES_ORANGE, RES_YELLOW, RES_GREEN, RES_BLUE, RES_VIOLET, RES_GREY, RES_WHITE, RES_GOLD, RES_SILVER, RES_NONE, RES_INVALID = -1, }; static int common_values[] = { 0, 1, 10, 15, 22, 27, 33, 39, 47, 51, 68, 82 }; static int power_ratings[] = { 125, 250, 500, 1000, 2000, 3000, 5000, 10000, 50000 }; /* All in mW */ #ifndef LCD_RGBPACK /* Warning: dirty kludge */ #define LCD_RGBPACK(x,y,z) 0 #endif static struct band_data { enum color color; char *name; int color_value; int resistance_value; int multiplier; char *unit; int tolerance; } band_data[] = { { RES_BLACK, "Black", LCD_RGBPACK(0, 0, 0), 0, 100, "Ohms",-1 }, { RES_BROWN, "Brown", LCD_RGBPACK(118, 78, 0), 1, 1000, "Ohms", 1 }, { RES_RED, "Red", LCD_RGBPACK(255, 0, 0), 2, 10000, "Ohms", 2 }, { RES_ORANGE, "Orange", LCD_RGBPACK(255, 199, 76), 3, 100, "KOhms",-1 }, { RES_YELLOW, "Yellow", LCD_RGBPACK(255, 255, 0), 4, 1000, "KOhms",-1 }, { RES_GREEN, "Green", LCD_RGBPACK(0, 128, 0), 5, 10000, "KOhms",-1 }, { RES_BLUE, "Blue", LCD_RGBPACK(0, 0, 255), 6, 100, "MOhms",-1 }, { RES_VIOLET, "Violet", LCD_RGBPACK(153, 51, 255), 7, 1000, "MOhms",-1 }, { RES_GREY, "Grey", LCD_RGBPACK(192, 192, 192), 8, 10000, "MOhms",-1 }, { RES_WHITE, "White", LCD_RGBPACK(255, 255, 255), 9, 100, "GOhms",-1 }, { RES_GOLD, "Gold", LCD_RGBPACK(146, 146, 0), -1, 10, "Ohms", 5 }, { RES_SILVER, "Silver", LCD_RGBPACK(213, 213, 213),-1, 1, "Ohms", 10 }, { RES_NONE, "[None]", -1 ,-1, -1, 0, 20 } }; static char *unit_abbrev; static struct viewport screen_vp; static struct viewport bitmap_vp; static struct viewport text_vp; static struct screen *display; static int lineno; static char *get_power_rating_str(int in_rating) { switch(in_rating) { case 125: return "1/8 Watt"; case 250: return "1/4 Watt"; case 500: return "1/2 Watt"; case 1000: return "1 Watt"; case 2000: return "2 Watt"; case 3000: return "3 Watt"; case 5000: return "5 Watt"; case 10000: return "10 Watt"; case 500000: return "50 Watt"; default: return "Unknown"; } } static int powi(int num, int exp) { int i, product = 1; for (i = 0; i < exp; i++) { product *= num; } return product; } static enum color get_band_rtoc(int in_val) { int return_color = RES_INVALID; switch(in_val) { case 0: return_color = RES_BLACK; break; case 1: return_color = RES_BROWN; break; case 2: return_color = RES_RED; break; case 3: return_color = RES_ORANGE; break; case 4: return_color = RES_YELLOW; break; case 5: return_color = RES_GREEN; break; case 6: return_color = RES_BLUE; break; case 7: return_color = RES_VIOLET; break; case 8: return_color = RES_GREY; break; case 9: return_color = RES_WHITE; break; } return return_color; } static char *get_tolerance_str(enum color color) { static char tolerance_str [14]; rb->snprintf(tolerance_str, sizeof(tolerance_str), "%d%% tolerance", band_data[color].tolerance); return tolerance_str; } #ifndef USE_TEXT_ONLY static void draw_resistor(enum color firstband_color, enum color secondband_color, enum color thirdband_color, enum color fourthband_color) { unsigned int fg; rb->lcd_clear_display(); display->set_viewport(&bitmap_vp); rb->lcd_bitmap_transparent(resistor, RESISTOR_BMP_X, 0, BMPWIDTH_resistor, BMPHEIGHT_resistor); fg = rb->lcd_get_foreground(); if(firstband_color != RES_NONE) { rb->lcd_set_foreground(band_data[firstband_color].color_value); rb->lcd_fillrect(first_band_x, universal_y, band_width, band_height); } else { rb->lcd_set_foreground(LCD_BLACK); rb->lcd_drawrect(first_band_x, universal_y, band_width, band_height); } if(secondband_color != RES_NONE) { rb->lcd_set_foreground(band_data[secondband_color].color_value); rb->lcd_fillrect(second_band_x, universal_y, band_width, band_height); } else { rb->lcd_set_foreground(LCD_BLACK); rb->lcd_drawrect(second_band_x, universal_y, band_width, band_height); } if(thirdband_color != RES_NONE) { rb->lcd_set_foreground(band_data[thirdband_color].color_value); rb->lcd_fillrect(third_band_x, universal_y, band_width, band_height); } else { rb->lcd_set_foreground(LCD_BLACK); rb->lcd_drawrect(third_band_x, universal_y, band_width, band_height); } if(fourthband_color != RES_NONE) { rb->lcd_set_foreground(band_data[fourthband_color].color_value); rb->lcd_fillrect(fourth_band_x, universal_y, band_width, band_height); } else { rb->lcd_set_foreground(LCD_BLACK); rb->lcd_drawrect(fourth_band_x, universal_y, band_width, band_height); } rb->lcd_set_foreground(fg); rb->lcd_update(); return; } #endif static void draw_resistor_text(enum color firstband_color, enum color secondband_color, enum color thirdband_color, enum color fourthband_color) { char resistance_vals_str[64]; display->set_viewport(&text_vp); rb->snprintf(resistance_vals_str, sizeof(resistance_vals_str), "%s - %s - %s - %s", band_data[firstband_color].name, band_data[secondband_color].name, band_data[thirdband_color].name, band_data[fourthband_color].name); rb->lcd_puts_scroll(resistance_val_x, lineno++, resistance_vals_str); rb->lcd_update(); } static int calculate_resistance(enum color first_band, enum color second_band, enum color third_band) { int tens = band_data[first_band].resistance_value; int units = band_data[second_band].resistance_value; int multiplier = band_data[third_band].multiplier; int total_resistance_centiunits = (10 * tens + units ) * multiplier; unit_abbrev = band_data[third_band].unit; return total_resistance_centiunits; } static enum color do_first_band_menu(void) { int band_selection = 0; enum color band_color_selection = 0; MENUITEM_STRINGLIST(colors_menu_first, "First band colour:", NULL, "Black", "Brown", "Red", "Orange", "Yellow", "Green", "Blue", "Violet", "Grey", "White"); band_selection = rb->do_menu(&colors_menu_first, &band_selection, NULL, false); switch(band_selection) { case 0: /* Black */ band_color_selection = RES_BLACK; break; case 1: /* Brown */ band_color_selection = RES_BROWN; break; case 2: /* Red */ band_color_selection = RES_RED; break; case 3: /* Orange */ band_color_selection = RES_ORANGE; break; case 4: /* Yellow */ band_color_selection = RES_YELLOW; break; case 5: /* Green */ band_color_selection = RES_GREEN; break; case 6: /* Blue */ band_color_selection = RES_BLUE; break; case 7: /* Violet */ band_color_selection = RES_VIOLET; break; case 8: /* Grey */ band_color_selection = RES_GREY; break; case 9: /* White */ band_color_selection = RES_WHITE; break; default: band_color_selection = RES_INVALID; break; } return band_color_selection; } static enum color do_second_band_menu(void) { int band_selection = 0; enum color band_color_selection = 0; MENUITEM_STRINGLIST(colors_menu_second, "Second band colour:", NULL, "Black", "Brown", "Red", "Orange", "Yellow", "Green", "Blue", "Violet", "Grey", "White"); band_selection = rb->do_menu(&colors_menu_second, &band_selection, NULL, false); switch(band_selection) { case 0: /* Black */ band_color_selection = RES_BLACK; break; case 1: /* Brown */ band_color_selection = RES_BROWN; break; case 2: /* Red */ band_color_selection = RES_RED; break; case 3: /* Orange */ band_color_selection = RES_ORANGE; break; case 4: /* Yellow */ band_color_selection = RES_YELLOW; break; case 5: /* Green */ band_color_selection = RES_GREEN; break; case 6: /* Blue */ band_color_selection = RES_BLUE; break; case 7: /* Violet */ band_color_selection = RES_VIOLET; break; case 8: /* Grey */ band_color_selection = RES_GREY; break; case 9: /* White */ band_color_selection = RES_WHITE; break; default: band_color_selection = RES_INVALID; break; } return band_color_selection; } static enum color do_third_band_menu(void) { int band_selection = 0; enum color band_color_selection = 0; MENUITEM_STRINGLIST(colors_menu_third, "Third band colour:", NULL, "Black", "Brown", "Red", "Orange", "Yellow", "Green", "Blue", "Violet", "Grey", "White", "Silver", "Gold"); band_selection = rb->do_menu(&colors_menu_third, &band_selection, NULL, false); switch(band_selection) { case 0: /* Black */ band_color_selection = RES_BLACK; break; case 1: /* Brown */ band_color_selection = RES_BROWN; break; case 2: /* Red */ band_color_selection = RES_RED; break; case 3: /* Orange */ band_color_selection = RES_ORANGE; break; case 4: /* Yellow */ band_color_selection= RES_YELLOW; break; case 5: /* Green */ band_color_selection = RES_GREEN; break; case 6: /* Blue */ band_color_selection = RES_BLUE; break; case 7: /* Violet */ band_color_selection = RES_VIOLET; break; case 8: /* Grey */ band_color_selection = RES_GREY; break; case 9: /* White */ band_color_selection = RES_WHITE; break; case 10: /* Silver */ band_color_selection = RES_SILVER; break; case 11: /* Gold */ band_color_selection= RES_GOLD; break; default: band_color_selection = RES_INVALID; break; } return band_color_selection; } static enum color do_fourth_band_menu(void) { int band_selection = 0; enum color band_color_selection = 0; MENUITEM_STRINGLIST(colors_menu_fourth, "Fourth band colour:", NULL, "Gold", "Brown", "Red", "Silver", "(none)"); band_selection = rb->do_menu(&colors_menu_fourth, &band_selection, NULL, false); switch(band_selection) { case 0: /* Gold */ band_color_selection = RES_GOLD; break; case 1: /* Brown */ band_color_selection = RES_BROWN; break; case 2: /* Red */ band_color_selection = RES_RED; break; case 3: /* Silver */ band_color_selection = RES_SILVER; break; case 4: /* (none) */ band_color_selection = RES_NONE; break; default: band_color_selection = RES_INVALID; break; } return band_color_selection; } static void display_helpfile(void) { rb->lcd_clear_display(); /* some information obtained from wikipedia */ static char * helpfile_text[] = { "Resistor Calculator Helpfile", "", "", "About resistors:", "", /* 7 */ /* -- */ "A", "resistor", "is", "a ", "two-terminal", "electronic", "component", "that", "produces", "a", "voltage", "across", "its", "terminals", "that", "is", "proportional", "to", "the", "electric", "current", "passing", "through", "it", "in", "accordance", "to", "Ohm's", "Law:", "", /* 29 */ /* -- */ "", "V = IR", "", "I = V/R", "", "and", "", "R = V/I", "", "", "Where", "V", "=", "voltage, ", "I", "=", "current", "(in", "amps)", "and", "R", "=", "resistance", "(measured", "in", "Ohms).", "", "", /* 28 */ /* -- */ "The", "primary", "characteristics", "of", "a", "resistor", "are", "the", "resistance,", "the", "tolerance,", "and", "the", "maximum", "working", "voltage", "and", "the", "power", "rating.", "At", "this", "time,", "this", "calculator", "only", "utilises", "the", "resistance", "and", "tolerance.", "", "", /* 33 */ /* -- */ "The", "Ohm", "is", "the", "SI", "unit", "of", "resistance,", "and", "common", "multiples", "of", "that", "include", "the", "kiloohm", "(KOhm", "-", "1x10^3)", "and", "the", "megaohm", "(MOhm", "-", "1x10^6),", "both", "of", "which", "are", "supported", "by", "this", "calculator.", "", "", /* 34 */ /* -- */ "Resistors", "in", "parallel:", "", /* 4 */ /* -- */ "1/Rtotal", "=", "1/R1", "+", "1/R2", "...", "+", "1/Rn", "", /* 9*/ /* -- */ "", "Resistors", "in", "series:", "", /* 5 */ /* -- */ "Rtotal", "=", "R1", "+", "R2", "...", "+", "Rn", "", /* 9 */ /* -- */ "", "How to use this calculator", "", /* 3 */ /* -- */ "This", "calculator", "has", "three", "modes:", "", "Resistance", "to", "colour", "codes,", "", "Colour", "codes", "to", "resistance", "", "and", "LED", "resistance", "calculator", "", "", /* -- */ "At", "this", "time", "there", "is", "only", "support", "for", "four-", "band", "resistors.", "", "", /* -- */ "In", "Colour", "to", "Resistance", "mode", "use", "the", "menus", "to", "input", "(in", "order)", "the", "bands", "of", "the", "resistor", "for", "which", "you", "would", "like", "to", "know", "the", "resistance.", "", "", /* -- */ "In", "Resistance", "to", "Colour", "mode,", "use", "the", "menus", "to", "select", "which", "unit", "to", "use", "(choose", "from", "Ohms,", "KiloOhms", "and", "MegaOhms)", "and", "the", "on-screen", "keyboard", "to", "input", "the", "value", "of", "the", "resistor", "that", "you", "would", "like", "to", "know", "the", "colour", "codes", "of.", "Output", "will", "be", "both", "graphical", "(with", "bands", "of", "the", "resistor", "shown", "in", "their", "corresponding", "colours", "-", "colour", "targets", "only)", "and", "textually.", "","", /* -- */ "LED", "resistor", "calculator", "mode", "is", "used", "to", "determine", "the", "resistor", "necessary", "to", "light", "a", "LED", "safely", "at", "a", "given", "voltage.", "First,", "select", "the", "voltage", "that", "the", "LED", "will", "use", "(the", "first", "option", "is", "the", "most", "common", "and", "is", "a", "safe", "guess)", "and", "the", "current", "that", "it", "will", "draw", "(likewise", "with", "the", "first", "option).", "Then", "use", "the", "onscreen", "keyboard", "to", "type", "in", "the", "supply", "voltage", "and,", "if", "selected,", "the", "custom", "foreward", "current.", "", "Disclaimer:", "this", "calculator", "produces", "safe", "estimates,", "but", "use", "your", "own", "judgement", "when", "using", "these", "output", "values.", "Power", "rating", "and", "displayed", "resistance", "are", "rounded", "up", "to", "the", "nearest", "common", "value." }; static struct style_text formatting[] = { { 0, TEXT_CENTER|TEXT_UNDERLINE }, { 3, TEXT_UNDERLINE }, { 159, TEXT_UNDERLINE }, LAST_STYLE_ITEM }; display_text(ARRAYLEN(helpfile_text), helpfile_text, formatting, NULL, true); return; } static void led_resistance_calc(void) { backlight_ignore_timeout(); int voltage_menu_selection, button_press, j, k, l, foreward_current = 0; int fwd_current_selection = 0; bool quit = false; char kbd_buffer [5]; char fwd_kbd_buffer [5]; int input_voltage, led_voltage = 0; int resistance = 0; int rounded_resistance = 0; int temp; int power_rating_in = 0; int rounded_power_rating = 0; int out_int = 0; char current_out_str [16]; char true_current_out_str [40]; char rounded_resistance_out_str [40]; char power_rating_out_str [40]; int power_ten, first_band_int, second_band_int = 0; enum color first_band; enum color second_band; enum color multiplier; enum color fourth_band = RES_NONE; rb->lcd_clear_display(); MENUITEM_STRINGLIST(voltage_menu, "Select LED voltage:", NULL, "2v (Common red, orange)", "1.5v (IR)", "2.1v (Yellow)", "2.2v (Green)", "3.3v (True green, blue, white, UV)", "4.6v (Blue - 430nm)"); MENUITEM_STRINGLIST(fwd_current_menu, "Select foreward current:", NULL, "20mA - Most common for 5mm and 3mm LEDs - select if unsure.", "Key in other (only if already known)"); while(!quit) { int ret; ret = voltage_menu_selection = rb->do_menu(&voltage_menu, &voltage_menu_selection, NULL, false); if(ret<0) break; ret = fwd_current_selection = rb->do_menu(&fwd_current_menu, &fwd_current_selection, NULL, false); if(ret<0) break; rb->lcd_clear_display(); rb->splash(HZ*2, "(First) Input the supply voltage:"); memset(kbd_buffer,0,sizeof(kbd_buffer)); rb->kbd_input(kbd_buffer, sizeof(kbd_buffer)); input_voltage = rb->atoi(kbd_buffer); if(input_voltage == 0) break; if(input_voltage != (int)input_voltage) { input_voltage *= 10; } else { input_voltage *= 100; } switch(voltage_menu_selection) { case 0: /* 2v */ led_voltage = 200; break; case 1: /* 1.5v */ led_voltage = 150; break; case 2: /* 2.1 */ led_voltage = 210; break; case 3: led_voltage = 220; break; case 4: led_voltage = 330; break; case 5: led_voltage = 460; break; } switch(fwd_current_selection) { case 0: /* 20mA */ foreward_current = 2; /* 20mA * 100 */ break; case 1: rb->lcd_clear_display(); rb->splash(HZ*2, "Input the foreward current, in mA"); memset(fwd_kbd_buffer,0,sizeof(fwd_kbd_buffer)); rb->kbd_input(fwd_kbd_buffer, sizeof(fwd_kbd_buffer)); foreward_current = ((rb->atoi(fwd_kbd_buffer))/10); break; } if(foreward_current == 0) break; rb->lcd_clear_display(); resistance = (input_voltage - led_voltage) / foreward_current; out_int = resistance; int total_common_values = 11; int total_power_values = 9; if(led_voltage > input_voltage) { rb->splash(HZ, "Problem: LED voltage is higher than the source."); break; } for(j = 0; j < total_common_values; j++) { for(k = 1; k < 5; k++) { if( resistance == (common_values[j] * powi(10, k))) { rounded_resistance = (common_values[j] * powi(10, k)); /* perfect match */ break; } else if(resistance >= (common_values[j] * powi(10, k)) && resistance <= (common_values[j+1] * powi(10, k))) { rounded_resistance = (common_values[j+1] * powi(10, k)); /* the higher resistance, to be safe */ break; } else { break; } } } if(rounded_resistance == 0) { rb->splash(HZ, "Problem: Input voltage too high."); break; } power_rating_in = ((input_voltage/100)*(input_voltage/100)*1000 / rounded_resistance); /* in mW */ for(l = 0; l < total_power_values; l++) { if((int)power_rating_in == power_ratings[l]) { rounded_power_rating = (power_ratings[l]); break; } else if(power_rating_in >= power_ratings[l] && power_rating_in <= power_ratings[l+1]) { rounded_power_rating = power_ratings[l+1]; break; } else { break; } } get_power_rating_str(rounded_power_rating); power_ten=0; temp=rounded_resistance; while(temp>=100) { temp/=10; power_ten++; } first_band_int=temp/10; second_band_int=temp%10; first_band = get_band_rtoc(first_band_int); second_band = get_band_rtoc(second_band_int); multiplier = get_band_rtoc(power_ten); rb->lcd_clear_display(); lineno = INITIAL_TEXT_Y; #ifndef USE_TEXT_ONLY draw_resistor(first_band, second_band, multiplier, fourth_band); #endif draw_resistor_text(first_band, second_band, multiplier, fourth_band); rb->snprintf(current_out_str, sizeof(current_out_str), "%d mA", (foreward_current*10)); rb->snprintf(true_current_out_str, sizeof(true_current_out_str), "Input: %dv, %d Ohms @ %s", (input_voltage/100), out_int, current_out_str); rb->snprintf(rounded_resistance_out_str, sizeof(rounded_resistance_out_str), "Rounded/displayed: [%d %s]", rounded_resistance, band_data[multiplier].unit); rb->snprintf(power_rating_out_str, sizeof(power_rating_out_str), "Recommended: %s or greater", get_power_rating_str(rounded_power_rating)); display->set_viewport(&text_vp); rb->lcd_puts_scroll(resistance_val_x, lineno++, true_current_out_str); rb->lcd_puts_scroll(resistance_val_x, lineno++, rounded_resistance_out_str); rb->lcd_puts_scroll(resistance_val_x, lineno++, power_rating_out_str); rb->lcd_update(); while ((button_press = rb->button_get(true)) & BUTTON_REL); switch(button_press) { case PLA_SELECT: break; default: quit = true; backlight_use_settings(); break; } } display->set_viewport(&text_vp); rb->lcd_scroll_stop(); display->set_viewport(&screen_vp); rb->lcd_clear_display(); } static void resistance_to_color(void) { backlight_ignore_timeout(); int menu_selection; int menu_selection_tol; int button_press; bool quit = false; char kbd_buffer [10]; int kbd_input_int; int temp; int in_resistance_int; int power_ten=0; int first_band_int = 0; int second_band_int = 0; enum color first_band; enum color second_band; enum color multiplier; enum color fourth_band = 0; enum color units_used = 0; char out_str[20]; memset(kbd_buffer,0,sizeof(kbd_buffer)); /* This cleans out the mysterious garbage that appears */ rb->lcd_clear_display(); rb->splash(HZ/2, "Resistance to Colour"); MENUITEM_STRINGLIST(r_to_c_menu, "Select unit to use:", NULL, "Ohms", "Kiloohms (KOhms)", "Megaohms (MOhms)", "Gigaohms (GOhms)"); MENUITEM_STRINGLIST(r_to_c_menu_tol, "Tolerance to display:", NULL, "5%", "10%", "1%", "2%", "20%"); while(!quit) { int ret; ret=menu_selection = rb->do_menu(&r_to_c_menu, &menu_selection, NULL, false); if(ret<0) break; rb->kbd_input(kbd_buffer, sizeof(kbd_buffer)); /* As stated above somewhere, we (I) need to make a calculator-like keypad, that keyboard isn't all that fun to use. */ ret = rb->do_menu(&r_to_c_menu_tol, &menu_selection_tol, NULL, false); if(ret<0) break; switch(menu_selection_tol) { case 0: /* 5% */ fourth_band = RES_GOLD; break; case 1: /* 10% */ fourth_band = RES_SILVER; break; case 2: /* 1% */ fourth_band = RES_BROWN; break; case 3: /* 2% */ fourth_band = RES_RED; break; case 4: /* 20% */ fourth_band = RES_NONE; break; } kbd_input_int = rb->atoi(kbd_buffer); in_resistance_int = kbd_input_int; switch(menu_selection) { case 0: power_ten=0; units_used = RES_BLACK; break; case 1: /* KOhms */ power_ten=3; units_used = RES_ORANGE; break; case 2: /* MOhms */ power_ten=6; units_used = RES_BLUE; break; case 3: /* GOhms */ power_ten=9; units_used = RES_WHITE; break; } temp=kbd_input_int; while(temp>=100) { temp/=10; power_ten++; } first_band_int=temp/10; second_band_int=temp%10; first_band = get_band_rtoc(first_band_int); second_band = get_band_rtoc(second_band_int); multiplier = get_band_rtoc(power_ten); if( first_band == RES_INVALID || second_band == RES_INVALID || multiplier == RES_INVALID) { rb->splashf(HZ, "%d %s can not be represented", in_resistance_int,band_data[units_used].unit); return; } rb->lcd_clear_display(); lineno = INITIAL_TEXT_Y; #ifndef USE_TEXT_ONLY draw_resistor(first_band, second_band, multiplier, fourth_band); #endif draw_resistor_text(first_band, second_band, multiplier, fourth_band); rb->snprintf(out_str, sizeof(out_str), "Input: %d %s", in_resistance_int, band_data[units_used].unit); display->set_viewport(&text_vp); rb->lcd_puts_scroll(r_to_c_out_str_x, lineno++, out_str); rb->lcd_update(); button_press = rb->button_get(true); switch(button_press) { case PLA_SELECT: break; default: quit = true; backlight_use_settings(); break; } } display->set_viewport(&text_vp); rb->lcd_scroll_stop(); display->set_viewport(&screen_vp); rb->lcd_clear_display(); } static void color_to_resistance(void) { backlight_ignore_timeout(); bool quit = false; int button_input = 0; /* The colors of the bands */ enum color first_band = 0; enum color second_band = 0; enum color third_band = 0; enum color fourth_band = 0; int total_resistance_centiunits = 0; char total_resistance_str [35]; rb->splash(HZ/2, "Colour to resistance"); rb->lcd_clear_display(); while(!quit) { first_band = do_first_band_menu(); if(first_band==RES_INVALID) break; second_band = do_second_band_menu(); if(second_band==RES_INVALID) break; third_band = do_third_band_menu(); if(third_band==RES_INVALID) break; fourth_band = do_fourth_band_menu(); if(third_band==RES_INVALID) break; total_resistance_centiunits = calculate_resistance(first_band, second_band, third_band); rb->lcd_clear_display(); lineno = INITIAL_TEXT_Y; #ifndef USE_TEXT_ONLY draw_resistor(first_band, second_band, third_band, fourth_band); #endif draw_resistor_text(first_band, second_band, third_band, fourth_band); if(total_resistance_centiunits % 100 == 0) { /* No decimals */ rb->snprintf(total_resistance_str, sizeof(total_resistance_str), "Resistance: %d %s", total_resistance_centiunits/100, unit_abbrev); } else { rb->snprintf(total_resistance_str, sizeof(total_resistance_str), "Resistance: %d.%2.2d %s", total_resistance_centiunits/100, total_resistance_centiunits%100, unit_abbrev); } display->set_viewport(&text_vp); rb->lcd_puts_scroll(total_resistance_str_x, lineno++, total_resistance_str); rb->lcd_puts_scroll(tolerance_str_x, lineno++, get_tolerance_str(fourth_band)); rb->lcd_update(); button_input = rb->button_get(true); switch(button_input) { case PLA_RIGHT: break; case PLA_EXIT: case PLA_SELECT: default: quit = true; backlight_use_settings(); break; } } display->set_viewport(&text_vp); rb->lcd_scroll_stop(); display->set_viewport(&screen_vp); rb->lcd_clear_display(); return; } enum plugin_status plugin_start(const void* nothing) { (void)nothing; rb->lcd_clear_display(); rb->lcd_update(); int main_menu_selection = 0; bool menuquit = false; display = rb->screens[0]; rb->viewport_set_defaults(&screen_vp,0); rb->viewport_set_defaults(&text_vp,0); rb->viewport_set_defaults(&bitmap_vp,0); #ifndef USE_TEXT_ONLY bitmap_vp.y = RESISTOR_BMP_Y + screen_vp.y; bitmap_vp.height = BMPHEIGHT_resistor; text_vp.y = bitmap_vp.y + bitmap_vp.height; text_vp.height = screen_vp.height - text_vp.y; #endif MENUITEM_STRINGLIST(main_menu, "Resistor Code Calculator:", NULL, "Colours -> Resistance", "Resistance -> Colours", "LED resistor calculator", "Help", "Exit"); while (!menuquit) { display->set_viewport(&screen_vp); main_menu_selection = rb->do_menu(&main_menu, &main_menu_selection, NULL, false); switch(main_menu_selection) { case 0: color_to_resistance(); break; case 1: resistance_to_color(); break; case 2: led_resistance_calc(); break; case 3: display_helpfile(); break; case 4: menuquit = true; break; case MENU_ATTACHED_USB: return PLUGIN_USB_CONNECTED; } } return PLUGIN_OK; }
33.907266
94
0.526969
1690e6fa9ae34bc67a42f3b743d0c12b65fb8ab0
81
sql
SQL
stuff/queries/all shapes linea 5.sql
matteocontrini/expelliarbusbot
ff94ca8d0a0b0e639cd5ea5cf69516972ae944ee
[ "MIT" ]
8
2019-02-27T15:41:43.000Z
2022-02-22T14:17:30.000Z
stuff/queries/all shapes linea 5.sql
matteocontrini/expelliarbusbot
ff94ca8d0a0b0e639cd5ea5cf69516972ae944ee
[ "MIT" ]
6
2019-03-01T11:21:08.000Z
2019-10-16T12:53:59.000Z
stuff/queries/all shapes linea 5.sql
matteocontrini/expelliarbusbot
ff94ca8d0a0b0e639cd5ea5cf69516972ae944ee
[ "MIT" ]
3
2019-09-16T14:04:56.000Z
2019-10-02T18:42:07.000Z
select distinct shape_id from trips where route_id = 400 and direction_id = 1
16.2
25
0.777778
4c872955b25288b95579136f1c0f924cb04e27b5
12,701
kt
Kotlin
base/build-system/integration-test/application/src/test/java/com/android/build/gradle/integration/library/LibraryBuildConfigTest.kt
qiangxu1996/vmtrace
3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4
[ "Apache-2.0" ]
1
2020-10-04T19:30:22.000Z
2020-10-04T19:30:22.000Z
base/build-system/integration-test/application/src/test/java/com/android/build/gradle/integration/library/LibraryBuildConfigTest.kt
qiangxu1996/vmtrace
3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4
[ "Apache-2.0" ]
null
null
null
base/build-system/integration-test/application/src/test/java/com/android/build/gradle/integration/library/LibraryBuildConfigTest.kt
qiangxu1996/vmtrace
3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4
[ "Apache-2.0" ]
2
2020-10-04T19:30:24.000Z
2020-11-04T05:58:17.000Z
/* * Copyright (C) 2019 The Android Open Source Project * * 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 com.android.build.gradle.integration.library import com.android.build.gradle.integration.common.fixture.GradleTestProject import com.android.build.gradle.integration.common.fixture.app.HelloWorldApp import com.android.build.gradle.integration.common.fixture.app.TestSourceFile import com.android.build.gradle.integration.common.utils.findVariantByName import com.android.builder.model.AndroidProject import com.google.common.base.Charsets import com.google.common.collect.Maps import com.google.common.io.Files import org.junit.Assert import org.junit.Assert.assertEquals import org.junit.Assert.assertNotNull import org.junit.BeforeClass import org.junit.ClassRule import org.junit.Test import java.io.File import java.io.IOException /** * Test for BuildConfig field declared in build type, flavors, and variant and how they override * each other. * * Forked from [com.android.build.gradle.integration.application.BuildConfigTest]. */ class LibraryBuildConfigTest { companion object { @JvmStatic @get:ClassRule val project: GradleTestProject = GradleTestProject.builder().fromTestApp(HelloWorldApp.noBuildFile().also { it.addFile( TestSourceFile( "build.gradle", """ apply plugin: 'com.android.library' android { compileSdkVersion ${GradleTestProject.DEFAULT_COMPILE_SDK_VERSION} defaultConfig { buildConfigField "int", "VALUE_DEFAULT", "1" buildConfigField "int", "VALUE_DEBUG", "1" buildConfigField "int", "VALUE_FLAVOR", "1" buildConfigField "int", "VALUE_VARIANT", "1" } buildTypes { debug { buildConfigField "int", "VALUE_DEBUG", "100" buildConfigField "int", "VALUE_VARIANT", "100" } } flavorDimensions 'foo' productFlavors { flavor1 { buildConfigField "int", "VALUE_DEBUG", "10" buildConfigField "int", "VALUE_FLAVOR", "10" buildConfigField "int", "VALUE_VARIANT", "10" } flavor2 { buildConfigField "int", "VALUE_DEBUG", "20" buildConfigField "int", "VALUE_FLAVOR", "20" buildConfigField "int", "VALUE_VARIANT", "20" } } libraryVariants.all { variant -> if (variant.buildType.name == "debug") { variant.buildConfigField "int", "VALUE_VARIANT", "1000" } } } """.trimIndent() ) ) }).create() private lateinit var model: AndroidProject @JvmStatic @BeforeClass fun setUp() { model = project.executeAndReturnModel( "clean", "generateFlavor1DebugBuildConfig", "generateFlavor1ReleaseBuildConfig", "generateFlavor2DebugBuildConfig", "generateFlavor2ReleaseBuildConfig" ).onlyModel } } @Test @Throws(IOException::class) fun testFlavor1Debug() { val expected = """ /** * Automatically generated file. DO NOT MODIFY */ package com.example.helloworld; public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String LIBRARY_PACKAGE_NAME = "com.example.helloworld"; /** * @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME */ @Deprecated public static final String APPLICATION_ID = "com.example.helloworld"; public static final String BUILD_TYPE = "debug"; public static final String FLAVOR = "flavor1"; public static final int VERSION_CODE = 1; public static final String VERSION_NAME = "1.0"; // Fields from the variant public static final int VALUE_VARIANT = 1000; // Fields from build type: debug public static final int VALUE_DEBUG = 100; // Fields from product flavor: flavor1 public static final int VALUE_FLAVOR = 10; // Fields from default config. public static final int VALUE_DEFAULT = 1; } """.trimIndent() doCheckBuildConfig(expected, "flavor1/debug") } @Test fun modelFlavor1Debug() { val map = Maps.newHashMap<String, String>() map["VALUE_DEFAULT"] = "1" map["VALUE_FLAVOR"] = "10" map["VALUE_DEBUG"] = "100" map["VALUE_VARIANT"] = "1000" checkVariant(model, "flavor1Debug", map) } @Test @Throws(IOException::class) fun buildFlavor2Debug() { val expected = (""" /** * Automatically generated file. DO NOT MODIFY */ package com.example.helloworld; public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String LIBRARY_PACKAGE_NAME = "com.example.helloworld"; /** * @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME */ @Deprecated public static final String APPLICATION_ID = "com.example.helloworld"; public static final String BUILD_TYPE = "debug"; public static final String FLAVOR = "flavor2"; public static final int VERSION_CODE = 1; public static final String VERSION_NAME = "1.0"; // Fields from the variant public static final int VALUE_VARIANT = 1000; // Fields from build type: debug public static final int VALUE_DEBUG = 100; // Fields from product flavor: flavor2 public static final int VALUE_FLAVOR = 20; // Fields from default config. public static final int VALUE_DEFAULT = 1; } """).trimIndent() doCheckBuildConfig(expected, "flavor2/debug") } @Test fun modelFlavor2Debug() { val map = Maps.newHashMap<String, String>() map["VALUE_DEFAULT"] = "1" map["VALUE_FLAVOR"] = "20" map["VALUE_DEBUG"] = "100" map["VALUE_VARIANT"] = "1000" checkVariant(model, "flavor2Debug", map) } @Test fun buildFlavor1Release() { val expected = """ /** * Automatically generated file. DO NOT MODIFY */ package com.example.helloworld; public final class BuildConfig { public static final boolean DEBUG = false; public static final String LIBRARY_PACKAGE_NAME = "com.example.helloworld"; /** * @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME */ @Deprecated public static final String APPLICATION_ID = "com.example.helloworld"; public static final String BUILD_TYPE = "release"; public static final String FLAVOR = "flavor1"; public static final int VERSION_CODE = 1; public static final String VERSION_NAME = "1.0"; // Fields from product flavor: flavor1 public static final int VALUE_DEBUG = 10; public static final int VALUE_FLAVOR = 10; public static final int VALUE_VARIANT = 10; // Fields from default config. public static final int VALUE_DEFAULT = 1; } """.trimIndent() doCheckBuildConfig(expected, "flavor1/release") } @Test fun modelFlavor1Release() { val map = Maps.newHashMap<String, String>() map["VALUE_DEFAULT"] = "1" map["VALUE_FLAVOR"] = "10" map["VALUE_DEBUG"] = "10" map["VALUE_VARIANT"] = "10" checkVariant(model, "flavor1Release", map) } @Test @Throws(IOException::class) fun buildFlavor2Release() { val expected = """ /** * Automatically generated file. DO NOT MODIFY */ package com.example.helloworld; public final class BuildConfig { public static final boolean DEBUG = false; public static final String LIBRARY_PACKAGE_NAME = "com.example.helloworld"; /** * @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME */ @Deprecated public static final String APPLICATION_ID = "com.example.helloworld"; public static final String BUILD_TYPE = "release"; public static final String FLAVOR = "flavor2"; public static final int VERSION_CODE = 1; public static final String VERSION_NAME = "1.0"; // Fields from product flavor: flavor2 public static final int VALUE_DEBUG = 20; public static final int VALUE_FLAVOR = 20; public static final int VALUE_VARIANT = 20; // Fields from default config. public static final int VALUE_DEFAULT = 1; } """.trimIndent() doCheckBuildConfig(expected, "flavor2/release") } @Test fun modelFlavor2Release() { val map = Maps.newHashMap<String, String>() map["VALUE_DEFAULT"] = "1" map["VALUE_FLAVOR"] = "20" map["VALUE_DEBUG"] = "20" map["VALUE_VARIANT"] = "20" checkVariant(model, "flavor2Release", map) } private fun doCheckBuildConfig(expected: String, variantDir: String) { val outputFile = File( project.testDir, "build/generated/source/buildConfig/" + variantDir + "/com/example/helloworld/BuildConfig.java" ) Assert.assertTrue("Missing file: $outputFile", outputFile.isFile) assertEquals( expected, Files.asByteSource(outputFile).asCharSource(Charsets.UTF_8).read() ) } private fun checkVariant( androidProject: AndroidProject, variantName: String, valueMap: Map<String, String>? ) { val variant = androidProject.findVariantByName(variantName) assertNotNull("$variantName variant null-check", variant) val artifact = variant!!.mainArtifact assertNotNull("$variantName main artifact null-check", artifact) val value = artifact.buildConfigFields assertNotNull(value) // check the map against the expected one. assertEquals(valueMap!!.keys, value.keys) for (key in valueMap.keys) { val field = value[key] assertNotNull("$variantName: expected field $key", field) assertEquals( "$variantName: check Value of $key", valueMap[key], field?.value ) } } }
38.604863
125
0.557594
4d5674411d50b392066051176c5d3cf9e702c165
3,985
cql
SQL
src/data/NCD/Cat1/Mammograms/Mammograms.cql
mettlesolutions/coverage_determinations
1c4e5422204429f9784b9fa469028079bf5fb7cb
[ "Apache-2.0" ]
null
null
null
src/data/NCD/Cat1/Mammograms/Mammograms.cql
mettlesolutions/coverage_determinations
1c4e5422204429f9784b9fa469028079bf5fb7cb
[ "Apache-2.0" ]
81
2018-08-27T05:26:20.000Z
2019-01-03T07:56:59.000Z
src/data/NCD/Cat1/Mammograms/Mammograms.cql
mettlesolutions/coverage_determinations
1c4e5422204429f9784b9fa469028079bf5fb7cb
[ "Apache-2.0" ]
null
null
null
//Mammograms library Mammograms using FHIR include FHIRHelpers version '1.8' called FHIRHelpers //include otherLibrary version 'x.x' called otherLibrary //codesystem codeSystemName : 'OID' version 'x.x' //valueset valuesetName : 'OID' version 'x.x' codesystems{codeSystem1 , codeSystem2, etc} //code codeName : 'OID' from codeSystemName display 'displayName' //concept conceptName : {codeName1, codeName2, etc} display 'displayName' //parameter parameterName (dataType or default value) codesystem "SNOMEDCT" : '2.16.840.1.113883.6.96' codesystem "LOINC": '2.16.840.1.113883.6.1' valueset "Mammography": '2.16.840.1.113883.3.464.1003.108.11.1047' valueset "Medical doctor (occupation)": '2.16.840.1.113762.1.4.1166.24' //osteopathy doctor valueset "Screening mammography (procedure)": '2.16.840.1.113883.3.88.12.80.28' valueset "Female (finding)": '2.16.840.1.113883.3.2074.1.1.14' valueset "Asymptomatic (finding)": '2.16.840.1.113883.3.88.12.3221.7.4' valueset "Breast lump (finding)": '2.16.840.1.113883.3.88.12.3221.7.4' valueset "Pain (finding)": '2.16.840.1.113883.3.88.12.3221.7.4' valueset "Skin irritation (disorder)": '2.16.840.1.113883.3.88.12.3221.7.4' valueset "Nipple discharge symptom (finding)": '2.16.840.1.113883.3.88.12.3221.7.4' valueset "Personal history of primary malignant neoplasm of breast (situation)": '2.16.840.1.113762.1.4.1018.240' valueset "Family history of malignant neoplasm of breast (situation)": '2.16.840.1.113883.3.88.12.3221.7.4' valueset "Breast signs and symptoms (finding)": '2.16.840.1.113883.3.88.12.3221.7.4' parameter "MeasurementPeriod" Interval<DateTime> context Patient define "Condition 1(Covered)": ( exists (["DiagnosticReport": "Mammography"]) and ( exists (["Encounter": "Medical doctor (occupation)"]) ) ) define "Condition 2(Covered)": Patient.gender = "Female (finding)" and (AgeInYearsAt(start of MeasurementPeriod) > 34 and AgeInYearsAt(start of MeasurementPeriod) < 40 ) and ( exists (["DiagnosticReport": "Mammography"]) ) define "Condition 3(Covered)": ( exists (["Condition": "Asymptomatic (finding)"]) and Patient.gender = "Female (finding)" and (AgeInYearsAt(start of MeasurementPeriod) < 39) and ( exists (["Observation": "Screening mammography (procedure)"]SM where duration in months of (SM.effective) > 11 ) ) ) /*define "Symptoms for breast cancer": ( exists (["Symptom": "Breast lump (finding)"]) or ( exists (["Symptom": "Pain (finding)"]) ) or ( exists (["Symptom": "Skin irritation (disorder)"]) ) or ( exists (["Symptom": "Nipple discharge symptom (finding)"]) ) )*/ define "Condition 4(Covered)": ( exists (["Condition":"Breast signs and symptoms (finding)"]) or ( exists (["Condition": "Personal history of primary malignant neoplasm of breast (situation)"]) ) ) define "Condition 1(Not Covered)": ( exists (["Observation": "Screening mammography (procedure)"]) and Patient.gender = "Female (finding)" and (AgeInYearsAt(start of MeasurementPeriod) < 35)) define "Condition 2(Not Covered)": ( exists (["Condition": "Asymptomatic (finding)"]) and Patient.gender = "Female (finding)" and (AgeInYearsAt(start of MeasurementPeriod) >= 50)) or ( exists (["Condition": "Asymptomatic (finding)"]) and Patient.gender = "Female (finding)" and (AgeInYearsAt(start of MeasurementPeriod) >= 40) or ( exists (["Condition": "Family history of malignant neoplasm of breast (situation)"]) ) ) define "Not Covered": "Condition 1(Not Covered)" or "Condition 2(Not Covered)" define "Covered": "Condition 1(Covered)" or "Condition 2(Covered)" or "Condition 3(Covered)" or "Condition 4(Covered)" define "Coverage": "Covered" and not "Not Covered"
48.597561
175
0.657716
962a8dc6e1a9a3cddabcba9d35fc5a6ceaac1001
3,118
sql
SQL
hasura/migrations/1597267956798_window_views/up.sql
wbez/il-covid19-api
1d0b89ec2b104af804ee203b5d83400d2a97d1ed
[ "MIT" ]
null
null
null
hasura/migrations/1597267956798_window_views/up.sql
wbez/il-covid19-api
1d0b89ec2b104af804ee203b5d83400d2a97d1ed
[ "MIT" ]
12
2020-07-28T16:50:16.000Z
2020-10-16T16:23:16.000Z
hasura/migrations/1597267956798_window_views/up.sql
wbez/il-covid19-api
1d0b89ec2b104af804ee203b5d83400d2a97d1ed
[ "MIT" ]
3
2020-07-31T21:20:30.000Z
2021-07-15T13:33:24.000Z
CREATE MATERIALIZED VIEW public.state_testing_results_change AS SELECT date, total_tested, total_tested - lag(total_tested) OVER (ORDER BY date) AS total_tested_change, round( ( (total_tested - lag(total_tested) OVER (ORDER BY date))::numeric / lag(total_tested) OVER (ORDER BY date) ) * 100, 2 ) AS total_tested_change_pct, confirmed_cases, confirmed_cases - lag(confirmed_cases) OVER (ORDER BY date) AS confirmed_cases_change, round( ( (confirmed_cases - lag(confirmed_cases) OVER (ORDER BY date))::numeric / lag(confirmed_cases) OVER (ORDER BY date) ) * 100, 2 ) AS confirmed_cases_change_pct, confirmed_cases - deaths AS confirmed_cases_minus_deaths, deaths, deaths - lag(deaths) OVER (ORDER BY date) AS deaths_change, CASE WHEN lag(deaths) OVER (ORDER BY date) = 0 THEN 0::numeric ELSE round( ( (deaths - lag(deaths) OVER (ORDER BY date))::numeric / lag(deaths) OVER (ORDER BY date) ) * 100, 2 ) END AS deaths_change_pct FROM public.state_testing_results GROUP BY date, total_tested, confirmed_cases, deaths ORDER BY date DESC; CREATE MATERIALIZED VIEW public.county_testing_results_change AS SELECT date, county, census_geography_id, total_tested, total_tested - lag(total_tested) OVER (PARTITION BY county ORDER BY date) AS total_tested_change, CASE WHEN lag(total_tested) OVER (PARTITION BY county ORDER BY date) = 0 THEN 0::numeric ELSE round( ( (total_tested - lag(total_tested) OVER (PARTITION BY county ORDER BY date))::numeric / lag(total_tested) OVER (PARTITION BY county ORDER BY date) ) * 100, 2 ) END AS total_tested_change_pct, confirmed_cases, confirmed_cases - lag(confirmed_cases) OVER (PARTITION BY county ORDER BY date) AS confirmed_cases_change, CASE WHEN lag(confirmed_cases) OVER (PARTITION BY county ORDER BY date) = 0 THEN 0::numeric ELSE round( ( (confirmed_cases - lag(confirmed_cases) OVER (PARTITION BY county ORDER BY date))::numeric / lag(confirmed_cases) OVER (PARTITION BY county ORDER BY date) ) * 100, 2 ) END AS confirmed_cases_change_pct, confirmed_cases - deaths AS confirmed_cases_minus_deaths, deaths, deaths - lag(deaths) OVER (PARTITION BY county ORDER BY date) AS deaths_change, CASE WHEN lag(deaths) OVER (PARTITION BY county ORDER BY date) = 0 THEN 0::numeric ELSE round( ( (deaths - lag(deaths) OVER (PARTITION BY county ORDER BY date))::numeric / lag(deaths) OVER (PARTITION BY county ORDER BY date) ) * 100, 2 ) END AS deaths_change_pct FROM public.county_testing_results GROUP BY date, county, census_geography_id, total_tested, confirmed_cases, deaths ORDER BY date DESC;
35.431818
170
0.63406
5b093ee7d541e228c4182742866a29c331dee406
711
h
C
src/WtPorter/ExpParser.h
v1otusc/wondertrader
fd65a052d26be32882f89e8e9dfcd1d7b8736a3b
[ "MIT" ]
null
null
null
src/WtPorter/ExpParser.h
v1otusc/wondertrader
fd65a052d26be32882f89e8e9dfcd1d7b8736a3b
[ "MIT" ]
1
2022-03-21T06:51:59.000Z
2022-03-21T06:51:59.000Z
src/WtPorter/ExpParser.h
v1otusc/wondertrader
fd65a052d26be32882f89e8e9dfcd1d7b8736a3b
[ "MIT" ]
null
null
null
#pragma once #include "../Includes/IParserApi.h" USING_NS_WTP; class ExpParser : public IParserApi { public: ExpParser(const char* id):_id(id){} virtual ~ExpParser(){} public: virtual bool init(WTSVariant* config) override; virtual void release() override; virtual bool connect() override; virtual bool disconnect() override; virtual bool isConnected() override { return true; } virtual void subscribe(const CodeSet& setCodes) override; virtual void unsubscribe(const CodeSet& setCodes) override; virtual void registerSpi(IParserSpi* listener) override; private: std::string _id; IParserSpi* m_sink; IBaseDataMgr* m_pBaseDataMgr; };
16.928571
61
0.700422
f56a74aaa6f6bbc1bfde37c56c6b20c6dad95b7c
700
sql
SQL
MySQL/consultas_avancadas.sql
thiagofreitascarneiro/MySQL
1b00a728df9ccce7ede6fe7c25986688d1f388d8
[ "MIT" ]
null
null
null
MySQL/consultas_avancadas.sql
thiagofreitascarneiro/MySQL
1b00a728df9ccce7ede6fe7c25986688d1f388d8
[ "MIT" ]
null
null
null
MySQL/consultas_avancadas.sql
thiagofreitascarneiro/MySQL
1b00a728df9ccce7ede6fe7c25986688d1f388d8
[ "MIT" ]
null
null
null
# consultas complexa #passo 1 - Trazer as compras select * from compras; #Passo 2 - Colocar o nome dos clientes nas compras select com.id as "id compra", cli.nome as "cliente", com.data as "data compra" from compras as com, clientes as cli where com.id_cliente = cli.id; #Passo 3 - Produtos Compra select * FROM produtos_compra; # Passo 4 select com.id as 'venda', cli.nome as 'cliente', (prod.preco_venda * proc.quantidade) as 'total Produto Compra', com.data as 'Data da Compra' from produtos_compra as proc, produtos as prod, compras as com, clientes as cli where com.id = proc.id_compra and prod.id = proc.id_produto and cli.id = com.id_cliente GROUP BY com.id;
33.333333
91
0.714286
a17d80c93bc7e8b524d36d6678fafb6aeefa31ca
2,584
go
Go
model/logistic/Param.go
phpyandong/opentaobao
a7e3cc3ec7eeb492b20a6b8023798d5592d15fe5
[ "Apache-2.0" ]
1
2021-06-29T08:56:24.000Z
2021-06-29T08:56:24.000Z
model/logistic/Param.go
phpyandong/opentaobao
a7e3cc3ec7eeb492b20a6b8023798d5592d15fe5
[ "Apache-2.0" ]
null
null
null
model/logistic/Param.go
phpyandong/opentaobao
a7e3cc3ec7eeb492b20a6b8023798d5592d15fe5
[ "Apache-2.0" ]
null
null
null
package logistic // Param type Param struct { // appId AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"` // 外部订单号 PartnerOrderCode string `json:"partner_order_code,omitempty" xml:"partner_order_code,omitempty"` // 渠道code ChannelId string `json:"channel_id,omitempty" xml:"channel_id,omitempty"` // 取消原因描述 OrderCancelDesc string `json:"order_cancel_desc,omitempty" xml:"order_cancel_desc,omitempty"` // 取消code OrderCancelCode int64 `json:"order_cancel_code,omitempty" xml:"order_cancel_code,omitempty"` // 取消原因code 1:用户取消 OrderCancelReasonCode int64 `json:"order_cancel_reason_code,omitempty" xml:"order_cancel_reason_code,omitempty"` // 门店编码,对应大润发deliveryDockCode StoreCodes []string `json:"store_codes,omitempty" xml:"store_codes>string,omitempty"` // 服务包code ServicePackageCode string `json:"service_package_code,omitempty" xml:"service_package_code,omitempty"` // 商户code MerchantCode string `json:"merchant_code,omitempty" xml:"merchant_code,omitempty"` // 门店code ChainstoreCode string `json:"chainstore_code,omitempty" xml:"chainstore_code,omitempty"` // 经纬度来源。1-腾讯,2-百度,3-高德 PositionSource int64 `json:"position_source,omitempty" xml:"position_source,omitempty"` // 文本地址 Address string `json:"address,omitempty" xml:"address,omitempty"` // 门店名字 ChainStoreName string `json:"chain_store_name,omitempty" xml:"chain_store_name,omitempty"` // 门店code ChainStoreCode string `json:"chain_store_code,omitempty" xml:"chain_store_code,omitempty"` // 联系手机 ContactPhone string `json:"contact_phone,omitempty" xml:"contact_phone,omitempty"` // 经度 Longitude string `json:"longitude,omitempty" xml:"longitude,omitempty"` // 纬度 Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"` // 门店列表 Chainstores []ChainStore `json:"chainstores,omitempty" xml:"chainstores,omitempty"` // 交易唯一id,汇金outBizId TradeId int64 `json:"trade_id,omitempty" xml:"trade_id,omitempty"` // 汇金扣拥状态 Success bool `json:"success,omitempty" xml:"success,omitempty"` // 汇金唯一id HjTradeNo int64 `json:"hj_trade_no,omitempty" xml:"hj_trade_no,omitempty"` // 错误详情 ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` }
22.08547
118
0.655573
bd3e365b167d91fb49b8a1f61b59246d2dddf698
20,125
rs
Rust
src/provision/providers/provider_vultr.rs
ppearson/prod
95a42c7316b6377de1e14a573b9bd4a1a2fe8086
[ "Apache-2.0" ]
2
2021-11-25T23:27:24.000Z
2022-02-22T23:24:22.000Z
src/provision/providers/provider_vultr.rs
ppearson/prod
95a42c7316b6377de1e14a573b9bd4a1a2fe8086
[ "Apache-2.0" ]
null
null
null
src/provision/providers/provider_vultr.rs
ppearson/prod
95a42c7316b6377de1e14a573b9bd4a1a2fe8086
[ "Apache-2.0" ]
null
null
null
/* Prod Copyright 2021-2022 Peter Pearson. 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. --------- */ use ureq; use ureq::Error; use serde_json::{Value}; use serde::{Deserialize, Serialize}; use std::collections::BTreeSet; use crate::column_list_printer::{ColumnListPrinter, Alignment}; use crate::provision::provision_provider::{ProvisionProvider}; use crate::provision::provision_common::{ActionResultValues, ProvisionActionResult, ProvisionActionType, ProvisionResponseWaitType}; use crate::provision::provision_manager::{ListType}; use crate::provision::provision_params::{ProvisionParams}; #[derive(Serialize, Deserialize)] struct PlanResultItem { id: String, vcpu_count: u32, ram: u32, disk: u32, bandwidth: u32, monthly_cost: f32, #[serde(alias = "type")] plan_type: String, } #[derive(Serialize, Deserialize)] struct PlanListResults { plans: Vec<PlanResultItem> } #[derive(Serialize, Deserialize)] struct RegionResultItem { id: String, city: String, country: String, continent: String, } #[derive(Serialize, Deserialize)] struct RegionListResults { regions: Vec<RegionResultItem> } #[derive(Serialize, Deserialize)] struct OSResultItem { id: u32, name: String, arch: String, family: String, } #[derive(Serialize, Deserialize)] struct OSListResults { os: Vec<OSResultItem> } #[derive(Serialize, Deserialize)] struct InstanceDetails { instance: InstanceDetailsInner, } #[derive(Clone, Debug)] #[derive(Serialize, Deserialize)] struct InstanceDetailsInner { id: String, os: String, ram: u32, disk: u32, vcpu_count: u32, main_ip: String, v6_main_ip: String, status: String, // "active", "pending" power_status: String, // "stopped", "running" server_status: String, // "none", "locked", "installingbooting", // we never see this: "ok" } pub struct ProviderVultr { vultr_api_key: String, } impl ProviderVultr { pub fn new() -> ProviderVultr { ProviderVultr { vultr_api_key: String::new() } } } impl ProvisionProvider for ProviderVultr { fn name(&self) -> String { return "vultr".to_string(); } fn supports_interactive(&self) -> bool { return true; } fn prompt_interactive(&self) -> Vec<(String, String)> { let mut items = Vec::new(); items.push(("API_KEY".to_string(), "API Key to use Vultr".to_string())); return items; } fn configure_interactive(&mut self) -> bool { return false; } fn configure(&mut self) -> bool { let vultr_api_key_env = std::env::var("PROD_VULTR_API_KEY"); match vultr_api_key_env { Err(_e) => { // silently fail... // eprintln!("Error: $PROD_VULTR_API_KEY not set correctly."); return false; } Ok(v) => { self.vultr_api_key = v.trim().to_string(); return true; } } } fn is_configured(&self) -> bool { return !self.vultr_api_key.is_empty(); } // actual commands fn list_available(&self, list_type: ListType) -> bool { let url = match list_type { ListType::Plans => "plans", ListType::Regions => "regions", ListType::OSs => "os", _ => { return false; } }; let resp = ureq::get(&format!("https://api.vultr.com/v2/{}", url)) // .set("Authorization", &format!("Bearer {}", self.vultr_api_key)) .call(); if resp.is_err() { eprintln!("Error querying api.vultr.com for list request."); return false; } let resp_string = resp.unwrap().into_string().unwrap(); if list_type == ListType::Regions { let results: RegionListResults = serde_json::from_str(&resp_string).unwrap(); println!("{} regions:", results.regions.len()); let mut clp = ColumnListPrinter::new(4) .add_titles(["ID", "City", "Country", "Continent"]); for region in &results.regions { clp.add_row_strings(&[&region.id, &region.city, &region.country, &region.continent]); } print!("{}", clp); } else if list_type == ListType::Plans { let results: PlanListResults = serde_json::from_str(&resp_string).unwrap(); println!("{} plans:", results.plans.len()); let mut clp = ColumnListPrinter::new(6) .set_alignment_multiple(&[1usize, 2, 3, 4, 5], Alignment::Right) .add_titles(["ID", "vcpus", "Disk", "Memory", "Bandwidth", "Cost"]); for plan in &results.plans { clp.add_row_strings(&[&plan.id, &format!("{}", plan.vcpu_count), &format!("{} GB", plan.disk), &format!("{} MB", plan.ram), &format!("{} GB", plan.bandwidth), &format!("${:.1}", plan.monthly_cost)]); } print!("{}", clp); } else if list_type == ListType::OSs { let results: OSListResults = serde_json::from_str(&resp_string).unwrap(); println!("{} OS images:", results.os.len()); let mut clp = ColumnListPrinter::new(4) .add_titles(["ID", "Name", "Arch", "Family"]); for image in &results.os { clp.add_row_strings(&[&format!("{}", image.id), &image.name, &image.arch, &image.family]); } print!("{}", clp); } else { println!("{}", resp_string); } return true; } fn get_required_params_for_action(&self, action: ProvisionActionType) -> BTreeSet<&str> { let mut params = BTreeSet::new(); if action == ProvisionActionType::CreateInstance { params.insert("region"); params.insert("plan"); params.insert("os_id"); } else if action == ProvisionActionType::DeleteInstance { params.insert("instance_id"); } params } fn create_instance(&self, params: &ProvisionParams, _dry_run: bool) -> ProvisionActionResult { let region_str = params.get_string_value("region", ""); let plan_str = params.get_string_value("plan", ""); let label_str = params.get_string_value("label", ""); let hostname = params.get_string_value("hostname", ""); let os_id_str = params.get_string_value("os_id", ""); let tag = params.get_string_value("tag", ""); let os_id = os_id_str.parse::<u32>().unwrap(); let enable_ipv6 = params.get_string_value_as_bool("enable_ipv6", false); let backups = params.get_string_value_as_bool("backups", false); // Note: get_string_array() will return even single strings as an array by-design... let sshkey_id = params.get_string_array("sshkey_id"); let mut json_value = ureq::json!({ "region": region_str, "plan": plan_str, "label": label_str, "os_id": os_id, "enable_ipv6": enable_ipv6, "backups": if backups {"enabled"} else {"disabled"}, }); if !hostname.is_empty() { json_value.as_object_mut().unwrap().insert("hostname".to_string(), serde_json::to_value(hostname).unwrap()); } if !tag.is_empty() { json_value.as_object_mut().unwrap().insert("tag".to_string(), serde_json::to_value(tag).unwrap()); } if let Some(sshkey_id_array) = sshkey_id { json_value.as_object_mut().unwrap().insert("sshkey_id".to_string(), serde_json::to_value(sshkey_id_array).unwrap()); } let resp = ureq::post("https://api.vultr.com/v2/instances") .set("Authorization", &format!("Bearer {}", self.vultr_api_key)) .send_json(json_value); // TODO: there's an insane amount of boilerplate error handling and response // decoding going on here... Try and condense it... // TODO: make some of this re-useable for multiple actions... if resp.is_err() { match resp.err() { Some(Error::Status(code, response)) => { // server returned an error code we weren't expecting... match code { 401 => { eprintln!("Error: authentication error with Vultr API: {}", response.into_string().unwrap()); return ProvisionActionResult::ErrorAuthenticationIssue("".to_string()); }, 404 => { eprintln!("Error: Not found response from Vultr API: {}", response.into_string().unwrap()); return ProvisionActionResult::Failed("".to_string()); } _ => { } } eprintln!("Error creating instance0: code: {}, resp: {:?}", code, response); }, Some(e) => { eprintln!("Error creating instance1: {:?}", e); } _ => { // some sort of transport/io error... eprintln!("Error creating instance2: "); } } return ProvisionActionResult::Failed("".to_string()); } let resp_string = resp.unwrap().into_string().unwrap(); let parsed_response = serde_json::from_str::<Value>(&resp_string); if parsed_response.is_err() { eprintln!("Error parsing json response from Vultr.com: {}", resp_string); return ProvisionActionResult::Failed("".to_string()); } let mut result_values = ActionResultValues::new(); let parsed_value_map = parsed_response.ok().unwrap(); // eprintln!("Created Vultr instance okay:\n{:?}", parsed_value_map); // check it's an array object and other stuff (i.e. check the json is expected) if parsed_value_map.is_object() { let value_as_object = parsed_value_map.as_object().unwrap(); // we only expect 1 actual instance value... let instance_map = value_as_object.get("instance"); if instance_map.is_none() { eprintln!("Error: unexpected json response2 from Vultr.com: {}", resp_string); return ProvisionActionResult::Failed("".to_string()); } let instance_map = instance_map.unwrap(); // otherwise, hopefully we have what we need... // eprintln!("\nSingular response: {:?}", instance_map); // extract the values we want let id_val = instance_map.get("id"); match id_val { Some(val) => { result_values.values.insert("id".to_string(), val.as_str().unwrap().to_string()); }, _ => { eprintln!("Error: unexpected json response3 from Vultr.com - missing 'id' param: {}", resp_string); return ProvisionActionResult::Failed("".to_string()); } } let root_password_val = instance_map.get("default_password"); if let Some(val) = root_password_val { result_values.values.insert("root_password".to_string(), val.as_str().unwrap().to_string()); } } else { eprintln!("Error: unexpected json response1 from Vultr.com: {}", resp_string); return ProvisionActionResult::Failed("".to_string()); } let instance_id = result_values.values.get("id").unwrap().clone(); eprintln!("Vultr instance created, id: {} ...", instance_id); if params.wait_type == ProvisionResponseWaitType::ReturnImmediatelyAfterAPIRequest { return ProvisionActionResult::ActionCreatedInProgress(result_values); } eprintln!("Waiting for instance to spool up..."); // to get hold of the IP address, we need to do an additional API query to the // get instance API as it's still in the process of being spooled up.. let max_tries = 10; let mut try_count = 0; let mut have_ip = false; let mut installing_booting_count = 0; while try_count < max_tries { // sleep a bit to give things a chance... std::thread::sleep(std::time::Duration::from_secs(15)); let instance_details = self.get_instance_details(&instance_id); if instance_details.is_err() { eprintln!("Warning: Vultr cloud instance was created, but received an unexpected json response4 from vultr.com for get instance request: {}", resp_string); return instance_details.err().unwrap(); } let instance_details = instance_details.unwrap().instance; // println!("InstanceDetails (t:{}) \n{:?}\n", try_count, instance_details); if !have_ip && instance_details.main_ip != "0.0.0.0" { // we now hopefully have a valid IP result_values.values.insert("ip".to_string(), instance_details.main_ip.clone()); have_ip = true; eprintln!("Have instance IP: {}", instance_details.main_ip.clone()); // so we now have an IP, but the instance still isn't ready to be used, but maybe that's // all we need... if params.wait_type == ProvisionResponseWaitType::WaitForResourceCreationOrModification { // this is sufficient, so return out... return ProvisionActionResult::ActionCreatedInProgress(result_values); } eprintln!("Waiting for server to finish install/setup..."); } if params.wait_type == ProvisionResponseWaitType::WaitForResourceFinalised { // check the 'status' and 'server_status' fields. if instance_details.status == "active" && instance_details.power_status == "running" { // Note: 'server_status' takes a while (~8 mins) to become 'ok', which isn't too helpful, // as the instances are generally ready after ~2 mins, at which point the // 'server_status' value is still 'installingbooting', which is a bit annoying // for accurately working out when the instance is actually ready for use. if instance_details.server_status == "installingbooting" { // this adds to the general wait time on purpose... std::thread::sleep(std::time::Duration::from_secs(5)); // Note: also check we have a valid IP now, as it could be the situation (it has happened once or twice) // that provisioning the instance gets stuck, with no IP ever assigned, so we should try and guard // against that happening to some degree... if have_ip && installing_booting_count > 2 { // say we're done... return ProvisionActionResult::ActionCreatedDone(result_values); } installing_booting_count += 1; } } } try_count += 1; } if !have_ip { eprintln!("Warning: don't have an IP address yet, it's possible something went wrong..."); } // work out what to do here... technically we have an instance, so... return ProvisionActionResult::ActionCreatedInProgress(result_values); } fn delete_instance(&self, params: &ProvisionParams, _dry_run: bool) -> ProvisionActionResult { let instance_id = params.get_string_value("instance_id", ""); let full_url = format!("https://api.vultr.com/v2/instances/{}", instance_id); let resp = ureq::delete(&full_url) .set("Authorization", &format!("Bearer {}", self.vultr_api_key)) .call(); // TODO: there's an insane amount of boilerplate error handling and response // decoding going on here... Try and condense it... // TODO: make some of this re-useable for multiple actions... if resp.is_err() { match resp.err() { Some(Error::Status(code, response)) => { // server returned an error code we weren't expecting... match code { 400 => { eprintln!("Error: Bad request error: {}", response.into_string().unwrap()); return ProvisionActionResult::ErrorAuthenticationIssue("".to_string()); }, 401 => { eprintln!("Error: authentication error with Vultr API: {}", response.into_string().unwrap()); return ProvisionActionResult::ErrorAuthenticationIssue("".to_string()); }, 404 => { eprintln!("Error: Not found response from Vultr API: {}", response.into_string().unwrap()); return ProvisionActionResult::Failed("".to_string()); } _ => { } } eprintln!("Error deleting instance0: code: {}, resp: {:?}", code, response); }, Some(e) => { eprintln!("Error deleting instance1: {:?}", e); } _ => { // some sort of transport/io error... eprintln!("Error deleting instance2: "); } } return ProvisionActionResult::Failed("".to_string()); } // response should be empty... let _resp_string = resp.unwrap().into_string().unwrap(); return ProvisionActionResult::ActionCreatedInProgress(ActionResultValues::new()); } } impl ProviderVultr { fn get_instance_details(&self, instance_id: &str) -> Result<InstanceDetails, ProvisionActionResult> { let url = format!("https://api.vultr.com/v2/instances/{}", &instance_id); let get_instance_response = ureq::get(&url) .set("Authorization", &format!("Bearer {}", self.vultr_api_key)) .call(); if let Err(error) = get_instance_response { let resp_string = error.to_string(); eprintln!("Error parsing json response from Vultr.com for get instance call: {}", resp_string); return Err(ProvisionActionResult::Failed("".to_string())); } let resp_string = get_instance_response.unwrap().into_string().unwrap(); let instance_details = serde_json::from_str(&resp_string); if instance_details.is_err() { eprintln!("Error parsing json response from Vultr.com for get instance call: {}", resp_string); return Err(ProvisionActionResult::Failed("".to_string())); } let instance_details: InstanceDetails = instance_details.unwrap(); return Ok(instance_details); } }
39.383562
171
0.558807
9a60a815ef63ff84d14c504b0235283b8f3b39b5
298
asm
Assembly
Practice/Assignments assembly class/7.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
4f36bf223c44afd2233a243a2f8ba92df18f5545
[ "MIT" ]
null
null
null
Practice/Assignments assembly class/7.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
4f36bf223c44afd2233a243a2f8ba92df18f5545
[ "MIT" ]
null
null
null
Practice/Assignments assembly class/7.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
4f36bf223c44afd2233a243a2f8ba92df18f5545
[ "MIT" ]
null
null
null
org 100h L1: NOP L2: MOV AX, 0F000H MOV DS, AX MOV BX, 0FFFFH MOV AL, BYTE PTR DS:[BX] L3: MOV CX, 00000H MOV DS, CX MOV BX, 00000H MOV AH, BYTE PTR DS:[BX] L4: SUB AL, AH L5: JNS L7 L6: OUT 00H, AL JMP L8 L7: MOV DX, 0FFFFH OUT DX, AL L8: HLT ret
11.037037
28
0.553691
1cd68541c75cf64f35fd6635e5a48a5f800a4a8e
13,673
css
CSS
css-custom.django.css
pdmpro/gae-site-scaffold
2220668774242c94e2d4159b9a809fa00300db2f
[ "MIT" ]
null
null
null
css-custom.django.css
pdmpro/gae-site-scaffold
2220668774242c94e2d4159b9a809fa00300db2f
[ "MIT" ]
null
null
null
css-custom.django.css
pdmpro/gae-site-scaffold
2220668774242c94e2d4159b9a809fa00300db2f
[ "MIT" ]
null
null
null
/* primary styles -- based on the Shield theme, but extremely slimmed down onDevEnv: {{onDevEnv}} BTW, isn't this the coolest thing? https://www.sessions.edu/color-calculator/ */ /* general, incl. bootstrap 3 fixes */ html, button, input, select, textarea { color: #222; } html, body { height: 100%; } body { font-family: "{{bodyFont}}", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; color: #000; -webkit-font-smoothing: antialiased; -webkit-overflow-scrolling: touch; } body.forceMyFontSizePlease { /* because effin Bootstrap likes to override my styles, insanely */ font-size: 19px; line-height: 1.4; } th { font-weight: auto; } th, td { text-align: left; vertical-align: top; } img { /* removes the gap between images and the bottom of their containers: h5bp.com/i/440 */ vertical-align: middle; } .row { /* removing this used to cause consistent overflow to the right on rows */ margin-right: 0px; } .centered { text-align: center; } small, .itty { font-size: .75em; } .navbar { font-weight: 400; } .navbar-default { border-color: transparent; background-color: #dadada; } .navbar-toggle { border-color: transparent; border: 0px solid transparent; } .navbar-default .navbar-nav > li > a, .navbar-default .navbar-nav > li > a:hover { background-color: ; color: #000; } .navbar-brand { white-space: nowrap; } .navbar-header-button { font-size: 30px; color: {{accentColor_1}}; } #headerwrap p.surtitle { font-size: 1.25em; } /* simple modifiers */ .canted { -ms-transform: rotate(40deg); -webkit-transform: rotate(40deg); transform: rotate(40deg); } .inlined { display: inline; } .parenthetical { font-style: italic; } .righted { text-align: right !important; } .lefted { text-align: left !important; } /* popup modals */ .modal { font-weight: 400; } .modal-header button { font-size: 2.5em; } .modal-footer { background: #000; } .modal button.brand-accent-bkgnd { border-color: {{accentColor_2}}; } /* headings */ h1, h2, h3, h4, h5, h6 { font-family: "{{headingFont}}", "Times New Roman", serif; } h1, h2, h3 { font-weight: 400; color: #333; line-height: 1em; } h4, h5, h6 { font-weight: 700; } /* base block-level elements */ p { margin-bottom: 1.6em; } pre { background: #ebebeb; border: none; font-family: "{{monoFont}}", Monaco, monospace; color: #666; padding: 20px; line-height: 2rem; } blockquote, blockquote p { line-height: 2rem; color: #999; font-weight: 400; font-style: italic; } blockquote { position: relative; margin: 0 0 40px -30px; padding-left: 30px; border-left: 5px solid #3498db; } blockquote cite { position: absolute; bottom: -25px; right: 0; font-size: .75em; font-style: italic; color: #333; font-weight: 400; } blockquote cite:before { content: "-- " } ul { padding: 0px; } /* links */ a { word-wrap: break-word; -webkit-transition: color 0.1s ease-in, background 0.1s ease-in; -moz-transition: color 0.1s ease-in, background 0.1s ease-in; -ms-transition: color 0.1s ease-in, background 0.1s ease-in; -o-transition: color 0.1s ease-in, background 0.1s ease-in; transition: color 0.1s ease-in, background 0.1s ease-in; color: {{linkColor_main}}; } a:hover, a:focus { color: #fff; background-color: {{linkColor_hover}}; text-decoration: none; outline: 0; } a:before, a:after { -webkit-transition: color 0.1s ease-in, background 0.1s ease-in; -moz-transition: color 0.1s ease-in, background 0.1s ease-in; -ms-transition: color 0.1s ease-in, background 0.1s ease-in; -o-transition: color 0.1s ease-in, background 0.1s ease-in; transition: color 0.1s ease-in, background 0.1s ease-in; } /* selection colors */ ::-moz-selection { background: {{accentColor_2}}; color: #000; text-shadow: none; } ::selection { background: {{accentColor_2}}; color: #000; text-shadow: none; } /* fontawesome fixes */ a.external>i { font-size: .8em; } a.hiddenAddy>i { padding-top: -3px; } a.linkedin>i, a.facebook>i { /* social icons look a little small */ font-size: 1.2em; padding-top: -2px; } /* CSS-only indefinite loading animation */ .waitonme { border: 10px solid #ccc; border-radius: 50%; border-top: 10px solid {{accentColor_2}}; width: 66px; height: 66px; -webkit-animation: spin 1.5s linear infinite; animation: spin 1.5s linear infinite; } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* misc. backgrounds and saturation/desaturation effect */ .brand-accent-bkgnd { background-color: {{accentColor_2}}; } .grayjoy { /* for setting off a section */ background: #f5f5f5; border-bottom: 1px solid #ddd; } .hoverbright { -webkit-filter: grayscale(10%); filter: grayscale(10%); -webkit-transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; -moz-transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; -ms-transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; -o-transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; } .hoverbright:hover { -webkit-filter: grayscale(0%); filter: grayscale(0%); } .hovergray { -webkit-filter: grayscale(0%); filter: grayscale(0%); -webkit-transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; -moz-transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; -ms-transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; -o-transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; transition: filter 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out; } .hovergray:hover { -webkit-filter: grayscale(100%); filter: grayscale(100%); } /* tabbed sections */ #tab-the-second { padding: 10px 1px; } #tabby { padding-top: 8rem; margin-bottom: 8rem; } #tabby>ul { text-align: center; display: flex; justify-content: center; } #tabby .nav-pills>li>a { /* tab control (link) for inactive tabs */ color: #000; border-radius: 3px 3px 0 0; font-weight: 400; } .nav-pills>li.active>a, .nav-pills>li.active>a:hover, .nav-pills>li.active>a:focus { /* tab control (link) for the active tab */ color: #000; background-color: {{accentColor_1}}; } #tabby .tab-content { color: #000; background-color: {{accentColor_1}}; padding: 5px 15px 15px 15px; text-align: center; border-radius: 4px; } #tabby .tab-content h3 { font-weight: 700; color: #000; } /* custom branding and elements */ #statusBar { font-size: 1em; padding: 4px 12px 12px 12px; margin: 0; background-color: #333; color: #fff; font-weight: 700; } #statusBar span.status { font-size: 2.2em; font-weight: 700; margin-right: .5em; } #statusBar .btn { font-size: 1.1em; margin: 0 1em; } .bootblocks { margin-top: 0px; padding-top: 8rem; text-align: center; } .bootblocks h2 { font-size: 2em; text-transform: uppercase; margin: 0 8% 1.3em 8%; border-bottom: 1px solid #999; padding-bottom: 4px; text-align: center; } .bootblocks h3 { text-transform: uppercase; font-size: 3em; } .bootblocks .callout { margin-bottom: 20px; } .bootblocks p { padding: 1em 1.5em 2px 1.5em } .bootblocks p i.icon { font-size: 3.8em; line-height: 30px; margin-bottom: 10px; color: #434343; } .bootblocks .btn-default { /* font-size: 11px; */ padding: 1px 4px 2px 5px; margin-top: -7px; background-color: rgba(0,0,0,0); border-color: #555; color: #555; } .bootblocks .btn-default:hover { color: red; background-color: rgba(255,255,255,.9); border-color: #000; } .bootblocks a { font-weight: 400; } #footerwrap { background: #000; padding: 20px 20px !important; text-align: center; color: #eee; } #footerwrap a { font-weight: 400; } #footerwrap a:hover { color: #fff; } .copyright { font-size: .9em; } /* hero sections of pages */ #headerwrap { background: url(/images/cow-closeup-amanda-kerr-226442-unsplash-1200w.jpg) no-repeat center top; border-bottom: 10px solid #000; margin-top: -26px; padding-top: 120px; min-height: 600px; text-align: center; background-attachment: relative; background-position: center 74px; width: 100%; -webkit-background-size: 100%; -moz-background-size: 100%; -o-background-size: 100%; background-size: 100%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } #headerwrap.shorter { min-height: 330px; margin-top: -226px; padding-top: 300px; } #headerwrap .heroIcon { font-size: 1.5em; } #headerwrap h1 { color: #fff; font-size: 3.7em; font-weight: 700; padding: 0 2em 30px 2em; } #headerwrap p { color: #fff; font-size: 2.5em; font-weight: 700; text-align: center; margin-top: .325em; margin-bottom: .8em; } /* used in sub-pages, including the 404 page */ #intro { margin-top: 4em; } #intro .sub-heroic { font-size: 1.75em; padding: 0 8.33%; } /* "injected" content (quotations or whatever) */ #injectedContent { font-weight: 400; background-color: #fff; padding-bottom: 40px; } #injectedContent .quotation { padding: 2.2em; text-align: left; color: {{accentColor_2}}; } #injectedContent .attribution { font-weight: 700; color: {{accentColor_2}}; font-style: italic; } #injectedContent .attribution:before { content: "\2014"; } #injectedContent .quotation:hover { /* color: #000 !important; */ } {% comment %} this big block of blankness makes it easy to find stuff when scrolling While we're at it, here's a note about breakpoint-debug-indicator: it is a pretty nifty trick to visually show the active MQ breakpoint. As long, that is, as the number you put in the content truly indicates the breakpoint. Anyway, just add that class to something and the debugging content will be appended. {% endcomment %} /* ========================================================================== MEDIA QUERIES ========================================================================== */ /* dunno why this uses max-width but the odd-numbered pixel values are there to make max play nice with the mins in Bootstrap 3 */ @media only screen and (max-width: 1130px) { .breakpoint-debug-indicator:after { content: " 1130" } #headerwrap { min-height: 500px; } #headerwrap h1 { font-size: 3em; margin-top: 0; } } @media only screen and (max-width: 991px) { .breakpoint-debug-indicator:after { content: " 991" } #headerwrap { min-height: 440px; } #headerwrap.shorter { min-height: 300px; } .bootblocks .heroIcon { font-size: 3em; } .bootblocks h2 { font-size: 1.75em; } } @media only screen and (max-width: 908px) { /* added to fix buggy behavior in the grid specifically affecting the quickHits -- TODO: this is probably not the best way and leaves unfixed a number of related issues */ .breakpoint-debug-indicator:after { content: " 908" } .bootblocks p { margin-left: 4px; margin-right: 4px; } #boldblocks h1 span#realtitle { font-size: 5.2rem; } #boldblocks p#tagline { font-size: 2.2rem; } } @media only screen and (max-width: 840px) { .breakpoint-debug-indicator:after { content: " 840" } #headerwrap h1 { font-size: 2.75em; } #headerwrap .heroIcon { font-size: 1em; margin-top: 0; margin-bottom: 0; } #boldblocks div#interiorwest { border: 8px solid #000; } #boldblocks div#northeast { border-bottom: 4px solid #000; border-top: 8px solid #000; border-right: 8px solid #000; } #boldblocks div#southeast { border-top: 4px solid #000; border-bottom: 8px solid #000; border-right: 8px solid #000; } } @media only screen and (max-width: 813px) { /* iPhone X and below */ .breakpoint-debug-indicator:after { content: " 813" } #headerwrap h1 { font-size: 2.25em; } #boldblocks h1 span#realtitle { font-size: 4rem; } #boldblocks p#tagline { font-size: 2rem; } } @media only screen and (max-width: 767px) { .breakpoint-debug-indicator:after { content: " 767" } #headerwrap { min-height: 300px; padding-top: 90px; } #headerwrap h1 { font-size: 1.75em; /* letter-spacing: 2px; */ } #headerwrap p { font-size: 1.5em; line-height: 1em; margin-top: 1.5em; } #headerwrap .heroIcon { display: none; } #boldblocks div#interiorwest { border: 5px solid #000; } #boldblocks div#east { display: none; } #boldblocks #insetTitle { display: block; position: absolute; top: 0; left: 0; width: 100%; padding: 10px; background-color: #000; } #boldblocks #insetTitle>h1 { color: #fff; padding-left: 10px; font-size: 5rem; /* text-align: center; */ } #boldblocks #insetTitle p#tagline-alt { color: #fff; font-size: 2rem; text-transform: uppercase; padding-left: 3px; margin-top: 0px; margin-bottom: -10px; } #boldblocks #insetDecoration { display: block; border-left: 5px solid #000; background-color: {{accentColor_2}}; height: 100%; left: 80%; width: 20%; position: relative; } #injectedContent .quotation.righted { text-align: left !important; /* override the justification */ } } @media only screen and (max-width: 320px) { .breakpoint-debug-indicator:after { content: " 320" } #boldblocks #insetTitle p#tagline-alt { font-size: 1.5rem; } } /* like giant monitors? I got you covered. */ @media only screen and (min-width: 1480px) { .breakpoint-debug-indicator:after { content: " min1480" } body { font-size: 2em; } } /* even bigger? Bring it on. */ @media only screen and (min-width: 1920px) { .breakpoint-debug-indicator:after { content: " min1920" } body { font-size: 2em; } }
19.902475
103
0.667227
0b88cc0b918db3b0b9bc55668bf46c025033b785
2,237
py
Python
authlib/oauth2/rfc6749/__init__.py
geoffwhittington/authlib
096f2a41f4fb18f9850427f07d556d4b9ab97383
[ "BSD-3-Clause" ]
null
null
null
authlib/oauth2/rfc6749/__init__.py
geoffwhittington/authlib
096f2a41f4fb18f9850427f07d556d4b9ab97383
[ "BSD-3-Clause" ]
null
null
null
authlib/oauth2/rfc6749/__init__.py
geoffwhittington/authlib
096f2a41f4fb18f9850427f07d556d4b9ab97383
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ authlib.oauth2.rfc6749 ~~~~~~~~~~~~~~~~~~~~~~ This module represents a direct implementation of The OAuth 2.0 Authorization Framework. https://tools.ietf.org/html/rfc6749 """ from .wrappers import OAuth2Request, OAuth2Token, HttpRequest from .errors import ( OAuth2Error, AccessDeniedError, MissingAuthorizationError, InvalidGrantError, InvalidClientError, InvalidRequestError, InvalidScopeError, InsecureTransportError, UnauthorizedClientError, UnsupportedResponseTypeError, UnsupportedGrantTypeError, UnsupportedTokenTypeError, # exceptions for clients MissingCodeException, MissingTokenException, MissingTokenTypeException, MismatchingStateException, ) from .models import ClientMixin, AuthorizationCodeMixin, TokenMixin from .authenticate_client import ClientAuthentication from .authorization_server import AuthorizationServer from .resource_protector import ResourceProtector, TokenValidator from .token_endpoint import TokenEndpoint from .grants import ( BaseGrant, AuthorizationEndpointMixin, TokenEndpointMixin, AuthorizationCodeGrant, ImplicitGrant, ResourceOwnerPasswordCredentialsGrant, ClientCredentialsGrant, RefreshTokenGrant, ) __all__ = [ 'OAuth2Request', 'OAuth2Token', 'HttpRequest', 'OAuth2Error', 'AccessDeniedError', 'MissingAuthorizationError', 'InvalidGrantError', 'InvalidClientError', 'InvalidRequestError', 'InvalidScopeError', 'InsecureTransportError', 'UnauthorizedClientError', 'UnsupportedResponseTypeError', 'UnsupportedGrantTypeError', 'UnsupportedTokenTypeError', 'MissingCodeException', 'MissingTokenException', 'MissingTokenTypeException', 'MismatchingStateException', 'ClientMixin', 'AuthorizationCodeMixin', 'TokenMixin', 'ClientAuthentication', 'AuthorizationServer', 'ResourceProtector', 'TokenValidator', 'TokenEndpoint', 'BaseGrant', 'AuthorizationEndpointMixin', 'TokenEndpointMixin', 'AuthorizationCodeGrant', 'ImplicitGrant', 'ResourceOwnerPasswordCredentialsGrant', 'ClientCredentialsGrant', 'RefreshTokenGrant', ]
27.617284
67
0.743406
75a753c55818dca1a776afcd6291600d307ebff7
4,101
h
C
Frameworks/MapKit.framework/MKDirectionsRequest.h
shaojiankui/iOS10-Runtime-Headers
6b0d842bed0c52c2a7c1464087b3081af7e10c43
[ "MIT" ]
36
2016-04-20T04:19:04.000Z
2018-10-08T04:12:25.000Z
Frameworks/MapKit.framework/MKDirectionsRequest.h
shaojiankui/iOS10-Runtime-Headers
6b0d842bed0c52c2a7c1464087b3081af7e10c43
[ "MIT" ]
null
null
null
Frameworks/MapKit.framework/MKDirectionsRequest.h
shaojiankui/iOS10-Runtime-Headers
6b0d842bed0c52c2a7c1464087b3081af7e10c43
[ "MIT" ]
10
2016-06-16T02:40:44.000Z
2019-01-15T03:31:45.000Z
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/MapKit.framework/MapKit */ @interface MKDirectionsRequest : NSObject <NSCopying> { NSArray * _additionalTransportTypesRequested; NSDate * _arrivalDate; GEOAutomobileOptions * _automobileOptions; NSDate * _departureDate; MKMapItem * _destination; bool _includeBasicRoutePoints; bool _includeDistanceInETA; bool _includeEntryPoints; bool _includeTrafficIncidents; bool _includeTravelTimes; bool _includeZilchRoutePoints; bool _requestsAlternateRoutes; MKMapItem * _source; GEOTransitOptions * _transitOptions; unsigned long long _transportType; GEOWalkingOptions * _walkingOptions; } @property (nonatomic, readonly) bool _includeBasicRoutePoints; @property (nonatomic, readonly) bool _includeEntryPoints; @property (nonatomic, readonly) bool _includeTrafficIncidents; @property (nonatomic, readonly) bool _includeTravelTimes; @property (nonatomic, readonly) bool _includeTypicalRouteDuration; @property (nonatomic, readonly) bool _includeZilchRoutePoints; @property (getter=_additionalTransportTypesRequested, setter=_setAdditionalTransportTypesRequested:, nonatomic, retain) NSArray *additionalTransportTypesRequested; @property (getter=_automobileOptions, setter=_setAutomobileOptions:, nonatomic, retain) GEOAutomobileOptions *automobileOptions; @property (nonatomic, retain) MKMapItem *destination; @property (getter=_includeDistanceInETA, setter=_setIncludeDistanceInETA:, nonatomic) bool includeDistanceInETA; @property (nonatomic, retain) MKMapItem *source; @property (getter=_transitOptions, setter=_setTransitOptions:, nonatomic, retain) GEOTransitOptions *transitOptions; @property (getter=_walkingOptions, setter=_setWalkingOptions:, nonatomic, retain) GEOWalkingOptions *walkingOptions; + (bool)isDirectionsRequestURL:(id)arg1; - (void).cxx_destruct; - (id)_additionalTransportTypesRequested; - (id)_arrivalDate; - (id)_automobileOptions; - (id)_departureDate; - (bool)_includeBasicRoutePoints; - (bool)_includeDistanceInETA; - (bool)_includeEntryPoints; - (bool)_includeTrafficIncidents; - (bool)_includeTravelTimes; - (bool)_includeTypicalRouteDuration; - (bool)_includeZilchRoutePoints; - (id)_mapkit_initWithAllTransportTypesSource:(id)arg1 destination:(id)arg2 arrivalDate:(id)arg3; - (id)_mapkit_initWithAllTransportTypesSource:(id)arg1 destination:(id)arg2 departureDate:(id)arg3; - (id)_mapkit_initWithDictionaryRepresentation:(id)arg1; - (id)_mapkit_initWithSource:(id)arg1 destination:(id)arg2 transportType:(unsigned long long)arg3 arrivalDate:(id)arg4; - (id)_mapkit_initWithSource:(id)arg1 destination:(id)arg2 transportType:(unsigned long long)arg3 arrivalDate:(id)arg4 includeTravelTimes:(bool)arg5 includeTrafficIncidents:(bool)arg6 includeEntryPoints:(bool)arg7 includeRoutePoints:(bool)arg8; - (id)_mapkit_initWithSource:(id)arg1 destination:(id)arg2 transportType:(unsigned long long)arg3 departureDate:(id)arg4; - (id)_mapkit_initWithSource:(id)arg1 destination:(id)arg2 transportType:(unsigned long long)arg3 departureDate:(id)arg4 includeTravelTimes:(bool)arg5 includeTrafficIncidents:(bool)arg6 includeEntryPoints:(bool)arg7 includeRoutePoints:(bool)arg8; - (void)_setAdditionalTransportTypesRequested:(id)arg1; - (void)_setAutomobileOptions:(id)arg1; - (void)_setIncludeDistanceInETA:(bool)arg1; - (void)_setTransitOptions:(id)arg1; - (void)_setWalkingOptions:(id)arg1; - (id)_transitOptions; - (unsigned long long)_transportType; - (id)_walkingOptions; - (id)arrivalDate; - (id)copyWithZone:(struct _NSZone { }*)arg1; - (id)departureDate; - (id)description; - (id)destination; - (id)dictionaryRepresentation; - (id)init; - (id)initWithContentsOfURL:(id)arg1; - (bool)requestsAlternateRoutes; - (void)setArrivalDate:(id)arg1; - (void)setDepartureDate:(id)arg1; - (void)setDestination:(id)arg1; - (void)setRequestsAlternateRoutes:(bool)arg1; - (void)setSource:(id)arg1; - (void)setTransportType:(unsigned long long)arg1; - (id)source; - (unsigned long long)transportType; - (bool)writeToURL:(id)arg1 error:(id*)arg2; @end
47.137931
246
0.801756
85c1b13200baea3bdacd750b1fd8bf16db7b683c
1,730
js
JavaScript
src/index.js
kingflamez/screen-size-vue
b53df37540b7b0bd53c437cc55c7397ef7bce693
[ "MIT" ]
30
2020-07-21T00:17:58.000Z
2021-05-04T11:26:10.000Z
src/index.js
kingflamez/screen-size-vue
b53df37540b7b0bd53c437cc55c7397ef7bce693
[ "MIT" ]
4
2021-10-06T20:16:55.000Z
2022-02-27T08:38:25.000Z
src/index.js
kingflamez/screen-size-vue
b53df37540b7b0bd53c437cc55c7397ef7bce693
[ "MIT" ]
null
null
null
const VueScreenSize = { data() { return { $screenSize: null, $breakPoint: { xs: 'xs', s: 's', m: 'm', l: 'l', xl: 'xl' } } }, methods: { handleResize() { const isClient = typeof window === 'object' const width = isClient ? window.innerWidth : 0 const height = isClient ? window.innerHeight : 0 const breakPoint = this.getScreenMode(width) this.$data.$screenSize = { width, height, breakPoint } }, getScreenMode(width) { if (width < 576) { return this.$data.$breakPoint.xs } else if (width >= 576 && width < 768) { return this.$data.$breakPoint.s } else if (width >= 768 && width < 992) { return this.$data.$breakPoint.m } else if (width >= 992 && width < 1200) { return this.$data.$breakPoint.l } else { return this.$data.$breakPoint.xl } }, $VHToPX(vhHeight) { return `${(vhHeight / 100) * this.$data.$screenSize.height}px` } }, created() { const isClient = typeof window === 'object' if (!isClient) return this.handleResize() window.addEventListener('resize', this.handleResize) }, beforeDestroy() { window.removeEventListener('resize', this.handleResize) } } const VueScreenSizePackage = { install(Vue) { Vue.mixin(VueScreenSize) } } export default VueScreenSizePackage
27.03125
74
0.468208
9341097ef573b730abe6f187aa2d4770279d9a6a
13,534
lua
Lua
aliveai/bot.lua
sb613/aliveai_2.5.1
c312f3e7c70da230441cf63f2efbc645b0ea64a3
[ "CC0-1.0" ]
null
null
null
aliveai/bot.lua
sb613/aliveai_2.5.1
c312f3e7c70da230441cf63f2efbc645b0ea64a3
[ "CC0-1.0" ]
null
null
null
aliveai/bot.lua
sb613/aliveai_2.5.1
c312f3e7c70da230441cf63f2efbc645b0ea64a3
[ "CC0-1.0" ]
null
null
null
aliveai.bot=function(self, dtime) self.timer=self.timer+dtime self.timerfalling=self.timerfalling+dtime if self.timerfalling>0.2 then aliveai.falling(self) end if self.timer<=self.time then return self end self.timer=0 if aliveai.regulate_prestandard>0 and math.random(1,aliveai.regulate_prestandard)==1 then return self end --betweens if not aliveai.dmgbynode(self) then return self end if self.step(self,dtime) then return self end aliveai.jumping(self)-- if need to jump aliveai.msghandler(self) if aliveai.come(self) then return self end if aliveai.fight(self) then return self end if aliveai.fly(self) then return self end if aliveai.light(self) then return self end aliveai.pickup(self)-- if can pick up items --betweens helpers if self.isrnd and self.pickupgoto then return self end --events if self.mine then aliveai.mine(self) return self end if self.findspace then aliveai.findspace(self) return self end if self.build then aliveai.build(self) return self end --missions if self.mission=="build" then aliveai.mission_build(self) return self end --mission create if aliveai.enable_build==true and self.building==1 and self.mission=="" and not self.home then --setting up for build a home aliveai.showstatus(self,"set up for build a home") self.build_step=1 self.build_pos="" self.mission="build" self.ignoremineitem="" self.ignoreminetime=0 self.ignoreminetimer=200 self.ignoreminechange=0 self.missionstep=0 aliveai.rndwalk(self,false) -- stop rnd walking return self end if self.mission=="" then aliveai.rndwalk(self) end return self end aliveai.do_nothing=function(self) return end aliveai.create_bot=function(def) if not def then def={} end def.name=def.name or "bot" def.mod_name=minetest.get_current_modname() if aliveai.smartshop and def.on_step==nil then def.on_step=aliveai.use_smartshop end local itemtexture=def.texture if def.texture and type(def.texture)=="table" and type(def.texture[1])=="string" then itemtexture=def.texture[1] end if not def.on_click then def.on_click=aliveai.give_to_bot end aliveai.registered_bots[def.name]={ name=def.name, bot=def.mod_name ..":" .. def.name, item=def.mod_name ..":" .. def.name .. "_spawner", dead="" } minetest.register_craftitem(def.mod_name ..":" .. def.name .."_spawner", { description = def.name .." spawner", inventory_image = itemtexture or "character.png", on_place = function(itemstack, user, pointed_thing) if pointed_thing.type=="node" then local pos=aliveai.roundpos(pointed_thing.above) pos.y=pos.y+0.5 minetest.add_entity(pos, def.mod_name ..":" .. def.name):setyaw(math.random(0,6.28)) itemstack:take_item() end return itemstack end, }) def.drop_dead_body=def.drop_dead_body or 1 if def.texture~=nil and type(def.texture)=="string" then def.texture={def.texture} end if def.drop_dead_body==1 then aliveai.registered_bots[def.name].dead=def.mod_name ..":" .. def.name .."_dead" minetest.register_entity(def.mod_name ..":" .. def.name .."_dead",{ hp_max = def.hp or 20, physical = true, weight = 5, collisionbox = def.collisionbox or {-0.35,-1.0,-0.35,0.35,0.8,0.35}, visual = def.visual or "mesh", visual_size = def.visual_size or {x=1,y=1}, mesh = aliveai.character_model, textures = def.texture or {"character.png"}, colors = {}, spritediv = {x=1, y=1}, initial_sprite_basepos = {x=0, y=0}, is_visible = true, makes_footstep_sound = false, automatic_rotate = false, on_activate=function(self, staticdata) aliveai.anim(self,"lay") self.object:setacceleration({x=0,y=-10,z =0}) self.object:setvelocity({x=0,y=-3,z =0}) return self end, on_step=function(self, dtime) self.time=self.time+dtime if self.time<5 then return self end local pos=self.object:getpos() pos.y=pos.y-1 local node=minetest.get_node(pos) aliveai.punch(self,self.object,self.object:get_hp()*2) if node and minetest.get_item_group(node.name, "igniter")>0 then minetest.add_particlespawner({ amount = 10, time =0.2, minpos = {x=pos.x-1, y=pos.y, z=pos.z-1}, maxpos = {x=pos.x+1, y=pos.y, z=pos.z+1}, minvel = {x=0, y=0, z=0}, maxvel = {x=0, y=math.random(3,6), z=0}, minacc = {x=0, y=2, z=0}, maxacc = {x=0, y=0, z=0}, minexptime = 1, maxexptime = 3, minsize = 3, maxsize = 8, texture = "default_item_smoke.png", collisiondetection = true, }) end return self end, time=0, type="", anim="" }) end minetest.register_entity(def.mod_name ..":" .. def.name,{ hp_max = def.hp or 20, physical = true, weight = 5, collisionbox = def.collisionbox or {-0.35,-1.0,-0.35,0.35,0.8,0.35}, visual = def.visual or "mesh", visual_size = def.visual_size or {x=1,y=1}, mesh = aliveai.character_model, textures = def.texture or {"character.png"}, colors = {}, spritediv = {x=1, y=1}, initial_sprite_basepos = {x=0, y=0}, is_visible = true, makes_footstep_sound = true, automatic_rotate = false, visual=def.visual or "mesh", on_rightclick=function(self, clicker,name) self.on_click(self,clicker) end, on_punch=function(self, puncher, time_from_last_punch, tool_capabilities, dir) if dir~=nil then self.object:setvelocity({x = dir.x*3,y = self.object:getvelocity().y,z = dir.z*3}) end aliveai.showhp(self) if self.object:get_hp()<=0 then local pos=self.object:getpos() aliveai.invdropall(self) if self.drop_dead_body==1 then aliveai.showstatus(self,"drop dead body") minetest.add_entity(pos, def.mod_name ..":" .. def.name .."_dead"):setyaw(self.object:getyaw()) end self.on_death(self,puncher,pos) aliveai.max(self,true) return self end self.punched(self,puncher) aliveai.showhp(self) if self.path then aliveai.exitpath(self) end minetest.after(2, function(self) aliveai.eat(self,"") end,self) if not (puncher:get_luaentity() and puncher:get_luaentity().aliveai and puncher:get_luaentity().botname==self.botname) then local known=aliveai.getknown(self,puncher) if known=="member" then aliveai.known(self,puncher,"") if math.random(1,3)==1 then aliveai.say(self,"I dont like you anymore") end return self elseif self.escape==1 and known=="fly" or self.fighting~=1 then if self.temper>-5 then self.temper=self.temper-0.3 end if math.random(1,3)==1 then aliveai.sayrnd(self,"ahh") end self.fly=puncher elseif self.fighting==1 then if self.temper<5 then self.temper=self.temper+1 end self.fight=puncher if math.random(1,3)==1 then aliveai.sayrnd(self,"ouch") end end return self end aliveai.sayrnd(self,"ouch") return self end, on_activate=function(self, staticdata) if staticdata~="" then local r=aliveai.convertdata(staticdata) self.inv={} self.ignore_item={} self.ignore_nodes={} self.known={} self.start_with_items={} self.old=r.old self.known=r.known self.inv=r.inv self.ignore_item=r.ignore_item self.ignore_nodes=r.ignore_ingnore_nodes self.mission=r.mission self.missionstep=r.missionstep self.botname=r.botname self.start_with_items=r.start_with_items self.dmg=r.dmg if r.savetool then self.tools=r.tools self.savetool=1 self.tool_near=1 end if r.home then self.home=r.home end if r.resources then self.resources=r.resources end if r.hp then self.object:set_hp(r.hp) end if r.save_inventory then self.save_inventory=r.save_inventory end if r.save_pos then self.save_pos=r.save_pos end if r.save then self.save=r.save end if self.mission=="build" then self.house=r.house self.build_step=r.build_step self.build_x=r.build_x self.build_y=r.build_y self.build_z=r.build_z self.build_pos=r.build_pos self.ignoremineitem=r.ignoremineitem self.ignoreminetime=tonumber(r.ignoreminetime) self.ignoreminetimer=tonumber(r.ignoreminetimer) self.ignoreminechange=tonumber(r.ignoreminechange) end aliveai.showstatus(self,"loaded") end if self.inv==nil then self.inv={} end if self.ignore_item==nil then self.ignore_item={} end self.move={x=0,y=0,z=0,speed=1} aliveai.anim(self,"stand") self.object:setacceleration({x=0,y=-10,z =0}) self.object:setvelocity({x=0,y=-5,z =0}) if self.botname=="" then self.botname=aliveai.genname() end if self.namecolor~="" then self.object:set_properties({nametag=self.botname,nametag_color="#" .. self.namecolor}) end if self.start_with_items~="" and type(self.start_with_items)=="table" then for i, s in pairs(self.start_with_items) do aliveai.invadd(self,i,s,true) end end if self.old~=1 then aliveai.max(self) self.on_spawn(self) aliveai.showstatus(self,"new bot spawned") else aliveai.max(self) self.on_load(self) aliveai.showstatus(self,"bot loaded") end return self end, get_staticdata = function(self) aliveai.max(self) local r={inv=self.inv,old=1,hp=self.object:get_hp(), mission=self.mission, missionstep=self.missionstep, ignore_item=self.ignore_item, known=self.known, ignore_nodes=self.ignore_ingnore_nodes, botname=self.botname, start_with_items=self.start_with_items, dmg=self.dmg, } if self.home then r.home=self.home end if self.resources then r.resources=self.resources end if self.savetool then r.tools=self.tools r.savetool=1 end if self.save_inventory then r.save_inventory=self.save_inventory end if self.save_pos then r.save_pos=self.save_pos end if self.save then r.save=self.save end if self.mission=="build" then r.house=self.house r.build_step=self.build_step r.build_x=self.build_x r.build_y=self.build_y r.build_z=self.build_z r.build_pos=self.build_pos r.ignoremineitem=self.ignoremineitem r.ignoreminechange=self.ignoreminechange r.ignoreminetime=self.ignoreminetime r.ignoreminetimer=self.ignoreminetimer end return aliveai.convertdata(r) end, on_step=aliveai.bot, on_spoken_to= def.on_spoken_to or aliveai.on_spoken_to, visual= def.visual or "mesh", basey= def.basey or 0.7, old= 0, botname=def.botname or "", dmg= def.dmg or 4, namecolor= def.name_color or "ffffff", temper= 0, rnd= 0, isrnd= false, arm= def.arm or 5, done="", avoidy= def.avoid_height or 6, missionstep= 0, mission= "", house=def.house or "", pathn= 1, anim= "", timer= 0, time= 1, otime= 1, timer3= 0, timerfalling= 0, aliveai= true, drop_dead_body=def.drop_dead_body or 1, team= def.team or "Sam", type= def.type or "npc", distance= def.distance or 15, tools= def.tools or "", tool_index=def.tool_index or 1, tool_reuse=def.tool_reuse or 0, tool_chance= def.tool_chance or 5, tool_see= def.tool_see or 1, tool_near= def.tool_near or 0, escape= def.escape or 1, fighting= def.fighting or 1, attack_players= def.attack_players or 0, attack_chance= def.attack_chance or 10, smartfight= def.smartfight or 1, building= def.building or 1, pickuping= def.pickuping or 1, attacking= def.attacking or 0, coming= def.coming or 1, coming_players= def.coming_players or 1, talking= def.talking or 1, stealing= def.stealing or 0, steal_chance= def.steal_chance or 0, start_with_items= def.start_with_items or "", light= def.light or 1, lowestlight= def.lowest_light or 10, lightdamage=def.hurts_by_light or 1, annoyed_by_staring= def.annoyed_by_staring or 1, drowning= def.drowning or 1, on_fighting= def.on_fighting or aliveai.do_nothing, on_escaping= def.on_escaping or aliveai.do_nothing, on_punching= def.on_punching or aliveai.do_nothing, on_detect_enemy= def.on_detect_enemy or aliveai.do_nothing, on_detecting_enemy= def.on_detecting_enemy or aliveai.do_nothing, on_death= def.on_death or aliveai.do_nothing, on_spawn= def.on_spawn or aliveai.do_nothing, on_load= def.on_load or aliveai.do_nothing, on_random_walk= def.on_random_walk or aliveai.do_nothing, on_click= def.on_click or aliveai.do_nothing, punched= def.on_punched or aliveai.do_nothing, on_meet= def.on_meet or aliveai.do_nothing, step= def.on_step or aliveai.do_nothing, on_dig= def.on_dig or aliveai.do_nothing, }) def.spawn_in= def.spawn_in or "air" def.spawn_chance= def.spawn_chance or 1000 if def.light==nil then def.light=1 end if def.lowest_light==nil then def.lowest_light=10 end minetest.register_abm({ nodenames = def.spawn_on or {"default:dirt_with_grass","default:dirt_with_dry_grass","group:sand","default:snow"}, interval = def.spawn_interval or 30, chance = def.spawn_chance, action = function(pos) local pos1={x=pos.x,y=pos.y+1,z=pos.z} local pos2={x=pos.x,y=pos.y+2,z=pos.z} local l=minetest.get_node_light(pos1) if l==nil then return true end if math.random(1,def.spawn_chance)==1 and (def.light==0 or (def.light>0 and l>=def.lowest_light) or (def.light<0 and l<=def.lowest_light)) then if aliveai.check_spawn_space==false or (minetest.get_node(pos1).name==def.spawn_in and minetest.get_node(pos2).name==def.spawn_in) then aliveai.newbot=true minetest.add_entity(pos1, def.mod_name ..":" .. def.name):setyaw(math.random(0,6.28)) end end end, }) print("[aliveai] loaded: " .. def.mod_name ..":" .. def.name) end
32.147268
139
0.699867
0c97356ee6bbe49ca37564ac2a4ced12f750d008
624
py
Python
sorting-and-searching/selection-sort.py
rayruicai/coding-interview
4de5de63fe09eae488bdbde372aa1c0cb4defa85
[ "MIT" ]
null
null
null
sorting-and-searching/selection-sort.py
rayruicai/coding-interview
4de5de63fe09eae488bdbde372aa1c0cb4defa85
[ "MIT" ]
null
null
null
sorting-and-searching/selection-sort.py
rayruicai/coding-interview
4de5de63fe09eae488bdbde372aa1c0cb4defa85
[ "MIT" ]
null
null
null
import unittest # time complexity O(n**2) # space complexity O(1) def selection_sort(arr): n = len(arr) while n >= 2: value_max = arr[0] index_max = 0 for i in range(1, n): if arr[i] > value_max: value_max = arr[i] index_max = i arr[n-1], arr[index_max] = arr[index_max], arr[n-1] n -= 1 return arr class Test(unittest.TestCase): def test_selection_sort(self): arr = [3,6,9,7,8,4,2,5,1,9,6] self.assertEqual(selection_sort(arr), [1,2,3,4,5,6,6,7,8,9,9]); if __name__ == "__main__": unittest.main()
22.285714
71
0.543269
efffd42bbf456a11cacf074d5ddff552bb906dd8
493
asm
Assembly
programs/oeis/327/A327917.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/327/A327917.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/327/A327917.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A327917: Triangle T read by rows: T(k, n) = A(k-n, k) with the array A(k, n) = F(2*k+n) = A000045(2*k+n), for k >= 0 and n >= 0. ; 0,1,1,3,2,1,8,5,3,2,21,13,8,5,3,55,34,21,13,8,5,144,89,55,34,21,13,8,377,233,144,89,55,34,21,13,987,610,377,233,144,89,55,34,21,2584,1597,987,610,377,233,144,89,55,34,6765,4181,2584,1597,987,610,377,233,144,89,55 seq $0,294317 ; Triangle read by rows: T(n, k) = 2*n-k, k <= n. seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
82.166667
214
0.604462
0e604922764c1ab12bf0ef89400e7a218b002933
6,431
html
HTML
recettes/Sandwich_chaud_pouletepinards_a_la_creme.html
bstevy/atelier_des_chefs
05396a5cbad6f61a111896052472e21007799eb4
[ "CC0-1.0" ]
null
null
null
recettes/Sandwich_chaud_pouletepinards_a_la_creme.html
bstevy/atelier_des_chefs
05396a5cbad6f61a111896052472e21007799eb4
[ "CC0-1.0" ]
null
null
null
recettes/Sandwich_chaud_pouletepinards_a_la_creme.html
bstevy/atelier_des_chefs
05396a5cbad6f61a111896052472e21007799eb4
[ "CC0-1.0" ]
null
null
null
<!DOCTYPE html> <html lang="fr"> <head> <title> </title> <meta content="text/html ; charset=utf-8" http-equiv="Content-Type"/> <meta content="fr" http-equiv="language"/> <meta content=" " name="description"/> <!-- =========================== recetteController imprimerrecetteAction =========================== --> <!-- base href="https://www.atelierdeschefs.fr" /--> <link href="https://www.atelierdeschefs.fr/fr/amp/recette/26459-sandwich-chaud-poulet-epinards-a-la-creme.php" rel="amphtml"/> <link href="https://www.atelierdeschefs.com/favicon.ico" rel="favicon" type="image/x-icon"/> <link href="https://www.atelierdeschefs.com/css//site/index.css.php?t=20200423" media="screen, print" rel="stylesheet"/> <!--<link rel="stylesheet" href="https://www.atelierdeschefs.com/css/site/index_imp" media="screen, print" />--> <!--<link rel="stylesheet" href="https://www.atelierdeschefs.com/css/site/index_imp_print" media="print" />--> <!--<link rel="stylesheet" href="bootstrap-3.3.7/bootstrap.min" media="print" />--> <meta content="NOINDEX,NOFOLLOW" name="ROBOTS"/> </head> <body> <div class="container" id="mysection"> <div style=""> <div> <div> <div> <div class="logo_header marginB10 text-center"> <img alt="L'atelier des Chefs logo" class="" src="https://www.atelierdeschefs.com/images/fr/picto/adc_logo_part1.png"/> <img alt="L'atelier des Chefs logo" class="" src="https://www.atelierdeschefs.com/images/fr/picto/adc_logo_part2.png"/> </div> <div> <div class="title-recette row-fluid"> <div class="image-recette f-left col-lg-4 col-md-4 col-sm-4 col-xs-4"> <img class="row-fluid" src="https://www.atelierdeschefs.com/media/recette-d26459-sandwich-chaud-poulet-epinards-a-la-creme.jpg"/> <div class="ingredients-box"> <h4 class="title-ingredients">Les ingrédients</h4> <div class="clr"></div> <div class="quantite-ingredients"> quantités pour 4 personne(s) </div> <div class="clr"></div> <div class="list-ingredients"> <ul class="paddingL0 fs_12"><li>Tranche(s) de pain de mie complet : 8 pièce(s)</li><li>Escalope(s) de poulet : 4 pièce(s)</li><li>Crème fraîche épaisse : 100 g</li><li>Pousse(s) d'épinard : 300 g</li><li>Cumin en poudre : 2 g</li><li>Huile d'olive : 2 cl</li><li>Sel fin : 4 pincée(s)</li><li>Moulin à poivre : 4 tour(s)</li></ul> </div> <div class="clr"></div> </div> </div> <div class="paddingL0 col-lg-8 col-md-8 col-sm-8 col-xs-8"> <h1 class="fz150 recette-titre" itemprop="name">Recette de Sandwich chaud poulet-épinards à la crème</h1> <div class="info-recette padding10"> <div class="col-lg-6 col-md-5 col-sm-6 col-xs-6 padding0"> <ul class="conditions-steps text-center row-fluid"> <li class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-center margin0"> <img alt="Temps de préparation " src="https://www.atelierdeschefs.com/images/fr/recettes/recette_display/recette_mobile/tmps_prepa.png"/> <p>15mn<p></p> </p></li> <li class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-center margin0"> <img alt="Temps de cuisson " src="https://www.atelierdeschefs.com/images/fr/recettes/recette_display/recette_mobile/tmps_cuisson.png"/> <p> 20mn<p></p> </p></li> <li class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-center margin0"> <img alt="Temps de repos " src="https://www.atelierdeschefs.com/images/fr/recettes/recette_display/recette_mobile/tmps_repos.png"/> <p> 0mn<p></p> </p></li> </ul> <ul> <li class="level text-center"> <img alt="Niveau Facile" src="https://www.atelierdeschefs.com/images/fr/recettes/recette_display/recette_desktop/difficultes2-new.png" title="Niveau : Facile"/> <p class="text-center arial">Facile </p> </li> </ul> </div> <div class="lepluschef-box col-lg-6 col-md-7 col-sm-6 col-xs-6"> <div class="img-lepluschef col-lg-4 col-md-2 col-sm-4 col-xs-4"> <img alt="Astuce du Chef" class="" height="60" src="https://www.atelierdeschefs.com/images/fr/communs/static/img_chef_6.gif" width="70"/> </div> <div class="info-lepluschef col-lg-8 col-md-10 col-sm-8 col-xs-8"> <p class="title-lepluschef arial">Le + du Chef</p> <p class="fz100 content-title-lepluschef arial"> Il est préférable d'éponger soigneusement les pousses d'épinards avec du papier absorbant après la cuisson pour qu'elles ne détrempent pas le pain. </p> </div> </div> </div> <div class="marginT15"> <div class="description-box"> <h4 class="title-description paddingL20 uppercase">préparation</h4> <div class="marginL20"> <div class="descriptif_r fs_14"> <p class="marginT0 arial"> <br/><b class="italic">Ce que vous pouvez préparer avant le cours</b><br/>- Réaliser les pesées.<br> - Laver les épinards.<br/><br/><b class="italic">Pour la recette</b><br/>Préchauffer le four à 240 °C.<br> <br> Griller les tranches de pain des 2 côtés au grille-pain ou au four.<br> <br> Saler les escalopes de poulet, puis les mettre dans une poêle très chaude avec un filet d'huile d'olive et les colorer à feu vif des 2 côtés pendant 2 min. Baisser ensuite le feu et poursuivre la cuisson durant 4 min.<br/> Couper les escalopes en tranches d'environ 1 cm d'épaisseur, puis les poivrer.<br/> <br/> Verser un filet d'huile d'olive dans la même poêle et faire tomber les pousses d'épinards à feu vif pendant 1 min. Les assaisonner de sel, de poivre et de cumin en poudre.<br/> <br/> Tartiner une tranche de pain de crème fraîche. Ajouter ensuite quelques lamelles de poulet, puis un lit d'épinards égouttés. Tartiner une deuxième tranche de pain d'une bonne couche de crème, puis la poser sur l'ensemble.<br/> <br/> Repasser le croque au four pendant 2 min. Servir bien chaud.<br/> </br></br></br></br></br></p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!--IF I DELETE THIS LINE THE PAGE WONT DISPLAY THE CSSBASIC--> <!-- <link rel="stylesheet" href="https://www.atelierdeschefs.com/min/g=cssbasics&amp;1583137719" media="print, (orientation:portrait)" > <link rel="stylesheet" href="https://www.atelierdeschefs.com/min/g=cssbasics&amp;1583137719" media="(orientation:landscape)" > <link rel="stylesheet" href="https://www.atelierdeschefs.com/min/g=cssbasics&amp;1583137719" media="print" type="text/css" > --> </div> <div class="clr"></div> </body> </html>
52.713115
338
0.671435
2719ce50d9f7f460d6334caa3b33f198f9bf2c09
2,587
h
C
src/devices/gpio/drivers/as370-gpio/as370-gpio.h
dahlia-os/fuchsia-pine64-pinephone
57aace6f0b0bd75306426c98ab9eb3ff4524a61d
[ "BSD-3-Clause" ]
10
2020-12-28T17:04:44.000Z
2022-03-12T03:20:43.000Z
src/devices/gpio/drivers/as370-gpio/as370-gpio.h
oshunter/fuchsia
2196fc8c176d01969466b97bba3f31ec55f7767b
[ "BSD-3-Clause" ]
1
2022-01-14T23:38:40.000Z
2022-01-14T23:38:40.000Z
src/devices/gpio/drivers/as370-gpio/as370-gpio.h
oshunter/fuchsia
2196fc8c176d01969466b97bba3f31ec55f7767b
[ "BSD-3-Clause" ]
4
2020-12-28T17:04:45.000Z
2022-03-12T03:20:44.000Z
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_DEVICES_GPIO_DRIVERS_AS370_GPIO_AS370_GPIO_H_ #define SRC_DEVICES_GPIO_DRIVERS_AS370_GPIO_AS370_GPIO_H_ #include <lib/mmio/mmio.h> #include <threads.h> #include <ddktl/device.h> #include <ddktl/protocol/gpioimpl.h> #include <fbl/array.h> #include <fbl/vector.h> #include <soc/synaptics/gpio.h> namespace gpio { class As370Gpio : public ddk::Device<As370Gpio, ddk::UnbindableNew>, public ddk::GpioImplProtocol<As370Gpio, ddk::base_protocol> { public: static zx_status_t Create(void* ctx, zx_device_t* parent); As370Gpio(zx_device_t* parent, fbl::Vector<ddk::MmioBuffer> pinmux_mmios, fbl::Vector<ddk::MmioBuffer> gpio_mmios, fbl::Array<zx::interrupt> port_interrupts, const synaptics::PinmuxMetadata& pinmux_metadata) : ddk::Device<As370Gpio, ddk::UnbindableNew>(parent), pinmux_mmios_(std::move(pinmux_mmios)), gpio_mmios_(std::move(gpio_mmios)), port_interrupts_(std::move(port_interrupts)), pinmux_metadata_(pinmux_metadata) {} virtual ~As370Gpio() = default; void DdkUnbindNew(ddk::UnbindTxn txn); void DdkRelease(); zx_status_t GpioImplConfigIn(uint32_t index, uint32_t flags); zx_status_t GpioImplConfigOut(uint32_t index, uint8_t initial_value); zx_status_t GpioImplSetAltFunction(uint32_t index, uint64_t function); zx_status_t GpioImplSetDriveStrength(uint32_t index, uint64_t ua, uint64_t* out_actual_ua); zx_status_t GpioImplRead(uint32_t index, uint8_t* out_value); zx_status_t GpioImplWrite(uint32_t index, uint8_t value); zx_status_t GpioImplGetInterrupt(uint32_t index, uint32_t flags, zx::interrupt* out_irq); zx_status_t GpioImplReleaseInterrupt(uint32_t index); zx_status_t GpioImplSetPolarity(uint32_t index, gpio_polarity_t polarity); zx_status_t Init(); void Shutdown(); protected: fbl::Vector<ddk::MmioBuffer> pinmux_mmios_; fbl::Vector<ddk::MmioBuffer> gpio_mmios_; private: zx_status_t Bind(); int Thread(); inline void SetInterruptPolarity(uint32_t index, bool is_high); inline void SetInterruptEdge(uint32_t index, bool is_edge); inline bool IsInterruptEnabled(uint64_t index); thrd_t thread_; fbl::Array<zx::interrupt> port_interrupts_; fbl::Array<zx::interrupt> gpio_interrupts_; zx::port port_; const synaptics::PinmuxMetadata pinmux_metadata_; }; } // namespace gpio #endif // SRC_DEVICES_GPIO_DRIVERS_AS370_GPIO_AS370_GPIO_H_
36.43662
95
0.764979
b9f9cb494cb37c84d586959fafde9de87f5c58a5
1,258
swift
Swift
DigitalFare/Classes/GeocodingResponse.swift
althurzard/DigitalFare
88b4445be887a91db6c3c4aa476d72c058f86be1
[ "MIT" ]
null
null
null
DigitalFare/Classes/GeocodingResponse.swift
althurzard/DigitalFare
88b4445be887a91db6c3c4aa476d72c058f86be1
[ "MIT" ]
null
null
null
DigitalFare/Classes/GeocodingResponse.swift
althurzard/DigitalFare
88b4445be887a91db6c3c4aa476d72c058f86be1
[ "MIT" ]
null
null
null
// // GeocodingResponse.swift // digital-fare-lib // // Created by Nguyen Quoc Vuong on 7/29/20. // import Foundation import CPAPIService import CoreLocation public struct GeocodingResponse: BaseModel { public var results: [GeocodingResult] } public struct GeocodingResult: BaseModel { public var formattedAddress: String? public var placeId: String? public var location: Location? enum GeometryKeys: String, CodingKey { case geometry } enum CodingKeys: String, CodingKey { case formattedAddress = "formattedAddress" case placeId = "place_id" case location } } extension GeocodingResult { public init(from decoder: Decoder) throws { let geometry = try decoder.container(keyedBy: GeometryKeys.self) let geometryContainer = try geometry.nestedContainer(keyedBy: CodingKeys.self, forKey: .geometry) location = try geometryContainer.decodeIfPresent(Location.self, forKey: .location) let container = try decoder.container(keyedBy: CodingKeys.self) placeId = try container.decodeIfPresent(String.self, forKey: .placeId) formattedAddress = try container.decodeIfPresent(String.self, forKey: .formattedAddress) } }
28.590909
105
0.704293
80c16ee45eba190cb1320e404e11596152bf65f4
5,580
kt
Kotlin
src/test/kotlin/com/velmie/parser/ParserTests.kt
velmie/jvm-api-error-parser
49dd892984bd4fba263b2dc8f20b4733ff3ba169
[ "MIT" ]
null
null
null
src/test/kotlin/com/velmie/parser/ParserTests.kt
velmie/jvm-api-error-parser
49dd892984bd4fba263b2dc8f20b4733ff3ba169
[ "MIT" ]
null
null
null
src/test/kotlin/com/velmie/parser/ParserTests.kt
velmie/jvm-api-error-parser
49dd892984bd4fba263b2dc8f20b4733ff3ba169
[ "MIT" ]
1
2019-06-20T07:33:03.000Z
2019-06-20T07:33:03.000Z
package com.velmie.parser import com.google.gson.Gson import com.google.gson.reflect.TypeToken import com.velmie.parser.entity.DataEntity import com.velmie.parser.entity.apiResponse.ApiResponseEntity import com.velmie.parser.entity.apiResponse.interfaces.ErrorMessageInterface import com.velmie.parser.entity.parserResponse.ApiParserEmptyResponse import com.velmie.parser.entity.parserResponse.ApiParserErrorResponse import com.velmie.parser.entity.parserResponse.ApiParserSuccessResponse import com.velmie.parser.entity.parserResponse.ParserMessageEntity import org.junit.Test import java.nio.file.Files import java.nio.file.Paths import java.util.stream.Collectors import kotlin.test.BeforeTest import kotlin.test.assertEquals import kotlin.test.assertNotNull import kotlin.test.assertTrue class ParserTests { private val gson = Gson() private val parser: ApiParser = ApiParser( mapOf( Pair(Constants.ErrorCode.INSUFFICIENT_FUNDS, Constants.Message.EMPTY_BALANCE), Pair(Constants.ErrorCode.INVALID_PASSWORD_CONFIRMATION, Constants.Message.PASSWORD_DO_NOT_MATCH), Pair(Constants.ErrorCode.INVALID_PUNCTUATION, Constants.Message.PUNCTUATION_ERROR) ), Constants.Message.DEFAULT ) private var response: ApiResponseEntity<DataEntity>? = null @BeforeTest fun initJson() { response = gson.fromJson(getJson(), object : TypeToken<ApiResponseEntity<DataEntity>>() {}.type) } fun getJson(): String { return Files.lines(Paths.get(ClassLoader.getSystemClassLoader().getResource("test.json")!!.toURI())) .parallel() .collect(Collectors.joining()) } @Test fun testMessageFromCode() { assertEquals(parser.getMessage(Constants.ErrorCode.INVALID_PUNCTUATION), Constants.Message.PUNCTUATION_ERROR) assertEquals(parser.getMessage(Constants.ErrorCode.UNKNOWN), Constants.Message.DEFAULT) } @Test fun testFirstErrorMessage() { assertEquals(parser.getFirstMessage(response!!.errors!!), Constants.Message.EMPTY_BALANCE) val errors = response!!.errors!!.toMutableList() errors.add(0, response!!.errors!![2]) assertEquals(parser.getFirstMessage(errors), Constants.Message.DEFAULT) } @Test fun testMessage() { assertEquals(parser.getMessage(response!!.errors!!.last()), Constants.Message.PASSWORD_DO_NOT_MATCH) assertEquals(parser.getMessage(response!!.errors!![2]), Constants.Message.DEFAULT) } @Test fun testListError() { checkErrorList(response!!.errors!!, parser.getErrors(response!!.errors!!)) } @Test fun testParsing() { val parserResponse = parser.getParserResponse(response!!) assertEquals(response!!.data, parserResponse.data) checkErrorList(response!!.errors!!, parserResponse.errors) } @Test fun testApiParserResponse() { val errorResponse = parser.parse(response!!) assertTrue { errorResponse is ApiParserErrorResponse } checkErrorList(response!!.errors!!, (errorResponse as ApiParserErrorResponse).errors) val emptyResponse = ApiResponseEntity(null, listOf()) assertTrue { parser.parse(emptyResponse) is ApiParserEmptyResponse } val successResponse = ApiResponseEntity(response!!.data, listOf()) assertTrue { parser.parse(successResponse) is ApiParserSuccessResponse } assertNotNull(successResponse.data) assertEquals(successResponse.data, response!!.data) } /* @Test fun testParse() { val parserResponseFromJson = parser.getParserResponse<DataEntity>( json = getJson(), type = object : TypeToken<ApiResponseEntity<DataEntity>>() {}.type ) assertEquals(apiResponse!!.data, parserResponseFromJson.data) checkErrorList(apiResponse!!.errors, parserResponseFromJson.errors) }*/ /*@Test fun getParserResponse () { val responseStringError: ResponseStringErrorEntity = gson.fromJson(getJson(), object : TypeToken<ResponseStringErrorEntity>() {}.type) val parserResponse = parser.getParserResponse(responseStringError.data, gson.toJson(responseStringError.errors)) assertEquals(responseStringError.data, parserResponse.data) checkErrorList(apiResponse!!.errors, parser.getErrors(gson.toJson(responseStringError.errors))) }*/ /* @Test fun parseErrorFromJson() { val responseStringError: ResponseStringErrorEntity = gson.fromJson(getJson(), object : TypeToken<ResponseStringErrorEntity>() {}.type) parser.getErrors(gson.toJson(responseStringError.errors)) checkErrorList(apiResponse!!.errors, parser.getErrors(gson.toJson(responseStringError.errors))) }*/ private fun checkErrorList(errors: List<ErrorMessageInterface>, parserErrors: List<ParserMessageEntity>) { assertEquals(errors[0].code, parserErrors[0].code) assertEquals(errors[1].code, parserErrors[1].code) assertEquals(errors[2].code, parserErrors[2].code) assertEquals(errors[3].code, parserErrors[3].code) assertEquals(parserErrors[0].message, Constants.Message.EMPTY_BALANCE) assertEquals(parserErrors[1].message, Constants.Message.PUNCTUATION_ERROR) assertEquals(parserErrors[2].message, Constants.Message.DEFAULT) assertEquals(parserErrors[3].message, Constants.Message.PASSWORD_DO_NOT_MATCH) assertNotNull(parserErrors[0].source) assertNotNull(parserErrors[3].source) } }
40.729927
120
0.722581
5bd28168288a8896887fca1828b3ea080fab0725
2,591
h
C
Volume_15/Number_4/Olsson2011/utils/Rendering.h
kyeonghopark/jgt-code
08bbcc298e12582e32cb56a52e70344c57689d73
[ "MIT" ]
415
2015-10-24T17:37:12.000Z
2022-02-18T04:09:07.000Z
Volume_15/Number_4/Olsson2011/utils/Rendering.h
kyeonghopark/jgt-code
08bbcc298e12582e32cb56a52e70344c57689d73
[ "MIT" ]
8
2016-01-15T13:23:16.000Z
2021-05-27T01:49:50.000Z
Volume_15/Number_4/Olsson2011/utils/Rendering.h
kyeonghopark/jgt-code
08bbcc298e12582e32cb56a52e70344c57689d73
[ "MIT" ]
77
2015-10-24T22:36:29.000Z
2022-03-24T01:03:54.000Z
/****************************************************************************/ /* Copyright (c) 2011, Markus Billeter, Ola Olsson, Erik Sintorn and Ulf Assarsson * * 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. */ /****************************************************************************/ #ifndef _chag_utils_Rendering_h_ #define _chag_utils_Rendering_h_ #include <linmath/float4x4.h> #include <linmath/float3.h> #include <math.h> namespace chag { /** * The resulting matrix is created identically to gluPerspective() * and takes identical parameters. */ inline float4x4 perspectiveMatrix(float fov, float aspectRatio, float n, float f) { using namespace chag; float4x4 m = make_identity<float4x4>(); m[3][3] = 0.0f; float b = -1.0f / (f-n); float cotanFOV = 1.0f / tanf(fov*(float)g_pi/360.f); m[0][0] = cotanFOV / aspectRatio; m[1][1] = cotanFOV; m[2][2] = (f+n)*b; m[2][3] = -1.0f; m[3][2] = 2.0f*n*f*b; return m; } /** */ inline float4x4 lookAt(const float3 &eyePosition, const float3 &lookAt, const float3 &desiredUp) { using namespace chag; float3 forward = normalize(lookAt - eyePosition); float3 side = normalize(cross(forward, desiredUp)); float3 up = cross(side, forward); float4x4 m = make_identity<float4x4>(); m[0][0] = side.x; m[1][0] = side.y; m[2][0] = side.z; m[0][1] = up.x; m[1][1] = up.y; m[2][1] = up.z; m[0][2] = -forward.x; m[1][2] = -forward.y; m[2][2] = -forward.z; return m * make_translation(-eyePosition); } }; // namespace chag #endif // _chag_utils_Rendering_h_
29.443182
96
0.659591
9c6e1819c4e019cd12f08920a50f99537c6212e5
8,468
js
JavaScript
app/fbcnms-projects/inventory/app/components/configure/AddEditWorkerTypeCard.js
danielrh135568/symphony-1
54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4
[ "BSD-3-Clause" ]
null
null
null
app/fbcnms-projects/inventory/app/components/configure/AddEditWorkerTypeCard.js
danielrh135568/symphony-1
54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4
[ "BSD-3-Clause" ]
12
2022-02-14T04:20:30.000Z
2022-03-28T04:20:17.000Z
app/fbcnms-projects/inventory/app/components/configure/AddEditWorkerTypeCard.js
danielrh135568/symphony-1
54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4
[ "BSD-3-Clause" ]
1
2022-02-24T21:47:51.000Z
2022-02-24T21:47:51.000Z
/** * Copyright 2004-present Facebook. All Rights Reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import type {AddEditWorkerTypeCard_workerType} from './__generated__/AddEditWorkerTypeCard_workerType.graphql'; import type {WithAlert} from '@fbcnms/ui/components/Alert/withAlert'; import type {WorkerType} from '../../common/Worker'; import Breadcrumbs from '@fbcnms/ui/components/Breadcrumbs'; import Button from '@symphony/design-system/components/Button'; import DeleteOutlineIcon from '@material-ui/icons/DeleteOutline'; import ExpandingPanel from '@fbcnms/ui/components/ExpandingPanel'; import ExperimentalPropertyTypesTable from '../form/ExperimentalPropertyTypesTable'; import FormAction from '@symphony/design-system/components/Form/FormAction'; import FormActionWithPermissions from '../../common/FormActionWithPermissions'; import NameDescriptionSection from '../../common/NameDescriptionSection'; import PropertyTypesTableDispatcher from '../form/context/property_types/PropertyTypesTableDispatcher'; import React, {useCallback, useState} from 'react'; import SnackbarItem from '@fbcnms/ui/components/SnackbarItem'; import fbt from 'fbt'; import symphony from '@symphony/design-system/theme/symphony'; import withAlert from '@fbcnms/ui/components/Alert/withAlert'; import {FormContextProvider} from '../../common/FormContext'; import {addWorkerType} from '../../mutations/AddWorkerTypeMutation'; import {createFragmentContainer, graphql} from 'react-relay'; import {deleteWorkerType} from '../../mutations/RemoveWorkerTypeMutation'; import {editWorkerType} from '../../mutations/EditWorkerTypeMutation'; import {generateTempId, isTempId} from '../../common/EntUtils'; import {makeStyles} from '@material-ui/styles'; import {toMutablePropertyType} from '../../common/PropertyType'; import {useEnqueueSnackbar} from '@fbcnms/ui/hooks/useSnackbar'; import {usePropertyTypesReducer} from '../form/context/property_types/PropertyTypesTableState'; const useStyles = makeStyles(() => ({ root: { padding: '24px 16px', maxHeight: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column', }, header: { display: 'flex', paddingBottom: '24px', }, body: { overflowY: 'auto', }, buttons: { display: 'flex', }, cancelButton: { marginRight: '8px', }, deleteButton: { cursor: 'pointer', color: symphony.palette.D400, width: '32px', height: '32px', display: 'flex', alignItems: 'center', justifyContent: 'center', marginRight: '8px', }, assigneeCanCompleteContainer: { marginTop: '16px', display: 'flex', alignItems: 'center', }, checkbox: { marginRight: '8px', }, })); type Props = $ReadOnly<{| open: boolean, onClose: () => void, onSave: () => void, workerType: ?AddEditWorkerTypeCard_workerType, ...WithAlert, |}>; const AddEditWorkerTypeCard = ({ workerType, onClose, onSave, confirm, }: Props) => { const classes = useStyles(); const [editingWorkerType, setEditingWorkerType] = useState<WorkerType>({ id: workerType?.id ?? generateTempId(), name: workerType?.name ?? '', description: workerType?.description, propertyTypes: [], }); const [isSaving, setIsSaving] = useState(false); const [propertyTypes, propertyTypesDispatcher] = usePropertyTypesReducer( (workerType?.propertyTypes ?? []) .filter(Boolean) .map(toMutablePropertyType), ); const enqueueSnackbar = useEnqueueSnackbar(); const onDelete = useCallback(() => { confirm( fbt( 'Are you sure you want to delete ' + fbt.param('name', editingWorkerType.name), '', ).toString(), ).then( deleteApproved => deleteApproved && deleteWorkerType(editingWorkerType.id) .then(onClose) .catch((errorMessage: string) => enqueueSnackbar(errorMessage, { children: key => ( <SnackbarItem id={key} message={errorMessage} variant="error" /> ), }), ), ); }, [ confirm, editingWorkerType.name, editingWorkerType.id, onClose, enqueueSnackbar, ]); const nameChanged = name => setEditingWorkerType(workerType => ({ ...workerType, name, })); const descriptionChanged = description => setEditingWorkerType(workerType => ({ ...workerType, description, })); const onSaveClicked = () => { setIsSaving(true); const workerToSave: WorkerType = { ...editingWorkerType, propertyTypes, }; const saveAction = isTempId(editingWorkerType.id) ? addWorkerType : editWorkerType; saveAction(workerToSave) .then(onSave) .catch((errorMessage: string) => enqueueSnackbar(errorMessage, { children: key => ( <SnackbarItem id={key} message={errorMessage} variant="error" /> ), }), ) .finally(() => setIsSaving(false)); }; const isOnEditMode = workerType != null; return ( <FormContextProvider permissions={{ entity: 'automationTemplate', action: isOnEditMode ? 'update' : 'create', }}> <div className={classes.root}> <div className={classes.header}> <Breadcrumbs breadcrumbs={[ { id: 'wk_templates', name: 'Worker Templates', onClick: onClose, }, workerType ? { id: workerType.id, name: workerType.name, } : { id: 'new_wo_type', name: `${fbt('New worker template', '')}`, }, ]} size="large" /> <div className={classes.buttons}> {isOnEditMode && ( <FormActionWithPermissions permissions={{entity: 'automationTemplate', action: 'delete'}}> <Button className={classes.deleteButton} variant="text" skin="gray" onClick={onDelete}> <DeleteOutlineIcon /> </Button> </FormActionWithPermissions> )} <Button className={classes.cancelButton} skin="regular" onClick={onClose}> Cancel </Button> <FormAction disableOnFromError={true} disabled={isSaving}> <Button onClick={onSaveClicked}>Save</Button> </FormAction> </div> </div> <div className={classes.body}> <ExpandingPanel title="Details"> <NameDescriptionSection title="Title" name={editingWorkerType.name ?? ''} namePlaceholder={`${fbt('New worker template', '')}`} description={editingWorkerType.description ?? ''} descriptionPlaceholder={`${fbt( 'Write a description if you want it to appear whenever this template of worker is created', '', )}`} onNameChange={nameChanged} onDescriptionChange={descriptionChanged} /> </ExpandingPanel> <ExpandingPanel title="Properties"> <PropertyTypesTableDispatcher.Provider value={propertyTypesDispatcher}> <ExperimentalPropertyTypesTable supportDelete={true} propertyTypes={propertyTypes} /> </PropertyTypesTableDispatcher.Provider> </ExpandingPanel> </div> </div> </FormContextProvider> ); }; export default createFragmentContainer(withAlert(AddEditWorkerTypeCard), { workerType: graphql` fragment AddEditWorkerTypeCard_workerType on WorkerType { id name description propertyTypes { id name type nodeType index stringValue intValue booleanValue floatValue latitudeValue longitudeValue rangeFromValue rangeToValue isEditable isMandatory isInstanceProperty isDeleted category } } `, });
29.816901
111
0.599551
0cb901c85f60e28cdd422152266e1ce6e9afaf21
2,164
py
Python
web/impact/impact/views/calendar_reminder_view.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
5
2017-10-19T15:11:52.000Z
2020-03-08T07:16:21.000Z
web/impact/impact/views/calendar_reminder_view.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
182
2017-06-21T19:32:13.000Z
2021-03-22T13:38:16.000Z
web/impact/impact/views/calendar_reminder_view.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
1
2018-06-23T11:53:18.000Z
2018-06-23T11:53:18.000Z
from django.views import View from django.http import HttpResponseRedirect from add2cal import Add2Cal from pytz import timezone import datetime from django.http import ( JsonResponse, HttpResponse ) ADD2CAL_DATE_FORMAT = "%Y%m%dT%H%M%S" CALENDAR_CONTENT_TYPE = 'text/calendar' OUTLOOK_LINK_TYPE = 'outlook' GOOGLE_LINK_TYPE = 'google' YAHOO_LINK_TYPE = 'yahoo' ICAL_LINK_TYPE = 'ical' class CalendarReminderView(View): view_name = 'calendar_reminder_view' def get(self, request, *args, **kwargs): params = self.request.GET start = params.get('start', datetime.datetime.now().strftime( ADD2CAL_DATE_FORMAT)) end = params.get( 'end', datetime.datetime.now().strftime(ADD2CAL_DATE_FORMAT)) title = params.get('title', 'new reminder') description = params.get('description', '') location = params.get('location', 'MassChallenge') tz = params.get('timezone', timezone('UTC')) link_type = params.get('link_type', 'data') add2cal = Add2Cal( start=start, end=end, title=title, description=description, location=location, timezone=tz) calendar_data = add2cal.as_dict() if link_type == ICAL_LINK_TYPE: response = HttpResponse( calendar_data['ical_content'], content_type=CALENDAR_CONTENT_TYPE) attachment = 'attachment; filename={title}.ics'.format(title=title) response['Content-Type'] = CALENDAR_CONTENT_TYPE response['Content-Disposition'] = attachment elif link_type == OUTLOOK_LINK_TYPE: response = HttpResponseRedirect( redirect_to=calendar_data['outlook_link']) elif link_type == GOOGLE_LINK_TYPE: response = HttpResponseRedirect( redirect_to=calendar_data['gcal_link']) elif link_type == YAHOO_LINK_TYPE: response = HttpResponseRedirect( redirect_to=calendar_data['yahoo_link']) else: response = JsonResponse(add2cal.as_dict()) return response
35.47541
79
0.636322
d82b2e9f0d080184069eb85c9cbf43fc07e12fd9
759
sql
SQL
ArcanaErp.Database/dbo/Tables/RequirementPartyRole.sql
TheWizardAndTheWyrd/ArcanaERP
7a1740b7dc91f27fa3971059d0883f76a19949a9
[ "PostgreSQL" ]
null
null
null
ArcanaErp.Database/dbo/Tables/RequirementPartyRole.sql
TheWizardAndTheWyrd/ArcanaERP
7a1740b7dc91f27fa3971059d0883f76a19949a9
[ "PostgreSQL" ]
null
null
null
ArcanaErp.Database/dbo/Tables/RequirementPartyRole.sql
TheWizardAndTheWyrd/ArcanaERP
7a1740b7dc91f27fa3971059d0883f76a19949a9
[ "PostgreSQL" ]
null
null
null
CREATE TABLE [dbo].[RequirementPartyRole] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Description] VARCHAR (255) NULL, [RequirementId] INT NULL, [PartyId] INT NULL, [RoleTypeId] INT NULL, [ExternalIdentifier] VARCHAR (255) NULL, [ExternalIdSource] VARCHAR (255) NULL, [ValidFrom] DATETIME NULL, [ValidTo] DATETIME NULL, [CreatedAt] DATETIME NOT NULL, [UpdatedAt] DATETIME NOT NULL, PRIMARY KEY CLUSTERED ([Id] ASC) ); GO CREATE NONCLUSTERED INDEX [RequirementPartyRoleIndex] ON [dbo].[RequirementPartyRole]([RequirementId] ASC, [PartyId] ASC, [RoleTypeId] ASC);
36.142857
90
0.55336
cb8c1143da35971ebc1b2488297e747858737071
1,079
swift
Swift
Tests/BowLaws/MonadStateLaws.swift
Dragna/bow
8cd19a4fd84463b53ce1b0772bec96d84f9f5007
[ "Apache-2.0" ]
null
null
null
Tests/BowLaws/MonadStateLaws.swift
Dragna/bow
8cd19a4fd84463b53ce1b0772bec96d84f9f5007
[ "Apache-2.0" ]
null
null
null
Tests/BowLaws/MonadStateLaws.swift
Dragna/bow
8cd19a4fd84463b53ce1b0772bec96d84f9f5007
[ "Apache-2.0" ]
null
null
null
import Foundation import SwiftCheck @testable import Bow class MonadStateLaws<F: MonadState & EquatableK> where F.S == Int { static func check() { getIdempotent() setTwice() setGet() getSet() } private static func getIdempotent() { property("Idempotence") <- forAll { (_: Int) in return F.flatMap(F.get(), { _ in F.get() }) == F.get() } } private static func setTwice() { property("Set twice is equivalent to set only the second") <- forAll { (s: Int, t: Int) in return isEqual(F.flatMap(F.set(s), { _ in F.set(t) }), F.set(t)) } } private static func setGet() { property("Get after set retrieves the original value") <- forAll { (s: Int) in return F.flatMap(F.set(s), { _ in F.get() }) == F.flatMap(F.set(s), { _ in F.pure(s) }) } } private static func getSet() { property("Get set") <- forAll { (_: Int) in return isEqual(F.flatMap(F.get(), F.set), F.pure(())) } } }
28.394737
99
0.531047
f095e8c4203e79cda4b80de2f79b7f41a7b3d5b7
15,758
js
JavaScript
lib/tests/lookaround-leapfrog.test.js
loveencounterflow/pipestreams
ef51c62cb8add08fe8d65e188e5b94c6917ba4d4
[ "MIT" ]
null
null
null
lib/tests/lookaround-leapfrog.test.js
loveencounterflow/pipestreams
ef51c62cb8add08fe8d65e188e5b94c6917ba4d4
[ "MIT" ]
null
null
null
lib/tests/lookaround-leapfrog.test.js
loveencounterflow/pipestreams
ef51c62cb8add08fe8d65e188e5b94c6917ba4d4
[ "MIT" ]
null
null
null
(function() { 'use strict'; var $, $async, CND, FS, OS, PATH, PS, alert, badge, debug, defer, echo, help, info, inspect, is_empty, jr, log, rpr, test, urge, warn, whisper, xrpr; //########################################################################################################### CND = require('cnd'); rpr = CND.rpr; badge = 'PIPESTREAMS/TESTS/WYE'; log = CND.get_logger('plain', badge); info = CND.get_logger('info', badge); whisper = CND.get_logger('whisper', badge); alert = CND.get_logger('alert', badge); debug = CND.get_logger('debug', badge); warn = CND.get_logger('warn', badge); help = CND.get_logger('help', badge); urge = CND.get_logger('urge', badge); echo = CND.echo.bind(CND); //........................................................................................................... PATH = require('path'); FS = require('fs'); OS = require('os'); test = require('guy-test'); //........................................................................................................... PS = require('../..'); ({$, $async} = PS.export()); //........................................................................................................... ({jr, is_empty} = CND); defer = setImmediate; ({inspect} = require('util')); xrpr = function(x) { return inspect(x, { colors: true, breakLength: 2e308, maxArrayLength: 2e308, depth: 2e308 }); }; //----------------------------------------------------------------------------------------------------------- this["1 leapfrog lookaround with groups"] = async function(T, done) { var error, i, len, matcher, probe, probes_and_matchers; probes_and_matchers = [ [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) !== 0; }) ], [1, 2, 4, 5, [null, 3, 6], 7, 8, [3, 6, 9], 10, 11, [6, 9, 12], [9, 12, null]], null ], [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) === 0; }) ], [[null, 1, 2], 3, [1, 2, 4], [2, 4, 5], 6, [4, 5, 7], [5, 7, 8], 9, [7, 8, 10], [8, 10, 11], 12, [10, 11, null]], null ] ]; //......................................................................................................... for (i = 0, len = probes_and_matchers.length; i < len; i++) { [probe, matcher, error] = probes_and_matchers[i]; //....................................................................................................... await T.perform(probe, matcher, error, function() { return new Promise(function(resolve, reject) { var collector, pipeline, tester, values; [values, tester] = probe; collector = []; pipeline = []; pipeline.push(PS.new_value_source(values)); pipeline.push(PS.leapfrog(tester, PS.lookaround($(function(d3, send) { var d, nxt, prv; [prv, d, nxt] = d3; return send(d3); })))); pipeline.push(PS.$collect({collector})); pipeline.push(PS.$drain(function() { return resolve(collector); })); PS.pull(...pipeline); //..................................................................................................... return null; }); }); } //......................................................................................................... done(); return null; }; //----------------------------------------------------------------------------------------------------------- this["1 leapfrog lookaround with groups 2"] = async function(T, done) { var error, i, len, matcher, probe, probes_and_matchers; probes_and_matchers = [ [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) !== 0; }) ], [1, 2, 4, 5, [null, 3, 6], 7, 8, [3, 6, 9], 10, 11, [6, 9, 12], [9, 12, null]], null ], [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) === 0; }) ], [[null, 1, 2], 3, [1, 2, 4], [2, 4, 5], 6, [4, 5, 7], [5, 7, 8], 9, [7, 8, 10], [8, 10, 11], 12, [10, 11, null]], null ] ]; //......................................................................................................... for (i = 0, len = probes_and_matchers.length; i < len; i++) { [probe, matcher, error] = probes_and_matchers[i]; //....................................................................................................... await T.perform(probe, matcher, error, function() { return new Promise(function(resolve, reject) { var collector, pipeline, tester, values; [values, tester] = probe; collector = []; pipeline = []; pipeline.push(PS.new_value_source(values)); // pipeline.push PS.$show { title: 'µ33421-1', } // pipeline.push PS.leapfrog tester, PS.lookaround $ ( d3, send ) -> pipeline.push(PS.lookaround({ leapfrog: tester }, $(function(d3, send) { var d, nxt, prv; // debug 'µ43443', jr d3 [prv, d, nxt] = d3; return send(d3); }))); // pipeline.push PS.$show { title: 'µ33421-2', } pipeline.push(PS.$collect({collector})); pipeline.push(PS.$drain(function() { return resolve(collector); })); PS.pull(...pipeline); //..................................................................................................... return null; }); }); } //......................................................................................................... done(); return null; }; //----------------------------------------------------------------------------------------------------------- /* TAINT ordering not preserved */ this["_____________ 2 leapfrog lookaround ungrouped"] = async function(T, done) { var error, i, len, matcher, probe, probes_and_matchers; probes_and_matchers = [ [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) !== 0; }) ], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], null ], [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) === 0; }) ], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], null ] ]; //......................................................................................................... for (i = 0, len = probes_and_matchers.length; i < len; i++) { [probe, matcher, error] = probes_and_matchers[i]; //....................................................................................................... await T.perform(probe, matcher, error, function() { return new Promise(function(resolve, reject) { var collector, pipeline, tester, values; [values, tester] = probe; collector = []; pipeline = []; pipeline.push(PS.new_value_source(values)); pipeline.push(PS.leapfrog(tester, PS.lookaround($(function(d3, send) { var d, nxt, prv; help('µ44333', jr(d3)); [prv, d, nxt] = d3; return send(d); })))); pipeline.push(PS.$show()); pipeline.push(PS.$collect({collector})); pipeline.push(PS.$drain(function() { return resolve(collector); })); PS.pull(...pipeline); //..................................................................................................... return null; }); }); } //......................................................................................................... done(); return null; }; //----------------------------------------------------------------------------------------------------------- this["3 lookaround"] = async function(T, done) { var error, i, len, matcher, probe, probes_and_matchers; probes_and_matchers = [ [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) !== 0; }) ], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], null ], [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) === 0; }) ], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], null ] ]; //......................................................................................................... for (i = 0, len = probes_and_matchers.length; i < len; i++) { [probe, matcher, error] = probes_and_matchers[i]; //....................................................................................................... await T.perform(probe, matcher, error, function() { return new Promise(function(resolve, reject) { var collector, pipeline, tester, values; [values, tester] = probe; collector = []; pipeline = []; pipeline.push(PS.new_value_source(values)); pipeline.push(PS.lookaround($(function(d3, send) { var d, nxt, prv; [prv, d, nxt] = d3; return send(d); }))); pipeline.push(PS.$collect({collector})); pipeline.push(PS.$drain(function() { return resolve(collector); })); PS.pull(...pipeline); //..................................................................................................... return null; }); }); } //......................................................................................................... done(); return null; }; //----------------------------------------------------------------------------------------------------------- this["4 leapfrog"] = async function(T, done) { var error, i, len, matcher, probe, probes_and_matchers; probes_and_matchers = [ [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) !== 0; }) ], [1, 2, 300, 4, 5, 600, 7, 8, 900, 10, 11, 1200], null ], [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) === 0; }) ], [100, 200, 3, 400, 500, 6, 700, 800, 9, 1000, 1100, 12], null ] ]; //......................................................................................................... for (i = 0, len = probes_and_matchers.length; i < len; i++) { [probe, matcher, error] = probes_and_matchers[i]; //....................................................................................................... await T.perform(probe, matcher, error, function() { return new Promise(function(resolve, reject) { var collector, pipeline, tester, values; [values, tester] = probe; collector = []; pipeline = []; pipeline.push(PS.new_value_source(values)); pipeline.push(PS.leapfrog(tester, $(function(d, send) { return send(d * 100); }))); pipeline.push(PS.$collect({collector})); pipeline.push(PS.$drain(function() { return resolve(collector); })); PS.pull(...pipeline); //..................................................................................................... return null; }); }); } //......................................................................................................... done(); return null; }; //----------------------------------------------------------------------------------------------------------- /* TAINT ordering not preserved */ this["_____________ 5 leapfrog window ungrouped"] = async function(T, done) { var error, i, len, matcher, probe, probes_and_matchers; probes_and_matchers = [ [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) !== 0; }) ], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], null ], [ [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], (function(d) { return (d % 3) === 0; }) ], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], null ] ]; //......................................................................................................... for (i = 0, len = probes_and_matchers.length; i < len; i++) { [probe, matcher, error] = probes_and_matchers[i]; //....................................................................................................... await T.perform(probe, matcher, error, function() { return new Promise(function(resolve, reject) { var collector, pipeline, tester, values; [values, tester] = probe; collector = []; pipeline = []; pipeline.push(PS.new_value_source(values)); pipeline.push(PS.leapfrog(tester, PS.window($(function(d3, send) { var d, nxt, prv; help('µ44333', jr(d3)); [prv, d, nxt] = d3; return send(d); })))); pipeline.push(PS.$show()); pipeline.push(PS.$collect({collector})); pipeline.push(PS.$drain(function() { return resolve(collector); })); PS.pull(...pipeline); //..................................................................................................... return null; }); }); } //......................................................................................................... done(); return null; }; //########################################################################################################### if (module.parent == null) { // test @ // test @[ "1 leapfrog lookaround with groups" ] test(this["1 leapfrog lookaround with groups 2"]); } // test @[ "2 leapfrog lookaround ungrouped" ] // test @[ "3 lookaround" ] // test @[ "4 leapfrog" ] // test @[ "5 leapfrog window ungrouped" ] }).call(this);
29.564728
151
0.32282
9a011801919fb898a9d05cb5b03df9d836e6cc8b
5,983
lua
Lua
print.lua
mah0x211/lua-print
5fe19678a506a8f7317c9d7d5b0b733ba009376c
[ "MIT" ]
null
null
null
print.lua
mah0x211/lua-print
5fe19678a506a8f7317c9d7d5b0b733ba009376c
[ "MIT" ]
null
null
null
print.lua
mah0x211/lua-print
5fe19678a506a8f7317c9d7d5b0b733ba009376c
[ "MIT" ]
null
null
null
-- -- Copyright (C) 2022 Masatoshi Fukunaga -- -- 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. -- local dump = require('dump') local concat = table.concat local date = os.date local error = error local find = string.find local format = string.format local getinfo = debug.getinfo local sub = string.sub local output = io.output local print = print local select = select local type = type local unpack = unpack or table.unpack local builtin_tostring = tostring -- static variables local DEBUG = false local PRINT_LEVEL = 7 local LEVELS = { [1] = 'emerge', [2] = 'alert', [3] = 'crit', [4] = 'error', [5] = 'warn', [6] = 'notice', [7] = 'info', emerge = 1, alert = 2, crit = 3, error = 4, warn = 5, notice = 6, info = 7, } --- tostring converts v to string --- @param v any --- @return string str local function tostring(v) local t = type(v) if t == 'string' then return v elseif t == 'table' then return dump(v, 0) end return builtin_tostring(v) end --- tostringv converts varargs to string and insert it into a string vector --- @param strv string[] --- @vararg ... --- @return string[] strv local function tostringv(strv, ...) local argv = { ..., } local n = #strv local narg = select('#', ...) -- convert to string for i = 1, narg do strv[n + i] = tostring(argv[i]) end return strv end local STRING_SPECS = { q = true, s = true, } --- count_format_params --- @param s string --- @param narg integer --- @vararg any --- @return integer n --- @return any[] params local function count_format_params(s, narg, ...) if type(s) ~= 'string' then return 0 end local args = { ..., } local params = {} local n = 0 local head = find(s, '%%') while head do local spec = sub(s, head + 1, head + 1) if spec == '%' then -- skip escape head = head + 1 elseif n == narg then -- too many format specifier return narg, args else n = n + 1 params[n] = STRING_SPECS[spec] and tostring(args[n]) or args[n] end head = find(s, '%%', head + 1) end return n, params end --- stringify --- @param strv string[] --- @param narg integer --- @param fmt string --- @return string[] strv local function stringify(strv, narg, fmt, ...) local nparam, params = count_format_params(fmt, narg, ...) if nparam == 0 then tostringv(strv, fmt, ...) else strv[#strv + 1] = format(fmt, unpack(params)) if narg > nparam then tostringv(strv, select(nparam + 1, ...)) end end return strv end --- printf --- @param label string --- @param narg integer --- @param fmt string --- @return function local function printf(label, narg, fmt, ...) local strv = { -- ISO8601 date format format('%s [%s]', date('%FT%T%z'), label), } -- append call info if DEBUG then local info = getinfo(3, 'Sl') strv[2] = format('[%s:%d]', info.short_src, info.currentline) end stringify(strv, narg, fmt, ...) local _, err = output():write(concat(strv, ' ') .. '\n') if err then error(err, 3) end end --- new --- @param label string --- @return function local function new(label) assert(LEVELS[label], format('unknown label %q', tostring(label))) return function(...) if LEVELS[label] <= PRINT_LEVEL then local narg = select('#', ...) if narg > 0 then printf(label, narg - 1, ...) end end end end --- vformat --- @vararg any local function vformat(...) local narg = select('#', ...) if narg == 0 then return '' elseif narg == 1 then return tostring(...) end return concat(stringify({}, narg - 1, ...), ' ') end --- flush local function flush() output():flush() end --- setlevel --- @param level string local function setlevel(level) if type(level) ~= 'string' then error('level must be string', 2) end local lv = LEVELS[level] if not lv then error(format('unsupported print level %q', level), 2) end PRINT_LEVEL = lv end --- setdebug --- @param enabled boolean local function setdebug(enabled) if type(enabled) ~= 'boolean' then error('enabled must be boolean', 2) end DEBUG = enabled end --- call --- @vararg ... local function call(_, ...) print(vformat(...)) end return setmetatable({}, { __call = call, __index = { flush = flush, format = vformat, setdebug = setdebug, setlevel = setlevel, emerge = new('emerge'), alert = new('alert'), crit = new('crit'), error = new('error'), warn = new('warn'), notice = new('notice'), info = new('info'), }, })
23.371094
80
0.592178
e71b4bbb59cb0fbea1da603947d9704e78aebaee
221
js
JavaScript
node_modules/react-data-grid/lib/formatters/SimpleCellFormatter.js
Sharonyel/Enplloyee-Directory
fd05c2261711d1ad7ffb8cbb298def3b47163276
[ "Unlicense" ]
null
null
null
node_modules/react-data-grid/lib/formatters/SimpleCellFormatter.js
Sharonyel/Enplloyee-Directory
fd05c2261711d1ad7ffb8cbb298def3b47163276
[ "Unlicense" ]
null
null
null
node_modules/react-data-grid/lib/formatters/SimpleCellFormatter.js
Sharonyel/Enplloyee-Directory
fd05c2261711d1ad7ffb8cbb298def3b47163276
[ "Unlicense" ]
null
null
null
import React from 'react'; export function SimpleCellFormatter(_a) { var value = _a.value; return React.createElement("div", { title: String(value) }, value); } //# sourceMappingURL=SimpleCellFormatter.js.map
36.833333
72
0.714932
764823da13703c2d99d79f3e3df69b266dcb5ce0
485
asm
Assembly
oeis/074/A074816.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/074/A074816.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/074/A074816.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A074816: a(n) = 3^A001221(n) = 3^omega(n). ; Submitted by Simon Strandgaard ; 1,3,3,3,3,9,3,3,3,9,3,9,3,9,9,3,3,9,3,9,9,9,3,9,3,9,3,9,3,27,3,3,9,9,9,9,3,9,9,9,3,27,3,9,9,9,3,9,3,9,9,9,3,9,9,9,9,9,3,27,3,9,9,3,9,27,3,9,9,27,3,9,3,9,9,9,9,27,3,9,3,9,3,27,9,9,9,9,3,27,9,9,9,9,9,9,3,9,9,9 add $0,1 mov $1,1 mov $2,2 lpb $0 mov $3,$0 lpb $3 mov $4,$0 mod $4,$2 add $2,1 cmp $4,0 cmp $4,0 sub $3,$4 lpe lpb $0 dif $0,$2 lpe mul $1,3 lpe mov $0,$1
20.208333
209
0.507216
1576b882349f626fb3531c4f1405c820395509e1
1,580
rb
Ruby
app.rb
hellospiral/tamagotchi_ruby
fbbafa83a874f2a06272128c4a0baa07c5fbec4b
[ "MIT" ]
null
null
null
app.rb
hellospiral/tamagotchi_ruby
fbbafa83a874f2a06272128c4a0baa07c5fbec4b
[ "MIT" ]
null
null
null
app.rb
hellospiral/tamagotchi_ruby
fbbafa83a874f2a06272128c4a0baa07c5fbec4b
[ "MIT" ]
null
null
null
require('sinatra') require('sinatra/reloader') require('./lib/tamagotchi') also_reload('lib/**/*.rb') get('/') do erb(:index) end post('/tamagotchi') do @tamagotchi = Tamagotchi.new(params.fetch('name')) Tamagotchi.set_last_active() @name = @tamagotchi.name() @food = @tamagotchi.food() @sleep = @tamagotchi.sleep() @activity = @tamagotchi.activity() @tamagotchi.save() erb(:tamagotchi) end actions = ['food', 'sleep', 'activity'] actions.each() do |act| post('/' + act) do eval('@tamagotchi = Tamagotchi.all[0] @tamagotchi.time_passes(Tamagotchi.time_interval()) Tamagotchi.set_last_active() if @tamagotchi.is_alive?() @tamagotchi.set_' + act + '_level(10) @name = @tamagotchi.name() @food = @tamagotchi.food() @sleep = @tamagotchi.sleep() @activity = @tamagotchi.activity() Tamagotchi.reset_all() @tamagotchi.save() erb(:tamagotchi) else @name = @tamagotchi.name() erb(:dead) end ') end end get_request = ['food', 'sleep', 'activity', "tamagotchi"] get_request.each() do |act| get('/' + act) do eval('@tamagotchi = Tamagotchi.all[0] @tamagotchi.time_passes(Tamagotchi.time_interval()) Tamagotchi.set_last_active() if @tamagotchi.is_alive?() @name = @tamagotchi.name() @food = @tamagotchi.food() @sleep = @tamagotchi.sleep() @activity = @tamagotchi.activity() Tamagotchi.reset_all() @tamagotchi.save() erb(:tamagotchi) else @name = @tamagotchi.name() erb(:dead) end ') end end
23.939394
57
0.623418
30787943786e4439e813e7f1dd49ac0f1080d6d8
27,957
html
HTML
statement-builders.html
lifeofpeace/mybatis
dc0cc6095198cb05c9467f012f4d90f5fd076d89
[ "Apache-2.0" ]
null
null
null
statement-builders.html
lifeofpeace/mybatis
dc0cc6095198cb05c9467f012f4d90f5fd076d89
[ "Apache-2.0" ]
null
null
null
statement-builders.html
lifeofpeace/mybatis
dc0cc6095198cb05c9467f012f4d90f5fd076d89
[ "Apache-2.0" ]
null
null
null
<!DOCTYPE html> <!-- | Generated by Apache Maven Doxia at 24 五月 2015 | Rendered using Apache Maven Fluido Skin 1.4 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="author" content="Clinton Begin" /> <meta name="author" content="Nan Lei" /> <meta name="Date-Revision-yyyymmdd" content="20150524" /> <meta http-equiv="Content-Language" content="zh" /> <title>mybatis &#x2013; MyBatis 3 | SQL语句构建器</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.4.min.css" /> <link rel="stylesheet" href="./css/site.css" /> <link rel="stylesheet" href="./css/print.css" media="print" /> <script type="text/javascript" src="./js/apache-maven-fluido-1.4.min.js"></script> </head> <body class="topBarDisabled"> <div class="container-fluid"> <div id="banner"> <div class="pull-left"> <div id="bannerLeft"> <h2>mybatis<small>&nbsp;&nbsp;将来的你,&nbsp;一定会感激现在拼命努力的自己。</small></h2> </div> </div> <div class="pull-right"> <a href="index.html" id="bannerRight" title="MyBatis logo"> <img src="http://mybatis.github.io/images/mybatis-logo.png" alt="MyBatis logo"/> </a> </div> <div class="clear"><hr/></div> </div> <div id="breadcrumbs"> <ul class="breadcrumb"> <li id="publishDate">最近更新: 24 五月 2015 <span class="divider">|</span> </li> <li id="projectVersion">版本: 3.3.0 </li> </ul> </div> <div class="row-fluid"> <div id="leftColumn" class="span2"> <div class="well sidebar-nav"> <ul class="nav nav-list"> <li class="nav-header">参考文档</li> <li> <a href="index.html" title="简介"> <span class="none"></span> 简介</a> </li> <li> <a href="getting-started.html" title="入门"> <span class="none"></span> 入门</a> </li> <li> <a href="configuration.html" title="XML配置"> <span class="icon-chevron-right"></span> XML配置</a> </li> <li> <a href="sqlmap-xml.html" title="XML映射文件"> <span class="icon-chevron-right"></span> XML映射文件</a> </li> <li> <a href="dynamic-sql.html" title="动态SQL"> <span class="none"></span> 动态SQL</a> </li> <li> <a href="java-api.html" title="Java API"> <span class="icon-chevron-right"></span> Java API</a> </li> <li class="active"> <a href="#"><span class="none"></span>SQL语句构建器</a> </li> <li> <a href="logging.html" title="日志"> <span class="none"></span> 日志</a> </li> <li class="nav-header">项目文档</li> <li> <a href="project-info.html" title="项目信息"> <span class="icon-chevron-right"></span> 项目信息</a> </li> <li> <a href="project-reports.html" title="项目报表"> <span class="icon-chevron-right"></span> 项目报表</a> </li> </ul> <hr /> <div id="poweredBy"> <div class="clear"></div> <div class="clear"></div> <div class="clear"></div> <div class="clear"></div> <a href="http://maven.apache.org/" title="构建依靠 Maven" class="poweredBy"> </a> </div> </div> </div> <div id="bodyColumn" class="span10" > <!-- Copyright 2010-2012 the original author or authors. 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: $Id$ --> <div class="section"> <h2><a name="SQL"></a>SQL&#x8bed;&#x53e5;&#x6784;&#x5efa;&#x5668;&#x7c7b;</h2> <div class="section"> <h3><a name="a"></a>&#x95ee;&#x9898;</h3> <p>Java&#x7a0b;&#x5e8f;&#x5458;&#x9762;&#x5bf9;&#x7684;&#x6700;&#x75db;&#x82e6;&#x7684;&#x4e8b;&#x60c5;&#x4e4b;&#x4e00;&#x5c31;&#x662f;&#x5728;Java&#x4ee3;&#x7801;&#x4e2d;&#x5d4c;&#x5165;SQL&#x8bed;&#x53e5;&#x3002;&#x8fd9;&#x4e48;&#x6765;&#x505a;&#x901a;&#x5e38;&#x662f;&#x7531;&#x4e8e;SQL&#x8bed;&#x53e5;&#x9700;&#x8981;&#x52a8;&#x6001;&#x6765;&#x751f;&#x6210;-&#x5426;&#x5219;&#x53ef;&#x4ee5;&#x5c06;&#x5b83;&#x4eec;&#x653e;&#x5230;&#x5916;&#x90e8;&#x6587;&#x4ef6;&#x6216;&#x8005;&#x5b58;&#x50a8;&#x8fc7;&#x7a0b;&#x4e2d;&#x3002;&#x6b63;&#x5982;&#x4f60;&#x5df2;&#x7ecf;&#x770b;&#x5230;&#x7684;&#x90a3;&#x6837;&#xff0c;MyBatis&#x5728;&#x5b83;&#x7684;XML&#x6620;&#x5c04;&#x7279;&#x6027;&#x4e2d;&#x6709;&#x4e00;&#x4e2a;&#x5f3a;&#x5927;&#x7684;&#x52a8;&#x6001;SQL&#x751f;&#x6210;&#x65b9;&#x6848;&#x3002;&#x4f46;&#x6709;&#x65f6;&#x5728;Java&#x4ee3;&#x7801;&#x5185;&#x90e8;&#x521b;&#x5efa;SQL&#x8bed;&#x53e5;&#x4e5f;&#x662f;&#x5fc5;&#x8981;&#x7684;&#x3002;&#x6b64;&#x65f6;&#xff0c;MyBatis&#x6709;&#x53e6;&#x5916;&#x4e00;&#x4e2a;&#x7279;&#x6027;&#x53ef;&#x4ee5;&#x5e2e;&#x5230;&#x4f60;&#xff0c;&#x5728;&#x51cf;&#x5c11;&#x5178;&#x578b;&#x7684;&#x52a0;&#x53f7;,&#x5f15;&#x53f7;,&#x65b0;&#x884c;,&#x683c;&#x5f0f;&#x5316;&#x95ee;&#x9898;&#x548c;&#x5d4c;&#x5165;&#x6761;&#x4ef6;&#x6765;&#x5904;&#x7406;&#x591a;&#x4f59;&#x7684;&#x9017;&#x53f7;&#x6216; AND &#x8fde;&#x63a5;&#x8bcd;&#x4e4b;&#x524d;&#x3002;&#x4e8b;&#x5b9e;&#x4e0a;&#xff0c;&#x5728;Java&#x4ee3;&#x7801;&#x4e2d;&#x6765;&#x52a8;&#x6001;&#x751f;&#x6210;SQL&#x4ee3;&#x7801;&#x5c31;&#x662f;&#x4e00;&#x573a;&#x5669;&#x68a6;&#x3002;&#x4f8b;&#x5982;&#xff1a; </p> <div class="source"><pre class="prettyprint"> String sql = &quot;SELECT P.ID, P.USERNAME, P.PASSWORD, P.FULL_NAME, &quot; &quot;P.LAST_NAME,P.CREATED_ON, P.UPDATED_ON &quot; + &quot;FROM PERSON P, ACCOUNT A &quot; + &quot;INNER JOIN DEPARTMENT D on D.ID = P.DEPARTMENT_ID &quot; + &quot;INNER JOIN COMPANY C on D.COMPANY_ID = C.ID &quot; + &quot;WHERE (P.ID = A.ID AND P.FIRST_NAME like ?) &quot; + &quot;OR (P.LAST_NAME like ?) &quot; + &quot;GROUP BY P.ID &quot; + &quot;HAVING (P.LAST_NAME like ?) &quot; + &quot;OR (P.FIRST_NAME like ?) &quot; + &quot;ORDER BY P.ID, P.FULL_NAME&quot;; </pre></div> </div> <div class="section"> <h3><a name="The_Solution"></a>The Solution</h3> <p>MyBatis 3&#x63d0;&#x4f9b;&#x4e86;&#x65b9;&#x4fbf;&#x7684;&#x5de5;&#x5177;&#x7c7b;&#x6765;&#x5e2e;&#x52a9;&#x89e3;&#x51b3;&#x8be5;&#x95ee;&#x9898;&#x3002;&#x4f7f;&#x7528;SQL&#x7c7b;&#xff0c;&#x7b80;&#x5355;&#x5730;&#x521b;&#x5efa;&#x4e00;&#x4e2a;&#x5b9e;&#x4f8b;&#x6765;&#x8c03;&#x7528;&#x65b9;&#x6cd5;&#x751f;&#x6210;SQL&#x8bed;&#x53e5;&#x3002;&#x4e0a;&#x9762;&#x793a;&#x4f8b;&#x4e2d;&#x7684;&#x95ee;&#x9898;&#x5c31;&#x50cf;&#x91cd;&#x5199;SQL&#x7c7b;&#x90a3;&#x6837;&#xff1a; </p> <div class="source"><pre class="prettyprint"> private String selectPersonSql() { return new SQL() {{ SELECT(&quot;P.ID, P.USERNAME, P.PASSWORD, P.FULL_NAME&quot;); SELECT(&quot;P.LAST_NAME, P.CREATED_ON, P.UPDATED_ON&quot;); FROM(&quot;PERSON P&quot;); FROM(&quot;ACCOUNT A&quot;); INNER_JOIN(&quot;DEPARTMENT D on D.ID = P.DEPARTMENT_ID&quot;); INNER_JOIN(&quot;COMPANY C on D.COMPANY_ID = C.ID&quot;); WHERE(&quot;P.ID = A.ID&quot;); WHERE(&quot;P.FIRST_NAME like ?&quot;); OR(); WHERE(&quot;P.LAST_NAME like ?&quot;); GROUP_BY(&quot;P.ID&quot;); HAVING(&quot;P.LAST_NAME like ?&quot;); OR(); HAVING(&quot;P.FIRST_NAME like ?&quot;); ORDER_BY(&quot;P.ID&quot;); ORDER_BY(&quot;P.FULL_NAME&quot;); }}.toString(); } </pre></div> <p>&#x8be5;&#x4f8b;&#x4e2d;&#x6709;&#x4ec0;&#x4e48;&#x7279;&#x6b8a;&#x4e4b;&#x5904;&#xff1f;&#x5f53;&#x4f60;&#x4ed4;&#x7ec6;&#x770b;&#x65f6;&#xff0c;&#x90a3;&#x4e0d;&#x7528;&#x62c5;&#x5fc3;&#x5076;&#x7136;&#x95f4;&#x91cd;&#x590d;&#x51fa;&#x73b0;&#x7684;&quot;AND&quot;&#x5173;&#x952e;&#x5b57;&#xff0c;&#x6216;&#x8005;&#x5728;&quot;WHERE&quot;&#x548c;&quot;AND&quot;&#x4e4b;&#x95f4;&#x7684;&#x9009;&#x62e9;&#xff0c;&#x6291;&#x6216;&#x4ec0;&#x4e48;&#x90fd;&#x4e0d;&#x9009;&#x3002;&#x8be5;SQL&#x7c7b;&#x975e;&#x5e38;&#x6ce8;&#x610f;&quot;WHERE&quot;&#x5e94;&#x8be5;&#x51fa;&#x73b0;&#x5728;&#x4f55;&#x5904;&#xff0c;&#x54ea;&#x91cc;&#x53c8;&#x5e94;&#x8be5;&#x4f7f;&#x7528;&quot;AND&quot;&#xff0c;&#x8fd8;&#x6709;&#x6240;&#x6709;&#x7684;&#x5b57;&#x7b26;&#x4e32;&#x94fe;&#x63a5;&#x3002; </p> </div> <div class="section"> <h3><a name="SQL"></a>SQL&#x7c7b;</h3> <p>&#x8fd9;&#x91cc;&#x7ed9;&#x51fa;&#x4e00;&#x4e9b;&#x793a;&#x4f8b;&#xff1a;</p> <div class="source"><pre class="prettyprint"> // Anonymous inner class public String deletePersonSql() { return new SQL() {{ DELETE_FROM(&quot;PERSON&quot;); WHERE(&quot;ID = ${id}&quot;); }}.toString(); } // Builder / Fluent style public String insertPersonSql() { String sql = new SQL() .INSERT_INTO(&quot;PERSON&quot;) .VALUES(&quot;ID, FIRST_NAME&quot;, &quot;${id}, ${firstName}&quot;) .VALUES(&quot;LAST_NAME&quot;, &quot;${lastName}&quot;) .toString(); return sql; } // With conditionals (note the final parameters, required for the anonymous inner class to access them) public String selectPersonLike(final String id, final String firstName, final String lastName) { return new SQL() {{ SELECT(&quot;P.ID, P.USERNAME, P.PASSWORD, P.FIRST_NAME, P.LAST_NAME&quot;); FROM(&quot;PERSON P&quot;); if (id != null) { WHERE(&quot;P.ID like ${id}&quot;); } if (firstName != null) { WHERE(&quot;P.FIRST_NAME like ${firstName}&quot;); } if (lastName != null) { WHERE(&quot;P.LAST_NAME like ${lastName}&quot;); } ORDER_BY(&quot;P.LAST_NAME&quot;); }}.toString(); } public String deletePersonSql() { return new SQL() {{ DELETE_FROM(&quot;PERSON&quot;); WHERE(&quot;ID = ${id}&quot;); }}.toString(); } public String insertPersonSql() { return new SQL() {{ INSERT_INTO(&quot;PERSON&quot;); VALUES(&quot;ID, FIRST_NAME&quot;, &quot;${id}, ${firstName}&quot;); VALUES(&quot;LAST_NAME&quot;, &quot;${lastName}&quot;); }}.toString(); } public String updatePersonSql() { return new SQL() {{ UPDATE(&quot;PERSON&quot;); SET(&quot;FIRST_NAME = ${firstName}&quot;); WHERE(&quot;ID = ${id}&quot;); }}.toString(); } </pre></div> <table border="0" class="table table-striped"> <thead> <tr class="a"> <th>&#x65b9;&#x6cd5;</th> <th>&#x63cf;&#x8ff0;</th> </tr> </thead> <tbody> <tr class="b"> <td> <tt>SELECT(String)</tt> </td> <td>&#x5f00;&#x59cb;&#x6216;&#x63d2;&#x5165;&#x5230; <tt>SELECT</tt>&#x5b50;&#x53e5;&#x3002; &#x53ef;&#x4ee5;&#x88ab;&#x591a;&#x6b21;&#x8c03;&#x7528;&#xff0c;&#x53c2;&#x6570;&#x4e5f;&#x4f1a;&#x6dfb;&#x52a0;&#x5230; <tt>SELECT</tt>&#x5b50;&#x53e5;&#x3002; &#x53c2;&#x6570;&#x901a;&#x5e38;&#x4f7f;&#x7528;&#x9017;&#x53f7;&#x5206;&#x9694;&#x7684;&#x5217;&#x540d;&#x548c;&#x522b;&#x540d;&#x5217;&#x8868;&#xff0c;&#x4f46;&#x4e5f;&#x53ef;&#x4ee5;&#x662f;&#x6570;&#x636e;&#x5e93;&#x9a71;&#x52a8;&#x7a0b;&#x5e8f;&#x63a5;&#x53d7;&#x7684;&#x4efb;&#x610f;&#x7c7b;&#x578b;&#x3002; </td> </tr> <tr class="a"> <td> <tt>SELECT_DISTINCT(String)</tt> </td> <td>&#x5f00;&#x59cb;&#x6216;&#x63d2;&#x5165;&#x5230; <tt>SELECT</tt>&#x5b50;&#x53e5;&#xff0c; &#x4e5f;&#x53ef;&#x4ee5;&#x63d2;&#x5165; <tt>DISTINCT</tt>&#x5173;&#x952e;&#x5b57;&#x5230;&#x751f;&#x6210;&#x7684;&#x67e5;&#x8be2;&#x8bed;&#x53e5;&#x4e2d;&#x3002; &#x53ef;&#x4ee5;&#x88ab;&#x591a;&#x6b21;&#x8c03;&#x7528;&#xff0c;&#x53c2;&#x6570;&#x4e5f;&#x4f1a;&#x6dfb;&#x52a0;&#x5230; <tt>SELECT</tt>&#x5b50;&#x53e5;&#x3002; &#x53c2;&#x6570;&#x901a;&#x5e38;&#x4f7f;&#x7528;&#x9017;&#x53f7;&#x5206;&#x9694;&#x7684;&#x5217;&#x540d;&#x548c;&#x522b;&#x540d;&#x5217;&#x8868;&#xff0c;&#x4f46;&#x4e5f;&#x53ef;&#x4ee5;&#x662f;&#x6570;&#x636e;&#x5e93;&#x9a71;&#x52a8;&#x7a0b;&#x5e8f;&#x63a5;&#x53d7;&#x7684;&#x4efb;&#x610f;&#x7c7b;&#x578b;&#x3002; </td> </tr> <tr class="b"> <td> <tt>FROM(String)</tt> </td> <td>&#x5f00;&#x59cb;&#x6216;&#x63d2;&#x5165;&#x5230; <tt>FROM</tt>&#x5b50;&#x53e5;&#x3002; &#x53ef;&#x4ee5;&#x88ab;&#x591a;&#x6b21;&#x8c03;&#x7528;&#xff0c;&#x53c2;&#x6570;&#x4e5f;&#x4f1a;&#x6dfb;&#x52a0;&#x5230; <tt>FROM</tt>&#x5b50;&#x53e5;&#x3002; &#x53c2;&#x6570;&#x901a;&#x5e38;&#x662f;&#x8868;&#x540d;&#x6216;&#x522b;&#x540d;&#xff0c;&#x4e5f;&#x53ef;&#x4ee5;&#x662f;&#x6570;&#x636e;&#x5e93;&#x9a71;&#x52a8;&#x7a0b;&#x5e8f;&#x63a5;&#x53d7;&#x7684;&#x4efb;&#x610f;&#x7c7b;&#x578b;&#x3002; </td> </tr> <tr class="a"> <td> <ul> <li> <tt>JOIN(String)</tt> </li> <li> <tt>INNER_JOIN(String)</tt> </li> <li> <tt>LEFT_OUTER_JOIN(String)</tt> </li> <li> <tt>RIGHT_OUTER_JOIN(String)</tt> </li> </ul> </td> <td>&#x57fa;&#x4e8e;&#x8c03;&#x7528;&#x7684;&#x65b9;&#x6cd5;&#xff0c;&#x6dfb;&#x52a0;&#x65b0;&#x7684;&#x5408;&#x9002;&#x7c7b;&#x578b;&#x7684; <tt>JOIN</tt>&#x5b50;&#x53e5;&#x3002; &#x53c2;&#x6570;&#x53ef;&#x4ee5;&#x5305;&#x542b;&#x7531;&#x5217;&#x547d;&#x548c;join on&#x6761;&#x4ef6;&#x7ec4;&#x5408;&#x6210;&#x6807;&#x51c6;&#x7684;join&#x3002; </td> </tr> <tr class="b"> <td> <tt>WHERE(String)</tt> </td> <td>&#x63d2;&#x5165;&#x65b0;&#x7684; <tt>WHERE</tt>&#x5b50;&#x53e5;&#x6761;&#x4ef6;&#xff0c; &#x7531;<tt>AND</tt>&#x94fe;&#x63a5;&#x3002;&#x53ef;&#x4ee5;&#x591a;&#x6b21;&#x88ab;&#x8c03;&#x7528;&#xff0c;&#x6bcf;&#x6b21;&#x90fd;&#x7531;<tt>AND</tt>&#x6765;&#x94fe;&#x63a5;&#x65b0;&#x6761;&#x4ef6;&#x3002;&#x4f7f;&#x7528; <tt>OR()</tt> &#x6765;&#x5206;&#x9694;<tt>OR</tt>&#x3002; </td> </tr> <tr class="a"> <td> <tt>OR()</tt> </td> <td>&#x4f7f;&#x7528;<tt>OR</tt>&#x6765;&#x5206;&#x9694;&#x5f53;&#x524d;&#x7684; <tt>WHERE</tt>&#x5b50;&#x53e5;&#x6761;&#x4ef6;&#x3002; &#x53ef;&#x4ee5;&#x88ab;&#x591a;&#x6b21;&#x8c03;&#x7528;&#xff0c;&#x4f46;&#x5728;&#x4e00;&#x884c;&#x4e2d;&#x591a;&#x6b21;&#x8c03;&#x7528;&#x6216;&#x751f;&#x6210;&#x4e0d;&#x7a33;&#x5b9a;&#x7684;<tt>SQL</tt>&#x3002; </td> </tr> <tr class="b"> <td> <tt>AND()</tt> </td> <td>&#x4f7f;&#x7528;<tt>AND</tt>&#x6765;&#x5206;&#x9694;&#x5f53;&#x524d;&#x7684; <tt>WHERE</tt>&#x5b50;&#x53e5;&#x6761;&#x4ef6;&#x3002; &#x53ef;&#x4ee5;&#x88ab;&#x591a;&#x6b21;&#x8c03;&#x7528;&#xff0c;&#x4f46;&#x5728;&#x4e00;&#x884c;&#x4e2d;&#x591a;&#x6b21;&#x8c03;&#x7528;&#x6216;&#x751f;&#x6210;&#x4e0d;&#x7a33;&#x5b9a;&#x7684;<tt>SQL</tt>&#x3002;&#x56e0;&#x4e3a; <tt>WHERE</tt> &#x548c; <tt>HAVING</tt> &#x4e8c;&#x8005;&#x90fd;&#x4f1a;&#x81ea;&#x52a8;&#x94fe;&#x63a5; <tt>AND</tt>, &#x8fd9;&#x662f;&#x975e;&#x5e38;&#x7f55;&#x89c1;&#x7684;&#x65b9;&#x6cd5;&#xff0c;&#x53ea;&#x662f;&#x4e3a;&#x4e86;&#x5b8c;&#x6574;&#x6027;&#x624d;&#x88ab;&#x4f7f;&#x7528;&#x3002; </td> </tr> <tr class="a"> <td> <tt>GROUP_BY(String)</tt> </td> <td>&#x63d2;&#x5165;&#x65b0;&#x7684; <tt>GROUP BY</tt>&#x5b50;&#x53e5;&#x5143;&#x7d20;&#xff0c;&#x7531;&#x9017;&#x53f7;&#x8fde;&#x63a5;&#x3002; &#x53ef;&#x4ee5;&#x88ab;&#x591a;&#x6b21;&#x8c03;&#x7528;&#xff0c;&#x6bcf;&#x6b21;&#x90fd;&#x7531;&#x9017;&#x53f7;&#x8fde;&#x63a5;&#x65b0;&#x7684;&#x6761;&#x4ef6;&#x3002; </td> </tr> <tr class="b"> <td> <tt>HAVING(String)</tt> </td> <td>&#x63d2;&#x5165;&#x65b0;&#x7684; <tt>HAVING</tt>&#x5b50;&#x53e5;&#x6761;&#x4ef6;&#x3002; &#x7531;AND&#x8fde;&#x63a5;&#x3002;&#x53ef;&#x4ee5;&#x88ab;&#x591a;&#x6b21;&#x8c03;&#x7528;&#xff0c;&#x6bcf;&#x6b21;&#x90fd;&#x7531;<tt>AND</tt>&#x6765;&#x8fde;&#x63a5;&#x65b0;&#x7684;&#x6761;&#x4ef6;&#x3002;&#x4f7f;&#x7528; <tt>OR()</tt> &#x6765;&#x5206;&#x9694;<tt>OR</tt>. </td> </tr> <tr class="a"> <td> <tt>ORDER_BY(String)</tt> </td> <td>&#x63d2;&#x5165;&#x65b0;&#x7684; <tt>ORDER BY</tt>&#x5b50;&#x53e5;&#x5143;&#x7d20;&#xff0c; &#x7531;&#x9017;&#x53f7;&#x8fde;&#x63a5;&#x3002;&#x53ef;&#x4ee5;&#x591a;&#x6b21;&#x88ab;&#x8c03;&#x7528;&#xff0c;&#x6bcf;&#x6b21;&#x7531;&#x9017;&#x53f7;&#x8fde;&#x63a5;&#x65b0;&#x7684;&#x6761;&#x4ef6;&#x3002; </td> </tr> <tr class="b"> <td> <tt>DELETE_FROM(String)</tt> </td> <td>&#x5f00;&#x59cb;&#x4e00;&#x4e2a;delete&#x8bed;&#x53e5;&#x5e76;&#x6307;&#x5b9a;&#x9700;&#x8981;&#x4ece;&#x54ea;&#x4e2a;&#x8868;&#x5220;&#x9664;&#x7684;&#x8868;&#x540d;&#x3002;&#x901a;&#x5e38;&#x5b83;&#x540e;&#x9762;&#x90fd;&#x4f1a;&#x8ddf;&#x7740;WHERE&#x8bed;&#x53e5;&#xff01; </td> </tr> <tr class="a"> <td> <tt>INSERT_INTO(String)</tt> </td> <td>&#x5f00;&#x59cb;&#x4e00;&#x4e2a;insert&#x8bed;&#x53e5;&#x5e76;&#x6307;&#x5b9a;&#x9700;&#x8981;&#x63d2;&#x5165;&#x6570;&#x636e;&#x7684;&#x8868;&#x540d;&#x3002;&#x540e;&#x9762;&#x90fd;&#x4f1a;&#x8ddf;&#x7740;&#x4e00;&#x4e2a;&#x6216;&#x8005;&#x591a;&#x4e2a;VALUES()&#x3002; </td> </tr> <tr class="b"> <td> <tt>SET(String)</tt> </td> <td>&#x9488;&#x5bf9;update&#x8bed;&#x53e5;&#xff0c;&#x63d2;&#x5165;&#x5230;&quot;set&quot;&#x5217;&#x8868;&#x4e2d;</td> </tr> <tr class="a"> <td> <tt>UPDATE(String)</tt> </td> <td>&#x5f00;&#x59cb;&#x4e00;&#x4e2a;update&#x8bed;&#x53e5;&#x5e76;&#x6307;&#x5b9a;&#x9700;&#x8981;&#x66f4;&#x65b0;&#x7684;&#x8868;&#x660e;&#x3002;&#x540e;&#x9762;&#x90fd;&#x4f1a;&#x8ddf;&#x7740;&#x4e00;&#x4e2a;&#x6216;&#x8005;&#x591a;&#x4e2a;SET()&#xff0c;&#x901a;&#x5e38;&#x4e5f;&#x4f1a;&#x6709;&#x4e00;&#x4e2a;WHERE()&#x3002; </td> </tr> <tr class="b"> <td> <tt>VALUES(String, String)</tt> </td> <td>&#x63d2;&#x5165;&#x5230;insert&#x8bed;&#x53e5;&#x4e2d;&#x3002;&#x7b2c;&#x4e00;&#x4e2a;&#x53c2;&#x6570;&#x662f;&#x8981;&#x63d2;&#x5165;&#x7684;&#x5217;&#x540d;&#xff0c;&#x7b2c;&#x4e8c;&#x4e2a;&#x53c2;&#x6570;&#x5219;&#x662f;&#x8be5;&#x5217;&#x7684;&#x503c;&#x3002; </td> </tr> </tbody> </table> </div> <div class="section"> <h3><a name="SqlBuilder__SelectBuilder_"></a>SqlBuilder &#x548c; SelectBuilder (&#x5df2;&#x7ecf;&#x5e9f;&#x5f03;)</h3> <p> &#x5728;3.2&#x7248;&#x672c;&#x4e4b;&#x524d;&#xff0c;&#x6211;&#x4eec;&#x4f7f;&#x7528;&#x4e86;&#x4e00;&#x70b9;&#x4e0d;&#x540c;&#x7684;&#x505a;&#x6cd5;&#xff0c;&#x901a;&#x8fc7;&#x5b9e;&#x73b0;ThreadLocal&#x53d8;&#x91cf;&#x6765;&#x63a9;&#x76d6;&#x4e00;&#x4e9b;&#x5bfc;&#x81f4;Java DSL&#x9ebb;&#x70e6;&#x7684;&#x8bed;&#x8a00;&#x9650;&#x5236;&#x3002;&#x4f46;&#x8fd9;&#x79cd;&#x65b9;&#x5f0f;&#x5df2;&#x7ecf;&#x5e9f;&#x5f03;&#x4e86;&#xff0c;&#x73b0;&#x4ee3;&#x7684;&#x6846;&#x67b6;&#x90fd;&#x6b22;&#x8fce;&#x4eba;&#x4eec;&#x4f7f;&#x7528;&#x6784;&#x5efa;&#x5668;&#x7c7b;&#x578b;&#x548c;&#x533f;&#x540d;&#x5185;&#x90e8;&#x7c7b;&#x7684;&#x60f3;&#x6cd5;&#x3002;&#x56e0;&#x6b64;&#xff0c;SelectBuilder &#x548c; SqlBuilder &#x7c7b;&#x90fd;&#x88ab;&#x5e9f;&#x5f03;&#x4e86;&#x3002; </p> <p> &#x4e0b;&#x9762;&#x7684;&#x65b9;&#x6cd5;&#x4ec5;&#x4ec5;&#x9002;&#x7528;&#x4e8e;&#x5e9f;&#x5f03;&#x7684;SqlBuilder &#x548c; SelectBuilder &#x7c7b;&#x3002; </p> <table border="0" class="table table-striped"> <thead> <tr class="a"> <th>&#x65b9;&#x6cd5;</th> <th>&#x63cf;&#x8ff0;</th> </tr> </thead> <tbody> <tr class="b"> <td> <tt>BEGIN()</tt> / <tt>RESET()</tt> </td> <td>&#x8fd9;&#x4e9b;&#x65b9;&#x6cd5;&#x6e05;&#x7a7a;SelectBuilder&#x7c7b;&#x7684;ThreadLocal&#x72b6;&#x6001;&#xff0c;&#x5e76;&#x4e14;&#x51c6;&#x5907;&#x4e00;&#x4e2a;&#x65b0;&#x7684;&#x6784;&#x5efa;&#x8bed;&#x53e5;&#x3002;&#x5f00;&#x59cb;&#x65b0;&#x7684;&#x8bed;&#x53e5;&#x65f6;&#xff0c; <tt>BEGIN()</tt>&#x8bfb;&#x53d6;&#x5f97;&#x6700;&#x597d;&#x3002; &#x7531;&#x4e8e;&#x4e00;&#x4e9b;&#x539f;&#x56e0;&#xff08;&#x5728;&#x67d0;&#x4e9b;&#x6761;&#x4ef6;&#x4e0b;&#xff0c;&#x4e5f;&#x8bb8;&#x662f;&#x903b;&#x8f91;&#x9700;&#x8981;&#x4e00;&#x4e2a;&#x5b8c;&#x5168;&#x4e0d;&#x540c;&#x7684;&#x8bed;&#x53e5;&#xff09;&#xff0c;&#x5728;&#x6267;&#x884c;&#x4e2d;&#x6e05;&#x7406;&#x8bed;&#x53e5; <tt>RESET()</tt>&#x8bfb;&#x53d6;&#x5f97;&#x6700;&#x597d;&#x3002; </td> </tr> <tr class="a"> <td> <tt>SQL()</tt> </td> <td>&#x8fd4;&#x56de;&#x751f;&#x6210;&#x7684; <tt>SQL()</tt> &#x5e76;&#x91cd;&#x7f6e; <tt>SelectBuilder</tt> &#x72b6;&#x6001; (&#x597d;&#x50cf; <tt>BEGIN()</tt> &#x6216; <tt>RESET()</tt> &#x88ab;&#x8c03;&#x7528;&#x4e86;). &#x56e0;&#x6b64;&#xff0c;&#x8be5;&#x65b9;&#x6cd5;&#x53ea;&#x80fd;&#x88ab;&#x8c03;&#x7528;&#x4e00;&#x6b21;&#xff01; </td> </tr> </tbody> </table> <p> SelectBuilder &#x548c; SqlBuilder &#x7c7b;&#x5e76;&#x4e0d;&#x795e;&#x5947;&#xff0c;&#x4f46;&#x662f;&#x77e5;&#x9053;&#x5b83;&#x4eec;&#x5982;&#x4f55;&#x5de5;&#x4f5c;&#x4e5f;&#x662f;&#x5f88;&#x91cd;&#x8981;&#x7684;&#x3002; SelectBuilder &#x4f7f;&#x7528; SqlBuilder &#x4f7f;&#x7528;&#x4e86;&#x9759;&#x6001;&#x5bfc;&#x5165;&#x548c;ThreadLocal&#x53d8;&#x91cf;&#x7684;&#x7ec4;&#x5408;&#x6765;&#x5f00;&#x542f;&#x6574;&#x6d01;&#x8bed;&#x6cd5;&#xff0c;&#x53ef;&#x4ee5;&#x5f88;&#x5bb9;&#x6613;&#x5730;&#x548c;&#x6761;&#x4ef6;&#x4ea4;&#x9519;&#x3002;&#x4f7f;&#x7528;&#x5b83;&#x4eec;&#xff0c;&#x9759;&#x6001;&#x5bfc;&#x5165;&#x7c7b;&#x7684;&#x65b9;&#x6cd5;&#x5373;&#x53ef;&#xff0c;&#x5c31;&#x50cf;&#x8fd9;&#x6837;(&#x4e00;&#x4e2a;&#x6216;&#x5176;&#x5b83;&#xff0c;&#x5e76;&#x975e;&#x4e24;&#x8005;): </p> <div class="source"><pre class="prettyprint">import static org.apache.ibatis.jdbc.SelectBuilder.*;</pre></div> <div class="source"><pre class="prettyprint">import static org.apache.ibatis.jdbc.SqlBuilder.*;</pre></div> <p>&#x8fd9;&#x5c31;&#x5141;&#x8bb8;&#x50cf;&#x4e0b;&#x9762;&#x8fd9;&#x6837;&#x6765;&#x521b;&#x5efa;&#x65b9;&#x6cd5;&#xff1a;</p> <div class="source"><pre class="prettyprint"> /* DEPRECATED */ public String selectBlogsSql() { BEGIN(); // Clears ThreadLocal variable SELECT(&quot;*&quot;); FROM(&quot;BLOG&quot;); return SQL(); } </pre></div> <div class="source"><pre class="prettyprint"> /* DEPRECATED */ private String selectPersonSql() { BEGIN(); // Clears ThreadLocal variable SELECT(&quot;P.ID, P.USERNAME, P.PASSWORD, P.FULL_NAME&quot;); SELECT(&quot;P.LAST_NAME, P.CREATED_ON, P.UPDATED_ON&quot;); FROM(&quot;PERSON P&quot;); FROM(&quot;ACCOUNT A&quot;); INNER_JOIN(&quot;DEPARTMENT D on D.ID = P.DEPARTMENT_ID&quot;); INNER_JOIN(&quot;COMPANY C on D.COMPANY_ID = C.ID&quot;); WHERE(&quot;P.ID = A.ID&quot;); WHERE(&quot;P.FIRST_NAME like ?&quot;); OR(); WHERE(&quot;P.LAST_NAME like ?&quot;); GROUP_BY(&quot;P.ID&quot;); HAVING(&quot;P.LAST_NAME like ?&quot;); OR(); HAVING(&quot;P.FIRST_NAME like ?&quot;); ORDER_BY(&quot;P.ID&quot;); ORDER_BY(&quot;P.FULL_NAME&quot;); return SQL(); } </pre></div> </div> </div> </div> </div> </div> <hr/> <footer> <div class="container-fluid"> <div class="row-fluid"> <p align="center">&copy;2015&nbsp; <a href="http://itmyhome.com/" target="_blank">麦田技术博客</a> </p> </div> </div> </footer> </body> </html>
42.359091
1,596
0.490575
b03e20cafacff97b7d999ce9efcf75fdcdc61932
2,024
sql
SQL
ifs-data-layer/ifs-data-service/src/main/resources/db/integration/V113_0_4__Remove_old_competition.sql
adambirse/innovation-funding-service
db1c2bc5a25d3143df02bef9019aefd5261caf6f
[ "MIT" ]
40
2017-03-29T13:58:42.000Z
2021-07-04T22:13:12.000Z
ifs-data-layer/ifs-data-service/src/main/resources/db/integration/V113_0_4__Remove_old_competition.sql
adambirse/innovation-funding-service
db1c2bc5a25d3143df02bef9019aefd5261caf6f
[ "MIT" ]
19
2017-09-30T11:57:32.000Z
2022-02-13T18:38:48.000Z
ifs-data-layer/ifs-data-service/src/main/resources/db/integration/V113_0_4__Remove_old_competition.sql
adambirse/innovation-funding-service
db1c2bc5a25d3143df02bef9019aefd5261caf6f
[ "MIT" ]
20
2017-04-05T11:34:30.000Z
2022-03-22T14:42:08.000Z
-- Remove the Competition 1 and all the competition templates. They now exist in the test data dump file delete from form_input_validator where form_input_id in (select fi.id from form_input fi join question q on q.id = fi.question_id where q.competition_id in (1,2,3,4,5,6,7,8)); delete from guidance_row where id in (select gr.id from (select g.id from guidance_row g join form_input fi on fi.id = g.form_input_id join question q on q.id = fi.question_id where q.competition_id in (1,2,3,4,5,6,7,8)) as gr); delete from form_input_response where form_input_id in (select fi.id from form_input fi join question q on q.id = fi.question_id where q.competition_id in (1,2,3,4,5,6,7,8)); delete from form_input where id in (select fit.id from (select fi.id from form_input fi join question q on q.id = fi.question_id where q.competition_id in (1,2,3,4,5,6,7,8)) as fit); delete from question where competition_id in (1,2,3,4,5,6,7,8); delete from public_content where competition_id in (1); delete from setup_status where target_id in (1,2,3,4,5,6,7,8) and target_class_name = 'org.innovateuk.ifs.competition.domain.Competition'; SET foreign_key_checks = 0; delete from section where competition_id in (1,2,3,4,5,6,7,8); SET foreign_key_checks = 1; delete from milestone where competition_id in (1,2,3,4,5,6,7,8); update competition_type set template_competition_id = NULL where name = 'Programme'; update competition_type set template_competition_id = NULL where name = 'Sector'; update competition_type set template_competition_id = NULL where name = 'Generic'; update competition_type set template_competition_id = NULL where name = 'Expression of interest'; update competition_type set template_competition_id = NULL where name = 'Advanced Propulsion Centre'; update competition_type set template_competition_id = NULL where name = 'Aerospace Technology Institute'; update competition_type set template_competition_id = NULL where name = "The Prince's Trust"; delete from competition where id in (1,2,3,4,5,6,7,8);
69.793103
228
0.780138
eb627a551fe82c27daa4ef83bc335fa933376653
23,914
sql
SQL
dbnya/simas_2013_06_16_kerangka_ONEUSER.sql
butirpadi/appkeuangan
e808fb2aa5a3ca390bc38063ca707491bcc395c4
[ "MIT" ]
null
null
null
dbnya/simas_2013_06_16_kerangka_ONEUSER.sql
butirpadi/appkeuangan
e808fb2aa5a3ca390bc38063ca707491bcc395c4
[ "MIT" ]
null
null
null
dbnya/simas_2013_06_16_kerangka_ONEUSER.sql
butirpadi/appkeuangan
e808fb2aa5a3ca390bc38063ca707491bcc395c4
[ "MIT" ]
null
null
null
-- -------------------------------------------------------- -- Host :127.0.0.1 -- Server version :5.5.27 - MySQL Community Server (GPL) -- Server OS :Win32 -- HeidiSQL Version :7.0.0.4304 -- Created :2013-06-16 17:05:38 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping database structure for vsimasad DROP DATABASE IF EXISTS `simasad`; CREATE DATABASE IF NOT EXISTS `simasad` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `simasad`; -- Dumping structure for table vsimasad.activator DROP TABLE IF EXISTS `activator`; CREATE TABLE IF NOT EXISTS `activator` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `tanggal` date DEFAULT NULL, `lunas` enum('Y','N') DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.activator: ~0 rows (approximately) /*!40000 ALTER TABLE `activator` DISABLE KEYS */; /*!40000 ALTER TABLE `activator` ENABLE KEYS */; -- Dumping structure for table vsimasad.appsetting DROP TABLE IF EXISTS `appsetting`; CREATE TABLE IF NOT EXISTS `appsetting` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `biaya_id` int(11) DEFAULT NULL COMMENT 'biaya id yang di guanakan di One click biaya', `mysqldumppath` varchar(150) DEFAULT NULL, `cetaknota` enum('Y','N') DEFAULT NULL, `printeraddr` varchar(50) DEFAULT NULL, `lunas` enum('Y','N') DEFAULT 'N', PRIMARY KEY (`id`), KEY `FK_appsetting_biaya` (`biaya_id`), CONSTRAINT `FK_appsetting_biaya` FOREIGN KEY (`biaya_id`) REFERENCES `jenisbiaya` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.appsetting: ~1 rows (approximately) /*!40000 ALTER TABLE `appsetting` DISABLE KEYS */; INSERT INTO `appsetting` (`id`, `created_at`, `updated_at`, `biaya_id`, `mysqldumppath`, `cetaknota`, `printeraddr`, `lunas`) VALUES (1, '2013-05-31 10:03:45', '2013-06-16 09:27:04', 1, 'C:\\xampp\\mysql\\bin\\', 'Y', '//192.168.0.1/epson_lx_800', 'N'); /*!40000 ALTER TABLE `appsetting` ENABLE KEYS */; -- Dumping structure for table vsimasad.bulan DROP TABLE IF EXISTS `bulan`; CREATE TABLE IF NOT EXISTS `bulan` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `nama` varchar(50) DEFAULT NULL, `angka` int(11) DEFAULT NULL, `posisi` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.bulan: ~12 rows (approximately) /*!40000 ALTER TABLE `bulan` DISABLE KEYS */; INSERT INTO `bulan` (`id`, `created_at`, `updated_at`, `nama`, `angka`, `posisi`) VALUES (1, '2013-05-09 17:09:28', '2013-05-11 02:42:00', 'januari', 1, 7), (2, '2013-05-09 17:09:38', '2013-05-11 02:42:01', 'februari', 2, 8), (3, '2013-05-09 17:09:53', '2013-05-11 02:42:03', 'maret', 3, 9), (4, '2013-05-09 17:10:00', '2013-05-11 02:42:05', 'april', 4, 10), (5, '2013-05-09 17:10:06', '2013-05-11 02:42:07', 'mei', 5, 11), (6, '2013-05-09 17:10:11', '2013-05-11 02:42:07', 'juni', 6, 12), (7, '2013-05-09 17:10:16', '2013-05-11 02:41:50', 'juli', 7, 1), (8, '2013-05-09 17:10:21', '2013-05-11 02:41:52', 'agustus', 8, 2), (9, '2013-05-09 17:10:28', '2013-05-11 02:41:54', 'september', 9, 3), (10, '2013-05-09 17:10:33', '2013-05-11 02:41:55', 'oktober', 10, 4), (11, '2013-05-09 17:10:40', '2013-05-11 02:41:57', 'november', 11, 5), (12, '2013-05-09 17:10:47', '2013-05-11 02:41:58', 'desember', 12, 6); /*!40000 ALTER TABLE `bulan` ENABLE KEYS */; -- Dumping structure for table vsimasad.detiltransmasuk DROP TABLE IF EXISTS `detiltransmasuk`; CREATE TABLE IF NOT EXISTS `detiltransmasuk` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `transmasuk_id` int(10) DEFAULT NULL, `jenisbiaya_id` int(10) DEFAULT NULL, `bulan_id` int(10) DEFAULT NULL, `jumlah` int(10) DEFAULT NULL, `ket` varchar(250) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_detiltransmasuk_transmasuk` (`transmasuk_id`), KEY `FK_detiltransmasuk_jenisbiaya` (`jenisbiaya_id`), KEY `FK_detiltransmasuk_bulan` (`bulan_id`), CONSTRAINT `FK_detiltransmasuk_bulan` FOREIGN KEY (`bulan_id`) REFERENCES `bulan` (`id`), CONSTRAINT `FK_detiltransmasuk_jenisbiaya` FOREIGN KEY (`jenisbiaya_id`) REFERENCES `jenisbiaya` (`id`), CONSTRAINT `FK_detiltransmasuk_transmasuk` FOREIGN KEY (`transmasuk_id`) REFERENCES `transmasuk` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.detiltransmasuk: ~0 rows (approximately) /*!40000 ALTER TABLE `detiltransmasuk` DISABLE KEYS */; /*!40000 ALTER TABLE `detiltransmasuk` ENABLE KEYS */; -- Dumping structure for table vsimasad.jenisbiaya DROP TABLE IF EXISTS `jenisbiaya`; CREATE TABLE IF NOT EXISTS `jenisbiaya` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `nama` varchar(60) DEFAULT NULL, `perjenjang` enum('Y','N') DEFAULT 'N', `tipe` enum('ITB','ITC','BBBI','BTBI') DEFAULT NULL COMMENT 'ITB : Iuran Tetap Bulanan, ITC:Iuran Tetap Cicilan, BBBI : Biaya bebas bukan iuran, BTBI: Biaya Tetap Bukan Iuran', `arus` enum('M','K') DEFAULT 'M', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.jenisbiaya: ~0 rows (approximately) /*!40000 ALTER TABLE `jenisbiaya` DISABLE KEYS */; /*!40000 ALTER TABLE `jenisbiaya` ENABLE KEYS */; -- Dumping structure for table vsimasad.ketentuanbiaya DROP TABLE IF EXISTS `ketentuanbiaya`; CREATE TABLE IF NOT EXISTS `ketentuanbiaya` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `tahunajaran_id` int(10) DEFAULT NULL, `jenisbiaya_id` int(10) DEFAULT NULL, `jenjang` enum('1','2','3','4','5','6') DEFAULT NULL, `jumlah` int(10) DEFAULT '0', PRIMARY KEY (`id`), KEY `FK__tahunajaran` (`tahunajaran_id`), KEY `FK__jenisbiaya` (`jenisbiaya_id`), CONSTRAINT `FK__jenisbiaya` FOREIGN KEY (`jenisbiaya_id`) REFERENCES `jenisbiaya` (`id`), CONSTRAINT `FK__tahunajaran` FOREIGN KEY (`tahunajaran_id`) REFERENCES `tahunajaran` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.ketentuanbiaya: ~0 rows (approximately) /*!40000 ALTER TABLE `ketentuanbiaya` DISABLE KEYS */; /*!40000 ALTER TABLE `ketentuanbiaya` ENABLE KEYS */; -- Dumping structure for table vsimasad.laravel_migrations DROP TABLE IF EXISTS `laravel_migrations`; CREATE TABLE IF NOT EXISTS `laravel_migrations` ( `bundle` varchar(50) NOT NULL, `name` varchar(200) NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`bundle`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.laravel_migrations: ~0 rows (approximately) /*!40000 ALTER TABLE `laravel_migrations` DISABLE KEYS */; /*!40000 ALTER TABLE `laravel_migrations` ENABLE KEYS */; -- Dumping structure for table vsimasad.permissions DROP TABLE IF EXISTS `permissions`; CREATE TABLE IF NOT EXISTS `permissions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `description` varchar(255) DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `permissions_name_index` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.permissions: ~14 rows (approximately) /*!40000 ALTER TABLE `permissions` DISABLE KEYS */; INSERT INTO `permissions` (`id`, `name`, `description`, `created_at`, `updated_at`) VALUES (1, 'manage_user', 'Mengelola Data User (tambah,edit,hapus)', '2013-06-11 17:59:12', '2013-06-11 17:59:12'), (2, 'manage_user_group', 'Mengelola Data User Group (tambah,edit,hapus)', '2013-06-11 17:59:12', '2013-06-11 17:59:12'), (3, 'manage_tahun_ajaran', 'Mengelola Data Tahun Ajaran (tambah,edit,hapus)', '2013-06-11 17:59:12', '2013-06-11 17:59:12'), (4, 'manage_bulan', 'Mengelola Data Urutan Bulan (tambah,edit,hapus)', '2013-06-11 18:00:33', '2013-06-11 18:00:33'), (5, 'manage_rombel', 'Mengelola Data Rombongan Belajar (tambah,edit,hapus)', '2013-06-11 18:01:05', '2013-06-11 18:01:06'), (6, 'manage_biaya', 'Mengelola Data Biaya (tambah,edit,hapus, dan pengaturan biaya)', '2013-06-11 18:01:29', '2013-06-11 18:01:29'), (7, 'manage_siswa', 'Mengelola Data Siswa (tambah,edit,hapus)', '2013-06-11 18:04:33', '2013-06-11 18:04:33'), (8, 'manage_transaksi_penerimaan_iuran', 'Mengelola Transaksi Penerimaan Iuran Siswa', '2013-06-11 18:04:33', '2013-06-11 18:04:34'), (9, 'manage_transaksi_penerimaan', 'Mengelola Transaksi Penerimaan', '2013-06-11 18:04:57', '2013-06-11 18:04:57'), (10, 'manage_transaksi_pengeluaran', 'Mengelola Transaksi Pengeluaran', '2013-06-11 18:05:09', '2013-06-11 18:05:10'), (11, 'manage_histori_transaksi', 'Mengelola Data Histori Transaksi', '2013-06-11 18:05:27', '2013-06-11 18:05:27'), (12, 'manage_rekapitulasi_transaksi', 'Mengelola Data Rekapitulasi Transaksi', '2013-06-11 18:05:57', '2013-06-11 18:05:57'), (13, 'manage_rekapitulasi_iuran', 'Mengelola Data Rekapitulasi Iuran Per Tahun Ajaran', '2013-06-11 18:06:20', '2013-06-11 18:06:20'), (14, 'manage_system_setting', 'Mengelola Data System Setting', '2013-06-11 19:29:08', '2013-06-11 19:29:09'); /*!40000 ALTER TABLE `permissions` ENABLE KEYS */; -- Dumping structure for table vsimasad.permission_role DROP TABLE IF EXISTS `permission_role`; CREATE TABLE IF NOT EXISTS `permission_role` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `permission_id` int(10) unsigned NOT NULL, `role_id` int(10) unsigned NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `permission_role_permission_id_index` (`permission_id`), KEY `permission_role_role_id_index` (`role_id`), CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`), CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.permission_role: ~27 rows (approximately) /*!40000 ALTER TABLE `permission_role` DISABLE KEYS */; INSERT INTO `permission_role` (`id`, `permission_id`, `role_id`, `created_at`, `updated_at`) VALUES (12, 1, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (13, 2, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (14, 3, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (15, 4, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (16, 5, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (17, 6, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (18, 7, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (19, 8, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (20, 9, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (21, 10, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (22, 11, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (23, 12, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (24, 13, 1, '2013-06-11 18:19:22', '2013-06-11 18:19:22'), (30, 3, 4, '2013-06-11 19:09:43', '2013-06-11 19:09:43'), (31, 4, 4, '2013-06-11 19:09:43', '2013-06-11 19:09:43'), (32, 5, 4, '2013-06-11 19:09:43', '2013-06-11 19:09:43'), (33, 6, 4, '2013-06-11 19:09:43', '2013-06-11 19:09:43'), (34, 7, 4, '2013-06-11 19:09:43', '2013-06-11 19:09:43'), (35, 8, 4, '2013-06-11 19:09:44', '2013-06-11 19:09:44'), (36, 9, 4, '2013-06-11 19:09:44', '2013-06-11 19:09:44'), (37, 10, 4, '2013-06-11 19:09:44', '2013-06-11 19:09:44'), (38, 11, 4, '2013-06-11 19:09:44', '2013-06-11 19:09:44'), (39, 12, 4, '2013-06-11 19:09:44', '2013-06-11 19:09:44'), (40, 13, 4, '2013-06-11 19:09:44', '2013-06-11 19:09:44'), (41, 8, 5, '2013-06-11 19:09:59', '2013-06-11 19:09:59'), (42, 9, 5, '2013-06-11 19:09:59', '2013-06-11 19:09:59'), (43, 10, 5, '2013-06-11 19:09:59', '2013-06-11 19:09:59'); /*!40000 ALTER TABLE `permission_role` ENABLE KEYS */; -- Dumping structure for table vsimasad.roles DROP TABLE IF EXISTS `roles`; CREATE TABLE IF NOT EXISTS `roles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `description` varchar(255) DEFAULT NULL, `level` int(11) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `roles_name_index` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.roles: ~1 rows (approximately) /*!40000 ALTER TABLE `roles` DISABLE KEYS */; INSERT INTO `roles` (`id`, `name`, `description`, `level`, `created_at`, `updated_at`) VALUES (1, 'Super Admin', NULL, 10, '2013-06-11 17:07:25', '2013-06-11 17:07:25'); /*!40000 ALTER TABLE `roles` ENABLE KEYS */; -- Dumping structure for table vsimasad.role_user DROP TABLE IF EXISTS `role_user`; CREATE TABLE IF NOT EXISTS `role_user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `role_id` int(10) unsigned NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `role_user_user_id_index` (`user_id`), KEY `role_user_role_id_index` (`role_id`), CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`), CONSTRAINT `role_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.role_user: ~1 rows (approximately) /*!40000 ALTER TABLE `role_user` DISABLE KEYS */; INSERT INTO `role_user` (`id`, `user_id`, `role_id`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2013-06-12 08:44:17', '2013-06-12 08:44:17'); /*!40000 ALTER TABLE `role_user` ENABLE KEYS */; -- Dumping structure for table vsimasad.rombel DROP TABLE IF EXISTS `rombel`; CREATE TABLE IF NOT EXISTS `rombel` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `nama` varchar(50) DEFAULT NULL, `jenjang` enum('1','2','3','4','5','6','0') DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.rombel: ~0 rows (approximately) /*!40000 ALTER TABLE `rombel` DISABLE KEYS */; /*!40000 ALTER TABLE `rombel` ENABLE KEYS */; -- Dumping structure for table vsimasad.rombelsiswa DROP TABLE IF EXISTS `rombelsiswa`; CREATE TABLE IF NOT EXISTS `rombelsiswa` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `tahunajaran_id` int(10) DEFAULT NULL, `rombel_id` int(10) DEFAULT NULL, `siswa_id` int(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_rombelsiswa_tahunajaran` (`tahunajaran_id`), KEY `FK_rombelsiswa_rombel` (`rombel_id`), KEY `FK_rombelsiswa_siswa` (`siswa_id`), CONSTRAINT `FK_rombelsiswa_rombel` FOREIGN KEY (`rombel_id`) REFERENCES `rombel` (`id`), CONSTRAINT `FK_rombelsiswa_siswa` FOREIGN KEY (`siswa_id`) REFERENCES `siswa` (`id`), CONSTRAINT `FK_rombelsiswa_tahunajaran` FOREIGN KEY (`tahunajaran_id`) REFERENCES `tahunajaran` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.rombelsiswa: ~0 rows (approximately) /*!40000 ALTER TABLE `rombelsiswa` DISABLE KEYS */; /*!40000 ALTER TABLE `rombelsiswa` ENABLE KEYS */; -- Dumping structure for table vsimasad.setting DROP TABLE IF EXISTS `setting`; CREATE TABLE IF NOT EXISTS `setting` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `nama_skul` varchar(150) DEFAULT NULL, `alamat_skul` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.setting: ~1 rows (approximately) /*!40000 ALTER TABLE `setting` DISABLE KEYS */; INSERT INTO `setting` (`id`, `created_at`, `updated_at`, `nama_skul`, `alamat_skul`) VALUES (1, '2013-05-28 06:26:42', '2013-05-28 06:26:44', 'SEKOLAH DASAR ISLAM SABILIL HUDA', 'Jl. Singokarso 54 Sumorame Candi Sidoarjo 61271 Telp. 031-8061169'); /*!40000 ALTER TABLE `setting` ENABLE KEYS */; -- Dumping structure for table vsimasad.siswa DROP TABLE IF EXISTS `siswa`; CREATE TABLE IF NOT EXISTS `siswa` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `nisn` varchar(10) DEFAULT NULL, `nama` varchar(150) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.siswa: ~0 rows (approximately) /*!40000 ALTER TABLE `siswa` DISABLE KEYS */; /*!40000 ALTER TABLE `siswa` ENABLE KEYS */; -- Dumping structure for table vsimasad.tahunajaran DROP TABLE IF EXISTS `tahunajaran`; CREATE TABLE IF NOT EXISTS `tahunajaran` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `nama` varchar(50) DEFAULT NULL, `aktif` enum('Y','N') DEFAULT 'N', `posisi` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.tahunajaran: ~0 rows (approximately) /*!40000 ALTER TABLE `tahunajaran` DISABLE KEYS */; /*!40000 ALTER TABLE `tahunajaran` ENABLE KEYS */; -- Dumping structure for table vsimasad.transmasuk DROP TABLE IF EXISTS `transmasuk`; CREATE TABLE IF NOT EXISTS `transmasuk` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `tanggal` date DEFAULT NULL, `tahunajaran_id` int(10) DEFAULT NULL, `siswa_id` int(10) DEFAULT NULL, `arus` enum('M','K') DEFAULT 'M', PRIMARY KEY (`id`), KEY `FK_transmasuk_tahunajaran` (`tahunajaran_id`), KEY `FK_transmasuk_siswa` (`siswa_id`), CONSTRAINT `FK_transmasuk_siswa` FOREIGN KEY (`siswa_id`) REFERENCES `siswa` (`id`), CONSTRAINT `FK_transmasuk_tahunajaran` FOREIGN KEY (`tahunajaran_id`) REFERENCES `tahunajaran` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.transmasuk: ~0 rows (approximately) /*!40000 ALTER TABLE `transmasuk` DISABLE KEYS */; /*!40000 ALTER TABLE `transmasuk` ENABLE KEYS */; -- Dumping structure for table vsimasad.users DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(30) NOT NULL, `password` varchar(60) NOT NULL, `salt` varchar(32) NOT NULL, `email` varchar(255) NOT NULL, `verified` tinyint(1) NOT NULL, `disabled` tinyint(1) NOT NULL, `deleted` tinyint(1) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `users_username_index` (`username`), KEY `users_password_index` (`password`), KEY `users_email_index` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- Dumping data for table vsimasad.users: ~1 rows (approximately) /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` (`id`, `username`, `password`, `salt`, `email`, `verified`, `disabled`, `deleted`, `created_at`, `updated_at`) VALUES (1, 'eries', '$2a$08$bcRj9c3qXX8psBEp9PpNtemSVQOfOlgQwmMTm2d9XLO/WNI/zgUxC', 'c9f169ae899b5f1f2d0f9277d639698b', 'eries@simas.ad', 1, 0, 0, '2013-06-12 08:44:01', '2013-06-12 08:46:34'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; -- Dumping structure for view vsimasad.vsiswa DROP VIEW IF EXISTS `vsiswa`; -- Creating temporary table to overcome VIEW dependency errors CREATE TABLE `vsiswa` ( `id` INT(10) NOT NULL, `tahunajaran_id` INT(10) NULL, `tahunajaran` VARCHAR(50) NULL COLLATE 'utf8_general_ci', `rombel_id` INT(10) NULL, `rombel` VARCHAR(50) NULL COLLATE 'utf8_general_ci', `jenjang` ENUM('1','2','3','4','5','6','0') NULL COLLATE 'utf8_general_ci', `siswa_id` INT(10) NULL, `siswa` VARCHAR(150) NULL COLLATE 'utf8_general_ci', `nisn` VARCHAR(10) NULL COLLATE 'utf8_general_ci' ) ENGINE=MyISAM; -- Dumping structure for view vsimasad.vtransmasuk DROP VIEW IF EXISTS `vtransmasuk`; -- Creating temporary table to overcome VIEW dependency errors CREATE TABLE `vtransmasuk` ( `id` INT(10) NOT NULL, `created_at` DATETIME NULL, `updated_at` DATETIME NULL, `tanggal` DATE NULL, `arus` ENUM('M','K') NULL COLLATE 'utf8_general_ci', `tahunajaran_id` INT(10) NULL, `tahunajaran` VARCHAR(50) NULL COLLATE 'utf8_general_ci', `siswa_id` INT(10) NULL, `nisn` VARCHAR(10) NULL COLLATE 'utf8_general_ci', `siswa` VARCHAR(150) NULL COLLATE 'utf8_general_ci', `detil_id` INT(10) NOT NULL, `jenisbiaya_id` INT(10) NULL, `jenisbiaya` VARCHAR(60) NULL COLLATE 'utf8_general_ci', `tipe` ENUM('ITB','ITC','BBBI','BTBI') NULL COMMENT 'ITB : Iuran Tetap Bulanan, ITC:Iuran Tetap Cicilan, BBBI : Biaya bebas bukan iuran, BTBI: Biaya Tetap Bukan Iuran' COLLATE 'utf8_general_ci', `bulan_id` INT(10) NULL, `bulan` VARCHAR(50) NULL COLLATE 'utf8_general_ci', `posisi` INT(11) NULL, `ket` VARCHAR(250) NULL COLLATE 'utf8_general_ci', `jumlah` INT(10) NULL ) ENGINE=MyISAM; -- Dumping structure for view vsimasad.vsiswa DROP VIEW IF EXISTS `vsiswa`; -- Removing temporary table and create final VIEW structure DROP TABLE IF EXISTS `vsiswa`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW `vsiswa` AS select `rs`.`id` AS `id`,`rs`.`tahunajaran_id` AS `tahunajaran_id`,`t`.`nama` AS `tahunajaran`,`rs`.`rombel_id` AS `rombel_id`,`r`.`nama` AS `rombel`,`r`.`jenjang` AS `jenjang`,`rs`.`siswa_id` AS `siswa_id`,`s`.`nama` AS `siswa`,`s`.`nisn` AS `nisn` from (((`rombelsiswa` `rs` join `siswa` `s` on((`rs`.`siswa_id` = `s`.`id`))) join `rombel` `r` on((`rs`.`rombel_id` = `r`.`id`))) join `tahunajaran` `t` on((`rs`.`tahunajaran_id` = `t`.`id`))) ; -- Dumping structure for view vsimasad.vtransmasuk DROP VIEW IF EXISTS `vtransmasuk`; -- Removing temporary table and create final VIEW structure DROP TABLE IF EXISTS `vtransmasuk`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW `vtransmasuk` AS select `tm`.`id` AS `id`,`tm`.`created_at` AS `created_at`,`tm`.`updated_at` AS `updated_at`,`tm`.`tanggal` AS `tanggal`,`tm`.`arus` AS `arus`,`tm`.`tahunajaran_id` AS `tahunajaran_id`,`ta`.`nama` AS `tahunajaran`,`tm`.`siswa_id` AS `siswa_id`,`sw`.`nisn` AS `nisn`,`sw`.`nama` AS `siswa`,`dtm`.`id` AS `detil_id`,`dtm`.`jenisbiaya_id` AS `jenisbiaya_id`,`jb`.`nama` AS `jenisbiaya`,`jb`.`tipe` AS `tipe`,`dtm`.`bulan_id` AS `bulan_id`,`bl`.`nama` AS `bulan`,`bl`.`posisi` AS `posisi`,`dtm`.`ket` AS `ket`,`dtm`.`jumlah` AS `jumlah` from (((((`transmasuk` `tm` join `detiltransmasuk` `dtm` on((`dtm`.`transmasuk_id` = `tm`.`id`))) join `jenisbiaya` `jb` on((`dtm`.`jenisbiaya_id` = `jb`.`id`))) left join `siswa` `sw` on((`tm`.`siswa_id` = `sw`.`id`))) left join `bulan` `bl` on((`dtm`.`bulan_id` = `bl`.`id`))) join `tahunajaran` `ta` on((`tm`.`tahunajaran_id` = `ta`.`id`))) ; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
49.307216
955
0.680898
974b8f3cdf1aeeed29e4a24a7845850aa5421e1a
675
sql
SQL
packages/cloud-functions/src/cico/transakWebhook.schema.sql
cajubelt/wallet
55774511031c453bde33f0898a625e3b0e7a51cd
[ "Apache-2.0" ]
2
2021-10-02T21:11:14.000Z
2021-10-02T22:44:44.000Z
packages/cloud-functions/src/cico/transakWebhook.schema.sql
codyborn/ValoraWallet
eb943825c6d2b335eede8a99bef65bb394bce844
[ "Apache-2.0" ]
null
null
null
packages/cloud-functions/src/cico/transakWebhook.schema.sql
codyborn/ValoraWallet
eb943825c6d2b335eede8a99bef65bb394bce844
[ "Apache-2.0" ]
null
null
null
eventID: STRING, id: STRING, walletAddress: STRING, createdAt: TIMESTAMP, status: STRING, fiatCurrency: STRING, cryptoCurrency: STRING, isBuyOrSell: STRING, fiatAmount: FLOAT, walletLink: STRING, paymentOptionId: STRING, quoteId: STRING, addressAdditionalData: BOOLEAN, network: STRING, amountPaid: FLOAT, redirectURL: STRING, conversionPrice: FLOAT, cryptoAmount: FLOAT, totalFeeInFiat: FLOAT, fiatAmountInUsd: FLOAT, fromWalletAddress: BOOLEAN, liquidityProvider: STRING, failureReason: STRING, isNonCustodial: BOOLEAN, transactionHash: STRING, transactionLink: STRING, completedAt: TIMESTAMP, partnerFeeInLocalCurrency: FLOAT, statusReason: STRING, appVersionName: STRING
21.774194
33
0.823704
9c2ef43b0a0469e700975561cd1a1dba6135a58b
468
js
JavaScript
File2Link.js
Nicify/JSBox-Scripts
490aa8623a0a5a574ed04540b65c6698c6d86d4a
[ "MIT" ]
5
2019-08-18T14:32:51.000Z
2021-12-11T16:46:55.000Z
File2Link.js
186c0/JSBox-Scripts
490aa8623a0a5a574ed04540b65c6698c6d86d4a
[ "MIT" ]
null
null
null
File2Link.js
186c0/JSBox-Scripts
490aa8623a0a5a574ed04540b65c6698c6d86d4a
[ "MIT" ]
2
2018-04-15T03:33:03.000Z
2018-07-16T09:57:53.000Z
if (void 0 === $context.data) { $ui.toast("请从分享面板运行"); $app.close(); } $http.request({ method: "PUT", url: "https://transfer.sh/" + encodeURIComponent($context.data.fileName), body: $context.data, handler: resp => { let data = resp.data; if (data) { $clipboard.text = data; $ui.toast("链接已复制"); } else { $ui.toast("Error"); } $delay(1, () => $context.close()); } })
24.631579
77
0.482906
c6103af217b2cabfb59c13af65251c7185d78a07
1,272
rb
Ruby
spec/anagram_spec.rb
jk0609/anagrams
18b13ae1d1a00fd79303d9bf2b6a5a62878771a8
[ "Unlicense" ]
null
null
null
spec/anagram_spec.rb
jk0609/anagrams
18b13ae1d1a00fd79303d9bf2b6a5a62878771a8
[ "Unlicense" ]
null
null
null
spec/anagram_spec.rb
jk0609/anagrams
18b13ae1d1a00fd79303d9bf2b6a5a62878771a8
[ "Unlicense" ]
null
null
null
require('rspec') require('./lib/anagram') describe('Word#anagram') do #output is processed into a string on app.rb it('returns non-anagram inputs as 1') do expect('taste'.anagram('apple')).to(eq([1])) end it('returns 2 one-word anagram inputs as 0') do expect('test'.anagram('estt')).to(eq([0])) end it('returns 2 one-word anagram inputs as 0 regardless of case') do expect('TeSt'.anagram('TsEt')).to(eq([0])) end it('returns multi-word anagram inputs as 0') do expect('hello again'.anagram('ehall gioan')).to(eq([0])) end it('rejects both inputs if either of them have no vowels(5)') do expect('srts'.anagram('sots prts')).to(eq([5])) end it('returns anagram:0, palindrome: 2 if first word is a palindrome') do expect('PotOP'.anagram('toopp')).to(eq([0,2])) end it('returns anagram:0, palindrome: 3 if 2nd word is a palindrome') do expect('geesegodseedo'.anagram('Do geese see God?')).to(eq([0,3])) end it('returns anagram:1, antigram:4 if words are antigrams') do expect('hi'.anagram('bye')).to(eq([1,4])) end it('returns anagram:1, antigram:4 if multiple words with punctuation are antigrams') do expect('hi tim ros'.anagram('bye pack!')).to(eq([1,4])) end end
37.411765
90
0.643082
652d0559a2243d1e92871449e1c32a5d4ef6cbbb
8,660
py
Python
bot/exts/filters/token_remover.py
adhikariprajitraj/bot
207eb16e7be7a339bb3e670ffd74283e755a73a7
[ "MIT" ]
null
null
null
bot/exts/filters/token_remover.py
adhikariprajitraj/bot
207eb16e7be7a339bb3e670ffd74283e755a73a7
[ "MIT" ]
null
null
null
bot/exts/filters/token_remover.py
adhikariprajitraj/bot
207eb16e7be7a339bb3e670ffd74283e755a73a7
[ "MIT" ]
null
null
null
import base64 import binascii import logging import re import typing as t from discord import Colour, Message, NotFound from discord.ext.commands import Cog from bot import utils from bot.bot import Bot from bot.constants import Channels, Colours, Event, Icons from bot.exts.moderation.modlog import ModLog from bot.utils.messages import format_user log = logging.getLogger(__name__) LOG_MESSAGE = ( """Censored a seemingly valid token sent by {author} in {channel}, \ token was `{user_id}.{timestamp}.{hmac}`""" ) UNKNOWN_USER_LOG_MESSAGE = "Decoded user ID: `{user_id}` (Not present in server)." KNOWN_USER_LOG_MESSAGE = ( "Decoded user ID: `{user_id}` **(Present in server)**.\n" "This matches `{user_name}` and means this is likely a valid **{kind}** token." ) DELETION_MESSAGE_TEMPLATE = ( """Hey {mention}! I noticed you posted a seemingly valid Discord API \ token in your message and have removed your message. This means that your token has been **compromised**. Please change your token **immediately** at: <https://discordapp.com/developers/applications/me>\n\n Feel free to re-post it with the token removed. If you believe this was a mistake, please let us know!""" ) DISCORD_EPOCH = 1_420_070_400 TOKEN_EPOCH = 1_293_840_000 # Three parts delimited by dots: user ID, creation timestamp, HMAC. # The HMAC isn't parsed further, but it's in the regex to ensure it at least exists in the string. # Each part only matches base64 URL-safe characters. # Padding has never been observed, but the padding character '=' is matched just in case. TOKEN_RE = re.compile(r"([\w\-=]+)\.([\w\-=]+)\.([\w\-=]+)", re.ASCII) class Token(t.NamedTuple): """A Discord Bot token.""" user_id: str timestamp: str hmac: str class TokenRemover(Cog): """Scans messages for potential discord.py bot tokens and removes them.""" def __init__(self, bot: Bot): self.bot = bot @property def mod_log(self) -> ModLog: """Get currently loaded ModLog cog instance.""" return self.bot.get_cog("ModLog") @Cog.listener() async def on_message(self, msg: Message) -> None: """ Check each message for a string that matches Discord's token pattern. See: https://discordapp.com/developers/docs/reference#snowflakes """ # Ignore DMs; can't delete messages in there anyway. if not msg.guild or msg.author.bot: return found_token = self.find_token_in_message(msg) if found_token: await self.take_action(msg, found_token) @Cog.listener() async def on_message_edit(self, before: Message, after: Message) -> None: """ Check each edit for a string that matches Discord's token pattern. See: https://discordapp.com/developers/docs/reference#snowflakes """ await self.on_message(after) async def take_action(self, msg: Message, found_token: Token) -> None: """Remove the `msg` containing the `found_token` and send a mod log message.""" self.mod_log.ignore(Event.message_delete, msg.id) try: await msg.delete() except NotFound: log.debug(f"Failed to remove token in message {msg.id}: message already deleted.") return await msg.channel.send(DELETION_MESSAGE_TEMPLATE.format(mention=msg.author.mention)) log_message = self.format_log_message(msg, found_token) userid_message, mention_everyone = self.format_userid_log_message(msg, found_token) log.debug(log_message) # Send pretty mod log embed to mod-alerts await self.mod_log.send_log_message( icon_url=Icons.token_removed, colour=Colour(Colours.soft_red), title="Token removed!", text=log_message + "\n" + userid_message, thumbnail=msg.author.avatar_url_as(static_format="png"), channel_id=Channels.mod_alerts, ping_everyone=mention_everyone, ) self.bot.stats.incr("tokens.removed_tokens") @classmethod def format_userid_log_message(cls, msg: Message, token: Token) -> t.Tuple[str, bool]: """ Format the portion of the log message that includes details about the detected user ID. If the user is resolved to a member, the format includes the user ID, name, and the kind of user detected. If we resolve to a member and it is not a bot, we also return True to ping everyone. Returns a tuple of (log_message, mention_everyone) """ user_id = cls.extract_user_id(token.user_id) user = msg.guild.get_member(user_id) if user: return KNOWN_USER_LOG_MESSAGE.format( user_id=user_id, user_name=str(user), kind="BOT" if user.bot else "USER", ), not user.bot else: return UNKNOWN_USER_LOG_MESSAGE.format(user_id=user_id), False @staticmethod def format_log_message(msg: Message, token: Token) -> str: """Return the generic portion of the log message to send for `token` being censored in `msg`.""" return LOG_MESSAGE.format( author=format_user(msg.author), channel=msg.channel.mention, user_id=token.user_id, timestamp=token.timestamp, hmac='x' * len(token.hmac), ) @classmethod def find_token_in_message(cls, msg: Message) -> t.Optional[Token]: """Return a seemingly valid token found in `msg` or `None` if no token is found.""" # Use finditer rather than search to guard against method calls prematurely returning the # token check (e.g. `message.channel.send` also matches our token pattern) for match in TOKEN_RE.finditer(msg.content): token = Token(*match.groups()) if ( (cls.extract_user_id(token.user_id) is not None) and cls.is_valid_timestamp(token.timestamp) and cls.is_maybe_valid_hmac(token.hmac) ): # Short-circuit on first match return token # No matching substring return @staticmethod def extract_user_id(b64_content: str) -> t.Optional[int]: """Return a user ID integer from part of a potential token, or None if it couldn't be decoded.""" b64_content = utils.pad_base64(b64_content) try: decoded_bytes = base64.urlsafe_b64decode(b64_content) string = decoded_bytes.decode('utf-8') if not (string.isascii() and string.isdigit()): # This case triggers if there are fancy unicode digits in the base64 encoding, # that means it's not a valid user id. return None return int(string) except (binascii.Error, ValueError): return None @staticmethod def is_valid_timestamp(b64_content: str) -> bool: """ Return True if `b64_content` decodes to a valid timestamp. If the timestamp is greater than the Discord epoch, it's probably valid. See: https://i.imgur.com/7WdehGn.png """ b64_content = utils.pad_base64(b64_content) try: decoded_bytes = base64.urlsafe_b64decode(b64_content) timestamp = int.from_bytes(decoded_bytes, byteorder="big") except (binascii.Error, ValueError) as e: log.debug(f"Failed to decode token timestamp '{b64_content}': {e}") return False # Seems like newer tokens don't need the epoch added, but add anyway since an upper bound # is not checked. if timestamp + TOKEN_EPOCH >= DISCORD_EPOCH: return True else: log.debug(f"Invalid token timestamp '{b64_content}': smaller than Discord epoch") return False @staticmethod def is_maybe_valid_hmac(b64_content: str) -> bool: """ Determine if a given HMAC portion of a token is potentially valid. If the HMAC has 3 or less characters, it's probably a dummy value like "xxxxxxxxxx", and thus the token can probably be skipped. """ unique = len(set(b64_content.lower())) if unique <= 3: log.debug( f"""Considering the HMAC {b64_content} a dummy because it has {unique} \ case-insensitively unique characters""" ) return False else: return True def setup(bot: Bot) -> None: """Load the TokenRemover cog.""" bot.add_cog(TokenRemover(bot))
37.008547
105
0.639145
1aee7293410e64eebd7c098aa0f7a1dc7e4e5c01
488
sql
SQL
aridb.sql
swiftlyanerd/ArianaBot-old
c435cafdc5ffa5e75cdb17d7d6aa594e2248c6f2
[ "MIT" ]
null
null
null
aridb.sql
swiftlyanerd/ArianaBot-old
c435cafdc5ffa5e75cdb17d7d6aa594e2248c6f2
[ "MIT" ]
null
null
null
aridb.sql
swiftlyanerd/ArianaBot-old
c435cafdc5ffa5e75cdb17d7d6aa594e2248c6f2
[ "MIT" ]
null
null
null
CREATE TABLE members ( id BIGINT(20) NOT NULL, username VARCHAR(30), discriminator INT (4), server VARCHAR(20) DEFAULT '' NOT NULL, moonlight INT(10) DEFAULT 0 NOT NULL, CONSTRAINT `PRIMARY` PRIMARY KEY (id, server) ); CREATE TABLE uinfo ( id BIGINT(20) NOT NULL, username VARCHAR(30), discriminator INT(4), server VARCHAR(20) DEFAULT '' NOT NULL, lastfm VARCHAR(20), song VARCHAR(30), CONSTRAINT `PRIMARY` PRIMARY KEY (id, server) );
25.684211
49
0.657787
b1906e7639ae073b63682576c5c0d254804f1ca7
670
h
C
3-UserInput/data/RIGHT.h
khalladay/GBAByExample-SpriteAnimation
09c16d3754789f64e21c39cb44d80742b26ac970
[ "MIT" ]
24
2017-06-09T12:37:35.000Z
2022-01-11T19:19:11.000Z
3-UserInput/data/RIGHT.h
khalladay/GBAByExample-SpriteAnimation
09c16d3754789f64e21c39cb44d80742b26ac970
[ "MIT" ]
null
null
null
3-UserInput/data/RIGHT.h
khalladay/GBAByExample-SpriteAnimation
09c16d3754789f64e21c39cb44d80742b26ac970
[ "MIT" ]
5
2018-12-15T17:14:23.000Z
2022-02-17T23:25:08.000Z
//{{BLOCK(RIGHT) //====================================================================== // // RIGHT, 64x32@8, // + palette 3 entries, not compressed // + 32 tiles Metatiled by 8x4 not compressed // Total size: 6 + 2048 = 2054 // // Time-stamp: 2017-04-15, 15:00:36 // Exported by Cearn's GBA Image Transmogrifier, v0.8.6 // ( http://www.coranac.com/projects/#grit ) // //====================================================================== #ifndef GRIT_RIGHT_H #define GRIT_RIGHT_H #define RIGHTTilesLen 2048 extern const unsigned short RIGHTTiles[1024]; #define RIGHTPalLen 6 extern const unsigned short RIGHTPal[4]; #endif // GRIT_RIGHT_H //}}BLOCK(RIGHT)
23.103448
72
0.552239
85aa05879622ef26de000227578dd75c072672aa
354
js
JavaScript
app/main/services/training-video-service-serv.js
SkillitCooking/skillitMobile
e411f0418004149aa23d878503d304318a68040e
[ "BSD-Source-Code" ]
null
null
null
app/main/services/training-video-service-serv.js
SkillitCooking/skillitMobile
e411f0418004149aa23d878503d304318a68040e
[ "BSD-Source-Code" ]
null
null
null
app/main/services/training-video-service-serv.js
SkillitCooking/skillitMobile
e411f0418004149aa23d878503d304318a68040e
[ "BSD-Source-Code" ]
null
null
null
'use strict'; angular.module('main') .factory('TrainingVideoService', function (Restangular) { var baseTrainingVideos = Restangular.all('trainingVideos'); return { getTrainingVideosForCollection: function(collectionId) { return baseTrainingVideos.customPOST({collectionId: collectionId}, 'getTrainingVideosForCollection'); } }; });
27.230769
107
0.748588
62ec2cbc29763f9735fa9bf2d64cb10ad5e08ea7
2,787
sql
SQL
visconti db/industry_account_project_canvas_assignation.sql
mitapirvuet/uppscience
03e48385dfaf046352a1e6735a1961631036162e
[ "BSD-3-Clause", "MIT" ]
null
null
null
visconti db/industry_account_project_canvas_assignation.sql
mitapirvuet/uppscience
03e48385dfaf046352a1e6735a1961631036162e
[ "BSD-3-Clause", "MIT" ]
null
null
null
visconti db/industry_account_project_canvas_assignation.sql
mitapirvuet/uppscience
03e48385dfaf046352a1e6735a1961631036162e
[ "BSD-3-Clause", "MIT" ]
null
null
null
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.10-log - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.3.0.4984 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping structure for table visconti db.industry_account_project_canvas_assignation CREATE TABLE IF NOT EXISTS `industry_account_project_canvas_assignation` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Created on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `Last modified on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `Account Representative` int(11) NOT NULL COMMENT 'Lookup to Account Representative', `Account` int(11) NOT NULL COMMENT 'Lookup to Account | Meta data', `Project` int(11) NOT NULL COMMENT 'Lookup to Projects', `Role` int(11) NOT NULL COMMENT 'Lookup to CoP Roles | Meta data to be copied from Expert on creation', `Status` enum('Active','Inactive') NOT NULL DEFAULT 'Inactive', PRIMARY KEY (`ID`), KEY `FK_industry_account_canvas_assignation_representative_roles` (`Account Representative`), KEY `FK_industry_account_canvas_assignation_industry_account` (`Account`), KEY `FK_industry_account_industry_canvas_assignation` (`Project`), KEY `FK_industry_account_canvas_assignation_expert_roles_entity` (`Role`), CONSTRAINT `FK_industry_account_canvas_assignation_expert_roles_entity` FOREIGN KEY (`Role`) REFERENCES `expert_roles` (`ID`), CONSTRAINT `FK_industry_account_canvas_assignation_industry_account` FOREIGN KEY (`Account`) REFERENCES `industry_account` (`ID`), CONSTRAINT `FK_industry_account_canvas_assignation_representative_roles` FOREIGN KEY (`Account Representative`) REFERENCES `industry_account_representative_roles` (`ID`), CONSTRAINT `FK_industry_account_industry_canvas_assignation` FOREIGN KEY (`Project`) REFERENCES `industry_account_project_canvas_assignation` (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Dumping data for table visconti db.industry_account_project_canvas_assignation: ~0 rows (approximately) /*!40000 ALTER TABLE `industry_account_project_canvas_assignation` DISABLE KEYS */; /*!40000 ALTER TABLE `industry_account_project_canvas_assignation` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
69.675
172
0.739146
a13b4c76945bcf9c9e5830aae8366268e006c06b
6,588
go
Go
part.go
cinience/go.enmime
3702bd9092afd46a33a80af5bec693960b583418
[ "MIT" ]
null
null
null
part.go
cinience/go.enmime
3702bd9092afd46a33a80af5bec693960b583418
[ "MIT" ]
null
null
null
part.go
cinience/go.enmime
3702bd9092afd46a33a80af5bec693960b583418
[ "MIT" ]
null
null
null
package enmime import ( "bufio" "bytes" "encoding/base64" "fmt" "io" "mime" "mime/multipart" "net/textproto" "strings" "github.com/sloonz/go-qprintable" ) // MIMEPart is the primary interface enmine clients will use. Each MIMEPart represents // a node in the MIME multipart tree. The Content-Type, Disposition and File Name are // parsed out of the header for easier access. // // TODO Content should probably be a reader so that it does not need to be stored in // memory. type MIMEPart interface { Parent() MIMEPart // Parent of this part (can be nil) FirstChild() MIMEPart // First (top most) child of this part NextSibling() MIMEPart // Next sibling of this part Header() textproto.MIMEHeader // Header as parsed by textproto package ContentType() string // Content-Type header without parameters Disposition() string // Content-Disposition header without parameters FileName() string // File Name from disposition or type header Charset() string // Content Charset Content() []byte // Decoded content of this part (can be empty) } // memMIMEPart is an in-memory implementation of the MIMEPart interface. It will likely // choke on huge attachments. type memMIMEPart struct { parent MIMEPart firstChild MIMEPart nextSibling MIMEPart header textproto.MIMEHeader contentType string disposition string fileName string charset string content []byte } // NewMIMEPart creates a new memMIMEPart object. It does not update the parents FirstChild // attribute. func NewMIMEPart(parent MIMEPart, contentType string) *memMIMEPart { return &memMIMEPart{parent: parent, contentType: contentType} } // Parent of this part (can be nil) func (p *memMIMEPart) Parent() MIMEPart { return p.parent } // First (top most) child of this part func (p *memMIMEPart) FirstChild() MIMEPart { return p.firstChild } // Next sibling of this part func (p *memMIMEPart) NextSibling() MIMEPart { return p.nextSibling } // Header as parsed by textproto package func (p *memMIMEPart) Header() textproto.MIMEHeader { return p.header } // Content-Type header without parameters func (p *memMIMEPart) ContentType() string { return p.contentType } // Content-Disposition header without parameters func (p *memMIMEPart) Disposition() string { return p.disposition } // File Name from disposition or type header func (p *memMIMEPart) FileName() string { return p.fileName } // Content charset func (p *memMIMEPart) Charset() string { return p.charset } // Decoded content of this part (can be empty) func (p *memMIMEPart) Content() []byte { return p.content } // ParseMIME reads a MIME document from the provided reader and parses it into // tree of MIMEPart objects. func ParseMIME(reader *bufio.Reader) (MIMEPart, error) { tr := textproto.NewReader(reader) header, err := tr.ReadMIMEHeader() if err != nil { return nil, err } mediatype, params, err := mime.ParseMediaType(header.Get("Content-Type")) if err != nil { return nil, err } root := &memMIMEPart{header: header, contentType: mediatype} if strings.HasPrefix(mediatype, "multipart/") { boundary := params["boundary"] err = parseParts(root, reader, boundary) if err != nil { return nil, err } } else { // Content is text or data, decode it content, err := decodeSection(header.Get("Content-Transfer-Encoding"), reader) if err != nil { return nil, err } root.content = content } return root, nil } // parseParts recursively parses a mime multipart document. func parseParts(parent *memMIMEPart, reader io.Reader, boundary string) error { var prevSibling *memMIMEPart // Loop over MIME parts mr := multipart.NewReader(reader, boundary) for { // mrp is golang's built in mime-part mrp, err := mr.NextPart() if err != nil { if err == io.EOF { // This is a clean end-of-message signal break } return err } if len(mrp.Header) == 0 { // Empty header probably means the part didn't using the correct trailing "--" // syntax to close its boundary. We will let this slide if this this the // last MIME part. if _, err := mr.NextPart(); err != nil { if err == io.EOF || strings.HasSuffix(err.Error(), "EOF") { // This is what we were hoping for break } else { return fmt.Errorf("Error at boundary %v: %v", boundary, err) } } return fmt.Errorf("Empty header at boundary %v", boundary) } ctype := mrp.Header.Get("Content-Type") if ctype == "" { return fmt.Errorf("Missing Content-Type at boundary %v", boundary) } mediatype, mparams, err := mime.ParseMediaType(ctype) if err != nil { return err } // Insert ourselves into tree, p is enmime's mime-part p := NewMIMEPart(parent, mediatype) p.header = mrp.Header if prevSibling != nil { prevSibling.nextSibling = p } else { parent.firstChild = p } prevSibling = p // Figure out our disposition, filename disposition, dparams, err := mime.ParseMediaType(mrp.Header.Get("Content-Disposition")) if err == nil { // Disposition is optional p.disposition = disposition p.fileName = DecodeHeader(dparams["filename"]) } if p.fileName == "" && mparams["name"] != "" { p.fileName = DecodeHeader(mparams["name"]) } if p.fileName == "" && mparams["file"] != "" { p.fileName = DecodeHeader(mparams["file"]) } if p.charset == "" { p.charset = mparams["charset"] } boundary := mparams["boundary"] if boundary != "" { // Content is another multipart err = parseParts(p, mrp, boundary) if err != nil { return err } } else { // Content is text or data, decode it data, err := decodeSection(mrp.Header.Get("Content-Transfer-Encoding"), mrp) if err != nil { return err } p.content = data } } return nil } // decodeSection attempts to decode the data from reader using the algorithm listed in // the Content-Transfer-Encoding header, returning the raw data if it does not known // the encoding type. func decodeSection(encoding string, reader io.Reader) ([]byte, error) { // Default is to just read input into bytes decoder := reader switch strings.ToLower(encoding) { case "quoted-printable": decoder = qprintable.NewDecoder(qprintable.WindowsTextEncoding, reader) case "base64": cleaner := NewBase64Cleaner(reader) decoder = base64.NewDecoder(base64.StdEncoding, cleaner) } // Read bytes into buffer buf := new(bytes.Buffer) _, err := buf.ReadFrom(decoder) if err != nil { return nil, err } return buf.Bytes(), nil }
27.22314
91
0.686703
c6d4618ec1f2cab9f4674d4773508187a7d95025
824
rb
Ruby
lib/flybuys_card_validation.rb
samjf/flybuys_card_validation
186bc61cdea6d838fab735f46a3356fefe54cb54
[ "MIT" ]
null
null
null
lib/flybuys_card_validation.rb
samjf/flybuys_card_validation
186bc61cdea6d838fab735f46a3356fefe54cb54
[ "MIT" ]
null
null
null
lib/flybuys_card_validation.rb
samjf/flybuys_card_validation
186bc61cdea6d838fab735f46a3356fefe54cb54
[ "MIT" ]
null
null
null
# frozen_string_literal: true require_relative "flybuys_card_validation/version" require_relative "flybuys_card_validation/card/base" module FlybuysCardValidation class Error < StandardError; end ## # This class provides validation to Fly Buys cards class Validator def initialize(card_list_str) @card_list_str = card_list_str end def print_card_validation cards = prepare_card_obj_list(@card_list_str) card_output = cards.map do |card| card.to_s end card_output.join("\n") end private def prepare_card_obj_list(input_str) removed_whitespace_str = input_str.gsub(/ /, "").strip card_numbers = removed_whitespace_str.split("\n") card_numbers.map do |card_number| Card::Base.build(card_number) end end end end
22.27027
60
0.707524
118e0c1c6d04f3edd26a0fcd0ff25050963a53ae
1,085
asm
Assembly
programs/oeis/293/A293014.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/293/A293014.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/293/A293014.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A293014: a(n) = a(n-1) + a(n-2) - a(n-3) + a(n-4) for n > 4, where a(n)=0 for n < 4 and a(4) = 1. ; 0,0,0,0,1,1,2,2,4,6,11,17,28,44,72,116,189,305,494,798,1292,2090,3383,5473,8856,14328,23184,37512,60697,98209,158906,257114,416020,673134,1089155,1762289,2851444,4613732,7465176,12078908,19544085,31622993,51167078,82790070,133957148,216747218,350704367,567451585,918155952,1485607536,2403763488,3889371024,6293134513,10182505537,16475640050,26658145586,43133785636,69791931222,112925716859,182717648081,295643364940,478361013020,774004377960,1252365390980,2026369768941,3278735159921,5305104928862,8583840088782,13888945017644,22472785106426,36361730124071,58834515230497,95196245354568,154030760585064,249227005939632,403257766524696,652484772464329,1055742538989025,1708227311453354,2763969850442378,4472197161895732,7236167012338110 mov $4,2 mov $6,$0 lpb $4,1 mov $0,$6 sub $4,1 add $0,$4 sub $0,2 mov $3,$0 cal $3,173434 ; a(n) = (A000045(n)-A173432(n))/2. mov $2,$4 mov $5,$3 lpb $2,1 mov $1,$5 sub $2,1 lpe lpe lpb $6,1 sub $1,$5 mov $6,0 lpe
45.208333
737
0.752995
df5c22dc8d2179276ecc1e89292b63356fcda899
4,038
kt
Kotlin
jvideo/src/main/java/com/jplus/jvideoview/utils/JvUtil.kt
HanPlus/Jvideoview
da2ee40b45ab9cba89c6aa0d2a78d878cb0aa94a
[ "Apache-2.0" ]
4
2019-12-08T10:28:56.000Z
2020-12-25T06:13:19.000Z
jvideo/src/main/java/com/jplus/jvideoview/utils/JvUtil.kt
HanPlus/Jvideoview
da2ee40b45ab9cba89c6aa0d2a78d878cb0aa94a
[ "Apache-2.0" ]
null
null
null
jvideo/src/main/java/com/jplus/jvideoview/utils/JvUtil.kt
HanPlus/Jvideoview
da2ee40b45ab9cba89c6aa0d2a78d878cb0aa94a
[ "Apache-2.0" ]
1
2021-09-02T03:22:20.000Z
2021-09-02T03:22:20.000Z
package com.jplus.jvideoview.utils import android.content.Context import android.graphics.Bitmap import android.media.MediaMetadataRetriever import android.provider.Settings import android.util.Log import android.view.WindowManager import android.widget.LinearLayout import java.text.SimpleDateFormat import java.util.* import kotlin.math.ceil import kotlin.math.max /** * @author JPlus * @date 2019/9/2. */ object JvUtil { /** * 播放进度转换为时间 * @param progress 进度(整型) */ fun progress2Time(progress: Long?): String { return if (progress == null) { "00:00" } else { val simpleDate = SimpleDateFormat("HH:mm:ss", Locale.CHINA) simpleDate.timeZone = TimeZone.getTimeZone("GMT+00:00") val result = simpleDate.format(Date(progress)) if (result.startsWith("00:")) result.removePrefix("00:") else result } } /** * 将滑动的距离转为进度显示 * @param distance 滑动的距离 * @param duration 总进度 * @param proportion 一次屏幕的滑动所占总进度的比例 * @param all 总高度/总宽度 */ fun dt2progress(distance: Float, duration: Long, all: Int, proportion: Double): Double { return (distance * duration * proportion / all) } /** * 获取屏幕宽度 * @param context 上下文 */ fun getPhoneDisplayWidth(context: Context): Int { return (context.getSystemService(Context.WINDOW_SERVICE) as WindowManager).defaultDisplay.width } /** * 获取屏幕高度 * @param context 上下文 */ fun getPhoneDisplayHeight(context: Context): Int { return (context.getSystemService(Context.WINDOW_SERVICE) as WindowManager).defaultDisplay.height } /** * 获取视频流的第一帧图片 * @param videoUri 在线视频的播放地址/本地视频的uri * @return Bitmap */ fun getNetVideoBitmap(videoUri: String): Bitmap? { var bitmap: Bitmap? = null val retriever = MediaMetadataRetriever() try { //根据url获取缩略图 retriever.setDataSource(videoUri, HashMap()) //获得第一帧图片 bitmap = retriever.frameAtTime } catch (e: IllegalArgumentException) { e.printStackTrace() } finally { retriever.release() } return bitmap } //按比例改变视频大小适配屏幕宽高, 因为jvView就是继承LinearLayout的,所以要返回LinearLayout.LayoutParams fun changeVideoSize( phoneWidth: Int, phoneHeight: Int, playerWidth: Int, playerHeight: Int ): LinearLayout.LayoutParams { Log.d("pipa", "changeVideoSize:phoneWidth:$phoneWidth, phoneHeight:$phoneHeight, playerWidth") val defaultWidth = if (phoneWidth < 0) 1920 else phoneWidth //根据视频尺寸去计算->视频可以在TextureView中放大的最大倍数。 val max = //竖屏模式下按视频宽度计算放大倍数值 max(playerHeight * 1.0 / phoneHeight, playerWidth * 1.0 / defaultWidth) //视频宽高分别/最大倍数值 计算出放大后的视频尺寸 val videoWidth = ceil(playerWidth * 1.0 / max).toInt() val videoHeight = ceil(playerHeight * 1.0 / max).toInt() //无法直接设置视频尺寸,将计算出的视频尺寸设置到surfaceView 让视频自动填充。 return LinearLayout.LayoutParams(videoWidth, videoHeight) } /** * 获取手机是否开启自动旋转屏幕 * @param context 上下文 * @return 是否已开启自动旋转屏幕功能 */ fun getIsOpenRotate(context: Context): Boolean { return Settings.System.getInt( context.contentResolver, Settings.System.ACCELEROMETER_ROTATION ) == 1 } /** * long转文件大小 * @param size * @return 返回B、K、M、G */ fun parseByteSize(size: Float): String { return if (size in 0f..1023f) { String.format("%.1fB", size) } else if (size >= 1024f && size < 1024f * 1024f) { String.format("%.1fK", size / 1024f) } else if (size >= 1024f * 1024f && size < 1024f * 1024f * 1024f) { String.format("%.1fM", size / 1024f / 1024f) } else if (size >= 1024f * 1024f * 1024f) { String.format("%.1fG", size / 1024f / 1024f / 1024f) } else { "0B" } } }
29.911111
104
0.60847
5b3c51498621ede0a2e5fe424027b2d0f6bb763b
4,270
c
C
io/read_hdf5.c
Andrei-EPFL/FCFC
fdf69fc5d6b24bdd7fff2bcdf8998c6ecacabdd6
[ "MIT" ]
null
null
null
io/read_hdf5.c
Andrei-EPFL/FCFC
fdf69fc5d6b24bdd7fff2bcdf8998c6ecacabdd6
[ "MIT" ]
null
null
null
io/read_hdf5.c
Andrei-EPFL/FCFC
fdf69fc5d6b24bdd7fff2bcdf8998c6ecacabdd6
[ "MIT" ]
null
null
null
#include "read_file.h" #include "libast.h" #include <stdint.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <ctype.h> #include "hdf5.h" static int read_col(hid_t group_id, char const *pos, real **data, hsize_t *num) { const int ndims = 1;//H5Sget_simple_extent_ndims(data_space); hsize_t dims[ndims]; hid_t dataset_id = 0, data_space = 0; /* identifiers */ /* Open an existing dataset. */ if (!(dataset_id = H5Dopen(group_id, pos, H5P_DEFAULT))) { P_ERR("failed to open the dataset of column %s\n", pos); //CLEAN_PTR; return 1; } /* Get the dataspace of the dataset_id */ if (!(data_space = H5Dget_space(dataset_id))) { P_ERR("Failed to get the data_space from the dataset of column %s\n", pos); //CLEAN_PTR; return 1; } if (H5Sget_simple_extent_dims(data_space, dims, NULL) < 0) { P_ERR("There are no dimensions in the dataset\n"); //CLEAN_PTR; return 1; } *num = dims[0]; if (!(*data = malloc(sizeof(real) * dims[0]))) { P_ERR("failed to allocate memory the column\n"); return 1; } /* Read the dataset. */ if (H5Dread(dataset_id, H5T_REAL, H5S_ALL, H5S_ALL, H5P_DEFAULT, *data) < 0) { P_ERR("failed to read from the dataset of column %s\n", pos); return 1; } /* Close the dataset. */ if (H5Dclose(dataset_id) < 0) { P_ERR("failed to close the dataset of column %s\n", pos); return 1; } return 0; } int read_hdf5_data(const char *fname, const char *groupname, char *const *pos, const char *wt, const char *sel, DATA **data, size_t *num, const int verb) { hid_t file_id = 0, group_id = 0; DATA *tmp; real *datax = NULL, *datay = NULL, *dataz = NULL; hsize_t dimx, dimy, dimz; size_t index = 0; /* Open an existing file. */ if (!(file_id = H5Fopen(fname, H5F_ACC_RDONLY, H5P_DEFAULT))) { P_ERR("Failed to open the HDF5 file %s\n", fname); //CLEAN_PTR; return FCFC_ERR_FILE; } /* Open an existing group. */ if (!(group_id = H5Gopen(file_id, groupname, H5P_DEFAULT))) { P_ERR("failed to open the group %s\n", groupname); //CLEAN_PTR; return FCFC_ERR_FILE; } /* Read the columns */ if (read_col(group_id, pos[0], &datax, &dimx)) { P_ERR("failed to read the column %s\n", pos[0]); return 1; } if (read_col(group_id, pos[1], &datay, &dimy)) { P_ERR("failed to read the column %s\n", pos[1]); return 1; } if (read_col(group_id, pos[2], &dataz, &dimz)) { P_ERR("failed to read the column %s\n", pos[2]); return 1; } /* Check dimensions of the columns */ if ((dimx != dimy) || (dimy != dimz) || (dimz != dimx)) { P_ERR("the sizes of the columns are not compatible\n"); return 1; } /* Allocate memory for data, a tmp variable */ if (!(tmp = malloc(dimx * sizeof(DATA)))) { P_ERR("failed to allocate memory for the data\n"); //CLEAN_PTR; return FCFC_ERR_MEMORY; } *num = dimx; #ifdef OMP #pragma omp parallel for #endif for (index = 0; index < dimx; index ++) { tmp[index].x[0] = datax[index]; tmp[index].x[1] = datay[index]; tmp[index].x[2] = dataz[index]; } #ifdef FCFC_DATA_WEIGHT real *weight = NULL; hsize_t dimw; if (wt) { if (read_col(group_id, wt, &weight, &dimw)) { P_ERR("failed to read the column %s\n", pos[2]); return 1; } } if (weight && (dimx == dimw)) { #ifdef OMP #pragma omp parallel for #endif for (index = 0; index < dimx; index ++) { tmp[index].w = weight[index]; } } else { #ifdef OMP #pragma omp parallel for #endif for (index = 0; index < dimx; index ++) { tmp[index].w = 1; } } #endif *data = tmp; /* Close the group. */ if (H5Gclose(group_id) < 0) { P_ERR("failed to close the group of the HDF5 file\n"); } /* Close the file. */ if (H5Fclose(file_id) < 0) { P_ERR("failed to close the HDF5 file\n"); } return 0; }
26.855346
111
0.559016
d01d6124c530a7221e52ab6d400b5fcbc8bd40c4
151
rb
Ruby
db/migrate/20161108173654_add_column_profissional_id_avaliacao.rb
danielsiebra/projeto_e_profissional
291b1e5ba8f8687ccc14625bbe9a02e048527e3e
[ "BSD-3-Clause" ]
null
null
null
db/migrate/20161108173654_add_column_profissional_id_avaliacao.rb
danielsiebra/projeto_e_profissional
291b1e5ba8f8687ccc14625bbe9a02e048527e3e
[ "BSD-3-Clause" ]
null
null
null
db/migrate/20161108173654_add_column_profissional_id_avaliacao.rb
danielsiebra/projeto_e_profissional
291b1e5ba8f8687ccc14625bbe9a02e048527e3e
[ "BSD-3-Clause" ]
null
null
null
class AddColumnProfissionalIdAvaliacao < ActiveRecord::Migration def change add_column :avaliacoes_servicos, :profissional_id, :integer end end
25.166667
64
0.821192
0cae7bc6d95d0a5148d10292b4933dd1fd93753f
1,968
py
Python
chapters/10/src/biglittle/entity/user.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
13
2020-08-06T17:05:50.000Z
2021-11-08T13:12:11.000Z
chapters/10/src/biglittle/entity/user.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
4
2020-09-20T05:30:39.000Z
2021-04-01T08:35:40.000Z
chapters/10/src/biglittle/entity/user.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
12
2020-08-07T06:45:43.000Z
2021-12-08T06:58:23.000Z
# biglittle.entity.user # tell python where to find module source code import os,sys sys.path.append(os.path.realpath('../../../src')) from biglittle.entity.base import Base class Name(Base) : formFieldPrefix = 'name_' fields = { 'title' : '', 'first' : '', 'middle' : '', 'last' : '', 'suffix' : '' } class Location(Base) : formFieldPrefix = 'location_' fields = { 'streetAddress' : '', 'buildingName' : '', 'floor' : '', 'roomAptCondoFlat' : '', 'city' : '', 'stateProvince' : '', 'locality' : '', 'country' : '', 'postalCode' : '', 'latitude' : '', 'longitude' : '' } class Contact(Base) : formFieldPrefix = 'contact_' fields = { 'email' : '', 'phone' : '', 'socMedia' : {} } class OtherContact(Base) : fields = { 'emails' : [], 'phoneNumbers' : [], 'socMedias' : [] } class OtherInfo(Base) : fields = { 'gender' : '', 'dateOfBirth' : '' } class LoginInfo(Base) : fields = { 'username' : '', 'oauth2' : '', 'password' : '' } class User(Base) : fields = { '_id' : '', 'userKey' : '', 'userType' : '', 'businessName' : '', 'name' : Name(), 'address' : Location(), 'contact' : Contact(), 'otherContact' : OtherContact(), 'otherInfo' : OtherInfo(), 'login' : LoginInfo() } def getId(self) : return self['_id'] def getKey(self) : return self['userKey'] def getName(self) : return Name(self['name']) def getFullName(self) : name = self.getName() return name.get('first') + ' ' + name.get('last')
22.363636
57
0.427846
d4c43c92497f3f6e158a6841197ef8bd34bff40e
61
kt
Kotlin
plugins/kotlin/refIndex/tests/testData/compilerIndex/properties/hierarchy/kotlin/set/KKKK/KKK.kt
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
plugins/kotlin/refIndex/tests/testData/compilerIndex/properties/hierarchy/kotlin/set/KKKK/KKK.kt
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
plugins/kotlin/refIndex/tests/testData/compilerIndex/properties/hierarchy/kotlin/set/KKKK/KKK.kt
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
open class KKK : KK() { override var property: Int = 42 }
20.333333
35
0.622951
a243c32bd2afc2eeb277de62059676cf64718f4d
4,218
asm
Assembly
Labs/Lab6/lab06_ex1.asm
ptr2578/CS61
682dccd6b986f383120a4612eb7e7a2d1e3cfa3f
[ "BSD-3-Clause" ]
1
2019-01-01T23:31:22.000Z
2019-01-01T23:31:22.000Z
Labs/Lab6/lab06_ex1.asm
ptr2578/CS61
682dccd6b986f383120a4612eb7e7a2d1e3cfa3f
[ "BSD-3-Clause" ]
null
null
null
Labs/Lab6/lab06_ex1.asm
ptr2578/CS61
682dccd6b986f383120a4612eb7e7a2d1e3cfa3f
[ "BSD-3-Clause" ]
null
null
null
;================================================= ; Name: Sungho Ahn ; Email: sahn025@ucr.edu ; GitHub username: ptr2578 ; ; Lab: lab 6 ; Lab section: B21 ; TA: Jason Goulding ;================================================= .ORIG x3000 ;-------------- ; Instructions ;-------------- LD R1, ARRAY_PTR ; Load address of Array into R1 ADD R0, R0, #1 ; Put number 1 in R0 ADD R3, R3, #10 ; R3 used for loop counter ;------------- ; CODE BEGINS ;------------- InputLoop ; BRANCH InputLoop/ Loop begins STR R0, R1, #0 ; Stores the number in R0 into the array ADD R0, R0, R0 ; Multiply the value in R0 by 2 (2^n) ADD R1, R1, #1 ; Move to next data slot ADD R3, R3, #-1 ; Decrement the loop counter BRz InputLoopEnd ; If counter becomes 0, out the loop BR InputLoop ; Back to top of the loop InputLoopEnd ; BRANCH InputLoopEnd ;--------------------------------------------------------------------------- AND R1, R1, #0 ; Clear R1 for next use ADD R1, R1, #1 ; R1 holds number 1 for comparison purpose ADD R3, R3, #10 ; Loop counter for array loop LD R6, ARRAY_PTR ; Load the address of the array into R6 ArrayLoop ; BRANCH ArrayLoop / Loop begins LDR R2, R6, #0 ; Load direct the value of the array into R2 AND R4, R4, #0 ; Loop counter for Hex loop AND R0, R0, #0 ; Clear R0 for next use LD R0, Printb ; Load R0 with b OUT ; Print character b HexLoop ; BRANCH HexLoop ADD R4, R4, #1 ; Increment hex-loop counter by 1 every loop AND R0, R0, #0 ; Clear R0 for next use JSR SUB_PRINT_16BINARY ; Jump to subroutine SUB_PRINT_16BINARY SpaceLoop ; BRANCH SpaceLoop AND R5, R5, #0 ; Clear R5 for next use ADD R5, R4, #-4 ; Check to see if the loop is 4th count BRz isSpace ; Go to isSpace to print space out if sum = 0 ADD R5, R4, #-8 ; Check to see if the loop is 8th count BRz isSpace ; Go to isSpace to print space out if sum = 0 ADD R5, R4, #-12 ; Check to see if the loop is 12th count BRz isSpace ; Go to isSpace to print space out if sum = 0 BR HexLoopCheck ; Skip to BRANCH LoopCheck isSpace ; BRANCH isSpace AND R0, R0, #0 ; Clear R0 for next use LD R0, PrintSpace ; Load space character in R0 OUT ; Prints space HexLoopCheck ; BRANCH LoopCheck AND R0, R0, #0 ; Clear R0 for next use ADD R0, R4, #-16 ; Loop continues until counter becomes zero BRz HexLoopEnd BR HexLoop HexLoopEnd ; BRANCH HexLoopEnd AND R0, R0, #0 ; Clear R0 for next use LEA R0, NEWLINE ; Load new line in R0 PUTS ; Prints new line ADD R6, R6, #1 ; Move to the next data in the array ADD R3, R3, #-1 ; Decrement the array-Loop counter BRz ArrayLoopEnd ; Out the array-loop if zero BR ArrayLoop ; Back to the top of the array-loop if positive ArrayLoopEnd ; BRANCH ArrayLoopEnd HALT ;------ ; Data ;------ ARRAY_PTR .FILL x4000 ; Address of the array Printb .FILL x0062 ; ASCII character b PrintSpace .FILL x0020 ; Space NEWLINE .STRINGZ "\n" ; New line ;------------- ; Remote data ;------------- .ORIG x4000 ARRAY .BLKW #10 ; Array with 10 values ;--------------------------------------------------------- ; Subroutine: PRINT_16BINARY ; Parameter: R0, R2 ; Postcondition: The subroutine will take MSB and compare ; with 1 and print its bin value. 0 or 1 ; Return value: None ;--------------------------------------------------------- .ORIG x3200 SUB_PRINT_16BINARY ; BRANCH SUB_PRINT_16BINARY ST R7, BACKUP_R7_3200 ; Backup R7 ADD R0, R2, R1 ; Compare MSB with 1 BRnz isOne ; If MSB is 1, go to branch isOne isZero ; BRANCH isZero AND R0, R0, #0 ; Clear R0 for next use LD R0, PrintZero ; Load R0 with 0 OUT ; Prints zero ADD R2, R2, R2 ; Shift bits left BR EndSubroutine ; Skip to SpaceLoop isOne ; BRANCH isOne AND R0, R0, #0 ; Clear R0 for next use LD R0, PrintOne ; Load R0 with 1 OUT ; Prints one ADD R2, R2, R2 ; Shift bits left EndSubroutine ; BRANCH EndSubroutine LD R7, BACKUP_R7_3200 ; Restore R7 RET ; Return to address R7 ;----------------- ; Subroutine Data ;----------------- BACKUP_R7_3200 .BLKW #1 PrintZero .FILL x0030 ; ASCII character 0 PrintOne .FILL x0031 ; ASCII character 1 ;---------------- ; END of Program ;---------------- .END
29.089655
76
0.613798