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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59ba0e46aa1b1c710af5337d7c48687efeea231e | 12,931 | cpp | C++ | src/mapleall/maple_driver/src/driver_option_common.cpp | he426100/OpenArkCompiler | 741e56284998f9f987b1a42bc01d2713abb799d7 | [
"MulanPSL-1.0"
] | 5 | 2019-09-02T04:44:52.000Z | 2021-11-08T12:23:51.000Z | src/mapleall/maple_driver/src/driver_option_common.cpp | he426100/OpenArkCompiler | 741e56284998f9f987b1a42bc01d2713abb799d7 | [
"MulanPSL-1.0"
] | 2 | 2020-07-21T01:22:01.000Z | 2021-12-06T08:07:16.000Z | src/mapleall/maple_driver/src/driver_option_common.cpp | he426100/OpenArkCompiler | 741e56284998f9f987b1a42bc01d2713abb799d7 | [
"MulanPSL-1.0"
] | 4 | 2019-09-02T04:46:52.000Z | 2020-09-10T11:30:03.000Z | /*
* Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR
* FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
#include "driver_option_common.h"
namespace {
using namespace maple;
using namespace mapleOption;
const mapleOption::Descriptor kUsages[] = {
// index, type, shortOption, longOption, enableBuildType, checkPolicy, help, exeName, extra bins
{ kUnknown,
0,
"",
"",
kBuildTypeAll,
kArgCheckPolicyNone,
"USAGE: maple [options]\n\n"
" Example 1: <Maple bin path>/maple --run=me:mpl2mpl:mplcg --option=\"[MEOPT]:[MPL2MPLOPT]:[MPLCGOPT]\"\n"
" --mplt=MPLTPATH inputFile.mpl\n"
" Example 2: <Maple bin path>/maple -O2 --mplt=mpltPath inputFile.dex\n\n"
"==============================\n"
" Options:\n",
"all",
{} },
{ kHelp,
0,
"h",
"help",
kBuildTypeProduct,
kArgCheckPolicyOptional,
" -h --help [COMPILERNAME] \tPrint usage and exit.\n"
" \tTo print the help info of specified compiler,\n"
" \tyou can use jbc2mpl, me, mpl2mpl, mplcg... as the COMPILERNAME\n"
" \teg: --help=mpl2mpl\n",
"all",
{} },
{ kVersion,
0,
"",
"version",
kBuildTypeProduct,
kArgCheckPolicyOptional,
" --version [command] \tPrint version and exit.\n",
"all",
{} },
{ kInFile,
0,
"",
"infile",
kBuildTypeProduct,
kArgCheckPolicyRequired,
" --infile file1,file2,file3 \tInput files.\n",
"all",
{} },
{ kInMplt,
0,
"",
"mplt",
kBuildTypeProduct,
kArgCheckPolicyRequired,
" --mplt=file1,file2,file3 \tImport mplt files.\n",
"all",
{ "jbc2mpl",
"dex2mpl"
} },
{ kOptimization0,
0,
"O0",
"",
kBuildTypeProduct,
kArgCheckPolicyNone,
" -O0 \tNo optimization.\n",
"all",
{} },
{ kOptimization1,
0,
"O1",
"",
kBuildTypeExperimental,
kArgCheckPolicyNone,
" -O1 \tDo some optimization.\n",
"all",
{} },
{ kOptimization2,
0,
"O2",
"",
kBuildTypeProduct,
kArgCheckPolicyNone,
" -O2 \tDo more optimization. (Default)\n",
"all",
{"mplfe"} },
{ kPartO2,
0,
"",
"partO2",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --partO2 \tSet func list for O2\n",
"all",
{} },
{ kWithIpa,
kEnable,
"",
"with-ipa",
kBuildTypeExperimental,
kArgCheckPolicyBool,
" --with-ipa \tRun IPA when building\n"
" --no-with-ipa \n",
"all",
{} },
{ kVerify,
kEnable,
"",
"verify",
kBuildTypeExperimental,
kArgCheckPolicyNone,
" --verify \tVerify mpl file\n",
"all",
{ "dex2mpl", "mpl2mpl" } },
{ kJbc2mplOpt,
0,
"",
"jbc2mpl-opt",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --jbc2mpl-opt \tSet options for jbc2mpl\n",
"all",
{} },
{ kCpp2mplOpt,
0,
"",
"mplfe-opt",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --mplfe-opt \tSet options for mplfe\n",
"all",
{} },
{ kAsOpt,
0,
"",
"as-opt",
kBuildTypeProduct,
kArgCheckPolicyNone,
"--as-opt \tSet options for as\n",
"all",
{} },
{ kLdOpt,
0,
"",
"ld-opt",
kBuildTypeProduct,
kArgCheckPolicyNone,
"--ld-opt \tSet options for ld\n",
"all",
{} },
{ kDex2mplOpt,
0,
"",
"dex2mpl-opt",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --dex2mpl-opt \tSet options for dex2mpl\n",
"all",
{} },
{ kMplipaOpt,
0,
"",
"mplipa-opt",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --mplipa-opt \tSet options for mplipa\n",
"all",
{} },
{ kMplcgOpt,
0,
"",
"mplcg-opt",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --mplcg-opt \tSet options for mplcg\n",
"all",
{} },
{ kDecoupleStatic,
kEnable,
"",
"decouple-static",
kBuildTypeProduct,
kArgCheckPolicyBool,
" --decouple-static \tdecouple the static method and field\n"
" --no-decouple-static \tDon't decouple the static method and field\n",
"all",
{ "dex2mpl", "me", "mpl2mpl" } },
{ kProfilePath,
0,
"",
"profile",
kBuildTypeProduct,
kArgCheckPolicyRequired,
" --profile \tFor PGO optimization\n"
" \t--profile=list_file\n",
"all",
{ "dex2mpl", "mpl2mpl", "mplcg" } },
{ kGCOnly,
kEnable,
"",
"gconly",
kBuildTypeProduct,
kArgCheckPolicyBool,
" --gconly \tMake gconly is enable\n"
" --no-gconly \tDon't make gconly is enable\n",
"all",
{
"dex2mpl", "me", "mpl2mpl",
"mplcg"
} },
{ kMeOpt,
0,
"",
"me-opt",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --me-opt \tSet options for me\n",
"all",
{} },
{ kMpl2MplOpt,
0,
"",
"mpl2mpl-opt",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --mpl2mpl-opt \tSet options for mpl2mpl\n",
"all",
{} },
{ kSaveTemps,
0,
"",
"save-temps",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --save-temps \tDo not delete intermediate files.\n"
" \t--save-temps Save all intermediate files.\n"
" \t--save-temps=file1,file2,file3 Save the\n"
" \ttarget files.\n",
"all",
{} },
{ kRun,
0,
"",
"run",
kBuildTypeProduct,
kArgCheckPolicyRequired,
" --run=cmd1:cmd2 \tThe name of executables that are going\n"
" \tto execute. IN SEQUENCE.\n"
" \tSeparated by \":\".Available exe names:\n"
" \tjbc2mpl, me, mpl2mpl, mplcg\n"
" \tInput file must match the tool can\n"
" \thandle\n",
"all",
{} },
{ kOption,
0,
"",
"option",
kBuildTypeProduct,
kArgCheckPolicyRequired,
" --option=\"opt1:opt2\" \tOptions for each executable,\n"
" \tseparated by \":\".\n"
" \tThe sequence must match the sequence in\n"
" \t--run.\n",
"all",
{} },
{ kTimePhases,
0,
"time-phases",
"",
kBuildTypeExperimental,
kArgCheckPolicyNone,
" -time-phases \tTiming phases and print percentages\n",
"all",
{} },
{ kGenMeMpl,
0,
"",
"genmempl",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --genmempl \tGenerate me.mpl file\n",
"all",
{} },
{ kGenObj,
kEnable,
"c",
"",
kBuildTypeProduct,
kArgCheckPolicyNone,
" -c \tCompile or assemble the source files, but do not link.\n",
"all",
{} },
{ kGenVtableImpl,
0,
"",
"genVtableImpl",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --genVtableImpl \tGenerate VtableImpl.mpl file\n",
"all",
{} },
{ kVerbose,
kEnable,
"",
"verbose",
kBuildTypeDebug,
kArgCheckPolicyBool,
" -verbose \t: print informations\n",
"all",
{ "jbc2mpl", "mplfe", "me", "mpl2mpl", "mplcg" } },
{ kAllDebug,
0,
"",
"debug",
kBuildTypeDebug,
kArgCheckPolicyNone,
" --debug \tPrint debug info.\n",
"all",
{} },
{ kWithDwarf,
0,
"g",
"",
kBuildTypeDebug,
kArgCheckPolicyNone,
" -g \t: with dwarf\n",
"all",
{} },
{ kHelpLevel,
0,
"",
"level",
kBuildTypeProduct,
kArgCheckPolicyNumeric,
" --level=NUM \tPrint the help info of specified level.\n"
" \tNUM=0: All options (Default)\n"
" \tNUM=1: Product options\n"
" \tNUM=2: Experimental options\n"
" \tNUM=3: Debug options\n",
"all",
{} },
{ kNpeNoCheck,
0,
"",
"no-npe-check",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --no-npe-check \tDisable null pointer check (Default)\n",
"all",
{} },
{ kNpeStaticCheck,
0,
"",
"npe-check-static",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --npe-check-static \tEnable null pointer static check only\n",
"all",
{} },
{ kNpeDynamicCheck,
0,
"",
"npe-check-dynamic",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --npe-check-dynamic \tEnable null pointer dynamic check with static warning\n",
"all",
{} },
{ kNpeDynamicCheckSilent,
0,
"",
"npe-check-dynamic-silent",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --npe-check-dynamic-silent \tEnable null pointer dynamic without static warning\n",
"all",
{} },
{ kBoundaryNoCheck,
0,
"",
"no-boundary-check",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --no-boundary-check \tDisable boundary check (Default)\n",
"all",
{} },
{ kBoundaryStaticCheck,
0,
"",
"boundary-check-static",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --boundary-check-static \tEnable boundary static check\n",
"all",
{} },
{ kBoundaryDynamicCheck,
0,
"",
"boundary-check-dynamic",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --boundary-check-dynamic \tEnable boundary dynamic check with static warning\n",
"all",
{} },
{ kBoundaryDynamicCheckSilent,
0,
"",
"boundary-check-dynamic-silent",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --boundary-check-dynamic-silent \tEnable boundary dynamic check without static warning\n",
"all",
{} },
{ kSafeRegionOption,
0,
"",
"safe-region",
kBuildTypeProduct,
kArgCheckPolicyNone,
" --safe-region \tEnable safe region\n",
"all",
{} },
{ kMaplePrintPhases,
0,
"maple-print-phases",
"maple-print-phases",
kBuildTypeAll,
kArgCheckPolicyOptional,
" -maple-print-phases \tPrint Driver Phases.\n --maple-print-phases\n",
"all",
{} },
{ kLdStatic,
0,
"static",
"static",
kBuildTypeAll,
kArgCheckPolicyNone,
" -static \tForce the linker to link a program statically\n",
"all",
{"ld"} },
{ kLdLib,
0,
"l",
"",
kBuildTypeAll,
kArgCheckPolicyRequired,
" -l <lib> \tLinks with a library file\n",
"all",
{"ld"} },
{ kLdLibPath,
0,
"L",
"",
kBuildTypeAll,
kArgCheckPolicyRequired,
" -L <libpath> \tAdd directory to library search path\n",
"all",
{"ld"} },
{ kClangMacro,
0,
"D",
"",
kBuildTypeAll,
kArgCheckPolicyRequired,
" -D <macro>=<value> \tDefine <macro> to <value> (or 1 if <value> omitted)\n",
"all",
{"clang"} },
{ kClangInclude,
0,
"I",
"",
kBuildTypeAll,
kArgCheckPolicyRequired,
" -I <dir> \tAdd directory to include search path\n",
"all",
{"clang"} },
{ kMaplePhaseOnly,
kEnable,
"",
"maple-phase",
kBuildTypeAll,
kArgCheckPolicyBool,
" --maple-phase \tRun maple phase only\n",
"all",
{} },
{ kMapleOut,
0,
"o",
"",
kBuildTypeAll,
kArgCheckPolicyRequired,
" -o <outfile> \tPlace the output into <file>\n",
"all",
{} },
{ kUnknown,
0,
"",
"",
kBuildTypeAll,
kArgCheckPolicyNone,
"",
"all",
{} }
};
} // namepsace
namespace maple {
using namespace mapleOption;
DriverOptionCommon &DriverOptionCommon::GetInstance() {
static DriverOptionCommon instance;
return instance;
}
DriverOptionCommon::DriverOptionCommon() {
CreateUsages(kUsages);
}
} // namespace maple
| 24.125 | 111 | 0.512257 |
706fd6ba0b3943db5e74d0f333fbf88a7cf6a06a | 679 | asm | Assembly | oeis/153/A153308.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | null | null | null | oeis/153/A153308.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | null | null | null | oeis/153/A153308.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | null | null | null | ; A153308: Numbers n such that 10*n+7 is not prime.
; Submitted by Jamie Morken(w2)
; 2,5,7,8,11,14,17,18,20,21,23,24,26,28,29,32,35,37,38,40,41,42,43,44,47,49,50,51,52,53,56,59,62,63,65,66,68,69,70,71,73,74,76,77,80,81,83,84,86,89,91,92,95,98,100,101,102,103,104,105,106,107,110,112,113,114,115,116,117,119,120,122,124,125,126,128,131,133,134,135,137,138,139,140,141,143,145,146,147,149,150,151,152,153,154,155,157,158,161,164
mov $1,6
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,10
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
add $0,$3
sub $0,1
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
div $0,10
| 29.521739 | 343 | 0.650957 |
1a6b13aa05410388fdc1f91f02df5a5e3d630ef9 | 540 | kt | Kotlin | devops-boot-project/devops-boot-core/devops-schedule/devops-schedule-common/src/main/kotlin/com/tencent/devops/schedule/enums/MisfireStrategyEnum.kt | hingbong/devops-framework | 02710a1f7b82eafe76b22859c874e2173c6108e9 | [
"MIT"
] | null | null | null | devops-boot-project/devops-boot-core/devops-schedule/devops-schedule-common/src/main/kotlin/com/tencent/devops/schedule/enums/MisfireStrategyEnum.kt | hingbong/devops-framework | 02710a1f7b82eafe76b22859c874e2173c6108e9 | [
"MIT"
] | null | null | null | devops-boot-project/devops-boot-core/devops-schedule/devops-schedule-common/src/main/kotlin/com/tencent/devops/schedule/enums/MisfireStrategyEnum.kt | hingbong/devops-framework | 02710a1f7b82eafe76b22859c874e2173c6108e9 | [
"MIT"
] | null | null | null | package com.tencent.devops.schedule.enums
/**
* 过期处理策略
*/
enum class MisfireStrategyEnum(
private val code: Int,
private val label: String
): DictItem {
/**
* 忽略
*/
IGNORE(1, "忽略"),
/**
* 立即补偿执行一次
*/
RETRY(2, "补偿执行");
override fun code() = code
override fun description() = label
companion object {
/**
* 根据[code]查找对应的枚举类型
*/
fun ofCode(code: Int): MisfireStrategyEnum? {
return values().find { it.code == code }
}
}
}
| 16.363636 | 53 | 0.522222 |
331e36df65e1a938a0ffcb7b06c0b44a1d2c9330 | 4,036 | cc | C++ | parallel/benchmarks/parallel-matching/metagraph.cc | sualehasif/maximum-matching | bf1b5cddcef3fcdbde6cfee73f3d99268101cf5b | [
"MIT"
] | null | null | null | parallel/benchmarks/parallel-matching/metagraph.cc | sualehasif/maximum-matching | bf1b5cddcef3fcdbde6cfee73f3d99268101cf5b | [
"MIT"
] | null | null | null | parallel/benchmarks/parallel-matching/metagraph.cc | sualehasif/maximum-matching | bf1b5cddcef3fcdbde6cfee73f3d99268101cf5b | [
"MIT"
] | null | null | null | #include "metagraph.h"
namespace gbbs {
template <class Graph>
double MetaGraph_runner(Graph& G, const commandLine& P){
std::cout << "### Application: MetaGraphs" << std::endl;
std::cout << "### Graph: " << P.getArgument(0) << std::endl;
std::cout << "### Threads: " << num_workers() << std::endl;
std::cout << "### n: " << G.n << std::endl;
std::cout << "### m: " << G.m << std::endl;
std::cout << "### ------------------------------------" << std::endl;
std::cout << "### ------------------------------------" << std::endl;
timer t; t.start();
auto matching = MetaGraphMatching(G);
std::cout << "### Found a matching of size: " << matching.size() << std::endl;
double tt = t.stop();
std::cout << "### Running Time: " << tt << std::endl;
return tt;
}
}
generate_main(gbbs::MetaGraph_runner, false);
// int main(int argc, char* argv[]) {
// gbbs::commandLine P(argc, argv, " [-s] <inFile>");
// char* iFile = P.getArgument(0);
// bool symmetric = P.getOptionValue("-s");
// bool compressed = P.getOptionValue("-c");
// bool binary = P.getOptionValue("-b");
// bool mmap = P.getOptionValue("-m");
// bool mmapcopy = false;
// debug(std::cout << "# mmapcopy = " << mmapcopy << "\n";);
// size_t rounds = P.getOptionLongValue("-rounds", 3);
// gbbs::pcm_init();
// if (compressed) {
// if (symmetric) {
// auto G =
// gbbs::gbbs_io::read_compressed_symmetric_graph<gbbs::empty>(
// iFile, mmap, mmapcopy);
// gbbs::alloc_init(G);
// run_app(G, gbbs::MetaGraph_runner, rounds)
// } else {
// auto G =
// gbbs::gbbs_io::read_compressed_asymmetric_graph<gbbs::empty>(
// iFile, mmap, mmapcopy);
// gbbs::alloc_init(G);
// run_app(G, gbbs::MetaGraph_runner, rounds)
// }
// } else {
// if (symmetric) {
// auto G = gbbs::gbbs_io::read_unweighted_symmetric_graph(iFile, mmap,
// binary);
// gbbs::alloc_init(G);
// run_app(G, gbbs::MetaGraph_runner, rounds)
// } else {
// auto G = gbbs::gbbs_io::read_unweighted_asymmetric_graph(iFile, mmap,
// binary);
// gbbs::alloc_init(G);
// run_app(G, gbbs::MetaGraph_runner, rounds)
// }
// }
// gbbs::alloc_finish();
// } | 61.151515 | 100 | 0.306739 |
71f0638304651cc287f3bd9af6db1827293fd32d | 1,565 | ts | TypeScript | src/event-listeners/modify-navigator.ts | tiddly-gittly/slate-write | f01316cbf3c9d0e83367a9ca76f9947f0150733b | [
"MIT"
] | 6 | 2022-03-05T21:19:29.000Z | 2022-03-24T11:52:45.000Z | src/event-listeners/modify-navigator.ts | tiddly-gittly/slate-write | f01316cbf3c9d0e83367a9ca76f9947f0150733b | [
"MIT"
] | 2 | 2022-02-28T10:44:48.000Z | 2022-03-08T03:03:45.000Z | src/event-listeners/modify-navigator.ts | tiddly-gittly/slate-write | f01316cbf3c9d0e83367a9ca76f9947f0150733b | [
"MIT"
] | null | null | null | import { IWidgetEvent, Widget } from 'tiddlywiki';
const NavigatorWidget = require('$:/core/modules/widgets/navigator.js').navigator;
NavigatorWidget.prototype.handleEditWYSIWYGTiddlerEvent = function (event: IWidgetEvent) {
const editTiddler = $tw.hooks.invokeHook('th-editing-wysiwyg-tiddler', event);
if (editTiddler == undefined) {
return false;
}
const isUnmodifiedShadow = (title: string) => {
return this.wiki.isShadowTiddler(title) && !this.wiki.tiddlerExists(title);
};
const confirmEditShadow = (title: string) => {
const win = event.event && 'view' in event.event && event.event.view != undefined ? event.event.view : window;
return win.confirm($tw.language.getString('ConfirmEditShadowTiddler', { variables: { title } }));
};
const title = event.param || event.tiddlerTitle;
if (!title || (isUnmodifiedShadow(title) && !confirmEditShadow(title))) {
return false;
}
// switch view template to wysiwyg edit mode
if (event.paramObject == undefined || event.paramObject.suppressNavigation !== 'yes') {
const tiddler = $tw.wiki.getTiddler(title);
$tw.wiki.addTiddler({ ...tiddler?.fields, wysiwyg: tiddler?.fields?.wysiwyg === 'yes' ? undefined : 'yes' });
return false;
}
};
const coreRender = NavigatorWidget.prototype.render as Widget['render'];
NavigatorWidget.prototype.render = function (parent: Node, nextSibling: Node) {
this.addEventListeners([{ type: 'tm-edit-wysiwyg-tiddler', handler: 'handleEditWYSIWYGTiddlerEvent' }]);
Reflect.apply(coreRender, this, [parent, nextSibling]);
};
| 46.029412 | 114 | 0.710543 |
c54933c03305dab0ae1fa71370ae16fc1b0dfb5b | 462 | cpp | C++ | src/Dusk/Strings.cpp | WhoBrokeTheBuild/Dusk-mk2 | 7326fdd60d398ad7d90243eb33eab6428df59c5e | [
"MIT"
] | null | null | null | src/Dusk/Strings.cpp | WhoBrokeTheBuild/Dusk-mk2 | 7326fdd60d398ad7d90243eb33eab6428df59c5e | [
"MIT"
] | null | null | null | src/Dusk/Strings.cpp | WhoBrokeTheBuild/Dusk-mk2 | 7326fdd60d398ad7d90243eb33eab6428df59c5e | [
"MIT"
] | null | null | null | #include "Strings.hpp"
#include <Dusk/Platform.hpp>
namespace dusk
{
string
Basename(const string& filename)
{
return filename.substr(filename.find_last_of("/\\") + 1);
}
string
Dirname(const string& filename)
{
if (filename.back() == '/' || filename.back() == '\\')
return filename.substr(0, filename.substr(0, filename.length() - 1).find_last_of("/\\"));
return filename.substr(0, filename.find_last_of("/\\"));
}
} // namespace dusk
| 19.25 | 97 | 0.651515 |
c00f9d5fbfd863f9e693b52817c9a52e45fd0060 | 678 | sql | SQL | config/scripts/schema/migrations/2012-10-26 - add markscheme table.sql | lol768/tabula | cabeb0f14678795afb8c92ac4df2c6912ff35f70 | [
"ISC"
] | null | null | null | config/scripts/schema/migrations/2012-10-26 - add markscheme table.sql | lol768/tabula | cabeb0f14678795afb8c92ac4df2c6912ff35f70 | [
"ISC"
] | null | null | null | config/scripts/schema/migrations/2012-10-26 - add markscheme table.sql | lol768/tabula | cabeb0f14678795afb8c92ac4df2c6912ff35f70 | [
"ISC"
] | null | null | null | -- HFC-363
CREATE TABLE MARKSCHEME
(
ID NVARCHAR2(255) NOT NULL
, NAME NVARCHAR2(255) NOT NULL
, DEPARTMENT_ID NVARCHAR2(255)
, FIRSTMARKERS_ID NVARCHAR2(255)
, SECONDMARKERS_ID NVARCHAR2(255)
, CONSTRAINT MARKSCHEME_PK PRIMARY KEY
(
ID
)
ENABLE
);
-- WHOOPS forgot this column
ALTER TABLE MARKSCHEME
ADD ( STUDENTSCHOOSEMARKER NUMBER(1,0) DEFAULT 0 NOT NULL );
-- WHOOPS these columns are too short
ALTER TABLE MARKSCHEME
MODIFY ( FIRSTMARKERS_ID NVARCHAR2(255) );
ALTER TABLE MARKSCHEME
MODIFY ( SECONDMARKERS_ID NVARCHAR2(255) );
ALTER TABLE ASSIGNMENT
ADD (MARKSCHEME_ID NVARCHAR2(255) );
CREATE INDEX IDX_MARKSCHEME_DEPT ON MARKSCHEME (DEPARTMENT_ID);
| 21.1875 | 63 | 0.765487 |
400eb6c72f53384c54bb0532a92109e07e970989 | 25,554 | py | Python | bookapp/views.py | RafaCucurull/Bookiernes | efe220a2501e20cca4e40bc4e582a4316e8718f6 | [
"MIT"
] | null | null | null | bookapp/views.py | RafaCucurull/Bookiernes | efe220a2501e20cca4e40bc4e582a4316e8718f6 | [
"MIT"
] | 101 | 2021-03-29T16:20:09.000Z | 2021-06-12T08:53:20.000Z | bookapp/views.py | RafaCucurull/Bookiernes | efe220a2501e20cca4e40bc4e582a4316e8718f6 | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render, redirect
from bookapp import models
from bookapp.forms import AfegirLlibreForm, SolicitarImatgesForm, SolicitarMaquetacioForm, PujarMaquetacio, pujarImatge, \
SolicitarPublicacioForm, EnviarMissatgeForm, SolicitarTraduccioForm
from bookapp.models import Llibre, TematiquesLlibre, Comentari, Notificacio, Tematica, Imatge, Missatge
from users.forms import ConfiguracioForm
from users.models import CustomUser
from django.core.files.storage import FileSystemStorage
from datetime import datetime
import PyPDF2
from translate import Translator
from fpdf import FPDF
from django.urls import reverse
from django.core.files.base import File
def homePage(request):
return render(request, "home.html")
def Escriptori(request):
global llibres
usuari = CustomUser.objects.get(email=request.user)
if not usuari.is_Treballador:
return render(request, "home.html")
if usuari.is_Editor:
llibres = Llibre.objects.filter(editor=usuari)
if usuari.is_Escriptor:
llibres = Llibre.objects.filter(escriptor=usuari)
if usuari.is_Dissenyador:
llibres = Llibre.objects.filter(dissenyador=usuari)
if usuari.is_Maquetacio:
llibres = Llibre.objects.filter(maquetador=usuari)
if usuari.is_IT:
llibres = Llibre.objects.filter(it=usuari)
tematiques = list()
for llibre in llibres:
tematiques.append(TematiquesLlibre.objects.filter(llibre=llibre))
mylist = zip(llibres, tematiques)
llibreshtml = {
"object_list": llibres,
"mylist": mylist
}
if usuari.is_Escriptor:
return render(request, "escriptori_escriptor.html", llibreshtml)
if usuari.is_Editor:
return render(request, "escriptori_editor.html", llibreshtml)
if usuari.is_Dissenyador:
return render(request, "escriptori_maquetador_dissenyador.html", llibreshtml)
if usuari.is_Maquetacio:
return render(request, "escriptori_maquetador_dissenyador.html", llibreshtml)
if usuari.is_IT:
return render(request, "escriptori_it.html", llibreshtml)
def afegirLlibre(request):
if request.method == 'POST':
form = AfegirLlibreForm(request.POST, request.FILES)
if form.is_valid():
obj = form.save()
afegirDocuments(obj)
seleccionar_editor(obj)
obj.escriptor = request.user
obj.save()
return redirect('/escriptori')
else:
form = AfegirLlibreForm()
return render(request, "afegirllibre.html", {'form': form})
def afegirDocuments(llibre):
with open('text.txt') as f:
llibre.textPla.save('text', File(f))
with open('text.txt') as f:
llibre.pdf_retall.save('retall', File(f))
with open('text.txt') as esdoc:
llibre.es.save('es', File(esdoc))
with open('text.txt') as g:
llibre.es_retall.save('esRetall', File(g))
with open('text.txt') as g:
llibre.en.save('en', File(g))
with open('text.txt') as h:
llibre.en_retall.save('enRetall', File(h))
with open('text.txt') as g:
llibre.pt.save('pt', File(g))
with open('text.txt') as h:
llibre.pt_retall.save('ptRetall', File(h))
with open('text.txt') as g:
llibre.zh.save('zh', File(g))
with open('text.txt') as h:
llibre.zh_retall.save('zhRetall', File(h))
def seleccionar_editor(llibre):
editors_lliures = CustomUser.objects.filter(is_Editor=True, lliure=True)
editoraux = editors_lliures[0]
llibre.editor = editoraux
editor = CustomUser.objects.get(email=editoraux)
# editor.lliure = False
editor.save()
notificacio = Notificacio()
notificacio.missatge = "Tens un nou llibre assignat"
notificacio.usuari = editoraux
data = datetime.now()
notificacio.data = data
notificacio.llibre = llibre
notificacio.save()
def areaedicio(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
"llibre": llibre
}
return render(request, 'area_edicio.html', context)
def enviarmissatge(request):
if request.method == 'POST':
form = EnviarMissatgeForm(request.POST)
if form.is_valid():
obj = form.save()
obj.autor = request.user
obj.save()
return redirect(request.path_info)
else:
form = EnviarMissatgeForm()
context = {
'form': form
}
return render(request, "missatge.html", context)
def areaescriptor(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
"llibre": llibre
}
return render(request, 'area_escriptor.html', context)
def areait(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
"llibre": llibre
}
return render(request, 'area_escriptor.html', context)
def enviarnovaversio(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
"llibrehtml": llibre
}
if request.method == "POST" and request.FILES['pdf']:
pdf = request.FILES['pdf']
print(pdf)
fs = FileSystemStorage()
filename = fs.save(pdf.name, pdf)
llibre.pdf = fs.url(filename)
print(llibre.pdf)
llibre.save()
return redirect(reverse('areaescriptor', kwargs={'pk': pk}))
return render(request, 'enviar_nova_versio.html', context)
def commentseditor(request, pk):
llibre = Llibre.objects.get(pk=pk)
usuari = CustomUser.objects.get(email=request.user)
comentaris = Comentari.objects.filter(usuari=usuari, llibre=llibre)
context = {
"llibre": llibre,
"usuari": usuari,
"comentaris": comentaris
}
if request.method == "POST":
titol = request.POST.get('titol')
descripcio = request.POST.get('descripcio')
nou_comentari = Comentari()
nou_comentari.usuari = request.user
nou_comentari.titol = titol
nou_comentari.descripcio = descripcio
nou_comentari.llibre = Llibre.objects.get(pk=pk)
nou_comentari.save()
notificarEscriptorComentari(Llibre.objects.get(pk=pk))
return render(request, 'comments_editor.html', context)
def dirbateriaimatges(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
"llibre": llibre,
}
return render(request, 'directori_imatges.html', context)
def dirmaquetacions(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
"llibre": llibre,
}
return render(request, 'directori_maquetacions.html', context)
def notificarEscriptorComentari(llibre):
notificacio = Notificacio()
notificacio.missatge = "Tens un comentari pendent de revisar"
notificacio.usuari = llibre.escriptor
notificacio.llibre = llibre
data = datetime.now()
notificacio.data = data
notificacio.save()
def canviardocument(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
"llibre": llibre
}
if request.method == "POST" and request.FILES['pdf']:
pdf = request.FILES['pdf']
print(pdf)
fs = FileSystemStorage()
filename = fs.save(pdf.name, pdf)
llibre.pdf = fs.url(filename)
print(llibre.pdf)
llibre.save()
return redirect(reverse('areaedicio', kwargs={'pk': pk}))
return render(request, 'canviar_document.html', context)
def notificacions(request):
notificacions = Notificacio.objects.filter(usuari=request.user)
context = {
"object_list": notificacions
}
return render(request, "notificacions.html", context)
def veuremissatge(request):
missatges = Missatge.objects.filter(destinatari=request.user)
context = {
"object_list": missatges
}
return render(request, "veuremissatge.html", context)
def comments(request, pk):
llibre = Llibre.objects.get(pk=pk)
comentaris = Comentari.objects.filter(llibre=llibre)
context = {
"llibre": llibre,
"comentaris": comentaris
}
return render(request, 'comments.html', context)
def cataleg(request):
qs = filtrar(request)
print(qs)
for llibre in qs:
print(llibre.nom_llibre)
context = {
'queryset': qs,
'tematiques': Tematica.objects.all()
}
return render(request, "cataleg.html", context)
def filtrar(request):
queryset = Llibre.objects.all()
tematiques = Tematica.objects.all()
escriptor = CustomUser.objects.filter(is_Escriptor=True)
titol = request.GET.get('titol')
autor = request.GET.get('autor')
colleccio = request.GET.get('collecio')
min_pagines = request.GET.get('pagines_min')
max_pagines = request.GET.get('pagines_max')
tematica = request.GET.get('tematica')
if is_valid(titol):
queryset = queryset.filter(nom_llibre__icontains=titol)
if is_valid(autor):
queryset = queryset.filter(escriptor__nom__icontains=autor)
if is_valid(colleccio):
queryset = queryset.filter(coleccio__icontains=colleccio)
if is_valid(min_pagines):
queryset = queryset.filter(num_pagines__gte=min_pagines)
if is_valid(max_pagines):
queryset = queryset.filter(num_pagines__lt=max_pagines)
if is_valid(tematica) and tematica != 'Tria...':
queryset = queryset.filter(tematiques__nom_tematica=tematica)
return queryset
def is_valid(param):
return param != '' and param is not None
def publicarllibre(request, pk):
llibre = Llibre.objects.get(pk=pk)
llibreshtml = {
"llibre": llibre,
}
if request.method == "POST":
llibre.publicat = True
llibre.save()
notificarEditorPublicat(llibre)
notificarITPublicat(llibre)
return redirect('/escriptori')
return render(request, "publicarllibre.html", llibreshtml)
def notificarEditorPublicat(llibre):
editor = llibre.editor
notificacio = Notificacio()
notificacio.missatge = "El llibre que has estat editant ja ha estat publicat a la Web"
notificacio.usuari = editor
data = datetime.now()
notificacio.data = data
notificacio.llibre = llibre
notificacio.save()
def notificarITPublicat(llibre):
it = llibre.it
notificacio = Notificacio()
notificacio.missatge = "El llibre que tenies assignat ja ha estat publicat a la Web"
notificacio.usuari = it
data = datetime.now()
notificacio.data = data
notificacio.llibre = llibre
notificacio.save()
def galeriaImatges(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
'imatges': llibre.imatges.all(),
'llibre': llibre,
}
return render(request, "galeria_imatges.html", context)
def solicitudImatges(request, pk):
llibre = Llibre.objects.get(pk=pk)
if request.method == 'POST':
form = SolicitarImatgesForm(request.POST)
if form.is_valid():
obj = form.save()
obj.llibre = llibre
obj.editor = request.user
seleccionar_dissenyador(obj, llibre)
obj.save()
return redirect(reverse('areaedicio', kwargs={'pk': pk}))
else:
form = SolicitarImatgesForm()
context = {
'llibre': llibre,
'form': form
}
return render(request, "solicitud_imatges.html", context)
def seleccionar_dissenyador(solicitud, llibre):
dissenyadors_lliures = CustomUser.objects.filter(is_Dissenyador=True, lliure=True)
dissenyadoraux = dissenyadors_lliures[0]
llibre.dissenyador = dissenyadoraux
llibre.save()
solicitud.dissenyador = dissenyadoraux
dissenyador = CustomUser.objects.get(email=dissenyadoraux)
# dissenyador.lliure = False
dissenyador.save()
notificacio = Notificacio()
notificacio.missatge = "Tens un nova sol·licitud d'imatges assignada"
notificacio.usuari = dissenyadoraux
data = datetime.now()
notificacio.data = data
notificacio.llibre = llibre
notificacio.save()
def galeriaMaquetacions(request, pk):
llibre = Llibre.objects.get(pk=pk)
maquetacio = llibre.maquetacio
context = {
"llibre": llibre,
"maquetacio": maquetacio
}
return render(request, "galeria_maquetacions.html", context)
def solicitudmaquetacio(request, pk):
llibre = Llibre.objects.get(pk=pk)
if request.method == 'POST':
form = SolicitarMaquetacioForm(request.POST)
if form.is_valid():
obj = form.save()
obj.llibre = llibre
obj.editor = request.user
seleccionar_maquetador(obj, llibre)
obj.save()
return redirect(reverse('areaedicio', kwargs={'pk': pk}))
else:
form = SolicitarMaquetacioForm()
return render(request, "enviar_llibre_maquetar.html", {'form': form})
def seleccionar_maquetador(solicitud, llibre):
maquetador_lliures = CustomUser.objects.filter(is_Maquetacio=True, lliure=True)
maquetadoraux = maquetador_lliures[0]
llibre.maquetador = maquetadoraux
llibre.save()
solicitud.maquetador = maquetadoraux
maquetador = CustomUser.objects.get(email=maquetadoraux)
# maquetador.lliure = False
maquetador.save()
notificacio = Notificacio()
notificacio.missatge = "Tens un nova sol·licitud de maquetació assignada"
notificacio.usuari = maquetadoraux
data = datetime.now()
notificacio.data = data
notificacio.llibre = llibre
notificacio.save()
def areaDisssenyiMaquetacio(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
"llibre": llibre
}
return render(request, 'area_disseny_i_maquetacio.html', context)
def veuresolicitudsImatge(request, pk):
llibre = Llibre.objects.get(pk=pk)
solicituds_disseny = models.solicitudImatges.objects.filter(llibre=llibre)
context = {
'llista_solicituds': solicituds_disseny,
'llibre': llibre
}
return render(request, 'solicituds_imatges_disseny.html', context)
def enviarbat(request, pk, pksol):
llibre = Llibre.objects.get(pk=pk)
solicitud = models.solicitudImatges.objects.filter(pk=pksol)
if request.method == 'POST':
form = pujarImatge(request.POST, request.FILES)
if form.is_valid():
obj = form.save()
obj.save()
llibre.imatges.add(obj)
llibre.save()
solicitud.delete()
notificarEditorImatges(llibre)
return redirect(reverse('areadismaq', kwargs={'pk': pk}))
else:
form = pujarImatge()
return render(request, 'enviar_imatges.html', {'form': form, 'llibre': llibre})
def notificarEditorImatges(llibre):
editor = llibre.editor
notificacio = Notificacio()
notificacio.missatge = "Tens disponible la bateria d'imatges que vas sol·licitar per l'obra"
notificacio.usuari = editor
data = datetime.now()
notificacio.data = data
notificacio.llibre = llibre
notificacio.save()
def notificarEditorMaquetacio(llibre):
editor = llibre.editor
notificacio = Notificacio()
notificacio.missatge = "Tens disponible el llibre maquetat que vas sol·licitar"
notificacio.usuari = editor
data = datetime.now()
notificacio.data = data
notificacio.llibre = llibre
notificacio.save()
def veuresolicitudsMaquetacio(request, pk):
llibre = Llibre.objects.get(pk=pk)
solicituds_maquetacio = models.solicitudMaquetacio.objects.filter(llibre=llibre)
context = {
'llista_solicituds': solicituds_maquetacio,
'llibre': llibre
}
return render(request, 'solicituds_maquetacio_disseny.html', context)
def enviarMaquetacio(request, pk, pksol):
llibre = Llibre.objects.get(pk=pk)
solicitud = models.solicitudMaquetacio.objects.filter(pk=pksol)
if request.method == 'POST':
form = PujarMaquetacio(request.POST, request.FILES)
if form.is_valid():
obj = form.save()
obj.save()
llibre.maquetacio = obj
llibre.save()
solicitud.delete()
notificarEditorMaquetacio(llibre)
return redirect(reverse('areadismaq', kwargs={'pk': pk}))
else:
form = PujarMaquetacio()
return render(request, 'enviar_maquetat.html', {'form': form, 'llibre': llibre})
def eliminarimatge(request, pk, pkimatge):
llibre = Llibre.objects.get(pk=pk)
imatge = Imatge.objects.get(pk=pkimatge)
llibre.imatges.remove(imatge)
llibre.save()
return HttpResponseRedirect(request.META.get('HTTP_REFERER', '/'))
def download_image(request, pk, pkimatge):
image = Imatge.objects.get(pk=pkimatge)
filename = image.image.file.name.split('/')[-1]
response = HttpResponse(image.image.file, content_type='text/plain')
response['Content-Disposition'] = 'attachment; filename=%s' % filename
return response
def eliminarnotificacio(request, pknotificacio):
Notificacio.objects.filter(pk=pknotificacio).delete()
return HttpResponseRedirect(request.META.get('HTTP_REFERER', '/'))
def eliminarmissatge(request, pkmissatge):
Missatge.objects.filter(pk=pkmissatge).delete()
return HttpResponseRedirect(request.META.get('HTTP_REFERER', '/'))
def solicitudpublicacio(request, pk):
llibre = Llibre.objects.get(pk=pk)
if request.method == 'POST':
form = SolicitarPublicacioForm(request.POST)
if form.is_valid():
anotacions = request.POST.get('anotacions')
obj = form.save()
obj.llibre = llibre
obj.editor = request.user
llibre.comentari_it = anotacions
seleccionar_it(obj, llibre)
llibre.save()
obj.save()
return redirect(reverse('areaedicio', kwargs={'pk': pk}))
else:
form = SolicitarMaquetacioForm()
retallarobra(llibre)
return render(request, "enviar_llibre_publicar.html", {'form': form})
def seleccionar_it(solicitud, llibre):
it_lliures = CustomUser.objects.filter(is_IT=True, lliure=True)
it_aux = it_lliures[0]
llibre.it = it_aux
llibre.save()
solicitud.it = it_aux
it = CustomUser.objects.get(email=it_aux)
# it.lliure = False
it.save()
notificacio = Notificacio()
notificacio.missatge = "Tens un nova sol·licitud de publicació assignada"
notificacio.usuari = it_aux
data = datetime.now()
notificacio.data = data
notificacio.llibre = llibre
notificacio.save()
def solicitudTraduccio(request, pk):
llibre = Llibre.objects.get(pk=pk)
if request.method == 'POST':
form = SolicitarTraduccioForm(request.POST)
if form.is_valid():
obj = form.save()
obj.llibre = llibre
obj.editor = request.user
idioma = obj.idioma
obj.save()
traduirLlibre(llibre, idioma)
# notificarEditorTraduccio(llibre)
return redirect(request.path_info)
else:
form = SolicitarTraduccioForm()
return render(request, 'solicitud_traduccio.html', {'form': form, 'llibre': llibre})
def galeriaTraduccions(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
'llibre': llibre,
}
return render(request, "galeria_traduccions.html", context)
def traduirLlibre(llibre, idioma):
pdf = llibre.pdf.path
txt = llibre.textPla.path
if (idioma == 'es'):
traduccio = llibre.es.path
if (idioma == 'en'):
traduccio = llibre.en.path
elif (idioma == 'pt'):
traduccio = llibre.pt.path
elif (idioma == 'zh'):
traduccio = llibre.zh.path
with open(pdf, 'rb') as pdf_file, open(txt, 'w') as txt_file:
read_pdf = PyPDF2.PdfFileReader(pdf_file)
number_of_pages = read_pdf.getNumPages()
for page_number in range(number_of_pages):
page = read_pdf.getPage(page_number)
page_content = page.extractText()
txt_file.write(page_content)
translator = Translator(to_lang=idioma)
with open(txt, 'r') as textOriginal:
data = textOriginal.read()
to_translate = data[:500]
translation = translator.translate(to_translate)
pdf = FPDF()
pdf.add_page()
pdf.set_font('arial', size=12)
pdf.multi_cell(190, 12, txt=translation)
pdf.output(traduccio + ".pdf")
# with open(llibre.traduccio, "wb") as llibreTraduccioStream:
# translation.write(llibreTraduccioStream)
def dirtraduccions(request, pk):
llibre = Llibre.objects.get(pk=pk)
context = {
"llibre": llibre,
}
return render(request, 'directori_traduccions.html', context)
def retallarobra(llibre):
# PDF
retallPDF = FPDF()
retallPDF.add_page()
retallPDF.set_font("Arial", size=15)
f = open(llibre.textPla.path, "r")
for x in f:
retallPDF.multi_cell(190, 10, txt=x, border=0, align='J', fill=False)
retallPDF.cell(190, 10, txt="HEU ARRIBAT AL FINAL DEL FRAGMENT DE MOSTRA",
ln=1, align='C')
retallPDF.cell(190, 10, txt="Per continuar gaudint del contigut del llibre, subscriviu-vos a Bookiernes",
ln=2, align='C')
retallPDF.output(llibre.pdf_retall.path + ".pdf")
# ES
retallES = FPDF()
retallES.add_page()
retallES.set_font("Arial", size=15)
es = open(llibre.es.path, "r")
for x in es:
retallES.multi_cell(200, 10, txt=x, border=0, align='J', fill=False)
retallES.cell(200, 10,
txt="HEU ARRIBAT AL FINAL DEL FRAGMENT DE MOSTRA\nHAS LLEGADO AL FINAL DEL FRAGMENTO DE MUESTRA ",
ln=1, align='C')
retallES.cell(200, 10,
txt="Per continuar gaudint del contingut del llibre, subscriviu-vos a Bookiernes\nPara continuar disfrutando del contenido del libro, suscríbase a Bookiernes ",
ln=2, align='C')
retallES.output(llibre.es_retall.path + ".pdf")
print(llibre.es_retall.path)
# EN
retallEN = FPDF()
retallEN.add_page()
retallEN.set_font("Arial", size=15)
en = open(llibre.en.path, "r")
for x in en:
retallEN.multi_cell(200, 10, txt=x, border=0, align='J', fill=False)
retallEN.cell(200, 10, txt="HEU ARRIBAT AL FINAL DEL FRAGMENT DE MOSTRA ",
ln=1, align='C')
retallEN.cell(200, 10, txt="YOU HAVE REACHED THE END OF THE SAMPLE FRAGMENT ",
ln=1, align='C')
retallEN.cell(200, 10, txt="Per continuar gaudint del contingut del llibre, subscriviu-vos a Bookiernes ",
ln=2, align='C')
retallEN.cell(200, 10, txt="To continue enjoying the contents of the book, subscribe to Bookiernes ",
ln=2, align='C')
retallEN.output(llibre.en_retall.path + ".pdf")
# PT
retallPT = FPDF()
retallPT.add_page()
retallPT.set_font("Arial", size=15)
pt = open(llibre.pt.path, "r")
for x in pt:
retallPT.multi_cell(200, 10, txt=x, border=0, align='J', fill=False)
retallPT.cell(200, 10, txt="HEU ARRIBAT AL FINAL DEL FRAGMENT DE MOSTRA ",
ln=1, align='C')
retallPT.cell(200, 10, txt="VOCÊ ALCANÇOU O FIM DO FRAGMENTO DE AMOSTRA ",
ln=1, align='C')
retallPT.cell(200, 10, txt="Per continuar gaudint del contingut del llibre, subscriviu-vos a Bookiernes",
ln=2, align='C')
retallPT.cell(200, 10, txt="Para continuar aproveitando o conteúdo do livro, assine Bookiernes",
ln=2, align='C')
retallPT.output(llibre.pt_retall.path + ".pdf")
# ZH
retallZH = FPDF()
retallZH.add_page()
retallZH.set_font("Arial", size=15)
zh = open(llibre.zh.path, "r")
for x in zh:
retallZH.multi_cell(200, 10, txt=x, border=0, align='J', fill=False)
retallZH.cell(200, 10, txt="HEU ARRIBAT AL FINAL DEL FRAGMENT DE MOSTRA",
ln=1, align='C')
retallZH.cell(200, 10, txt="Per continuar gaudint del contingut del llibre, subscriviu-vos a Bookiernes",
ln=2, align='C')
retallZH.output(llibre.zh_retall.path + ".pdf")
llibre.save()
def perfil(request, pkperfil):
usuari = CustomUser.objects.get(email=request.user)
llistallibres = list()
if usuari.is_Editor:
llistallibres = Llibre.objects.filter(editor=usuari)
if usuari.is_Escriptor:
llistallibres = Llibre.objects.filter(escriptor=usuari)
if usuari.is_Dissenyador:
llistallibres = Llibre.objects.filter(dissenyador=usuari)
if usuari.is_Maquetacio:
llistallibres = Llibre.objects.filter(maquetador=usuari)
if usuari.is_IT:
llistallibres = Llibre.objects.filter(it=usuari)
context = {
'llibres': llistallibres
}
return render(request, 'profile.html', context)
def configuracio(request, pkperfil):
usuari = CustomUser.objects.get(pk=pkperfil)
if request.method == 'POST':
form = ConfiguracioForm(request.POST)
if form.is_valid():
usuari.nom = form.cleaned_data.get('nom')
usuari.edat = form.cleaned_data.get('edat')
usuari.sexe = form.cleaned_data.get('sexe')
usuari.save()
return redirect(reverse('perfil', kwargs={'pkperfil': pkperfil}))
else:
form = ConfiguracioForm()
return render(request, 'configuracio_perfil.html', {'form': form})
def idiomes(request, pk):
llibre = Llibre.objects.get(pk=pk)
comentaris = Comentari.objects.filter(llibre=llibre)
context = {
"llibre": llibre,
"comentaris": comentaris
}
return render(request, 'idioma.html', context)
| 32.022556 | 178 | 0.656453 |
daf2b49b6d564f6edcd4e15c7dd8840acb3c8526 | 611 | dart | Dart | aqueduct/lib/src/db/shared/builders/sort.dart | bsutton/conduit-orm | 072b2038e09f8946198a24c83baa9e1c9ed60204 | [
"BSD-2-Clause"
] | null | null | null | aqueduct/lib/src/db/shared/builders/sort.dart | bsutton/conduit-orm | 072b2038e09f8946198a24c83baa9e1c9ed60204 | [
"BSD-2-Clause"
] | null | null | null | aqueduct/lib/src/db/shared/builders/sort.dart | bsutton/conduit-orm | 072b2038e09f8946198a24c83baa9e1c9ed60204 | [
"BSD-2-Clause"
] | null | null | null |
import 'package:aqueduct/src/db/query/query.dart';
import 'package:aqueduct/src/db/shared/returnable.dart';
import 'package:aqueduct/src/db/shared/builders/column.dart';
import 'package:aqueduct/src/db/shared/builders/table.dart';
class ColumnSortBuilder extends ColumnBuilder {
ColumnSortBuilder(DbWrapper dbWrapper, TableBuilder table, String key, QuerySortOrder order)
: order = order == QuerySortOrder.ascending ? "ASC" : "DESC",
super(dbWrapper,table, table.entity.properties[key]);
final String order;
String get sqlOrderBy => "${sqlColumnName(withTableNamespace: true)} $order";
}
| 40.733333 | 94 | 0.761047 |
59a398ae92ec63bb61770321edfc9c7ac306c66c | 1,175 | cpp | C++ | src/AdventOfCode2017/Day18-Duet/test_Day18-Duet.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | src/AdventOfCode2017/Day18-Duet/test_Day18-Duet.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | src/AdventOfCode2017/Day18-Duet/test_Day18-Duet.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | #include "Day18-Duet.h"
#include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h>
__BEGIN_LIBRARIES_DISABLE_WARNINGS
#include "CppUnitTest.h"
__END_LIBRARIES_DISABLE_WARNINGS
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace CurrentDay = AdventOfCode::Year2017::Day18;
TEST_CLASS(Day18Duet)
{
public:
TEST_METHOD(valueOfFirstRecoveredFrequency_SimpleTests)
{
std::vector<std::string> instructionStrings =
{
"set a 1",
"add a 2",
"mul a a",
"mod a 5",
"snd a",
"set a 0",
"rcv a",
"jgz a -1",
"set a 1",
"jgz a -2"
};
Assert::AreEqual(4ll, CurrentDay::valueOfFirstRecoveredFrequency(instructionStrings));
}
TEST_METHOD(numTimesProgram1Sent_SimpleTests)
{
std::vector<std::string> instructionStrings =
{
"snd 1",
"snd 2",
"snd p",
"rcv a",
"rcv b",
"rcv c",
"rcv d"
};
Assert::AreEqual(3u, CurrentDay::numTimesProgram1Sent(instructionStrings));
}
};
| 22.596154 | 94 | 0.564255 |
a8508b39f325ee76efe013e0759cd28708ca7341 | 238 | asm | Assembly | ChaosTheory/ChaosTheory/Binary/music.asm | ConspiracyHu/2012SourcePack | e878e3a2ecece26931ad23416d4f856fd5d33540 | [
"BSD-2-Clause"
] | 115 | 2015-04-25T14:18:22.000Z | 2022-03-31T13:12:00.000Z | ChaosTheory/ChaosTheory/Binary/music.asm | ConspiracyHu/2012SourcePack | e878e3a2ecece26931ad23416d4f856fd5d33540 | [
"BSD-2-Clause"
] | null | null | null | ChaosTheory/ChaosTheory/Binary/music.asm | ConspiracyHu/2012SourcePack | e878e3a2ecece26931ad23416d4f856fd5d33540 | [
"BSD-2-Clause"
] | 13 | 2015-10-21T02:17:05.000Z | 2021-12-01T20:13:52.000Z | ;----------------------------------------
%macro include_binary 2
global %1
%1 incbin %2
%1end:
global %1_size
%1_size dd %1end - %1
%endmacro
;----------------------------------------
section .data
include_binary _music, "music.mvm"
| 15.866667 | 41 | 0.466387 |
e728ee7d10d558dfca25d23493a81f1091db8304 | 711 | asm | Assembly | oeis/267/A267523.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/267/A267523.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/267/A267523.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A267523: Binary representation of the n-th iteration of the "Rule 139" elementary cellular automaton starting with a single ON (black) cell.
; Submitted by Jon Maiga
; 1,100,10011,1001111,100111111,10011111111,1001111111111,100111111111111,10011111111111111,1001111111111111111,100111111111111111111,10011111111111111111111,1001111111111111111111111,100111111111111111111111111,10011111111111111111111111111,1001111111111111111111111111111,100111111111111111111111111111111,10011111111111111111111111111111111,1001111111111111111111111111111111111,100111111111111111111111111111111111111,10011111111111111111111111111111111111111
mul $0,2
mov $1,10
pow $1,$0
mov $0,$1
mul $0,2
div $1,450
add $0,$1
div $0,2
| 54.692308 | 463 | 0.866385 |
1bf791c7bdce233974410c904e9f79bbc37d405f | 5,299 | py | Python | scanpy/api/__init__.py | ckmah/scanpy | 300435f30f6805e27ba59a7314fe06ef21d03c17 | [
"BSD-3-Clause"
] | null | null | null | scanpy/api/__init__.py | ckmah/scanpy | 300435f30f6805e27ba59a7314fe06ef21d03c17 | [
"BSD-3-Clause"
] | null | null | null | scanpy/api/__init__.py | ckmah/scanpy | 300435f30f6805e27ba59a7314fe06ef21d03c17 | [
"BSD-3-Clause"
] | null | null | null | """\
API
===
Import Scanpy's high-level API as::
import scanpy.api as sc
Preprocessing: PP
------------------
Filtering of highly-variable genes, batch-effect correction, per-cell (UMI) normalization, preprocessing recipes.
**Basic Preprocessing**
.. autosummary::
:toctree: .
pp.filter_cells
pp.filter_genes
pp.filter_genes_dispersion
pp.log1p
pp.pca
pp.normalize_per_cell
pp.regress_out
pp.scale
pp.subsample
pp.downsample_counts
**Recipes**
.. autosummary::
:toctree: .
pp.recipe_zheng17
pp.recipe_weinreb16
Tools: TL
----------
**Embeddings**
.. autosummary::
:toctree: .
tl.pca
tl.tsne
tl.umap
tl.diffmap
tl.draw_graph
**Branching trajectories and pseudotime, clustering, differential expression**
.. autosummary::
:toctree: .
tl.aga
tl.louvain
tl.dpt
tl.rank_genes_groups
**Gene scores, gene correlation**
.. autosummary::
:toctree: .
tl.score_genes
tl.score_genes_cell_cycle
**Simulations**
.. autosummary::
:toctree: .
tl.sim
Reading and Writing
-------------------
*Note:* For reading annotation use
`pandas.read_… <http://pandas.pydata.org/pandas-docs/stable/io.html>`_ and add
it to your `AnnData` object. The following read functions are intended for
the numeric data in the data matrix `X`.
Read common file formats using
.. autosummary::
:toctree: .
read
Read 10x formatted hdf5 files using
.. autosummary::
:toctree: .
read_10x_h5
Read other formats using functions borrowed from `anndata
<http://anndata.readthedocs.io>`_
.. autosummary::
:toctree: .
read_h5ad
read_csv
read_excel
read_hdf
read_loom
read_mtx
read_text
read_umi_tools
For writing, use `AnnData.write_… <http://anndata.readthedocs.io/en/latest/api.html>`_.
Exporting
---------
.. autosummary::
:toctree: .
export_to.spring_project
Datasets
--------
.. autosummary::
:toctree: .
datasets.blobs
datasets.krumsiek11
datasets.moignard15
datasets.paul15
datasets.paul15_raw
datasets.toggleswitch
Plotting: PL
-------------
.. autosummary::
:toctree: .
pl.set_rcParams_Scanpy
pl.set_rcParams_Defaults
.. raw:: html
**Generic plotting with AnnData**
.. autosummary::
:toctree: .
pl.scatter
pl.ranking
Thin wrappers for Seaborn functions.
.. autosummary::
:toctree: .
pl.violin
pl.clustermap
**Plotting tool results**
Methods that extract and visualize tool-specific annotation in an AnnData object.
For any method in module `tl`, there is a method with the same name in `pl`.
*Embeddings*
.. autosummary::
:toctree: .
pl.pca
pl.pca_loadings
pl.pca_scatter
pl.pca_variance_ratio
pl.tsne
pl.umap
pl.diffmap
pl.draw_graph
*Branching trajectories and pseudotime, clustering, differential expression*
.. autosummary::
:toctree: .
pl.aga
pl.aga_graph
pl.aga_path
pl.louvain
pl.dpt
pl.dpt_scatter
pl.dpt_groups_pseudotime
pl.dpt_timeseries
pl.rank_genes_groups
pl.rank_genes_groups_violin
*Simulations*
.. autosummary::
:toctree: .
pl.sim
Settings
--------
Global settings.
============================================== ===================================
`settings.verbosity` Verbosity level (default: 1).
`settings.file_format_figs` Format for saving figures (default: 'png').
`settings.figdir` Default directory for saving figures (default: './figures').
`settings.autoshow` Automatically show figures (default: `True`).
`settings.autoshow` Automatically show figures (default: `True`).
============================================== ===================================
The verbosity levels have the following meaning:
=== ======================================
0 Only show 'error' messages.
1 Also show 'warning' messages.
2 Also show 'info' messages.
3 Also show 'hint' messages.
4 Show very detailed progress.
... Show even more detailed progress.
=== ======================================
Logging
-------
================================================ ===================================
`logging.print_version_and_date()` Print the version and the date.
`logging.print_versions_dependencies_numerics()` Print the versions of dependencies.
================================================ ===================================
AnnData
-------
This only temporarily replicates the docs of `anndata
<http://anndata.readthedocs.io>`_. Occurances of :class:`~scanpy.api.AnnData`
will directly link to `anndata
<http://anndata.readthedocs.io>`_ in the future.
.. autosummary::
:toctree: .
AnnData
"""
from anndata import AnnData
from anndata import read as read_h5ad
from anndata import read_csv, read_excel, read_hdf, read_loom, read_mtx, read_text, read_umi_tools
from .. import __version__
from .. import settings
from .. import logging
from . import tl
tools = tl
from . import pl
plotting = pl
from . import pp
preprocessing = pp
from ..readwrite import read, read_10x_h5, write, read_params, write_params
from . import datasets
from ..data_structs import DataGraph
from .. import utils
from . import export_to
| 19.061151 | 113 | 0.627854 |
9c4d420b07a0ce166f6ac1a73e535910a900e99e | 4,665 | js | JavaScript | room/p2p/src/index.js | skyway-beta/examples-js | 78fecda2fab8c6c436ab87474d60f00f7ceef735 | [
"MIT"
] | null | null | null | room/p2p/src/index.js | skyway-beta/examples-js | 78fecda2fab8c6c436ab87474d60f00f7ceef735 | [
"MIT"
] | 1 | 2022-03-09T01:20:27.000Z | 2022-03-09T01:20:27.000Z | room/p2p/src/index.js | skyway-beta/examples-js | 78fecda2fab8c6c436ab87474d60f00f7ceef735 | [
"MIT"
] | null | null | null | import {
SkyWayAuthToken,
SkyWayContext,
SkyWayMediaDevices,
SkyWayRoom,
uuidV4,
} from '@skyway-sdk/room';
const appId = '<YOUR APP ID>';
const secretKey = '<YOUR SECRET KEY>';
const testToken = new SkyWayAuthToken({
jti: uuidV4(),
iat: Math.floor(Date.now() / 1000),
exp: Math.floor(Date.now() / 1000) + 600,
scope: {
app: {
id: appId,
turn: true,
actions: ['read'],
channels: [
{
id: '*',
name: '*',
actions: ['write'],
members: [
{
id: '*',
name: '*',
actions: ['write'],
publication: {
actions: ['write'],
},
subscription: {
actions: ['write'],
},
},
],
},
],
},
},
});
const tokenString = testToken.encode(secretKey);
async function main() {
const localVideo = document.getElementById('js-local-stream');
const joinTrigger = document.getElementById('js-join-trigger');
const leaveTrigger = document.getElementById('js-leave-trigger');
const remoteVideos = document.getElementById('js-remote-streams');
const roomName = document.getElementById('js-room-id');
const localText = document.getElementById('js-local-text');
const sendTrigger = document.getElementById('js-send-trigger');
const messages = document.getElementById('js-messages');
const { audio, video } =
await SkyWayMediaDevices.createMicrophoneAudioAndCameraStream();
const data = await SkyWayMediaDevices.createDataStream();
// Render local stream
localVideo.muted = true;
localVideo.playsInline = true;
video.attach(localVideo);
await localVideo.play().catch(console.error);
const context = await SkyWayContext.Create(tokenString, {
logLevel: 'debug',
});
// Register join handler
joinTrigger.addEventListener('click', async () => {
const room = await SkyWayRoom.FindOrCreate(context, {
name: roomName.value,
type: 'p2p',
});
messages.textContent += '=== You joined ===\n';
const member = await room.join();
messages.textContent += `=== ${member.id} joined ===\n`;
const userVideo = {};
member.onStreamSubscribed.add(async ({ stream, subscription }) => {
if (stream.contentType === 'data') {
stream.onData.add((data) => {
const { message } = data;
messages.textContent += `${subscription.publication.publisher.id}: ${message}\n`;
});
return;
}
const publisherId = subscription.publication.publisher.id;
if (!userVideo[publisherId]) {
const newVideo = document.createElement('video');
newVideo.playsInline = true;
newVideo.setAttribute(
'data-member-id',
subscription.publication.publisher.id
);
newVideo.autoplay = true;
remoteVideos.append(newVideo);
userVideo[publisherId] = newVideo;
}
const newVideo = userVideo[publisherId];
stream.attach(newVideo);
});
room.onStreamPublished.add(async (e) => {
if (e.publication.publisher.id === member.id) return;
await member.subscribe(e.publication.id);
});
room.publications.forEach(async (p) => {
if (p.publisher.id === member.id) return;
await member.subscribe(p.id);
});
await member.publish(audio);
await member.publish(video);
await member.publish(data);
room.onMemberLeft.add((e) => {
if (e.member.id === member.id) return;
const remoteVideo = remoteVideos.querySelector(
`[data-member-id="${e.member.id}"]`
);
const stream = remoteVideo.srcObject;
stream.getTracks().forEach((track) => track.stop());
remoteVideo.srcObject = null;
remoteVideo.remove();
messages.textContent += `=== ${e.member.id} left ===\n`;
});
member.onLeft.once(() => {
messages.textContent += '== You left ===\n';
Array.from(remoteVideos.children).forEach((element) => {
const remoteVideo = element;
const stream = remoteVideo.srcObject;
stream.getTracks().forEach((track) => track.stop());
remoteVideo.srcObject = null;
remoteVideo.remove();
});
room.dispose();
});
sendTrigger.addEventListener('click', () => {
data.write({ message: localText.value });
messages.textContent += `${member.id}: ${localText.value}\n`;
localText.value = '';
});
leaveTrigger.addEventListener(
'click',
async () => {
await member.leave();
},
{
once: true,
}
);
});
}
main();
| 28.445122 | 91 | 0.587567 |
116a2335e69f7e47f99f7ef7e185679dffe8366b | 4,510 | html | HTML | collectors/build/jenkins/target/site/jacoco/com.capitalone.dashboard.model/HudsonCollector.java.html | devendra0901/devops | f7d64f99e8fa297f6027721ae8afc1c1ddeb4d99 | [
"Apache-2.0"
] | null | null | null | collectors/build/jenkins/target/site/jacoco/com.capitalone.dashboard.model/HudsonCollector.java.html | devendra0901/devops | f7d64f99e8fa297f6027721ae8afc1c1ddeb4d99 | [
"Apache-2.0"
] | null | null | null | collectors/build/jenkins/target/site/jacoco/com.capitalone.dashboard.model/HudsonCollector.java.html | devendra0901/devops | f7d64f99e8fa297f6027721ae8afc1c1ddeb4d99 | [
"Apache-2.0"
] | null | null | null | <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>HudsonCollector.java</title><link rel="stylesheet" href="../.resources/prettify.css" type="text/css"/><script type="text/javascript" src="../.resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">com.capitalone.dashboard:jenkins-build-collector</a> > <a href="index.source.html" class="el_package">com.capitalone.dashboard.model</a> > <span class="el_source">HudsonCollector.java</span></div><h1>HudsonCollector.java</h1><pre class="source lang-java linenums">package com.capitalone.dashboard.model;
import org.springframework.util.CollectionUtils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Extension of Collector that stores current build server configuration.
*/
<span class="fc" id="L13">public class HudsonCollector extends Collector {</span>
<span class="fc" id="L14"> private List<String> buildServers = new ArrayList<>();</span>
<span class="fc" id="L15"> private List<String> niceNames = new ArrayList<>();</span>
<span class="fc" id="L16"> private List<String> environments = new ArrayList<>();</span>
public List<String> getBuildServers() {
<span class="fc" id="L19"> return buildServers;</span>
}
public List<String> getNiceNames() {
<span class="fc" id="L23"> return niceNames;</span>
}
public void setNiceNames(List<String> niceNames) {
<span class="nc" id="L27"> this.niceNames = niceNames;</span>
<span class="nc" id="L28"> }</span>
public List<String> getEnvironments() {
<span class="fc" id="L31"> return environments;</span>
}
public void setEnvironments(List<String> environments) {
<span class="nc" id="L35"> this.environments = environments;</span>
<span class="nc" id="L36"> }</span>
public void setBuildServers(List<String> buildServers) {
<span class="nc" id="L39"> this.buildServers = buildServers;</span>
<span class="nc" id="L40"> }</span>
public static HudsonCollector prototype(List<String> buildServers, List<String> niceNames,
List<String> environments) {
<span class="fc" id="L44"> HudsonCollector protoType = new HudsonCollector();</span>
<span class="fc" id="L45"> protoType.setName("Hudson");</span>
<span class="fc" id="L46"> protoType.setCollectorType(CollectorType.Build);</span>
<span class="fc" id="L47"> protoType.setOnline(true);</span>
<span class="fc" id="L48"> protoType.setEnabled(true);</span>
<span class="fc" id="L49"> protoType.getBuildServers().addAll(buildServers);</span>
<span class="pc bpc" id="L50" title="1 of 2 branches missed."> if (!CollectionUtils.isEmpty(niceNames)) {</span>
<span class="fc" id="L51"> protoType.getNiceNames().addAll(niceNames);</span>
}
<span class="pc bpc" id="L53" title="1 of 2 branches missed."> if (!CollectionUtils.isEmpty(environments)) {</span>
<span class="fc" id="L54"> protoType.getEnvironments().addAll(environments);</span>
}
<span class="fc" id="L56"> Map<String, Object> options = new HashMap<>();</span>
<span class="fc" id="L57"> options.put(HudsonJob.INSTANCE_URL,"");</span>
<span class="fc" id="L58"> options.put(HudsonJob.JOB_URL,"");</span>
<span class="fc" id="L59"> options.put(HudsonJob.JOB_NAME,"");</span>
<span class="fc" id="L60"> protoType.setAllFields(options);</span>
<span class="fc" id="L61"> protoType.setUniqueFields(options);</span>
<span class="fc" id="L62"> return protoType;</span>
}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.6.201602180812</span></div></body></html> | 69.384615 | 1,139 | 0.668736 |
f582675fb90f21898febf6cfc95b606eb238e706 | 19,746 | cc | C++ | device/gamepad/raw_input_gamepad_device_win.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | device/gamepad/raw_input_gamepad_device_win.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | device/gamepad/raw_input_gamepad_device_win.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "raw_input_gamepad_device_win.h"
#include "base/stl_util.h"
#include "device/gamepad/dualshock4_controller.h"
#include "device/gamepad/gamepad_blocklist.h"
#include "device/gamepad/gamepad_data_fetcher.h"
#include "device/gamepad/hid_haptic_gamepad.h"
#include "device/gamepad/hid_writer_win.h"
namespace device {
namespace {
float NormalizeAxis(long value, long min, long max) {
return (2.f * (value - min) / static_cast<float>(max - min)) - 1.f;
}
unsigned long GetBitmask(unsigned short bits) {
return (1 << bits) - 1;
}
const uint32_t kGenericDesktopUsagePage = 0x01;
const uint32_t kGameControlsUsagePage = 0x05;
const uint32_t kButtonUsagePage = 0x09;
const uint32_t kConsumerUsagePage = 0x0c;
const uint32_t kAxisMinimumUsageNumber = 0x30;
const uint32_t kSystemMainMenuUsageNumber = 0x85;
const uint32_t kPowerUsageNumber = 0x30;
const uint32_t kSearchUsageNumber = 0x0221;
const uint32_t kHomeUsageNumber = 0x0223;
const uint32_t kBackUsageNumber = 0x0224;
// The fetcher will collect all HID usages from the Button usage page and any
// additional usages listed below.
struct SpecialUsages {
const uint16_t usage_page;
const uint16_t usage;
} kSpecialUsages[] = {
// Xbox One S pre-FW update reports Xbox button as SystemMainMenu over BT.
{kGenericDesktopUsagePage, kSystemMainMenuUsageNumber},
// Power is used for the Guide button on the Nvidia Shield 2015 gamepad.
{kConsumerUsagePage, kPowerUsageNumber},
// Search is used for the Guide button on the Nvidia Shield 2017 gamepad.
{kConsumerUsagePage, kSearchUsageNumber},
// Start, Back, and Guide buttons are often reported as Consumer Home or
// Back.
{kConsumerUsagePage, kHomeUsageNumber},
{kConsumerUsagePage, kBackUsageNumber},
};
const size_t kSpecialUsagesLen = base::size(kSpecialUsages);
} // namespace
RawInputGamepadDeviceWin::RawInputGamepadDeviceWin(
HANDLE device_handle,
int source_id,
HidDllFunctionsWin* hid_functions)
: handle_(device_handle),
source_id_(source_id),
last_update_timestamp_(GamepadDataFetcher::CurrentTimeInMicroseconds()),
hid_functions_(hid_functions) {
::ZeroMemory(buttons_, sizeof(buttons_));
::ZeroMemory(axes_, sizeof(axes_));
if (hid_functions_->IsValid())
is_valid_ = QueryDeviceInfo();
if (is_valid_) {
if (Dualshock4Controller::IsDualshock4(vendor_id_, product_id_)) {
// Dualshock4 has different behavior over USB and Bluetooth, but the
// RawInput API does not indicate which transport is in use. Detect the
// transport type by inspecting the version number reported by the device.
GamepadBusType bus_type =
Dualshock4Controller::BusTypeFromVersionNumber(version_number_);
dualshock4_ = std::make_unique<Dualshock4Controller>(
vendor_id_, product_id_, bus_type,
std::make_unique<HidWriterWin>(handle_));
} else if (HidHapticGamepad::IsHidHaptic(vendor_id_, product_id_)) {
hid_haptics_ = HidHapticGamepad::Create(
vendor_id_, product_id_, std::make_unique<HidWriterWin>(handle_));
}
}
}
RawInputGamepadDeviceWin::~RawInputGamepadDeviceWin() = default;
// static
bool RawInputGamepadDeviceWin::IsGamepadUsageId(uint16_t usage) {
return usage == kGenericDesktopJoystick || usage == kGenericDesktopGamePad ||
usage == kGenericDesktopMultiAxisController;
}
void RawInputGamepadDeviceWin::DoShutdown() {
if (dualshock4_)
dualshock4_->Shutdown();
dualshock4_.reset();
if (hid_haptics_)
hid_haptics_->Shutdown();
hid_haptics_.reset();
}
void RawInputGamepadDeviceWin::UpdateGamepad(RAWINPUT* input) {
DCHECK(hid_functions_->IsValid());
NTSTATUS status;
if (dualshock4_) {
// Handle Dualshock4 input reports that do not specify HID gamepad usages in
// the report descriptor.
uint8_t report_id = input->data.hid.bRawData[0];
auto report = base::make_span(input->data.hid.bRawData + 1,
input->data.hid.dwSizeHid);
Gamepad pad;
if (dualshock4_->ProcessInputReport(report_id, report, &pad)) {
for (size_t i = 0; i < Gamepad::kAxesLengthCap; ++i)
axes_[i].value = pad.axes[i];
for (size_t i = 0; i < Gamepad::kButtonsLengthCap; ++i)
buttons_[i] = pad.buttons[i].pressed;
last_update_timestamp_ = GamepadDataFetcher::CurrentTimeInMicroseconds();
return;
}
}
// Query button state.
if (buttons_length_ > 0) {
// Clear the button state
::ZeroMemory(buttons_, sizeof(buttons_));
ULONG buttons_length = 0;
hid_functions_->HidPGetUsagesEx()(
HidP_Input, 0, nullptr, &buttons_length, preparsed_data_,
reinterpret_cast<PCHAR>(input->data.hid.bRawData),
input->data.hid.dwSizeHid);
std::unique_ptr<USAGE_AND_PAGE[]> usages(
new USAGE_AND_PAGE[buttons_length]);
status = hid_functions_->HidPGetUsagesEx()(
HidP_Input, 0, usages.get(), &buttons_length, preparsed_data_,
reinterpret_cast<PCHAR>(input->data.hid.bRawData),
input->data.hid.dwSizeHid);
if (status == HIDP_STATUS_SUCCESS) {
// Set each reported button to true.
for (size_t j = 0; j < buttons_length; j++) {
uint16_t usage_page = usages[j].UsagePage;
uint16_t usage = usages[j].Usage;
if (usage_page == kButtonUsagePage && usage > 0) {
size_t button_index = size_t{usage - 1};
if (button_index < Gamepad::kButtonsLengthCap)
buttons_[button_index] = true;
} else if (usage_page != kButtonUsagePage &&
!special_button_map_.empty()) {
for (size_t special_index = 0; special_index < kSpecialUsagesLen;
++special_index) {
int button_index = special_button_map_[special_index];
if (button_index < 0)
continue;
const auto& special = kSpecialUsages[special_index];
if (usage_page == special.usage_page && usage == special.usage)
buttons_[button_index] = true;
}
}
}
}
}
// Query axis state.
ULONG axis_value = 0;
LONG scaled_axis_value = 0;
for (uint32_t i = 0; i < axes_length_; i++) {
RawGamepadAxis* axis = &axes_[i];
// If the min is < 0 we have to query the scaled value, otherwise we need
// the normal unscaled value.
if (axis->caps.LogicalMin < 0) {
status = hid_functions_->HidPGetScaledUsageValue()(
HidP_Input, axis->caps.UsagePage, 0, axis->caps.Range.UsageMin,
&scaled_axis_value, preparsed_data_,
reinterpret_cast<PCHAR>(input->data.hid.bRawData),
input->data.hid.dwSizeHid);
if (status == HIDP_STATUS_SUCCESS) {
axis->value = NormalizeAxis(scaled_axis_value, axis->caps.PhysicalMin,
axis->caps.PhysicalMax);
}
} else {
status = hid_functions_->HidPGetUsageValue()(
HidP_Input, axis->caps.UsagePage, 0, axis->caps.Range.UsageMin,
&axis_value, preparsed_data_,
reinterpret_cast<PCHAR>(input->data.hid.bRawData),
input->data.hid.dwSizeHid);
if (status == HIDP_STATUS_SUCCESS) {
axis->value = NormalizeAxis(axis_value & axis->bitmask,
axis->caps.LogicalMin & axis->bitmask,
axis->caps.LogicalMax & axis->bitmask);
}
}
}
last_update_timestamp_ = GamepadDataFetcher::CurrentTimeInMicroseconds();
}
void RawInputGamepadDeviceWin::ReadPadState(Gamepad* pad) const {
DCHECK(pad);
pad->timestamp = last_update_timestamp_;
pad->buttons_length = buttons_length_;
pad->axes_length = axes_length_;
for (unsigned int i = 0; i < buttons_length_; i++) {
pad->buttons[i].pressed = buttons_[i];
pad->buttons[i].value = buttons_[i] ? 1.0 : 0.0;
}
for (unsigned int i = 0; i < axes_length_; i++)
pad->axes[i] = axes_[i].value;
}
bool RawInputGamepadDeviceWin::SupportsVibration() const {
return dualshock4_ || hid_haptics_;
}
void RawInputGamepadDeviceWin::SetVibration(double strong_magnitude,
double weak_magnitude) {
if (dualshock4_)
dualshock4_->SetVibration(strong_magnitude, weak_magnitude);
else if (hid_haptics_)
hid_haptics_->SetVibration(strong_magnitude, weak_magnitude);
}
bool RawInputGamepadDeviceWin::QueryDeviceInfo() {
// Fetch HID properties (RID_DEVICE_INFO_HID) for this device. This includes
// |vendor_id_|, |product_id_|, |version_number_|, and |usage_|.
if (!QueryHidInfo())
return false;
// Make sure this device is of a type that we want to observe.
if (!IsGamepadUsageId(usage_))
return false;
// Filter out devices that have gamepad-like HID usages but aren't gamepads.
if (GamepadIsExcluded(vendor_id_, product_id_))
return false;
// Fetch the device's |name_| (RIDI_DEVICENAME).
if (!QueryDeviceName())
return false;
// From the name we can guess at the bus type. PCI HID devices have "VEN" and
// "DEV" instead of "VID" and "PID". PCI HID devices are typically not
// gamepads and are ignored.
// Example PCI device name: \\?\HID#VEN_1234&DEV_ABCD
// TODO(crbug/881539): Potentially allow PCI HID devices to be enumerated, but
// prefer known gamepads when there is contention.
std::wstring pci_prefix = L"\\\\?\\HID#VEN_";
if (!name_.compare(0, pci_prefix.size(), pci_prefix))
return false;
// Filter out the virtual digitizer, which was observed after remote desktop.
// See https://crbug.com/961774 for details.
if (name_ == L"\\\\?\\VIRTUAL_DIGITIZER")
return false;
// We can now use the name to query the OS for a file handle that is used to
// read the product string from the device. If the OS does not return a valid
// handle this gamepad is invalid.
auto hid_handle = OpenHidHandle();
if (!hid_handle.IsValid())
return false;
// Fetch the human-friendly |product_string_|, if available.
if (!QueryProductString(hid_handle))
product_string_ = L"Unknown Gamepad";
// Fetch information about the buttons and axes on this device. This sets
// |buttons_length_| and |axes_length_| to their correct values and populates
// |axes_| with capabilities info.
if (!QueryDeviceCapabilities())
return false;
// Gamepads must have at least one button or axis.
if (buttons_length_ == 0 && axes_length_ == 0)
return false;
return true;
}
bool RawInputGamepadDeviceWin::QueryHidInfo() {
UINT size = 0;
UINT result =
::GetRawInputDeviceInfo(handle_, RIDI_DEVICEINFO, nullptr, &size);
if (result == static_cast<UINT>(-1)) {
PLOG(ERROR) << "GetRawInputDeviceInfo() failed";
return false;
}
DCHECK_EQ(0u, result);
std::unique_ptr<uint8_t[]> buffer(new uint8_t[size]);
result =
::GetRawInputDeviceInfo(handle_, RIDI_DEVICEINFO, buffer.get(), &size);
if (result == static_cast<UINT>(-1)) {
PLOG(ERROR) << "GetRawInputDeviceInfo() failed";
return false;
}
DCHECK_EQ(size, result);
RID_DEVICE_INFO* device_info =
reinterpret_cast<RID_DEVICE_INFO*>(buffer.get());
DCHECK_EQ(device_info->dwType, static_cast<DWORD>(RIM_TYPEHID));
vendor_id_ = static_cast<uint16_t>(device_info->hid.dwVendorId);
product_id_ = static_cast<uint16_t>(device_info->hid.dwProductId);
version_number_ = static_cast<uint16_t>(device_info->hid.dwVersionNumber);
usage_ = device_info->hid.usUsage;
return true;
}
bool RawInputGamepadDeviceWin::QueryDeviceName() {
UINT size = 0;
UINT result =
::GetRawInputDeviceInfo(handle_, RIDI_DEVICENAME, nullptr, &size);
if (result == static_cast<UINT>(-1)) {
PLOG(ERROR) << "GetRawInputDeviceInfo() failed";
return false;
}
DCHECK_EQ(0u, result);
std::unique_ptr<wchar_t[]> buffer(new wchar_t[size]);
result =
::GetRawInputDeviceInfo(handle_, RIDI_DEVICENAME, buffer.get(), &size);
if (result == static_cast<UINT>(-1)) {
PLOG(ERROR) << "GetRawInputDeviceInfo() failed";
return false;
}
DCHECK_EQ(size, result);
name_ = buffer.get();
return true;
}
bool RawInputGamepadDeviceWin::QueryProductString(
base::win::ScopedHandle& hid_handle) {
DCHECK(hid_handle.IsValid());
product_string_.resize(Gamepad::kIdLengthCap);
return hid_functions_->HidDGetProductString()(
hid_handle.Get(), &product_string_.front(), Gamepad::kIdLengthCap);
}
base::win::ScopedHandle RawInputGamepadDeviceWin::OpenHidHandle() {
return base::win::ScopedHandle(::CreateFile(
name_.c_str(), GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, /*lpSecurityAttributes=*/nullptr,
OPEN_EXISTING, /*dwFlagsAndAttributes=*/0, /*hTemplateFile=*/nullptr));
}
bool RawInputGamepadDeviceWin::QueryDeviceCapabilities() {
DCHECK(hid_functions_);
DCHECK(hid_functions_->IsValid());
UINT size = 0;
UINT result =
::GetRawInputDeviceInfo(handle_, RIDI_PREPARSEDDATA, nullptr, &size);
if (result == static_cast<UINT>(-1)) {
PLOG(ERROR) << "GetRawInputDeviceInfo() failed";
return false;
}
DCHECK_EQ(0u, result);
ppd_buffer_.reset(new uint8_t[size]);
preparsed_data_ = reinterpret_cast<PHIDP_PREPARSED_DATA>(ppd_buffer_.get());
result = ::GetRawInputDeviceInfo(handle_, RIDI_PREPARSEDDATA,
ppd_buffer_.get(), &size);
if (result == static_cast<UINT>(-1)) {
PLOG(ERROR) << "GetRawInputDeviceInfo() failed";
return false;
}
DCHECK_EQ(size, result);
HIDP_CAPS caps;
NTSTATUS status = hid_functions_->HidPGetCaps()(preparsed_data_, &caps);
DCHECK_EQ(HIDP_STATUS_SUCCESS, status);
QueryButtonCapabilities(caps.NumberInputButtonCaps);
QueryAxisCapabilities(caps.NumberInputValueCaps);
return true;
}
void RawInputGamepadDeviceWin::QueryButtonCapabilities(uint16_t button_count) {
DCHECK(hid_functions_);
DCHECK(hid_functions_->IsValid());
if (button_count > 0) {
std::unique_ptr<HIDP_BUTTON_CAPS[]> button_caps(
new HIDP_BUTTON_CAPS[button_count]);
NTSTATUS status = hid_functions_->HidPGetButtonCaps()(
HidP_Input, button_caps.get(), &button_count, preparsed_data_);
DCHECK_EQ(HIDP_STATUS_SUCCESS, status);
// Keep track of which button indices are in use.
std::vector<bool> button_indices_used(Gamepad::kButtonsLengthCap, false);
// Collect all inputs from the Button usage page.
QueryNormalButtonCapabilities(button_caps.get(), button_count,
&button_indices_used);
// Check for common gamepad buttons that are not on the Button usage page.
QuerySpecialButtonCapabilities(button_caps.get(), button_count,
&button_indices_used);
}
}
void RawInputGamepadDeviceWin::QueryNormalButtonCapabilities(
HIDP_BUTTON_CAPS button_caps[],
uint16_t button_count,
std::vector<bool>* button_indices_used) {
DCHECK(button_caps);
DCHECK(button_indices_used);
// Collect all inputs from the Button usage page and assign button indices
// based on the usage value.
for (size_t i = 0; i < button_count; ++i) {
uint16_t usage_page = button_caps[i].UsagePage;
uint16_t usage_min = button_caps[i].Range.UsageMin;
uint16_t usage_max = button_caps[i].Range.UsageMax;
if (usage_min == 0 || usage_max == 0)
continue;
size_t button_index_min = size_t{usage_min - 1};
size_t button_index_max = size_t{usage_max - 1};
if (usage_page == kButtonUsagePage &&
button_index_min < Gamepad::kButtonsLengthCap) {
button_index_max =
std::min(Gamepad::kButtonsLengthCap - 1, button_index_max);
buttons_length_ = std::max(buttons_length_, button_index_max + 1);
for (size_t j = button_index_min; j <= button_index_max; ++j)
(*button_indices_used)[j] = true;
}
}
}
void RawInputGamepadDeviceWin::QuerySpecialButtonCapabilities(
HIDP_BUTTON_CAPS button_caps[],
uint16_t button_count,
std::vector<bool>* button_indices_used) {
DCHECK(button_caps);
DCHECK(button_indices_used);
// Check for common gamepad buttons that are not on the Button usage page.
std::vector<bool> has_special_usage(kSpecialUsagesLen, false);
size_t unmapped_button_count = 0;
for (size_t i = 0; i < button_count; ++i) {
uint16_t usage_page = button_caps[i].UsagePage;
uint16_t usage_min = button_caps[i].Range.UsageMin;
uint16_t usage_max = button_caps[i].Range.UsageMax;
for (size_t special_index = 0; special_index < kSpecialUsagesLen;
++special_index) {
const auto& special = kSpecialUsages[special_index];
if (usage_page == special.usage_page && usage_min <= special.usage &&
usage_max >= special.usage) {
has_special_usage[special_index] = true;
++unmapped_button_count;
}
}
}
special_button_map_.clear();
if (unmapped_button_count > 0) {
// Insert special buttons at unused button indices.
special_button_map_.resize(kSpecialUsagesLen, -1);
size_t button_index = 0;
for (size_t special_index = 0; special_index < kSpecialUsagesLen;
++special_index) {
if (!has_special_usage[special_index])
continue;
// Advance to the next unused button index.
while (button_index < Gamepad::kButtonsLengthCap &&
(*button_indices_used)[button_index]) {
++button_index;
}
if (button_index >= Gamepad::kButtonsLengthCap)
break;
special_button_map_[special_index] = button_index;
(*button_indices_used)[button_index] = true;
++button_index;
if (--unmapped_button_count == 0)
break;
}
}
}
void RawInputGamepadDeviceWin::QueryAxisCapabilities(uint16_t axis_count) {
DCHECK(hid_functions_);
DCHECK(hid_functions_->IsValid());
std::unique_ptr<HIDP_VALUE_CAPS[]> axes_caps(new HIDP_VALUE_CAPS[axis_count]);
hid_functions_->HidPGetValueCaps()(HidP_Input, axes_caps.get(), &axis_count,
preparsed_data_);
bool mapped_all_axes = true;
for (size_t i = 0; i < axis_count; i++) {
size_t axis_index = axes_caps[i].Range.UsageMin - kAxisMinimumUsageNumber;
if (axis_index < Gamepad::kAxesLengthCap && !axes_[axis_index].active) {
axes_[axis_index].caps = axes_caps[i];
axes_[axis_index].value = 0;
axes_[axis_index].active = true;
axes_[axis_index].bitmask = GetBitmask(axes_caps[i].BitSize);
axes_length_ = std::max(axes_length_, axis_index + 1);
} else {
mapped_all_axes = false;
}
}
if (!mapped_all_axes) {
// For axes whose usage puts them outside the standard axesLengthCap range.
size_t next_index = 0;
for (size_t i = 0; i < axis_count; i++) {
size_t usage = axes_caps[i].Range.UsageMin - kAxisMinimumUsageNumber;
if (usage >= Gamepad::kAxesLengthCap &&
axes_caps[i].UsagePage <= kGameControlsUsagePage) {
for (; next_index < Gamepad::kAxesLengthCap; ++next_index) {
if (!axes_[next_index].active)
break;
}
if (next_index < Gamepad::kAxesLengthCap) {
axes_[next_index].caps = axes_caps[i];
axes_[next_index].value = 0;
axes_[next_index].active = true;
axes_[next_index].bitmask = GetBitmask(axes_caps[i].BitSize);
axes_length_ = std::max(axes_length_, next_index + 1);
}
}
if (next_index >= Gamepad::kAxesLengthCap)
break;
}
}
}
base::WeakPtr<AbstractHapticGamepad> RawInputGamepadDeviceWin::GetWeakPtr() {
return weak_factory_.GetWeakPtr();
}
} // namespace device
| 35.771739 | 80 | 0.688089 |
b7c66588bab78d6ee3894beeed3934a6b2fc6dad | 383 | asm | Assembly | oeis/245/A245195.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/245/A245195.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/245/A245195.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A245195: a(n) = 2^A014081(n).
; Submitted by Jamie Morken(s2)
; 1,1,1,2,1,1,2,4,1,1,1,2,2,2,4,8,1,1,1,2,1,1,2,4,2,2,2,4,4,4,8,16,1,1,1,2,1,1,2,4,1,1,1,2,2,2,4,8,2,2,2,4,2,2,4,8,4,4,4,8,8,8,16,32,1,1,1,2,1,1,2,4,1,1,1,2,2,2,4,8,1,1,1,2,1,1,2,4,2,2,2,4,4,4,8,16,2,2,2,4
seq $0,14081 ; a(n) is the number of occurrences of '11' in binary expansion of n.
mov $1,2
pow $1,$0
mov $0,$1
| 42.555556 | 205 | 0.574413 |
fb391327050ca129f16314e010a5193f174c5a73 | 6,611 | java | Java | backend/src/main/java/com/drumonii/loltrollbuild/model/BatchStepExecution.java | drumonii/LeagueTrollBuild | d964c6a9df798a432be7a002209877fdd6aea864 | [
"MIT"
] | 3 | 2020-06-09T23:31:33.000Z | 2022-02-26T11:35:36.000Z | backend/src/main/java/com/drumonii/loltrollbuild/model/BatchStepExecution.java | drumonii/LeagueTrollBuild | d964c6a9df798a432be7a002209877fdd6aea864 | [
"MIT"
] | 10 | 2020-03-14T19:04:54.000Z | 2022-03-02T02:47:29.000Z | backend/src/main/java/com/drumonii/loltrollbuild/model/BatchStepExecution.java | drumonii/LeagueTrollBuild | d964c6a9df798a432be7a002209877fdd6aea864 | [
"MIT"
] | 2 | 2019-06-17T20:44:12.000Z | 2019-08-26T09:38:43.000Z | package com.drumonii.loltrollbuild.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Objects;
/**
* Spring Batch BATCH_STEP_EXECUTION table.
*/
@Entity
@Table(name = "BATCH_STEP_EXECUTION")
public class BatchStepExecution implements Serializable {
@Id
@Column(name = "STEP_EXECUTION_ID", unique = true, nullable = false)
@SequenceGenerator(name = "STEP_EXECUTION_ID", sequenceName = "BATCH_STEP_EXECUTION_SEQ", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "STEP_EXECUTION_ID")
private long id;
@Column(name = "VERSION", nullable = false)
private Long version;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "JOB_EXECUTION_ID", nullable = false)
@JsonIgnore
private BatchJobExecution jobExecution;
@Column(name = "STEP_NAME", nullable = false, length = 100)
private String name;
@Column(name = "START_TIME", nullable = false, length = 29)
private LocalDateTime startTime;
@Column(name = "END_TIME", length = 29)
private LocalDateTime endTime;
@Column(name = "STATUS", length = 10)
private String status;
@Column(name = "COMMIT_COUNT")
private Long commitCount;
@Column(name = "READ_COUNT")
private Long readCount;
@Column(name = "FILTER_COUNT")
private Long filterCount;
@Column(name = "WRITE_COUNT")
private Long writeCount;
@Column(name = "READ_SKIP_COUNT")
private Long readSkipCount;
@Column(name = "WRITE_SKIP_COUNT")
private Long writeSkipCount;
@Column(name = "PROCESS_SKIP_COUNT")
private Long processSkipCount;
@Column(name = "ROLLBACK_COUNT")
private Long rollbackCount;
@Column(name = "EXIT_CODE", length = 2500)
private String exitCode;
@Column(name = "EXIT_MESSAGE", length = 2500)
private String exitMessage;
@Column(name = "LAST_UPDATED", length = 29)
private LocalDateTime lastUpdated;
@OneToOne(fetch = FetchType.LAZY, mappedBy = "stepExecution")
@JsonIgnore
private BatchStepExecutionContext stepExecutionContext;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public Long getVersion() {
return version;
}
public void setVersion(Long version) {
this.version = version;
}
public BatchJobExecution getJobExecution() {
return jobExecution;
}
public void setJobExecution(BatchJobExecution jobExecution) {
this.jobExecution = jobExecution;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public LocalDateTime getStartTime() {
return startTime;
}
public void setStartTime(LocalDateTime startTime) {
this.startTime = startTime;
}
public LocalDateTime getEndTime() {
return endTime;
}
public void setEndTime(LocalDateTime endTime) {
this.endTime = endTime;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Long getCommitCount() {
return commitCount;
}
public void setCommitCount(Long commitCount) {
this.commitCount = commitCount;
}
public Long getReadCount() {
return readCount;
}
public void setReadCount(Long readCount) {
this.readCount = readCount;
}
public Long getFilterCount() {
return filterCount;
}
public void setFilterCount(Long filterCount) {
this.filterCount = filterCount;
}
public Long getWriteCount() {
return writeCount;
}
public void setWriteCount(Long writeCount) {
this.writeCount = writeCount;
}
public Long getReadSkipCount() {
return readSkipCount;
}
public void setReadSkipCount(Long readSkipCount) {
this.readSkipCount = readSkipCount;
}
public Long getWriteSkipCount() {
return writeSkipCount;
}
public void setWriteSkipCount(Long writeSkipCount) {
this.writeSkipCount = writeSkipCount;
}
public Long getProcessSkipCount() {
return processSkipCount;
}
public void setProcessSkipCount(Long processSkipCount) {
this.processSkipCount = processSkipCount;
}
public Long getRollbackCount() {
return rollbackCount;
}
public void setRollbackCount(Long rollbackCount) {
this.rollbackCount = rollbackCount;
}
public String getExitCode() {
return exitCode;
}
public void setExitCode(String exitCode) {
this.exitCode = exitCode;
}
public String getExitMessage() {
return exitMessage;
}
public void setExitMessage(String exitMessage) {
this.exitMessage = exitMessage;
}
public LocalDateTime getLastUpdated() {
return lastUpdated;
}
public void setLastUpdated(LocalDateTime lastUpdated) {
this.lastUpdated = lastUpdated;
}
public BatchStepExecutionContext getStepExecutionContext() {
return stepExecutionContext;
}
public void setStepExecutionContext(BatchStepExecutionContext stepExecutionContext) {
this.stepExecutionContext = stepExecutionContext;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BatchStepExecution that = (BatchStepExecution) o;
return id == that.id;
}
@Override
public int hashCode() {
return Objects.hash(id);
}
@Override
public String toString() {
return "BatchStepExecution{" +
"id=" + id +
", version=" + version +
", name='" + name + '\'' +
", startTime=" + startTime +
", endTime=" + endTime +
", status='" + status + '\'' +
", commitCount=" + commitCount +
", readCount=" + readCount +
", filterCount=" + filterCount +
", writeCount=" + writeCount +
", readSkipCount=" + readSkipCount +
", writeSkipCount=" + writeSkipCount +
", processSkipCount=" + processSkipCount +
", rollbackCount=" + rollbackCount +
", exitCode='" + exitCode + '\'' +
", exitMessage='" + exitMessage + '\'' +
", lastUpdated=" + lastUpdated +
'}';
}
}
| 24.216117 | 110 | 0.632431 |
bee2d721954591ddf380d67e8921a0278b55a9e9 | 43,799 | html | HTML | output.html | KurosakiRei/CISC4900 | 41ad4c2bee6d42e3877a7b29dd6e60f6a91a5c49 | [
"MIT"
] | 3 | 2019-11-01T15:25:20.000Z | 2020-02-28T16:55:26.000Z | output.html | KurosakiRei/CISC4900 | 41ad4c2bee6d42e3877a7b29dd6e60f6a91a5c49 | [
"MIT"
] | 8 | 2019-12-14T21:56:58.000Z | 2021-08-23T20:31:55.000Z | output.html | KurosakiRei/CISC4900 | 41ad4c2bee6d42e3877a7b29dd6e60f6a91a5c49 | [
"MIT"
] | 1 | 2019-11-06T22:07:38.000Z | 2019-11-06T22:07:38.000Z | <!DOCTYPE html>
<html lang="en">
<head>
<title>Results Table</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body style="width: 100%">
<header>
<h2 align="center">Results Table</h2>
<table class="table" style="width:100%" border="1">
<thead class="thead-dark">
<tr align="center">
<th>Vendor</th>
<th>TruePositive</th>
<th>TrueNegative</th>
<th>FalsePositive</th>
<th>FalseNegative</th>
<th>Precision</th>
<th>Recall</th>
<th>F1-Score</th>
</tr>
</thead>
<tbody>
<tr align="center">
<td>Amazon</td>
<td>2</td>
<td>2</td>
<td>4</td>
<td>2</td>
<td>33.33%</td>
<td>50.00%</td>
<td>40.00</td>
</tr>
<tr align="center">
<td>Clarifai</td>
<td>0</td>
<td>6</td>
<td>0</td>
<td>4</td>
<td>0.00%</td>
<td>0.00%</td>
<td>0.00</td>
</tr>
<tr align="center">
<td>Google</td>
<td>1</td>
<td>5</td>
<td>1</td>
<td>3</td>
<td>50.00%</td>
<td>25.00%</td>
<td>33.33</td>
</tr>
<tr align="center">
<td>IBM</td>
<td>0</td>
<td>6</td>
<td>0</td>
<td>4</td>
<td>0.00%</td>
<td>0.00%</td>
<td>0.00</td>
</tr>
</tbody>
</table>
</header>
<div class="container">
<h2 align="center">Records</h2>
<table class="table table-hover" style="width:100%" height="950px">
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX2535</h3>
<a href="images/RCNX2535.JPG">
<img src="images/RCNX2535.JPG" alt="RCNX2535 - Animal" width="150px" height="150px"></a>
<h5> Animal</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX2535Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">TruePositive +1</span>
</a>
</div>
<div id="RCNX2535Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, outdoors, bird, animal, snow
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX2535Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX2535Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>water, bird, winter, sea, nature, reflection, lake, ocean, snow, beach, cold, river, dawn, light, landscape, no, person, wildlife, h2o, abstract, ice
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX2535Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX2535Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX2535IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX2535IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>
</div>
</div>
</div>
</div>
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX3319</h3>
<a href="images/RCNX3319.JPG">
<img src="images/RCNX3319.JPG" alt="RCNX3319 - Null" width="150px" height="150px"></a>
<h5> Null</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3319Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">FalsePositive +1</span>
</a>
</div>
<div id="RCNX3319Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, leisure, activities, adventure, flying, animal, bird, outdoors
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3319Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3319Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>winter, nature, sky, snow, light, abstract, landscape, cold, desktop, bird, ice, no, person, color, dawn, sea, water, moon, beach, sunset, sun
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3319Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3319Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3319IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3319IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>
</div>
</div>
</div>
</div>
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX3477</h3>
<a href="images/RCNX3477.JPG">
<img src="images/RCNX3477.JPG" alt="RCNX3477 - Animal" width="150px" height="150px"></a>
<h5> Animal</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3477Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX3477Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, outdoors, land, snow, winter
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3477Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX3477Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>sea, beach, winter, water, ocean, nature, snow, landscape, sunset, dawn, cold, sky, fog, seascape, light, ice, lake, sun, bird, frozen
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3477Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">TruePositive +1</span>
</a>
</div>
<div id="RCNX3477Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>animal
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3477IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX3477IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, gray, color
</div>
</div>
</div>
</div>
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX3478</h3>
<a href="images/RCNX3478.JPG">
<img src="images/RCNX3478.JPG" alt="RCNX3478 - Animal" width="150px" height="150px"></a>
<h5> Animal</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3478Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX3478Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, outdoors, weather, storm, snow, winter, blizzard
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3478Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX3478Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>winter, sea, beach, water, ocean, nature, snow, sunset, dawn, landscape, cold, fog, sky, light, lake, sun, seascape, ice, bird, frozen
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3478Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX3478Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3478IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX3478IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>spoor, nature, gray, color
</div>
</div>
</div>
</div>
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX3663</h3>
<a href="images/RCNX3663.JPG">
<img src="images/RCNX3663.JPG" alt="RCNX3663 - Null" width="150px" height="150px"></a>
<h5> Null</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3663Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">FalsePositive +1</span>
</a>
</div>
<div id="RCNX3663Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>flying, animal, bird, leisure, activities, adventure, outdoors, nature
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3663Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3663Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>winter, bird, snow, nature, beach, water, cold, landscape, sea, abstract, light, sky, ice, reflection, sunset, lake, dawn, ocean, color, wildlife
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3663Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">FalsePositive +1</span>
</a>
</div>
<div id="RCNX3663Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>animal, hat
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3663IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3663IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>spoor, nature
</div>
</div>
</div>
</div>
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX3844</h3>
<a href="images/RCNX3844.JPG">
<img src="images/RCNX3844.JPG" alt="RCNX3844 - Null" width="150px" height="150px"></a>
<h5> Null</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3844Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3844Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, outdoors, adventure, leisure, activities, ocean, water, sea
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3844Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3844Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>winter, sea, nature, beach, snow, sky, water, ocean, landscape, cold, light, dawn, sunset, bird, abstract, ice, no, person, lake, desktop, sun
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3844Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3844Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>hat
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3844IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3844IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature
</div>
</div>
</div>
</div>
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX3915</h3>
<a href="images/RCNX3915.JPG">
<img src="images/RCNX3915.JPG" alt="RCNX3915 - Null" width="150px" height="150px"></a>
<h5> Null</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3915Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">FalsePositive +1</span>
</a>
</div>
<div id="RCNX3915Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>bird, flying, animal, leisure, activities, adventure, nature, outdoors
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3915Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3915Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>winter, nature, snow, sky, landscape, cold, light, bird, abstract, ice, sea, dawn, water, sunset, beach, desktop, color, no, person, frozen, sun
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3915Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3915Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX3915IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX3915IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, gray, color
</div>
</div>
</div>
</div>
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX4092</h3>
<a href="images/RCNX4092.JPG">
<img src="images/RCNX4092.JPG" alt="RCNX4092 - Animal" width="150px" height="150px"></a>
<h5> Animal</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4092Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">TruePositive +1</span>
</a>
</div>
<div id="RCNX4092Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, outdoors, bird, animal, flying, landscape, scenery
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4092Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX4092Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>winter, snow, nature, water, sea, beach, cold, landscape, bird, ice, sky, ocean, sunset, dawn, light, lake, frozen, fog, no, person, reflection
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4092Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX4092Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4092IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">FalseNegative +1</span>
</a>
</div>
<div id="RCNX4092IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, gray, color
</div>
</div>
</div>
</div>
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX4219</h3>
<a href="images/RCNX4219.JPG">
<img src="images/RCNX4219.JPG" alt="RCNX4219 - Null" width="150px" height="150px"></a>
<h5> Null</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4219Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">FalsePositive +1</span>
</a>
</div>
<div id="RCNX4219Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, outdoors, bird, flying, animal
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4219Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX4219Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>winter, snow, nature, sky, landscape, bird, beach, cold, light, ice, sea, water, sunset, dawn, ocean, fog, color, silhouette, cloud, wind
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4219Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX4219Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4219IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX4219IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature
</div>
</div>
</div>
</div>
<tbody>
<tr>
<td width="50%" align="center">
<h3>ID: RCNX4288</h3>
<a href="images/RCNX4288.JPG">
<img src="images/RCNX4288.JPG" alt="RCNX4288 - Null" width="150px" height="150px"></a>
<h5> Null</h5>
</td>
<td width="50%">
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4288Amazon">
<b>Amazon:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX4288Amazon" class="collapse">
<div class="card-body">
<b>Tag(s): </b>nature, outdoors, land, ice, snow, plateau
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4288Clarifai">
<b>Clarifai:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX4288Clarifai" class="collapse">
<div class="card-body">
<b>Tag(s): </b>winter, snow, landscape, beach, sea, ice, nature, water, sky, cold, sunset, frozen, ocean, dawn, frost, sun, lake, no, person, travel, light
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4288Google">
<b>Google:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX4288Google" class="collapse">
<div class="card-body">
<b>Tag(s): </b>
</div>
</div>
</div>
</div>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="card-link" data-toggle="collapse" href="#RCNX4288IBM">
<b>IBM:</b>
<span class="badge badge-pill badge-primary">TrueNegative +1</span>
</a>
</div>
<div id="RCNX4288IBM" class="collapse">
<div class="card-body">
<b>Tag(s): </b>frozen, waterbody, nature, azure, color, gray, color
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html> | 52.76988 | 204 | 0.297153 |
2d71d237a020ea3b7657a8f6499f89f485a4ec3a | 121 | rs | Rust | src/runner.rs | hellolusk/worldlang | 443194a239b1ae2de73f4868efb8f68ca9018fa5 | [
"MIT"
] | 12 | 2021-02-07T23:30:11.000Z | 2021-09-29T23:39:03.000Z | src/runner.rs | hellolusk/worldlang | 443194a239b1ae2de73f4868efb8f68ca9018fa5 | [
"MIT"
] | null | null | null | src/runner.rs | hellolusk/worldlang | 443194a239b1ae2de73f4868efb8f68ca9018fa5 | [
"MIT"
] | 2 | 2022-02-26T14:58:22.000Z | 2022-03-08T08:29:30.000Z | pub use super::transpile;
pub use super::IS_QUIET;
pub fn is_quiet()->bool {
unsafe { IS_QUIET }
}
pub mod filesys; | 15.125 | 25 | 0.68595 |
86f84f76960a59a42c8bd8b851ac0e27032d72a4 | 3,345 | go | Go | service.go | csstaub/gas-web | 15657841c84f079aa7572e18f2b8578ccf41c241 | [
"Apache-2.0"
] | 1 | 2017-12-19T06:24:50.000Z | 2017-12-19T06:24:50.000Z | service.go | csstaub/gas-web | 15657841c84f079aa7572e18f2b8578ccf41c241 | [
"Apache-2.0"
] | null | null | null | service.go | csstaub/gas-web | 15657841c84f079aa7572e18f2b8578ccf41c241 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2016, Cedric Staub <css@css.bio>
//
// 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 main
import (
"database/sql"
"fmt"
"log"
"net/http"
"os"
"path"
"runtime"
"bitbucket.org/liamstask/goose/lib/goose"
"github.com/gorilla/mux"
)
const (
archiveFileLimit = 5000
)
var (
logger = log.New(os.Stderr, "", 0)
)
func init() {
devNull, err := os.Open("/dev/null")
if err != nil {
panic(err)
}
os.Stdout = devNull
}
func getAddr() string {
port := os.Getenv("PORT")
if port == "" {
port = "8080"
}
return fmt.Sprintf(":%s", port)
}
type headerWrapper struct {
handler func(resp http.ResponseWriter, req *http.Request)
headers map[string]string
}
func (h headerWrapper) Handler(handler http.Handler) http.Handler {
return headerWrapper{
handler: handler.ServeHTTP,
headers: h.headers,
}
}
func (h headerWrapper) HandleFunc(handler func(resp http.ResponseWriter, req *http.Request)) func(resp http.ResponseWriter, req *http.Request) {
return headerWrapper{
handler: handler,
headers: h.headers,
}.ServeHTTP
}
func (h headerWrapper) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
for k, v := range h.headers {
resp.Header().Set(k, v)
}
h.handler(resp, req)
}
func main() {
addr := getAddr()
db, err := newSQLDatabase()
if err != nil {
logError("unable to connect to database", err)
os.Exit(1)
}
migrate(db.(*sqlDatabase).DB)
w := &worker{
db: db,
reqs: make(chan string, 10),
}
h := &headerWrapper{
headers: map[string]string{
"Content-Security-Policy": "default-src 'self' cdnjs.cloudflare.com;",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "deny",
"X-XSS-Protection": "1; mode=block",
"Cache-Control": "max-age:7200",
}}
r := mux.NewRouter()
r.HandleFunc("/results/github.com/{user:[a-zA-Z0-9-_.]+}/{repo:[a-zA-Z0-9-_.]+}", h.HandleFunc(w.serveResults)).Methods("GET")
r.PathPrefix("/").Handler(h.Handler(http.FileServer(http.Dir("assets/dist"))))
for i := 0; i < runtime.NumCPU()*2; i++ {
go w.run()
}
logger.Printf("listening on %s", addr)
if err := http.ListenAndServe(addr, r); err != nil {
logger.Fatal(err)
}
}
func migrate(db *sql.DB) {
migrations := path.Join("db/migrations")
gooseConf := goose.DBConf{
MigrationsDir: migrations,
Env: "gas-web",
Driver: goose.DBDriver{
Name: "mysql",
Import: "github.com/go-sql-driver/mysql",
Dialect: &goose.MySqlDialect{},
},
}
desiredVersion, err := goose.GetMostRecentDBVersion(migrations)
if err != nil {
logger.Fatalf("unable to run migrations: %s", err)
}
err = goose.RunMigrationsOnDb(&gooseConf, migrations, desiredVersion, db)
if err != nil {
logger.Fatalf("unable to run migrations: %s", err)
}
logger.Printf("ran migrations up to version %d", desiredVersion)
}
| 23.229167 | 144 | 0.66846 |
56b0185817263a3f8d3ee4cb6c1c70624e07d334 | 6,442 | html | HTML | landau.html | RickSanas/RM-VEICULOS-ESPECIAIS | 063a9e0dd5a6877bc5b4f5bd26f70b9feee92983 | [
"MIT"
] | null | null | null | landau.html | RickSanas/RM-VEICULOS-ESPECIAIS | 063a9e0dd5a6877bc5b4f5bd26f70b9feee92983 | [
"MIT"
] | null | null | null | landau.html | RickSanas/RM-VEICULOS-ESPECIAIS | 063a9e0dd5a6877bc5b4f5bd26f70b9feee92983 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html>
<head>
<title>VENDAS-LANDAU</title>
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@300;400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="Style/style.css">
<link rel="shortcut icon " type="image-x/png" href="imagens/logo.ico">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
</head>
<body>
<header style="border-bottom: 4px solid #B21E1E">
<div class="container">
<div class="logo">
<img src="imagens/logo.jpg">
</div><!-- logo -->
<div class="menu-desktop">
<ul>
<li><a href="index.html" >home</a></li>
<li><a href="vendas.html"style="color:#EB2D2D;">venda</a></li>
<li><a href="sobrenos.html">sobre</a></li>
<li><a href="index.html">contato</a></li>
</ul>
</div><!-- menu-desktop -->
<div class="menu-mobile">
<ul>
<li><a href=" index.html" >home</a></li>
<li><a href="vendas.html" style="color:#EB2D2D;">venda</a></li>
<li><a href="sobrenos.html">sobre</a></li>
<li><a href="">contato</a></li>
</ul>
</div><!-- menu-mobile-->
<div class="clear"></div><!-- clear -->
</div><!-- container -->
</header>
<section class="veiculo-view">
<div class="container">
<div class="galeria-single-car">
<div class="orientation-brad">
<a href="index.html">HOME</a> <span>></span>
<a href="vendas.html">VENDAS</a> <span>></span>
<a href="" style="color:#EB2D2D;">Landau 1964</a>
</div><!-- orientation-brad -->
<div class="img-principal" style="background-image: url('imagens/landau64.jpg');"></div><!-- img-principal -->
<div class="cover-controll">
<div class="control-left"></div><!-- left -->
<div class="control-right"></div><!-- right -->
<div class="scroll-galeria">
<div class="scroll-galeria-wraper">
<div class="single-img-wraper" style="background-color: #aeb5b0;">
<div class="single-img-galeria3">
</div><!-- single-img-galeria -->
</div><!-- single-img-wraper -->
<div class="single-img-wraper">
<div class="single-img-galeria3">
</div><!-- single-img-galeria -->
</div><!-- single-img-wraper -->
<div class="single-img-wraper">
<div class="single-img-galeria3">
</div><!-- single-img-galeria -->
</div><!-- single-img-wraper -->
<div class="single-img-wraper">
<div class="single-img-galeria3">
</div><!-- single-img-galeria -->
</div><!-- single-img-wraper -->
<div class="single-img-wraper">
<div class="single-img-galeria3">
</div><!-- single-img-galeria -->
</div><!-- single-img-wraper -->
<div class="single-img-wraper">
<div class="single-img-galeria3">
</div><!-- single-img-galeria -->
</div><!-- single-img-wraper -->
</div> <!-- scroll-galeria-wraper -->
</div><!-- cover-controll -->
</div><!-- scroll-galeria -->
</div><!-- galeria-single-car -->
<div class="description-car">
<h1> Landau 1964</h1>
<h3>R$ 97.000,00</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ante lacus, semper sit amet porttitor quis, ultrices ut velit. Proin a nibh pharetra, laoreet eros non, feugiat tellus.</p>
<a href="" class="boton">Entre em contato</a>
</div><!-- description-car -->
</div><!-- container -->
</section><!-- veiculo-view -->
<section class="contato">
<div class="back-line">
<div class="line"></div><!-- line -->
<h2>Contato</h2>
</div><!-- back-line -->
<div class="container">
<form>
<div class="input-geral w-100">
<input type="text" name="" placeholder="*Nome" required>
</div><!-- w-100 -->
<div class="input-geral w-50">
<input type="text" name="" placeholder="*E-mail" required>
</div><!-- w-50 -->
<div class="input-geral w-50">
<input type="text" name="" placeholder="*Telefone" required>
</div><!-- w-50 -->
<div class="input-geral w-100" >
<textarea placeholder="*Mensagem" required></textarea>
</div><!-- w-100 -->
<div class="input-geral w-100">
<input type="submit" value="Enviar" class="boton">
</div><!-- w-50 -->
<div class="clear"></div><!-- clear -->
</form>
</div><!-- container -->
</section><!-- contato -->
<section class="veiculos-destaque">
<div class="back-line">
<div class="line"></div><!-- line -->
<h2>Veículos em destaque</h2>
</div><!-- back-line -->
<div class="container">
<div class="box-exemplar">
<div class="exemplar-img" style="background-image: url(imagens/belair.jpg);"></div><!-- exemplar-img -->
<div class="informe-car">
<h2>Bel air</h2>
<p>1.6 V.8, Gasolina, 2P, Manual1969</p>
<a href="" class="boton"> Mais detalhes</a>
</div><!-- informe-car -->
</div><!-- box-exemplar -->
<div class="box-exemplar">
<div class="exemplar-img" style="background-image: url(imagens/fordconsul.jpg);"></div><!-- exemplar-img -->
<div class="informe-car">
<h2>Ford Consul</h2>
<p>1.6 V.8, Gasolina, 2P, Manual1969</p>
<a href="" class="boton"> Mais detalhes</a>
</div><!-- informe-car -->
</div><!-- box-exemplar -->
<div class="box-exemplar">
<div class="exemplar-img" style="background-image: url(imagens/mustang.jpg);"></div><!-- exemplar-img -->
<div class="informe-car">
<h2>Mustang 1964</h2>
<p>1.6 V.8, Gasolina, 2P, Manual1969</p>
<a href="" class="boton"> Mais detalhes</a>
</div><!-- informe-car -->
</div><!-- box-exemplar -->
</div><!-- container -->
</section><!-- veiculos-destaque -->
<footer>
<div class="container">
<ul>
<li><a href="index.html">home</a></li>
<li><a href="vendas.html" style="color:#EB2D2D;">venda</a></li>
<li><a href="sobrenos.html">sobre</a></li>
<li><a href="index.html">contato</a></li>
</ul>
<p>Todos os direitos reservados a <strong> Rick_Sanas</strong></p>
</div><!-- container -->
</footer>
</body>
| 31.271845 | 194 | 0.538808 |
4ef74fde660065e56ce645a3969660105c1063f3 | 1,785 | ps1 | PowerShell | Helpers/azurestoragehelper.ps1 | eosfor/cloudmgmt | 6e705bd377caa3dc28763fc69daa8f8ce8a591e7 | [
"MIT"
] | 1 | 2019-02-07T13:59:10.000Z | 2019-02-07T13:59:10.000Z | Helpers/azurestoragehelper.ps1 | eosfor/cloudmgmt | 6e705bd377caa3dc28763fc69daa8f8ce8a591e7 | [
"MIT"
] | null | null | null | Helpers/azurestoragehelper.ps1 | eosfor/cloudmgmt | 6e705bd377caa3dc28763fc69daa8f8ce8a591e7 | [
"MIT"
] | null | null | null | function Convert-AzureData {
[CmdletBinding()]
param (
$azureRows
)
begin {
}
process {
$azureRows | % {
$r = $_
$r.Properties | % {
$currentProp = $_
$o = [hashtable]::new()
$currentProp.Keys | % {
$o[$_] = ($currentProp)[$_].PropertyAsObject
}
$o["PartitionKey"] = $r.PartitionKey
$o["RowKey"] = $r.RowKey
$o["Timestamp"] = $r.Timestamp
[pscustomobject]$o
}
}
}
end {
}
}
function Get-AzureTableData {
[CmdletBinding()]
param (
$RGname = "trainingRG01",
$StorageAccountName = "testsstore001",
$TableName = "CMDB"
)
begin {
$storageAcct = Get-AzureRmStorageAccount -ResourceGroupName $RGname -Name $StorageAccountName
$tbl = Get-AzureStorageTable -Name $TableName -Context $storageAcct.Context
}
process {
$q1 = [Microsoft.WindowsAzure.Storage.Table.TableQuery]::new()
$t1 = [Microsoft.WindowsAzure.Storage.Table.TableContinuationToken]::new()
$res = $tbl.CloudTable.ExecuteQuerySegmentedAsync($q1, $t1).Result
Convert-AzureData -azureRows $res
}
end {
}
}
function Get-AzureCMDBData {
[CmdletBinding()]
param (
[switch]$BU,
[switch]$DEPT
)
begin {
}
process {
if($BU.IsPresent) {
[CMDBCache]::Instance.cache.DB | ? PartitionKey -EQ "BU"
return
}
if($DEPT.IsPresent) {
[CMDBCache]::Instance.cache.DB | ? PartitionKey -EQ "DEPT"
return
}
[CMDBCache]::Instance.cache.DB
}
end {
}
} | 22.037037 | 101 | 0.505882 |
16c2e45b1de6fd0c90d1769203b1a7978bd89544 | 1,217 | ps1 | PowerShell | automatic/kui/update.ps1 | Richienb/chocolatey-packages | 1bd6bd4f7b9a3e76948be078fb57729c4ede113e | [
"MIT"
] | 2 | 2021-07-15T16:36:39.000Z | 2022-03-26T01:07:51.000Z | automatic/kui/update.ps1 | Richienb/chocolatey-packages | 1bd6bd4f7b9a3e76948be078fb57729c4ede113e | [
"MIT"
] | 210 | 2019-11-22T21:05:45.000Z | 2022-03-28T19:57:52.000Z | automatic/kui/update.ps1 | Richienb/chocolatey-packages | 1bd6bd4f7b9a3e76948be078fb57729c4ede113e | [
"MIT"
] | 10 | 2020-06-24T22:49:27.000Z | 2021-12-13T09:01:05.000Z | import-module au
$ErrorActionPreference = 'STOP'
$domain = 'https://github.com'
$releases = "${domain}/IBM/kui/releases/latest"
$re64 = '(K.+win32-x64\.zip)'
$reversion = '(v)(?<Version>([\d]+\.[\d]+\.[\d]+))'
function global:au_BeforeUpdate {
Get-RemoteFiles -Purge -NoSuffix
}
function global:au_SearchReplace {
@{
".\README.md" = @{
"$($reversion)" = "`${1}$($Latest.Version)"
}
"$($Latest.PackageName).nuspec" = @{
"$($reversion)" = "`${1}$($Latest.Version)"
}
".\legal\VERIFICATION.txt" = @{
"(Checksum64:\s)(.+)" = "`${1}$($Latest.Checksum64)"
"$($reversion)" = "`${1}$($Latest.Version)"
}
}
}
function global:au_GetLatest {
$downloadPage = Invoke-WebRequest -UseBasicParsing -Uri $releases
$url64 = $downloadPage.links | where-object href -match $re64 | select-object -expand href | select-object -first 1 | foreach-object { $domain + $_ }
$filename64 = $url64 -split '/' | select-object -last 1
$version = $downloadPage.Content -match $reversion | foreach-object { $Matches.Version }
return @{
FileName64 = $filename64
Url64 = $url64
Version = $version
}
}
update -ChecksumFor none -NoReadme
| 25.354167 | 156 | 0.601479 |
0edacc51d715bebabe2d59ed14fd46944aae39c4 | 31,512 | c | C | server/mongoose.c | docfate111/dial-reference | 274787922a7656235ba3c01771120cef07f009e9 | [
"BSD-2-Clause"
] | 222 | 2015-11-11T18:35:22.000Z | 2022-03-29T16:24:45.000Z | server/mongoose.c | docfate111/dial-reference | 274787922a7656235ba3c01771120cef07f009e9 | [
"BSD-2-Clause"
] | 24 | 2016-05-18T00:51:18.000Z | 2021-08-09T04:31:06.000Z | server/mongoose.c | docfate111/dial-reference | 274787922a7656235ba3c01771120cef07f009e9 | [
"BSD-2-Clause"
] | 93 | 2015-12-14T23:00:18.000Z | 2022-03-25T03:39:08.000Z | // Copyright (c) 2004-2010 Sergey Lyubka
//
// 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.
#define _GNU_SOURCE 1
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
#include <time.h>
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#ifndef BUFSIZ
#define BUFSIZ 4096
#endif
#ifndef REASON_SIZ
/* REASON_SIZ must be non-trivially smaller than BUFSIZ. */
#define REASON_SIZ 2048
#endif
#define MAX_REQUEST_SIZE 4096
#define NUM_THREADS 4
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <stdint.h>
#include <inttypes.h>
#include <netdb.h>
#include <unistd.h>
#include <pthread.h>
#define ERRNO errno
#define INVALID_SOCKET (-1)
typedef int SOCKET;
#include "mongoose.h"
#define MONGOOSE_VERSION "3.0"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
#if defined(DEBUG)
#define DEBUG_TRACE(x) do { \
flockfile(stdout); \
printf("*** %lu.%p.%s.%d: ", \
(unsigned long) time(NULL), (void *) pthread_self(), \
__func__, __LINE__); \
printf x; \
putchar('\n'); \
fflush(stdout); \
funlockfile(stdout); \
} while (0)
#else
#define DEBUG_TRACE(x)
#endif // DEBUG
typedef void * (*mg_thread_func_t)(void *);
// Describes a socket which was accept()-ed by the master thread and queued for
// future handling by the worker thread.
struct socket {
SOCKET sock; // Listening socket
struct sockaddr_in local_addr; // Local socket address
struct sockaddr_in remote_addr; // Remote socket address
};
struct mg_context {
volatile int stop_flag; // Should we stop event loop
mg_callback_t user_callback; // User-defined callback function
void *user_data; // User-defined data
SOCKET local_socket;
struct sockaddr_in local_address;
volatile int num_threads; // Number of threads
pthread_mutex_t mutex; // Protects (max|num)_threads
pthread_cond_t cond; // Condvar for tracking workers terminations
struct socket queue[20]; // Accepted sockets
volatile int sq_head; // Head of the socket queue
volatile int sq_tail; // Tail of the socket queue
pthread_cond_t sq_full; // Singaled when socket is produced
pthread_cond_t sq_empty; // Signaled when socket is consumed
};
struct mg_connection {
struct mg_request_info request_info;
struct mg_context *ctx;
struct socket client; // Connected client
time_t birth_time; // Time connection was accepted
int64_t num_bytes_sent; // Total bytes sent to client
int64_t content_len; // Content-Length header value
int64_t consumed_content; // How many bytes of content is already read
char *buf; // Buffer for received data
int buf_size; // Buffer size
int request_len; // Size of the request + headers in a buffer
int data_len; // Total size of data in a buffer
};
static void *call_user(struct mg_connection *conn, enum mg_event event) {
conn->request_info.user_data = conn->ctx->user_data;
return conn->ctx->user_callback == NULL ? NULL :
conn->ctx->user_callback(event, conn, &conn->request_info);
}
// Print error message to the opened error log stream.
static void cry(struct mg_connection *conn, const char *fmt, ...) {
char buf[BUFSIZ];
va_list ap;
va_start(ap, fmt);
(void) vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
// Do not lock when getting the callback value, here and below.
// I suppose this is fine, since function cannot disappear in the
// same way string option can.
conn->request_info.log_message = buf;
if (call_user(conn, MG_EVENT_LOG) == NULL) {
DEBUG_TRACE(("[%s]", buf));
}
conn->request_info.log_message = NULL;
}
// Return fake connection structure. Used for logging, if connection
// is not applicable at the moment of logging.
static struct mg_connection *fc(struct mg_context *ctx) {
static struct mg_connection fake_connection;
fake_connection.ctx = ctx;
return &fake_connection;
}
const char *mg_version(void) {
return MONGOOSE_VERSION;
}
static int lowercase(const char *s) {
return tolower(* (const unsigned char *) s);
}
static int mg_strcasecmp(const char *s1, const char *s2) {
int diff;
do {
diff = lowercase(s1++) - lowercase(s2++);
} while (diff == 0 && s1[-1] != '\0');
return diff;
}
// Like snprintf(), but never returns negative value, or the value
// that is larger than a supplied buffer.
// Thanks to Adam Zeldis to pointing snprintf()-caused vulnerability
// in his audit report.
static int mg_vsnprintf(struct mg_connection *conn, char *buf, size_t buflen,
const char *fmt, va_list ap) {
int n;
if (buflen == 0)
return 0;
n = vsnprintf(buf, buflen, fmt, ap);
if (n < 0) {
cry(conn, "vsnprintf error");
n = 0;
} else if (n >= (int) buflen) {
cry(conn, "truncating vsnprintf buffer: [%.*s]",
n > 200 ? 200 : n, buf);
n = (int) buflen - 1;
}
buf[n] = '\0';
return n;
}
static int mg_snprintf(struct mg_connection *conn, char *buf, size_t buflen,
const char *fmt, ...) {
va_list ap;
int n;
va_start(ap, fmt);
n = mg_vsnprintf(conn, buf, buflen, fmt, ap);
va_end(ap);
return n;
}
// Skip the characters until one of the delimiters characters found.
// 0-terminate resulting word. Skip the delimiter and following whitespaces if any.
// Advance pointer to buffer to the next word. Return found 0-terminated word.
static char *skip_quoted(char **buf, const char *delimiters, const char *whitespace) {
char *p, *begin_word, *end_word, *end_whitespace;
begin_word = *buf;
end_word = begin_word + strcspn(begin_word, delimiters);
if (*end_word == '\0') {
*buf = end_word;
} else {
end_whitespace = end_word + 1 + strspn(end_word + 1, whitespace);
for (p = end_word; p < end_whitespace; p++) {
*p = '\0';
}
*buf = end_whitespace;
}
return begin_word;
}
// Simplified version of skip_quoted without quote char
// and whitespace == delimiters
static char *skip(char **buf, const char *delimiters) {
return skip_quoted(buf, delimiters, delimiters);
}
// Return HTTP header value, or NULL if not found.
static const char *get_header(const struct mg_request_info *ri,
const char *name) {
int i;
for (i = 0; i < ri->num_headers; i++)
if (!mg_strcasecmp(name, ri->http_headers[i].name))
return ri->http_headers[i].value;
return NULL;
}
const char *mg_get_header(const struct mg_connection *conn, const char *name) {
return get_header(&conn->request_info, name);
}
static const char *suggest_connection_header(const struct mg_connection *conn) {
return "close";
}
void mg_send_http_error(struct mg_connection *conn, int status,
const char *reason, const char *fmt, ...) {
char buf[BUFSIZ];
va_list ap;
int len;
conn->request_info.status_code = status;
buf[0] = '\0';
len = 0;
/* Errors 1xx, 204 and 304 MUST NOT send a body */
if (status > 199 && status != 204 && status != 304) {
// If reason is really long, buf will have been completely filled up.
// Then buf[len] = '\n' will replace the trailing NULL with '\n' and kill buf
// as a string. Plus the next call to mg_vsnprintf() will be writing to an
// invalid location and negative (gigantic because size_t is unsigned) size.
//
// Given how this function is called, the safest thing to do is probably to
// require reason remains relatively short and will get truncated.
len = mg_snprintf(conn, buf, REASON_SIZ, "Error %d: %s", status, reason);
cry(conn, "%s", buf);
buf[len++] = '\n';
va_start(ap, fmt);
len += mg_vsnprintf(conn, buf + len, sizeof(buf) - len, fmt, ap);
va_end(ap);
}
DEBUG_TRACE(("[%s]", buf));
mg_printf(conn, "HTTP/1.1 %d %s\r\n"
"Content-Type: text/plain\r\n"
"Content-Length: %d\r\n"
"Connection: %s\r\n\r\n", status, reason, len,
suggest_connection_header(conn));
conn->num_bytes_sent += mg_printf(conn, "%s", buf);
}
/**
* Create a new thread.
*
* @param ctx Mongoose context.
* @param func thread function.
* @param param thread function arguments.
* @return the return value of pthread_create.
*/
static int start_thread(struct mg_context *ctx, mg_thread_func_t func,
void *param) {
pthread_t thread_id;
pthread_attr_t attr;
int retval;
(void) pthread_attr_init(&attr);
(void) pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
// TODO(lsm): figure out why mongoose dies on Linux if next line is enabled
// (void) pthread_attr_setstacksize(&attr, sizeof(struct mg_connection) * 5);
if ((retval = pthread_create(&thread_id, &attr, func, param)) != 0) {
cry(fc(ctx), "%s: %s", __func__, strerror(retval));
}
return retval;
}
static void set_non_blocking_mode(SOCKET sock) {
int flags;
flags = fcntl(sock, F_GETFL, 0);
(void) fcntl(sock, F_SETFL, flags | O_NONBLOCK);
}
// Write data to the IO channel - opened file descriptor, socket or SSL
// descriptor. Return number of bytes written.
static int64_t push(FILE *fp, SOCKET sock, const char *buf, int64_t len) {
int64_t sent;
int n, k;
sent = 0;
while (sent < len) {
/* How many bytes should we send in this iteration */
k = ((len - sent) > INT_MAX) ? INT_MAX : (int) (len - sent);
if (fp != NULL) {
n = fwrite(buf + sent, 1, (size_t)k, fp);
if (ferror(fp))
n = -1;
} else {
n = send(sock, buf + sent, (size_t)k, 0);
}
if (n < 0)
break;
sent += n;
}
return sent;
}
// Read from IO channel - opened file descriptor, socket, or SSL descriptor.
// Return number of bytes read.
static int pull(SOCKET sock, char *buf, int len) {
int nread;
nread = recv(sock, buf, (size_t) len, 0);
return nread;
}
int mg_read(struct mg_connection *conn, void *buf, size_t len) {
int n, buffered_len, nread;
const char *buffered;
assert((conn->content_len == -1 && conn->consumed_content == 0) ||
conn->consumed_content <= conn->content_len);
DEBUG_TRACE(("%p %zu %" PRId64 " %" PRId64, buf, len,
conn->content_len, conn->consumed_content));
nread = 0;
if (conn->consumed_content < conn->content_len) {
// Adjust number of bytes to read.
int64_t to_read = conn->content_len - conn->consumed_content;
if (to_read < (int64_t) len) {
len = (int) to_read;
}
// How many bytes of data we have buffered in the request buffer?
buffered = conn->buf + conn->request_len + conn->consumed_content;
buffered_len = conn->data_len - conn->request_len;
assert(buffered_len >= 0);
// Return buffered data back if we haven't done that yet.
if (conn->consumed_content < (int64_t) buffered_len) {
buffered_len -= (int) conn->consumed_content;
if (len < (size_t) buffered_len) {
buffered_len = len;
}
memcpy(buf, buffered, (size_t)buffered_len);
len -= buffered_len;
buf = (char *) buf + buffered_len;
conn->consumed_content += buffered_len;
nread = buffered_len;
}
// We have returned all buffered data. Read new data from the remote socket.
while (len > 0) {
n = pull(conn->client.sock, (char *) buf, (int) len);
if (n <= 0) {
break;
}
buf = (char *) buf + n;
conn->consumed_content += n;
nread += n;
len -= n;
}
}
return nread;
}
int mg_write(struct mg_connection *conn, const void *buf, size_t len) {
return (int) push(NULL, conn->client.sock, (const char *) buf, (int64_t) len);
}
int mg_printf(struct mg_connection *conn, const char *fmt, ...) {
char buf[BUFSIZ];
int len;
va_list ap;
va_start(ap, fmt);
len = mg_vsnprintf(conn, buf, sizeof(buf), fmt, ap);
va_end(ap);
return mg_write(conn, buf, (size_t)len);
}
// URL-decode input buffer into destination buffer.
// 0-terminate the destination buffer. Return the length of decoded data.
// form-url-encoded data differs from URI encoding in a way that it
// uses '+' as character for space, see RFC 1866 section 8.2.1
// http://ftp.ics.uci.edu/pub/ietf/html/rfc1866.txt
static size_t url_decode(const char *src, size_t src_len, char *dst,
size_t dst_len, int is_form_url_encoded) {
size_t i, j;
int a, b;
#define HEXTOI(x) (isdigit(x) ? x - '0' : x - 'W')
for (i = j = 0; i < src_len && j < dst_len - 1; i++, j++) {
if (src[i] == '%' && (i + 2 < src_len) &&
isxdigit(* (const unsigned char *) (src + i + 1)) &&
isxdigit(* (const unsigned char *) (src + i + 2)))
{
a = tolower(* (const unsigned char *) (src + i + 1));
b = tolower(* (const unsigned char *) (src + i + 2));
dst[j] = (char) ((HEXTOI(a) << 4) | HEXTOI(b));
i += 2;
} else if (is_form_url_encoded && src[i] == '+') {
dst[j] = ' ';
} else {
dst[j] = src[i];
}
}
dst[j] = '\0'; /* Null-terminate the destination */
return j;
}
// Check whether full request is buffered. Return:
// -1 if request is malformed
// 0 if request is not yet fully buffered
// >0 actual request length, including last \r\n\r\n
static int get_request_len(const char *buf, int buflen) {
const char *s, *e;
int len = 0;
DEBUG_TRACE(("buf: %p, len: %d", buf, buflen));
for (s = buf, e = s + buflen - 1; len <= 0 && s < e; s++)
// Control characters are not allowed but >=128 is.
if (!isprint(* (const unsigned char *) s) && *s != '\r' &&
*s != '\n' && * (const unsigned char *) s < 128) {
// FIXME: Why doesn't this immediately return as malformed?
len = -1;
} else if (s[0] == '\n' && s[1] == '\n') {
len = (int) (s - buf) + 2;
} else if (s[0] == '\n' && &s[1] < e &&
s[1] == '\r' && s[2] == '\n') {
len = (int) (s - buf) + 3;
}
return len;
}
// Protect against directory disclosure attack by removing '..',
// excessive '/' and '\' characters
static void remove_double_dots_and_double_slashes(char *s) {
char *p = s;
while (*s != '\0') {
*p++ = *s++;
if (s[-1] == '/' || s[-1] == '\\') {
// Skip all following slashes and backslashes
while (*s == '/' || *s == '\\') {
s++;
}
// Skip all double-dots
while (*s == '.' && s[1] == '.') {
s += 2;
}
}
}
*p = '\0';
}
// Parse HTTP headers from the given buffer, advance buffer to the point
// where parsing stopped.
static void parse_http_headers(char **buf, struct mg_request_info *ri) {
int i;
for (i = 0; i < (int) ARRAY_SIZE(ri->http_headers); i++) {
ri->http_headers[i].name = skip_quoted(buf, ":", " ");
ri->http_headers[i].value = skip(buf, "\r\n");
if (ri->http_headers[i].name[0] == '\0')
break;
ri->num_headers = i + 1;
}
}
static int is_valid_http_method(const char *method) {
fprintf(stderr, "Received HTTP method %s\n", method);
return !strcmp(method, "GET") || !strcmp(method, "POST") ||
!strcmp(method, "DELETE") || !strcmp(method, "OPTIONS");
}
// Parse HTTP request, fill in mg_request_info structure.
static int parse_http_request(char *buf, struct mg_request_info *ri) {
int status = 0;
// RFC says that all initial whitespaces should be ingored
while (*buf != '\0' && isspace(* (unsigned char *) buf)) {
buf++;
}
ri->request_method = skip(&buf, " ");
ri->uri = skip(&buf, " ");
ri->http_version = skip(&buf, "\r\n");
if (is_valid_http_method(ri->request_method) &&
strncmp(ri->http_version, "HTTP/", 5) == 0) {
ri->http_version += 5; /* Skip "HTTP/" */
parse_http_headers(&buf, ri);
status = 1;
}
return status;
}
// Keep reading the input from socket sock
// into buffer buf, until \r\n\r\n appears in the buffer (which marks the end
// of HTTP request). Buffer buf may already have some data. The length of the
// data is stored in nread. Upon every read operation, increase nread by the
// number of bytes read.
static int read_request(SOCKET sock, char *buf, int bufsiz,
int *nread) {
int n, request_len;
request_len = 0;
while (*nread < bufsiz && request_len == 0) {
n = pull(sock, buf + *nread, bufsiz - *nread);
if (n <= 0) {
break;
} else {
*nread += n;
request_len = get_request_len(buf, *nread);
}
}
return request_len;
}
// This is the heart of the Mongoose's logic.
// This function is called when the request is read, parsed and validated,
// and Mongoose must decide what action to take: serve a file, or
// a directory, or call embedded function, etcetera.
static void handle_request(struct mg_connection *conn) {
struct mg_request_info *ri = &conn->request_info;
int uri_len;
if ((conn->request_info.query_string = strchr(ri->uri, '?')) != NULL) {
* conn->request_info.query_string++ = '\0';
}
uri_len = strlen(ri->uri);
(void) url_decode(ri->uri, (size_t)uri_len, ri->uri, (size_t)(uri_len + 1), 0);
remove_double_dots_and_double_slashes(ri->uri);
DEBUG_TRACE(("%s", ri->uri));
if (call_user(conn, MG_NEW_REQUEST) == NULL) {
mg_send_http_error(conn, 404, "Not Found", "%s", "File not found");
}
}
static void close_all_listening_sockets(struct mg_context *ctx) {
(void) close(ctx->local_socket);
}
// only reports address of the first listening socket
int mg_get_listen_addr(struct mg_context *ctx,
struct sockaddr *addr, socklen_t *addrlen) {
size_t len = sizeof(ctx->local_address);
if (*addrlen < len) return 0;
*addrlen = len;
memcpy(addr, &ctx->local_address, len);
return 1;
}
static int set_ports_option(struct mg_context *ctx, int port) {
int reuseaddr = 1, success = 1;
socklen_t sock_len = sizeof(ctx->local_address);
// MacOS needs that. If we do not zero it, subsequent bind() will fail.
memset(&ctx->local_address, 0, sock_len);
ctx->local_address.sin_family = AF_INET;
ctx->local_address.sin_port = htons((uint16_t) port);
ctx->local_address.sin_addr.s_addr = htonl(INADDR_ANY);
struct timeval tv;
tv.tv_sec = 0;
tv.tv_usec = 500 * 1000;
// TODO This code calls close(INVALID_SOCKET), even though close expects positive file descriptors.
// Not sure what the behavior is as a result, might be fine.
if ((ctx->local_socket = socket(PF_INET, SOCK_STREAM, 6)) == INVALID_SOCKET ||
setsockopt(ctx->local_socket, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, sizeof(reuseaddr)) != 0 ||
setsockopt(ctx->local_socket, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) != 0 ||
bind(ctx->local_socket, (const struct sockaddr *) &ctx->local_address, sock_len) != 0 ||
// TODO(steineldar): Replace 20 (max socket backlog len in connections).
listen(ctx->local_socket, 20) != 0) {
close(ctx->local_socket);
cry(fc(ctx), "%s: cannot bind to port %d: %s", __func__,
port, strerror(ERRNO));
success = 0;
} else if (getsockname(ctx->local_socket, (struct sockaddr *) &ctx->local_address, &sock_len)) {
close(ctx->local_socket);
cry(fc(ctx), "%s: %s", __func__, strerror(ERRNO));
success = 0;
}
if (!success) {
ctx->local_socket = INVALID_SOCKET;
close_all_listening_sockets(ctx);
}
return success;
}
static void reset_per_request_attributes(struct mg_connection *conn) {
struct mg_request_info *ri = &conn->request_info;
ri->request_method = ri->uri = ri->http_version = NULL;
ri->num_headers = 0;
ri->status_code = -1;
conn->num_bytes_sent = conn->consumed_content = 0;
conn->content_len = -1;
conn->request_len = conn->data_len = 0;
}
static void close_socket_gracefully(SOCKET sock) {
char buf[BUFSIZ];
int n;
// Send FIN to the client
(void) shutdown(sock, SHUT_WR);
set_non_blocking_mode(sock);
// Read and discard pending data. If we do not do that and close the
// socket, the data in the send buffer may be discarded. This
// behaviour is seen on Windows, when client keeps sending data
// when server decide to close the connection; then when client
// does recv() it gets no data back.
do {
n = pull(sock, buf, sizeof(buf));
} while (n > 0);
// Now we know that our FIN is ACK-ed, safe to close
(void) close(sock);
}
static void close_connection(struct mg_connection *conn) {
if (conn->client.sock != INVALID_SOCKET) {
close_socket_gracefully(conn->client.sock);
}
}
static void discard_current_request_from_buffer(struct mg_connection *conn) {
int buffered_len;
int64_t remaining = 0, pull_len = 0, count = 0;
char discard_buffer[16384];
buffered_len = conn->data_len - conn->request_len;
assert(buffered_len >= 0);
// If there was no specified Content-Length header, then there's no way for
// us to know how much more data needs to be discarded.
//
// Otherwise keep pull()-ing content until we consume the full content length.
if (conn->content_len != -1 && conn->consumed_content < conn->content_len) {
remaining = conn->content_len - conn->consumed_content;
while (remaining > 0) {
pull_len = (remaining < sizeof(discard_buffer)) ? remaining : sizeof(discard_buffer);
count = mg_read(conn, discard_buffer, pull_len);
if (count <= 0) {
break;
}
remaining -= count;
}
}
}
static void process_new_connection(struct mg_connection *conn) {
struct mg_request_info *ri = &conn->request_info;
const char *cl;
reset_per_request_attributes(conn);
// If next request is not pipelined, read it in
if ((conn->request_len = get_request_len(conn->buf, conn->data_len)) == 0) {
conn->request_len = read_request(conn->client.sock,
conn->buf, conn->buf_size, &conn->data_len);
}
assert(conn->data_len >= conn->request_len);
if (conn->request_len == 0 && conn->data_len == conn->buf_size) {
mg_send_http_error(conn, 413, "Request Too Large", "");
return;
} if (conn->request_len <= 0) {
return; // Remote end closed the connection
}
// Null-terminate the request because parse_http_request() uses sscanf
conn->buf[conn->request_len - 1] = '\0';
if (!parse_http_request(conn->buf, ri)) {
// Do not put garbage in the access log, just send it back to the client
mg_send_http_error(conn, 400, "Bad Request",
"Cannot parse HTTP request: [%.*s]", conn->data_len, conn->buf);
} else if (strcmp(ri->http_version, "1.0") && strcmp(ri->http_version, "1.1")) {
// Request seems valid, but HTTP version is strange
mg_send_http_error(conn, 505, "HTTP version not supported", "");
} else {
// Request is valid, handle it
cl = get_header(ri, "Content-Length");
conn->content_len = cl == NULL ? -1 : strtoll(cl, NULL, 10);
if (cl != NULL && conn->content_len < 0) {
mg_send_http_error(conn, 400, "Bad Request",
"Invalid Content-Length header value: [%s]", cl);
return;
}
conn->birth_time = time(NULL);
handle_request(conn);
discard_current_request_from_buffer(conn);
}
}
// Worker threads take accepted socket from the queue
static int consume_socket(struct mg_context *ctx, struct socket *sp) {
(void) pthread_mutex_lock(&ctx->mutex);
DEBUG_TRACE(("going idle"));
// If the queue is empty, wait. We're idle at this point.
while (ctx->sq_head == ctx->sq_tail && ctx->stop_flag == 0) {
pthread_cond_wait(&ctx->sq_full, &ctx->mutex);
}
// Master thread could wake us up without putting a socket.
// If this happens, it is time to exit.
if (ctx->stop_flag) {
(void) pthread_mutex_unlock(&ctx->mutex);
return 0;
}
assert(ctx->sq_head > ctx->sq_tail);
// Copy socket from the queue and increment tail
*sp = ctx->queue[ctx->sq_tail % ARRAY_SIZE(ctx->queue)];
ctx->sq_tail++;
DEBUG_TRACE(("grabbed socket %d, going busy", sp->sock));
// Wrap pointers if needed
while (ctx->sq_tail > (int) ARRAY_SIZE(ctx->queue)) {
ctx->sq_tail -= ARRAY_SIZE(ctx->queue);
ctx->sq_head -= ARRAY_SIZE(ctx->queue);
}
(void) pthread_cond_signal(&ctx->sq_empty);
(void) pthread_mutex_unlock(&ctx->mutex);
return 1;
}
static void worker_thread(struct mg_context *ctx) {
struct mg_connection *conn;
// This is the specified request size limit for DIAL requests. Note that
// this will effectively make the request limit one byte *smaller* than the
// required in the DIAL specification.
int buf_size = MAX_REQUEST_SIZE;
conn = (struct mg_connection *) calloc(1, sizeof(*conn) + buf_size);
conn->buf_size = buf_size;
conn->buf = (char *) (conn + 1);
assert(conn != NULL);
while (ctx->stop_flag == 0 && consume_socket(ctx, &conn->client)) {
conn->birth_time = time(NULL);
conn->ctx = ctx;
// Fill in IP, port info early so even if SSL setup below fails,
// error handler would have the corresponding info.
// Thanks to Johannes Winkelmann for the patch.
memcpy(&conn->request_info.remote_addr,
&conn->client.remote_addr, sizeof(conn->client.remote_addr));
// Fill in local IP info
socklen_t addr_len = sizeof(conn->request_info.local_addr);
if (getsockname(conn->client.sock, (struct sockaddr *) &conn->request_info.local_addr, &addr_len) != 0) {
// Something went wrong.
mg_send_http_error(conn, 500, "Internal Server Error", "");
} else {
process_new_connection(conn);
}
close_connection(conn);
}
free(conn);
// Signal master that we're done with connection and exiting.
//
// It is possible that we fail to acquire the mutex and then num_threads will
// end up decrementing incorrectly which may cause the server to hang
// indefinitely while trying to shutdown. But we'll try our best.
(void) pthread_mutex_lock(&ctx->mutex);
ctx->num_threads--;
(void) pthread_cond_signal(&ctx->cond);
assert(ctx->num_threads >= 0);
(void) pthread_mutex_unlock(&ctx->mutex);
DEBUG_TRACE(("exiting"));
}
/**
* Copy an accepted socket onto the queue. Blocks if the queue is full. This
* function is called from the master thread.
*
* @param ctx Mongoose context.
* @param sp the socket.
* @return true if successful, false if there was a mutex error.
*/
static int produce_socket(struct mg_context *ctx, const struct socket *sp) {
if (pthread_mutex_lock(&ctx->mutex) != 0) {
return 0;
};
// If the queue is full, wait
while (ctx->sq_head - ctx->sq_tail >= (int) ARRAY_SIZE(ctx->queue)) {
if (pthread_cond_wait(&ctx->sq_empty, &ctx->mutex) != 0) {
(void) pthread_mutex_unlock(&ctx->mutex);
return 0;
};
}
assert(ctx->sq_head - ctx->sq_tail < (int) ARRAY_SIZE(ctx->queue));
// Copy socket to the queue and increment head
ctx->queue[ctx->sq_head % ARRAY_SIZE(ctx->queue)] = *sp;
ctx->sq_head++;
DEBUG_TRACE(("queued socket %d", sp->sock));
// Nothing to do if there is an error on signal. But if we fail to unlock
// then we're in a bad state.
(void) pthread_cond_signal(&ctx->sq_full);
return (pthread_mutex_unlock(&ctx->mutex) == 0);
}
static void master_thread(struct mg_context *ctx) {
struct socket accepted;
socklen_t sock_len = sizeof(accepted.local_addr);
memcpy(&accepted.local_addr, &ctx->local_address, sock_len);
while (ctx->stop_flag == 0) {
memset(&accepted.remote_addr, 0, sock_len);
accepted.sock = accept(ctx->local_socket,
(struct sockaddr *) &accepted.remote_addr, &sock_len);
if (accepted.sock != INVALID_SOCKET) {
// Put accepted socket structure into the queue.
DEBUG_TRACE(("accepted socket %d", accepted.sock));
// If the socket fails, trigger stop and try to exit gracefully.
if (!produce_socket(ctx, &accepted)) {
ctx->stop_flag = 1;
};
}
}
DEBUG_TRACE(("stopping workers"));
// Stop signal received: somebody called mg_stop. Quit.
close_all_listening_sockets(ctx);
// Wakeup workers that are waiting for connections to handle.
// Nothing we can do if there is an error.
(void) pthread_cond_broadcast(&ctx->sq_full);
// Wait until all threads finish.
// If we cannot acquire the lock, we're in a bad state so skip this and
// just try to clean up and shut down.
if (pthread_mutex_lock(&ctx->mutex) == 0) {
while (ctx->num_threads > 0) {
(void) pthread_cond_wait(&ctx->cond, &ctx->mutex);
}
(void) pthread_mutex_unlock(&ctx->mutex);
}
// All threads exited, no sync is needed. Destroy mutex and condvars
(void) pthread_mutex_destroy(&ctx->mutex);
(void) pthread_cond_destroy(&ctx->cond);
(void) pthread_cond_destroy(&ctx->sq_empty);
(void) pthread_cond_destroy(&ctx->sq_full);
// Signal mg_stop() that we're done
ctx->stop_flag = 2;
DEBUG_TRACE(("exiting"));
}
static void free_context(struct mg_context *ctx) {
// Deallocate context itself
free(ctx);
}
void mg_stop(struct mg_context *ctx) {
ctx->stop_flag = 1;
// Wait until mg_fini() stops
while (ctx->stop_flag != 2) {
// TODO(steineldar): Avoid busy waiting.
(void) sleep(0);
}
free_context(ctx);
}
struct mg_context *mg_start(mg_callback_t user_callback, void *user_data, int port) {
struct mg_context *ctx;
int retval;
// Allocate context and initialize reasonable general case defaults.
ctx = (struct mg_context *) calloc(1, sizeof(*ctx));
if (ctx == NULL) {
return NULL;
}
ctx->user_callback = user_callback;
ctx->user_data = user_data;
if (!set_ports_option(ctx, port)) {
free_context(ctx);
return NULL;
}
// Ignore SIGPIPE signal, so if browser cancels the request, it
// won't kill the whole
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
free_context(ctx);
return NULL;
};
if (pthread_mutex_init(&ctx->mutex, NULL) != 0 ||
pthread_cond_init(&ctx->cond, NULL) != 0 ||
pthread_cond_init(&ctx->sq_empty, NULL) != 0 ||
pthread_cond_init(&ctx->sq_full, NULL) != 0)
{
free_context(ctx);
return NULL;
};
// Start master (listening) thread
retval = start_thread(ctx, (mg_thread_func_t) master_thread, ctx);
if (retval != 0) {
free_context(ctx);
return NULL;
}
// Start worker threads
for (int i = 0; i < NUM_THREADS; i++) {
if (start_thread(ctx, (mg_thread_func_t) worker_thread, ctx) != 0) {
cry(fc(ctx), "Cannot start worker thread: %d", ERRNO);
} else {
ctx->num_threads++;
}
}
return ctx;
}
| 31.292949 | 109 | 0.653402 |
66e71eee8ca55f3a9e0b9ca4845f897dbd250105 | 1,655 | cpp | C++ | firmware/src/testapp.cpp | cmdc0de/stm32l452re | 121d7125c2b841d7e0ae41b1b19fcad1b70123e7 | [
"MIT"
] | null | null | null | firmware/src/testapp.cpp | cmdc0de/stm32l452re | 121d7125c2b841d7e0ae41b1b19fcad1b70123e7 | [
"MIT"
] | null | null | null | firmware/src/testapp.cpp | cmdc0de/stm32l452re | 121d7125c2b841d7e0ae41b1b19fcad1b70123e7 | [
"MIT"
] | null | null | null | /*
* testapp.cpp
*
* Created on: Nov 4, 2017
* Author: cmdc0de
*/
#include "testApp.h"
#include "libstm32/display/display_device.h"
#include "libstm32/display/gui.h"
#include "libstm32/display/fonts.h"
using cmdc0de::ErrorType;
using cmdc0de::DisplayST7735;
using cmdc0de::DrawBufferNoBuffer;
using cmdc0de::GUIListData;
using cmdc0de::GUIListItemData;
using cmdc0de::GUI;
static const uint32_t DISPLAY_WIDTH = 128;
static const uint32_t DISPLAY_HEIGHT = 160;
static const uint32_t DISPLAY_OPT_WRITE_ROWS = 2;
DisplayST7735 Display(DISPLAY_WIDTH, DISPLAY_HEIGHT, DisplayST7735::PORTAIT);
uint16_t DrawBuffer[DISPLAY_WIDTH * DISPLAY_OPT_WRITE_ROWS]; //120 wide, 10 pixels high, 2 bytes per pixel (uint16_t)
uint8_t DrawBufferRangeChange[DISPLAY_HEIGHT / DISPLAY_OPT_WRITE_ROWS + 1];
cmdc0de::DrawBufferNoBuffer NoBuffer(&Display, &DrawBuffer[0], DISPLAY_OPT_WRITE_ROWS);
TestApp::TestApp() : SensorEventBus() {
// TODO Auto-generated constructor stub
}
TestApp::~TestApp() {
// TODO Auto-generated destructor stub
}
ErrorType TestApp::onInit() {
ErrorType et;
GUIListItemData items[4];
GUIListData DrawList((const char *) "Self Check", items, uint8_t(0),
uint8_t(0), uint8_t(128), uint8_t(64), uint8_t(0), uint8_t(0));
//DO SELF CHECK
if ((et = Display.init(DisplayST7735::FORMAT_16_BIT,
DisplayST7735::ROW_COLUMN_ORDER, &Font_6x10, &NoBuffer)).ok()) {
HAL_Delay(1000);
items[0].set(0, "OLED_INIT");
DrawList.ItemsCount++;
}
GUI gui(&Display);
gui.drawList(&DrawList);
Display.swap();
return et;
}
ErrorType TestApp::onRun() {
return ErrorType();
}
| 27.131148 | 118 | 0.717825 |
0bbb8924df6caad869f53fcf711467a2647c3912 | 659 | html | HTML | manuscript/page-347/body.html | marvindanig/english-fairy-tales | a5e0e9221c651292f85882fab43ada47437f0cd4 | [
"BlueOak-1.0.0",
"MIT"
] | null | null | null | manuscript/page-347/body.html | marvindanig/english-fairy-tales | a5e0e9221c651292f85882fab43ada47437f0cd4 | [
"BlueOak-1.0.0",
"MIT"
] | null | null | null | manuscript/page-347/body.html | marvindanig/english-fairy-tales | a5e0e9221c651292f85882fab43ada47437f0cd4 | [
"BlueOak-1.0.0",
"MIT"
] | null | null | null | <div class="leaf flex"><div class="inner justify"><h4>Master Of All Masters</h4><p class=" start-chapter">A girl once went to the fair to hire herself for servant. At last a funny-looking old gentleman engaged her, and took her home to his house. When she got there, he told her that he had something to teach her, for that in his house he had his own names for things.</p><p>He said to her: “What will you call me?”</p><p>“Master or mister, or whatever you please sir,” says she.</p><p>He said: “You must call me 'master of all masters.' And what would you call this?” pointing to his bed.</p><p>“Bed or couch, or whatever you please, sir.”</p></div> </div> | 659 | 659 | 0.719272 |
abfd6fe064e0bbe831cce6b7bf1f7b9449cc5cb5 | 1,284 | cpp | C++ | Desouky/Easy/Reverse Minesweeper.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 1 | 2022-03-16T08:56:31.000Z | 2022-03-16T08:56:31.000Z | Desouky/Easy/Reverse Minesweeper.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 2 | 2022-03-17T11:27:14.000Z | 2022-03-18T07:41:00.000Z | Desouky/Easy/Reverse Minesweeper.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 6 | 2022-03-13T19:56:11.000Z | 2022-03-17T12:08:22.000Z | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int>> dirs{{0, 1}, {0, -1}, {1, 0}, {-1, 0},{1,1},{1,-1},{-1,1},{-1,-1}};
int w , h;
vector<string>grid;
int arr[50][50];
bool valid(int x, int y){
return x>=0 and x<h and y>=0 and y<w;
}
void run(int row, int col){
for(int x = 0; x<8; x++){
int r = row + dirs[x].first;
int c = col + dirs[x].second;
if(valid(r, c) and arr[r][c] != -1){
arr[r][c]++;
}
}
}
int main()
{
cin >> w; cin.ignore();
cin >> h; cin.ignore();
grid.resize(h);
for (int i = 0; i < h; i++) {
string line;
getline(cin, line);
grid[i] = line;
}
memset(arr, 0, sizeof arr);
for(int x = 0; x<h; x++){
for(int y = 0; y<w; y++){
if(grid[x][y] == 'x') arr[x][y] = -1;
}
}
for(int x = 0; x<h; x++){
for(int y = 0; y<w; y++){
if(grid[x][y] == 'x')run(x, y);
}
}
for(int x = 0; x<h; x++){
for(int y = 0; y<w; y++){
if(arr[x][y] == -1)cout<<".";
else if(arr[x][y] == 0)cout<<".";
else cout<<arr[x][y];
}
cout<<"\n";
}
}
| 21.4 | 90 | 0.415109 |
9e8c2d4935f56f33c4abcedaf6c70c41e7d99938 | 1,627 | sql | SQL | db_template/sql/db_table_sys_users.sql | maspriyambodo/mycapturer | 9b4b3e69b1d0e6fce5654b6b822cd2fa5dca946b | [
"Apache-2.0"
] | 3 | 2021-09-13T20:44:34.000Z | 2022-02-08T09:28:40.000Z | db_template/sql/db_table_sys_users.sql | maspriyambodo/mycapturer | 9b4b3e69b1d0e6fce5654b6b822cd2fa5dca946b | [
"Apache-2.0"
] | null | null | null | db_template/sql/db_table_sys_users.sql | maspriyambodo/mycapturer | 9b4b3e69b1d0e6fce5654b6b822cd2fa5dca946b | [
"Apache-2.0"
] | null | null | null |
-- --------------------------------------------------------
--
-- Table structure for table `sys_users`
--
DROP TABLE IF EXISTS `sys_users`;
CREATE TABLE `sys_users` (
`id` int NOT NULL,
`uname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`pwd` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`role_id` int DEFAULT NULL,
`pict` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`stat` int DEFAULT NULL,
`last_login` datetime DEFAULT NULL,
`ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`login_attempt` int DEFAULT '0',
`syscreateuser` int DEFAULT NULL,
`syscreatedate` datetime DEFAULT NULL,
`sysupdateuser` int DEFAULT NULL,
`sysupdatedate` datetime DEFAULT NULL,
`sysdeleteuser` int DEFAULT NULL,
`sysdeletedate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC;
--
-- Dumping data for table `sys_users`
--
INSERT INTO `sys_users` (`id`, `uname`, `pwd`, `role_id`, `pict`, `stat`, `last_login`, `ip_address`, `login_attempt`, `syscreateuser`, `syscreatedate`, `sysupdateuser`, `sysupdatedate`, `sysdeleteuser`, `sysdeletedate`) VALUES
(1, 'bod', '$2y$10$n0NAevlNKOHXCTcwocF/C.sjYmVbzg3E.01q6cUiKbSP6EJ6pP/ie', 1, 'blank.png', 1, '2021-09-13 15:27:35', '127.0.0.1', 0, 1, '2021-03-07 23:06:13', 1, '2021-06-08 21:01:58', 0, '2021-07-08 00:09:25'),
(2, 'shan', '$2y$10$A6ORiTSvMNSZBk2LEvZTY.a2.RgnpmhcHjzdbRRrB8JQYlV204Pq6', 1, 'blank.png', 1, '2021-09-07 00:37:14', '127.0.0.1', 0, 1, '2021-09-07 00:37:06', NULL, NULL, NULL, NULL);
| 47.852941 | 227 | 0.69453 |
e4268cfd8e72f17489cd005d236f7db80220518c | 1,958 | swift | Swift | DoubleTwitter/TweetDetailViewController.swift | ducminh1012/DoubleTwitter | c26b41e19b5b0dc8db0b618ed7f966e2b85d1f71 | [
"Apache-2.0"
] | null | null | null | DoubleTwitter/TweetDetailViewController.swift | ducminh1012/DoubleTwitter | c26b41e19b5b0dc8db0b618ed7f966e2b85d1f71 | [
"Apache-2.0"
] | 1 | 2016-11-06T08:05:31.000Z | 2016-11-06T08:05:31.000Z | DoubleTwitter/TweetDetailViewController.swift | ducminh1012/DoubleTwitter | c26b41e19b5b0dc8db0b618ed7f966e2b85d1f71 | [
"Apache-2.0"
] | null | null | null | //
// TweetDetailViewController.swift
// DoubleTwitter
//
// Created by Kyou on 10/30/16.
// Copyright © 2016 Kyou. All rights reserved.
//
import UIKit
class TweetDetailViewController: UIViewController {
@IBOutlet weak var retweetLabel: UILabel!
@IBOutlet weak var profileImageView: UIImageView!
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var accountLabel: UILabel!
@IBOutlet weak var timeLabel: UILabel!
@IBOutlet weak var textLabel: UILabel!
@IBOutlet weak var retweetCountLabel: UILabel!
@IBOutlet weak var favoriteCountLabel: UILabel!
@IBAction func onReplyButton(_ sender: AnyObject) {
}
@IBAction func onRetweetButton(_ sender: AnyObject) {
}
@IBAction func onFavoriteButton(_ sender: AnyObject) {
}
var tweet: Tweet!
override func viewDidLoad() {
super.viewDidLoad()
nameLabel.text = tweet.userName
accountLabel.text = tweet.userAccount
profileImageView.setImageWith(tweet.userProfileUrl!)
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "DD/MM/YYYY, hh:mm"
timeLabel.text = dateFormatter.string(from: tweet.time!)
textLabel.text = tweet.text
retweetCountLabel.text = tweet.retweetCount?.description
favoriteCountLabel.text = tweet.favoriteCount?.description
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}
| 26.821918 | 106 | 0.667007 |
fbdc7100e3e5953f231e7ae9f84696e6ddd680ac | 1,756 | java | Java | src/main/java/com/monotonic/map_visualiser/TreeMapVisualiser.java | RichardWarburton/map-visualiser | 469be3ff2b34affc4594a34541060c2221a8be17 | [
"MIT"
] | 50 | 2016-01-20T18:58:52.000Z | 2021-09-08T00:25:48.000Z | src/main/java/com/monotonic/map_visualiser/TreeMapVisualiser.java | thandra2809/map-visualiser | 469be3ff2b34affc4594a34541060c2221a8be17 | [
"MIT"
] | 1 | 2016-04-18T08:44:50.000Z | 2016-04-18T08:44:50.000Z | src/main/java/com/monotonic/map_visualiser/TreeMapVisualiser.java | thandra2809/map-visualiser | 469be3ff2b34affc4594a34541060c2221a8be17 | [
"MIT"
] | 25 | 2016-04-18T07:46:22.000Z | 2022-01-17T08:02:52.000Z | package com.monotonic.map_visualiser;
import java.lang.reflect.Field;
import java.util.TreeMap;
public class TreeMapVisualiser
{
private static final boolean BLACK = true;
private static final boolean RED = false;
private static final Field rootField;
private static final Field colorField;
private static final Field leftField;
private static final Field rightField;
static
{
Type entry = new Type("java.util.TreeMap$Entry");
Type treeMap = new Type(TreeMap.class);
rootField = treeMap.getField("root");
leftField = entry.getField("left");
rightField = entry.getField("right");
colorField = entry.getField("color");
}
private final Console console;
public TreeMapVisualiser(final Console console)
{
this.console = console;
}
public void visualise(final TreeMap<?, ?> map)
{
console.printf("Size: %d, %n", map.size());
Object root = Type.get(rootField, map);
visualiseSubTree(root, 0);
}
private int visualiseSubTree(final Object node, int index)
{
console.indent(index);
final boolean colour = (boolean) Type.get(colorField, node);
if (colour == RED)
{
console.red();
}
console.println(node);
console.resetColour();
return 1
+ visualiseBranch(node, index, leftField)
+ visualiseBranch(node, index, rightField);
}
private int visualiseBranch(final Object node, final int index, final Field field)
{
Object branch = Type.get(field, node);
if (branch != null)
{
return visualiseSubTree(branch, index + 1);
}
return 0;
}
}
| 25.085714 | 86 | 0.612756 |
3ff60a2b91f98053ebefb9364a8c666c4dc4d21d | 829 | swift | Swift | LeetCodeForMac/LeetCodeForMac/Solution/Solution206.swift | AboutSwift/LeetCode | 65961af2eae7ed217787d7c759d00dc0ab3a4b75 | [
"MIT"
] | 1 | 2020-04-22T07:10:53.000Z | 2020-04-22T07:10:53.000Z | LeetCodeForMac/LeetCodeForMac/Solution/Solution206.swift | AboutSwift/LeetCode | 65961af2eae7ed217787d7c759d00dc0ab3a4b75 | [
"MIT"
] | null | null | null | LeetCodeForMac/LeetCodeForMac/Solution/Solution206.swift | AboutSwift/LeetCode | 65961af2eae7ed217787d7c759d00dc0ab3a4b75 | [
"MIT"
] | null | null | null | //
// Solution206.swift
// LeetCodeForMac
//
// Created by 晋先森 on 2020/4/27.
// Copyright © 2020 晋先森. All rights reserved.
//
import Foundation
// 206. 反转链表
// https://leetcode-cn.com/problems/reverse-linked-list/submissions/
class Solution206 {
func reverseList(_ head: ListNode?) -> ListNode? {
if head == nil || head?.next == nil {
return head
}
let node = reverseList(head?.next)
head?.next?.next = head
head?.next = nil
return node
}
func reverseList2(_ head: ListNode?) -> ListNode? {
var pre: ListNode?
var head = head
while head != nil {
let temp = head?.next
head?.next = pre
pre = head
head = temp
}
return pre
}
}
| 20.219512 | 68 | 0.518697 |
afba4693a34a84d5f0414ef935bfd3c9879fec29 | 660 | html | HTML | third_party/blink/manual_tests/select-popup-tooltip-test.html | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/manual_tests/select-popup-tooltip-test.html | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/manual_tests/select-popup-tooltip-test.html | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | <!DOCTYPE html>
<html>
<body>
<h3> Test tool tip is correctly shown when popup select is displayed.</h3>
<ol>
<li>Click the following select tag.</li>
<li> Move mouse cursor on "option 1" and stop moving.</li>
<li> After seconds, make sure you can see tool tip text "This is the first option".</li>
<li> Move mouse cursor on "option 2" and stop moving.</li>
<li> Make sure you can see tool tip text "This is the second option".</li>
</ol>
<select size=1>
<option title="This is the first option">option 1</option>
<option title="This is the second option">option 2</option>
<option title="This is the third option">option 3</option>
</select>
</body>
</html>
| 33 | 88 | 0.707576 |
0ac38dce76caeb093fb9b2f9c530250f922a9dae | 2,445 | go | Go | kubevirt-vmware/vendor/github.com/operator-framework/operator-sdk/pkg/scaffold/olm-catalog/concat_crd.go | mareklibra/manageiq-v2v-conversion_host | 067625e3aa4c7188548114fe536dc822ab8c23c3 | [
"Apache-2.0"
] | 5 | 2019-03-08T09:58:42.000Z | 2022-02-05T14:06:59.000Z | kubevirt-vmware/vendor/github.com/operator-framework/operator-sdk/pkg/scaffold/olm-catalog/concat_crd.go | mareklibra/manageiq-v2v-conversion_host | 067625e3aa4c7188548114fe536dc822ab8c23c3 | [
"Apache-2.0"
] | 31 | 2019-02-21T09:54:15.000Z | 2020-10-30T15:16:07.000Z | kubevirt-vmware/vendor/github.com/operator-framework/operator-sdk/pkg/scaffold/olm-catalog/concat_crd.go | mareklibra/manageiq-v2v-conversion_host | 067625e3aa4c7188548114fe536dc822ab8c23c3 | [
"Apache-2.0"
] | 18 | 2019-02-25T14:45:22.000Z | 2020-03-24T07:06:47.000Z | // Copyright 2018 The Operator-SDK 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.
package catalog
import (
"io/ioutil"
"path/filepath"
"github.com/operator-framework/operator-sdk/internal/util/yamlutil"
"github.com/operator-framework/operator-sdk/pkg/scaffold"
"github.com/operator-framework/operator-sdk/pkg/scaffold/input"
"github.com/spf13/afero"
)
const ConcatCRDYamlFile = "_generated.concat_crd.yaml"
// ConcatCRD scaffolds a file of all concatenated CRD's found using config file
// fields. This file is used by the OLM to create CR's in conjunction with the
// operators' CSV.
type ConcatCRD struct {
input.Input
// ConfigFilePath is the location of a configuration file path for this
// projects' CSV file.
ConfigFilePath string
}
func (s *ConcatCRD) GetInput() (input.Input, error) {
if s.Path == "" {
s.Path = filepath.Join(scaffold.OLMCatalogDir, ConcatCRDYamlFile)
}
if s.ConfigFilePath == "" {
s.ConfigFilePath = filepath.Join(scaffold.OLMCatalogDir, CSVConfigYamlFile)
}
return s.Input, nil
}
func (s *ConcatCRD) SetFS(_ afero.Fs) {}
// CustomRender returns the bytes of all CRD manifests concatenated into one file.
func (s *ConcatCRD) CustomRender() ([]byte, error) {
cfg, err := getCSVConfig(s.ConfigFilePath)
if err != nil {
return nil, err
}
return concatCRDsInPaths(cfg.CRDCRPaths)
}
// concatCRDsInPaths concatenates CRD manifests found at crdPaths into one
// file, delimited by `---`.
func concatCRDsInPaths(crdPaths []string) (cb []byte, err error) {
for _, f := range crdPaths {
yamlData, err := ioutil.ReadFile(f)
if err != nil {
return nil, err
}
scanner := yamlutil.NewYAMLScanner(yamlData)
for scanner.Scan() {
yamlSpec := scanner.Bytes()
k, err := getKindfromYAML(yamlSpec)
if err != nil {
return nil, err
}
if k == "CustomResourceDefinition" {
cb = yamlutil.CombineManifests(cb, yamlSpec)
}
}
}
return cb, nil
}
| 28.430233 | 82 | 0.722699 |
6a99b84b83e6a27af7f79c45ae2e552312203748 | 415 | cs | C# | projeto/Locadora.Filmes.Web/App_Start/AutoMapperConfig.cs | JaoVFSilva/Locadora_Filmes | ec1390da4b09a52e49a0d99f6a303b0196bde097 | [
"Unlicense"
] | null | null | null | projeto/Locadora.Filmes.Web/App_Start/AutoMapperConfig.cs | JaoVFSilva/Locadora_Filmes | ec1390da4b09a52e49a0d99f6a303b0196bde097 | [
"Unlicense"
] | null | null | null | projeto/Locadora.Filmes.Web/App_Start/AutoMapperConfig.cs | JaoVFSilva/Locadora_Filmes | ec1390da4b09a52e49a0d99f6a303b0196bde097 | [
"Unlicense"
] | null | null | null | using AutoMapper;
using Locadora.Filmes.Web.AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Locadora.Filmes.Web.App_Start
{
public static class AutoMapperConfig
{
public static void Configurar() {
Mapper.AddProfile<DominioParaViewModelProfile>();
Mapper.AddProfile<ViewModelParaDominioProfile>();
}
}
} | 24.411765 | 61 | 0.713253 |
bec560027a8ec7209c05d1cd4357ef17d9a9059d | 1,212 | swift | Swift | MovieReleaseWidgetExtension/CountdownWidget/View/EmptyStateView.swift | spacepandas/cineaste-ios | 88b85deaa5cb2d52fb9e0a08f2cd8cfb458c1fff | [
"Apache-2.0"
] | 29 | 2018-07-01T20:03:18.000Z | 2021-05-04T07:44:46.000Z | MovieReleaseWidgetExtension/CountdownWidget/View/EmptyStateView.swift | spacepandas/cineaste-ios | 88b85deaa5cb2d52fb9e0a08f2cd8cfb458c1fff | [
"Apache-2.0"
] | 74 | 2018-07-01T08:01:55.000Z | 2022-03-01T11:00:44.000Z | MovieReleaseWidgetExtension/CountdownWidget/View/EmptyStateView.swift | spacepandas/cineaste-ios | 88b85deaa5cb2d52fb9e0a08f2cd8cfb458c1fff | [
"Apache-2.0"
] | 13 | 2018-07-16T19:06:34.000Z | 2021-06-07T20:16:10.000Z | //
// EmptyStateView.swift
// MovieReleaseWidgetExtension
//
// Created by Xaver Lohmüller on 20.09.20.
// Copyright © 2020 spacepandas.de. All rights reserved.
//
import SwiftUI
import WidgetKit
struct EmptyStateView: View {
var body: some View {
VStack(alignment: .leading) {
Text("movie_release_widget_no_upcoming_movies")
.font(Font.custom("Noteworthy", fixedSize: 24))
.bold()
.minimumScaleFactor(0.01)
Text("movie_release_widget_search_and_add_movie")
.font(Font.custom("Noteworthy", fixedSize: 24))
.minimumScaleFactor(0.01)
}.padding()
.background(Color.background)
.widgetURL(WidgetURL.search)
}
}
struct EmptyStateView_Previews: PreviewProvider {
static var previews: some View {
Group {
EmptyStateView()
.previewContext(
WidgetPreviewContext(family: .systemSmall)
)
EmptyStateView()
.previewContext(
WidgetPreviewContext(family: .systemSmall)
)
.environment(\.colorScheme, .dark)
}
}
}
| 28.186047 | 63 | 0.576733 |
f0f378c005f0e892ce85e6cf78d64747fa7289ae | 6,447 | html | HTML | rrethnesh.html | Blendinaa/kontratateHapura | e3420dfc3d835ea8d1a6004990b6d4cf134a4174 | [
"CC-BY-3.0"
] | null | null | null | rrethnesh.html | Blendinaa/kontratateHapura | e3420dfc3d835ea8d1a6004990b6d4cf134a4174 | [
"CC-BY-3.0"
] | null | null | null | rrethnesh.html | Blendinaa/kontratateHapura | e3420dfc3d835ea8d1a6004990b6d4cf134a4174 | [
"CC-BY-3.0"
] | null | null | null | <!DOCTYPE html>
<html>
<head>
<title>Kontratat e Hapura | Rreth Faqes</title>
<!--==========================================================================================-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!--==========================================================================================-->
<link rel="shortcut icon" sizes="32x32" href="images/favicon.png" type="image/png">
<!--==========================================================================================-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--============================================================================================-->
<meta name="keywords" content="" />
<!--============================================================================================-->
<meta name="description" content="" />
<!--===========================================================================================-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!--===========================================================================================-->
<script type="text/javascript" src="jquery.slidertron-1.3.js"></script>
<!--===========================================================================================-->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800" rel="stylesheet" />
<!--===========================================================================================-->
<link href="default.css" rel="stylesheet" type="text/css" media="all" />
<!--===========================================================================================-->
<link href="fonts.css" rel="stylesheet" type="text/css" media="all" />
<!--===========================================================================================-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/
font-awesome.min.css">
<!--===========================================================================================-->
</head>
<body id="about">
<div id="background">
<div id="layer">
<div id="header-wrapper">
<div id="header" class="container" style="padding-top: 0;">
<div id="logo">
<a href="index.html"><img src="images/kontratat-e-hapura-logo.png" style="width:12%; "></a>
</div>
<div id="menu">
<ul>
<li class="icon far fa-folder current_page_item "><a href="index.html" title="">BALLINA</a></li>
<li class="icon far fa-folder"><a href="#banner-wrapper" accesskey="2" title="">SETI I TË DHËNAVE</a></li>
<li class="icon far fa-folder-open"><a href="rrethnesh.html" accesskey="3" title="">RRETH FAQËS</a></li>
<li class="icon far fa-folder"><a href="contactus.html" accesskey="5" title="">KONTAKTI</a></li>
</ul>
</div>
</div>
</div>
<div class="container" >
<div class="row">
<div class="content margin">
<h1 id="font">Pse kontratat e nënshkruara publike?</h1>
<div class="text col-md-12">
<div class="col-md-6">
<p id="black">
Hapja e komunës për qytetarët është qëllimi parësor i komunës së Prishtinës. Komuna e Prishtinës me zhvillimin e platformës "Kontratat e hapura" është duke ju siguruar të gjithë qytetarëve të dhëna të hapura sa i përket kontratave që lidh ky institucion me të gjithë operatorët ekonomik. Kjo platformë mundëson pasqyrimin e të gjitha kontratave nga drejtoritë komunale me qëllim që këto shënime të përdoren më tutje në funksion të transparencës së plotë në komunë.
Kthimi i besimit të qytetarëve në institucione publike përmes transparencës dhe qasjes së lehtë në shërbime komunale është vizioni jonë për Prishtinën.</p>
</div>
<div class="col-md-6">
<ul class="style">
<h4>Informacionet janë të listuara në këtë mënyrë:</h4>
<li> Titulli i aktivitetit të prokurimit</li>
<li> Data e publikimi të njoftimit për kontratë</li>
<li> Numri i operatorëve ekonomik që kanë shkarkuar dosjen e tenderit</li>
<li> Numri i operatorëve ekonomik që kanë dorëzuar ofertat.</li>
<li> Data e publikimit të njoftimit për dhënie të kontratës</li>
<li> Data e publikimit të anulimit të njoftimit.</li>
<li> Vlera e parashikuar e kontratës.</li>
<li> Emri i operatorit ekonomik të cilit i është dhënë kontrata</li>
<li> Data e nënshkrimit të kontratës.</li>
<li> Data e fillimit të implementimit të kontratës</li>
<li> Data e mbylljes së kontratës.</li>
<li> Vlera totale e kontratës, duke përfshirë të gjitha taksa.</li>
<li> Drejtoria të cilës i takon kontrata </li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer1">
<div id="copyright" class="flex-container">
<div>
<p style="padding-bottom: 3%;"> Na ndiqni ne: </p>
<ul>
<li> <a _ngcontent-c3="" href="https://www.facebook.com/komunaegjilanit/" target="_blank">
<i _ngcontent-c3="" aria-hidden="true" class="fa fa-facebook" id="facebook-icon"></i>
<span _ngcontent-c3="" id="facebook">Facebook</span>
</a>
</li>
<li>
<a _ngcontent-c3="" href="https://www.youtube.com/channel/UCbh7kPU9Z9QsfZu19FcY7Wg" target="_blank">
<i class="fa fa-youtube-play" style="font-size:12px"></i>
<span _ngcontent-c3="">Youtube</span>
</a>
</li>
</ul>
</div>
<div>
<p style="text-align: left;padding-bottom:3%;">Adresa:</p>
<ul id="asd" style="align-items: left">
<li>0280 320 781</li>
<li>Bulevardi i Pavarësisë p.n. </li>
</ul>
</div>
<div>
<ul>
<li> <p> Komuna e Gjilanit </p></li>
<li> <img style="width: 42%; padding-top: 3%;margin-left: 27%;" src="images/4.png"></li>
</ul>
</div>
<div>
<ul>
<li> <p> Dizajnuar dhe zhvilluar: </p> </li>
<li> <a href="http://techstitution.org" target="_blank"><img style="width: 27%; margin-left: 35%;padding-top: 3%" src="images/tech.png"> </a> </li>
</ul>
</div>
</div>
<div id="copyright" class="container" style="padding-top: 0;padding-bottom: 0; ">
<p> Copyright © <a href="https://opendatakosovo.org/" target="_blank">ODK </a> 2019 </p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html> | 46.381295 | 469 | 0.530634 |
69a0cfe882ed6150fc630c07d3022ea61cd2346e | 1,103 | sql | SQL | orcas_integrationstest/tests/test_table_partition_range/tabellen_sqlplus/tabelle.sql | llsand/orcas | 273bb591432d8bdbd535ccd3086e18e927ee9b38 | [
"Apache-2.0"
] | null | null | null | orcas_integrationstest/tests/test_table_partition_range/tabellen_sqlplus/tabelle.sql | llsand/orcas | 273bb591432d8bdbd535ccd3086e18e927ee9b38 | [
"Apache-2.0"
] | null | null | null | orcas_integrationstest/tests/test_table_partition_range/tabellen_sqlplus/tabelle.sql | llsand/orcas | 273bb591432d8bdbd535ccd3086e18e927ee9b38 | [
"Apache-2.0"
] | null | null | null |
@@create_table tab_partition_range "" "" "" "" "" ""
@@alter_table_add_column tab_partition_range col1 number(15) mandatory "" ""
@@alter_table_add_column tab_partition_range col2 number(15) mandatory "" ""
@@declare_table_partitioning2 tab_partition_range range (col1,col2) "" ""
@@declare_partition tab_partition_range part_10 (10,5) ""
@@declare_partition tab_partition_range part_20 (maxvalue,maxvalue) ""
@@set_compress compress
@@create_table tab_partition_range_tabspace "" "" "tablespace SYSTEM" "" "" ""
@@alter_table_add_column tab_partition_range_tabspace col1 number(15) mandatory "" ""
@@alter_table_add_column tab_partition_range_tabspace col2 number(15) mandatory "" ""
@@declare_table_partitioning2 tab_partition_range_tabspace range (col1,col2) "" ""
@@declare_partition tab_partition_range_tabspace part_10 (10,5) ""
@@declare_partition tab_partition_range_tabspace part_20 (maxvalue,maxvalue) ""
| 40.851852 | 101 | 0.660018 |
ab1ad705d5e37629039c03bfea83b12dbc51cf31 | 108 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/sin.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/sin.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/sin.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _sin
EXTERN cm48_sdccix_sin
defc _sin = cm48_sdccix_sin
| 10.8 | 27 | 0.842593 |
46b03b00cec3d235b63bb9f1f4b3c7953769528e | 853 | html | HTML | docs/fluentnotifications/studio.forface.fluentnotifications.enum/-default-behaviour/-s-o-u-n-d.html | 4face-studi0/FluentNotifications | 9f49cf8b35aa08698ba4473a48669983c4d861a5 | [
"Apache-2.0"
] | 7 | 2019-04-22T20:26:07.000Z | 2020-11-25T21:13:27.000Z | docs/fluentnotifications/studio.forface.fluentnotifications.enum/-default-behaviour/-s-o-u-n-d.html | 4face-studi0/FluentNotifications | 9f49cf8b35aa08698ba4473a48669983c4d861a5 | [
"Apache-2.0"
] | null | null | null | docs/fluentnotifications/studio.forface.fluentnotifications.enum/-default-behaviour/-s-o-u-n-d.html | 4face-studi0/FluentNotifications | 9f49cf8b35aa08698ba4473a48669983c4d861a5 | [
"Apache-2.0"
] | 1 | 2020-11-25T21:13:30.000Z | 2020-11-25T21:13:30.000Z | <HTML>
<HEAD>
<meta charset="UTF-8">
<title>DefaultBehaviour.SOUND - fluentnotifications</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">fluentnotifications</a> / <a href="../index.html">studio.forface.fluentnotifications.enum</a> / <a href="index.html">DefaultBehaviour</a> / <a href="./-s-o-u-n-d.html">SOUND</a><br/>
<br/>
<h1>SOUND</h1>
<a name="studio.forface.fluentnotifications.enum.DefaultBehaviour.SOUND"></a>
<code><span class="identifier">SOUND</span></code>
<p><strong>See Also</strong><br/>
<p><a href="#">NotificationCompat.Builder.setDefaults</a></p>
<p><a href="https://developer.android.com/reference/android/app/NotificationChannel.html#setSound(android.net.Uri, android.media.AudioAttributes)">NotificationChannel.setSound</a></p>
</p>
</BODY>
</HTML>
| 44.894737 | 239 | 0.710434 |
520d0998079f2067844d3538c7a6044cdd4da284 | 2,920 | go | Go | go/2020/day11/main.go | mdwhatcott/advent-of-code | fb655824b1a6621986da565c0fc9836928fc2def | [
"MIT"
] | 1 | 2019-07-07T22:34:40.000Z | 2019-07-07T22:34:40.000Z | go/2020/day11/main.go | mdwhatcott/advent-of-code | fb655824b1a6621986da565c0fc9836928fc2def | [
"MIT"
] | null | null | null | go/2020/day11/main.go | mdwhatcott/advent-of-code | fb655824b1a6621986da565c0fc9836928fc2def | [
"MIT"
] | null | null | null | package advent
import (
"log"
"strings"
"advent/lib/intgrid"
"advent/lib/util"
)
func Part1() interface{} {
var grid [][]string
lines := util.InputLines()
for _, line := range lines {
var row []string
for _, char := range line {
row = append(row, string(char))
}
grid = append(grid, row)
}
field := NewField(grid, 4, false)
for {
field.Scan()
if field.Update() == 0 {
break
}
}
return field.CountOccupied()
}
func Part2() interface{} {
log.SetFlags(log.Lshortfile)
var grid [][]string
lines := util.InputLines()
for _, line := range lines {
var row []string
for _, char := range line {
row = append(row, string(char))
}
grid = append(grid, row)
}
field := NewField(grid, 5, true)
for {
field.Scan()
if field.Update() == 0 {
break
}
}
return field.CountOccupied()
}
type Cell struct {
intgrid.Point
State string
Next string
}
type Field struct {
width int
height int
cells map[intgrid.Point]*Cell
overcrowded int
farsighted bool
}
func NewField(field [][]string, overcrowded int, farsighted bool) *Field {
cells := make(map[intgrid.Point]*Cell)
for r, row := range field {
for c, col := range row {
cell := &Cell{Point: intgrid.NewPoint(c, r), State: col}
cells[cell.Point] = cell
}
}
return &Field{
width: len(field[0]),
height: len(field),
cells: cells,
overcrowded: overcrowded,
farsighted: farsighted,
}
}
func (this *Field) gatherNeighbors(c *Cell) (all []*Cell) {
if this.farsighted {
for _, direction := range intgrid.Neighbors8 {
point := c.Point
for {
point = point.Move(direction)
u := this.cells[point]
if u == nil {
break
}
if u.State != "." {
all = append(all, u)
break
}
}
}
} else {
for _, d := range intgrid.Neighbors8 {
u := c.Point.Move(d)
n := this.cells[u]
if n == nil {
continue
}
all = append(all, n)
}
}
return all
}
func (this *Field) Scan() {
for _, c := range this.cells {
occupied := 0
for _, neighbor := range this.gatherNeighbors(c) {
if neighbor.State == "#" {
occupied++
}
if c.State == "L" && occupied == 0 {
c.Next = "#"
} else if c.State == "#" && occupied >= this.overcrowded {
c.Next = "L"
} else {
c.Next = c.State
}
}
}
}
func (this *Field) Update() (changed int) {
for _, c := range this.cells {
if c.Next != c.State {
changed++
}
c.State = c.Next
}
return changed
}
func (this *Field) CountOccupied() (occupied int) {
for _, c := range this.cells {
if c.State == "#" {
occupied++
}
}
return occupied
}
func (this *Field) String() string {
builder := new(strings.Builder)
for y := 0; y < this.height; y++ {
for x := 0; x < this.width; x++ {
builder.WriteString(this.cells[intgrid.NewPoint(x, y)].State)
}
builder.WriteString("\n")
}
return "\n\n" + builder.String() + "\n\n"
}
| 17.69697 | 74 | 0.584932 |
23c2becc0b36315eea7e44102802bb260de90a73 | 4,724 | swift | Swift | Example/ViewController.swift | ggu/echo | ac7f496bfab9120784f6c06afb71c253d7d93b61 | [
"Apache-2.0"
] | 4 | 2015-09-09T03:53:07.000Z | 2020-11-04T10:55:14.000Z | Example/ViewController.swift | ggu/echo | ac7f496bfab9120784f6c06afb71c253d7d93b61 | [
"Apache-2.0"
] | 1 | 2015-11-02T19:20:32.000Z | 2016-01-14T14:58:03.000Z | Example/ViewController.swift | ggu/echo | ac7f496bfab9120784f6c06afb71c253d7d93b61 | [
"Apache-2.0"
] | 4 | 2015-09-15T17:24:46.000Z | 2021-06-11T22:48:23.000Z | import UIKit
import Echo
class LOL: UICollectionViewCell {
let label: UILabel
override init(frame: CGRect) {
self.label = UILabel(frame: .zero)
super.init(frame: frame)
self.label.transform = CGAffineTransform(scaleX: 1, y: -1)
self.addSubview(self.label)
}
required init(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func layoutSubviews() {
super.layoutSubviews()
self.label.frame = self.bounds
}
}
class ViewController: UIViewController {
@IBOutlet var textView: TextView!
@IBOutlet var textField: UITextField!
@IBOutlet var collectionView: UICollectionView!
@IBOutlet var accessoryView: UIView!
var controller: InputAccessoryController?
var secondController: InputAccessoryController?
override func viewDidLoad() {
super.viewDidLoad()
self.collectionView.dataSource = self
self.collectionView.register(LOL.self, forCellWithReuseIdentifier: "LOL")
self.collectionView.keyboardDismissMode = .interactive
self.collectionView.transform = CGAffineTransform(a: 1, b: 0, c: 0, d: -1, tx: 0, ty: 0)
let hideKeyboard = UITapGestureRecognizer(target: self, action: #selector(ViewController.hideKeyboard(_:)))
self.collectionView.addGestureRecognizer(hideKeyboard)
self.collectionView.contentInsetAdjustmentBehavior = .never
let controller = InputAccessoryController(
scrollView: self.collectionView,
behaviours: [],
accessoryView: self.accessoryView,
textView: self.textView)
self.accessoryView.bottomAnchor.constraint(equalTo: controller.keyboardLayoutGuide.topAnchor).isActive = true
controller.delegate = self
self.controller = controller
}
@objc func hideKeyboard(_ sender: UIGestureRecognizer) {
self.view.endEditing(true)
}
override func viewSafeAreaInsetsDidChange() {
super.viewSafeAreaInsetsDidChange()
self.accessoryView.insetsLayoutMarginsFromSafeArea = false
self.accessoryView.layoutMargins = self.view.safeAreaInsets
}
}
extension ViewController: UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return 300
}
func numberOfSections(in collectionView: UICollectionView) -> Int {
return 1
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "LOL", for: indexPath) as! LOL
cell.backgroundColor = UIColor.red
cell.label.text = "#\(indexPath.item)"
return cell
}
override func didReceiveMemoryWarning() {
let viewController = UIViewController()
viewController.view.backgroundColor = UIColor.red
self.show(viewController, sender: self)
}
}
//extension ViewController: InputAccessoryControllerResponderDelegate {
// func showAccessoryViewForResponder(_ responder: UIResponder) -> Bool {
// return true
// }
//}
extension ViewController: InputAccessoryControllerDelegate {
func updateAccessoryView(_ rect: CGRect, adjustContentOffset: Bool, animation: KeyboardAnimation?) {
let constant = self.keyboardHeight(rect)
var contentInset = self.collectionView.contentInset
contentInset.top = constant + self.accessoryView.bounds.height
contentInset.bottom = 80
var contentOffset = self.collectionView.contentOffset
contentOffset.y += self.collectionView.contentInset.top - contentInset.top
let offset: CGPoint? = adjustContentOffset ? contentOffset : nil
self.update(contentInset, contentOffset: offset)
}
fileprivate func update(_ contentInset: UIEdgeInsets, contentOffset: CGPoint?) {
if let contentOffset = contentOffset {
self.collectionView.contentOffset = contentOffset
}
self.collectionView.contentInset = contentInset
self.collectionView.scrollIndicatorInsets = contentInset
}
func keyboardHeight(_ rect: CGRect) -> CGFloat {
let endFrame = self.view.convert(rect, from: nil)
return max(0, self.view.bounds.height - endFrame.maxY - self.view.safeAreaInsets.bottom)
}
}
extension ViewController: UITextViewDelegate {
func textViewDidChange(_ textView: UITextView) {
self.accessoryView.invalidateIntrinsicContentSize()
self.accessoryView.layoutIfNeeded()
// This works around the content being scrolled beyond the bottom.
let endRange = NSRange(
location: textView.text.count,
length: 0)
if NSEqualRanges(textView.selectedRange, endRange) == true {
let bottom = CGPoint(x: 0, y: textView.contentSize.height - textView.frame.size.height)
textView.setContentOffset(bottom, animated: false)
}
}
}
| 30.875817 | 119 | 0.74619 |
f5172d7fc3a2d61de7db91fd839c3aa9e5bb4c74 | 4,853 | cc | C++ | common/cpp/src/google_smart_card_common/global_context_impl_emscripten.cc | SM-125F/chromeos_smart_card_connector | b375f282d3dbf92318a3321c580715f3ca68d793 | [
"Apache-2.0"
] | 79 | 2017-09-22T05:09:54.000Z | 2022-03-13T01:11:06.000Z | common/cpp/src/google_smart_card_common/global_context_impl_emscripten.cc | QPC-database/chromeos_smart_card_connector | 3ced08b30ce3f2a557487c3bfba1d1cd36c5011c | [
"Apache-2.0"
] | 191 | 2017-10-23T22:34:58.000Z | 2022-03-05T18:10:06.000Z | common/cpp/src/google_smart_card_common/global_context_impl_emscripten.cc | QPC-database/chromeos_smart_card_connector | 3ced08b30ce3f2a557487c3bfba1d1cd36c5011c | [
"Apache-2.0"
] | 32 | 2017-10-21T07:39:59.000Z | 2021-11-10T22:55:32.000Z | // Copyright 2020 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <google_smart_card_common/global_context_impl_emscripten.h>
#include <memory>
#include <thread>
#include <emscripten/threading.h>
#include <emscripten/val.h>
#include <google_smart_card_common/unique_ptr_utils.h>
#include <google_smart_card_common/value.h>
#include <google_smart_card_common/value_emscripten_val_conversion.h>
namespace google_smart_card {
static_assert(
sizeof(int) >= sizeof(void*),
"|int| is too small - cannot fit |void*| to pass data across threads");
GlobalContextImplEmscripten::GlobalContextImplEmscripten(
std::thread::id main_thread_id,
emscripten::val post_message_callback)
: main_thread_id_(main_thread_id),
post_message_callback_(post_message_callback) {}
GlobalContextImplEmscripten::~GlobalContextImplEmscripten() = default;
void GlobalContextImplEmscripten::PostMessageToJs(Value message) {
// Post a task to the main thread, since all other threads are running in Web
// Workers that don't have access to DOM, and aren't allowed to execute
// `post_message_callback_`.
// Implementation-wise, we have to use the Emscripten's
// `emscripten_async_run_in_main_runtime_thread()` function, which has a very
// low-level interface. Some notes:
// 1. Only a static function is supported, therefore we schedule the
// "trampoline" function that redirects to the normal class method.
// 2. Only very few primitive argument types are supported, therefore we do
// reinterpret_cast on all arguments. Pointers are casted to int (the
// static_assert above makes sure that the `int` type is of sufficient
// size); later, the trampoline function casts them back to pointers.
// 3. `EM_FUNC_SIG_VII` means "the scheduled function has the void(int, int)
// signature".
// 4. In order to address the case when `this` might get destroyed before the
// async job gets executed, we pass an `std::weak_ptr` to it.
// 5. It's crucial to send `Value`, as opposed to constructing
// `emscripten::val` here on the background thread, in order to avoid
// internal Emscripten errors:
// <https://github.com/emscripten-core/emscripten/issues/12749>.
using SelfWeakPtr = std::weak_ptr<GlobalContextImplEmscripten>;
std::unique_ptr<SelfWeakPtr> this_weak_ptr =
MakeUnique<SelfWeakPtr>(shared_from_this());
std::unique_ptr<Value> message_ptr = MakeUnique<Value>(std::move(message));
emscripten_async_run_in_main_runtime_thread(
EM_FUNC_SIG_VII,
&GlobalContextImplEmscripten::PostMessageOnMainThreadTrampoline,
reinterpret_cast<int>(this_weak_ptr.release()),
reinterpret_cast<int>(message_ptr.release()));
}
bool GlobalContextImplEmscripten::IsMainEventLoopThread() const {
return std::this_thread::get_id() == main_thread_id_;
}
void GlobalContextImplEmscripten::DisableJsCommunication() {
GOOGLE_SMART_CARD_CHECK(IsMainEventLoopThread());
post_message_callback_ = emscripten::val::undefined();
}
// static
void GlobalContextImplEmscripten::PostMessageOnMainThreadTrampoline(
int raw_this_weak_ptr,
int raw_value_ptr) {
using SelfWeakPtr = std::weak_ptr<GlobalContextImplEmscripten>;
using SelfSharedPtr = std::shared_ptr<GlobalContextImplEmscripten>;
// Note: These `unique_ptr`s must be constructed before any returning from the
// function, in order to not leak the memory.
// Correctness of these reinterpret_cast's is discussed in
// `PostMessageToJs()`.
std::unique_ptr<SelfWeakPtr> this_weak_ptr(
reinterpret_cast<SelfWeakPtr*>(raw_this_weak_ptr));
std::unique_ptr<Value> message(reinterpret_cast<Value*>(raw_value_ptr));
SelfSharedPtr this_shared_ptr = this_weak_ptr->lock();
if (!this_shared_ptr) {
// `this` got already destroyed before the asynchronous job was started.
return;
}
this_shared_ptr->PostMessageOnMainThread(std::move(*message));
}
void GlobalContextImplEmscripten::PostMessageOnMainThread(Value message) {
GOOGLE_SMART_CARD_CHECK(IsMainEventLoopThread());
// Note: No mutexes are needed, since this code is guaranteed to run on the
// main thread.
if (!post_message_callback_.isUndefined())
post_message_callback_(ConvertValueToEmscriptenValOrDie(message));
}
} // namespace google_smart_card
| 42.946903 | 80 | 0.761179 |
2f0e4479bed68ec6e3a8a9ae42cb46b62c1b0dd9 | 9,516 | cs | C# | Assets/Editor/MazeGeneratorTool.logic.cs | philipe-go/unity-maze.generator.tool | 1f178603db750e3362b8eb329bc88ebd6859adfa | [
"MIT"
] | null | null | null | Assets/Editor/MazeGeneratorTool.logic.cs | philipe-go/unity-maze.generator.tool | 1f178603db750e3362b8eb329bc88ebd6859adfa | [
"MIT"
] | null | null | null | Assets/Editor/MazeGeneratorTool.logic.cs | philipe-go/unity-maze.generator.tool | 1f178603db750e3362b8eb329bc88ebd6859adfa | [
"MIT"
] | null | null | null | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System;
/*
#############################
TITLE: MazeGeneratorTool.logic.cs
AUTHOR: Philipe Go.
DATE: 2021-Jan
#############################
*/
//FOR BITSHIFT OPERATIONS
[Flags]
public enum EWallType
{
WEST = 1, //0001
EAST = 2, //0010
NORTH = 4, //0100
SOUTH = 8, //1000
VISITED = 128, //1000 0000
}
//CELL COORDINATES IN THE GRID
public struct MazeCell
{
public int X;
public int Y;
}
//VISITED NEIGHBOURS FOR BACKTRACKING ANALYSIS
public struct Neighbour
{
public MazeCell mazeCell;
public EWallType CommonWall;
}
public partial class MazeGeneratorTool : EditorWindow
{
#region Parameters
int column = 10;
int row = 10;
int wallArraySize = 0;
int floorArraySize = 0;
GameObject[] Wall;
GameObject[] Floor;
GameObject generatedMaze;
const float GRIDSIZE = 1.0f;
#endregion
#region BackTrack Algorithm
/// <summary> Check the opposite walls from a wall - O(1) </summary>
/// <param name='wall'> the wall to check if there is an opposite </param>
EWallType GetOpposite(EWallType wall)
{
switch (wall)
{
case EWallType.EAST: return EWallType.WEST;
case EWallType.WEST: return EWallType.EAST;
case EWallType.NORTH: return EWallType.SOUTH;
case EWallType.SOUTH: return EWallType.NORTH;
default: return EWallType.WEST;
}
}
/// <summary> The backtracker algorithm to clean walls in the generated grid maze - O(n) </summary>
/// <param name='EWallType[,]'> the 2Dmatrix grid - base for the maze </param>
/// <param name='column'> number of columns in the grid </param>
/// <param name='row'> number of rows in the grid </param>
/// <returns> the cleaned 2D Grid - alread defined maze </returns>
EWallType[,] RunBackTracker(EWallType[,] maze, int column, int row)
{
Stack<MazeCell> cellStack = new Stack<MazeCell>();
System.Random random = new System.Random();
MazeCell cell = new MazeCell { X = random.Next(0, column), Y = random.Next(0, row) };
maze[cell.X, cell.Y] |= EWallType.VISITED;
cellStack.Push(cell);
while (cellStack.Count > 0)
{
MazeCell currentCell = cellStack.Pop();
List<Neighbour> neighbours = GetUnvisitedCells(currentCell, maze, column, row);
if (neighbours.Count > 0)
{
cellStack.Push(currentCell);
//Get a random neighbour from the unvisited nodes list
int randIndex = random.Next(0, neighbours.Count);
Neighbour randNeighbour = neighbours[randIndex];
MazeCell aCell = randNeighbour.mazeCell;
maze[currentCell.X, currentCell.Y] &= ~randNeighbour.CommonWall;
maze[aCell.X, aCell.Y] &= ~GetOpposite(randNeighbour.CommonWall);
maze[aCell.X, aCell.Y] |= EWallType.VISITED;
cellStack.Push(aCell);
}
}
return maze;
}
/// <summary> Check for unvisited cells in the 2D matrix - O(1) </summary>
/// <param name='cell'> the cell to be checked </param>
/// <param name='maze'> the grid where the cell is located </param>
/// <param name='column'> number of columns in the grid </param>
/// <param name='row'> number of rows in the grid </param>
/// <returns> a list of unvisited nodes </returns>
List<Neighbour> GetUnvisitedCells(MazeCell cell, EWallType[,] maze, int column, int row)
{
List<Neighbour> cellList = new List<Neighbour>();
if (cell.X > 0) //0001
{
if (!maze[cell.X - 1, cell.Y].HasFlag(EWallType.VISITED))
{
cellList.Add(new Neighbour
{
mazeCell = new MazeCell
{
X = cell.X - 1,
Y = cell.Y
},
CommonWall = EWallType.SOUTH,
});
}
}
if (cell.Y > 0) //1000
{
if (!maze[cell.X, cell.Y - 1].HasFlag(EWallType.VISITED))
{
cellList.Add(new Neighbour
{
mazeCell = new MazeCell
{
X = cell.X,
Y = cell.Y - 1,
},
CommonWall = EWallType.EAST,
});
}
}
if (cell.X < column - 1) //0010
{
if (!maze[cell.X + 1, cell.Y].HasFlag(EWallType.VISITED))
{
cellList.Add(new Neighbour
{
mazeCell = new MazeCell
{
X = cell.X + 1,
Y = cell.Y,
},
CommonWall = EWallType.NORTH,
});
}
}
if (cell.Y < row - 1) //0100
{
if (!maze[cell.X, cell.Y + 1].HasFlag(EWallType.VISITED))
{
cellList.Add(new Neighbour
{
mazeCell = new MazeCell
{
X = cell.X,
Y = cell.Y + 1,
},
CommonWall = EWallType.WEST,
});
}
}
return cellList;
}
#endregion
#region Maze Generation
/// <summary> Generate a 2D Matrix grid to be used as base for the maze - O(n^2)</summary>
/// <param name='column'> number of columns in the 2D matrix </param>
/// <param name='row'> number of rows in the 2D matrix </param>
/// <returns>A 2D matrix grid for the maze to be build NORTHon</returns>
EWallType[,] GenerateMaze(int column, int row)
{
EWallType[,] maze = new EWallType[column, row];
EWallType init = EWallType.SOUTH | EWallType.NORTH | EWallType.WEST | EWallType.EAST;
for (int i = 0; i < column; ++i)
{
for (int j = 0; j < row; ++j)
{
maze[i, j] = init;
}
}
return RunBackTracker(maze, column, row);
}
/// <summary>Method to draw the generated maze - O(n^2)</summary>
/// <param name='maze'> The maze generated in the Build Method</param>
void DrawMaze(EWallType[,] maze)
{
generatedMaze = new GameObject("Maze");
Vector3 position = new Vector3();
EWallType cell = new EWallType();
System.Random random = new System.Random();
for (int i = 0; i < column; ++i)
{
for (int j = 0; j < row; ++j)
{
cell = maze[i, j];
position = new Vector3(-column / 2 + i, 0, -row / 2 + j);
//TODO Change to instantiate random prefabs from a list of walls / floors
if (cell.HasFlag(EWallType.NORTH))
{
GameObject northWall = Instantiate(Wall[random.Next(0,Wall.Length)], generatedMaze.transform, true);
northWall.name = $"column:{i} / row:{j}";
northWall.transform.position = position + new Vector3(GRIDSIZE / 2, GRIDSIZE / 2, 0);
// topWall.transform.localScale = new Vector3(GRIDSIZE, topWall.transform.localScale.y, topWall.transform.localScale.z);
}
if (cell.HasFlag(EWallType.WEST))
{
GameObject westWall = Instantiate(Wall[random.Next(0,Wall.Length)], generatedMaze.transform);
westWall.name = $"column:{i} / row:{j}";
westWall.transform.position = position + new Vector3(0, GRIDSIZE / 2, GRIDSIZE / 2);
westWall.transform.eulerAngles = new Vector3(90, 0, 0);
// WESTWall.transform.localScale = new Vector3(1,WESTWall.transform.localScale.y,WESTWall.transform.localScale.z);
}
if (j == 0)
{
if (cell.HasFlag(EWallType.EAST))
{
GameObject eastWall = Instantiate(Wall[random.Next(0,Wall.Length)], generatedMaze.transform);
eastWall.name = $"column:{i} / row:{j}";
eastWall.transform.position = position + new Vector3(0, GRIDSIZE / 2, -GRIDSIZE / 2);
eastWall.transform.eulerAngles = new Vector3(90, 0, 0);
}
}
if (i == 0)
{
if (cell.HasFlag(EWallType.SOUTH))
{
GameObject southWall = Instantiate(Wall[random.Next(0,Wall.Length)], generatedMaze.transform);
southWall.name = $"column:{i} / row:{j}";
southWall.transform.position = position + new Vector3(-GRIDSIZE / 2, GRIDSIZE / 2, 0);
}
}
GameObject cellFloor = Instantiate(Floor[random.Next(0,Floor.Length)], generatedMaze.transform);
cellFloor.transform.position = position;
}
}
}
///<summary>
/// Method to build the maze calling the draw method
///</summary>
void BuildMaze()
{
EWallType[,] maze = GenerateMaze(column, row);
DrawMaze(maze);
}
#endregion
}
| 33.507042 | 140 | 0.514817 |
9691c55d4e1239a9a5ea3e9ded620c3698273a7a | 787 | lua | Lua | src/entity/interactable/book.lua | NykolaR/TheNovemberProject | 3a8e187fc37d3e25e54019592e3a60cc2bd55dda | [
"MIT"
] | null | null | null | src/entity/interactable/book.lua | NykolaR/TheNovemberProject | 3a8e187fc37d3e25e54019592e3a60cc2bd55dda | [
"MIT"
] | null | null | null | src/entity/interactable/book.lua | NykolaR/TheNovemberProject | 3a8e187fc37d3e25e54019592e3a60cc2bd55dda | [
"MIT"
] | null | null | null | local Class = require ("src.class")
local Book = Class.new ()
local Rectangle = require ("src.logic.rectangle")
local Draw = require ("src.boundary.display.draw")
Book.oState, Book.iState = 196, 113
function Book:_init (x, y)
self.hitbox = Rectangle (x + 4, y + 2, 8, 12)
self.toppled = false
end
function Book:playerInteract (player, direction)
if not self.toppled then
if self.hitbox:intersects (player.hitbox) then
self.toppled = true
end
end
end
function Book:swordInteract (sword, direction)
end
function Book:render ()
if self.toppled then
Draw.renderTile (Book.iState, self.hitbox.x - 4, self.hitbox.y - 2)
else
Draw.renderTile (Book.oState, self.hitbox.x - 4, self.hitbox.y - 2)
end
end
return Book
| 22.485714 | 75 | 0.66582 |
294569c37af12a709a737876023afd85cfbf8c15 | 2,097 | dart | Dart | maps_adapter_google_maps/lib/src/google_maps.dart | dint-dev/maps | dfd06e386f5bf668fb87f18d099bb14ebbee629b | [
"Apache-2.0"
] | 15 | 2020-05-28T21:19:35.000Z | 2021-12-24T12:44:49.000Z | maps_adapter_google_maps/lib/src/google_maps.dart | dint-dev/maps | dfd06e386f5bf668fb87f18d099bb14ebbee629b | [
"Apache-2.0"
] | 3 | 2020-06-29T04:56:39.000Z | 2021-01-17T01:56:35.000Z | maps_adapter_google_maps/lib/src/google_maps.dart | dint-dev/maps | dfd06e386f5bf668fb87f18d099bb14ebbee629b | [
"Apache-2.0"
] | 4 | 2020-05-28T21:19:49.000Z | 2021-01-17T01:48:52.000Z | // Copyright 2020 Gohilla Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import 'package:flutter/widgets.dart';
import 'package:maps/maps.dart';
import 'google_maps_impl_default.dart'
if (dart.library.html) 'google_maps_impl_browser.dart';
/// Enables [MapWidget] to use [Google Maps Android SDK](https://developers.google.com/maps/documentation/android-sdk/intro)
/// and [Google Maps iOS SDK](https://developers.google.com/maps/documentation/ios-sdk/intro)
/// ([package:google_maps_flutter](https://pub.dev/packages/google_maps_flutter)).
///
/// ## Getting started
/// You need to set API keys by following instructions by
/// [google_maps_flutter](https://pub.dev/packages/google_maps_flutter) (the
/// official plugin by Google that this package uses).
///
/// In summary:
/// * For Android, you need to edit `android/app/src/main/AndroidManifest.xml`.
/// * For iOS, you need to edit one of the following:
/// * `ios/Runner/AppDelegate.swift` (if your Flutter project uses Swift)
/// * `ios/Runner/AppDelegate.m` (if your Flutter project uses Objective-C)
///
/// Then:
/// ```
/// import 'package:maps/maps.dart';
/// import 'package:maps_adapter_google_maps';
///
/// void main() {
/// MapAdapter.defaultInstance = const GoogleMapsNativeAdapter();
///
/// // ...
/// }
/// ```
class GoogleMapsNativeAdapter extends MapAdapter {
const GoogleMapsNativeAdapter();
@override
String get productName => 'Google Maps';
@override
Widget buildMapWidget(MapWidget mapWidget, Size size) {
return buildGoogleMapsNative(this, mapWidget, size);
}
}
| 36.155172 | 124 | 0.721507 |
804eaf62bc65f38116085d7975b766010f44db04 | 1,588 | java | Java | src/main/java/org/primefaces/el/InterceptingContext.java | godwinkithion/PrimeFaces | 590f95370dc82d2cea574a150f6690cc3ba8d009 | [
"Apache-2.0"
] | null | null | null | src/main/java/org/primefaces/el/InterceptingContext.java | godwinkithion/PrimeFaces | 590f95370dc82d2cea574a150f6690cc3ba8d009 | [
"Apache-2.0"
] | null | null | null | src/main/java/org/primefaces/el/InterceptingContext.java | godwinkithion/PrimeFaces | 590f95370dc82d2cea574a150f6690cc3ba8d009 | [
"Apache-2.0"
] | 1 | 2018-06-27T13:43:09.000Z | 2018-06-27T13:43:09.000Z | package org.primefaces.el;
import java.util.Locale;
import javax.el.ELContext;
import javax.el.ELResolver;
import javax.el.FunctionMapper;
import javax.el.VariableMapper;
public class InterceptingContext extends ELContext {
private final ELContext context;
private final ELResolver resolver;
public InterceptingContext(ELContext context, ELResolver resolver) {
this.context = context;
this.resolver = resolver;
}
// punch in our new ELResolver
@Override
public ELResolver getELResolver() {
return resolver;
}
// The rest of the methods simply delegate to the existing context
@Override
public Object getContext(Class key) {
return context.getContext(key);
}
@Override
public Locale getLocale() {
return context.getLocale();
}
@Override
public boolean isPropertyResolved() {
return context.isPropertyResolved();
}
@Override
public void putContext(Class key, Object contextObject) {
context.putContext(key, contextObject);
}
@Override
public void setLocale(Locale locale) {
context.setLocale(locale);
}
@Override
public void setPropertyResolved(boolean resolved) {
context.setPropertyResolved(resolved);
}
@Override
public FunctionMapper getFunctionMapper() {
return context.getFunctionMapper();
}
@Override
public VariableMapper getVariableMapper() {
return context.getVariableMapper();
}
}
| 24.060606 | 73 | 0.654282 |
50b29228eec24c89dcd6feafe5368bf21b26a2a4 | 648 | asm | Assembly | oeis/285/A285345.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/285/A285345.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/285/A285345.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A285345: Fixed point of the morphism 0 -> 10, 1 -> 1100.
; Submitted by Jamie Morken(s2)
; 1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,0,1,0
mov $5,$0
mov $7,2
lpb $7
mov $0,$5
sub $7,1
add $0,$7
sub $0,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
mov $1,727
sub $1,$0
seq $1,284817 ; a(n) = 2n - 1 - A284776(n).
add $3,$1
lpe
mov $0,$3
add $0,2
mov $4,$7
mul $4,$0
add $6,$4
lpe
min $5,1
mul $5,$0
mov $0,$6
sub $0,$5
sub $0,1
| 19.058824 | 201 | 0.49537 |
269ae3535f54f1781741bf79a223e8758e17a53e | 9,844 | java | Java | cave/com.raytheon.uf.viz.monitor.fog/src/com/raytheon/uf/viz/monitor/fog/FogDataGenerator.java | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.uf.viz.monitor.fog/src/com/raytheon/uf/viz/monitor/fog/FogDataGenerator.java | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.uf.viz.monitor.fog/src/com/raytheon/uf/viz/monitor/fog/FogDataGenerator.java | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | /**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.uf.viz.monitor.fog;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.raytheon.uf.common.dataplugin.fog.FogRecord;
import com.raytheon.uf.common.dataplugin.fog.FogRecord.FOG_THREAT;
import com.raytheon.uf.common.monitor.data.CommonConfig;
import com.raytheon.uf.common.monitor.data.MonitorConfigConstants;
import com.raytheon.uf.common.monitor.data.ObConst.DataUsageKey;
import com.raytheon.uf.viz.monitor.config.CommonTableConfig;
import com.raytheon.uf.viz.monitor.config.CommonTableConfig.CellType;
import com.raytheon.uf.viz.monitor.data.ObReport;
import com.raytheon.uf.viz.monitor.data.ObsData;
import com.raytheon.uf.viz.monitor.data.TableCellData;
import com.raytheon.uf.viz.monitor.data.TableData;
import com.raytheon.uf.viz.monitor.data.TableRowData;
import com.raytheon.uf.viz.monitor.fog.threshold.FogThresholdMgr;
/**
* Generate Data for Fog Dialogs
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 12/07/09 dhladky Initial Creation.
* Oct.29, 2012 1297 skorolev Changed HashMap to Map
* Oct.31, 2012 1297 skorolev Clean code
* Dec 26, 2015 5114 skorolev Corrected imports.
*
* </pre>
*
* @author dhladky
*
*/
public class FogDataGenerator {
private final CommonTableConfig ctc;
private final FogThresholdMgr ftm;
/**
* Generates Fog data
*/
public FogDataGenerator() {
ctc = CommonTableConfig.getInstance();
ftm = FogThresholdMgr.getInstance();
}
/**
* Generates the zone fog data for table
*
* @param obsData
* @param algThreats
* @param date
* @return fogTableData
*/
public TableData generateZoneData(ObsData obsData,
Map<String, FogRecord.FOG_THREAT> algThreats, Date date) {
// TODO: in the future use the data passed to get the nominal time
// closest for display in table and CAVE rendering.
TableData fogTableData = new TableData(CommonConfig.AppName.FOG);
if (obsData != null) {
for (String zone : obsData.getContainer().keySet()) {
addZoneRow(zone, obsData.getArea(zone).getBestAreaReport(date),
algThreats.get(zone), fogTableData);
}
}
return fogTableData;
}
/**
* Creates a Zone table row
*
* @param zone
* @param report
* @param threat
* @param td
*/
private void addZoneRow(String zone, ObReport report,
FogRecord.FOG_THREAT threat, TableData td) {
TableRowData trd = new TableRowData(
ctc.getTableColumnKeys(CommonConfig.AppName.FOG).length);
trd.setTableCellData(0, new TableCellData(zone, zone, CellType.AreaId,
false));
trd.setTableCellData(
1,
new TableCellData(
new Float(report.getVisibility()).intValue(),
ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY,
zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_METEO_VIS
.getXmlKey(), report.getVisibility()),
true));
trd.setTableCellData(2, new TableCellData(report.getPresentWx(), zone,
CellType.NotMonitored, false));
trd.setTableCellData(
3,
new TableCellData(
new Float(report.getCeiling()).intValue(),
ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY,
zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_METEO_CEILING
.getXmlKey(), report.getCeiling()),
true));
trd.setTableCellData(
4,
new TableCellData(
new Float(report.getWindDir()).intValue(),
ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY,
zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_WIND_DIR_FROM
.getXmlKey(), report.getWindDir()),
true));
trd.setTableCellData(
5,
new TableCellData(
new Float(report.getWindSpeed()).intValue(),
ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY,
zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_WIND_WIND_SPEED
.getXmlKey(), report.getWindSpeed()),
true));
trd.setTableCellData(
6,
new TableCellData(
new Float(report.getMaxWindSpeed()).intValue(),
ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY,
zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_WIND_PEAK_WIND
.getXmlKey(), report.getMaxWindSpeed()),
true));
trd.setTableCellData(
7,
new TableCellData(
new Float(report.getWindGust()).intValue(),
ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY,
zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_WIND_GUST_SPEED
.getXmlKey(), report.getWindGust()),
true));
trd.setTableCellData(
8,
new TableCellData(
new Float(report.getTemperature()).intValue(),
ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY,
zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_METEO_TEMP
.getXmlKey(), report.getTemperature()),
true));
trd.setTableCellData(
9,
new TableCellData(
new Float(report.getDewpoint()).intValue(),
ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY,
zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_METEO_DEWPT
.getXmlKey(), report.getDewpoint()),
true));
trd.setTableCellData(
10,
new TableCellData(new Float(report.getDewpointDepr())
.intValue(), ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY, zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_METEO_T_TD
.getXmlKey(), report.getDewpointDepr()), true));
trd.setTableCellData(
11,
new TableCellData(
new Float(report.getRelativeHumidity()).intValue(),
ftm.getThresholdValueCellType(
DataUsageKey.DISPLAY,
zone,
MonitorConfigConstants.FogDisplay.FOG_DISP_METEO_REL_HUMIDITY
.getXmlKey(), report
.getRelativeHumidity()), true));
trd.setTableCellData(12, new TableCellData("", zone,
getAlgorithmCellType(threat), true));
td.addReplaceDataRow(trd);
}
/**
* Get threat cells type
*
* @param threat
* @return type
*/
public CellType getAlgorithmCellType(FogRecord.FOG_THREAT threat) {
CellType type = CellType.NotDetermined;
if (threat == FogRecord.FOG_THREAT.GREEN) {
type = CellType.G;
} else if (threat == FogRecord.FOG_THREAT.YELLOW) {
type = CellType.Y;
} else if (threat == FogRecord.FOG_THREAT.RED) {
type = CellType.R;
}
return type;
}
/**
* Get threat types
*
* @param map
* @return types
*/
public Map<String, CellType> getAlgCellTypes(Map<String, FOG_THREAT> map) {
Map<String, CellType> types = new HashMap<String, CellType>();
for (String zone : map.keySet()) {
CellType type = getAlgorithmCellType(map.get(zone));
types.put(zone, type);
}
return types;
}
}
| 37.572519 | 93 | 0.526107 |
6d0891d2ac51711e78607ccd9bb9a1e7fcd6c5cc | 1,356 | cs | C# | src/MassTransit/EndpointConvention.cs | kjrobrien/MassTransit | 7e735fd24afb2651ab3f8d2cefda821870f479e5 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-03-29T23:09:02.000Z | 2022-03-29T23:09:02.000Z | src/MassTransit/EndpointConvention.cs | kjrobrien/MassTransit | 7e735fd24afb2651ab3f8d2cefda821870f479e5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/MassTransit/EndpointConvention.cs | kjrobrien/MassTransit | 7e735fd24afb2651ab3f8d2cefda821870f479e5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | namespace MassTransit
{
using System;
public static class EndpointConvention
{
/// <summary>
/// Map the message type to the specified address
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="destinationAddress"></param>
public static void Map<T>(Uri destinationAddress)
where T : class
{
EndpointConventionCache<T>.Map(destinationAddress);
}
/// <summary>
/// Map the message type to the endpoint returned by the specified method
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="endpointAddressProvider"></param>
public static void Map<T>(EndpointAddressProvider<T> endpointAddressProvider)
where T : class
{
EndpointConventionCache<T>.Map(endpointAddressProvider);
}
public static bool TryGetDestinationAddress<T>(out Uri destinationAddress)
where T : class
{
return EndpointConventionCache<T>.TryGetEndpointAddress(out destinationAddress);
}
public static bool TryGetDestinationAddress(Type messageType, out Uri destinationAddress)
{
return EndpointConventionCache.TryGetEndpointAddress(messageType, out destinationAddress);
}
}
}
| 32.285714 | 102 | 0.618732 |
7b7ff99a9da4a2c25cdbd01f587d135c43907884 | 847 | rb | Ruby | lib/bento_search/routes.rb | jimfhahn/bento_search | a4820a1a0d31a936b1035fec8e19faccdde807da | [
"MIT"
] | 29 | 2015-03-12T19:57:37.000Z | 2021-03-22T17:52:52.000Z | lib/bento_search/routes.rb | jimfhahn/bento_search | a4820a1a0d31a936b1035fec8e19faccdde807da | [
"MIT"
] | 14 | 2017-02-06T22:24:24.000Z | 2021-07-01T16:38:05.000Z | lib/bento_search/routes.rb | jimfhahn/bento_search | a4820a1a0d31a936b1035fec8e19faccdde807da | [
"MIT"
] | 9 | 2015-02-11T17:38:40.000Z | 2020-09-30T13:27:04.000Z | # -*- encoding : utf-8 -*-
module BentoSearch
class Routes
def initialize(router, options = {})
@router = router
@options = {:scope => "/bento"}.merge(options)
end
def draw
route_sets.each do |r|
self.send(r)
end
end
protected
def add_routes &blk
@router.instance_exec(@options, &blk)
end
def route_sets
(@options[:only] || default_route_sets) - (@options[:except] || [])
end
def default_route_sets
# :search should always be LAST
[:search]
end
module RouteSets
def search
add_routes do |options|
scope options[:scope] do
get ":engine_id" => "bento_search/search#search", :as => "to_bento_search"
end
end
end
end
include RouteSets
end
end
| 18.413043 | 86 | 0.551358 |
928e5bc54ff166703461dc9995dacb8ef3225853 | 305 | h | C | QtGuiApplication1/QtGuiApplication1/login.h | breakEval13/-DLL_Run_Remplates | b64e1516a165971ce91014df3fd8d3bacc26da0e | [
"Apache-2.0"
] | null | null | null | QtGuiApplication1/QtGuiApplication1/login.h | breakEval13/-DLL_Run_Remplates | b64e1516a165971ce91014df3fd8d3bacc26da0e | [
"Apache-2.0"
] | null | null | null | QtGuiApplication1/QtGuiApplication1/login.h | breakEval13/-DLL_Run_Remplates | b64e1516a165971ce91014df3fd8d3bacc26da0e | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <QDialog>
#include "ui_login.h"
class login : public QDialog
{
Q_OBJECT
public:
explicit login(QWidget *parent = Q_NULLPTR);
~login();
void changeEvent(QEvent * e);
signals:
public slots :
void on_closed_clicked();
void on_logined_clicked();
public:
Ui::login *ui;
};
| 13.26087 | 48 | 0.704918 |
762c2d9a133a7f8f48a5d4d6763d41b1f30fc60d | 764 | asm | Assembly | libsrc/_DEVELOPMENT/target/rc2014/driver/ram/z80/asm_push_di.asm | dikdom/z88dk | 40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0 | [
"ClArtistic"
] | 1 | 2022-03-08T11:55:58.000Z | 2022-03-08T11:55:58.000Z | libsrc/_DEVELOPMENT/target/rc2014/driver/ram/z80/asm_push_di.asm | dikdom/z88dk | 40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0 | [
"ClArtistic"
] | 2 | 2022-03-20T22:17:35.000Z | 2022-03-24T16:10:00.000Z | libsrc/_DEVELOPMENT/target/rc2014/driver/ram/z80/asm_push_di.asm | jorgegv/z88dk | 127130cf11f9ff268ba53e308138b12d2b9be90a | [
"ClArtistic"
] | null | null | null |
; ===============================================================
; Stefano Bodrato
; ===============================================================
;
; void asm_push_di(void)
;
; Save the current ei/di status on the stack and disable ints.
;
; ===============================================================
INCLUDE "config_private.inc"
SECTION code_clib
PUBLIC asm_push_di
.asm_push_di
; exit : stack = ei_di_status
;
; uses : af
ex (sp),hl
push hl ; preserve hl
ld a,i ; cmos z80 has no bug
di
push af
pop hl ; hl = ei_di status
pop af ; af = ret
ex (sp),hl ; restore hl, push ei_di_status
push af
ret
| 19.589744 | 65 | 0.383508 |
988755e4ca33d5a30e54a739df2bfdd9d739e4e7 | 1,027 | html | HTML | saas/templates/saas/billing/balance.html | gikoluo/djaodjin-saas | badd7894ac327191008a1b3a0ebd0d07b55908c3 | [
"BSD-2-Clause"
] | 383 | 2015-03-07T06:19:39.000Z | 2022-03-12T20:53:37.000Z | saas/templates/saas/billing/balance.html | gikoluo/djaodjin-saas | badd7894ac327191008a1b3a0ebd0d07b55908c3 | [
"BSD-2-Clause"
] | 146 | 2015-03-25T22:45:44.000Z | 2022-02-22T08:49:35.000Z | saas/templates/saas/billing/balance.html | gikoluo/djaodjin-saas | badd7894ac327191008a1b3a0ebd0d07b55908c3 | [
"BSD-2-Clause"
] | 111 | 2015-02-12T22:13:07.000Z | 2022-03-11T05:45:53.000Z | {% extends "saas/billing/cart.html" %}
{% block order_title %}Balance due{% endblock %}
{% block order_head %}{% endblock %}
{% block no_invoicables %}<p>You have no balance due.</p>{% endblock %}
{% block order_footer %}
<section id="charge">
{% if not last_charge %}
A charge of {{lines_price|humanize_money}} will be created
on your card. Thank you.
{% else %}
{% with last_charge as charge %}
{% if charge.is_failed or charge.is_disputed %}
<p>
On {{charge.created_at}} we attempted to charge your card
</p>
<div>
<dl>
<dt>card</dt>
<dd>{{charge.last4}}</dd>
</dl>
<dl>
<dt>expires</dt>
<dd>{{charge.exp_date}}</dd>
</dl>
</div>
<p>
The charge
{% if charge.is_failed %}failed
{% else %}
{% if charge.is_disputed %}was disputed
{% endif %}
{% endif %}
(ref: {{charge.processor_key}}).
</p>
<p>
Please enter a valid credit card. A new charge of
{{lines_price|humanize_money}} will be created. Thank you.
</p>
{% endif %}
{% endwith %}
{% endif %}
</section>
{% endblock %}
| 21.395833 | 71 | 0.622201 |
2910c416f2df00ee7511b4db3e260f212a4368f0 | 940 | py | Python | src/main/antlrParser/ExtendedListener/KotlinParserListenerExtended.py | alschmut/code2semantics | af1daf0b8320b534344c5352ae972fb600e21e43 | [
"MIT"
] | 2 | 2020-02-26T22:50:38.000Z | 2020-10-29T10:46:10.000Z | src/main/antlrParser/ExtendedListener/KotlinParserListenerExtended.py | alschmut/linguistic-parser | af1daf0b8320b534344c5352ae972fb600e21e43 | [
"MIT"
] | null | null | null | src/main/antlrParser/ExtendedListener/KotlinParserListenerExtended.py | alschmut/linguistic-parser | af1daf0b8320b534344c5352ae972fb600e21e43 | [
"MIT"
] | null | null | null | from antlrParser.Kotlin.KotlinParserListener import KotlinParserListener
from antlrParser.Kotlin.KotlinParser import KotlinParser
from antlrParser.BaseListener import BaseListener
class KotlinParserListenerExtended(KotlinParserListener, BaseListener):
def enterClassDeclaration(self, ctx:KotlinParser.ClassDeclarationContext):
self.identifiers.set_class_name(ctx.simpleIdentifier().getText(), ctx.start.line)
def enterFunctionDeclaration(self, ctx:KotlinParser.FunctionDeclarationContext):
self.identifiers.set_method_name(ctx.identifier().getText(), ctx.start.line)
def enterMultiVariableDeclaration(self, ctx:KotlinParser.MultiVariableDeclarationContext):
self.identifiers.set_variable_name(ctx.simpleIdentifier().getText(), ctx.start.line)
def enterSimpleIdentifier(self, ctx:KotlinParser.SimpleIdentifierContext):
self.identifiers.set_any_identifier(ctx.getText(), ctx.start.line)
| 55.294118 | 94 | 0.817021 |
9424b70e4743a79461c45dd1c9b777f4c38ca672 | 90 | sql | SQL | modules/flowable-batch-service/src/main/resources/org/flowable/batch/service/db/drop/flowable.postgres.drop.batch.sql | jiandiao/flowable-engine | 1bd26b2b2706fc334264603c69bd021c9152f244 | [
"Apache-2.0"
] | 5,250 | 2016-10-13T08:15:16.000Z | 2022-03-31T13:53:26.000Z | modules/flowable-batch-service/src/main/resources/org/flowable/batch/service/db/drop/flowable.postgres.drop.batch.sql | jiandiao/flowable-engine | 1bd26b2b2706fc334264603c69bd021c9152f244 | [
"Apache-2.0"
] | 1,736 | 2016-10-13T17:03:10.000Z | 2022-03-31T19:27:39.000Z | modules/flowable-batch-service/src/main/resources/org/flowable/batch/service/db/drop/flowable.postgres.drop.batch.sql | jiandiao/flowable-engine | 1bd26b2b2706fc334264603c69bd021c9152f244 | [
"Apache-2.0"
] | 2,271 | 2016-10-13T08:27:26.000Z | 2022-03-31T15:36:02.000Z | drop table if exists FLW_RU_BATCH_PART cascade;
drop table if exists FLW_RU_BATCH cascade; | 45 | 47 | 0.855556 |
11f70f6e207c45a054e4a65f7e92b1c1fb9859c6 | 22,170 | cc | C++ | modules/utility/source/file_recorder_impl.cc | yuxw75/temp | ab2fd478821e6c98ff10f2976ce43f617250cff6 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | modules/utility/source/file_recorder_impl.cc | yuxw75/temp | ab2fd478821e6c98ff10f2976ce43f617250cff6 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | modules/utility/source/file_recorder_impl.cc | yuxw75/temp | ab2fd478821e6c98ff10f2976ce43f617250cff6 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
#include "webrtc/engine_configurations.h"
#include "webrtc/modules/media_file/interface/media_file.h"
#include "webrtc/modules/utility/source/file_recorder_impl.h"
#include "webrtc/system_wrappers/interface/logging.h"
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
#include "webrtc/modules/utility/source/frame_scaler.h"
#include "webrtc/modules/utility/source/video_coder.h"
#include "webrtc/modules/utility/source/video_frames_queue.h"
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
#endif
namespace webrtc {
FileRecorder* FileRecorder::CreateFileRecorder(uint32_t instanceID,
FileFormats fileFormat)
{
switch(fileFormat)
{
case kFileFormatWavFile:
case kFileFormatCompressedFile:
case kFileFormatPreencodedFile:
case kFileFormatPcm16kHzFile:
case kFileFormatPcm8kHzFile:
case kFileFormatPcm32kHzFile:
return new FileRecorderImpl(instanceID, fileFormat);
case kFileFormatAviFile:
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
return new AviRecorder(instanceID, fileFormat);
#else
assert(false);
return NULL;
#endif
}
assert(false);
return NULL;
}
void FileRecorder::DestroyFileRecorder(FileRecorder* recorder)
{
delete recorder;
}
FileRecorderImpl::FileRecorderImpl(uint32_t instanceID,
FileFormats fileFormat)
: _instanceID(instanceID),
_fileFormat(fileFormat),
_moduleFile(MediaFile::CreateMediaFile(_instanceID)),
codec_info_(),
_amrFormat(AMRFileStorage),
_audioBuffer(),
_audioEncoder(instanceID),
_audioResampler()
{
}
FileRecorderImpl::~FileRecorderImpl()
{
MediaFile::DestroyMediaFile(_moduleFile);
}
FileFormats FileRecorderImpl::RecordingFileFormat() const
{
return _fileFormat;
}
int32_t FileRecorderImpl::RegisterModuleFileCallback(
FileCallback* callback)
{
if(_moduleFile == NULL)
{
return -1;
}
return _moduleFile->SetModuleFileCallback(callback);
}
int32_t FileRecorderImpl::StartRecordingAudioFile(
const char* fileName,
const CodecInst& codecInst,
uint32_t notificationTimeMs,
ACMAMRPackingFormat amrFormat)
{
if(_moduleFile == NULL)
{
return -1;
}
codec_info_ = codecInst;
_amrFormat = amrFormat;
int32_t retVal = 0;
if(_fileFormat != kFileFormatAviFile)
{
// AVI files should be started using StartRecordingVideoFile(..) all
// other formats should use this API.
retVal =_moduleFile->StartRecordingAudioFile(fileName, _fileFormat,
codecInst,
notificationTimeMs);
}
if( retVal == 0)
{
retVal = SetUpAudioEncoder();
}
if( retVal != 0)
{
LOG(LS_WARNING) << "Failed to initialize file " << fileName
<< " for recording.";
if(IsRecording())
{
StopRecording();
}
}
return retVal;
}
int32_t FileRecorderImpl::StartRecordingAudioFile(
OutStream& destStream,
const CodecInst& codecInst,
uint32_t notificationTimeMs,
ACMAMRPackingFormat amrFormat)
{
codec_info_ = codecInst;
_amrFormat = amrFormat;
int32_t retVal = _moduleFile->StartRecordingAudioStream(
destStream,
_fileFormat,
codecInst,
notificationTimeMs);
if( retVal == 0)
{
retVal = SetUpAudioEncoder();
}
if( retVal != 0)
{
LOG(LS_WARNING) << "Failed to initialize outStream for recording.";
if(IsRecording())
{
StopRecording();
}
}
return retVal;
}
int32_t FileRecorderImpl::StopRecording()
{
memset(&codec_info_, 0, sizeof(CodecInst));
return _moduleFile->StopRecording();
}
bool FileRecorderImpl::IsRecording() const
{
return _moduleFile->IsRecording();
}
int32_t FileRecorderImpl::RecordAudioToFile(
const AudioFrame& incomingAudioFrame,
const TickTime* playoutTS)
{
if (codec_info_.plfreq == 0)
{
LOG(LS_WARNING) << "RecordAudioToFile() recording audio is not "
<< "turned on.";
return -1;
}
AudioFrame tempAudioFrame;
tempAudioFrame.samples_per_channel_ = 0;
if( incomingAudioFrame.num_channels_ == 2 &&
!_moduleFile->IsStereo())
{
// Recording mono but incoming audio is (interleaved) stereo.
tempAudioFrame.num_channels_ = 1;
tempAudioFrame.sample_rate_hz_ = incomingAudioFrame.sample_rate_hz_;
tempAudioFrame.samples_per_channel_ =
incomingAudioFrame.samples_per_channel_;
for (uint16_t i = 0;
i < (incomingAudioFrame.samples_per_channel_); i++)
{
// Sample value is the average of left and right buffer rounded to
// closest integer value. Note samples can be either 1 or 2 byte.
tempAudioFrame.data_[i] =
((incomingAudioFrame.data_[2 * i] +
incomingAudioFrame.data_[(2 * i) + 1] + 1) >> 1);
}
}
else if( incomingAudioFrame.num_channels_ == 1 &&
_moduleFile->IsStereo())
{
// Recording stereo but incoming audio is mono.
tempAudioFrame.num_channels_ = 2;
tempAudioFrame.sample_rate_hz_ = incomingAudioFrame.sample_rate_hz_;
tempAudioFrame.samples_per_channel_ =
incomingAudioFrame.samples_per_channel_;
for (uint16_t i = 0;
i < (incomingAudioFrame.samples_per_channel_); i++)
{
// Duplicate sample to both channels
tempAudioFrame.data_[2*i] =
incomingAudioFrame.data_[i];
tempAudioFrame.data_[2*i+1] =
incomingAudioFrame.data_[i];
}
}
const AudioFrame* ptrAudioFrame = &incomingAudioFrame;
if(tempAudioFrame.samples_per_channel_ != 0)
{
// If ptrAudioFrame is not empty it contains the audio to be recorded.
ptrAudioFrame = &tempAudioFrame;
}
// Encode the audio data before writing to file. Don't encode if the codec
// is PCM.
// NOTE: stereo recording is only supported for WAV files.
// TODO (hellner): WAV expect PCM in little endian byte order. Not
// "encoding" with PCM coder should be a problem for big endian systems.
size_t encodedLenInBytes = 0;
if (_fileFormat == kFileFormatPreencodedFile ||
STR_CASE_CMP(codec_info_.plname, "L16") != 0)
{
if (_audioEncoder.Encode(*ptrAudioFrame, _audioBuffer,
encodedLenInBytes) == -1)
{
LOG(LS_WARNING) << "RecordAudioToFile() codec "
<< codec_info_.plname
<< " not supported or failed to encode stream.";
return -1;
}
} else {
int outLen = 0;
if(ptrAudioFrame->num_channels_ == 2)
{
// ptrAudioFrame contains interleaved stereo audio.
_audioResampler.ResetIfNeeded(ptrAudioFrame->sample_rate_hz_,
codec_info_.plfreq,
kResamplerSynchronousStereo);
_audioResampler.Push(ptrAudioFrame->data_,
ptrAudioFrame->samples_per_channel_ *
ptrAudioFrame->num_channels_,
(int16_t*)_audioBuffer,
MAX_AUDIO_BUFFER_IN_BYTES, outLen);
} else {
_audioResampler.ResetIfNeeded(ptrAudioFrame->sample_rate_hz_,
codec_info_.plfreq,
kResamplerSynchronous);
_audioResampler.Push(ptrAudioFrame->data_,
ptrAudioFrame->samples_per_channel_,
(int16_t*)_audioBuffer,
MAX_AUDIO_BUFFER_IN_BYTES, outLen);
}
encodedLenInBytes = outLen * sizeof(int16_t);
}
// Codec may not be operating at a frame rate of 10 ms. Whenever enough
// 10 ms chunks of data has been pushed to the encoder an encoded frame
// will be available. Wait until then.
if (encodedLenInBytes)
{
uint16_t msOfData =
ptrAudioFrame->samples_per_channel_ /
uint16_t(ptrAudioFrame->sample_rate_hz_ / 1000);
if (WriteEncodedAudioData(_audioBuffer, encodedLenInBytes, msOfData,
playoutTS) == -1)
{
return -1;
}
}
return 0;
}
int32_t FileRecorderImpl::SetUpAudioEncoder()
{
if (_fileFormat == kFileFormatPreencodedFile ||
STR_CASE_CMP(codec_info_.plname, "L16") != 0)
{
if(_audioEncoder.SetEncodeCodec(codec_info_,_amrFormat) == -1)
{
LOG(LS_ERROR) << "SetUpAudioEncoder() codec "
<< codec_info_.plname << " not supported.";
return -1;
}
}
return 0;
}
int32_t FileRecorderImpl::codec_info(CodecInst& codecInst) const
{
if(codec_info_.plfreq == 0)
{
return -1;
}
codecInst = codec_info_;
return 0;
}
int32_t FileRecorderImpl::WriteEncodedAudioData(
const int8_t* audioBuffer,
size_t bufferLength,
uint16_t /*millisecondsOfData*/,
const TickTime* /*playoutTS*/)
{
return _moduleFile->IncomingAudioData(audioBuffer, bufferLength);
}
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
AviRecorder::AviRecorder(uint32_t instanceID, FileFormats fileFormat)
: FileRecorderImpl(instanceID, fileFormat),
_videoOnly(false),
_thread( 0),
_timeEvent(*EventWrapper::Create()),
_critSec(CriticalSectionWrapper::CreateCriticalSection()),
_writtenVideoFramesCounter(0),
_writtenAudioMS(0),
_writtenVideoMS(0)
{
_videoEncoder = new VideoCoder();
_frameScaler = new FrameScaler();
_videoFramesQueue = new VideoFramesQueue();
_thread = ThreadWrapper::CreateThread(Run, this, kNormalPriority,
"AviRecorder()");
}
AviRecorder::~AviRecorder( )
{
StopRecording( );
delete _videoEncoder;
delete _frameScaler;
delete _videoFramesQueue;
delete _thread;
delete &_timeEvent;
delete _critSec;
}
int32_t AviRecorder::StartRecordingVideoFile(
const char* fileName,
const CodecInst& audioCodecInst,
const VideoCodec& videoCodecInst,
ACMAMRPackingFormat amrFormat,
bool videoOnly)
{
_firstAudioFrameReceived = false;
_videoCodecInst = videoCodecInst;
_videoOnly = videoOnly;
if(_moduleFile->StartRecordingVideoFile(fileName, _fileFormat,
audioCodecInst, videoCodecInst,
videoOnly) != 0)
{
return -1;
}
if(!videoOnly)
{
if(FileRecorderImpl::StartRecordingAudioFile(fileName,audioCodecInst, 0,
amrFormat) !=0)
{
StopRecording();
return -1;
}
}
if( SetUpVideoEncoder() != 0)
{
StopRecording();
return -1;
}
if(_videoOnly)
{
// Writing to AVI file is non-blocking.
// Start non-blocking timer if video only. If recording both video and
// audio let the pushing of audio frames be the timer.
_timeEvent.StartTimer(true, 1000 / _videoCodecInst.maxFramerate);
}
StartThread();
return 0;
}
int32_t AviRecorder::StopRecording()
{
_timeEvent.StopTimer();
StopThread();
return FileRecorderImpl::StopRecording();
}
size_t AviRecorder::CalcI420FrameSize( ) const
{
return 3 * _videoCodecInst.width * _videoCodecInst.height / 2;
}
int32_t AviRecorder::SetUpVideoEncoder()
{
// Size of unencoded data (I420) should be the largest possible frame size
// in a file.
_videoMaxPayloadSize = CalcI420FrameSize();
_videoEncodedData.VerifyAndAllocate(_videoMaxPayloadSize);
_videoCodecInst.plType = _videoEncoder->DefaultPayloadType(
_videoCodecInst.plName);
int32_t useNumberOfCores = 1;
// Set the max payload size to 16000. This means that the codec will try to
// create slices that will fit in 16000 kByte packets. However, the
// Encode() call will still generate one full frame.
if(_videoEncoder->SetEncodeCodec(_videoCodecInst, useNumberOfCores,
16000))
{
return -1;
}
return 0;
}
int32_t AviRecorder::RecordVideoToFile(const I420VideoFrame& videoFrame)
{
CriticalSectionScoped lock(_critSec);
if(!IsRecording() || videoFrame.IsZeroSize())
{
return -1;
}
// The frame is written to file in AviRecorder::Process().
int32_t retVal = _videoFramesQueue->AddFrame(videoFrame);
if(retVal != 0)
{
StopRecording();
}
return retVal;
}
bool AviRecorder::StartThread()
{
unsigned int id;
if( _thread == 0)
{
return false;
}
return _thread->Start(id);
}
bool AviRecorder::StopThread()
{
_critSec->Enter();
if(_thread)
{
ThreadWrapper* thread = _thread;
_thread = NULL;
_timeEvent.Set();
_critSec->Leave();
if(thread->Stop())
{
delete thread;
} else {
return false;
}
} else {
_critSec->Leave();
}
return true;
}
bool AviRecorder::Run( ThreadObj threadObj)
{
return static_cast<AviRecorder*>( threadObj)->Process();
}
int32_t AviRecorder::ProcessAudio()
{
if (_writtenVideoFramesCounter == 0)
{
// Get the most recent frame that is due for writing to file. Since
// frames are unencoded it's safe to throw away frames if necessary
// for synchronizing audio and video.
I420VideoFrame* frameToProcess = _videoFramesQueue->FrameToRecord();
if(frameToProcess)
{
// Syncronize audio to the current frame to process by throwing away
// audio samples with older timestamp than the video frame.
size_t numberOfAudioElements =
_audioFramesToWrite.size();
for (size_t i = 0; i < numberOfAudioElements; ++i)
{
AudioFrameFileInfo* frameInfo = _audioFramesToWrite.front();
if(TickTime::TicksToMilliseconds(
frameInfo->_playoutTS.Ticks()) <
frameToProcess->render_time_ms())
{
delete frameInfo;
_audioFramesToWrite.pop_front();
} else
{
break;
}
}
}
}
// Write all audio up to current timestamp.
int32_t error = 0;
size_t numberOfAudioElements = _audioFramesToWrite.size();
for (size_t i = 0; i < numberOfAudioElements; ++i)
{
AudioFrameFileInfo* frameInfo = _audioFramesToWrite.front();
if((TickTime::Now() - frameInfo->_playoutTS).Milliseconds() > 0)
{
_moduleFile->IncomingAudioData(frameInfo->_audioData,
frameInfo->_audioSize);
_writtenAudioMS += frameInfo->_audioMS;
delete frameInfo;
_audioFramesToWrite.pop_front();
} else {
break;
}
}
return error;
}
bool AviRecorder::Process()
{
switch(_timeEvent.Wait(500))
{
case kEventSignaled:
if(_thread == NULL)
{
return false;
}
break;
case kEventError:
return false;
case kEventTimeout:
// No events triggered. No work to do.
return true;
}
CriticalSectionScoped lock( _critSec);
// Get the most recent frame to write to file (if any). Synchronize it with
// the audio stream (if any). Synchronization the video based on its render
// timestamp (i.e. VideoFrame::RenderTimeMS())
I420VideoFrame* frameToProcess = _videoFramesQueue->FrameToRecord();
if( frameToProcess == NULL)
{
return true;
}
int32_t error = 0;
if(!_videoOnly)
{
if(!_firstAudioFrameReceived)
{
// Video and audio can only be synchronized if both have been
// received.
return true;
}
error = ProcessAudio();
while (_writtenAudioMS > _writtenVideoMS)
{
error = EncodeAndWriteVideoToFile( *frameToProcess);
if( error != 0)
{
LOG(LS_ERROR) << "AviRecorder::Process() error writing to "
<< "file.";
break;
} else {
uint32_t frameLengthMS = 1000 /
_videoCodecInst.maxFramerate;
_writtenVideoFramesCounter++;
_writtenVideoMS += frameLengthMS;
// A full seconds worth of frames have been written.
if(_writtenVideoFramesCounter%_videoCodecInst.maxFramerate == 0)
{
// Frame rate is in frames per seconds. Frame length is
// calculated as an integer division which means it may
// be rounded down. Compensate for this every second.
uint32_t rest = 1000 % frameLengthMS;
_writtenVideoMS += rest;
}
}
}
} else {
// Frame rate is in frames per seconds. Frame length is calculated as an
// integer division which means it may be rounded down. This introduces
// drift. Once a full frame worth of drift has happened, skip writing
// one frame. Note that frame rate is in frames per second so the
// drift is completely compensated for.
uint32_t frameLengthMS = 1000/_videoCodecInst.maxFramerate;
uint32_t restMS = 1000 % frameLengthMS;
uint32_t frameSkip = (_videoCodecInst.maxFramerate *
frameLengthMS) / restMS;
_writtenVideoFramesCounter++;
if(_writtenVideoFramesCounter % frameSkip == 0)
{
_writtenVideoMS += frameLengthMS;
return true;
}
error = EncodeAndWriteVideoToFile( *frameToProcess);
if(error != 0)
{
LOG(LS_ERROR) << "AviRecorder::Process() error writing to file.";
} else {
_writtenVideoMS += frameLengthMS;
}
}
return error == 0;
}
int32_t AviRecorder::EncodeAndWriteVideoToFile(I420VideoFrame& videoFrame)
{
if (!IsRecording() || videoFrame.IsZeroSize())
{
return -1;
}
if(_frameScaler->ResizeFrameIfNeeded(&videoFrame, _videoCodecInst.width,
_videoCodecInst.height) != 0)
{
return -1;
}
_videoEncodedData.payloadSize = 0;
if( STR_CASE_CMP(_videoCodecInst.plName, "I420") == 0)
{
size_t length =
CalcBufferSize(kI420, videoFrame.width(), videoFrame.height());
_videoEncodedData.VerifyAndAllocate(length);
// I420 is raw data. No encoding needed (each sample is represented by
// 1 byte so there is no difference depending on endianness).
int ret_length = ExtractBuffer(videoFrame, length,
_videoEncodedData.payloadData);
if (ret_length < 0)
return -1;
_videoEncodedData.payloadSize = ret_length;
_videoEncodedData.frameType = kVideoFrameKey;
}else {
if( _videoEncoder->Encode(videoFrame, _videoEncodedData) != 0)
{
return -1;
}
}
if(_videoEncodedData.payloadSize > 0)
{
if(_moduleFile->IncomingAVIVideoData(
(int8_t*)(_videoEncodedData.payloadData),
_videoEncodedData.payloadSize))
{
LOG(LS_ERROR) << "Error writing AVI file.";
return -1;
}
} else {
LOG(LS_ERROR) << "FileRecorder::RecordVideoToFile() frame dropped by "
<< "encoder, bitrate likely too low.";
}
return 0;
}
// Store audio frame in the _audioFramesToWrite buffer. The writing to file
// happens in AviRecorder::Process().
int32_t AviRecorder::WriteEncodedAudioData(
const int8_t* audioBuffer,
size_t bufferLength,
uint16_t millisecondsOfData,
const TickTime* playoutTS)
{
CriticalSectionScoped lock(_critSec);
if (!IsRecording())
{
return -1;
}
if (bufferLength > MAX_AUDIO_BUFFER_IN_BYTES)
{
return -1;
}
if (_videoOnly)
{
return -1;
}
if (_audioFramesToWrite.size() > kMaxAudioBufferQueueLength)
{
StopRecording();
return -1;
}
_firstAudioFrameReceived = true;
if(playoutTS)
{
_audioFramesToWrite.push_back(new AudioFrameFileInfo(audioBuffer,
bufferLength,
millisecondsOfData,
*playoutTS));
} else {
_audioFramesToWrite.push_back(new AudioFrameFileInfo(audioBuffer,
bufferLength,
millisecondsOfData,
TickTime::Now()));
}
_timeEvent.Set();
return 0;
}
#endif // WEBRTC_MODULE_UTILITY_VIDEO
} // namespace webrtc
| 30.621547 | 80 | 0.594407 |
6b56a5a387d17ee47142f5b26760d0e62b36bbcf | 1,134 | html | HTML | app/templates/hello.html | omiguelperez/flask-todo | 516f6b23a667088cef2af88125f0a8f4a256328a | [
"MIT"
] | null | null | null | app/templates/hello.html | omiguelperez/flask-todo | 516f6b23a667088cef2af88125f0a8f4a256328a | [
"MIT"
] | null | null | null | app/templates/hello.html | omiguelperez/flask-todo | 516f6b23a667088cef2af88125f0a8f4a256328a | [
"MIT"
] | null | null | null | {% extends "base.html" %}
{% import "macros.html" as macros %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}
{{ super() }}
Welcome
{% endblock title %}
{% block content %}
<div class="container">
<div class="row mt-5">
<div class="col-xs-12 col-md-6 offset-md-3">
{% if user_ip %}
<h3>Hello {{ current_user.id }}! Your ip is {{ user_ip }}</h3>
{% else %}
<a href="{{ url_for('index') }}">Go to index!</a>
{% endif %}
</div>
</div>
<div class="row mt-5">
<div class="col-xs-12 col-md-6 offset-md-3">
<h3>Create a new task</h3>
{{ wtf.quick_form(todo_form) }}
</div>
<div class="col-xs-12 col-md-6 offset-md-3">
<h3>Todos</h3>
<ul>
{% for todo in todos %}
{{ macros.render_todo(todo, delete_form, update_form) }}
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock %} | 29.842105 | 82 | 0.417108 |
a6d85c59ba00cd8f1ecf8b02bf1485144075f910 | 123 | sql | SQL | src/txlogsv/tables.sql | endurox-dev/tuxapp | 782bb4d9a0bb31dd58922861f4d713550d912b24 | [
"MIT"
] | null | null | null | src/txlogsv/tables.sql | endurox-dev/tuxapp | 782bb4d9a0bb31dd58922861f4d713550d912b24 | [
"MIT"
] | null | null | null | src/txlogsv/tables.sql | endurox-dev/tuxapp | 782bb4d9a0bb31dd58922861f4d713550d912b24 | [
"MIT"
] | 1 | 2022-02-06T12:43:33.000Z | 2022-02-06T12:43:33.000Z | CREATE TABLE txlog
(
id number(10,0) NOT NULL,
node number(5,0) NOT NULL,
data varchar2(256) NOT NULL
);
| 15.375 | 35 | 0.609756 |
2f4c234696388ed21768585eec421cd693c0ecfc | 2,582 | php | PHP | app/User.php | leonnelm62/foodcommand | 8117dccc3f5db0cf2a077b5d263487f9338afff2 | [
"MIT"
] | null | null | null | app/User.php | leonnelm62/foodcommand | 8117dccc3f5db0cf2a077b5d263487f9338afff2 | [
"MIT"
] | 1 | 2021-02-02T17:11:42.000Z | 2021-02-02T17:11:42.000Z | app/User.php | leonnelm62/foodcommand | 8117dccc3f5db0cf2a077b5d263487f9338afff2 | [
"MIT"
] | null | null | null | <?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Passport\HasApiTokens;
class User extends Authenticatable
{
use Notifiable, HasApiTokens;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'first_name', 'last_name', 'email', 'password', 'type', 'email_token', 'mobile_token', 'mobile', 'verified_email',
'verified_mobile', 'billing_address', 'shipping_address', 'avatar',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
public function restaurant()
{
// Si je suis un vfournisseur
return $this->hasOne(Restaurant::class);
}
public function customerOrders()
{
// Si je suis un client
return $this->hasMany(Order::class);
}
public function vendorOrders()
{
// Si je suis un fournisseur
return $this->hasManyThrough(Order::class, Product::class);
}
public function customerPayments()
{
// Si c'est le client
return $this->hasMany(Payment::class, 'customer_id', 'id');
}
public function vendorPayments()
{
// Si c'est le fournisseur
return $this->hasMany(Payment::class, 'vendor_id', 'id');
}
public function products()
{
return $this->hasMany(Product::class);
}
// public function follows()
// {
// return $this->hasMany(Follow::class);
// }
public function billingAddress()
{
return $this->hasMany(Address::class, 'id', 'billing_address');
}
public function shippingAddress()
{
return $this->hasMany(Address::class, 'id', 'shipping_address');
}
public function cart()
{
return $this->hasMany(Cart::class);
}
public function transactions()
{
return $this->hasMany(Transaction::class);
}
public function invoices()
{
return $this->hasMany(Invoice::class);
}
public function favourites()
{
return $this->belongsToMany(Product::class);
}
public function followedRestaurants()
{
return $this->belongsToMany(Restaurant::class);
}
}
| 22.068376 | 122 | 0.595662 |
2f0e4d5a86822d22a309739ab7536254ad4bf318 | 844 | php | PHP | frontend/views/customer/index.php | cadoyi/istudy | d7e3213ba375b54065aaa70f95fe07de292a9f05 | [
"BSD-3-Clause"
] | null | null | null | frontend/views/customer/index.php | cadoyi/istudy | d7e3213ba375b54065aaa70f95fe07de292a9f05 | [
"BSD-3-Clause"
] | null | null | null | frontend/views/customer/index.php | cadoyi/istudy | d7e3213ba375b54065aaa70f95fe07de292a9f05 | [
"BSD-3-Clause"
] | null | null | null | <?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use core\widgets\ImageInput;
$this->registerCssFile('@web/css/login.css', ['depends' => ['common']]);
?>
<?php
/**
* @var $this yii\web\View
*
*/
?>
<?php $form = ActiveForm::begin() ?>
<div class="col-xs-12">
<div class="form-group">
<label for="customer_email"><?= Html::encode('账号') ?></label>
<span class="form-control" id="customer_email"><?= Html::encode($customer->email) ?></span>
</div>
<?= $form->field($customer, 'nickname') ?>
<?= $form->field($profile, 'avatorFile')->widget(ImageInput::className(), [
'url' => $profile->getAvatorUrl(),
'deleteAttribute' => 'avatorDelete',
])?>
<?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-primary'])?>
</div>
<?php ActiveForm::end() ?> | 30.142857 | 94 | 0.588863 |
933f1b8d2444fcdbc1da75f0be188231035e47c3 | 642 | asm | Assembly | programs/oeis/082/A082405.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/082/A082405.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/082/A082405.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A082405: a(n) = 34*a(n-1) - a(n-2); a(0)=0, a(1)=6.
; 0,6,204,6930,235416,7997214,271669860,9228778026,313506783024,10650001844790,361786555939836,12290092900109634,417501372047787720,14182756556724672846,481796221556591089044,16366888776367372354650,555992422174934068969056,18887375465171390972593254,641614773393652358999201580,21796014919919008815000260466,740422892503852647351009654264,25152582330211071001119327984510,854447376334672561390706141819076,29026058213048656016282889493864074,986031531867319631992227536649559440
mul $0,2
mov $2,2
lpb $0
sub $0,1
add $2,$1
add $1,$2
add $1,$2
add $2,$1
lpe
div $1,4
mov $0,$1
| 42.8 | 479 | 0.82243 |
8b44d9f53bbb57cd19caca2ca671221c59f6ead8 | 982 | sql | SQL | src/test/tinc/tincrepo/dml/functional/sql/dml_boundary_date.sql | lintzc/GPDB | b48c8b97da18f495c10065d0853db87960aebae2 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | src/test/tinc/tincrepo/dml/functional/sql/dml_boundary_date.sql | lintzc/GPDB | b48c8b97da18f495c10065d0853db87960aebae2 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | src/test/tinc/tincrepo/dml/functional/sql/dml_boundary_date.sql | lintzc/GPDB | b48c8b97da18f495c10065d0853db87960aebae2 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | -- @author prabhd
-- @created 2012-12-05 12:00:00
-- @modified 2012-12-05 12:00:00
-- @tags dml
-- @db_name dmldb
-- @description test: Boundary test for date
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
DROP TABLE IF EXISTS dml_date;
CREATE TABLE dml_date ( a date) distributed by (a);
-- Simple DML
INSERT INTO dml_date VALUES ('2013-01-01 08:00:00.000000'::date);
SELECT * FROM dml_date ORDER BY 1;
INSERT INTO dml_date VALUES ('4713-01-01 BC');
SELECT * FROM dml_date ORDER BY 1;
INSERT INTO dml_date select to_date('3232098', 'MM/DD/YYYY');
SELECT * FROM dml_date ORDER BY 1;
UPDATE dml_date SET a = '4713-01-01 BC';
SELECT * FROM dml_date ORDER BY 1;
-- OUT OF RANGE VALUES
INSERT INTO dml_date VALUES ('0000-01-01 08:00:00.000000'::date);
SELECT * FROM dml_date ORDER BY 1;
INSERT INTO dml_date VALUES ('4714-01-01 BC');
SELECT * FROM dml_date ORDER BY 1;
UPDATE dml_date SET a = '4714-01-01 BC';
SELECT * FROM dml_date ORDER BY 1;
| 30.6875 | 65 | 0.723014 |
fb7d08fdc9a4ed4db4e3edfbc0a1b86eb0b2e7f1 | 1,829 | java | Java | java-impl/linked-lists/blocking-jcstress-tests/src/main/java/ua/ds/TotalBlockingListConcurrentAdd.java | Alex-Diez/data-structure-experiments | b4c30939a7b672de7f9c506a7c13cba84226de92 | [
"MIT"
] | 1 | 2017-09-01T01:31:18.000Z | 2017-09-01T01:31:18.000Z | java-impl/linked-lists/blocking-jcstress-tests/src/main/java/ua/ds/TotalBlockingListConcurrentAdd.java | Alex-Diez/data-structure-experiments | b4c30939a7b672de7f9c506a7c13cba84226de92 | [
"MIT"
] | null | null | null | java-impl/linked-lists/blocking-jcstress-tests/src/main/java/ua/ds/TotalBlockingListConcurrentAdd.java | Alex-Diez/data-structure-experiments | b4c30939a7b672de7f9c506a7c13cba84226de92 | [
"MIT"
] | null | null | null | package ua.ds;
import org.openjdk.jcstress.annotations.Actor;
import org.openjdk.jcstress.annotations.Arbiter;
import org.openjdk.jcstress.annotations.JCStressTest;
import org.openjdk.jcstress.annotations.Outcome;
import org.openjdk.jcstress.annotations.State;
import org.openjdk.jcstress.infra.results.II_Result;
import org.openjdk.jcstress.infra.results.ZZ_Result;
import static org.openjdk.jcstress.annotations.Expect.ACCEPTABLE;
import static org.openjdk.jcstress.annotations.Expect.ACCEPTABLE_INTERESTING;
public class TotalBlockingListConcurrentAdd {
@JCStressTest
@Outcome(id = "true, true", expect = ACCEPTABLE, desc = "Item was added")
@State
public static class Contains {
private TotalBlockingList list = new TotalBlockingList();
@Actor
public void actor1() {
list.add(1);
}
@Actor
public void actor2() {
list.add(2);
}
@Arbiter
public void reader(ZZ_Result result) {
result.r1 = list.contains(1);
result.r2 = list.contains(2);
}
}
@JCStressTest
@Outcome(id = "1, 2", expect = ACCEPTABLE, desc = "Items were added")
@Outcome(id = "2, 1", expect = ACCEPTABLE, desc = "Items were added")
@Outcome(id = "2, -1", expect = ACCEPTABLE_INTERESTING, desc = "Second item was added")
@Outcome(id = "1, -1", expect = ACCEPTABLE_INTERESTING, desc = "First item was added")
@Outcome(id = "-1, -1", expect = ACCEPTABLE_INTERESTING, desc = "No item was added")
@State
public static class Get {
private TotalBlockingList list = new TotalBlockingList();
@Actor
public void actor1() {
list.add(1);
}
@Actor
public void actor2() {
list.add(2);
}
@Actor
public void reader(II_Result result) {
result.r1 = list.get(0).orElse(-1);
result.r2 = list.get(1).orElse(-1);
}
}
}
| 27.712121 | 89 | 0.682887 |
56b4f1b4d35ba74cc60bbbcd0d240075f17d782d | 58,177 | html | HTML | javadoc/org/apache/cassandra/cql3/class-use/ColumnIdentifier.html | bharish1997/cassandra_for_python3 | fdeac8f7d0b4738ae9d8441b7a7e6fc775f0cc3a | [
"Apache-2.0"
] | 1 | 2020-04-22T06:18:35.000Z | 2020-04-22T06:18:35.000Z | javadoc/org/apache/cassandra/cql3/class-use/ColumnIdentifier.html | bharish1997/cassandra_for_python3 | fdeac8f7d0b4738ae9d8441b7a7e6fc775f0cc3a | [
"Apache-2.0"
] | null | null | null | javadoc/org/apache/cassandra/cql3/class-use/ColumnIdentifier.html | bharish1997/cassandra_for_python3 | fdeac8f7d0b4738ae9d8441b7a7e6fc775f0cc3a | [
"Apache-2.0"
] | null | null | null | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_242) on Tue Feb 11 09:57:21 AEDT 2020 -->
<title>Uses of Class org.apache.cassandra.cql3.ColumnIdentifier (apache-cassandra API)</title>
<meta name="date" content="2020-02-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.apache.cassandra.cql3.ColumnIdentifier (apache-cassandra API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/cassandra/cql3/class-use/ColumnIdentifier.html" target="_top">Frames</a></li>
<li><a href="ColumnIdentifier.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.apache.cassandra.cql3.ColumnIdentifier" class="title">Uses of Class<br>org.apache.cassandra.cql3.ColumnIdentifier</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.cassandra.config">org.apache.cassandra.config</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.apache.cassandra.cql3">org.apache.cassandra.cql3</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.cassandra.cql3.functions">org.apache.cassandra.cql3.functions</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.apache.cassandra.cql3.selection">org.apache.cassandra.cql3.selection</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.cassandra.cql3.statements">org.apache.cassandra.cql3.statements</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.apache.cassandra.db">org.apache.cassandra.db</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.cassandra.db.marshal">org.apache.cassandra.db.marshal</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.apache.cassandra.config">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> in <a href="../../../../../org/apache/cassandra/config/package-summary.html">org.apache.cassandra.config</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/cassandra/config/package-summary.html">org.apache.cassandra.config</a> that return <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></code></td>
<td class="colLast"><span class="typeNameLabel">ColumnDefinition.Raw.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/ColumnDefinition.Raw.html#getIdentifier-org.apache.cassandra.config.CFMetaData-">getIdentifier</a></span>(<a href="../../../../../org/apache/cassandra/config/CFMetaData.html" title="class in org.apache.cassandra.config">CFMetaData</a> cfm)</code>
<div class="block">Get the identifier corresponding to this raw column, without assuming this is an
existing column (unlike <a href="../../../../../org/apache/cassandra/config/ColumnDefinition.Raw.html#prepare-org.apache.cassandra.config.CFMetaData-"><code>ColumnDefinition.Raw.prepare(org.apache.cassandra.config.CFMetaData)</code></a>).</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/cassandra/config/package-summary.html">org.apache.cassandra.config</a> that return types with arguments of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static java.util.Collection<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>></code></td>
<td class="colLast"><span class="typeNameLabel">ColumnDefinition.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/ColumnDefinition.html#toIdentifiers-java.util.Collection-">toIdentifiers</a></span>(java.util.Collection<<a href="../../../../../org/apache/cassandra/config/ColumnDefinition.html" title="class in org.apache.cassandra.config">ColumnDefinition</a>> definitions)</code>
<div class="block">Converts the specified column definitions into column identifiers.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/cassandra/config/package-summary.html">org.apache.cassandra.config</a> with parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/config/CFMetaData.Builder.html" title="class in org.apache.cassandra.config">CFMetaData.Builder</a></code></td>
<td class="colLast"><span class="typeNameLabel">CFMetaData.Builder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/CFMetaData.Builder.html#addClusteringColumn-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.db.marshal.AbstractType-">addClusteringColumn</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> name,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a> type)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/config/CFMetaData.Builder.html" title="class in org.apache.cassandra.config">CFMetaData.Builder</a></code></td>
<td class="colLast"><span class="typeNameLabel">CFMetaData.Builder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/CFMetaData.Builder.html#addPartitionKey-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.db.marshal.AbstractType-">addPartitionKey</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> name,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a> type)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/config/CFMetaData.Builder.html" title="class in org.apache.cassandra.config">CFMetaData.Builder</a></code></td>
<td class="colLast"><span class="typeNameLabel">CFMetaData.Builder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/CFMetaData.Builder.html#addRegularColumn-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.db.marshal.AbstractType-">addRegularColumn</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> name,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a> type)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/config/CFMetaData.Builder.html" title="class in org.apache.cassandra.config">CFMetaData.Builder</a></code></td>
<td class="colLast"><span class="typeNameLabel">CFMetaData.Builder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/CFMetaData.Builder.html#addStaticColumn-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.db.marshal.AbstractType-">addStaticColumn</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> name,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a> type)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/config/ColumnDefinition.html" title="class in org.apache.cassandra.config">ColumnDefinition</a></code></td>
<td class="colLast"><span class="typeNameLabel">CFMetaData.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/CFMetaData.html#getColumnDefinition-org.apache.cassandra.cql3.ColumnIdentifier-">getColumnDefinition</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> name)</code>
<div class="block">Returns the ColumnDefinition for <code>name</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/config/ColumnDefinition.html" title="class in org.apache.cassandra.config">ColumnDefinition</a></code></td>
<td class="colLast"><span class="typeNameLabel">CFMetaData.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/CFMetaData.html#getColumnDefinitionForCQL-org.apache.cassandra.cql3.ColumnIdentifier-">getColumnDefinitionForCQL</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> name)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><span class="typeNameLabel">ViewDefinition.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/ViewDefinition.html#includes-org.apache.cassandra.cql3.ColumnIdentifier-">includes</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> column)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">CFMetaData.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/CFMetaData.html#renameColumn-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.cql3.ColumnIdentifier-">renameColumn</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> from,
<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> to)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">ViewDefinition.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/ViewDefinition.html#renameColumn-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.cql3.ColumnIdentifier-">renameColumn</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> from,
<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> to)</code>
<div class="block">Replace the column 'from' with 'to' in this materialized view definition's partition,
clustering, or included columns.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/config/ColumnDefinition.html" title="class in org.apache.cassandra.config">ColumnDefinition</a></code></td>
<td class="colLast"><span class="typeNameLabel">ColumnDefinition.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/ColumnDefinition.html#withNewName-org.apache.cassandra.cql3.ColumnIdentifier-">withNewName</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> newName)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../../org/apache/cassandra/config/package-summary.html">org.apache.cassandra.config</a> with parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/config/ColumnDefinition.html#ColumnDefinition-java.lang.String-java.lang.String-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.db.marshal.AbstractType-int-org.apache.cassandra.config.ColumnDefinition.Kind-">ColumnDefinition</a></span>(java.lang.String ksName,
java.lang.String cfName,
<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> name,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?> type,
int position,
<a href="../../../../../org/apache/cassandra/config/ColumnDefinition.Kind.html" title="enum in org.apache.cassandra.config">ColumnDefinition.Kind</a> kind)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.cassandra.cql3">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> in <a href="../../../../../org/apache/cassandra/cql3/package-summary.html">org.apache.cassandra.cql3</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../../org/apache/cassandra/cql3/package-summary.html">org.apache.cassandra.cql3</a> declared as <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></code></td>
<td class="colLast"><span class="typeNameLabel">Json.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/Json.html#JSON_COLUMN_ID">JSON_COLUMN_ID</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></code></td>
<td class="colLast"><span class="typeNameLabel">ColumnSpecification.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/ColumnSpecification.html#name">name</a></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/cassandra/cql3/package-summary.html">org.apache.cassandra.cql3</a> that return <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></code></td>
<td class="colLast"><span class="typeNameLabel">ColumnIdentifier.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html#clone-org.apache.cassandra.utils.memory.AbstractAllocator-">clone</a></span>(<a href="../../../../../org/apache/cassandra/utils/memory/AbstractAllocator.html" title="class in org.apache.cassandra.utils.memory">AbstractAllocator</a> allocator)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></code></td>
<td class="colLast"><span class="typeNameLabel">ColumnIdentifier.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html#getInterned-org.apache.cassandra.db.marshal.AbstractType-java.nio.ByteBuffer-java.lang.String-">getInterned</a></span>(<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?> type,
java.nio.ByteBuffer bytes,
java.lang.String text)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></code></td>
<td class="colLast"><span class="typeNameLabel">ColumnIdentifier.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html#getInterned-java.nio.ByteBuffer-org.apache.cassandra.db.marshal.AbstractType-">getInterned</a></span>(java.nio.ByteBuffer bytes,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?> type)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></code></td>
<td class="colLast"><span class="typeNameLabel">ColumnIdentifier.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html#getInterned-java.lang.String-boolean-">getInterned</a></span>(java.lang.String rawText,
boolean keepCase)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/cassandra/cql3/package-summary.html">org.apache.cassandra.cql3</a> that return types with arguments of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static java.util.Map<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>,<a href="../../../../../org/apache/cassandra/cql3/Term.html" title="interface in org.apache.cassandra.cql3">Term</a>></code></td>
<td class="colLast"><span class="typeNameLabel">Json.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/Json.html#parseJson-java.lang.String-java.util.Collection-">parseJson</a></span>(java.lang.String jsonString,
java.util.Collection<<a href="../../../../../org/apache/cassandra/config/ColumnDefinition.html" title="class in org.apache.cassandra.config">ColumnDefinition</a>> expectedReceivers)</code>
<div class="block">Given a JSON string, return a map of columns to their values for the insert.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/cassandra/cql3/package-summary.html">org.apache.cassandra.cql3</a> with parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><span class="typeNameLabel">ColumnIdentifier.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html#compareTo-org.apache.cassandra.cql3.ColumnIdentifier-">compareTo</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> that)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/cql3/Term.html" title="interface in org.apache.cassandra.cql3">Term</a></code></td>
<td class="colLast"><span class="typeNameLabel">QueryOptions.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/QueryOptions.html#getJsonColumnValue-int-org.apache.cassandra.cql3.ColumnIdentifier-java.util.Collection-">getJsonColumnValue</a></span>(int bindIndex,
<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> columnName,
java.util.Collection<<a href="../../../../../org/apache/cassandra/config/ColumnDefinition.html" title="class in org.apache.cassandra.config">ColumnDefinition</a>> expectedReceivers)</code>
<div class="block">Returns the term corresponding to column <code>columnName</code> in the JSON value of bind index <code>bindIndex</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/cql3/ColumnSpecification.html" title="class in org.apache.cassandra.cql3">ColumnSpecification</a></code></td>
<td class="colLast"><span class="typeNameLabel">ColumnSpecification.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/ColumnSpecification.html#withAlias-org.apache.cassandra.cql3.ColumnIdentifier-">withAlias</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> alias)</code>
<div class="block">Returns a new <code>ColumnSpecification</code> for the same column but with the specified alias.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../../org/apache/cassandra/cql3/package-summary.html">org.apache.cassandra.cql3</a> with parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/ColumnSpecification.html#ColumnSpecification-java.lang.String-java.lang.String-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.db.marshal.AbstractType-">ColumnSpecification</a></span>(java.lang.String ksName,
java.lang.String cfName,
<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> name,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?> type)</code> </td>
</tr>
<tr class="rowColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/UTName.html#UTName-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.cql3.ColumnIdentifier-">UTName</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> ksName,
<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> utName)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructor parameters in <a href="../../../../../org/apache/cassandra/cql3/package-summary.html">org.apache.cassandra.cql3</a> with type arguments of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/VariableSpecifications.html#VariableSpecifications-java.util.List-">VariableSpecifications</a></span>(java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>> variableNames)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.cassandra.cql3.functions">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> in <a href="../../../../../org/apache/cassandra/cql3/functions/package-summary.html">org.apache.cassandra.cql3.functions</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../../org/apache/cassandra/cql3/functions/package-summary.html">org.apache.cassandra.cql3.functions</a> with type parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>></code></td>
<td class="colLast"><span class="typeNameLabel">UDFunction.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/functions/UDFunction.html#argNames">argNames</a></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/cassandra/cql3/functions/package-summary.html">org.apache.cassandra.cql3.functions</a> that return types with arguments of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>></code></td>
<td class="colLast"><span class="typeNameLabel">UDFunction.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/functions/UDFunction.html#argNames--">argNames</a></span>()</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Method parameters in <a href="../../../../../org/apache/cassandra/cql3/functions/package-summary.html">org.apache.cassandra.cql3.functions</a> with type arguments of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/cassandra/cql3/functions/UDFunction.html" title="class in org.apache.cassandra.cql3.functions">UDFunction</a></code></td>
<td class="colLast"><span class="typeNameLabel">UDFunction.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/functions/UDFunction.html#create-org.apache.cassandra.cql3.functions.FunctionName-java.util.List-java.util.List-org.apache.cassandra.db.marshal.AbstractType-boolean-java.lang.String-java.lang.String-">create</a></span>(<a href="../../../../../org/apache/cassandra/cql3/functions/FunctionName.html" title="class in org.apache.cassandra.cql3.functions">FunctionName</a> name,
java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>> argNames,
java.util.List<<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?>> argTypes,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?> returnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/cassandra/cql3/functions/UDFunction.html" title="class in org.apache.cassandra.cql3.functions">UDFunction</a></code></td>
<td class="colLast"><span class="typeNameLabel">UDFunction.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/functions/UDFunction.html#createBrokenFunction-org.apache.cassandra.cql3.functions.FunctionName-java.util.List-java.util.List-org.apache.cassandra.db.marshal.AbstractType-boolean-java.lang.String-java.lang.String-org.apache.cassandra.exceptions.InvalidRequestException-">createBrokenFunction</a></span>(<a href="../../../../../org/apache/cassandra/cql3/functions/FunctionName.html" title="class in org.apache.cassandra.cql3.functions">FunctionName</a> name,
java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>> argNames,
java.util.List<<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?>> argTypes,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?> returnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body,
<a href="../../../../../org/apache/cassandra/exceptions/InvalidRequestException.html" title="class in org.apache.cassandra.exceptions">InvalidRequestException</a> reason)</code>
<div class="block">It can happen that a function has been declared (is listed in the scheam) but cannot
be loaded (maybe only on some nodes).</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructor parameters in <a href="../../../../../org/apache/cassandra/cql3/functions/package-summary.html">org.apache.cassandra.cql3.functions</a> with type arguments of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/functions/UDFunction.html#UDFunction-org.apache.cassandra.cql3.functions.FunctionName-java.util.List-java.util.List-org.apache.cassandra.db.marshal.AbstractType-boolean-java.lang.String-java.lang.String-">UDFunction</a></span>(<a href="../../../../../org/apache/cassandra/cql3/functions/FunctionName.html" title="class in org.apache.cassandra.cql3.functions">FunctionName</a> name,
java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>> argNames,
java.util.List<<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?>> argTypes,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?> returnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body)</code> </td>
</tr>
<tr class="rowColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/functions/UDFunction.html#UDFunction-org.apache.cassandra.cql3.functions.FunctionName-java.util.List-java.util.List-com.datastax.driver.core.DataType:A-org.apache.cassandra.db.marshal.AbstractType-com.datastax.driver.core.DataType-boolean-java.lang.String-java.lang.String-">UDFunction</a></span>(<a href="../../../../../org/apache/cassandra/cql3/functions/FunctionName.html" title="class in org.apache.cassandra.cql3.functions">FunctionName</a> name,
java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>> argNames,
java.util.List<<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?>> argTypes,
com.datastax.driver.core.DataType[] argDataTypes,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?> returnType,
com.datastax.driver.core.DataType returnDataType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.cassandra.cql3.selection">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> in <a href="../../../../../org/apache/cassandra/cql3/selection/package-summary.html">org.apache.cassandra.cql3.selection</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../../org/apache/cassandra/cql3/selection/package-summary.html">org.apache.cassandra.cql3.selection</a> declared as <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></code></td>
<td class="colLast"><span class="typeNameLabel">RawSelector.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/selection/RawSelector.html#alias">alias</a></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../../org/apache/cassandra/cql3/selection/package-summary.html">org.apache.cassandra.cql3.selection</a> with parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/selection/RawSelector.html#RawSelector-org.apache.cassandra.cql3.selection.Selectable.Raw-org.apache.cassandra.cql3.ColumnIdentifier-">RawSelector</a></span>(<a href="../../../../../org/apache/cassandra/cql3/selection/Selectable.Raw.html" title="class in org.apache.cassandra.cql3.selection">Selectable.Raw</a> selectable,
<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> alias)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.cassandra.cql3.statements">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> in <a href="../../../../../org/apache/cassandra/cql3/statements/package-summary.html">org.apache.cassandra.cql3.statements</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../../org/apache/cassandra/cql3/statements/package-summary.html">org.apache.cassandra.cql3.statements</a> declared as <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></code></td>
<td class="colLast"><span class="typeNameLabel">IndexTarget.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/IndexTarget.html#column">column</a></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/cassandra/cql3/statements/package-summary.html">org.apache.cassandra.cql3.statements</a> with parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">CreateTableStatement.RawStatement.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/CreateTableStatement.RawStatement.html#addColumnAlias-org.apache.cassandra.cql3.ColumnIdentifier-">addColumnAlias</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> alias)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">CreateTableStatement.RawStatement.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/CreateTableStatement.RawStatement.html#addDefinition-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.cql3.CQL3Type.Raw-boolean-">addDefinition</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> def,
<a href="../../../../../org/apache/cassandra/cql3/CQL3Type.Raw.html" title="class in org.apache.cassandra.cql3">CQL3Type.Raw</a> type,
boolean isStatic)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a></code></td>
<td class="colLast"><span class="typeNameLabel">CFProperties.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/CFProperties.html#getReversableType-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.db.marshal.AbstractType-">getReversableType</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> targetIdentifier,
<a href="../../../../../org/apache/cassandra/db/marshal/AbstractType.html" title="class in org.apache.cassandra.db.marshal">AbstractType</a><?> type)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">CFProperties.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/CFProperties.html#setOrdering-org.apache.cassandra.cql3.ColumnIdentifier-boolean-">setOrdering</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> alias,
boolean reversed)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Method parameters in <a href="../../../../../org/apache/cassandra/cql3/statements/package-summary.html">org.apache.cassandra.cql3.statements</a> with type arguments of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">CreateTableStatement.RawStatement.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/CreateTableStatement.RawStatement.html#addKeyAliases-java.util.List-">addKeyAliases</a></span>(java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>> aliases)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">ParsedStatement.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/ParsedStatement.html#setBoundVariables-java.util.List-">setBoundVariables</a></span>(java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>> boundNames)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../../org/apache/cassandra/cql3/statements/package-summary.html">org.apache.cassandra.cql3.statements</a> with parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/IndexTarget.html#IndexTarget-org.apache.cassandra.cql3.ColumnIdentifier-org.apache.cassandra.cql3.statements.IndexTarget.Type-">IndexTarget</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> column,
<a href="../../../../../org/apache/cassandra/cql3/statements/IndexTarget.Type.html" title="enum in org.apache.cassandra.cql3.statements">IndexTarget.Type</a> type)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructor parameters in <a href="../../../../../org/apache/cassandra/cql3/statements/package-summary.html">org.apache.cassandra.cql3.statements</a> with type arguments of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/CreateFunctionStatement.html#CreateFunctionStatement-org.apache.cassandra.cql3.functions.FunctionName-java.lang.String-java.lang.String-java.util.List-java.util.List-org.apache.cassandra.cql3.CQL3Type.Raw-boolean-boolean-boolean-">CreateFunctionStatement</a></span>(<a href="../../../../../org/apache/cassandra/cql3/functions/FunctionName.html" title="class in org.apache.cassandra.cql3.functions">FunctionName</a> functionName,
java.lang.String language,
java.lang.String body,
java.util.List<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>> argNames,
java.util.List<<a href="../../../../../org/apache/cassandra/cql3/CQL3Type.Raw.html" title="class in org.apache.cassandra.cql3">CQL3Type.Raw</a>> argRawTypes,
<a href="../../../../../org/apache/cassandra/cql3/CQL3Type.Raw.html" title="class in org.apache.cassandra.cql3">CQL3Type.Raw</a> rawReturnType,
boolean calledOnNullInput,
boolean orReplace,
boolean ifNotExists)</code> </td>
</tr>
<tr class="rowColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/cql3/statements/CreateTableStatement.html#CreateTableStatement-org.apache.cassandra.cql3.CFName-org.apache.cassandra.schema.TableParams-boolean-java.util.Set-java.util.UUID-">CreateTableStatement</a></span>(<a href="../../../../../org/apache/cassandra/cql3/CFName.html" title="class in org.apache.cassandra.cql3">CFName</a> name,
<a href="../../../../../org/apache/cassandra/schema/TableParams.html" title="class in org.apache.cassandra.schema">TableParams</a> params,
boolean ifNotExists,
java.util.Set<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>> staticColumns,
java.util.UUID id)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.cassandra.db">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> in <a href="../../../../../org/apache/cassandra/db/package-summary.html">org.apache.cassandra.db</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../../org/apache/cassandra/db/package-summary.html">org.apache.cassandra.db</a> with type parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected java.util.Set<<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a>></code></td>
<td class="colLast"><span class="typeNameLabel">AbstractReadCommandBuilder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/db/AbstractReadCommandBuilder.html#columns">columns</a></span></code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.cassandra.db.marshal">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> in <a href="../../../../../org/apache/cassandra/db/marshal/package-summary.html">org.apache.cassandra.db.marshal</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/cassandra/db/marshal/package-summary.html">org.apache.cassandra.db.marshal</a> with parameters of type <a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/cassandra/db/marshal/CompositeType.Builder.html" title="class in org.apache.cassandra.db.marshal">CompositeType.Builder</a></code></td>
<td class="colLast"><span class="typeNameLabel">CompositeType.Builder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/cassandra/db/marshal/CompositeType.Builder.html#add-org.apache.cassandra.cql3.ColumnIdentifier-">add</a></span>(<a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">ColumnIdentifier</a> name)</code> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../org/apache/cassandra/cql3/ColumnIdentifier.html" title="class in org.apache.cassandra.cql3">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/cassandra/cql3/class-use/ColumnIdentifier.html" target="_top">Frames</a></li>
<li><a href="ColumnIdentifier.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2009-2019 The Apache Software Foundation</small></p>
</body>
</html>
| 87.221889 | 613 | 0.699967 |
941fd6eb6d901ef7cea018ce87927a92a2b9fc0c | 6,919 | cpp | C++ | benchmark/micro.cpp | sandbox-3/entidy | 5a02073682a855c3f9979d708bb6072c17341727 | [
"MIT"
] | 7 | 2021-02-25T00:52:11.000Z | 2022-02-27T15:23:45.000Z | benchmark/micro.cpp | sandbox-3/entidy | 5a02073682a855c3f9979d708bb6072c17341727 | [
"MIT"
] | null | null | null | benchmark/micro.cpp | sandbox-3/entidy | 5a02073682a855c3f9979d708bb6072c17341727 | [
"MIT"
] | 1 | 2021-02-25T12:22:58.000Z | 2021-02-25T12:22:58.000Z | #define CATCH_CONFIG_MAIN
#include <algorithm>
#include <iostream>
#include <memory>
#include "catch2/catch.hpp"
#include "entidy/Entidy.h"
#include "entt.hpp"
template <size_t Size>
struct Component
{
char data[Size];
};
constexpr size_t word_size = sizeof(intptr_t);
constexpr size_t dword_size = 2 * word_size;
std::vector<entidy::Entity> entidy_vector_of_n_entities(size_t size)
{
std::vector<entidy::Entity> entities(size);
std::uint32_t n = 1;
std::generate(entities.begin(), entities.end(), [&n]() mutable { return n++; });
return entities;
}
std::vector<entt::entity> entt_vector_of_n_entities(size_t size)
{
return std::vector<entt::entity>(size);
}
TEST_CASE("Creating 100000 entities")
{
BENCHMARK_ADVANCED("ENTT")(Catch::Benchmark::Chronometer meter)
{
entt::registry registry;
meter.measure([&]() {
for(auto i = 0; i < 1000000L; i++)
{
registry.create();
}
});
};
BENCHMARK_ADVANCED("entidy")(Catch::Benchmark::Chronometer meter)
{
auto registry = std::make_shared<entidy::Entidy>();
meter.measure([&]() {
for(auto i = 0; i < 1000000L; i++)
{
registry->Create();
}
});
};
}
TEST_CASE("Creating 100000 entities Bulk")
{
BENCHMARK_ADVANCED("ENTT")(Catch::Benchmark::Chronometer meter)
{
entt::registry registry;
auto entities = entt_vector_of_n_entities(100000);
meter.measure([&]() { registry.create(entities.begin(), entities.end()); });
};
BENCHMARK_ADVANCED("entidy")(Catch::Benchmark::Chronometer meter)
{
auto registry = std::make_shared<entidy::Entidy>();
auto entities = entidy_vector_of_n_entities(100000);
meter.measure([&]() {
for(auto i = 0; i < 1000000L; i++)
{
registry->Create();
}
});
};
}
TEST_CASE("Creating 100000 entities + Emplace Components")
{
BENCHMARK_ADVANCED("ENTT")
(Catch::Benchmark::Chronometer meter)
{
entt::registry registry;
auto entities = entt_vector_of_n_entities(100000);
registry.create(entities.begin(), entities.end());
meter.measure([&]() {
for(const auto entity : entities)
{
registry.emplace<Component<3 * word_size>>(entity);
registry.emplace<Component<8 * word_size>>(entity);
}
});
};
BENCHMARK_ADVANCED("entidy")(Catch::Benchmark::Chronometer meter)
{
auto registry = std::make_shared<entidy::Entidy>();
auto entities = entidy_vector_of_n_entities(100000);
for(auto i = 0; i < entities.size(); i++)
{
registry->Create();
}
meter.measure([&]() {
for(auto entity : entities)
{
registry->Emplace(entity, "Comp003xWord", Component<3 * word_size>{});
registry->Emplace(entity, "Comp008xWord", Component<8 * word_size>{});
}
});
};
}
TEST_CASE("Creating 100000 entities + Emplace Bulk Components")
{
BENCHMARK_ADVANCED("ENTT")
(Catch::Benchmark::Chronometer meter)
{
entt::registry registry;
auto entities = entt_vector_of_n_entities(100000);
registry.create(entities.begin(), entities.end());
meter.measure([&]() {
registry.insert<Component<3 * word_size>>(entities.begin(), entities.end());
registry.insert<Component<8 * word_size>>(entities.begin(), entities.end());
});
};
BENCHMARK_ADVANCED("entidy")(Catch::Benchmark::Chronometer meter)
{
auto registry = std::make_shared<entidy::Entidy>();
auto entities = entidy_vector_of_n_entities(100000);
for(auto i = 0; i < entities.size(); i++)
{
registry->Create();
}
meter.measure([&]() {
for(const auto entity : entities)
{
registry->Emplace(entity, "Comp003xWord", Component<3 * word_size>{});
registry->Emplace(entity, "Comp008xWord", Component<8 * word_size>{});
}
});
};
}
TEST_CASE("Removing 100000 components from their entities")
{
BENCHMARK_ADVANCED("ENTT")
(Catch::Benchmark::Chronometer meter)
{
entt::registry registry;
auto entities = entt_vector_of_n_entities(100000);
registry.create(entities.begin(), entities.end());
registry.insert<int>(entities.begin(), entities.end());
meter.measure([&]() {
for(auto entity : registry.view<int>())
{
registry.remove<int>(entity);
}
});
};
BENCHMARK_ADVANCED("entidy")(Catch::Benchmark::Chronometer meter)
{
meter.measure([]() {
auto registry = std::make_shared<entidy::Entidy>();
auto entities = entidy_vector_of_n_entities(100000);
for(auto i = 0; i < entities.size(); i++)
{
registry->Create();
}
for(const auto entity : entities)
{
registry->Emplace(entity, "CompInt", 0);
}
auto selector = registry->Select({"CompInt"});
selector.Having("CompInt").Each([®istry](entidy::Entity e, int *x) { registry->Erase(e, "CompInt"); });
});
};
}
TEST_CASE("Removing 99999 components from their entities at once")
{
BENCHMARK_ADVANCED("ENTT")
(Catch::Benchmark::Chronometer meter)
{
entt::registry registry;
auto entities = entt_vector_of_n_entities(100000);
registry.create(entities.begin(), entities.end());
registry.insert<int>(entities.begin(), entities.end());
meter.measure([&]() {
auto view = registry.view<int>();
registry.remove<int>(++view.begin(), view.end());
});
};
}
TEST_CASE("Removing 100000 components from their entities at once")
{
BENCHMARK_ADVANCED("ENTT")
(Catch::Benchmark::Chronometer meter)
{
entt::registry registry;
auto entities = entt_vector_of_n_entities(100000);
registry.create(entities.begin(), entities.end());
registry.insert<int>(entities.begin(), entities.end());
meter.measure([&]() {
auto view = registry.view<int>();
registry.remove<int>(view.begin(), view.end());
});
};
BENCHMARK_ADVANCED("entidy")
(Catch::Benchmark::Chronometer meter)
{
auto registry = std::make_shared<entidy::Entidy>();
auto entities = entidy_vector_of_n_entities(100000);
for(auto i = 0; i < entities.size(); i++)
{
registry->Create();
}
for(const auto entity : entities)
{
registry->Emplace(entity, "CompInt", 0);
}
auto selector = registry->Select({"CompInt"});
meter.measure([&]() { selector.Having("CompInt").Each([®istry](entidy::Entity e, int* x) { registry->Erase(e, "CompInt"); }); });
};
}
TEST_CASE("Destorying 100000 entities")
{
BENCHMARK_ADVANCED("ENTT")
(Catch::Benchmark::Chronometer meter)
{
entt::registry registry;
auto entities = entt_vector_of_n_entities(100000);
registry.create(entities.begin(), entities.end());
registry.insert<int>(entities.begin(), entities.end());
meter.measure([&]() {
for(auto entity : registry.view<int>())
{
registry.destroy(entity);
}
});
};
}
TEST_CASE("Destorying 100000 entities Bulk")
{
BENCHMARK_ADVANCED("ENTT")
(Catch::Benchmark::Chronometer meter)
{
entt::registry registry;
std::vector<entt::entity> entities(100000);
registry.create(entities.begin(), entities.end());
registry.insert<int>(entities.begin(), entities.end());
meter.measure([&]() {
auto view = registry.view<int>();
registry.destroy(view.begin(), view.end());
});
};
}
| 23.140468 | 134 | 0.670906 |
a919a3ddbcbc160c79802557718cf7c97440e17c | 377 | swift | Swift | Sources/MockturtleParser/MockturtleDelay.swift | thepeaklab/mockturtle-parser | 760af7ddeace62953ed62bc48d736acbf992c66a | [
"MIT"
] | null | null | null | Sources/MockturtleParser/MockturtleDelay.swift | thepeaklab/mockturtle-parser | 760af7ddeace62953ed62bc48d736acbf992c66a | [
"MIT"
] | null | null | null | Sources/MockturtleParser/MockturtleDelay.swift | thepeaklab/mockturtle-parser | 760af7ddeace62953ed62bc48d736acbf992c66a | [
"MIT"
] | null | null | null | //
// MockturtleDelay.swift
// MockturtleParser
//
// Created by Christoph Pageler on 24.01.19.
//
import Foundation
public class MockturtleDelay: Codable, Equatable {
public var from: Double
public var to: Double
public static func == (lhs: MockturtleDelay, rhs: MockturtleDelay) -> Bool {
return lhs.from == rhs.from && lhs.to == rhs.to
}
}
| 17.136364 | 80 | 0.660477 |
cb0a173a8f9ad9e17bc274e976a33d4c4ea873a2 | 7,348 | cs | C# | RomanticWeb/Mapping/Sources/GeneratedDictionaryMappingSource.cs | MakoLab/RomanticWeb | 45acfe4d880ca85ec2407f54996d43ae91aafef9 | [
"BSD-3-Clause"
] | 16 | 2015-01-09T19:16:47.000Z | 2018-01-20T10:49:34.000Z | RomanticWeb/Mapping/Sources/GeneratedDictionaryMappingSource.cs | MakoLab/RomanticWeb | 45acfe4d880ca85ec2407f54996d43ae91aafef9 | [
"BSD-3-Clause"
] | 19 | 2015-01-08T12:08:33.000Z | 2018-11-18T19:07:08.000Z | RomanticWeb/Mapping/Sources/GeneratedDictionaryMappingSource.cs | MakoLab/RomanticWeb | 45acfe4d880ca85ec2407f54996d43ae91aafef9 | [
"BSD-3-Clause"
] | 9 | 2015-05-29T08:48:50.000Z | 2022-03-29T09:41:17.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using RomanticWeb.Collections.Mapping;
using RomanticWeb.Dynamic;
using RomanticWeb.Mapping.Fluent;
using RomanticWeb.Mapping.Providers;
using RomanticWeb.Mapping.Visitors;
using RomanticWeb.Ontologies;
namespace RomanticWeb.Mapping.Sources
{
internal class GeneratedDictionaryMappingSource : IMappingProviderVisitor, IMappingProviderSource
{
private readonly IFluentMapsVisitor _visitor = new FluentMappingProviderBuilder();
private readonly List<EntityMap> _entityMaps = new List<EntityMap>();
private readonly IOntologyProvider _ontologyProvider;
private readonly EmitHelper _emitHelper;
public GeneratedDictionaryMappingSource(MappingContext mappingContext, EmitHelper emitHelper)
{
_emitHelper = emitHelper;
_ontologyProvider = mappingContext.OntologyProvider;
}
public string Description
{
get
{
return "Dictionary mappings";
}
}
public IEnumerable<IEntityMappingProvider> GetMappingProviders()
{
return from map in _entityMaps
select map.Accept(_visitor);
}
public void Visit(ICollectionMappingProvider collectionMappingProvider)
{
}
public void Visit(IPropertyMappingProvider propertyMappingProvider)
{
}
public void Visit(IDictionaryMappingProvider dictionaryMappingProvider)
{
_entityMaps.Add(CreateDictionaryOwnerMapping(dictionaryMappingProvider));
_entityMaps.Add(CreateDictionaryEntryMapping(dictionaryMappingProvider));
}
public void Visit(IClassMappingProvider classMappingProvider)
{
}
public void Visit(IEntityMappingProvider entityMappingProvider)
{
}
private EntityMap CreateDictionaryOwnerMapping(IDictionaryMappingProvider map)
{
// todo: refactoring
var actualEntityType = map.PropertyInfo.DeclaringType;
var owner = actualEntityType.Assembly.GetType(string.Format("{0}_{1}_Owner", actualEntityType.FullName, map.PropertyInfo.Name));
var entry = actualEntityType.Assembly.GetType(string.Format("{0}_{1}_Entry", actualEntityType.FullName, map.PropertyInfo.Name));
var type = typeof(DictionaryOwnerMap<,,,>);
var typeArguments = new[] { owner, entry }.Concat(map.PropertyInfo.PropertyType.GenericTypeArguments).ToArray();
var ownerMapType = type.MakeGenericType(typeArguments);
var defineDynamicModule = _emitHelper.GetDynamicModule();
Type mapType = null;
lock (defineDynamicModule)
{
mapType = defineDynamicModule.GetOrEmitType(owner.Name + "Map", builder => EmitOwnerMap(map, builder, owner, ownerMapType));
}
return (EntityMap)Activator.CreateInstance(mapType);
}
private TypeBuilder EmitOwnerMap(IDictionaryMappingProvider map, ModuleBuilder defineDynamicModule, Type owner, Type ownerMapType)
{
var typeBuilderHelper = defineDynamicModule.DefineType(owner.Name + "Map", TypeAttributes.Public, ownerMapType);
var methodBuilderHelper = typeBuilderHelper.DefineMethod(
"SetupEntriesCollection",
MethodAttributes.Public | MethodAttributes.Virtual | MethodAttributes.HideBySig,
typeof(void),
new[] { typeof(ITermPart<ICollectionMap>) });
var ilGenerator = methodBuilderHelper.GetILGenerator();
ilGenerator.Emit(OpCodes.Nop);
ilGenerator.Emit(OpCodes.Ldarg_1);
ilGenerator.Emit(OpCodes.Ldstr, map.GetTerm(_ontologyProvider).ToString());
ilGenerator.Emit(OpCodes.Newobj, typeof(Uri).GetConstructor(new[] { typeof(string) }));
ilGenerator.Emit(OpCodes.Callvirt, typeof(ITermPart<CollectionMap>).GetMethod("Is", new Type[] { typeof(Uri) }));
ilGenerator.Emit(OpCodes.Pop);
ilGenerator.Emit(OpCodes.Ret);
return typeBuilderHelper;
}
private EntityMap CreateDictionaryEntryMapping(IDictionaryMappingProvider map)
{
var actualEntityType = map.PropertyInfo.DeclaringType;
var entry = actualEntityType.Assembly.GetType(string.Format("{0}_{1}_Entry", actualEntityType.FullName, map.PropertyInfo.Name));
var type = typeof(DictionaryEntryMap<,,>);
var typeArguments = new[] { entry }.Concat(map.PropertyInfo.PropertyType.GenericTypeArguments).ToArray();
var ownerMapType = type.MakeGenericType(typeArguments);
var defineDynamicModule = _emitHelper.GetDynamicModule();
Type mapType = null;
lock (defineDynamicModule)
{
mapType = defineDynamicModule.GetOrEmitType(entry.Name + "Map", builder => EmitEntryMap(map, builder, entry, ownerMapType));
}
return (EntityMap)Activator.CreateInstance(mapType);
}
private TypeBuilder EmitEntryMap(
IDictionaryMappingProvider map, ModuleBuilder defineDynamicModule, Type entry, Type ownerMapType)
{
var typeBuilderHelper = defineDynamicModule.DefineType(entry.Name + "Map", TypeAttributes.Public, ownerMapType);
var setupKeyMethod = typeBuilderHelper.DefineMethod(
"SetupKeyProperty",
MethodAttributes.Public | MethodAttributes.Virtual | MethodAttributes.HideBySig,
typeof(void),
new[] { typeof(ITermPart<IPropertyMap>) });
EmitSetupPropertyOverride(setupKeyMethod, map.Key);
var setupValueMethod = typeBuilderHelper.DefineMethod(
"SetupValueProperty",
MethodAttributes.Public | MethodAttributes.Virtual | MethodAttributes.HideBySig,
typeof(void),
new[] { typeof(ITermPart<IPropertyMap>) });
EmitSetupPropertyOverride(setupValueMethod, map.Value);
return typeBuilderHelper;
}
private void EmitSetupPropertyOverride(MethodBuilder methodBuilder, IPredicateMappingProvider termMapping)
{
var ilGenerator = methodBuilder.GetILGenerator();
ilGenerator.Emit(OpCodes.Nop);
ilGenerator.Emit(OpCodes.Ldarg_1);
ilGenerator.Emit(OpCodes.Ldstr, termMapping.GetTerm(_ontologyProvider).ToString());
ilGenerator.Emit(OpCodes.Newobj, typeof(Uri).GetConstructor(new[] { typeof(string) }));
ilGenerator.Emit(OpCodes.Callvirt, typeof(ITermPart<PropertyMap>).GetMethod("Is", new Type[] { typeof(Uri) }));
if (termMapping.ConverterType != null)
{
ilGenerator.Emit(OpCodes.Callvirt, typeof(IPropertyMap).GetMethod("ConvertWith").MakeGenericMethod(termMapping.ConverterType));
}
ilGenerator.Emit(OpCodes.Pop);
ilGenerator.Emit(OpCodes.Ret);
}
}
} | 45.925 | 144 | 0.649428 |
4b389d5aa1b9d87790ab374ae18d92c0362d4d6f | 2,822 | go | Go | receipt_test.go | Liaowei/gocmpp | f8bda852295150abb3d11fa8b2a917e977f3a29a | [
"Apache-2.0"
] | 122 | 2015-11-27T09:11:07.000Z | 2022-03-11T10:24:59.000Z | receipt_test.go | Liaowei/gocmpp | f8bda852295150abb3d11fa8b2a917e977f3a29a | [
"Apache-2.0"
] | 16 | 2015-11-12T01:44:29.000Z | 2021-11-22T09:48:16.000Z | receipt_test.go | Liaowei/gocmpp | f8bda852295150abb3d11fa8b2a917e977f3a29a | [
"Apache-2.0"
] | 64 | 2016-03-24T14:50:41.000Z | 2022-03-19T15:14:39.000Z | // Copyright 2015 Tony Bai.
//
// 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,
// See the License for the specific language governing permissions and
// limitations under the License.
package cmpp_test
import (
"testing"
"github.com/bigwhite/gocmpp"
)
func TestCmppReceiptPktPack(t *testing.T) {
p := &cmpp.CmppReceiptPkt{
MsgId: 13025908756704198656,
Stat: "DELIVRD",
SubmitTime: "1511120955",
DoneTime: "1511120957",
DestTerminalId: "13412340000",
SmscSequence: 0x12345678,
}
data, err := p.Pack()
if err != nil {
t.Fatal("CmppReceiptPkt pack error:", err)
}
dataExpected := []byte{
0xb4, 0xc5, 0x53, 0x00, 0x00, 0x01, 0x00, 0x00, 0x44, 0x45, 0x4c, 0x49, 0x56, 0x52, 0x44, 0x31,
0x35, 0x31, 0x31, 0x31, 0x32, 0x30, 0x39, 0x35, 0x35, 0x31, 0x35, 0x31, 0x31, 0x31, 0x32, 0x30,
0x39, 0x35, 0x37, 0x31, 0x33, 0x34, 0x31, 0x32, 0x33, 0x34, 0x30, 0x30, 0x30, 0x30, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x34, 0x56, 0x78,
}
l1 := len(data)
l2 := len(dataExpected)
if l1 != l2 {
t.Fatalf("After pack, data length is %d, not equal to length expected: %d\n", l1, l2)
}
for i := 0; i < l1; i++ {
if data[i] != dataExpected[i] {
t.Fatalf("After pack, data[%d] is %x, not equal to dataExpected[%d]: %x\n", i, data[i], i, dataExpected[i])
}
}
}
func TestCmppReceiptPktUnpack(t *testing.T) {
data := []byte{
0xb4, 0xc5, 0x53, 0x00, 0x00, 0x01, 0x00, 0x00, 0x44, 0x45, 0x4c, 0x49, 0x56, 0x52, 0x44, 0x31,
0x35, 0x31, 0x31, 0x31, 0x32, 0x30, 0x39, 0x35, 0x35, 0x31, 0x35, 0x31, 0x31, 0x31, 0x32, 0x30,
0x39, 0x35, 0x37, 0x31, 0x33, 0x34, 0x31, 0x32, 0x33, 0x34, 0x30, 0x30, 0x30, 0x30, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x34, 0x56, 0x78,
}
p := &cmpp.CmppReceiptPkt{}
err := p.Unpack(data)
if err != nil {
t.Fatal("CmppReceiptPkt unpack error:", err)
}
var resultSet = []struct {
name string
value interface{}
expectedValue interface{}
}{
{"MsgId", p.MsgId, uint64(13025908756704198656)},
{"Stat", p.Stat, "DELIVRD"},
{"SubmitTime", p.SubmitTime, "1511120955"},
{"DoneTime", p.DoneTime, "1511120957"},
{"DestTerminalId", p.DestTerminalId, "13412340000"},
{"SmscSequence", p.SmscSequence, uint32(0x12345678)},
}
for _, r := range resultSet {
if r.value != r.expectedValue {
t.Fatalf("After unpack, %s in packet is %#v, not equal to the expected value: %#v\n", r.name, r.value, r.expectedValue)
}
}
}
| 31.355556 | 122 | 0.65202 |
5bb81fd9df5b5f9ad3ce5d2c1341630469da5b09 | 20,337 | swift | Swift | EasyGradient/Classes/GradientOption.swift | AmatsuZero/EasyGradient | f9a5b062168cac980d6d2bfc899935ebaaae500a | [
"MIT"
] | 1 | 2020-04-15T11:13:08.000Z | 2020-04-15T11:13:08.000Z | EasyGradient/Classes/GradientOption.swift | AmatsuZero/EasyGradient | f9a5b062168cac980d6d2bfc899935ebaaae500a | [
"MIT"
] | null | null | null | EasyGradient/Classes/GradientOption.swift | AmatsuZero/EasyGradient | f9a5b062168cac980d6d2bfc899935ebaaae500a | [
"MIT"
] | null | null | null | //
// GradientOption.swift
// EasyGradient
//
// Created by 姜振华 on 2020/4/13.
//
import Foundation
import UIKit
/// 渐变方向
@objc public enum EZGradientDirection: Int {
/// 从上到下
case topToBottom
/// 从左到右
case leftToRight
/// 从左上到右下
case leftTopToRightBottom
/// 从左下到右上
case leftBottomToRightTop
func convert(size: CGSize) -> (start: CGPoint, end: CGPoint) {
var start = CGPoint.zero
var end = CGPoint.zero
switch self {
case .topToBottom:
start = CGPoint(x: size.width / 2, y: 0)
end = CGPoint(x: size.width / 2, y: size.height)
case .leftToRight:
start = CGPoint(x: 0, y: size.height / 2)
end = CGPoint(x: size.width, y: size.height / 2)
case .leftTopToRightBottom:
end = CGPoint(x: size.width, y: 0)
case .leftBottomToRightTop:
start = CGPoint(x: 0, y: size.height)
end = CGPoint(x: size.width, y: 0)
}
return (start, end)
}
}
/// 渐变模式
@objc public enum EZGradientMode: Int {
/// 线性
case linear
/// 辐射
case radial
func asGradientLayerType() -> String {
switch self {
case .radial: return "radial"
default: return "axial"
}
}
}
@objc
@objcMembers public class EZGradientOption: NSObject, NSCopying {
/// 此时是否可以更新颜色
fileprivate var canUpdate = true
/// 渐变颜色
public var colors: [UIColor]? {
didSet {
updateGradient()
}
}
/// 渐变色尺寸
public var size = CGSize.zero {
didSet {
canUpdate = false
if let direction = direction {
let (start, end) = direction.convert(size: size)
self.start = start
self.end = end
}
canUpdate = true
updateGradient()
}
}
/// An array of `UIColor` objects used to draw the dimmed gradient. If the value is `nil`, `colors` will be
/// converted to grayscale. This will use the same `locations` as `colors`. If length of arrays don't match, bad
/// things will happen. You must make sure the number of dimmed colors equals the number of regular colors.
///
/// The default is `nil`.
public var dimmedColors: [UIColor]? {
didSet {
updateGradient()
}
}
/// Automatically dim gradient colors when prompted by the system (i.e. when an alert is shown).
public var automaticallyDims: Bool = true
/// 起始位置
public var start = CGPoint.zero {
didSet {
updateGradient()
}
}
/// 结束位置
public var end = CGPoint.zero {
didSet {
updateGradient()
}
}
/// 每个渐变色的停止位置
public var locations: [CGFloat]? {
didSet {
updateGradient()
}
}
/// 渐变模式
public var mode = EZGradientMode.linear {
didSet {
updateGradient()
}
}
/// 渐变色位置
public var drawOptions: CGGradientDrawingOptions = CGGradientDrawingOptions() {
didSet {
updateGradient()
}
}
/// KVO 观察者
var observer: NSKeyValueObservation?
weak var _associatedView: UIView?
/// 关联变化的视图
public weak var associatedView: UIView? {
set {
defer {
size = newValue?.frame.size ?? .zero
}
if _associatedView == newValue {
return
}
_associatedView = newValue
observer = _associatedView?.observe(\UIView.frame, changeHandler: { [weak self] view, value in
guard let self = self else {
return
}
self.size = view.frame.size
})
}
get {
_associatedView
}
}
public var direction: EZGradientDirection? {
didSet {
canUpdate = false
if let newValue = direction {
let (start, end) = newValue.convert(size: size)
self.start = start
self.end = end
}
canUpdate = true
updateGradient()
}
}
required public override init() {
super.init()
}
public func copy(with zone: NSZone? = nil) -> Any {
let option = type(of: self).init()
option.canUpdate = false
option.colors = colors
option.dimmedColors = dimmedColors
option.size = size
option.drawOptions = drawOptions
option.locations = locations
option.start = start
option.end = end
option.mode = mode
option.automaticallyDims = automaticallyDims
option._associatedView = _associatedView
option.canUpdate = true
return option
}
func updateGradient() {}
func gradientColors() -> [UIColor]? {
if associatedView?.tintAdjustmentMode == .dimmed {
if let colors = dimmedColors {
return colors
}
if automaticallyDims {
return colors?.map {
var hue: CGFloat = 0
var brightness: CGFloat = 0
var alpha: CGFloat = 0
$0.getHue(&hue, saturation: nil, brightness: &brightness, alpha: &alpha)
return UIColor(hue: hue, saturation: 0, brightness: brightness, alpha: alpha)
}
}
}
return colors
}
public func asCGGradient() -> CGGradient? {
guard let colors = gradientColors() else {
return nil
}
let colorSpace = CGColorSpaceCreateDeviceRGB()
let colorSpaceModel = colorSpace.model
let gradientColors = colors.map { (color: UIColor) -> CGColor in
let cgColor = color.cgColor
let cgColorSpace = cgColor.colorSpace ?? colorSpace
// The color's color space is RGB, simply add it.
if cgColorSpace.model == colorSpaceModel {
return cgColor
}
// Convert to RGB. There may be a more efficient way to do this.
var red: CGFloat = 0
var blue: CGFloat = 0
var green: CGFloat = 0
var alpha: CGFloat = 0
color.getRed(&red, green: &green, blue: &blue, alpha: &alpha)
return UIColor(red: red, green: green, blue: blue, alpha: alpha).cgColor
} as NSArray
return CGGradient(colorsSpace: colorSpace, colors: gradientColors, locations: locations)
}
public func asColor() -> UIColor? {
return UIColor.gradientColor(with: self)
}
func drawGradient(_ ctx: CGContext, glossGradient: CGGradient) {
switch mode {
case .linear:
ctx.drawLinearGradient(glossGradient, start: start, end: end, options: drawOptions)
case .radial:
let center = CGPoint(x: size.width / 2, y: size.height / 2)
ctx.drawRadialGradient(glossGradient, startCenter: start,
startRadius: 0, endCenter: center,
endRadius: min(size.width, size.height) / 2, options: drawOptions)
}
}
public func asGradientLayer() -> CAGradientLayer {
let layer = CAGradientLayer()
layer.colors = gradientColors()?.map { $0.cgColor }
layer.locations = locations?.map { $0 as NSNumber }.filter { !$0.isEqual(to: NSDecimalNumber.notANumber) } // 过滤掉NaN
layer.endPoint = end
layer.startPoint = start
layer.type = mode.asGradientLayerType()
layer.frame = CGRect(origin: .zero, size: size)
return layer
}
public func asImage() -> UIImage? {
guard let gradient = asCGGradient() else {
return nil
}
var gradientImg: UIImage?
UIGraphicsBeginImageContext(size)
guard let ctx = UIGraphicsGetCurrentContext() else {
return nil
}
drawGradient(ctx, glossGradient: gradient)
gradientImg = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
return gradientImg
}
public override func isEqual(_ object: Any?) -> Bool {
if self === object as AnyObject? {
return true
}
guard let another = object as? EZGradientOption else {
return false
}
return another.mode == mode && another.colors == colors && another.locations == locations
&& another.start == start && another.end == end && another.dimmedColors == dimmedColors
&& another.automaticallyDims == automaticallyDims && another.size == size
&& another.associatedView == associatedView
}
public override var hash: Int {
var value = mode.hashValue
value ^= NSValue(cgPoint: start).hashValue
value ^= NSValue(cgPoint: end).hashValue
value ^= NSNumber(value: automaticallyDims).hashValue
value ^= NSValue(cgSize: size).hashValue
if let colors = colors {
value ^= colors.hashValue
}
if let locations = locations {
value ^= locations.hashValue
}
if let colors = dimmedColors {
value ^= colors.hashValue
}
if let view = associatedView {
value ^= view.hashValue
}
return value
}
}
public extension UIColor {
static let defaultCache: NSCache<EZGradientOption, UIColor> = {
let cache = NSCache<EZGradientOption, UIColor>()
cache.name = "com.daubertjiang.ezgradient.cache"
return cache
}()
static func gradientColor(with option: EZGradientOption,
cache: NSCache<EZGradientOption, UIColor>? = UIColor.defaultCache) -> UIColor? {
guard option.size.width > 0, option.size.height > 0, // 宽高不得为0
let option = option.copy() as? EZGradientOption else {
return nil
}
var color = cache?.object(forKey: option)
guard color == nil else {
return color?.copy() as? UIColor
}
guard let img = option.asImage() else {
return nil
}
color = UIColor(patternImage: img)
if let color = color {
cache?.setObject(color, forKey: option)
}
return color?.copy() as? UIColor
}
}
@objc
@objcMembers public class EGGradientBackgroundOption: EZGradientOption {
override func updateGradient() {
guard canUpdate else {
return
}
// Hack for UIlabel for weired space
if let label = associatedView as? UILabel, label.text == nil {
label.text = ""
}
associatedView?.backgroundColor = asColor()
}
}
@objc
@objcMembers public class EZGradientBorderOption: EZGradientOption {
/// 上边颜色
public var topBorderColor: UIColor? {
didSet {
updateGradient()
}
}
/// 右边颜色
public var rightBorderColor: UIColor? {
didSet {
updateGradient()
}
}
/// 底边颜色
public var bottomBorderColor: UIColor? {
didSet {
updateGradient()
}
}
/// 左边颜色
public var leftBorderColor: UIColor? {
didSet {
updateGradient()
}
}
/// 四个边是否分别设置颜色,默认为false,统一设置为渐变色
public var useSeparateColor = false {
didSet {
updateGradient()
}
}
public var drawsThinBorders: Bool = true {
didSet {
updateGradient()
}
}
/// borderWith 观察者
var borderWidthObserver: NSKeyValueObservation?
var borderWidth: CGFloat = 0 {
didSet {
updateGradient()
}
}
public override var associatedView: UIView? {
didSet {
/// 观察
borderWidthObserver = associatedView?.observe(\UIView.layer.borderWidth,
changeHandler: { [weak self] view, value in
guard let self = self else {
return
}
let screen = view.window?.screen ?? UIScreen.main
var width = view.layer.borderWidth
if width <= 0 {
width = self.drawsThinBorders ? 1.0 / screen.scale : 1.0
}
self.borderWidth = width
})
let screen = associatedView?.window?.screen ?? UIScreen.main
borderWidth = associatedView?.layer.borderWidth ?? (drawsThinBorders ? 1.0 / screen.scale : 1.0)
}
}
override func gradientColors() -> [UIColor]? {
guard useSeparateColor else {
return super.gradientColors()
}
return [topBorderColor, leftBorderColor, bottomBorderColor, rightBorderColor].compactMap { $0 }
}
public override func asImage() -> UIImage? {
guard useSeparateColor else {
return super.asImage()
}
UIGraphicsBeginImageContext(size)
guard let ctx = UIGraphicsGetCurrentContext() else {
return nil
}
var gradientImg: UIImage?
// Top border
if let color = topBorderColor {
ctx.setFillColor(color.cgColor)
ctx.fill(CGRect(origin: .zero, size: .init(width: size.width, height: borderWidth)))
}
let sideY: CGFloat = topBorderColor != nil ? borderWidth : 0
let sideHeight = size.height - sideY - (bottomBorderColor != nil ? borderWidth : 0)
// Right border
if let color = rightBorderColor {
ctx.setFillColor(color.cgColor)
ctx.fill(CGRect(x: size.width - borderWidth, y: sideY, width: borderWidth, height: sideHeight))
}
// Bottom border
if let color = bottomBorderColor {
ctx.setFillColor(color.cgColor)
ctx.fill(CGRect(x: 0, y: size.height - borderWidth, width: size.width, height: borderWidth))
}
// Left border
if let color = leftBorderColor {
ctx.setFillColor(color.cgColor)
ctx.fill(CGRect(x: 0, y: sideY, width: borderWidth, height: sideHeight))
}
gradientImg = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
return gradientImg
}
override func updateGradient() {
guard canUpdate else {
return
}
associatedView?.layer.borderColor = asColor()?.cgColor
}
public override func copy(with zone: NSZone? = nil) -> Any {
let obj = super.copy(with: zone) as! EZGradientBorderOption
obj.canUpdate = false
obj.topBorderColor = topBorderColor
obj.rightBorderColor = rightBorderColor
obj.leftBorderColor = leftBorderColor
obj.bottomBorderColor = bottomBorderColor
obj.drawsThinBorders = drawsThinBorders
obj.useSeparateColor = useSeparateColor
obj.borderWidth = borderWidth
obj.canUpdate = true
return obj
}
public override func isEqual(_ object: Any?) -> Bool {
let ret = super.isEqual(object)
guard let another = object as? EZGradientBorderOption else {
return false
}
return ret && self.borderWidth == another.borderWidth
}
public override var hash: Int {
var value = super.hash
value ^= (borderWidth as NSNumber).hashValue
return value
}
}
@objc
@objcMembers public class EZTextGradientOption: EZGradientOption {
/// 文本观察者
var textObserver: NSKeyValueObservation?
/// 字体观察者
var fontObserver: NSKeyValueObservation?
public override var associatedView: UIView? {
didSet {
guard let view = associatedView else {
return
}
switch view {
case let label as UILabel: setObserverForLabel(label)
case let textView as UITextView: setObserverForTextView(textView)
case let textField as UITextField: setObserverForTextField(textField)
default: break
}
}
}
/// 真实文字size
fileprivate var _internalSize: CGSize = .zero {
didSet {
canUpdate = false
if let direction = direction {
let (start, end) = direction.convert(size: size)
self.start = start
self.end = end
}
canUpdate = true
updateGradient()
}
}
public override var size: CGSize {
set {
guard let view = associatedView else {
_internalSize = newValue
return
}
switch view { // 根据 View 类型调整真实 size
case let label as UILabel:
_internalSize = label.intrinsicContentSize
case let textView as UITextView:
updateSize(in: textView)
case let textField as UITextField:
_internalSize = textField.intrinsicContentSize
default:
_internalSize = newValue
}
}
get {
_internalSize
}
}
deinit {
NotificationCenter.default.removeObserver(self)
}
override func updateGradient() {
guard canUpdate else {
return
}
associatedView?.setValue(asColor(), forKey: "textColor")
}
}
// MARK: - 处理 UITextField
extension EZTextGradientOption {
func setObserverForTextField(_ textField: UITextField) {
textField.addTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged)
fontObserver = textField.observe(\UITextField.font, changeHandler: { [weak self] view, value in
self?._internalSize = view.intrinsicContentSize
})
_internalSize = textField.intrinsicContentSize
}
@objc func textFieldDidChange(_ textField: UITextField) {
_internalSize = textField.intrinsicContentSize
}
}
// MARK: - 处理 UILabel
extension EZTextGradientOption {
func setObserverForLabel(_ label: UILabel) {
textObserver = label.observe(\UILabel.text, changeHandler: { [weak self] view, value in
self?._internalSize = view.intrinsicContentSize
})
fontObserver = label.observe(\UILabel.font, changeHandler: { [weak self] view, value in
self?._internalSize = view.intrinsicContentSize
})
_internalSize = label.intrinsicContentSize
updateGradient()
}
}
// MARK: - 处理 UITextView
extension EZTextGradientOption {
func setObserverForTextView(_ textView: UITextView) {
NotificationCenter.default.addObserver(self, selector: #selector(textViewDidChange(_:)),
name: .UITextViewTextDidChange, object: nil)
fontObserver = textView.observe(\UITextView.font, changeHandler: { [weak self] view, value in
self?.updateSize(in: view)
})
updateSize(in: textView)
}
func textViewDidChange(_ notification: Notification) {
guard let textView = notification.object as? UITextView, textView === associatedView else {
return
}
updateSize(in: textView)
}
func updateSize(in textView: UITextView) {
guard let str = textView.text, let font = textView.font else {
return
}
// FIXME: A weird bug, the calculation of bouding rect seems not precise.
let attrStr = NSAttributedString(string: str + " ", attributes: [ .font: font ])
_internalSize = attrStr.boundingRect(with: textView.contentSize,
options: .usesLineFragmentOrigin, context: nil).size
// print(_internalSize)
}
}
| 33.01461 | 124 | 0.556178 |
e713ff693dbe1db8d513c24c4db02adf564bd426 | 3,862 | es6 | JavaScript | test/javascripts/components/admin-report-test.js.es6 | threefoldtech/threefold-forums | bf999696fdf5a96c37aed0134af8115ccd9a79ab | [
"Apache-2.0"
] | null | null | null | test/javascripts/components/admin-report-test.js.es6 | threefoldtech/threefold-forums | bf999696fdf5a96c37aed0134af8115ccd9a79ab | [
"Apache-2.0"
] | 5 | 2020-04-02T10:09:47.000Z | 2021-07-05T12:59:51.000Z | test/javascripts/components/admin-report-test.js.es6 | threefoldtech/threefold-forums | bf999696fdf5a96c37aed0134af8115ccd9a79ab | [
"Apache-2.0"
] | null | null | null | import componentTest from "helpers/component-test";
moduleForComponent("admin-report", {
integration: true
});
componentTest("default", {
template: "{{admin-report dataSourceName='signups'}}",
async test(assert) {
assert.ok(exists(".admin-report.signups"));
assert.ok(exists(".admin-report.signups", "it defaults to table mode"));
assert.equal(
find(".header .item.report")
.text()
.trim(),
"Signups",
"it has a title"
);
assert.equal(
find(".header .info").attr("data-tooltip"),
"New account registrations for this period",
"it has a description"
);
assert.equal(
find(".admin-report-table thead tr th:first-child .title")
.text()
.trim(),
"Day",
"it has col headers"
);
assert.equal(
find(".admin-report-table thead tr th:nth-child(2) .title")
.text()
.trim(),
"Count",
"it has col headers"
);
assert.equal(
find(".admin-report-table tbody tr:nth-child(1) td:nth-child(1)")
.text()
.trim(),
"June 16, 2018",
"it has rows"
);
assert.equal(
find(".admin-report-table tbody tr:nth-child(1) td:nth-child(2)")
.text()
.trim(),
"12",
"it has rows"
);
assert.ok(exists(".total-row"), "it has totals");
await click(".admin-report-table-header.y .sort-btn");
assert.equal(
find(".admin-report-table tbody tr:nth-child(1) td:nth-child(2)")
.text()
.trim(),
"7",
"it can sort rows"
);
}
});
componentTest("options", {
template: "{{admin-report dataSourceName='signups' reportOptions=options}}",
beforeEach() {
this.set("options", {
table: {
perPage: 4,
total: false
}
});
},
test(assert) {
assert.ok(exists(".pagination"), "it paginates the results");
assert.equal(
find(".pagination button").length,
3,
"it creates the correct number of pages"
);
assert.notOk(exists(".totals-sample-table"), "it hides totals");
}
});
componentTest("switch modes", {
template: "{{admin-report dataSourceName='signups' showFilteringUI=true}}",
async test(assert) {
await click(".mode-btn.chart");
assert.notOk(exists(".admin-report-table"), "it removes the table");
assert.ok(exists(".admin-report-chart"), "it shows the chart");
}
});
componentTest("timeout", {
template: "{{admin-report dataSourceName='signups_timeout'}}",
test(assert) {
assert.ok(exists(".alert-error.timeout"), "it displays a timeout error");
}
});
componentTest("no data", {
template: "{{admin-report dataSourceName='posts'}}",
test(assert) {
assert.ok(exists(".no-data"), "it displays a no data alert");
}
});
componentTest("exception", {
template: "{{admin-report dataSourceName='signups_exception'}}",
test(assert) {
assert.ok(exists(".alert-error.exception"), "it displays an error");
}
});
componentTest("rate limited", {
beforeEach() {
const response = object => {
return [429, { "Content-Type": "application/json" }, object];
};
// prettier-ignore
server.get("/admin/reports/bulk", () => { //eslint-disable-line
return response({"errors":["You’ve performed this action too many times. Please wait 10 seconds before trying again."],"error_type":"rate_limit","extras":{"wait_seconds":10}});
});
},
template: "{{admin-report dataSourceName='signups_rate_limited'}}",
test(assert) {
assert.ok(
exists(".alert-error.rate-limited"),
"it displays a rate limited error"
);
}
});
componentTest("not found", {
template: "{{admin-report dataSourceName='not_found'}}",
test(assert) {
assert.ok(
exists(".alert-error.not-found"),
"it displays a not found error"
);
}
});
| 23.26506 | 182 | 0.595028 |
252b03388612fe761f550e91a853bd26cd773d84 | 12,163 | html | HTML | index.html | FMGordillo/Presentation-07-02-New-Hires-DBG | 7ae044d013d9964e2727af0b2ded1b4910523e7a | [
"MIT"
] | null | null | null | index.html | FMGordillo/Presentation-07-02-New-Hires-DBG | 7ae044d013d9964e2727af0b2ded1b4910523e7a | [
"MIT"
] | null | null | null | index.html | FMGordillo/Presentation-07-02-New-Hires-DBG | 7ae044d013d9964e2727af0b2ded1b4910523e7a | [
"MIT"
] | null | null | null | <!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="Presentation. That's it.">
<meta name="author" content="Facundo Martin Gordillo">
<title>Presentation-07-02-New-Hires-DBG</title>
<link rel="stylesheet" target="_blank" href="css/reveal.css">
<link rel="stylesheet" target="_blank" href="css/theme/black.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" target="_blank" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<section>
<h2>Coding - Code Patterns / Open Source</h2>
<br>
<br>
<p>Facundo Martin Gordillo - <em>Developer Advocate</em></p>
<p><em>famargor@ar.ibm.com</em> | IBM - Digital Business Group</p>
</section>
<section>
<img style="height: 14em;" src="/images/twitterAccount.png" alt="Perfil de Twitter">
<ul style="list-style: none;">
<li>🐦 <a href="https://twitter.com/FMGordillo">Twitter</a></li>
<li>🔗🔚 <a href="https://www.linkedin.com/in/fmgordillo/">Linkedin</a></li>
</ul>
</section>
<section>
<img style="height: 5em; background-color:rgb(255, 255, 255);" src="/images/java.png" alt="Java">
<img style="height: 5em; background-color:rgb(255, 255, 255);" src="https://cdn.worldvectorlogo.com/logos/php-1.svg" alt="PHP">
<img style="height: 5em; background-color:rgb(255, 255, 255);" src="https://ih1.redbubble.net/image.416412087.0587/flat,800x800,070,f.jpg" alt="C#">
<aside class="notes">
<ul>
<li>Java: Terciario, Tetris</li>
<li>PHP: ABM de un carrito de compras</li>
<li>Videoclub y videojuego en Github</li>
</ul>
</aside>
</section>
<section>
<img style="height: 5em;" src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/1200px-React-icon.svg.png" alt="React.js">
<h1>❤️</h1>
<img style="height: 5em;" src="/images/javascript.png" alt="Javascript" >
</section>
<section>
<img class="stretch" src="/images/github.png" alt="Cuenta de Github">
<aside class="notes">
<ul>
<li>github.ibm.com</li>
<li>GitLab</li>
<li>Github público</li>
</ul>
</aside>
</section>
</section>
<section>
<h3>Es peligroso ir solo, ten esto:</h3>
<img src="/images/XaaS.jpg" alt="XaaS">
<aside class="notes">
<p>Data Centers</p>
<ul>
<li>DBaaS</li>
<li>FaaS</li>
</ul>
</aside>
</section>
<section data-background="/images/nadaEsVerdad.png">
<aside class="notes">
<ul>
<li>Todo está entrelazado</li>
<li>No hay una verdad absoluta de lo que digo</li>
<li>Hoy es esto, mañana es otra cosa</li>
<li>Hablar de la experiencia = Nunca es certeza</li>
</ul>
</aside>
</section>
<section>
<section>
<h1>Coding</h1>
<ul style="list-style: none;">
<li>
<a target="_blank" href="https://developer.ibm.com/code/">👍 IBM Code</a>
</li>
<li>
<a target="_blank" href="https://developer.ibm.com/code/patterns/?cm_sp=Developer-_-code-_-See-the-Code">💻 "See the code" (ejemplos)</a>
</li>
<li>
<a target="_blank" href="https://console.bluemix.net/docs/">📔 Documentación Cloud</a>
</li>
</ul>
</section>
<section>
<h2>IBM Code</h2>
<img src="/images/ibmCode.png" alt="IBM Code">
<aside class="notes">
</aside>
</section>
<section>
<h2>Documentación IBM Cloud</h2>
<img src="/images/objectStorage.png" alt="Ejemplo Object Storage">
<aside class="notes">
<ul>
<li>Evolución de documentación</li>
<li>Open Source amigo de IBM</li>
</ul>
</aside>
</section>
<section>
<h2>IBM Coder</h2>
<a target="_blank" href="https://ibmcoders.influitive.com">Link</a>
<img src="/images/IBM_Coders.png" alt="IBM Coders">
<aside class="notes">
<ul>
<li>Recompensas</li>
<li>BETA</li>
</ul>
</aside>
</section>
</section>
<section>
<section>
<h1>Code Patterns</h1>
<a target="_blank" href="https://developer.ibm.com/code/patterns/">Link</a>
</section>
<section>
<img src="/images/code_patterns.png" alt="Code Patterns">
</section>
</section>
<section>
<section>
<h1>Open Source</h1>
<img style="background-color: white;" src="/images/openSource.png" alt="OpenSource">
<aside class="notes">
<ul>
<li>NOTAS de presentación (ver en Github)</li>
<li>Más de 15 años</li>
<li>Mucho de lo dicho, está escrito</li>
</ul>
</aside>
</section>
<section>
<img style="height: 6em; margin:10px; background-color: white;" src="/images/openStack.png" alt="OpenStack">
<img style="height: 6em; margin:10px; background-color: white;" src="/images/cloudFoundry.png" alt="Cloud Foundry">
<img style="height: 6em; margin:10px; background-color: white;" src="/images/nodeJs.png" alt="NodeJS">
<img style="height: 6em; margin:10px; background-color: white;" src="/images/openWhisk.png" alt="OpenWhisk">
<img style="height: 6em; margin:10px; background-color: white;" src="/images/docker.png" alt="Docker">
<aside class="notes">
Kubernetes
</aside>
</section>
<section>
<p>Más info:</p>
<a target="_blank" href="https://www.ibm.com/cloud/open">ibm.com/cloud/<strong>open</strong></a>
</section>
</section>
<section>
<h2>OpenStack</h2>
<ul style="list-style: none;">
<li>▶️ IBM Cloud privada <a target="_blank" href="https://www.ibm.com/account/reg/us-en/signup?formid=urx-20295">(probá)</a></li>
<li>▶️ IBM Cloud Orchestor</li>
</ul>
<aside class="notes">
<ul>
<li>
Privado: todo en tu data center, o parte de él. Disponibilidad.
</li>
<li>
Asistente, accesible, automatizado. AAAAAAA
</li>
</ul>
</aside>
</section>
<section>
<section>
<h2>Cloud Foundry</h2>
<p>bx app push <code>'app_name'</code></p>
<img src="/images/example_cf.png" alt="Ejemplo CloudFoundry">
<aside class="notes">
<p>Plataforma por VMWare, ahora Pivotal, de Dell.</p>
<p>No solo CF, sino Java Spring framework</p>
<p>"join venture entre EMC, VMware y General Electric"</p>
<p>Ruby y Go</p>
<p>Buildpacks, manifest.yml, cambios 2018</p>
</aside>
</section>
<section>
<img src="/images/upload_js_cf.gif" alt="GIF">
<br>
<a target="_blank" href="https://www.cloudfoundry.org/application-runtime/">Más info</a>
<aside class="notes">
Especificar versión, comandos, dominio, backend...
</aside>
</section>
<section>
<img src="/images/cf_kubernetes.png" alt="Kubernetes">
<aside class="notes">
Project KUBO, Pivotal y Google
</aside>
</section>
<section>
<img src="/images/Kubernetes_diagram.png" alt="Kubernetes Diagram">
<aside class="notes">
Distinto a Docker
</aside>
</section>
<section>
<h2>¿Docker, CF, Kubernetes?</h2>
<img src="/images/example_docker.png" alt="Docker & Kubernetes">
<aside class="notes">
<ol>
<li>Creamos docker file</li>
<li>Lo "publicamos"</li>
<li>Referimos link "público" a Kubernetes</li>
<li>Configuramos Kuberentes</li>
<li>Listo.</li>
</ol>
</aside>
</section>
</section>
<section>
<section>
<h2>JS & Friends</h2>
<ul style="list-style: none;">
<li>👉 <a target="_blank" href="https://developer.ibm.com/node/">Node.JS</a></li>
<li>👉 StrongLoop</li>
<li>👉 IBM API Connect</li>
</ul>
</section>
<section>
<img style="height: 5em;" src="/images/nodeJsForEveryone.png" alt="NodeJS para todxs">
<br>
<img style="height: 6em;" src="/images/simpleSteps.png" alt="Tres pasos para un monitor">
<aside class="notes">
<ul>
<li>Propio SDK (tema legal, tools)</li>
<li>Extension para VS Code</li>
<li>Métricas de app</li>
<li>Mucha apuesta!</li>
</ul>
</aside>
</section>
<section>
<h2>Strongloop</h2>
<img src="/images/strongloop_decision.png" alt="Strongloop">
<aside class="notes">
<ul>
<li>Loopback: Creación</li>
<li>Microgateway: Políticas</li>
<li>API Connect: All Inclusive</li>
</ul>
</aside>
</section>
<section>
<h2>Pero antes...</h2>
<img src="/images/swaggerHub.png" alt="Swagge Hub">
<aside class="notes">
Swagger y OpenAPI como estándar, auto documentación...
</aside>
</section>
<section>
<img src="/images/loopback.png" alt="Loopback">
</section>
<section>
<h2>API Connect</h2>
<img src="/images/api_connect.png" alt="API Connect">
</section>
<section>
<img src="https://servicebroker.service.us.apiconnect.ibmcloud.com/images/catalog/dashboard.png" alt="API Connect desde IBM Cloud">
</section>
</section>
<section>
<section>
<h2>Open Whisk</h2>
<p>Formalmente, "IBM Cloud Functions"</p>
<img src="/images/functions.png" alt="Funciones">
<aside class="notes">
FAAS por Apache, Computación sin servidor
<ul>
<li>No es necesario explicitar todo</li>
<li>Horas de procesador</li>
</ul>
</aside>
</section>
<section>
<img src="/images/openWhisk_secuencias.png" alt="Secuencias en Open Whisk">
</section>
<section>
<ul style="list-style: none;">
<li>
✅ <a target="_blank" href="https://console.bluemix.net/docs/openwhisk/openwhisk_use_cases.html#openwhisk_common_use_cases_webapps">Casos de uso comunes</a>
</li>
<li>
✅ <a target="_blank" href="https://www.ibm.com/developerworks/cloud/library/cl-openwhisk-node-bluemix-user-facing-app/index.html">Ejemplo con NodeJs</a>
</li>
</ul>
</section>
</section>
<section>
<h1>Preguntas ❔</h1>
</section>
<section>
<p>De nuevo, esto no acaba aquí.</p>
<a target="_blank" href="https://www.ibm.com/cloud">ibm.com/<strong>cloud</strong></a>
</section>
<section>
<h2>Muchas gracias</h2>
<img src="/images/vivoParaDar.gif" alt="Yo vivo para dar">
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
multiplex: {
// Example values. To generate your own, see the socket.io server instructions.
secret: null, // Obtained from the socket.io server. Gives this (the master) control of the presentation
id: '5232bc6bd6b8a6cf', // Obtained from socket.io server
url: 'https://reveal-js-multiplex-ccjbegmaii.now.sh'
},
dependencies: [
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js', async: true },
{ src: 'plugin/multiplex/client.js', async: true }
]
});
</script>
</body>
</html>
| 34.456091 | 163 | 0.588424 |
0f85a4f3fd6f3c672cc4929f5c023663d70ffa4f | 4,183 | dart | Dart | project_code/beziercurvesbigcircus/web/keyboardcontroler.dart | phbroc/devart-template | a3f24911adec282157499a70f438a41e8d14aad5 | [
"Apache-2.0"
] | null | null | null | project_code/beziercurvesbigcircus/web/keyboardcontroler.dart | phbroc/devart-template | a3f24911adec282157499a70f438a41e8d14aad5 | [
"Apache-2.0"
] | null | null | null | project_code/beziercurvesbigcircus/web/keyboardcontroler.dart | phbroc/devart-template | a3f24911adec282157499a70f438a41e8d14aad5 | [
"Apache-2.0"
] | null | null | null | part of beziercurvesbigcircus;
class KeyboardController
{
BcbcApp bcbcApp;
Map keyCodesNormal;
Map keyCodesShift;
List<int> currentKeyCodePressed;
KeyboardController(this.bcbcApp) {
keyCodesNormal = new Map();
for (var i = 0; i < 300; i++) {
keyCodesNormal[i] = "nothing";
}
keyCodesShift = new Map();
for (var i = 0; i < 300; i++) {
keyCodesShift[i] = "nothing";
}
currentKeyCodePressed = new List();
initialiseKeyCodesBinding();
document.onKeyDown.listen(keydown);
document.onKeyUp.listen(keyup);
}
void initialiseKeyCodesBinding()
{
keyCodesNormal[65] = "colorHueLeft"; //a
keyCodesNormal[90] = "colorHueRight"; //z
keyCodesNormal[69] = "colorSatUp"; //e
keyCodesNormal[82] = "colorSatDown"; //r
keyCodesNormal[84] = "colorLightUp"; //t
keyCodesNormal[89] = "colorLightDown"; //y
keyCodesNormal[85] = "panLeft"; //u
keyCodesNormal[73] = "panRight"; //i
keyCodesNormal[79] = "panUp"; //o
keyCodesNormal[80] = "panDown"; //p
keyCodesNormal[81] = "splitWidthUp"; //q
keyCodesNormal[83] = "splitWidthDown"; //s
keyCodesNormal[68] = "splitHeightUp"; //d
keyCodesNormal[70] = "splitHeightDown"; //f
keyCodesNormal[71] = "zoomUp"; //g
keyCodesNormal[72] = "zoomDown"; //h
keyCodesNormal[74] = "splitHorzUp"; //j
keyCodesNormal[75] = "splitHorzDown"; //k
keyCodesNormal[76] = "splitVertUp"; //l
keyCodesNormal[77] = "splitVertDown"; //m
keyCodesNormal[87] = "dashedRatioUp"; //w
keyCodesNormal[88] = "dashedRatioDown"; //x
keyCodesNormal[67] = "switchColorDistribution"; // c
keyCodesNormal[86] = "switchCurvesStyle"; //v
keyCodesNormal[66] = "switchColorControlled"; //b
/* ------------------ */
keyCodesShift[65] = "lw1Up"; //a
keyCodesShift[90] = "lw1Down"; //z
keyCodesShift[69] = "lw2Up"; //e
keyCodesShift[82] = "lw2Down"; //r
keyCodesShift[84] = "lw3Up"; //t
keyCodesShift[89] = "lw3Down"; //y
keyCodesShift[85] = "maxTUp"; //u
keyCodesShift[73] = "maxTDown"; //i
keyCodesShift[79] = "stpUp"; //o
keyCodesShift[80] = "stpDown"; //p
keyCodesShift[81] = "aParamUp"; //q
keyCodesShift[83] = "aParamDown"; //s
keyCodesShift[68] = "bParamUp"; //d
keyCodesShift[70] = "bParamDown"; //f
keyCodesShift[71] = "cParamUp"; //g
keyCodesShift[72] = "cParamDown"; //h
keyCodesShift[74] = "beginTUp"; //j
keyCodesShift[75] = "beginTDown"; //k
//keyCodesShift[76] = "toggleFullScreen"; //l
}
void keydown(KeyboardEvent event) {
//print("key pressed : " + event.keyCode.toString() + " ctrl : " + event.ctrlKey.toString());
currentKeyCodePressed.removeWhere((item) => item == event.keyCode);
if (event.keyCode != 16) currentKeyCodePressed.add(event.keyCode);
if (event.shiftKey) {
currentKeyCodePressed.forEach((item) => window.dispatchEvent(new CustomEvent(keyCodesNormal[item], detail:false)));
if (event.keyCode == 16) {
// ctrl key is pressed
if (currentKeyCodePressed.length > 0) {
//print("last : " + currentKeyCodePressed.last.toString());
window.dispatchEvent(new CustomEvent(keyCodesShift[currentKeyCodePressed.last], detail:true));
}
} else {
if (bcbcApp.ownMouse) window.dispatchEvent(new CustomEvent(keyCodesShift[event.keyCode], detail:true));
}
} else {
if (bcbcApp.ownMouse) window.dispatchEvent(new CustomEvent(keyCodesNormal[event.keyCode], detail:true));
else if (recordingKeys) {
//keyCodesNormal[event.keyCode] = actionSelect.value.toString();
//notes2.innerHtml = " key recorded"; //new String.fromCharCode(event.keyCode) + ;
}
}
}
void keyup(KeyboardEvent event) {
currentKeyCodePressed.removeWhere((item) => item == event.keyCode);
window.dispatchEvent(new CustomEvent(keyCodesShift[event.keyCode], detail:false));
window.dispatchEvent(new CustomEvent(keyCodesNormal[event.keyCode], detail:false));
}
} | 35.151261 | 123 | 0.620607 |
e46822d0f09b3db220c31457e101c9f0b14fef92 | 6,696 | go | Go | orm/model_table_struct.go | digoal/pg | dd8aa2f78d5ef7314d65064b7c03d42500ab6ad4 | [
"BSD-2-Clause"
] | 1 | 2019-06-10T01:41:13.000Z | 2019-06-10T01:41:13.000Z | orm/model_table_struct.go | digoal/pg | dd8aa2f78d5ef7314d65064b7c03d42500ab6ad4 | [
"BSD-2-Clause"
] | null | null | null | orm/model_table_struct.go | digoal/pg | dd8aa2f78d5ef7314d65064b7c03d42500ab6ad4 | [
"BSD-2-Clause"
] | 2 | 2018-10-26T01:52:25.000Z | 2021-04-20T08:15:00.000Z | package orm
import (
"errors"
"fmt"
"reflect"
"strings"
)
type structTableModel struct {
table *Table
rel *Relation
joins []join
root reflect.Value
index []int
strct reflect.Value
}
var _ tableModel = (*structTableModel)(nil)
func newStructTableModel(v interface{}) (*structTableModel, error) {
switch v := v.(type) {
case *structTableModel:
return v, nil
case reflect.Value:
return newStructTableModelValue(v)
default:
return newStructTableModelValue(reflect.ValueOf(v))
}
}
func newStructTableModelValue(v reflect.Value) (*structTableModel, error) {
if !v.IsValid() {
return nil, errors.New("pg: Model(nil)")
}
v = reflect.Indirect(v)
if v.Kind() != reflect.Struct {
return nil, fmt.Errorf("pg: Model(unsupported %s)", v.Type())
}
return &structTableModel{
table: Tables.Get(v.Type()),
root: v,
strct: v,
}, nil
}
func (structTableModel) useQueryOne() bool {
return true
}
func (m *structTableModel) Table() *Table {
return m.table
}
func (m *structTableModel) Relation() *Relation {
return m.rel
}
func (m *structTableModel) AppendParam(dst []byte, name string) ([]byte, bool) {
dst, ok := m.table.AppendParam(dst, m.strct, name)
if ok {
return dst, true
}
switch name {
case "TableName":
dst = append(dst, m.table.Name...)
return dst, true
case "TableAlias":
dst = append(dst, m.table.Alias...)
return dst, true
}
return dst, false
}
func (m *structTableModel) Root() reflect.Value {
return m.root
}
func (m *structTableModel) Index() []int {
return m.index
}
func (m *structTableModel) ParentIndex() []int {
return m.index[:len(m.index)-len(m.rel.Field.Index)]
}
func (m *structTableModel) Value() reflect.Value {
return m.strct
}
func (m *structTableModel) Bind(bind reflect.Value) {
m.strct = bind.FieldByIndex(m.rel.Field.Index)
}
func (m *structTableModel) initStruct(bindChildren bool) {
if m.strct.Kind() == reflect.Interface {
m.strct = m.strct.Elem()
}
if m.strct.Kind() == reflect.Ptr {
if m.strct.IsNil() {
m.strct.Set(reflect.New(m.strct.Type().Elem()))
m.strct = m.strct.Elem()
bindChildren = true
} else {
m.strct = m.strct.Elem()
}
}
if bindChildren {
m.bindChildren()
}
}
func (m *structTableModel) bindChildren() {
for i := range m.joins {
j := &m.joins[i]
switch j.Rel.Type {
case HasOneRelation, BelongsToRelation:
j.JoinModel.Bind(m.strct)
}
}
}
func (structTableModel) Reset() error {
return nil
}
func (m *structTableModel) NewModel() ColumnScanner {
m.initStruct(true)
return m
}
func (m *structTableModel) AddModel(_ ColumnScanner) error {
return nil
}
func (m *structTableModel) AfterQuery(db DB) error {
if !m.table.HasFlag(AfterQueryHookFlag) {
return nil
}
return callAfterQueryHook(m.strct.Addr(), db)
}
func (m *structTableModel) AfterSelect(db DB) error {
if !m.table.HasFlag(AfterSelectHookFlag) {
return nil
}
return callAfterSelectHook(m.strct.Addr(), db)
}
func (m *structTableModel) BeforeInsert(db DB) error {
if !m.table.HasFlag(BeforeInsertHookFlag) {
return nil
}
return callBeforeInsertHook(m.strct.Addr(), db)
}
func (m *structTableModel) AfterInsert(db DB) error {
if !m.table.HasFlag(AfterInsertHookFlag) {
return nil
}
return callAfterInsertHook(m.strct.Addr(), db)
}
func (m *structTableModel) BeforeUpdate(db DB) error {
if !m.table.HasFlag(BeforeUpdateHookFlag) {
return nil
}
return callBeforeUpdateHook(m.strct.Addr(), db)
}
func (m *structTableModel) AfterUpdate(db DB) error {
if !m.table.HasFlag(AfterUpdateHookFlag) {
return nil
}
return callAfterUpdateHook(m.strct.Addr(), db)
}
func (m *structTableModel) BeforeDelete(db DB) error {
if !m.table.HasFlag(BeforeDeleteHookFlag) {
return nil
}
return callBeforeDeleteHook(m.strct.Addr(), db)
}
func (m *structTableModel) AfterDelete(db DB) error {
if !m.table.HasFlag(AfterDeleteHookFlag) {
return nil
}
return callAfterDeleteHook(m.strct.Addr(), db)
}
func (m *structTableModel) ScanColumn(colIdx int, colName string, b []byte) error {
ok, err := m.scanColumn(colIdx, colName, b)
if ok {
return err
}
return fmt.Errorf("pg: can't find column=%s in model=%s", colName, m.table.Type.Name())
}
func (m *structTableModel) scanColumn(colIdx int, colName string, b []byte) (bool, error) {
joinName, fieldName := splitColumn(colName)
if joinName != "" {
if join := m.GetJoin(joinName); join != nil {
return join.JoinModel.scanColumn(colIdx, fieldName, b)
}
if m.table.ModelName == joinName {
return m.scanColumn(colIdx, fieldName, b)
}
}
field, ok := m.table.FieldsMap[colName]
if !ok {
return false, nil
}
m.initStruct(false)
return true, field.ScanValue(m.strct, b)
}
func (m *structTableModel) GetJoin(name string) *join {
for i := range m.joins {
j := &m.joins[i]
if j.Rel.Field.GoName == name || j.Rel.Field.SQLName == name {
return j
}
}
return nil
}
func (m *structTableModel) GetJoins() []join {
return m.joins
}
func (m *structTableModel) AddJoin(j join) *join {
m.joins = append(m.joins, j)
return &m.joins[len(m.joins)-1]
}
func (m *structTableModel) Join(name string, apply func(*Query) (*Query, error)) (bool, *join) {
return m.join(m.Value(), name, apply)
}
func (m *structTableModel) join(
bind reflect.Value, name string, apply func(*Query) (*Query, error),
) (bool, *join) {
path := strings.Split(name, ".")
index := make([]int, 0, len(path))
currJoin := join{
BaseModel: m,
JoinModel: m,
}
var created bool
var lastJoin *join
var hasColumnName bool
for _, name := range path {
rel, ok := currJoin.JoinModel.Table().Relations[name]
if !ok {
hasColumnName = true
break
}
currJoin.Rel = rel
index = append(index, rel.Field.Index...)
if j := currJoin.JoinModel.GetJoin(name); j != nil {
currJoin.BaseModel = j.BaseModel
currJoin.JoinModel = j.JoinModel
created = false
lastJoin = j
} else {
model, err := newTableModelIndex(bind, index, rel)
if err != nil {
return false, nil
}
currJoin.Parent = lastJoin
currJoin.BaseModel = currJoin.JoinModel
currJoin.JoinModel = model
created = true
lastJoin = currJoin.BaseModel.AddJoin(currJoin)
}
}
// No joins with such name.
if lastJoin == nil {
return false, nil
}
if apply != nil {
lastJoin.ApplyQuery = apply
}
if hasColumnName {
column := path[len(path)-1]
if column == "_" {
if lastJoin.Columns == nil {
lastJoin.Columns = make([]string, 0)
}
} else {
lastJoin.Columns = append(lastJoin.Columns, column)
}
}
return created, lastJoin
}
func splitColumn(s string) (string, string) {
ind := strings.Index(s, "__")
if ind == -1 {
return "", s
}
return s[:ind], s[ind+2:]
}
| 20.795031 | 96 | 0.678017 |
754d7cd90980acd8ed0184b4161c2102634bb397 | 1,260 | cs | C# | unity-game/OVO Challege/Assets/Realistic Drone/drone/Tools/lineDrawer.cs | coderrick/elc-ovo | 70f97fd7e54493e02bec20693bb501e9ec1819b9 | [
"Apache-2.0"
] | null | null | null | unity-game/OVO Challege/Assets/Realistic Drone/drone/Tools/lineDrawer.cs | coderrick/elc-ovo | 70f97fd7e54493e02bec20693bb501e9ec1819b9 | [
"Apache-2.0"
] | null | null | null | unity-game/OVO Challege/Assets/Realistic Drone/drone/Tools/lineDrawer.cs | coderrick/elc-ovo | 70f97fd7e54493e02bec20693bb501e9ec1819b9 | [
"Apache-2.0"
] | null | null | null | using UnityEngine;
using System.Collections;
public class lineDrawer : MonoBehaviour {
public int initialPosition;
public int lengthOfLineRenderer = 20;
private int ticket;
private LineRenderer lr;
/// <summary>
/// Function called before of the first update
/// </summary>
void Start() {
lr = gameObject.GetComponent<LineRenderer>();
lr.SetVertexCount(lengthOfLineRenderer);
ticket = initialPosition;
int t = initialPosition;
while (t < lengthOfLineRenderer)
{
lr.SetPosition(t, new Vector3());
t++;
}
}
/// <summary>
/// Assign a ticket on the lineRender component. It can be used to print a line
/// </summary>
public int getTicket() { int t = ticket; ticket += 2; return t; }
/// <summary>
/// Function used to draw a line on the lineRenderer
/// </summary>
/// <param name="ticket">The ticket is received at the registration moment and it is associated to a particular line</param>
/// <param name="point">The final point of the line we want to print</param>
public void drawPosition(int ticket, Vector3 point) { if (lr == null) return; lr.SetPosition(ticket, point); }
}
| 30 | 128 | 0.624603 |
9bb38b5de3a7e25c5e5c80b2f1b6532ccc6cb404 | 2,748 | js | JavaScript | Bundle/AlphaLemon/Block/ScriptBundle/Resources/public/js/script_editor.js | alphalemon/AlphaLemonCmsBundle | 6781ce98ce0365026a64e05654eb05f17fc0c921 | [
"MIT"
] | 1 | 2016-01-11T04:06:46.000Z | 2016-01-11T04:06:46.000Z | Bundle/AlphaLemon/Block/ScriptBundle/Resources/public/js/script_editor.js | alphalemon/AlphaLemonCmsBundle | 6781ce98ce0365026a64e05654eb05f17fc0c921 | [
"MIT"
] | null | null | null | Bundle/AlphaLemon/Block/ScriptBundle/Resources/public/js/script_editor.js | alphalemon/AlphaLemonCmsBundle | 6781ce98ce0365026a64e05654eb05f17fc0c921 | [
"MIT"
] | null | null | null | $(document).ready(function() {
$(document).on("popoverShow", function(event, element){
if (element.attr('data-type') != 'Script') {
return;
}
$('#myTab a').click(function(){
$(this).tab('show');
return false;
});
$("#al_html_saver").click(function()
{
$("#al_html_editor").EditBlock("Content");
return false;
});
$("#al_internal_javascript_saver").click(function()
{
$("#al_internal_javascript").EditBlock("InternalJavascript");
return false;
});
$("#al_internal_stylesheet_saver").click(function()
{
$("#al_internal_stylesheet").EditBlock("InternalStylesheet");
return false;
});
$(".al_Stylesheet_item_remover").RemoveExternalFile("ExternalStylesheet");
$(".al_Javascript_item_remover").RemoveExternalFile("ExternalJavascript");
$(".al_Stylesheet_file_manager").click(function(){
openMediaLibrary('al-stylesheet-external-files', 'ExternalStylesheet', 'al_elFinderStylesheetsConnect')
});
$(".al_Javascript_file_manager").click(function(){
openMediaLibrary('al-javascript-external-files', 'ExternalJavascript', 'al_elFinderJavascriptsConnect')
});
$(".al-Stylesheet-removable-item").click(function()
{
var isCurrentItemSelected = $(this).hasClass("al_selected_item");
$(".al-Stylesheet .al_selected_item").removeClass("al_selected_item");
if(!isCurrentItemSelected) $(this).addClass("al_selected_item");
return false;
});
$(".al-Javascript-removable-item").click(function()
{
var isCurrentItemSelected = $(this).hasClass("al_selected_item");
$(".al-Javascript .al_selected_item").removeClass("al_selected_item");
if(!isCurrentItemSelected) $(this).addClass("al_selected_item");
return false;
});
});
});
function openMediaLibrary(id, key, connector)
{
$('<div/>').dialogelfinder({
url : frontController + 'backend/' + $('#al_available_languages option:selected').val() + '/' + connector,
lang : 'en',
width : 840,
destroyOnClose : true,
commandsOptions : {
getfile : {
onlyURL : false,
}
},
getFileCallback : function(file, fm) {
$('#' + id).AddExternalFile(key, file.path);
}
}).dialogelfinder('instance');
}
| 35.230769 | 118 | 0.534934 |
05fee74d3a7e1d210f2d0cadefb4e371a457b858 | 3,085 | html | HTML | projects/metamorfose.html | LNKAMAKI/PHP | 694c99367cc0493504a757a45e745b1230f4af4f | [
"MIT"
] | null | null | null | projects/metamorfose.html | LNKAMAKI/PHP | 694c99367cc0493504a757a45e745b1230f4af4f | [
"MIT"
] | null | null | null | projects/metamorfose.html | LNKAMAKI/PHP | 694c99367cc0493504a757a45e745b1230f4af4f | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
h1 {
text-align: center;
font-family: Arial, Helvetica, sans-serif;
}
p {
font-size: 1.7em;
padding-left: 20px;
padding-right: 20px;
}
blockquote {
font-size: 1.4em;
font-family: monospace;
font-weight: bold;
display: block;
}
</style>
</head>
<body>
<h1>MAESTRINA ELLEN KAORI</h1>
<p>Trecho 1 - Página 20:</p>
<p>Na altura em que a ruína tinha desabado sobre o pai, o único desejo
de Gregor era fazer todos os possíveis para que a família se esquecesse com a maior
rapidez de tal catástrofe, que mergulhara todos no mais completo desespero. Assim,
começara a trabalhar com invulgar ardor e, quase de um dia para outro, passou de
simples empregado de escritório a caixeiro-viajante, com oportunidades conseguiu
entre melhores de ganhar bem, êxito esse que depressa se converteu em metal sonante que depositava na mesa, ante a surpresa e a alegria da família. Tinha sido
uma época feliz, que nunca viria a ser igualada, embora mais tarde Gregor ganhasse
o suficiente para sustentar inteiramente a casa. Tinham-se, pura e simplesmente,
habituado ao acontecimento, tanto a família corno ele próprio: ele dava o dinheiro
de boa vontade e eles aceitavam-no com gratidão, mas não havia qualquer efusão de
sentimentos. </p>
<blockquote>Esse trecho mostra que, embora Gregor desse o seu melhor no trabalho para sustentar a família e dar a ela maior conforto financeiro, com o tempo os membros se acostumaram com essa situação e já não reconheciam de fato o esforço de Gregor, que teria se demitido se não tivesse uma motivação maior para continuar no emprego, que era justamente conseguir dinheiro para atender as despesas da casa. Essa passagem da história, mostra, portanto, o quão rápido as pessoas se acostumam com qualquer situação, seja ela negativa ou positiva, e que muitas vezes elas se esquecem ou deixam de reconhecer o esforço que outras fazem por elas.</blockquote>
<p>Trecho 2 - Página 7:</p>
<p> O rapaz não pensa senão no emprego.
Quase me zango com a mania que ele tem de nunca sair à noite; há oito dias que está
em casa e não houve uma única noite que não ficasse em casa. Senta-se ali à mesa,
muito sossegado, a ler o jornal ou a consultar horários de trens. O único divertimento dele é talhar madeira.</p>
<blockquote>
Esse trecho mostra que Gregor trabalhava tanto que mal tinha tempo para a família, a qual ele inconscientemente trocou pelo trabalho e não fazia atividade que não fosse relacionada a ele. Portanto, deixou-se levar pelo trabalho e esqueceu que o motivo de toda sua dedicação era sua família e também deixou de aproveitar sua vida enquanto podia.
</blockquote>
</body>
</html> | 58.207547 | 657 | 0.713776 |
f5043f3139e6f3b88e32e67bc0580850801c0bea | 10,372 | cpp | C++ | lib/loader/ast/section.cpp | spider0061/WasmEdge | e0d91c317dad794ec4009890bdd4878e8128dec2 | [
"Apache-2.0"
] | null | null | null | lib/loader/ast/section.cpp | spider0061/WasmEdge | e0d91c317dad794ec4009890bdd4878e8128dec2 | [
"Apache-2.0"
] | null | null | null | lib/loader/ast/section.cpp | spider0061/WasmEdge | e0d91c317dad794ec4009890bdd4878e8128dec2 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
#include "loader/loader.h"
#include "aot/version.h"
#include "common/defines.h"
namespace WasmEdge {
namespace Loader {
/// Load content size. See "include/loader/loader.h".
Expect<uint32_t> Loader::loadSectionSize(ASTNodeAttr Node) {
if (auto Res = FMgr.readU32()) {
return *Res;
} else {
return logLoadError(Res.error(), FMgr.getLastOffset(), Node);
}
}
/// Load content of custom section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::CustomSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() -> Expect<void> {
/// Read name.
auto StartOffset = FMgr.getOffset();
if (auto Res = FMgr.readName()) {
Sec.setName(*Res);
} else {
return logLoadError(Res.error(), FMgr.getLastOffset(),
ASTNodeAttr::Sec_Custom);
}
auto ReadSize = FMgr.getOffset() - StartOffset;
/// Read remain bytes.
if (auto Res = FMgr.readBytes(Sec.getContentSize() - ReadSize)) {
Sec.getContent().insert(Sec.getContent().end(), (*Res).begin(),
(*Res).end());
} else {
return logLoadError(Res.error(), FMgr.getLastOffset(),
ASTNodeAttr::Sec_Custom);
}
return {};
});
}
/// Load vector of type section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::TypeSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() {
return loadSectionContentVec(Sec, [this](AST::FunctionType &FuncType) {
return loadType(FuncType);
});
});
}
/// Load vector of import section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::ImportSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() {
return loadSectionContentVec(
Sec, [this](AST::ImportDesc &ImpDesc) { return loadDesc(ImpDesc); });
});
}
/// Load vector of function section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::FunctionSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() -> Expect<void> {
return loadSectionContentVec(
Sec, [this](uint32_t &FuncIdx) -> Expect<void> {
if (auto Res = FMgr.readU32()) {
FuncIdx = *Res;
} else {
spdlog::error(Res.error());
spdlog::error(ErrInfo::InfoLoading(FMgr.getLastOffset()));
return Unexpect(Res);
}
return {};
});
});
}
/// Load vector of table section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::TableSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() {
return loadSectionContentVec(
Sec, [this](AST::TableType &TabType) { return loadType(TabType); });
});
}
/// Load vector of memory section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::MemorySection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() {
return loadSectionContentVec(
Sec, [this](AST::MemoryType &MemType) { return loadType(MemType); });
});
}
/// Load vector of global section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::GlobalSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() {
return loadSectionContentVec(Sec, [this](AST::GlobalSegment &GlobSeg) {
return loadSegment(GlobSeg);
});
});
}
/// Load vector of export section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::ExportSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() {
return loadSectionContentVec(
Sec, [this](AST::ExportDesc &ExpDesc) { return loadDesc(ExpDesc); });
});
}
/// Load start function index. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::StartSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() -> Expect<void> {
/// Read u32 of start function index.
if (auto Res = FMgr.readU32()) {
Sec.setContent(*Res);
} else {
return logLoadError(Res.error(), FMgr.getLastOffset(),
ASTNodeAttr::Sec_Start);
}
return {};
});
}
/// Load vector of element section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::ElementSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() {
return loadSectionContentVec(Sec, [this](AST::ElementSegment &ElemSeg) {
return loadSegment(ElemSeg);
});
});
}
/// Load vector of code section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::CodeSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() {
return loadSectionContentVec(Sec, [this](AST::CodeSegment &CodeSeg) {
return loadSegment(CodeSeg);
});
});
}
/// Load vector of data section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::DataSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() {
return loadSectionContentVec(Sec, [this](AST::DataSegment &DataSeg) {
return loadSegment(DataSeg);
});
});
}
/// Load content of data count section. See "include/loader/loader.h".
Expect<void> Loader::loadSection(AST::DataCountSection &Sec) {
return loadSectionContent(Sec, [this, &Sec]() -> Expect<void> {
/// Read u32 of data count.
if (auto Res = FMgr.readU32()) {
Sec.setContent(*Res);
} else {
return logLoadError(Res.error(), FMgr.getLastOffset(),
ASTNodeAttr::Sec_DataCount);
}
return {};
});
}
namespace {
inline constexpr uint32_t HostVersion() noexcept {
return WasmEdge::AOT::kBinaryVersion;
}
inline constexpr uint8_t HostOSType() noexcept {
#if WASMEDGE_OS_LINUX
return UINT8_C(1);
#elif WASMEDGE_OS_MACOS
return UINT8_C(2);
#elif WASMEDGE_OS_WINDOWS
return UINT8_C(3);
#endif
}
inline constexpr uint8_t HostArchType() noexcept {
#if defined(__x86_64__)
return UINT8_C(1);
#elif defined(__aarch64__)
return UINT8_C(2);
#endif
}
} // namespace
Expect<void> Loader::loadSection(FileMgr &VecMgr, AST::AOTSection &Sec) {
if (auto Res = VecMgr.readU32(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT binary version read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.setVersion(*Res);
}
if (unlikely(Sec.getVersion() != HostVersion())) {
spdlog::error(ErrCode::MalformedSection);
spdlog::error("AOT binary version unmatched.");
return Unexpect(ErrCode::MalformedSection);
}
if (auto Res = VecMgr.readByte(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT os type read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.setOSType(*Res);
}
if (unlikely(Sec.getOSType() != HostOSType())) {
spdlog::error(ErrCode::MalformedSection);
spdlog::error("AOT OS type unmatched.");
return Unexpect(ErrCode::MalformedSection);
}
if (auto Res = VecMgr.readByte(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT arch type read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.setArchType(*Res);
}
if (unlikely(Sec.getArchType() != HostArchType())) {
spdlog::error(ErrCode::MalformedSection);
spdlog::error("AOT arch type unmatched.");
return Unexpect(ErrCode::MalformedSection);
}
if (auto Res = VecMgr.readU64(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT version address read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.setVersionAddress(*Res);
}
if (auto Res = VecMgr.readU64(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT intrinsics address read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.setIntrinsicsAddress(*Res);
}
if (auto Res = VecMgr.readU64(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT types size read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.getTypesAddress().resize(*Res);
}
for (size_t I = 0; I < Sec.getTypesAddress().size(); ++I) {
if (auto Res = VecMgr.readU64(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT type address read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.getTypesAddress()[I] = *Res;
}
}
if (auto Res = VecMgr.readU64(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT code size read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.getCodesAddress().resize(*Res);
}
for (size_t I = 0; I < Sec.getCodesAddress().size(); ++I) {
if (auto Res = VecMgr.readU64(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT code address read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.getCodesAddress()[I] = *Res;
}
}
if (auto Res = VecMgr.readU32(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT section count read error:{}", Res.error());
return Unexpect(Res);
} else {
Sec.getSections().resize(*Res);
}
for (auto &Section : Sec.getSections()) {
if (auto Res = VecMgr.readByte(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT section type read error:{}", Res.error());
return Unexpect(Res);
} else {
std::get<0>(Section) = *Res;
}
if (auto Res = VecMgr.readU64(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT section offset read error:{}", Res.error());
return Unexpect(Res);
} else {
std::get<1>(Section) = *Res;
}
if (auto Res = VecMgr.readU64(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT section size read error:{}", Res.error());
return Unexpect(Res);
} else {
std::get<2>(Section) = *Res;
}
uint32_t ContentSize;
if (auto Res = VecMgr.readU32(); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT section data size read error:{}", Res.error());
return Unexpect(Res);
} else {
ContentSize = *Res;
}
if (auto Res = VecMgr.readBytes(ContentSize); unlikely(!Res)) {
spdlog::error(Res.error());
spdlog::error("AOT section data read error:{}", Res.error());
return Unexpect(Res);
} else {
std::get<3>(Section) = std::move(*Res);
}
}
return {};
}
} // namespace Loader
} // namespace WasmEdge
| 31.430303 | 77 | 0.629194 |
cb1d29c184954c0004a179ddb04831cf146761b1 | 2,330 | h | C | inetsrv/msmq/src/rtdep/rtpsec.h | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/msmq/src/rtdep/rtpsec.h | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/msmq/src/rtdep/rtpsec.h | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //
// file: rtpsec.h
//
#ifndef _RTPSEC_H_
#define _RTPSEC_H_
#include <mqcrypt.h>
#include <cs.h>
//
// The security context.
//
#define SECURITY_CONTEXT_VER 1
class MQSECURITY_CONTEXT
{
public:
MQSECURITY_CONTEXT();
~MQSECURITY_CONTEXT();
DWORD dwVersion; // The version of the security context.
BOOL fLocalUser; // Indicates whether the user is a local user.
BOOL fLocalSystem; // Indicates whether the user is a localSystem account.
P<BYTE> pUserSid; // A pointer to the user SID. Undefined for a local user.
DWORD dwUserSidLen; // The length of the user SID. Undefined for a local user.
CHCryptProv hProv; // A context handle to the cert CSP.
P<BYTE> pUserCert; // A pointer to the user cert.
DWORD dwUserCertLen; // The length of the user cert.
P<WCHAR> wszProvName; // The name of the cert CSP.
DWORD dwProvType; // The type of the cert CSP.
BOOL bDefProv; // True if the cert CSP is the default CSP.
BOOL bInternalCert; // True if the cert is an internal MSMQ cert.
//
// Member variables added to fix MSMQ bug 2955
//
CCriticalSection CS ; // critical section for multi-threaded.
BOOL fAlreadyImported ; // Private key already imported.
P<BYTE> pPrivateKey ; // Blob of private key.
DWORD dwPrivateKeySize ; // size of private key blob.
WCHAR wszContainerName[ 28 ] ; // Name of container for keys.
};
typedef MQSECURITY_CONTEXT *PMQSECURITY_CONTEXT;
PMQSECURITY_CONTEXT AllocSecurityContext() ;
HRESULT RTpImportPrivateKey( PMQSECURITY_CONTEXT pSecCtx ) ;
HRESULT
GetCertInfo(
IN BOOL bUseCurrentUser,
IN BOOL bMachine,
IN OUT BYTE **ppbCert,
OUT DWORD *pdwCertLen,
OUT HCRYPTPROV *phProv,
OUT LPWSTR *wszProvName,
OUT DWORD *pdwProvType,
OUT BOOL *pbDefProv,
OUT BOOL *pbInternalCert
);
HRESULT
RTpGetThreadUserSid( BOOL *pfLocalUser,
BOOL *pfLocalSystem,
LPBYTE *ppUserSid,
DWORD *pdwUserSidLen ) ;
#endif //_RTPSEC_H_
| 31.486486 | 92 | 0.599571 |
9c6e729add96118aad8f0102b8f3c4bbf75a9d9c | 19,278 | js | JavaScript | public/assets/vendor/aspaginator/jquery.asPaginator.js | andriasmelianus/amslogger | c1603fc098ee06aa62d0e12d63f9e3bc30aafeb5 | [
"MIT"
] | 3 | 2021-11-24T22:44:21.000Z | 2022-02-19T15:58:27.000Z | public/assets/vendor/aspaginator/jquery.asPaginator.js | andriasmelianus/amslogger | c1603fc098ee06aa62d0e12d63f9e3bc30aafeb5 | [
"MIT"
] | 14 | 2019-12-28T16:21:50.000Z | 2022-03-02T04:26:28.000Z | public/assets/vendor/aspaginator/jquery.asPaginator.js | andriasmelianus/amslogger | c1603fc098ee06aa62d0e12d63f9e3bc30aafeb5 | [
"MIT"
] | 5 | 2018-06-02T01:09:27.000Z | 2019-04-22T12:59:37.000Z | /*! jQuery asPaginator - v0.2.1 - 2015-03-17
* https://github.com/amazingSurge/jquery-asPaginator
* Copyright (c) 2015 amazingSurge; Licensed GPL */
(function($) {
"use strict";
var AsPaginator = $.asPaginator = function(paginator, totalItems, options) {
this.element = paginator;
this.$element = $(paginator).empty();
this.options = $.extend({}, AsPaginator.defaults, options);
this.namespace = this.options.namespace;
this.currentPage = this.options.currentPage || 1;
this.itemsPerPage = this.options.itemsPerPage;
this.totalItems = totalItems;
this.totalPages = this.getTotalPages();
if (this.isOutOfBounds()) {
this.currentPage = this.totalPages;
}
this.initialized = false;
this.components = $.extend(true, {}, this.components);
this.$element.addClass(this.namespace);
if (this.options.skin) {
this.$element.addClass(this.options.skin);
}
this.classes = {
disabled: this.options.disabledClass,
active: this.options.activeClass
}
this.disabled = false;
this._trigger('init');
this.init();
};
AsPaginator.prototype = {
constructor: AsPaginator,
components: {},
init: function() {
var self = this;
self.visible = self.getVisible();
$.each(this.options.components, function(key, value) {
if (value === null || value === false) {
return false;
}
self.components[key].init.call(self.components[key], self);
});
self.createHtml();
self.bindEvents();
self.goTo(self.currentPage);
self.initialized = true;
// responsive
if (typeof this.options.visibleNum !== 'number') {
$(window).on('resize', this._throttle(function() {
self.resize.call(self);
}, this.options.resizeTime));
}
this._trigger('ready');
},
createHtml: function() {
var self = this,
contents;
self.contents = self.options.tpl();
var length = self.contents.match(/\{\{([^\}]+)\}\}/g).length,
components;
for (var i = 0; i < length; i++) {
components = self.contents.match(/\{\{([^\}]+)\}\}/);
if (components[1] === 'namespace') {
self.contents = self.contents.replace(components[0], self.namespace);
continue;
}
if (this.options.components[components[1]]) {
contents = self.components[components[1]].opts.tpl.call(self);
self.contents = self.contents.replace(components[0], contents);
}
}
self.$element.append($(self.contents));
},
bindEvents: function() {
var self = this;
$.each(this.options.components, function(key, value) {
if (value === null || value === false) {
return false;
}
self.components[key].bindEvents.call(self.components[key], self);
});
},
unbindEvents: function() {
var self = this;
$.each(this.options.components, function(key, value) {
if (value === null || value === false) {
return false;
}
self.components[key].unbindEvents.call(self.components[key], self);
});
},
resize: function() {
var self = this;
self._trigger('resize');
self.goTo(self.currentPage);
self.visible = self.getVisible();
$.each(this.options.components, function(key, value) {
if (value === null || value === false) {
return false;
}
if (typeof self.components[key].resize === 'undefined') {
return;
}
self.components[key].resize.call(self.components[key], self);
});
},
_throttle: function(func, wait) {
var _now = Date.now || function() {
return new Date().getTime();
};
var context, args, result;
var timeout = null;
var previous = 0;
var later = function() {
previous = _now();
timeout = null;
result = func.apply(context, args);
context = args = null;
};
return function() {
var now = _now();
var remaining = wait - (now - previous);
context = this;
args = arguments;
if (remaining <= 0) {
clearTimeout(timeout);
timeout = null;
previous = now;
result = func.apply(context, args);
context = args = null;
} else if (!timeout) {
timeout = setTimeout(later, remaining);
}
return result;
};
},
getVisible: function() {
var width = $('body, html').width(),
adjacent = 0;
if (typeof this.options.visibleNum !== 'number') {
$.each(this.options.visibleNum, function(i, v) {
if (width > i) {
adjacent = v;
}
});
} else {
adjacent = this.options.visibleNum;
}
return adjacent;
},
calculate: function(current, total, visible) {
var omitLeft = 1,
omitRight = 1;
if (current <= visible + 2) {
omitLeft = 0;
}
if (current + visible + 1 >= total) {
omitRight = 0;
}
return {
left: omitLeft,
right: omitRight
};
},
_trigger: function(eventType) {
var method_arguments = Array.prototype.slice.call(arguments, 1),
data = [this].concat(method_arguments);
// event
this.$element.trigger('asPaginator::' + eventType, data);
// callback
eventType = eventType.replace(/\b\w+\b/g, function(word) {
return word.substring(0, 1).toUpperCase() + word.substring(1);
});
var onFunction = 'on' + eventType;
if (typeof this.options[onFunction] === 'function') {
this.options[onFunction].apply(this, method_arguments);
}
},
goTo: function(page) {
page = Math.max(1, Math.min(page, this.totalPages));
// if true , dont relaod again
if (page === this.currentPage && this.initialized === true) {
return false;
}
this.$element.find('.' + this.classes.disabled).removeClass(this.classes.disabled);
// when add class when go to the first one or the last one
if (page === this.totalPages) {
this.$element.find('.' + this.namespace + '-next').addClass(this.classes.disabled);
this.$element.find('.' + this.namespace + '-last').addClass(this.classes.disabled);
}
if (page === 1) {
this.$element.find('.' + this.namespace + '-prev').addClass(this.classes.disabled);
this.$element.find('.' + this.namespace + '-first').addClass(this.classes.disabled);
}
// here change current page first, and then trigger 'change' event
this.currentPage = page;
if (this.initialized) {
this._trigger('change', page);
}
},
prev: function() {
if (this.hasPreviousPage()) {
this.goTo(this.getPreviousPage());
return true;
}
return false;
},
next: function() {
if (this.hasNextPage()) {
this.goTo(this.getNextPage());
return true;
}
return false;
},
goFirst: function() {
return this.goTo(1);
},
goLast: function() {
return this.goTo(this.totalPages);
},
// update({totalItems: 10, itemsPerPage: 5, currentPage:3});
// update('totalPage', 10);
update: function(data, value) {
var changes = {};
if (typeof data === "string") {
changes[data] = value;
} else {
changes = data;
}
for (var option in changes) {
switch (option) {
case 'totalItems':
this.totalItems = changes[option];
break;
case 'itemsPerPage':
this.itemsPerPage = changes[option];
break;
case 'currentPage':
this.currentPage = changes[option];
break;
}
}
this.totalPages = this.totalPages();
// wait to do
},
isOutOfBounds: function() {
return this.currentPage > this.totalPages;
},
getItemsPerPage: function() {
return this.itemsPerPage;
},
getTotalItems: function() {
return this.totalItems;
},
getTotalPages: function() {
this.totalPages = Math.ceil(this.totalItems / this.itemsPerPage);
this.lastPage = this.totalPages;
return this.totalPages;
},
getCurrentPage: function() {
return this.currentPage;
},
hasPreviousPage: function() {
return this.currentPage > 1;
},
getPreviousPage: function() {
if (this.hasPreviousPage()) {
return this.currentPage - 1;
} else {
return false;
}
},
hasNextPage: function() {
return this.currentPage < this.totalPages;
},
getNextPage: function() {
if (this.hasNextPage()) {
return this.currentPage + 1;
} else {
return false;
}
},
enable: function() {
if (this.disabled) {
this.disabled = false;
this.$element.removeClass(this.classes.disabled);
this.bindEvents();
}
},
disable: function() {
if (this.disabled !== true) {
this.disabled = true;
this.$element.addClass(this.classes.disabled);
this.unbindEvents();
}
},
destory: function() {
this.$element.removeClass(this.classes.disabled);
this.unbindEvents();
this.$element.data('asPaginator', null);
this._trigger('destory');
}
};
AsPaginator.defaults = {
namespace: 'asPaginator',
currentPage: 1,
itemsPerPage: 10,
visibleNum: 5,
resizeThrottle: 250,
disabledClass: 'asPaginator_disable',
activeClass: 'asPaginator_active',
tpl: function() {
return '<ul>{{first}}{{prev}}{{lists}}{{next}}{{last}}</ul>';
},
skin: null,
components: {
first: true,
prev: true,
next: true,
last: true,
lists: true
},
// callback function
onInit: null,
onReady: null,
onChange: null // function(page) {}
};
AsPaginator.registerComponent = function(name, method) {
AsPaginator.prototype.components[name] = method;
};
AsPaginator.registerComponent('prev', {
defaults: {
tpl: function() {
return '<li class="' + this.namespace + '-prev"><a>Prev</a></li>';
}
},
init: function(instance) {
var opts = $.extend({}, this.defaults, instance.options.components.prev);
this.opts = opts;
},
bindEvents: function(instance) {
this.$prev = instance.$element.find('.' + instance.namespace + '-prev');
this.$prev.on('click.asPaginator', $.proxy(instance.prev, instance));
},
unbindEvents: function() {
this.$prev.off('click.asPaginator');
}
})
AsPaginator.registerComponent('next', {
defaults: {
tpl: function() {
return '<li class="' + this.namespace + '-next"><a>Next</a></li>';
}
},
init: function(instance) {
var opts = $.extend({}, this.defaults, instance.options.components.next);
this.opts = opts;
},
bindEvents: function(instance) {
this.$next = instance.$element.find('.' + instance.namespace + '-next');
this.$next.on('click.asPaginator', $.proxy(instance.next, instance));
},
unbindEvents: function() {
this.$next.off('click.asPaginator');
}
});
AsPaginator.registerComponent('first', {
defaults: {
tpl: function() {
return '<li class="' + this.namespace + '-first"><a>First</a></li>';
}
},
init: function(instance) {
var opts = $.extend({}, this.defaults, instance.options.components.first);
this.opts = opts;
},
bindEvents: function(instance) {
this.$first = instance.$element.find('.' + instance.namespace + '-first');
this.$first.on('click.asPaginator', $.proxy(instance.goFirst, instance));
},
unbindEvents: function() {
this.$first.off('click.asPaginator');
}
});
AsPaginator.registerComponent('last', {
defaults: {
tpl: function() {
return '<li class="' + this.namespace + '-last"><a>Last</a></li>';
}
},
init: function(instance) {
var opts = $.extend({}, this.defaults, instance.options.components.last);
this.opts = opts;
},
bindEvents: function(instance) {
this.$last = instance.$element.find('.' + instance.namespace + '-last');
this.$last.on('click.asPaginator', $.proxy(instance.goLast, instance));
},
unbindEvents: function() {
this.$last.off('click.asPaginator');
}
});
AsPaginator.registerComponent('lists', {
defaults: {
tpl: function() {
var lists = '',
remainder = this.currentPage >= this.visible ? this.currentPage % this.visible : this.currentPage;
remainder = remainder === 0 ? this.visible : remainder;
for (var k = 1; k < remainder; k++) {
lists += '<li class="' + this.namespace + '-items" data-value="' + (this.currentPage - remainder + k) + '"><a href="#">' + (this.currentPage - remainder + k) + '</a></li>';
}
lists += '<li class="' + this.namespace + '-items ' + this.classes.active + '" data-value="' + this.currentPage + '"><a href="#">' + this.currentPage + '</a></li>';
for (var i = this.currentPage + 1, limit = i + this.visible - remainder - 1 > this.totalPages ? this.totalPages : i + this.visible - remainder - 1; i <= limit; i++) {
lists += '<li class="' + this.namespace + '-items" data-value="' + i + '"><a href="#">' + i + '</a></li>';
}
return lists;
}
},
init: function(instance) {
var opts = $.extend({}, this.defaults, instance.options.components.lists);
this.opts = opts;
instance.itemsTpl = this.opts.tpl.call(instance);
},
bindEvents: function(instance) {
var self = this;
this.$items = instance.$element.find('.' + instance.namespace + '-items');
instance.$element.on('click', this.$items, function(e) {
var page = $(e.target).parent().data('value') || $(e.target).data('value');
if (page === undefined) {
//console.log("wrong page value or prev&&next");
return false;
}
if (page === '') {
return false;
}
instance.goTo(page);
});
self.render(instance);
instance.$element.on('asPaginator::change', function() {
self.render(instance);
});
},
unbindEvents: function(instance) {
instance.$element.off('click', this.$items);
},
resize: function(instance) {
this.render(instance);
},
render: function(instance) {
var current = instance.currentPage,
overflow,
self = this;
var array = this.$items.removeClass(instance.classes.active);
$.each(array, function(i, v) {
if ($(v).data('value') === current) {
$(v).addClass(instance.classes.active);
overflow = false;
return false;
}
});
if (overflow === false && this.visibleBefore === instance.visible) {
return;
}
this.visibleBefore = instance.visible;
$.each(array, function(i, v) {
if (i === 0) {
$(v).replaceWith(self.opts.tpl.call(instance));
} else {
$(v).remove();
}
});
this.$items = instance.$element.find('.' + instance.namespace + '-items');
}
});
// Collection method
$.fn.asPaginator = function(totalItems, options) {
if (typeof options === 'string') {
var method = options;
var method_arguments = Array.prototype.slice.call(arguments, 1);
return this.each(function() {
var api = $.data(this, 'asPaginator');
if (typeof api[method] === 'function') {
api[method].apply(api, method_arguments);
}
});
} else {
// if totalItems is not defined, the asPaginator is not initialized.
if (typeof totalItems === 'undefined') {
return this;
}
return this.each(function() {
if (!$.data(this, 'asPaginator')) {
$.data(this, 'asPaginator', new AsPaginator(this, totalItems, options));
}
});
}
};
}(jQuery));
| 32.897611 | 192 | 0.471211 |
f04f803f10f18e34c63851533b89db8888254793 | 2,135 | py | Python | problem/13_Roman_to_Integer.py | YoungYoung619/leetcode | 973fd4a971ddc80a8ceb7b8aff08a2104477e768 | [
"Apache-2.0"
] | null | null | null | problem/13_Roman_to_Integer.py | YoungYoung619/leetcode | 973fd4a971ddc80a8ceb7b8aff08a2104477e768 | [
"Apache-2.0"
] | null | null | null | problem/13_Roman_to_Integer.py | YoungYoung619/leetcode | 973fd4a971ddc80a8ceb7b8aff08a2104477e768 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) College of Mechatronics and Control Engineering, Shenzhen University.
All rights reserved.
Description :
Author:Team Li
"""
"""
13. Roman to Integer
Easy
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
For example, two is written as II in Roman numeral, just two one's added together. Twelve is written as, XII, which is simply X + II. The number twenty seven is written as XXVII, which is XX + V + II.
Roman numerals are usually written largest to smallest from left to right. However, the numeral for four is not IIII. Instead, the number four is written as IV. Because the one is before the five we subtract it making four. The same principle applies to the number nine, which is written as IX. There are six instances where subtraction is used:
I can be placed before V (5) and X (10) to make 4 and 9.
X can be placed before L (50) and C (100) to make 40 and 90.
C can be placed before D (500) and M (1000) to make 400 and 900.
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.
Example 1:
Input: "III"
Output: 3
Example 2:
Input: "IV"
Output: 4
Example 3:
Input: "IX"
Output: 9
Example 4:
Input: "LVIII"
Output: 58
Explanation: L = 50, V= 5, III = 3.
Example 5:
Input: "MCMXCIV"
Output: 1994
Explanation: M = 1000, CM = 900, XC = 90 and IV = 4.
"""
def romanToInt(s):
"""
:type s: str
:rtype: int
"""
c2num_normal = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
c2num_sp = {'IV': 4, 'IX': 9, 'XL': 40, 'XC': 90, 'CD': 400, 'CM': 900}
def sub_roman2int(s_index, num):
if s_index == len(s):
return num
for sp in list(c2num_sp.keys()):
if s.startswith(sp, s_index):
num += c2num_sp[sp]
return sub_roman2int(s_index + 2, num)
num += c2num_normal[s[s_index]]
return sub_roman2int(s_index + 1, num)
return sub_roman2int(0, 0) | 27.371795 | 345 | 0.625761 |
6ce7b3572024185e85a264af3ac3122da5c37690 | 6,711 | go | Go | storage/psql/psql.go | synote/oasis-evm-web3-gateway | 496d4baeb13c7d4e9096f6225742677eb7638ee2 | [
"Apache-2.0"
] | null | null | null | storage/psql/psql.go | synote/oasis-evm-web3-gateway | 496d4baeb13c7d4e9096f6225742677eb7638ee2 | [
"Apache-2.0"
] | null | null | null | storage/psql/psql.go | synote/oasis-evm-web3-gateway | 496d4baeb13c7d4e9096f6225742677eb7638ee2 | [
"Apache-2.0"
] | null | null | null | package psql
import (
"context"
"errors"
"fmt"
"time"
"github.com/go-pg/pg/v10"
"github.com/starfishlabs/oasis-evm-web3-gateway/conf"
"github.com/starfishlabs/oasis-evm-web3-gateway/model"
)
type PostDB struct {
DB *pg.DB
}
// InitDb creates postgresql db instance.
func InitDB(cfg *conf.DatabaseConfig) (*PostDB, error) {
if cfg == nil {
return nil, errors.New("nil configuration")
}
// Connect db.
db := pg.Connect(&pg.Options{
Addr: fmt.Sprintf("%v:%v", cfg.Host, cfg.Port),
Database: cfg.DB,
User: cfg.User,
Password: cfg.Password,
DialTimeout: time.Duration(cfg.Timeout) * time.Second,
})
// Ping.
if err := db.Ping(context.Background()); err != nil {
return nil, err
}
// Initialize models.
if err := model.InitModel(db); err != nil {
return nil, err
}
return &PostDB{
DB: db,
}, nil
}
// GetTransactionRef returns block hash, round and index of the transaction.
func (db *PostDB) GetTransactionRef(txHash string) (*model.TransactionRef, error) {
tx := new(model.TransactionRef)
err := db.DB.Model(tx).
Where("eth_tx_hash=?", txHash).
Select()
if err != nil {
return nil, err
}
return tx, nil
}
// GetTransaction queries ethereum transaction by hash.
func (db *PostDB) GetTransaction(hash string) (*model.Transaction, error) {
tx := new(model.Transaction)
err := db.DB.Model(tx).
Where("hash=?", hash).
Select()
if err != nil {
return nil, err
}
return tx, nil
}
// upsert updates record when PK conflicts, otherwise inserts.
func (db *PostDB) upsert(value interface{}) (err error) {
switch values := value.(type) {
case []interface{}:
for v := range values {
err = db.upsertSingle(v)
}
case interface{}:
err = db.upsertSingle(value)
}
return
}
// upsertSingle updates record when PK conflicts, otherwise inserts.
// value must be a non-array interface.
func (db *PostDB) upsertSingle(value interface{}) error {
query := db.DB.Model(value).WherePK()
exist, err := query.Exists()
if err != nil {
return err
}
if exist {
_, err = query.Update()
} else {
_, err = query.Insert()
}
return err
}
// Store stores data in db.
func (db *PostDB) Store(value interface{}) error {
return db.upsert(value)
}
// Update updates record.
func (db *PostDB) Update(value interface{}) error {
return db.upsert(value)
}
// Delete deletes all records with round less than the given round.
func (db *PostDB) Delete(table interface{}, round uint64) error {
_, err := db.DB.Model(table).Where("round<?", round).Delete()
return err
}
// GetBlockRound returns block round by block hash.
func (db *PostDB) GetBlockRound(hash string) (uint64, error) {
block := new(model.Block)
err := db.DB.Model(block).
Where("hash=?", hash).
Select()
if err != nil {
return 0, err
}
return block.Round, nil
}
// GetBlockHash returns block hash by block round.
func (db *PostDB) GetBlockHash(round uint64) (string, error) {
blk := new(model.Block)
err := db.DB.Model(blk).
Where("round=?", round).
Select()
if err != nil {
return "", err
}
return blk.Hash, nil
}
// GetLatestBlockHash returns for the block hash of the latest round.
func (db *PostDB) GetLatestBlockHash() (string, error) {
blk := new(model.Block)
err := db.DB.Model(blk).Order("round DESC").Limit(1).Select()
if err != nil {
return "", err
}
return blk.Hash, nil
}
// GetContinuesIndexedRound returns latest continues indexed block round.
func (db *PostDB) GetContinuesIndexedRound() (uint64, error) {
indexedRound := new(model.IndexedRoundWithTip)
err := db.DB.Model(indexedRound).
Where("tip=?", model.Continues).
Select()
if err != nil {
return 0, err
}
return indexedRound.Round, nil
}
// GetLastRetainedRound returns the minimum round not pruned.
func (db *PostDB) GetLastRetainedRound() (uint64, error) {
retainedRound := new(model.IndexedRoundWithTip)
err := db.DB.Model(retainedRound).
Where("tip=?", model.LastRetained).
Select()
if err != nil {
return 0, err
}
return retainedRound.Round, nil
}
// GetLatestBlockNumber returns the latest block number.
func (db *PostDB) GetLatestBlockNumber() (uint64, error) {
blk := new(model.Block)
err := db.DB.Model(blk).Order("round DESC").Limit(1).Select()
if err != nil {
return 0, err
}
return blk.Round, nil
}
// GetBlockByHash returns the block for the given hash.
func (db *PostDB) GetBlockByHash(blockHash string) (*model.Block, error) {
blk := new(model.Block)
err := db.DB.Model(blk).Where("hash=?", blockHash).Select()
if err != nil {
return nil, err
}
return blk, nil
}
// GetBlockByNumber returns the block for the given round.
func (db *PostDB) GetBlockByNumber(round uint64) (*model.Block, error) {
blk := new(model.Block)
err := db.DB.Model(blk).Where("round=?", round).Select()
if err != nil {
return nil, err
}
return blk, nil
}
// GetBlockTransactionCountByNumber returns the count of transactions in block by block number.
func (db *PostDB) GetBlockTransactionCountByNumber(round uint64) (int, error) {
blk := new(model.Block)
err := db.DB.Model(blk).Where("round=?", round).Select()
if err != nil {
return 0, err
}
return len(blk.Transactions), nil
}
// GetBlockTransactionCountByHash returns the count of transactions in block by block hash.
func (db *PostDB) GetBlockTransactionCountByHash(blockHash string) (int, error) {
blk := new(model.Block)
err := db.DB.Model(blk).Where("hash=?", blockHash).Select()
if err != nil {
return 0, err
}
return len(blk.Transactions), nil
}
// GetBlockTransaction returns transaction by bock hash and transaction index.
func (db *PostDB) GetBlockTransaction(blockHash string, txIndex int) (*model.Transaction, error) {
blk := new(model.Block)
err := db.DB.Model(blk).Where("hash=?", blockHash).Select()
if err != nil {
return nil, err
}
if len(blk.Transactions) == 0 {
return nil, errors.New("the block doesn't has any transactions")
}
if len(blk.Transactions)-1 < txIndex {
return nil, errors.New("out of index")
}
return blk.Transactions[txIndex], nil
}
// GetTransactionReceipt returns receipt by transaction hash.
func (db *PostDB) GetTransactionReceipt(txHash string) (*model.Receipt, error) {
receipt := new(model.Receipt)
if err := db.DB.Model(receipt).Where("transaction_hash=?", txHash).Select(); err != nil {
return nil, err
}
return receipt, nil
}
// GetLogs return the logs by block hash and round.
func (db *PostDB) GetLogs(blockHash string, startRound, endRound uint64) ([]*model.Log, error) {
logs := []*model.Log{}
err := db.DB.Model(&logs).
Where("block_hash=? AND (round BETWEEN ? AND ?)", blockHash, startRound, endRound).Select()
if err != nil {
return nil, err
}
return logs, nil
}
| 24.315217 | 98 | 0.683952 |
045c9c981aecc41457b668ec53f5e79e32672499 | 1,076 | java | Java | lang/Java/xml-output-3.java | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | lang/Java/xml-output-3.java | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Java/xml-output-3.java | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | import java.io.StringWriter;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamWriter;
public class XmlCreationStax {
private static final String[] names = {"April", "Tam O'Shanter", "Emily"};
private static final String[] remarks = {"Bubbly: I'm > Tam and <= Emily",
"Burns: \"When chapman billies leave the street ...\"",
"Short & shrift"};
public static void main(String[] args) {
try {
final StringWriter buffer = new StringWriter();
final XMLStreamWriter out = XMLOutputFactory.newInstance()
.createXMLStreamWriter(buffer);
out.writeStartDocument("UTF-8", "1.0");
out.writeStartElement("CharacterRemarks");
for(int i = 0; i < names.length; i++) {
out.writeStartElement("Character");
out.writeAttribute("name", names[i]);
out.writeCharacters(remarks[i]);
out.writeEndElement();
}
out.writeEndElement();
out.writeEndDocument();
System.out.println(buffer);
} catch (Exception e) {
e.printStackTrace();
}
}
}
| 27.589744 | 76 | 0.642193 |
5dda2572fc9047ed95c3bf0f8f42212c84c6f391 | 1,490 | go | Go | vendor/github.com/sigstore/cosign/cmd/cosign/cli/options/files.go | lcarva/chains | 843c6b3477fee1154093d5a8660630f3ebdaef31 | [
"Apache-2.0"
] | 1,725 | 2021-03-08T04:27:05.000Z | 2022-03-31T15:33:51.000Z | vendor/github.com/sigstore/cosign/cmd/cosign/cli/options/files.go | lcarva/chains | 843c6b3477fee1154093d5a8660630f3ebdaef31 | [
"Apache-2.0"
] | 931 | 2021-03-03T13:10:24.000Z | 2022-03-31T23:28:11.000Z | vendor/github.com/sigstore/cosign/cmd/cosign/cli/options/files.go | lcarva/chains | 843c6b3477fee1154093d5a8660630f3ebdaef31 | [
"Apache-2.0"
] | 221 | 2021-03-03T18:20:56.000Z | 2022-03-29T12:06:09.000Z | //
// Copyright 2021 The Sigstore 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.
package options
import (
"fmt"
"strings"
"github.com/spf13/cobra"
cremote "github.com/sigstore/cosign/pkg/cosign/remote"
)
// FilesOptions is the wrapper for the files.
type FilesOptions struct {
Files []string
}
var _ Interface = (*FilesOptions)(nil)
func (o *FilesOptions) Parse() ([]cremote.File, error) {
fs := cremote.FilesFromFlagList(o.Files)
// If we have multiple files, each file must have a platform.
if len(fs) > 1 {
for _, f := range fs {
if f.Platform() == nil {
return nil, fmt.Errorf("each file must include a unique platform, %s had no platform", f.Path())
}
}
}
return fs, nil
}
func (o *FilesOptions) String() string {
return strings.Join(o.Files, ",")
}
// AddFlags implements Interface
func (o *FilesOptions) AddFlags(cmd *cobra.Command) {
cmd.Flags().StringSliceVarP(&o.Files, "files", "f", nil,
"<filepath>:[platform/arch]")
}
| 25.689655 | 100 | 0.702013 |
6a279917773ff433d063c7b5c36dbf88b1de6c80 | 1,531 | swift | Swift | MVVM+RxApiClient/VarakushCashier/CustomViews/Activity/ActivityView.swift | dimzfresh/MVVM-RxApiClient | 7516eaa9d19afd35b5d2e0aa6b5594b27575a96c | [
"Apache-2.0"
] | null | null | null | MVVM+RxApiClient/VarakushCashier/CustomViews/Activity/ActivityView.swift | dimzfresh/MVVM-RxApiClient | 7516eaa9d19afd35b5d2e0aa6b5594b27575a96c | [
"Apache-2.0"
] | null | null | null | MVVM+RxApiClient/VarakushCashier/CustomViews/Activity/ActivityView.swift | dimzfresh/MVVM-RxApiClient | 7516eaa9d19afd35b5d2e0aa6b5594b27575a96c | [
"Apache-2.0"
] | null | null | null | //
// ActivityView.swift
// VarakushCashier
//
// Created by Dmitrii Ziablikov on 13/10/2019.
// Copyright © 2019 di. All rights reserved.
//
import UIKit
import NVActivityIndicatorView
final class ActivityView: UIView {
private var activityIndicator: NVActivityIndicatorView!
override init(frame: CGRect) {
super.init(frame: frame)
setup()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
setup()
}
func startLoading() {
isHidden = false
activityIndicator.startAnimating()
}
func stopLoading() {
isHidden = true
activityIndicator.stopAnimating()
}
}
private extension ActivityView {
func setup() {
backgroundColor = UIColor.lightGray.withAlphaComponent(0.4)
isHidden = true
activityIndicator = NVActivityIndicatorView(frame: .zero, type: .ballSpinFadeLoader, color: UIColor.brandColor.withAlphaComponent(0.7), padding: 0.0)
activityIndicator.translatesAutoresizingMaskIntoConstraints = false
addSubview(activityIndicator)
activityIndicator.widthAnchor.constraint(equalToConstant: 70.0).isActive = true
activityIndicator.heightAnchor.constraint(equalToConstant: 70.0).isActive = true
activityIndicator.centerXAnchor.constraint(equalTo: centerXAnchor).isActive = true
activityIndicator.centerYAnchor.constraint(equalTo: centerYAnchor, constant: -30).isActive = true
}
}
| 28.886792 | 157 | 0.681254 |
f889964f51017d759521d6d54008a02beb9640ef | 631 | dart | Dart | lib/widgets/share_button.dart | eralpkaraduman/event_dot_pizza | 0a1cb94844964fa502a66bb9da90af8ba1f1bded | [
"MIT"
] | 5 | 2019-11-26T10:41:40.000Z | 2020-05-09T05:54:54.000Z | lib/widgets/share_button.dart | eralpkaraduman/event_dot_pizza | 0a1cb94844964fa502a66bb9da90af8ba1f1bded | [
"MIT"
] | 41 | 2019-08-30T10:06:42.000Z | 2022-01-22T10:06:18.000Z | lib/widgets/share_button.dart | eralpkaraduman/event_dot_pizza | 0a1cb94844964fa502a66bb9da90af8ba1f1bded | [
"MIT"
] | 6 | 2019-09-30T14:38:24.000Z | 2021-01-21T19:28:20.000Z | import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'dart:io' show Platform;
import 'package:share/share.dart';
class ShareButton extends StatelessWidget {
const ShareButton({
Key key,
@required this.url,
@required this.subject,
}) : super(key: key);
final String url;
final String subject;
@override
Widget build(BuildContext context) {
return IconButton(
icon: Icon(
Platform.isIOS ? CupertinoIcons.share : Icons.share,
color: Colors.white,
size: 30,
),
onPressed: () => Share.share(url, subject: subject),
);
}
}
| 22.535714 | 60 | 0.657686 |
284f3fdca8852be27c9aa309c3abd5809112e14d | 1,135 | cpp | C++ | doublebuf_cpp/main/doublebuf.cpp | wdevore/TTGO-Espressif-Projects | 572fb2e46d31ee7d96eaf6097d474bfab81fc98a | [
"MIT"
] | null | null | null | doublebuf_cpp/main/doublebuf.cpp | wdevore/TTGO-Espressif-Projects | 572fb2e46d31ee7d96eaf6097d474bfab81fc98a | [
"MIT"
] | null | null | null | doublebuf_cpp/main/doublebuf.cpp | wdevore/TTGO-Espressif-Projects | 572fb2e46d31ee7d96eaf6097d474bfab81fc98a | [
"MIT"
] | null | null | null | #include <iostream>
#include "freertos/FreeRTOS.h"
extern "C"
{
void app_main(void);
}
#include "display.h"
void app_main(void)
{
Display disp;
disp.init();
disp.reset();
disp.setClearColor(TFT_GREEN);
// disp.clear();
// disp.drawSplash();
// vTaskDelay(1000 / portTICK_RATE_MS);
disp.clear();
disp.setDrawColor(0, 255, 0);
disp.drawLine(10, 100, 120, 100);
disp.setDrawColor(0, 0, 255);
disp.drawLine(10, 110, 120, 110);
disp.setDrawColor(255, 0, 0);
disp.drawLine(10, 120, 120, 120);
disp.setDrawColor(TFT_ORANGE);
disp.drawLine(10, 130, 120, 130);
// vTaskDelay(1000 / portTICK_RATE_MS);
// std::cout << "Blitting..." << std::endl;
// disp.blit2();
// std::cout << "Blitted" << std::endl;
disp.setDrawColor(TFT_DARKGREY);
int w = 135-1;
int h = 240-1;
int x = 0;
int y = 0;
disp.fillDisplay();
disp.setDrawColor(TFT_WHITE);
for (int i = 0; i < w; i++)
{
disp.drawPixel(x, y);
x++;
y++;
}
disp.setDrawColor(255, 0, 255);
disp.drawLine(10, 120, 120, 120);
}
| 17.461538 | 47 | 0.563877 |
0f3810e681de83ae3e561034a7f6461fd04add82 | 2,659 | cc | C++ | marisa/marisa.cc | pgaskin/dictutil | 3e598b71b3a5648e6812271d7ba4e7264be6ed83 | [
"MIT"
] | 21 | 2020-07-19T03:54:29.000Z | 2022-03-22T03:34:34.000Z | marisa/marisa.cc | geek1011/dictutil | 6708cff9a06dbd088ec2267a2314028a9a00b5a7 | [
"MIT"
] | 10 | 2020-02-21T16:37:22.000Z | 2020-07-10T06:12:59.000Z | marisa/marisa.cc | geek1011/dictutil | 6708cff9a06dbd088ec2267a2314028a9a00b5a7 | [
"MIT"
] | 1 | 2021-07-11T03:49:12.000Z | 2021-07-11T03:49:12.000Z | #include <cstdlib>
#include <cstring>
#include <stdexcept>
#include <string>
#include "libmarisa.h"
#include "shim.h"
#define catch_go_ex(t, ctx) \
catch (const t &ex) { \
const char* b = ctx; \
char* err = reinterpret_cast<char*>( \
calloc(strlen(b)+strlen(ex.what())+1, sizeof(char))); \
strcpy(err, b); \
strcat(err, ex.what()); \
return err; \
}
#define catch_go \
catch_go_ex(marisa::Exception, "marisa: ") \
catch_go_ex(go::error, "go shim: ") \
catch_go_ex(std::runtime_error, "c++ runtime: ") \
catch_go_ex(std::exception, "c++ error: ") \
catch (...) { return strdup("marisa: unknown c++ exception"); } \
return NULL;
#define go_func extern "C" const char*
go_func marisa_read_all(int iid, char ***out_wd, size_t *out_wd_sz) {
try {
if (!out_wd || !out_wd_sz)
throw std::runtime_error("parameter is null");
go::rstream r(iid);
marisa::Trie t;
marisa::read(r, &t);
marisa::Agent a;
a.set_query("");
*out_wd_sz = 0;
*out_wd = reinterpret_cast<char**>(calloc(t.num_keys(), sizeof(char**)));
while (t.predictive_search(a)) {
if (*out_wd_sz == t.num_keys())
throw std::runtime_error("expected " + std::to_string(t.num_keys()) + " keys, got more");
memcpy((*out_wd)[(*out_wd_sz)++] = reinterpret_cast<char*>(calloc(a.key().length()+1, sizeof(char))), a.key().ptr(), a.key().length());
}
if (*out_wd_sz != t.num_keys())
throw std::runtime_error("expected " + std::to_string(t.num_keys()) + " keys, got " + std::to_string(*out_wd_sz));
} catch_go
}
go_func marisa_write_all(int iid, const char** wd, size_t wd_sz) {
try {
if (wd_sz && !wd)
throw std::runtime_error("parameter is null");
marisa::Keyset k;
for (size_t i = 0; i < wd_sz; i++)
k.push_back(wd[i]);
marisa::Trie t;
t.build(k);
go::wstream w(iid);
marisa::write(w, t);
} catch_go
}
| 42.206349 | 147 | 0.437006 |
14c1813e9306c3e2526f70b4173bc5648aa8980a | 837 | sql | SQL | src/main/resources/db/migration/V101__Create_ScheduleInstructorNotes.sql | ucdavis/ipa-web | 46011262ed0596c2bfd5083bec43843e2c4a276d | [
"MIT"
] | 2 | 2020-01-05T10:51:11.000Z | 2020-06-23T20:51:38.000Z | src/main/resources/db/migration/V101__Create_ScheduleInstructorNotes.sql | kevinmel2000/ipa-web | 41264b236a15eb5ff87d2b10ba2a444347aa6363 | [
"MIT"
] | 37 | 2017-01-25T00:04:15.000Z | 2020-11-06T00:15:43.000Z | src/main/resources/db/migration/V101__Create_ScheduleInstructorNotes.sql | kevinmel2000/ipa-web | 41264b236a15eb5ff87d2b10ba2a444347aa6363 | [
"MIT"
] | 1 | 2019-11-06T08:50:04.000Z | 2019-11-06T08:50:04.000Z | ALTER TABLE `TeachingCallReceipts` DROP COLUMN `assignmentsCompleted`;
CREATE TABLE `ScheduleInstructorNotes` (
`ScheduleInstructorNoteId` INT(11) NOT NULL AUTO_INCREMENT,
`Instructors_InstructorId` INT(11) NOT NULL,
`Schedules_ScheduleId` INT(11) NOT NULL,
`assignmentsCompleted` TINYINT(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`ScheduleInstructorNoteId`),
INDEX `instructor_notes_fk_idx` (`Instructors_InstructorId` ASC),
INDEX `schedule_notes_fk_idx` (`Schedules_ScheduleId` ASC),
CONSTRAINT `instructor_notes_fk`
FOREIGN KEY (`Instructors_InstructorId`)
REFERENCES `Instructors` (`InstructorId`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `schedule_notes_fk`
FOREIGN KEY (`Schedules_ScheduleId`)
REFERENCES `Schedules` (`ScheduleId`)
ON DELETE NO ACTION
ON UPDATE NO ACTION); | 41.85 | 70 | 0.763441 |
bb14ce0dd74c332b0d09619098568087bedb3348 | 765 | swift | Swift | Sources/CodeMonkeyApple/Orderable/Orderable.swift | kylehughes/code-monkey-apple | a07123de78231ecbc009030a96c59977a3777e09 | [
"MIT"
] | 3 | 2021-01-25T00:51:24.000Z | 2022-02-21T01:25:57.000Z | Sources/CodeMonkeyApple/Orderable/Orderable.swift | kylehughes/code-monkey-apple | a07123de78231ecbc009030a96c59977a3777e09 | [
"MIT"
] | null | null | null | Sources/CodeMonkeyApple/Orderable/Orderable.swift | kylehughes/code-monkey-apple | a07123de78231ecbc009030a96c59977a3777e09 | [
"MIT"
] | null | null | null | //
// Orderable.swift
// CodeMonkeyApple
//
// Created by Kyle Hughes on 5/30/21.
//
public protocol Orderable {
associatedtype Ordinal: SignedInteger
// MARK: Instance Interface
var ordinal: Ordinal { get }
}
// MARK: - Extension for Collection
extension Collection where Element: Orderable {
// MARK: Public Instance Interface
public var largestOrdinal: Element.Ordinal? {
ordered().map(\.ordinal).last
}
public var nextOrdinal: Element.Ordinal {
guard let largestOrdinal = largestOrdinal else {
return 1
}
return largestOrdinal + 1
}
public func ordered() -> [Element] {
sorted {
$0.ordinal < $1.ordinal
}
}
}
| 19.615385 | 56 | 0.59085 |
9fae1ce06926586c47cff1329899df75155b632e | 719 | dart | Dart | lib/widgets/category_card_scroller.dart | lintdeveloper/flutter-furniture | 6455c10d6d6afc7e8a4949d712864cb2c2b634c8 | [
"Apache-2.0"
] | 101 | 2018-07-04T15:10:56.000Z | 2022-01-30T04:49:04.000Z | lib/widgets/category_card_scroller.dart | silexcorp/flutter-furniture | 6455c10d6d6afc7e8a4949d712864cb2c2b634c8 | [
"Apache-2.0"
] | 3 | 2018-12-25T09:00:12.000Z | 2019-12-25T14:54:36.000Z | lib/widgets/category_card_scroller.dart | silexcorp/flutter-furniture | 6455c10d6d6afc7e8a4949d712864cb2c2b634c8 | [
"Apache-2.0"
] | 28 | 2018-07-19T05:36:19.000Z | 2021-04-06T21:57:53.000Z | import 'package:flutter/material.dart';
import 'package:furnitureshop/data.dart';
import 'package:furnitureshop/widgets/category_card.dart';
class CategoryCardScroller extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
height: 120.0,
child: NotificationListener<OverscrollIndicatorNotification>(
onNotification: (overscroll) {
overscroll.disallowGlow();
},
child: ListView.builder(
scrollDirection: Axis.horizontal,
itemCount: Data.categories.length,
itemBuilder: (context, index) =>
CategoryCard(Data.categories[index], index),
),
));
}
}
| 31.26087 | 69 | 0.646732 |
6d3ec6fffc3f18019b14c17ad6df5f47075520a4 | 9,367 | cs | C# | ExcelAddin/ExcelAddIn1/ExcelAddIn1/LoadTemplate.designer.cs | JoseLuisPerez91/SIPRED | 13364542ab35dba0e5468108a69f554cfc388bde | [
"Unlicense"
] | null | null | null | ExcelAddin/ExcelAddIn1/ExcelAddIn1/LoadTemplate.designer.cs | JoseLuisPerez91/SIPRED | 13364542ab35dba0e5468108a69f554cfc388bde | [
"Unlicense"
] | 8 | 2019-02-09T00:37:00.000Z | 2019-02-19T01:08:01.000Z | ExcelAddin/ExcelAddIn1/ExcelAddIn1/LoadTemplate.designer.cs | JoseLuisPerez91/SIPRED | 13364542ab35dba0e5468108a69f554cfc388bde | [
"Unlicense"
] | null | null | null | namespace ExcelAddIn1 {
partial class LoadTemplate {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if(disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LoadTemplate));
this.ofdTemplate = new System.Windows.Forms.OpenFileDialog();
this.label1 = new System.Windows.Forms.Label();
this.gbTipo = new System.Windows.Forms.GroupBox();
this.cmbTipoPlantilla = new System.Windows.Forms.ComboBox();
this.cmbAnio = new System.Windows.Forms.ComboBox();
this.lblPlantilla = new System.Windows.Forms.Label();
this.txtPlantilla = new System.Windows.Forms.TextBox();
this.btnSeleccionar = new System.Windows.Forms.Button();
this.btnCancelar = new System.Windows.Forms.Button();
this.btnCargar = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panel1 = new System.Windows.Forms.Panel();
this.gbTipo.SuspendLayout();
this.groupBox1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// ofdTemplate
//
this.ofdTemplate.Filter = "SAT Template | *.xlsm";
this.ofdTemplate.FileOk += new System.ComponentModel.CancelEventHandler(this.ofdTemplate_FileOk);
//
// label1
//
this.label1.BackColor = System.Drawing.SystemColors.Info;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(426, 23);
this.label1.TabIndex = 0;
this.label1.Text = "SELECCIONE EL TIPO Y EJERCICION DEL ARCHIVO.";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// gbTipo
//
this.gbTipo.Controls.Add(this.cmbTipoPlantilla);
this.gbTipo.Location = new System.Drawing.Point(12, 35);
this.gbTipo.Name = "gbTipo";
this.gbTipo.Size = new System.Drawing.Size(309, 55);
this.gbTipo.TabIndex = 2;
this.gbTipo.TabStop = false;
this.gbTipo.Text = "Tipo";
//
// cmbTipoPlantilla
//
this.cmbTipoPlantilla.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbTipoPlantilla.FormattingEnabled = true;
this.cmbTipoPlantilla.Location = new System.Drawing.Point(7, 20);
this.cmbTipoPlantilla.Name = "cmbTipoPlantilla";
this.cmbTipoPlantilla.Size = new System.Drawing.Size(296, 21);
this.cmbTipoPlantilla.TabIndex = 0;
//
// cmbAnio
//
this.cmbAnio.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbAnio.FormattingEnabled = true;
this.cmbAnio.Location = new System.Drawing.Point(6, 20);
this.cmbAnio.Name = "cmbAnio";
this.cmbAnio.Size = new System.Drawing.Size(99, 21);
this.cmbAnio.TabIndex = 1;
//
// lblPlantilla
//
this.lblPlantilla.AutoSize = true;
this.lblPlantilla.Location = new System.Drawing.Point(12, 97);
this.lblPlantilla.Name = "lblPlantilla";
this.lblPlantilla.Size = new System.Drawing.Size(43, 13);
this.lblPlantilla.TabIndex = 3;
this.lblPlantilla.Text = "Plantilla";
//
// txtPlantilla
//
this.txtPlantilla.Location = new System.Drawing.Point(12, 114);
this.txtPlantilla.Name = "txtPlantilla";
this.txtPlantilla.ReadOnly = true;
this.txtPlantilla.Size = new System.Drawing.Size(345, 20);
this.txtPlantilla.TabIndex = 4;
//
// btnSeleccionar
//
this.btnSeleccionar.Location = new System.Drawing.Point(363, 112);
this.btnSeleccionar.Name = "btnSeleccionar";
this.btnSeleccionar.Size = new System.Drawing.Size(75, 23);
this.btnSeleccionar.TabIndex = 5;
this.btnSeleccionar.Text = "Seleccionar";
this.btnSeleccionar.UseVisualStyleBackColor = true;
this.btnSeleccionar.Click += new System.EventHandler(this.btnSeleccionar_Click);
//
// btnCancelar
//
this.btnCancelar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCancelar.BackgroundImage")));
this.btnCancelar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.btnCancelar.Location = new System.Drawing.Point(93, 7);
this.btnCancelar.Name = "btnCancelar";
this.btnCancelar.Size = new System.Drawing.Size(82, 23);
this.btnCancelar.TabIndex = 6;
this.btnCancelar.Text = " Cancelar";
this.btnCancelar.UseVisualStyleBackColor = true;
this.btnCancelar.Click += new System.EventHandler(this.btnCancelar_Click);
//
// btnCargar
//
this.btnCargar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCargar.BackgroundImage")));
this.btnCargar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.btnCargar.Location = new System.Drawing.Point(5, 7);
this.btnCargar.Name = "btnCargar";
this.btnCargar.Size = new System.Drawing.Size(82, 23);
this.btnCargar.TabIndex = 7;
this.btnCargar.Text = " Cargar";
this.btnCargar.UseVisualStyleBackColor = true;
this.btnCargar.Click += new System.EventHandler(this.btnCargar_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.cmbAnio);
this.groupBox1.Location = new System.Drawing.Point(327, 35);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(111, 55);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Año";
//
// panel1
//
this.panel1.Controls.Add(this.btnCancelar);
this.panel1.Controls.Add(this.btnCargar);
this.panel1.Location = new System.Drawing.Point(257, 141);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(181, 37);
this.panel1.TabIndex = 8;
//
// LoadTemplate
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(451, 183);
this.ControlBox = false;
this.Controls.Add(this.panel1);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnSeleccionar);
this.Controls.Add(this.txtPlantilla);
this.Controls.Add(this.lblPlantilla);
this.Controls.Add(this.gbTipo);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "LoadTemplate";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Cargar Plantilla";
this.TopMost = true;
this.gbTipo.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.OpenFileDialog ofdTemplate;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.GroupBox gbTipo;
private System.Windows.Forms.ComboBox cmbAnio;
private System.Windows.Forms.ComboBox cmbTipoPlantilla;
private System.Windows.Forms.Label lblPlantilla;
private System.Windows.Forms.TextBox txtPlantilla;
private System.Windows.Forms.Button btnSeleccionar;
private System.Windows.Forms.Button btnCancelar;
private System.Windows.Forms.Button btnCargar;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Panel panel1;
}
} | 47.308081 | 144 | 0.598591 |
9031e3ae7dde004dee1050dd1f11b0909ed0d6d6 | 722 | go | Go | vendor/github.com/docker/docker/libcontainerd/remote.go | jflowers/jenkins | 1149f2971352a13a0c9428259c19c0f59d2fa567 | [
"Apache-2.0"
] | 1,373 | 2016-02-07T12:40:03.000Z | 2022-03-27T21:28:58.000Z | vendor/github.com/docker/docker/libcontainerd/remote.go | jflowers/jenkins | 1149f2971352a13a0c9428259c19c0f59d2fa567 | [
"Apache-2.0"
] | 7,047 | 2016-04-04T20:08:35.000Z | 2022-03-09T02:33:36.000Z | vendor/github.com/docker/docker/libcontainerd/remote.go | jflowers/jenkins | 1149f2971352a13a0c9428259c19c0f59d2fa567 | [
"Apache-2.0"
] | 239 | 2016-04-04T20:01:50.000Z | 2022-01-17T13:05:58.000Z | package libcontainerd
// Remote on Linux defines the accesspoint to the containerd grpc API.
// Remote on Windows is largely an unimplemented interface as there is
// no remote containerd.
type Remote interface {
// Client returns a new Client instance connected with given Backend.
Client(Backend) (Client, error)
// Cleanup stops containerd if it was started by libcontainerd.
// Note this is not used on Windows as there is no remote containerd.
Cleanup()
// UpdateOptions allows various remote options to be updated at runtime.
UpdateOptions(...RemoteOption) error
}
// RemoteOption allows to configure parameters of remotes.
// This is unused on Windows.
type RemoteOption interface {
Apply(Remote) error
}
| 34.380952 | 73 | 0.775623 |
9f9f5d7abbe46b391ca7dd5aec3c50454d850a44 | 35,647 | sql | SQL | packaging/dbscripts/network_sp.sql | phoenixsbk/kvmmgr | 1ed6230dc4246fe511eeb5fc9d0532d3e651b459 | [
"Apache-2.0"
] | 1 | 2019-01-12T06:46:55.000Z | 2019-01-12T06:46:55.000Z | packaging/dbscripts/network_sp.sql | phoenixsbk/kvmmgr | 1ed6230dc4246fe511eeb5fc9d0532d3e651b459 | [
"Apache-2.0"
] | null | null | null | packaging/dbscripts/network_sp.sql | phoenixsbk/kvmmgr | 1ed6230dc4246fe511eeb5fc9d0532d3e651b459 | [
"Apache-2.0"
] | 2 | 2016-03-09T16:37:23.000Z | 2022-01-19T13:12:27.000Z |
----------------------------------------------------------------
-- [network] Table
--
Create or replace FUNCTION Insertnetwork(v_addr VARCHAR(50) ,
v_description VARCHAR(4000) ,
v_free_text_comment text,
v_id UUID,
v_name VARCHAR(50),
v_subnet VARCHAR(20) ,
v_gateway VARCHAR(20) ,
v_type INTEGER ,
v_vlan_id INTEGER ,
v_stp BOOLEAN ,
v_storage_pool_id UUID,
v_mtu INTEGER,
v_vm_network BOOLEAN,
v_provider_network_provider_id UUID,
v_provider_network_external_id TEXT,
v_qos_id UUID,
v_label TEXT)
RETURNS VOID
AS $procedure$
BEGIN
INSERT INTO network(addr, description, free_text_comment, id, name, subnet, gateway, type, vlan_id, stp, storage_pool_id, mtu, vm_network, provider_network_provider_id, provider_network_external_id, qos_id, label)
VALUES(v_addr, v_description, v_free_text_comment, v_id, v_name, v_subnet, v_gateway, v_type, v_vlan_id, v_stp, v_storage_pool_id, v_mtu, v_vm_network, v_provider_network_provider_id, v_provider_network_external_id, v_qos_id, v_label);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Updatenetwork(v_addr VARCHAR(50) ,
v_description VARCHAR(4000) ,
v_free_text_comment text,
v_id UUID,
v_name VARCHAR(50),
v_subnet VARCHAR(20) ,
v_gateway VARCHAR(20) ,
v_type INTEGER ,
v_vlan_id INTEGER ,
v_stp BOOLEAN ,
v_storage_pool_id UUID,
v_mtu INTEGER,
v_vm_network BOOLEAN,
v_provider_network_provider_id UUID,
v_provider_network_external_id TEXT,
v_qos_id UUID,
v_label TEXT)
RETURNS VOID
--The [network] table doesn't have a timestamp column. Optimistic concurrency logic cannot be generated
AS $procedure$
BEGIN
UPDATE network
SET addr = v_addr,description = v_description, free_text_comment = v_free_text_comment, name = v_name,subnet = v_subnet,
gateway = v_gateway,type = v_type,vlan_id = v_vlan_id,
stp = v_stp,storage_pool_id = v_storage_pool_id, mtu = v_mtu,
vm_network = v_vm_network,
provider_network_provider_id = v_provider_network_provider_id,
provider_network_external_id = v_provider_network_external_id,
qos_id = v_qos_id,
label = v_label
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Deletenetwork(v_id UUID)
RETURNS VOID
AS $procedure$
DECLARE
v_val UUID;
BEGIN
-- Get (and keep) a shared lock with "right to upgrade to exclusive"
-- in order to force locking parent before children
select id INTO v_val FROM network WHERE id = v_id FOR UPDATE;
DELETE FROM network
WHERE id = v_id;
-- Delete the network's permissions
DELETE FROM permissions WHERE object_id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllFromnetwork(v_user_id uuid, v_is_filtered boolean) RETURNS SETOF network STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM network
WHERE NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_network_permissions_view
WHERE user_id = v_user_id AND entity_id = network.id);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetnetworkByid(v_id UUID, v_user_id uuid, v_is_filtered boolean) RETURNS SETOF network STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM network
WHERE id = v_id
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_network_permissions_view
WHERE user_id = v_user_id AND entity_id = v_id));
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetnetworkByName(v_networkName VARCHAR(50))
RETURNS SETOF network STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM network
WHERE name = v_networkName;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetNetworkByNameAndDataCenter(v_name VARCHAR(50), v_storage_pool_id UUID)
RETURNS SETOF network STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT network.*
FROM network
WHERE network.name = v_name
AND network.storage_pool_id = v_storage_pool_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetNetworkByNameAndCluster(v_name VARCHAR(50), v_cluster_id UUID)
RETURNS SETOF network STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT network.*
FROM network
WHERE network.name = v_name
AND EXISTS (SELECT 1
FROM network_cluster
WHERE network.id = network_cluster.network_id
AND network_cluster.cluster_id = v_cluster_id);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllNetworkByStoragePoolId(v_id UUID, v_user_id uuid, v_is_filtered boolean)
RETURNS SETOF network STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM network
WHERE storage_pool_id = v_id
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_network_permissions_view
WHERE user_id = v_user_id AND entity_id = network.id));
END; $procedure$
LANGUAGE plpgsql;
DROP TYPE IF EXISTS networkViewClusterType CASCADE;
CREATE TYPE networkViewClusterType AS(id uuid,name VARCHAR(50),description VARCHAR(4000), free_text_comment text, type INTEGER,
addr VARCHAR(50),subnet VARCHAR(20),gateway VARCHAR(20),vlan_id INTEGER,stp BOOLEAN,storage_pool_id UUID,
mtu INTEGER, vm_network BOOLEAN, label TEXT,
provider_network_provider_id UUID, provider_network_external_id TEXT, qos_id UUID,
network_id UUID,cluster_id UUID, status INTEGER, is_display BOOLEAN,
required BOOLEAN, migration BOOLEAN);
Create or replace FUNCTION GetAllNetworkByClusterId(v_id UUID, v_user_id uuid, v_is_filtered boolean)
RETURNS SETOF networkViewClusterType STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT
DISTINCT
network.id,
network.name,
network.description,
network.free_text_comment,
network.type,
network.addr,
network.subnet,
network.gateway,
network.vlan_id,
network.stp,
network.storage_pool_id,
network.mtu,
network.vm_network,
network.label,
network.provider_network_provider_id,
network.provider_network_external_id,
network.qos_id,
network_cluster.network_id,
network_cluster.cluster_id,
network_cluster.status,
network_cluster.is_display,
network_cluster.required,
network_cluster.migration
FROM network
INNER JOIN network_cluster
ON network.id = network_cluster.network_id
WHERE network_cluster.cluster_id = v_id
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_network_permissions_view
WHERE user_id = v_user_id AND entity_id = network.id))
ORDER BY network.name;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllNetworksByNetworkProviderId(v_id UUID)
RETURNS SETOF network STABLE
AS $procedure$
BEGIN
RETURN QUERY
SELECT *
FROM network
WHERE provider_network_provider_id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllNetworkViewsByNetworkProviderId(v_id UUID)
RETURNS SETOF network_view STABLE
AS $procedure$
BEGIN
RETURN QUERY
SELECT *
FROM network_view
WHERE provider_network_provider_id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllNetworkLabelsByDataCenterId(v_id UUID)
RETURNS SETOF TEXT STABLE
AS $procedure$
BEGIN
RETURN QUERY
SELECT DISTINCT label
FROM network
WHERE network.storage_pool_id = v_id
AND label IS NOT NULL;
END; $procedure$
LANGUAGE plpgsql;
--The GetByFK stored procedure cannot be created because the [network] table doesn't have at least one foreign key column or the foreign keys are also primary keys.
----------------------------------------------------------------
-- [vds_interface] Table
--
Create or replace FUNCTION Insertvds_interface(v_addr VARCHAR(20) ,
v_bond_name VARCHAR(50) ,
v_bond_type INTEGER ,
v_gateway VARCHAR(20) ,
v_id UUID,
v_is_bond BOOLEAN ,
v_bond_opts VARCHAR(4000) ,
v_mac_addr VARCHAR(20) ,
v_name VARCHAR(50),
v_network_name VARCHAR(50) ,
v_speed INTEGER ,
v_subnet VARCHAR(20) ,
v_boot_protocol INTEGER ,
v_type INTEGER ,
v_vds_id UUID,
v_base_interface VARCHAR(50) ,
v_vlan_id INTEGER,
v_mtu INTEGER,
v_bridged BOOLEAN,
v_qos_overridden BOOLEAN,
v_labels TEXT,
v_custom_properties TEXT)
RETURNS VOID
AS $procedure$
BEGIN
INSERT INTO vds_interface(addr, bond_name, bond_type, gateway, id, is_bond, bond_opts, mac_addr, name, network_name, speed, subnet, boot_protocol, type, VDS_ID, base_interface, vlan_id, mtu, bridged, qos_overridden, labels, custom_properties)
VALUES(v_addr, v_bond_name, v_bond_type, v_gateway, v_id, v_is_bond, v_bond_opts, v_mac_addr, v_name, v_network_name, v_speed, v_subnet, v_boot_protocol, v_type, v_vds_id, v_base_interface, v_vlan_id, v_mtu, v_bridged, v_qos_overridden, v_labels, v_custom_properties);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Updatevds_interface(v_addr VARCHAR(20) ,
v_bond_name VARCHAR(50) ,
v_bond_type INTEGER ,
v_gateway VARCHAR(20) ,
v_id UUID,
v_is_bond BOOLEAN ,
v_bond_opts VARCHAR(4000) ,
v_mac_addr VARCHAR(20) ,
v_name VARCHAR(50),
v_network_name VARCHAR(50) ,
v_speed INTEGER ,
v_subnet VARCHAR(20) ,
v_boot_protocol INTEGER ,
v_type INTEGER ,
v_vds_id UUID,
v_base_interface VARCHAR(50),
v_vlan_id INTEGER,
v_mtu INTEGER,
v_bridged BOOLEAN,
v_qos_overridden BOOLEAN,
v_labels TEXT,
v_custom_properties TEXT)
RETURNS VOID
--The [vds_interface] table doesn't have a timestamp column. Optimistic concurrency logic cannot be generated
AS $procedure$
BEGIN
UPDATE vds_interface
SET addr = v_addr,bond_name = v_bond_name,bond_type = v_bond_type,gateway = v_gateway,
is_bond = v_is_bond,bond_opts = v_bond_opts,mac_addr = v_mac_addr,
name = v_name,network_name = v_network_name,speed = v_speed,
subnet = v_subnet,boot_protocol = v_boot_protocol,
type = v_type,VDS_ID = v_vds_id,base_interface = v_base_interface,vlan_id = v_vlan_id,_update_date = LOCALTIMESTAMP, mtu = v_mtu,
bridged = v_bridged, qos_overridden = v_qos_overridden, labels = v_labels,
custom_properties = v_custom_properties
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Deletevds_interface(v_id UUID)
RETURNS VOID
AS $procedure$
BEGIN
DELETE FROM vds_interface
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Getinterface_viewByvds_id(v_vds_id UUID, v_user_id UUID, v_is_filtered boolean)
RETURNS SETOF vds_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vds_interface_view
WHERE vds_id = v_vds_id
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_vds_permissions_view
WHERE user_id = v_user_id AND entity_id = v_vds_id));
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetHostNetworksByCluster(v_cluster_id UUID)
RETURNS TABLE(vds_id UUID, network_name VARCHAR) STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vds_static.vds_id, vds_interface.network_name
FROM vds_static
JOIN vds_interface ON vds_interface.vds_id = vds_static.vds_id
AND vds_static.vds_group_id = v_cluster_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Getinterface_viewByAddr(v_cluster_id UUID, v_addr VARCHAR(50))
RETURNS SETOF vds_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vds_interface_view.*
FROM vds_interface_view
INNER JOIN vds_static
ON vds_interface_view.vds_id = vds_static.vds_id
WHERE vds_interface_view.addr = v_addr
AND vds_static.vds_group_id = v_cluster_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVdsManagedInterfaceByVdsId(v_vds_id UUID, v_user_id UUID, v_is_filtered boolean)
RETURNS SETOF vds_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vds_interface_view
-- Checking if the 2nd bit in the type column is set, meaning that the interface is managed
WHERE vds_id = v_vds_id AND (type & 2) = 2
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_vds_permissions_view
WHERE user_id = v_user_id AND entity_id = v_vds_id));
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVdsInterfacesByNetworkId(v_network_id UUID) RETURNS SETOF vds_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vds_interface_view.*
FROM vds_interface_view
INNER JOIN vds
ON vds.vds_id = vds_interface_view.vds_id
INNER JOIN network_cluster
ON network_cluster.cluster_id = vds.vds_group_id
INNER JOIN network
ON network.id = network_cluster.network_id
AND network.name = vds_interface_view.network_name
WHERE network.id = v_network_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVdsInterfaceById(v_vds_interface_id UUID) RETURNS SETOF vds_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vds_interface_view
WHERE id = v_vds_interface_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetInterfacesByClusterId(v_cluster_id UUID)
RETURNS SETOF vds_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vds_interface_view.*
FROM vds_interface_view
INNER JOIN vds_static
ON vds_interface_view.vds_id = vds_static.vds_id
WHERE vds_static.vds_group_id = v_cluster_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetInterfacesByDataCenterId(v_data_center_id UUID)
RETURNS SETOF vds_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vds_interface_view.*
FROM vds_interface_view
INNER JOIN vds_static
ON vds_interface_view.vds_id = vds_static.vds_id
INNER JOIN vds_groups
ON vds_static.vds_group_id = vds_groups.vds_group_id
WHERE vds_groups.storage_pool_id = v_data_center_id;
END; $procedure$
LANGUAGE plpgsql;
----------------------------------------------------------------
-- [vm_interface] Table
----------------------------------------------------------------
Create or replace FUNCTION InsertVmInterface(v_id UUID,
v_mac_addr VARCHAR(20) ,
v_name VARCHAR(50),
v_speed INTEGER ,
v_vnic_profile_id UUID ,
v_vm_guid UUID ,
v_vmt_guid UUID ,
v_type INTEGER,
v_linked BOOLEAN)
RETURNS VOID
AS $procedure$
BEGIN
INSERT INTO vm_interface(id, mac_addr, name, speed, vnic_profile_id, vm_guid, vmt_guid, type, linked)
VALUES(v_id, v_mac_addr, v_name, v_speed, v_vnic_profile_id, v_vm_guid, v_vmt_guid, v_type, v_linked);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION UpdateVmInterface(v_id UUID,
v_mac_addr VARCHAR(20) ,
v_name VARCHAR(50),
v_speed INTEGER ,
v_vnic_profile_id UUID ,
v_vm_guid UUID ,
v_vmt_guid UUID ,
v_type INTEGER,
v_linked BOOLEAN)
RETURNS VOID
AS $procedure$
BEGIN
UPDATE vm_interface
SET mac_addr = v_mac_addr,name = v_name, speed = v_speed, vnic_profile_id = v_vnic_profile_id, vm_guid = v_vm_guid,
vmt_guid = v_vmt_guid,type = v_type, _update_date = LOCALTIMESTAMP, linked = v_linked
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION DeleteVmInterface(v_id UUID)
RETURNS VOID
AS $procedure$
DECLARE
v_val UUID;
BEGIN
-- Get (and keep) a shared lock with "right to upgrade to exclusive"
-- in order to force locking parent before children
select id INTO v_val FROM vm_interface WHERE id = v_id FOR UPDATE;
DELETE FROM vm_interface
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmInterfaceByVmInterfaceId(v_id UUID) RETURNS SETOF vm_interface STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllFromVmInterfaces() RETURNS SETOF vm_interface STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmInterfacesByVmId(v_vm_id UUID)
RETURNS SETOF vm_interface STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface
WHERE vm_guid = v_vm_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmInterfaceByTemplateId(v_template_id UUID)
RETURNS SETOF vm_interface STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface
WHERE vmt_guid = v_template_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmInterfacesByNetworkId(v_network_id UUID) RETURNS SETOF vm_interface STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vm_interface.*
FROM vm_interface
INNER JOIN vnic_profiles ON vm_interface.vnic_profile_id = vnic_profiles.id
INNER JOIN vm_static on vm_interface.vm_guid = vm_static.vm_guid
WHERE vnic_profiles.network_id = v_network_id
AND vm_static.entity_type = 'VM';
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmTemplateInterfacesByNetworkId(v_network_id UUID) RETURNS SETOF vm_interface STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vm_interface.*
FROM vm_interface
INNER JOIN vm_static on vm_interface.vmt_guid = vm_static.vm_guid
INNER JOIN vnic_profiles ON vm_interface.vnic_profile_id = vnic_profiles.id
WHERE vnic_profiles.network_id = v_network_id
AND vm_static.entity_type = 'TEMPLATE';
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetMacsByDataCenterId(v_data_center_id UUID) RETURNS SETOF varchar STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT mac_addr
FROM vm_interface
WHERE EXISTS (SELECT 1
FROM vm_static
JOIN vds_groups ON vm_static.vds_group_id = vds_groups.vds_group_id
WHERE vds_groups.storage_pool_id = v_data_center_id
AND vm_static.vm_guid = vm_interface.vm_guid);
END; $procedure$
LANGUAGE plpgsql;
----------------------------------------------------------------
-- VM Interface View
----------------------------------------------------------------
Create or replace FUNCTION GetAllFromVmNetworkInterfaceViews() RETURNS SETOF vm_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface_view;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmNetworkInterfaceViewByVmNetworkInterfaceViewId(v_id UUID)
RETURNS SETOF vm_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface_view
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetPluggedVmInterfacesByMac(v_mac_address VARCHAR(20))
RETURNS SETOF vm_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface_view
WHERE mac_addr = v_mac_address
AND is_plugged = true;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmNetworkInterfaceViewByVmId(v_vm_id UUID, v_user_id UUID, v_is_filtered BOOLEAN)
RETURNS SETOF vm_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface_view
WHERE vm_guid = v_vm_id
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_vm_permissions_view
WHERE user_id = v_user_id AND entity_id = v_vm_id));
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmNetworkInterfaceViewByTemplateId(v_template_id UUID, v_user_id UUID, v_is_filtered boolean)
RETURNS SETOF vm_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface_view
WHERE vmt_guid = v_template_id
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_vm_template_permissions_view
WHERE user_id = v_user_id AND entity_id = v_template_id));
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmInterfaceViewsByNetworkId(v_network_id UUID) RETURNS SETOF vm_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vm_interface_view.*
FROM vm_interface_view
INNER JOIN vnic_profiles ON vnic_profiles.id = vm_interface_view.vnic_profile_id
WHERE vnic_profiles.network_id = v_network_id
AND vm_interface_view.vm_entity_type = 'VM';
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVmTemplateInterfaceViewsByNetworkId(v_network_id UUID) RETURNS SETOF vm_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vm_interface_view.*
FROM vm_interface_view
INNER JOIN vnic_profiles ON vnic_profiles.id = vm_interface_view.vnic_profile_id
WHERE vnic_profiles.network_id = v_network_id
AND vm_interface_view.vm_entity_type = 'TEMPLATE';
END; $procedure$
LANGUAGE plpgsql;
----------------------------------------------------------------
-- [vm_interface_statistics] Table
--
Create or replace FUNCTION Getvm_interface_statisticsById(v_id UUID) RETURNS SETOF vm_interface_statistics STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_interface_statistics
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Insertvm_interface_statistics(v_id UUID,
v_rx_drop DECIMAL(18,0) ,
v_rx_rate DECIMAL(18,0) ,
v_tx_drop DECIMAL(18,0) ,
v_tx_rate DECIMAL(18,0) ,
v_iface_status INTEGER ,
v_vm_id UUID)
RETURNS VOID
AS $procedure$
BEGIN
INSERT INTO vm_interface_statistics(id, rx_drop, rx_rate, tx_drop, tx_rate, vm_id, iface_status)
VALUES(v_id, v_rx_drop, v_rx_rate, v_tx_drop, v_tx_rate, v_vm_id,v_iface_status);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Updatevm_interface_statistics(v_id UUID,
v_rx_drop DECIMAL(18,0) ,
v_rx_rate DECIMAL(18,0) ,
v_tx_drop DECIMAL(18,0) ,
v_tx_rate DECIMAL(18,0) ,
v_iface_status INTEGER ,
v_vm_id UUID)
RETURNS VOID
--The [vm_interface_statistics] table doesn't have a timestamp column. Optimistic concurrency logic cannot be generated
AS $procedure$
BEGIN
UPDATE vm_interface_statistics
SET rx_drop = v_rx_drop,rx_rate = v_rx_rate,tx_drop = v_tx_drop,tx_rate = v_tx_rate,
vm_id = v_vm_id,iface_status = v_iface_status, _update_date = LOCALTIMESTAMP
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Deletevm_interface_statistics(v_id UUID)
RETURNS VOID
AS $procedure$
DECLARE
v_val UUID;
BEGIN
-- Get (and keep) a shared lock with "right to upgrade to exclusive"
-- in order to force locking parent before children
select id INTO v_val FROM vm_interface_statistics WHERE id = v_id FOR UPDATE;
DELETE FROM vm_interface_statistics
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
----------------------------------------------------------------
-- [network_cluster] Table
--
Create or replace FUNCTION GetVmGuestAgentInterfacesByVmId(v_vm_id UUID, v_user_id UUID, v_filtered BOOLEAN)
RETURNS SETOF vm_guest_agent_interfaces STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vm_guest_agent_interfaces
WHERE vm_id = v_vm_id
AND (NOT v_filtered OR EXISTS (SELECT 1
FROM user_vm_permissions_view
WHERE user_id = v_user_id AND entity_id = v_vm_id));
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION DeleteVmGuestAgentInterfacesByVmId(v_vm_id UUID)
RETURNS VOID
AS $procedure$
BEGIN
DELETE FROM vm_guest_agent_interfaces
WHERE vm_id = v_vm_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION InsertVmGuestAgentInterface(v_vm_id UUID,
v_interface_name VARCHAR(50),
v_mac_address VARCHAR(59),
v_ipv4_addresses text,
v_ipv6_addresses text)
RETURNS VOID
AS $procedure$
BEGIN
INSERT INTO vm_guest_agent_interfaces(vm_id, interface_name, mac_address, ipv4_addresses, ipv6_addresses)
VALUES(v_vm_id, v_interface_name, v_mac_address, v_ipv4_addresses, v_ipv6_addresses);
END; $procedure$
LANGUAGE plpgsql;
----------------------------------------------------------------
-- [vds_interface_statistics] Table
--
Create or replace FUNCTION Insertvds_interface_statistics(v_id UUID,
v_rx_drop DECIMAL(18,0) ,
v_rx_rate DECIMAL(18,0) ,
v_tx_drop DECIMAL(18,0) ,
v_tx_rate DECIMAL(18,0) ,
v_iface_status INTEGER ,
v_vds_id UUID)
RETURNS VOID
AS $procedure$
BEGIN
INSERT INTO vds_interface_statistics(id, rx_drop, rx_rate, tx_drop, tx_rate, vds_id, iface_status)
VALUES(v_id, v_rx_drop, v_rx_rate, v_tx_drop, v_tx_rate, v_vds_id,v_iface_status);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Updatevds_interface_statistics(v_id UUID,
v_rx_drop DECIMAL(18,0) ,
v_rx_rate DECIMAL(18,0) ,
v_tx_drop DECIMAL(18,0) ,
v_tx_rate DECIMAL(18,0) ,
v_iface_status INTEGER ,
v_vds_id UUID)
RETURNS VOID
--The [vds_interface_statistics] table doesn't have a timestamp column. Optimistic concurrency logic cannot be generated
AS $procedure$
BEGIN
UPDATE vds_interface_statistics
SET rx_drop = v_rx_drop,rx_rate = v_rx_rate,tx_drop = v_tx_drop,tx_rate = v_tx_rate,
vds_id = v_vds_id,iface_status = v_iface_status, _update_date = LOCALTIMESTAMP
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Deletevds_interface_statistics(v_id UUID)
RETURNS VOID
AS $procedure$
DECLARE
v_val UUID;
BEGIN
-- Get (and keep) a shared lock with "right to upgrade to exclusive"
-- in order to force locking parent before children
select id INTO v_val FROM vds_interface_statistics WHERE id = v_id FOR UPDATE;
DELETE FROM vds_interface_statistics
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
----------------------------------------------------------------
-- [network_cluster] Table
--
Create or replace FUNCTION Insertnetwork_cluster(v_cluster_id UUID,
v_network_id UUID,
v_status INTEGER,
v_is_display BOOLEAN,
v_required BOOLEAN,
v_migration BOOLEAN)
RETURNS VOID
AS $procedure$
BEGIN
INSERT INTO network_cluster(cluster_id, network_id, status, is_display, required, migration)
VALUES(v_cluster_id, v_network_id, v_status, v_is_display, v_required, v_migration);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Updatenetwork_cluster(v_cluster_id UUID,
v_network_id UUID,
v_status INTEGER,
v_is_display BOOLEAN,
v_required BOOLEAN,
v_migration BOOLEAN)
RETURNS VOID
AS $procedure$
BEGIN
UPDATE network_cluster
SET status = v_status,is_display = v_is_display, required = v_required, migration = v_migration
WHERE cluster_id = v_cluster_id AND network_id = v_network_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Updatenetwork_cluster_status(v_cluster_id UUID,
v_network_id UUID,
v_status INTEGER)
RETURNS VOID
AS $procedure$
BEGIN
UPDATE network_cluster
SET status = v_status
WHERE cluster_id = v_cluster_id AND network_id = v_network_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Deletenetwork_cluster(v_cluster_id UUID,
v_network_id UUID)
RETURNS VOID
AS $procedure$
BEGIN
DELETE FROM network_cluster
WHERE cluster_id = v_cluster_id AND network_id = v_network_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllFromnetwork_cluster() RETURNS SETOF network_cluster STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM network_cluster;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllFromnetwork_clusterByClusterId(v_cluster_id UUID)
RETURNS SETOF network_cluster STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM network_cluster
WHERE cluster_id = v_cluster_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllFromnetwork_clusterByNetworkId(v_network_id UUID)
RETURNS SETOF network_cluster STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM network_cluster
WHERE network_id = v_network_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION Getnetwork_clusterBycluster_idAndBynetwork_id(v_cluster_id UUID,
v_network_id UUID) RETURNS SETOF network_cluster STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM network_cluster
WHERE cluster_id = v_cluster_id AND network_id = v_network_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetvmStaticByGroupIdAndNetwork(v_groupId UUID,
v_networkName VARCHAR(50)) RETURNS SETOF vm_static STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT
vm_static.* from vm_static
inner join vm_interface_view
on vm_static.vm_guid = vm_interface_view.vm_guid
and network_name = v_networkName
and vm_static.vds_group_id = v_groupId;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION set_network_exclusively_as_display(v_cluster_id UUID, v_network_id UUID)
RETURNS VOID
AS $procedure$
BEGIN
UPDATE network_cluster
SET is_display = true
WHERE cluster_id = v_cluster_id AND network_id = v_network_id;
IF FOUND THEN
UPDATE network_cluster
SET is_display = false
WHERE cluster_id = v_cluster_id AND network_id != v_network_id;
END IF;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION set_network_exclusively_as_migration(v_cluster_id UUID, v_network_id UUID)
RETURNS VOID
AS $procedure$
BEGIN
UPDATE network_cluster
SET migration = true
WHERE cluster_id = v_cluster_id AND network_id = v_network_id;
IF FOUND THEN
UPDATE network_cluster
SET migration = false
WHERE cluster_id = v_cluster_id AND network_id != v_network_id;
END IF;
END; $procedure$
LANGUAGE plpgsql;
----------------------------------------------------------------------
-- Vnic Profile
----------------------------------------------------------------------
Create or replace FUNCTION GetVnicProfileByVnicProfileId(v_id UUID)
RETURNS SETOF vnic_profiles STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vnic_profiles
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION InsertVnicProfile(v_id UUID,
v_name VARCHAR(50),
v_network_id UUID,
v_network_qos_id UUID,
v_port_mirroring BOOLEAN,
v_custom_properties TEXT,
v_description TEXT)
RETURNS VOID
AS $procedure$
BEGIN
INSERT INTO vnic_profiles(id, name, network_id, network_qos_id, port_mirroring, custom_properties, description)
VALUES(v_id, v_name, v_network_id, v_network_qos_id, v_port_mirroring, v_custom_properties, v_description);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION UpdateVnicProfile(v_id UUID,
v_name VARCHAR(50),
v_network_id UUID,
v_network_qos_id UUID,
v_port_mirroring BOOLEAN,
v_custom_properties TEXT,
v_description TEXT)
RETURNS VOID
AS $procedure$
BEGIN
UPDATE vnic_profiles
SET id = v_id, name = v_name, network_id = v_network_id, network_qos_id = v_network_qos_id,
port_mirroring = v_port_mirroring, custom_properties = v_custom_properties,
description = v_description,_update_date = LOCALTIMESTAMP
WHERE id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION DeleteVnicProfile(v_id UUID)
RETURNS VOID
AS $procedure$
DECLARE
v_val UUID;
BEGIN
DELETE FROM vnic_profiles
WHERE id = v_id;
-- Delete the vnic profiles permissions
DELETE FROM permissions WHERE object_id = v_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllFromVnicProfiles()
RETURNS SETOF vnic_profiles STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vnic_profiles;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVnicProfilesByNetworkId(v_network_id UUID)
RETURNS SETOF vnic_profiles STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vnic_profiles
WHERE network_id = v_network_id;
END; $procedure$
LANGUAGE plpgsql;
----------------------------------------------------------------------
-- Vnic Profile View
----------------------------------------------------------------------
Create or replace FUNCTION GetVnicProfileViewByVnicProfileViewId(v_id UUID, v_user_id uuid, v_is_filtered boolean)
RETURNS SETOF vnic_profiles_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vnic_profiles_view
WHERE id = v_id
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_vnic_profile_permissions_view
WHERE user_id = v_user_id AND entity_id = vnic_profiles_view.id));
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetAllFromVnicProfileViews(v_user_id uuid, v_is_filtered boolean)
RETURNS SETOF vnic_profiles_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vnic_profiles_view
WHERE NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_vnic_profile_permissions_view
WHERE user_id = v_user_id AND entity_id = vnic_profiles_view.id);
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVnicProfileViewsByNetworkId(v_network_id UUID, v_user_id uuid, v_is_filtered boolean)
RETURNS SETOF vnic_profiles_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vnic_profiles_view
WHERE network_id = v_network_id
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_vnic_profile_permissions_view
WHERE user_id = v_user_id AND entity_id = vnic_profiles_view.id));
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVnicProfileViewsByDataCenterId(v_id UUID, v_user_id uuid, v_is_filtered boolean)
RETURNS SETOF vnic_profiles_view STABLE
AS $procedure$
BEGIN
RETURN QUERY
SELECT *
FROM vnic_profiles_view
WHERE data_center_id = v_id
AND (NOT v_is_filtered OR EXISTS (SELECT 1
FROM user_vnic_profile_permissions_view
WHERE user_id = v_user_id AND entity_id = vnic_profiles_view.id));
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetVnicProfileViewsByNetworkQosId(v_network_qos_id UUID) RETURNS SETOF vnic_profiles_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT *
FROM vnic_profiles_view
WHERE network_qos_id = v_network_qos_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION GetIscsiIfacesByHostIdAndStorageTargetId(v_host_id UUID, v_target_id varchar(50)) RETURNS SETOF vds_interface_view STABLE
AS $procedure$
BEGIN
RETURN QUERY SELECT vds_interface_view.*
FROM vds_interface_view,
network_cluster,
network,
iscsi_bonds_networks_map,
iscsi_bonds_storage_connections_map
WHERE
iscsi_bonds_storage_connections_map.connection_id = v_target_id AND
iscsi_bonds_storage_connections_map.iscsi_bond_id = iscsi_bonds_networks_map.iscsi_bond_id AND
iscsi_bonds_networks_map.network_id = network.id AND
network.id = network_cluster.network_id AND
network.name = vds_interface_view.network_name AND
network_cluster.cluster_id = vds_interface_view.vds_group_id AND
vds_interface_view.vds_id = v_host_id;
END; $procedure$
LANGUAGE plpgsql;
Create or replace FUNCTION RenameManagementNetwork(v_name varchar(50)) RETURNS VOID
AS $procedure$
DECLARE
v_old_name varchar(4000);
BEGIN
select option_value into v_old_name from vdc_options where option_name = 'ManagementNetwork' and version = 'general';
perform fn_db_update_config_value('ManagementNetwork', v_name, 'general');
update network set name = v_name where name = v_old_name;
update vnic_profiles set name = v_name where name = v_old_name;
END; $procedure$
LANGUAGE plpgsql;
| 27.547913 | 269 | 0.739445 |
e85cb3a6c6d6bb3f77f1b98b9f298c1ed6f1e4c3 | 2,981 | cc | C++ | src/tritonsort/mapreduce/common/filter/RecordFilterMap.cc | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | 11 | 2015-12-14T05:35:17.000Z | 2021-11-08T22:02:32.000Z | src/tritonsort/mapreduce/common/filter/RecordFilterMap.cc | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | null | null | null | src/tritonsort/mapreduce/common/filter/RecordFilterMap.cc | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | 8 | 2015-12-22T19:31:16.000Z | 2020-12-15T12:09:00.000Z | #include "core/ScopedLock.h"
#include "mapreduce/common/CoordinatorClientFactory.h"
#include "mapreduce/common/CoordinatorClientInterface.h"
#include "mapreduce/common/RecoveryInfo.h"
#include "mapreduce/common/boundary/DiskBackedBoundaryKeyList.h"
#include "mapreduce/common/filter/RecordFilter.h"
#include "mapreduce/common/filter/RecordFilterMap.h"
RecordFilterMap::RecordFilterMap(const Params& _params)
: params(_params) {
pthread_mutex_init(&lock, NULL);
coordinatorClient = CoordinatorClientFactory::newCoordinatorClient(
params, "DUMMY_PHASE", "record_filter_map", 0);
}
RecordFilterMap::RecordFilterMap(
const Params& _params, CoordinatorClientInterface* _coordinatorClient)
: params(_params),
coordinatorClient(_coordinatorClient) {
pthread_mutex_init(&lock, NULL);
}
RecordFilterMap::RecordFilterMap::~RecordFilterMap() {
pthread_mutex_lock(&lock);
if (coordinatorClient != NULL) {
delete coordinatorClient;
coordinatorClient = NULL;
}
for (JobToRecordFilterMap::iterator iter = filterMap.begin();
iter != filterMap.end(); iter++) {
if (iter->second != NULL) {
delete iter->second;
}
}
filterMap.clear();
pthread_mutex_unlock(&lock);
pthread_mutex_destroy(&lock);
}
const RecordFilter* RecordFilterMap::get(uint64_t jobID) {
typedef RecoveryInfo::PartitionRangeList PRL;
ScopedLock scopedLock(&lock);
JobToRecordFilterMap::iterator iter = filterMap.find(jobID);
RecordFilter* recordFilter = NULL;
if (iter != filterMap.end()) {
recordFilter = iter->second;
} else {
// Figure out which partitions you're supposed to filter
RecoveryInfo* recoveryInfo = coordinatorClient->getRecoveryInfo(jobID);
if (recoveryInfo != NULL) {
// If recoveryInfo is NULL, this job isn't recovering anything and we can
// pass all records through the filter
uint64_t recoveringJobID = recoveryInfo->recoveringJob;
// Load appropriate boundary keys from disk
DiskBackedBoundaryKeyList* boundaryList =
DiskBackedBoundaryKeyList::loadForJob(params, recoveringJobID);
const PRL& ranges = recoveryInfo->partitionRangesToRecover;
recordFilter = new RecordFilter();
// Construct record filter from those boundary keys
for (PRL::const_iterator iter = ranges.begin(); iter != ranges.end();
iter++) {
uint64_t startPartition = iter->first;
uint64_t endPartition = iter->second;
PartitionBoundaries* boundaries = NULL;
if (startPartition == endPartition) {
boundaries = boundaryList->getPartitionBoundaries(startPartition);
} else {
boundaries = boundaryList->getPartitionBoundaries(
startPartition, endPartition);
}
recordFilter->addPartitionBoundaries(*boundaries);
}
delete boundaryList;
delete recoveryInfo;
}
filterMap.insert(std::make_pair(jobID, recordFilter));
}
return recordFilter;
}
| 29.514851 | 79 | 0.71419 |
0f54994622af042c3c3d2e702751b1ea38ac3120 | 6,290 | cpp | C++ | tests/Unit/NumericalAlgorithms/Interpolation/Test_InterpolationTargetSpecifiedPoints.cpp | fmahebert/spectre | 936e2dff0434f169b9f5b03679cd27794003700a | [
"MIT"
] | null | null | null | tests/Unit/NumericalAlgorithms/Interpolation/Test_InterpolationTargetSpecifiedPoints.cpp | fmahebert/spectre | 936e2dff0434f169b9f5b03679cd27794003700a | [
"MIT"
] | null | null | null | tests/Unit/NumericalAlgorithms/Interpolation/Test_InterpolationTargetSpecifiedPoints.cpp | fmahebert/spectre | 936e2dff0434f169b9f5b03679cd27794003700a | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <algorithm>
#include <array>
#include <cstddef>
#include <vector>
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Tensor/Tensor.hpp"
#include "Domain/BlockLogicalCoordinates.hpp"
#include "Domain/Creators/Brick.hpp"
#include "Domain/Creators/Interval.hpp"
#include "Domain/Creators/Rectangle.hpp"
#include "Domain/Creators/RegisterDerivedWithCharm.hpp"
#include "Domain/Domain.hpp"
#include "Framework/TestCreation.hpp"
#include "Helpers/DataStructures/DataBox/TestHelpers.hpp"
#include "Helpers/NumericalAlgorithms/Interpolation/InterpolationTargetTestHelpers.hpp"
#include "NumericalAlgorithms/Interpolation/InterpolationTargetSpecifiedPoints.hpp"
#include "PointwiseFunctions/GeneralRelativity/Tags.hpp"
#include "Time/Tags.hpp"
#include "Utilities/TMPL.hpp"
namespace {
template <size_t Dim>
struct MockMetavariables {
struct InterpolationTargetA {
using temporal_id = ::Tags::TimeStepId;
using vars_to_interpolate_to_target =
tmpl::list<gr::Tags::Lapse<DataVector>>;
using compute_items_on_target = tmpl::list<>;
using compute_target_points =
::intrp::TargetPoints::SpecifiedPoints<InterpolationTargetA, Dim>;
};
static constexpr size_t volume_dim = Dim;
using interpolator_source_vars = tmpl::list<gr::Tags::Lapse<DataVector>>;
using interpolation_target_tags = tmpl::list<InterpolationTargetA>;
using component_list = tmpl::list<
InterpTargetTestHelpers::mock_interpolation_target<MockMetavariables<Dim>,
InterpolationTargetA>,
InterpTargetTestHelpers::mock_interpolator<MockMetavariables<Dim>>>;
enum class Phase { Initialization, Testing, Exit };
};
void test_1d() {
// Options for SpecifiedPoints
intrp::OptionHolders::SpecifiedPoints<1> points_opts(
std::vector<std::array<double, 1>>{
{std::array<double, 1>{{1.0}}, std::array<double, 1>{{0.3}}}});
// Test creation of options
const auto created_opts =
TestHelpers::test_creation<intrp::OptionHolders::SpecifiedPoints<1>>(
"Points: [[1.0], [0.3]]");
CHECK(created_opts == points_opts);
const auto domain_creator = domain::creators::Interval(
{{-1.0}}, {{1.0}}, {{1}}, {{3}}, {{false}}, nullptr);
const auto expected_block_coord_holders = [&domain_creator]() noexcept {
tnsr::I<DataVector, 1, Frame::Inertial> points;
get<0>(points) = DataVector({{1.0, 0.3}});
return block_logical_coordinates(domain_creator.create_domain(), points);
}();
TestHelpers::db::test_simple_tag<intrp::Tags::SpecifiedPoints<
MockMetavariables<1>::InterpolationTargetA, 1>>("SpecifiedPoints");
InterpTargetTestHelpers::test_interpolation_target<
MockMetavariables<1>, intrp::Tags::SpecifiedPoints<
MockMetavariables<1>::InterpolationTargetA, 1>>(
domain_creator, std::move(points_opts), expected_block_coord_holders);
}
void test_2d() {
// Options for SpecifiedPoints
intrp::OptionHolders::SpecifiedPoints<2> points_opts(
std::vector<std::array<double, 2>>{{std::array<double, 2>{{0.0, 1.0}},
std::array<double, 2>{{-0.2, 0.1}},
std::array<double, 2>{{0.3, 1.9}}}});
// Test creation of options
const auto created_opts =
TestHelpers::test_creation<intrp::OptionHolders::SpecifiedPoints<2>>(
"Points: [[0.0, 1.0], [-0.2, 0.1], [0.3, 1.9]]");
CHECK(created_opts == points_opts);
const auto domain_creator = domain::creators::Rectangle(
{{-1.0, -1.0}}, {{1.0, 2.0}}, {{1, 1}}, {{3, 4}}, {{false, false}});
const auto expected_block_coord_holders = [&domain_creator]() noexcept {
tnsr::I<DataVector, 2, Frame::Inertial> points;
get<0>(points) = DataVector({{0.0, -0.2, 0.3}});
get<1>(points) = DataVector({{1.0, 0.1, 1.9}});
return block_logical_coordinates(domain_creator.create_domain(), points);
}();
TestHelpers::db::test_simple_tag<intrp::Tags::SpecifiedPoints<
MockMetavariables<2>::InterpolationTargetA, 2>>("SpecifiedPoints");
InterpTargetTestHelpers::test_interpolation_target<
MockMetavariables<2>, intrp::Tags::SpecifiedPoints<
MockMetavariables<2>::InterpolationTargetA, 2>>(
domain_creator, std::move(points_opts), expected_block_coord_holders);
}
void test_3d() {
// Options for SpecifiedPoints
intrp::OptionHolders::SpecifiedPoints<3> points_opts(
std::vector<std::array<double, 3>>{
{std::array<double, 3>{{0.0, 0.0, 0.0}},
std::array<double, 3>{{1.0, -0.3, 0.2}},
std::array<double, 3>{{-0.8, 1.6, 2.4}},
std::array<double, 3>{{0.0, 1.0, 0.0}}}});
// Test creation of options
const auto created_opts =
TestHelpers::test_creation<intrp::OptionHolders::SpecifiedPoints<3>>(
"Points: [[0.0, 0.0, 0.0], [1.0, -0.3, 0.2], "
"[-0.8, 1.6, 2.4], [0.0, 1.0, 0.0]]");
CHECK(created_opts == points_opts);
const auto domain_creator = domain::creators::Brick(
{{-1.0, -1.0, -1.0}}, {{1.0, 2.0, 3.0}}, {{1, 1, 1}}, {{3, 4, 5}},
{{false, false, false}});
const auto expected_block_coord_holders = [&domain_creator]() noexcept {
tnsr::I<DataVector, 3, Frame::Inertial> points;
get<0>(points) = DataVector({{0.0, 1.0, -0.8, 0.0}});
get<1>(points) = DataVector({{0.0, -0.3, 1.6, 1.0}});
get<2>(points) = DataVector({{0.0, 0.2, 2.4, 0.0}});
return block_logical_coordinates(domain_creator.create_domain(), points);
}();
TestHelpers::db::test_simple_tag<intrp::Tags::SpecifiedPoints<
MockMetavariables<3>::InterpolationTargetA, 3>>("SpecifiedPoints");
InterpTargetTestHelpers::test_interpolation_target<
MockMetavariables<3>, intrp::Tags::SpecifiedPoints<
MockMetavariables<3>::InterpolationTargetA, 3>>(
domain_creator, std::move(points_opts), expected_block_coord_holders);
}
} // namespace
SPECTRE_TEST_CASE(
"Unit.NumericalAlgorithms.InterpolationTarget.SpecifiedPoints", "[Unit]") {
domain::creators::register_derived_with_charm();
test_1d();
test_2d();
test_3d();
}
| 40.063694 | 87 | 0.666932 |
8618f10d03bc97b6081a50ed8d413731190d0988 | 3,590 | java | Java | gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTestJre.java | google-code-export/gwtquery | 29e9e508cbf08a239f44f9d7df447cd32e9426b5 | [
"MIT"
] | null | null | null | gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTestJre.java | google-code-export/gwtquery | 29e9e508cbf08a239f44f9d7df447cd32e9426b5 | [
"MIT"
] | null | null | null | gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTestJre.java | google-code-export/gwtquery | 29e9e508cbf08a239f44f9d7df447cd32e9426b5 | [
"MIT"
] | null | null | null | /*
* Copyright 2013, The gwtquery team.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.query.client.ajax;
import com.google.gwt.query.servlet.GQAjaxTestServlet;
import com.google.gwt.query.vm.AjaxTransportJre;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.HandlerWrapper;
import org.eclipse.jetty.servlet.DefaultServlet;
import org.eclipse.jetty.webapp.WebAppClassLoader;
import org.eclipse.jetty.webapp.WebAppContext;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import javax.servlet.Servlet;
/**
* Tests for Data Binders and Ajax run in the JVM
*/
public class AjaxTestJre extends AjaxTests {
static Server server;
static int port = new Random().nextInt(1000) + 2000;
public String getModuleName() {
return null;
}
public AjaxTestJre() throws Exception {
// Disable stderr, so as stack traces of expected failures do not
// mess the output.
System.setErr(new PrintStream(new ByteArrayOutputStream()));
String localDomain = "http://127.0.0.1:" + port;
AjaxTransportJre.enableCORS(localDomain);
String corsDomain = "http://localhost:" + port;
echoUrl = localDomain + "/" + servletPath;
echoUrlCORS = corsDomain + "/" + servletPath + "?cors=true";
startWebServer(port);
}
protected void startWebServer(int port) throws Exception {
if (server == null) {
final Map<String, Class<? extends Servlet>> servlets = new HashMap<String, Class<? extends Servlet>>();
servlets.put("/" + servletPath, GQAjaxTestServlet.class);
server = createWebServer(port, ".", null, servlets, null);
}
}
public static Server createWebServer(final int port, final String resourceBase, final String[] classpath,
final Map<String, Class<? extends Servlet>> servlets, final HandlerWrapper handler) throws Exception {
final Server server = new Server(port);
final WebAppContext context = new WebAppContext();
context.setContextPath("/");
context.setResourceBase(resourceBase);
if (servlets != null) {
for (final Map.Entry<String, Class<? extends Servlet>> entry : servlets.entrySet()) {
final String pathSpec = entry.getKey();
final Class<? extends Servlet> servlet = entry.getValue();
context.addServlet(servlet, pathSpec);
// disable defaults if someone likes to register his own root servlet
if ("/".equals(pathSpec)) {
context.setDefaultsDescriptor(null);
context.addServlet(DefaultServlet.class, "/favicon.ico");
}
}
}
final WebAppClassLoader loader = new WebAppClassLoader(context);
if (classpath != null) {
for (final String path : classpath) {
loader.addClassPath(path);
}
}
context.setClassLoader(loader);
if (handler != null) {
handler.setHandler(context);
server.setHandler(handler);
} else {
server.setHandler(context);
}
server.start();
return server;
}
}
| 32.636364 | 109 | 0.701114 |
ed434a76a9d507d2e5b5086649bc0aef1892a700 | 26,021 | cs | C# | csharp-client/src/Camunda.OpenApi.Client/Model/HistoricDetailQueryDto.cs | silvanbrenner/camunda-csharp-client | f57df5e9922ebe3058f90c8c5b3f08831a87bd83 | [
"MIT"
] | 5 | 2021-09-29T15:20:25.000Z | 2022-02-18T12:06:02.000Z | csharp-client/src/Camunda.OpenApi.Client/Model/HistoricDetailQueryDto.cs | silvanbrenner/camunda-csharp-client | f57df5e9922ebe3058f90c8c5b3f08831a87bd83 | [
"MIT"
] | null | null | null | csharp-client/src/Camunda.OpenApi.Client/Model/HistoricDetailQueryDto.cs | silvanbrenner/camunda-csharp-client | f57df5e9922ebe3058f90c8c5b3f08831a87bd83 | [
"MIT"
] | 1 | 2021-04-07T15:49:02.000Z | 2021-04-07T15:49:02.000Z | /*
* Camunda Platform REST API
*
* OpenApi Spec for Camunda Platform REST API.
*
* The version of the OpenAPI document: 7.16.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = Camunda.OpenApi.Client.Client.FileParameter;
using OpenAPIDateConverter = Camunda.OpenApi.Client.Client.OpenAPIDateConverter;
namespace Camunda.OpenApi.Client.Model
{
/// <summary>
/// A historic detail query which defines a group of historic details.
/// </summary>
[DataContract(Name = "HistoricDetailQueryDto")]
public partial class HistoricDetailQueryDto : IEquatable<HistoricDetailQueryDto>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="HistoricDetailQueryDto" /> class.
/// </summary>
/// <param name="processInstanceId">Filter by process instance id..</param>
/// <param name="processInstanceIdIn">Only include historic details which belong to one of the passed process instance ids..</param>
/// <param name="executionId">Filter by execution id..</param>
/// <param name="taskId">Filter by task id..</param>
/// <param name="activityInstanceId">Filter by activity instance id..</param>
/// <param name="caseInstanceId">Filter by case instance id..</param>
/// <param name="caseExecutionId">Filter by case execution id..</param>
/// <param name="variableInstanceId">Filter by variable instance id..</param>
/// <param name="variableTypeIn">Only include historic details where the variable updates belong to one of the passed list of variable types. A list of all supported variable types can be found [here](https://docs.camunda.org/manual/7.16/user-guide/process-engine/variables/#supported-variable-values). **Note:** All non-primitive variables are associated with the type `serializable`..</param>
/// <param name="tenantIdIn">Filter by a list of tenant ids..</param>
/// <param name="withoutTenantId">Only include historic details that belong to no tenant. Value may only be `true`, as `false` is the default behavior..</param>
/// <param name="userOperationId">Filter by a user operation id..</param>
/// <param name="formFields">Only include `HistoricFormFields`. Value may only be `true`, as `false` is the default behavior..</param>
/// <param name="variableUpdates">Only include `HistoricVariableUpdates`. Value may only be `true`, as `false` is the default behavior..</param>
/// <param name="excludeTaskDetails">Excludes all task-related `HistoricDetails`, so only items which have no task id set will be selected. When this parameter is used together with `taskId`, this call is ignored and task details are not excluded. Value may only be `true`, as `false` is the default behavior..</param>
/// <param name="initial">Restrict to historic variable updates that contain only initial variable values. Value may only be `true`, as `false` is the default behavior..</param>
/// <param name="occurredBefore">Restrict to historic details that occured before the given date (including the date). Default [format](https://docs.camunda.org/manual/7.16/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., 2013-01-23T14:42:45.000+0200..</param>
/// <param name="occurredAfter">Restrict to historic details that occured after the given date (including the date). Default [format](https://docs.camunda.org/manual/7.16/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., 2013-01-23T14:42:45.000+0200..</param>
/// <param name="sorting">A JSON array of criteria to sort the result by. Each element of the array is a JSON object that specifies one ordering. The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc. Does not have an effect for the `count` endpoint..</param>
public HistoricDetailQueryDto(string processInstanceId = default(string), List<string> processInstanceIdIn = default(List<string>), string executionId = default(string), string taskId = default(string), string activityInstanceId = default(string), string caseInstanceId = default(string), string caseExecutionId = default(string), string variableInstanceId = default(string), List<string> variableTypeIn = default(List<string>), List<string> tenantIdIn = default(List<string>), bool? withoutTenantId = default(bool?), string userOperationId = default(string), bool? formFields = default(bool?), bool? variableUpdates = default(bool?), bool? excludeTaskDetails = default(bool?), bool? initial = default(bool?), DateTime? occurredBefore = default(DateTime?), DateTime? occurredAfter = default(DateTime?), List<HistoricDetailQueryDtoSorting> sorting = default(List<HistoricDetailQueryDtoSorting>))
{
this.ProcessInstanceId = processInstanceId;
this.ProcessInstanceIdIn = processInstanceIdIn;
this.ExecutionId = executionId;
this.TaskId = taskId;
this.ActivityInstanceId = activityInstanceId;
this.CaseInstanceId = caseInstanceId;
this.CaseExecutionId = caseExecutionId;
this.VariableInstanceId = variableInstanceId;
this.VariableTypeIn = variableTypeIn;
this.TenantIdIn = tenantIdIn;
this.WithoutTenantId = withoutTenantId;
this.UserOperationId = userOperationId;
this.FormFields = formFields;
this.VariableUpdates = variableUpdates;
this.ExcludeTaskDetails = excludeTaskDetails;
this.Initial = initial;
this.OccurredBefore = occurredBefore;
this.OccurredAfter = occurredAfter;
this.Sorting = sorting;
}
/// <summary>
/// Filter by process instance id.
/// </summary>
/// <value>Filter by process instance id.</value>
[DataMember(Name = "processInstanceId", EmitDefaultValue = true)]
public string ProcessInstanceId { get; set; }
/// <summary>
/// Only include historic details which belong to one of the passed process instance ids.
/// </summary>
/// <value>Only include historic details which belong to one of the passed process instance ids.</value>
[DataMember(Name = "processInstanceIdIn", EmitDefaultValue = true)]
public List<string> ProcessInstanceIdIn { get; set; }
/// <summary>
/// Filter by execution id.
/// </summary>
/// <value>Filter by execution id.</value>
[DataMember(Name = "executionId", EmitDefaultValue = true)]
public string ExecutionId { get; set; }
/// <summary>
/// Filter by task id.
/// </summary>
/// <value>Filter by task id.</value>
[DataMember(Name = "taskId", EmitDefaultValue = true)]
public string TaskId { get; set; }
/// <summary>
/// Filter by activity instance id.
/// </summary>
/// <value>Filter by activity instance id.</value>
[DataMember(Name = "activityInstanceId", EmitDefaultValue = true)]
public string ActivityInstanceId { get; set; }
/// <summary>
/// Filter by case instance id.
/// </summary>
/// <value>Filter by case instance id.</value>
[DataMember(Name = "caseInstanceId", EmitDefaultValue = true)]
public string CaseInstanceId { get; set; }
/// <summary>
/// Filter by case execution id.
/// </summary>
/// <value>Filter by case execution id.</value>
[DataMember(Name = "caseExecutionId", EmitDefaultValue = true)]
public string CaseExecutionId { get; set; }
/// <summary>
/// Filter by variable instance id.
/// </summary>
/// <value>Filter by variable instance id.</value>
[DataMember(Name = "variableInstanceId", EmitDefaultValue = true)]
public string VariableInstanceId { get; set; }
/// <summary>
/// Only include historic details where the variable updates belong to one of the passed list of variable types. A list of all supported variable types can be found [here](https://docs.camunda.org/manual/7.16/user-guide/process-engine/variables/#supported-variable-values). **Note:** All non-primitive variables are associated with the type `serializable`.
/// </summary>
/// <value>Only include historic details where the variable updates belong to one of the passed list of variable types. A list of all supported variable types can be found [here](https://docs.camunda.org/manual/7.16/user-guide/process-engine/variables/#supported-variable-values). **Note:** All non-primitive variables are associated with the type `serializable`.</value>
[DataMember(Name = "variableTypeIn", EmitDefaultValue = true)]
public List<string> VariableTypeIn { get; set; }
/// <summary>
/// Filter by a list of tenant ids.
/// </summary>
/// <value>Filter by a list of tenant ids.</value>
[DataMember(Name = "tenantIdIn", EmitDefaultValue = true)]
public List<string> TenantIdIn { get; set; }
/// <summary>
/// Only include historic details that belong to no tenant. Value may only be `true`, as `false` is the default behavior.
/// </summary>
/// <value>Only include historic details that belong to no tenant. Value may only be `true`, as `false` is the default behavior.</value>
[DataMember(Name = "withoutTenantId", EmitDefaultValue = true)]
public bool? WithoutTenantId { get; set; }
/// <summary>
/// Filter by a user operation id.
/// </summary>
/// <value>Filter by a user operation id.</value>
[DataMember(Name = "userOperationId", EmitDefaultValue = true)]
public string UserOperationId { get; set; }
/// <summary>
/// Only include `HistoricFormFields`. Value may only be `true`, as `false` is the default behavior.
/// </summary>
/// <value>Only include `HistoricFormFields`. Value may only be `true`, as `false` is the default behavior.</value>
[DataMember(Name = "formFields", EmitDefaultValue = true)]
public bool? FormFields { get; set; }
/// <summary>
/// Only include `HistoricVariableUpdates`. Value may only be `true`, as `false` is the default behavior.
/// </summary>
/// <value>Only include `HistoricVariableUpdates`. Value may only be `true`, as `false` is the default behavior.</value>
[DataMember(Name = "variableUpdates", EmitDefaultValue = true)]
public bool? VariableUpdates { get; set; }
/// <summary>
/// Excludes all task-related `HistoricDetails`, so only items which have no task id set will be selected. When this parameter is used together with `taskId`, this call is ignored and task details are not excluded. Value may only be `true`, as `false` is the default behavior.
/// </summary>
/// <value>Excludes all task-related `HistoricDetails`, so only items which have no task id set will be selected. When this parameter is used together with `taskId`, this call is ignored and task details are not excluded. Value may only be `true`, as `false` is the default behavior.</value>
[DataMember(Name = "excludeTaskDetails", EmitDefaultValue = true)]
public bool? ExcludeTaskDetails { get; set; }
/// <summary>
/// Restrict to historic variable updates that contain only initial variable values. Value may only be `true`, as `false` is the default behavior.
/// </summary>
/// <value>Restrict to historic variable updates that contain only initial variable values. Value may only be `true`, as `false` is the default behavior.</value>
[DataMember(Name = "initial", EmitDefaultValue = true)]
public bool? Initial { get; set; }
/// <summary>
/// Restrict to historic details that occured before the given date (including the date). Default [format](https://docs.camunda.org/manual/7.16/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., 2013-01-23T14:42:45.000+0200.
/// </summary>
/// <value>Restrict to historic details that occured before the given date (including the date). Default [format](https://docs.camunda.org/manual/7.16/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., 2013-01-23T14:42:45.000+0200.</value>
[DataMember(Name = "occurredBefore", EmitDefaultValue = true)]
public DateTime? OccurredBefore { get; set; }
/// <summary>
/// Restrict to historic details that occured after the given date (including the date). Default [format](https://docs.camunda.org/manual/7.16/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., 2013-01-23T14:42:45.000+0200.
/// </summary>
/// <value>Restrict to historic details that occured after the given date (including the date). Default [format](https://docs.camunda.org/manual/7.16/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., 2013-01-23T14:42:45.000+0200.</value>
[DataMember(Name = "occurredAfter", EmitDefaultValue = true)]
public DateTime? OccurredAfter { get; set; }
/// <summary>
/// A JSON array of criteria to sort the result by. Each element of the array is a JSON object that specifies one ordering. The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc. Does not have an effect for the `count` endpoint.
/// </summary>
/// <value>A JSON array of criteria to sort the result by. Each element of the array is a JSON object that specifies one ordering. The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc. Does not have an effect for the `count` endpoint.</value>
[DataMember(Name = "sorting", EmitDefaultValue = true)]
public List<HistoricDetailQueryDtoSorting> Sorting { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class HistoricDetailQueryDto {\n");
sb.Append(" ProcessInstanceId: ").Append(ProcessInstanceId).Append("\n");
sb.Append(" ProcessInstanceIdIn: ").Append(ProcessInstanceIdIn).Append("\n");
sb.Append(" ExecutionId: ").Append(ExecutionId).Append("\n");
sb.Append(" TaskId: ").Append(TaskId).Append("\n");
sb.Append(" ActivityInstanceId: ").Append(ActivityInstanceId).Append("\n");
sb.Append(" CaseInstanceId: ").Append(CaseInstanceId).Append("\n");
sb.Append(" CaseExecutionId: ").Append(CaseExecutionId).Append("\n");
sb.Append(" VariableInstanceId: ").Append(VariableInstanceId).Append("\n");
sb.Append(" VariableTypeIn: ").Append(VariableTypeIn).Append("\n");
sb.Append(" TenantIdIn: ").Append(TenantIdIn).Append("\n");
sb.Append(" WithoutTenantId: ").Append(WithoutTenantId).Append("\n");
sb.Append(" UserOperationId: ").Append(UserOperationId).Append("\n");
sb.Append(" FormFields: ").Append(FormFields).Append("\n");
sb.Append(" VariableUpdates: ").Append(VariableUpdates).Append("\n");
sb.Append(" ExcludeTaskDetails: ").Append(ExcludeTaskDetails).Append("\n");
sb.Append(" Initial: ").Append(Initial).Append("\n");
sb.Append(" OccurredBefore: ").Append(OccurredBefore).Append("\n");
sb.Append(" OccurredAfter: ").Append(OccurredAfter).Append("\n");
sb.Append(" Sorting: ").Append(Sorting).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as HistoricDetailQueryDto);
}
/// <summary>
/// Returns true if HistoricDetailQueryDto instances are equal
/// </summary>
/// <param name="input">Instance of HistoricDetailQueryDto to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(HistoricDetailQueryDto input)
{
if (input == null)
return false;
return
(
this.ProcessInstanceId == input.ProcessInstanceId ||
(this.ProcessInstanceId != null &&
this.ProcessInstanceId.Equals(input.ProcessInstanceId))
) &&
(
this.ProcessInstanceIdIn == input.ProcessInstanceIdIn ||
this.ProcessInstanceIdIn != null &&
input.ProcessInstanceIdIn != null &&
this.ProcessInstanceIdIn.SequenceEqual(input.ProcessInstanceIdIn)
) &&
(
this.ExecutionId == input.ExecutionId ||
(this.ExecutionId != null &&
this.ExecutionId.Equals(input.ExecutionId))
) &&
(
this.TaskId == input.TaskId ||
(this.TaskId != null &&
this.TaskId.Equals(input.TaskId))
) &&
(
this.ActivityInstanceId == input.ActivityInstanceId ||
(this.ActivityInstanceId != null &&
this.ActivityInstanceId.Equals(input.ActivityInstanceId))
) &&
(
this.CaseInstanceId == input.CaseInstanceId ||
(this.CaseInstanceId != null &&
this.CaseInstanceId.Equals(input.CaseInstanceId))
) &&
(
this.CaseExecutionId == input.CaseExecutionId ||
(this.CaseExecutionId != null &&
this.CaseExecutionId.Equals(input.CaseExecutionId))
) &&
(
this.VariableInstanceId == input.VariableInstanceId ||
(this.VariableInstanceId != null &&
this.VariableInstanceId.Equals(input.VariableInstanceId))
) &&
(
this.VariableTypeIn == input.VariableTypeIn ||
this.VariableTypeIn != null &&
input.VariableTypeIn != null &&
this.VariableTypeIn.SequenceEqual(input.VariableTypeIn)
) &&
(
this.TenantIdIn == input.TenantIdIn ||
this.TenantIdIn != null &&
input.TenantIdIn != null &&
this.TenantIdIn.SequenceEqual(input.TenantIdIn)
) &&
(
this.WithoutTenantId == input.WithoutTenantId ||
(this.WithoutTenantId != null &&
this.WithoutTenantId.Equals(input.WithoutTenantId))
) &&
(
this.UserOperationId == input.UserOperationId ||
(this.UserOperationId != null &&
this.UserOperationId.Equals(input.UserOperationId))
) &&
(
this.FormFields == input.FormFields ||
(this.FormFields != null &&
this.FormFields.Equals(input.FormFields))
) &&
(
this.VariableUpdates == input.VariableUpdates ||
(this.VariableUpdates != null &&
this.VariableUpdates.Equals(input.VariableUpdates))
) &&
(
this.ExcludeTaskDetails == input.ExcludeTaskDetails ||
(this.ExcludeTaskDetails != null &&
this.ExcludeTaskDetails.Equals(input.ExcludeTaskDetails))
) &&
(
this.Initial == input.Initial ||
(this.Initial != null &&
this.Initial.Equals(input.Initial))
) &&
(
this.OccurredBefore == input.OccurredBefore ||
(this.OccurredBefore != null &&
this.OccurredBefore.Equals(input.OccurredBefore))
) &&
(
this.OccurredAfter == input.OccurredAfter ||
(this.OccurredAfter != null &&
this.OccurredAfter.Equals(input.OccurredAfter))
) &&
(
this.Sorting == input.Sorting ||
this.Sorting != null &&
input.Sorting != null &&
this.Sorting.SequenceEqual(input.Sorting)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.ProcessInstanceId != null)
hashCode = hashCode * 59 + this.ProcessInstanceId.GetHashCode();
if (this.ProcessInstanceIdIn != null)
hashCode = hashCode * 59 + this.ProcessInstanceIdIn.GetHashCode();
if (this.ExecutionId != null)
hashCode = hashCode * 59 + this.ExecutionId.GetHashCode();
if (this.TaskId != null)
hashCode = hashCode * 59 + this.TaskId.GetHashCode();
if (this.ActivityInstanceId != null)
hashCode = hashCode * 59 + this.ActivityInstanceId.GetHashCode();
if (this.CaseInstanceId != null)
hashCode = hashCode * 59 + this.CaseInstanceId.GetHashCode();
if (this.CaseExecutionId != null)
hashCode = hashCode * 59 + this.CaseExecutionId.GetHashCode();
if (this.VariableInstanceId != null)
hashCode = hashCode * 59 + this.VariableInstanceId.GetHashCode();
if (this.VariableTypeIn != null)
hashCode = hashCode * 59 + this.VariableTypeIn.GetHashCode();
if (this.TenantIdIn != null)
hashCode = hashCode * 59 + this.TenantIdIn.GetHashCode();
if (this.WithoutTenantId != null)
hashCode = hashCode * 59 + this.WithoutTenantId.GetHashCode();
if (this.UserOperationId != null)
hashCode = hashCode * 59 + this.UserOperationId.GetHashCode();
if (this.FormFields != null)
hashCode = hashCode * 59 + this.FormFields.GetHashCode();
if (this.VariableUpdates != null)
hashCode = hashCode * 59 + this.VariableUpdates.GetHashCode();
if (this.ExcludeTaskDetails != null)
hashCode = hashCode * 59 + this.ExcludeTaskDetails.GetHashCode();
if (this.Initial != null)
hashCode = hashCode * 59 + this.Initial.GetHashCode();
if (this.OccurredBefore != null)
hashCode = hashCode * 59 + this.OccurredBefore.GetHashCode();
if (this.OccurredAfter != null)
hashCode = hashCode * 59 + this.OccurredAfter.GetHashCode();
if (this.Sorting != null)
hashCode = hashCode * 59 + this.Sorting.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
| 59.408676 | 902 | 0.601207 |
f9904c784c07d95409890a115da65d4dff271b8c | 2,576 | go | Go | server/handler/export.go | donaldtang2019/kube-scheduler-simulator | 17382c9fea30492335e19796841e14b695a4aaf9 | [
"Apache-2.0"
] | null | null | null | server/handler/export.go | donaldtang2019/kube-scheduler-simulator | 17382c9fea30492335e19796841e14b695a4aaf9 | [
"Apache-2.0"
] | null | null | null | server/handler/export.go | donaldtang2019/kube-scheduler-simulator | 17382c9fea30492335e19796841e14b695a4aaf9 | [
"Apache-2.0"
] | 1 | 2022-03-10T23:44:46.000Z | 2022-03-10T23:44:46.000Z | package handler
import (
"net/http"
"github.com/labstack/echo/v4"
v1 "k8s.io/client-go/applyconfigurations/core/v1"
schedulingcfgv1 "k8s.io/client-go/applyconfigurations/scheduling/v1"
confstoragev1 "k8s.io/client-go/applyconfigurations/storage/v1"
"k8s.io/klog/v2"
v1beta2config "k8s.io/kube-scheduler/config/v1beta2"
"github.com/kubernetes-sigs/kube-scheduler-simulator/export"
"github.com/kubernetes-sigs/kube-scheduler-simulator/server/di"
)
type ExportHandler struct {
service di.ExportService
}
type ResourcesForImport struct {
Pods []v1.PodApplyConfiguration `json:"pods"`
Nodes []v1.NodeApplyConfiguration `json:"nodes"`
Pvs []v1.PersistentVolumeApplyConfiguration `json:"pvs"`
Pvcs []v1.PersistentVolumeClaimApplyConfiguration `json:"pvcs"`
StorageClasses []confstoragev1.StorageClassApplyConfiguration `json:"storageClasses"`
PriorityClasses []schedulingcfgv1.PriorityClassApplyConfiguration `json:"priorityClasses"`
SchedulerConfig *v1beta2config.KubeSchedulerConfiguration `json:"schedulerConfig"`
}
func NewExportHandler(s di.ExportService) *ExportHandler {
return &ExportHandler{service: s}
}
func (h *ExportHandler) Export(c echo.Context) error {
ctx := c.Request().Context()
rs, err := h.service.Export(ctx)
if err != nil {
klog.Errorf("failed to export all resources: %+v", err)
return echo.NewHTTPError(http.StatusInternalServerError)
}
return c.JSON(http.StatusOK, rs)
}
func (h *ExportHandler) Import(c echo.Context) error {
ctx := c.Request().Context()
reqResources := new(ResourcesForImport)
if err := c.Bind(reqResources); err != nil {
klog.Errorf("failed to bind import resources all request: %+v", err)
return echo.NewHTTPError(http.StatusBadRequest)
}
err := h.service.Import(ctx, convertToResourcesApplyConfiguration(reqResources))
if err != nil {
klog.Errorf("failed to import all resources: %+v", err)
return echo.NewHTTPError(http.StatusInternalServerError)
}
return c.NoContent(http.StatusOK)
}
// convertToResourcesApplyConfiguration converts from *ResourcesApplyConfiguration to *export.ResourcesApplyConfiguration.
func convertToResourcesApplyConfiguration(r *ResourcesForImport) *export.ResourcesForImport {
return &export.ResourcesForImport{
Pods: r.Pods,
Nodes: r.Nodes,
Pvs: r.Pvs,
Pvcs: r.Pvcs,
StorageClasses: r.StorageClasses,
PriorityClasses: r.PriorityClasses,
SchedulerConfig: r.SchedulerConfig,
}
}
| 34.346667 | 122 | 0.727484 |
62b4553fabae8fed632ab5efefb257ca7527a097 | 354,354 | html | HTML | data/maps/map_01-19-2022.html | afong3/StarCollector | fbe4a3bd9f634777f313233e4a8c93f2aba25c9e | [
"MIT"
] | null | null | null | data/maps/map_01-19-2022.html | afong3/StarCollector | fbe4a3bd9f634777f313233e4a8c93f2aba25c9e | [
"MIT"
] | null | null | null | data/maps/map_01-19-2022.html | afong3/StarCollector | fbe4a3bd9f634777f313233e4a8c93f2aba25c9e | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script>
L_NO_TOUCH = false;
L_DISABLE_3D = false;
</script>
<style>html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style>
<style>#map {position:absolute;top:0;bottom:0;right:0;left:0;}</style>
<script src="https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css"/>
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
#map_5a07e6abfd7149ed9d82ac92cdadc74b {
position: relative;
width: 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
</style>
<script src="https://cdn.jsdelivr.net/gh/marslan390/BeautifyMarker/leaflet-beautify-marker-icon.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/marslan390/BeautifyMarker/leaflet-beautify-marker-icon.min.css"/>
</head>
<body>
<div class="folium-map" id="map_5a07e6abfd7149ed9d82ac92cdadc74b" ></div>
</body>
<script>
var map_5a07e6abfd7149ed9d82ac92cdadc74b = L.map(
"map_5a07e6abfd7149ed9d82ac92cdadc74b",
{
center: [49.225, -123.275],
crs: L.CRS.EPSG3857,
zoom: 9,
zoomControl: true,
preferCanvas: false,
}
);
var tile_layer_b41da7f7e5564f92b71d8aebf90cd853 = L.tileLayer(
"https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
{"attribution": "\u0026copy; \u003ca href=\"http://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors \u0026copy; \u003ca href=\"http://cartodb.com/attributions\"\u003eCartoDB\u003c/a\u003e, CartoDB \u003ca href =\"http://cartodb.com/attributions\"\u003eattributions\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
).addTo(map_5a07e6abfd7149ed9d82ac92cdadc74b);
var feature_group_d36b501836134986af718e9dfce71fb0 = L.featureGroup(
{}
).addTo(map_5a07e6abfd7149ed9d82ac92cdadc74b);
var marker_951661e862994e9285717d567531c750 = L.marker(
[49.279367161347785, -123.2415175867091],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_b2be40caf83b4d77aaedcb08b779ae16 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_951661e862994e9285717d567531c750.setIcon(beautify_icon_b2be40caf83b4d77aaedcb08b779ae16);
marker_951661e862994e9285717d567531c750.bindTooltip(
`<div>
AcadiaBeach
</div>`,
{"sticky": true}
);
var marker_feb2182bb19449ad807601710cd37284 = L.marker(
[49.277086773057036, -123.22542452176616],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_6f37cacc32194ebbb14d75f8178ef1a0 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_feb2182bb19449ad807601710cd37284.setIcon(beautify_icon_6f37cacc32194ebbb14d75f8178ef1a0);
marker_feb2182bb19449ad807601710cd37284.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_68b8f9ac10104a21b9f6ae9d8068af55 = L.marker(
[49.277411549383096, -123.2281130458741],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_981b25b20e3e44f7b77347c38b47d958 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_68b8f9ac10104a21b9f6ae9d8068af55.setIcon(beautify_icon_981b25b20e3e44f7b77347c38b47d958);
marker_68b8f9ac10104a21b9f6ae9d8068af55.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_06b824b44c4e4cfd9c6fbbda6be059f1 = L.marker(
[49.277415748889865, -123.23157294794753],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_18b0ec48acd845009e2f5d701f1313f9 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_06b824b44c4e4cfd9c6fbbda6be059f1.setIcon(beautify_icon_18b0ec48acd845009e2f5d701f1313f9);
marker_06b824b44c4e4cfd9c6fbbda6be059f1.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_a124c4227f994f3fbd573865004f3346 = L.marker(
[49.277465445144415, -123.23061039535486],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_fb168cfd880440a18934870402e65f68 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a124c4227f994f3fbd573865004f3346.setIcon(beautify_icon_fb168cfd880440a18934870402e65f68);
marker_a124c4227f994f3fbd573865004f3346.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_bc6d1d251afa493bb97b04caedd40cb7 = L.marker(
[49.278014899173215, -123.23105476271542],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a801ec97858b420da4b97e2c59a93763 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bc6d1d251afa493bb97b04caedd40cb7.setIcon(beautify_icon_a801ec97858b420da4b97e2c59a93763);
marker_bc6d1d251afa493bb97b04caedd40cb7.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_066ebe9f59ed4510b37c9abb4ffc4543 = L.marker(
[49.278299072800586, -123.23659531243227],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_4d3e9730dbb5404989f6e1b45f1786b1 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_066ebe9f59ed4510b37c9abb4ffc4543.setIcon(beautify_icon_4d3e9730dbb5404989f6e1b45f1786b1);
marker_066ebe9f59ed4510b37c9abb4ffc4543.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_5ca396ba284a47d7a4f9d7c9c0cb0416 = L.marker(
[49.27887581508334, -123.24255526064007],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_5386030529a04944aeec04da9fe9699d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5ca396ba284a47d7a4f9d7c9c0cb0416.setIcon(beautify_icon_5386030529a04944aeec04da9fe9699d);
marker_5ca396ba284a47d7a4f9d7c9c0cb0416.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_894968fbf6844524aeacfec714589c77 = L.marker(
[49.27912008855083, -123.24128794767657],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_b85841fd2e26426ea831d9cbb52950e8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_894968fbf6844524aeacfec714589c77.setIcon(beautify_icon_b85841fd2e26426ea831d9cbb52950e8);
marker_894968fbf6844524aeacfec714589c77.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_b1e6033d6e114417824929a13036b921 = L.marker(
[49.25079661267171, -123.22859905597366],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_90f36af985324b08a7d34c3b846ef4e0 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b1e6033d6e114417824929a13036b921.setIcon(beautify_icon_90f36af985324b08a7d34c3b846ef4e0);
marker_b1e6033d6e114417824929a13036b921.bindTooltip(
`<div>
AIMS
</div>`,
{"sticky": true}
);
var marker_a81f5e5b047f459392cdfe537b63dd46 = L.marker(
[49.25036241002851, -123.1991790738853],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_25f9c8f4c4104ea2a59965ffe34c9868 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a81f5e5b047f459392cdfe537b63dd46.setIcon(beautify_icon_25f9c8f4c4104ea2a59965ffe34c9868);
marker_a81f5e5b047f459392cdfe537b63dd46.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_7b6e4b7378014ea9b50ceba94cda2932 = L.marker(
[49.25146191592837, -123.19949840154771],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_839efb0253f64ab6b2d140ad1320474b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_7b6e4b7378014ea9b50ceba94cda2932.setIcon(beautify_icon_839efb0253f64ab6b2d140ad1320474b);
marker_7b6e4b7378014ea9b50ceba94cda2932.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_6fa7242f78734ca8a95d1ed9be26f52a = L.marker(
[49.251515840200796, -123.20023789104643],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_dbff69983ce84da0a4352730cab44476 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_6fa7242f78734ca8a95d1ed9be26f52a.setIcon(beautify_icon_dbff69983ce84da0a4352730cab44476);
marker_6fa7242f78734ca8a95d1ed9be26f52a.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_8e79d8829dd2477c84021df12dd7810a = L.marker(
[49.2521125038212, -123.20027236031547],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_cb26c700c870401598a176577c1ac25c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_8e79d8829dd2477c84021df12dd7810a.setIcon(beautify_icon_cb26c700c870401598a176577c1ac25c);
marker_8e79d8829dd2477c84021df12dd7810a.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_40fa681750a340ada4ac3739885cb906 = L.marker(
[49.25213736475354, -123.19979137418355],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_7a1e5c97a44148e884c43fd70449a4a4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_40fa681750a340ada4ac3739885cb906.setIcon(beautify_icon_7a1e5c97a44148e884c43fd70449a4a4);
marker_40fa681750a340ada4ac3739885cb906.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_6fdb0bb84fe74902b5aa0017794cb0de = L.marker(
[49.252193039182075, -123.19439576029895],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_6be10aa7fd1445a9849a8993085e4d8c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_6fdb0bb84fe74902b5aa0017794cb0de.setIcon(beautify_icon_6be10aa7fd1445a9849a8993085e4d8c);
marker_6fdb0bb84fe74902b5aa0017794cb0de.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_a60b58a71b894cffb06eb5ca76207687 = L.marker(
[49.25223645767689, -123.2001693855924],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_6a2e167b0fa3485bb1ab4ad8e6a4e11f = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a60b58a71b894cffb06eb5ca76207687.setIcon(beautify_icon_6a2e167b0fa3485bb1ab4ad8e6a4e11f);
marker_a60b58a71b894cffb06eb5ca76207687.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_12b3992a31884c16a3350d1dd27711cb = L.marker(
[49.25230228636072, -123.20074496538511],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_20241ef9ecb74a468d466a1b385dabf0 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_12b3992a31884c16a3350d1dd27711cb.setIcon(beautify_icon_20241ef9ecb74a468d466a1b385dabf0);
marker_12b3992a31884c16a3350d1dd27711cb.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_a466e51270384a7ebb25d61bd2e5888c = L.marker(
[49.25231454165429, -123.2005357974469],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_abda056bf33d48f5a16bfc9f20dfbcf4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a466e51270384a7ebb25d61bd2e5888c.setIcon(beautify_icon_abda056bf33d48f5a16bfc9f20dfbcf4);
marker_a466e51270384a7ebb25d61bd2e5888c.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_5652b87453ba4be8bbbcee91579134ab = L.marker(
[49.25241993699468, -123.20091128639652],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_25507827c7624de3ba5706b4e41fbc6b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5652b87453ba4be8bbbcee91579134ab.setIcon(beautify_icon_25507827c7624de3ba5706b4e41fbc6b);
marker_5652b87453ba4be8bbbcee91579134ab.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_4243510eb9544864a81907de344dac6d = L.marker(
[49.2525852078819, -123.19963866360983],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_3740e482282b40cea59a6e6435919c57 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4243510eb9544864a81907de344dac6d.setIcon(beautify_icon_3740e482282b40cea59a6e6435919c57);
marker_4243510eb9544864a81907de344dac6d.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_f407bfb35d444471916192f859da8c37 = L.marker(
[49.25268885176815, -123.19904144965912],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_2d0361f2d75a4f52937cfab93e0d8aa8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f407bfb35d444471916192f859da8c37.setIcon(beautify_icon_2d0361f2d75a4f52937cfab93e0d8aa8);
marker_f407bfb35d444471916192f859da8c37.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_57b733a642be44aa977824e02cdbe7b3 = L.marker(
[49.25325188785817, -123.19591356867114],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_8400224a93ab4296aca7f20c85220919 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_57b733a642be44aa977824e02cdbe7b3.setIcon(beautify_icon_8400224a93ab4296aca7f20c85220919);
marker_57b733a642be44aa977824e02cdbe7b3.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_4e15633346e34b7fbd3ab03a8f2b0cf6 = L.marker(
[49.25330580996164, -123.19463067191795],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e52134c870d1487caed2ed09b43b6806 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4e15633346e34b7fbd3ab03a8f2b0cf6.setIcon(beautify_icon_e52134c870d1487caed2ed09b43b6806);
marker_4e15633346e34b7fbd3ab03a8f2b0cf6.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_3d77721644cc4fa6bfb2f34c0c499283 = L.marker(
[49.25335553050497, -123.20017713709967],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_cc24b607d83b4cb898ef065735238357 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3d77721644cc4fa6bfb2f34c0c499283.setIcon(beautify_icon_cc24b607d83b4cb898ef065735238357);
marker_3d77721644cc4fa6bfb2f34c0c499283.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_76832d5b67654a249ea9f1698a0dce23 = L.marker(
[49.25351169426171, -123.19909478573177],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_6927dec148414f6b8e07f89119b786de = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_76832d5b67654a249ea9f1698a0dce23.setIcon(beautify_icon_6927dec148414f6b8e07f89119b786de);
marker_76832d5b67654a249ea9f1698a0dce23.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_53212d45dc664b8a8576e2b93278b313 = L.marker(
[49.25380231193569, -123.19621549164158],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a23a53ad608d47719153d6000a4c3a5d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_53212d45dc664b8a8576e2b93278b313.setIcon(beautify_icon_a23a53ad608d47719153d6000a4c3a5d);
marker_53212d45dc664b8a8576e2b93278b313.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_fbb027b17c9e43ce8d9eaeaf7aa91478 = L.marker(
[49.25409012688605, -123.196567880115],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_bea4ec7ba05347469232d72cb0b389e2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_fbb027b17c9e43ce8d9eaeaf7aa91478.setIcon(beautify_icon_bea4ec7ba05347469232d72cb0b389e2);
marker_fbb027b17c9e43ce8d9eaeaf7aa91478.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_aa29cb0361fc4700a5c3e37cd57c9d87 = L.marker(
[49.25413564504425, -123.19790011911398],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_5dcd1366313a42fdb0734a8bba17fc8d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_aa29cb0361fc4700a5c3e37cd57c9d87.setIcon(beautify_icon_5dcd1366313a42fdb0734a8bba17fc8d);
marker_aa29cb0361fc4700a5c3e37cd57c9d87.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_1ed6c33ca17849b19980f98a609371b5 = L.marker(
[49.25434922861495, -123.20065255471519],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_fbe9e3b0b0a94053bc443e57d30c9f55 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1ed6c33ca17849b19980f98a609371b5.setIcon(beautify_icon_fbe9e3b0b0a94053bc443e57d30c9f55);
marker_1ed6c33ca17849b19980f98a609371b5.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_be31a166d80f4106a5dc6c3edac795fa = L.marker(
[49.2543597327169, -123.1993278244398],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_3e23ef2290fa43f18b4017582de458f8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_be31a166d80f4106a5dc6c3edac795fa.setIcon(beautify_icon_3e23ef2290fa43f18b4017582de458f8);
marker_be31a166d80f4106a5dc6c3edac795fa.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_1c11e9d8a0714342824a5fa42fbb8b33 = L.marker(
[49.25437583867633, -123.19693670213738],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_39c24280cc924edaa3fea2dced4c9303 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1c11e9d8a0714342824a5fa42fbb8b33.setIcon(beautify_icon_39c24280cc924edaa3fea2dced4c9303);
marker_1c11e9d8a0714342824a5fa42fbb8b33.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_14669a9ecb7441dd80f899157f6114cd = L.marker(
[49.25440174910239, -123.19976225015763],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_794368544b294d32a1ce55f886ba3513 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_14669a9ecb7441dd80f899157f6114cd.setIcon(beautify_icon_794368544b294d32a1ce55f886ba3513);
marker_14669a9ecb7441dd80f899157f6114cd.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_c4afd5dc73b4474493f5d0b6c9540440 = L.marker(
[49.25443256083923, -123.19702720576947],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_3f329a35fe5e47b98b476764f2492600 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c4afd5dc73b4474493f5d0b6c9540440.setIcon(beautify_icon_3f329a35fe5e47b98b476764f2492600);
marker_c4afd5dc73b4474493f5d0b6c9540440.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_e3f78fcaa7b546a99cfc72547215c9e3 = L.marker(
[49.254461272574474, -123.19731552154306],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_d2f7907a520a4eccb484235daf547a87 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e3f78fcaa7b546a99cfc72547215c9e3.setIcon(beautify_icon_d2f7907a520a4eccb484235daf547a87);
marker_e3f78fcaa7b546a99cfc72547215c9e3.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_3c817d23725f406ea3646a71b8d8528c = L.marker(
[49.25454180346234, -123.19955844549989],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ef565936d64c42c4bbe0cff1591ebb3e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3c817d23725f406ea3646a71b8d8528c.setIcon(beautify_icon_ef565936d64c42c4bbe0cff1591ebb3e);
marker_3c817d23725f406ea3646a71b8d8528c.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_dde4a3f9342845f78b272c3242586370 = L.marker(
[49.254572615646026, -123.1986059266925],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_950b63c281a34b359fc0b275dc99cbd1 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_dde4a3f9342845f78b272c3242586370.setIcon(beautify_icon_950b63c281a34b359fc0b275dc99cbd1);
marker_dde4a3f9342845f78b272c3242586370.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_57cf1f4e6d6b43f483ab990363a91c82 = L.marker(
[49.25474138055923, -123.19762659181015],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_52ebcf5860914cacaf1055526db1a1c6 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_57cf1f4e6d6b43f483ab990363a91c82.setIcon(beautify_icon_52ebcf5860914cacaf1055526db1a1c6);
marker_57cf1f4e6d6b43f483ab990363a91c82.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_1ec9a5de630142f4b4de5292ef4b6f7e = L.marker(
[49.25481070699733, -123.19666120132608],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_b7a80c0e0cc04ea2a8a661b8f5291517 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1ec9a5de630142f4b4de5292ef4b6f7e.setIcon(beautify_icon_b7a80c0e0cc04ea2a8a661b8f5291517);
marker_1ec9a5de630142f4b4de5292ef4b6f7e.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_9de9f4dd597b498c9cdb2129c511f505 = L.marker(
[49.255118123847666, -123.20018701007947],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_79cdab75a30a4a71a5ef15358fe69e01 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9de9f4dd597b498c9cdb2129c511f505.setIcon(beautify_icon_79cdab75a30a4a71a5ef15358fe69e01);
marker_9de9f4dd597b498c9cdb2129c511f505.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_d4d88054e3494e549d2ba9fa9b5d4d0f = L.marker(
[49.25567132785152, -123.20032106743712],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_b1897ccca12440ca881dd0c476e551a4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d4d88054e3494e549d2ba9fa9b5d4d0f.setIcon(beautify_icon_b1897ccca12440ca881dd0c476e551a4);
marker_d4d88054e3494e549d2ba9fa9b5d4d0f.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_1ce56f9401d94afc8a3959aeda1573f5 = L.marker(
[49.255701088670776, -123.20019771198635],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_13fd2d0a255a41f2b70cc1e729d8de68 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1ce56f9401d94afc8a3959aeda1573f5.setIcon(beautify_icon_13fd2d0a255a41f2b70cc1e729d8de68);
marker_1ce56f9401d94afc8a3959aeda1573f5.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_c9d97e4160134ecdbe107244f7d4bf86 = L.marker(
[49.255739602645555, -123.20028352447383],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_0ed65444d3ae4b6a9964c6fd8a9321a3 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c9d97e4160134ecdbe107244f7d4bf86.setIcon(beautify_icon_0ed65444d3ae4b6a9964c6fd8a9321a3);
marker_c9d97e4160134ecdbe107244f7d4bf86.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_7926b37f0b1944098763362d14023a75 = L.marker(
[49.25612159183446, -123.20159361174434],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_9dd77aafce484db3b271d85fbe8b62c7 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_7926b37f0b1944098763362d14023a75.setIcon(beautify_icon_9dd77aafce484db3b271d85fbe8b62c7);
marker_7926b37f0b1944098763362d14023a75.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_d22c156435df40c392a4ff0c7d3c8bc0 = L.marker(
[49.25618321207332, -123.19954985242543],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ee555cd6d5b9476f8c7992628cda5a1c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d22c156435df40c392a4ff0c7d3c8bc0.setIcon(beautify_icon_ee555cd6d5b9476f8c7992628cda5a1c);
marker_d22c156435df40c392a4ff0c7d3c8bc0.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_c5083be230c84512ab9b2c77607ab881 = L.marker(
[49.26902057980597, -123.2236407793207],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_571ccb9736ef483da0d27704906da76d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c5083be230c84512ab9b2c77607ab881.setIcon(beautify_icon_571ccb9736ef483da0d27704906da76d);
marker_c5083be230c84512ab9b2c77607ab881.bindTooltip(
`<div>
Chancellor
</div>`,
{"sticky": true}
);
var marker_f3adca7b3e8e444c904f72ff7ebd8483 = L.marker(
[49.270760211921264, -123.22665678758698],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_143450a0652e490ebaac7096225f4d7f = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f3adca7b3e8e444c904f72ff7ebd8483.setIcon(beautify_icon_143450a0652e490ebaac7096225f4d7f);
marker_f3adca7b3e8e444c904f72ff7ebd8483.bindTooltip(
`<div>
Chancellor
</div>`,
{"sticky": true}
);
var marker_9b46eec154ca41fc944703a361f87ac4 = L.marker(
[49.27099752451536, -123.22886167332753],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_0aaaa0898c7349389e66accf772c8255 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9b46eec154ca41fc944703a361f87ac4.setIcon(beautify_icon_0aaaa0898c7349389e66accf772c8255);
marker_9b46eec154ca41fc944703a361f87ac4.bindTooltip(
`<div>
Chancellor
</div>`,
{"sticky": true}
);
var marker_b4cbcbf6936545fc808d44bc4c53be6d = L.marker(
[49.256059967672115, -123.21889919428973],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_034f56865eee488b9d2331902cc3a851 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b4cbcbf6936545fc808d44bc4c53be6d.setIcon(beautify_icon_034f56865eee488b9d2331902cc3a851);
marker_b4cbcbf6936545fc808d44bc4c53be6d.bindTooltip(
`<div>
Cleveland
</div>`,
{"sticky": true}
);
var marker_5f479b8340854f5abd12cedb3f7d0957 = L.marker(
[49.25756688117963, -123.22096083715711],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_705ffb15f46845d1977710fff94b9c07 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5f479b8340854f5abd12cedb3f7d0957.setIcon(beautify_icon_705ffb15f46845d1977710fff94b9c07);
marker_5f479b8340854f5abd12cedb3f7d0957.bindTooltip(
`<div>
Cleveland
</div>`,
{"sticky": true}
);
var marker_8ba45d0f9f334a409e62f3c22b9ec58e = L.marker(
[49.259608703512654, -123.22335500503388],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_834f2e91bfbd4f54bd40e9df03251538 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_8ba45d0f9f334a409e62f3c22b9ec58e.setIcon(beautify_icon_834f2e91bfbd4f54bd40e9df03251538);
marker_8ba45d0f9f334a409e62f3c22b9ec58e.bindTooltip(
`<div>
Cleveland
</div>`,
{"sticky": true}
);
var marker_f1e8076190cd46348eb93aa2f1f04128 = L.marker(
[49.26060857735795, -123.22510343446619],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_69e3d03f6ba84f9291412cef885d7e19 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f1e8076190cd46348eb93aa2f1f04128.setIcon(beautify_icon_69e3d03f6ba84f9291412cef885d7e19);
marker_f1e8076190cd46348eb93aa2f1f04128.bindTooltip(
`<div>
Cleveland
</div>`,
{"sticky": true}
);
var marker_4bd9249c198d4a2c84ca8beca2e53519 = L.marker(
[49.26224978304391, -123.22780223759005],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_990fefda7ef245709eddbb9bda227182 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4bd9249c198d4a2c84ca8beca2e53519.setIcon(beautify_icon_990fefda7ef245709eddbb9bda227182);
marker_4bd9249c198d4a2c84ca8beca2e53519.bindTooltip(
`<div>
Cleveland
</div>`,
{"sticky": true}
);
var marker_3366056750cc49669933a0d4a47eb016 = L.marker(
[49.23742772011205, -123.20365106889676],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_5e4e809ccf324aa59f38b2fe01cdc66e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3366056750cc49669933a0d4a47eb016.setIcon(beautify_icon_5e4e809ccf324aa59f38b2fe01cdc66e);
marker_3366056750cc49669933a0d4a47eb016.bindTooltip(
`<div>
Clinton
</div>`,
{"sticky": true}
);
var marker_0362828d98bb492abb7aeb2ce98f57e8 = L.marker(
[49.24104853993467, -123.2032413388453],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_d6d87e26b9f042359ef1f223d8807f55 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_0362828d98bb492abb7aeb2ce98f57e8.setIcon(beautify_icon_d6d87e26b9f042359ef1f223d8807f55);
marker_0362828d98bb492abb7aeb2ce98f57e8.bindTooltip(
`<div>
Clinton
</div>`,
{"sticky": true}
);
var marker_90aeeac0c65c43d0a2b9a729c7a698bb = L.marker(
[49.257129936924855, -123.20959368261413],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a9b2932b92d9401ca82b430b4300d7b5 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_90aeeac0c65c43d0a2b9a729c7a698bb.setIcon(beautify_icon_a9b2932b92d9401ca82b430b4300d7b5);
marker_90aeeac0c65c43d0a2b9a729c7a698bb.bindTooltip(
`<div>
ConcreteMystery
</div>`,
{"sticky": true}
);
var marker_dee13ed20f5b46429e027c23a206cb13 = L.marker(
[49.25659145332148, -123.21012321536087],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_d1598ec9b5b140f8a26378263438c502 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_dee13ed20f5b46429e027c23a206cb13.setIcon(beautify_icon_d1598ec9b5b140f8a26378263438c502);
marker_dee13ed20f5b46429e027c23a206cb13.bindTooltip(
`<div>
ConcreteMystery
</div>`,
{"sticky": true}
);
var marker_1bea5b7c8f2f421b87444d7e21752f10 = L.marker(
[49.256258837379846, -123.2096566099602],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_cf79bc8b992244e49396fccd2733faa2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1bea5b7c8f2f421b87444d7e21752f10.setIcon(beautify_icon_cf79bc8b992244e49396fccd2733faa2);
marker_1bea5b7c8f2f421b87444d7e21752f10.bindTooltip(
`<div>
ConcreteMystery
</div>`,
{"sticky": true}
);
var marker_64e14c0991864f7ebfb09c248d761e85 = L.marker(
[49.25094928243402, -123.20959224978441],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a78277341ae046b0b32af69b76880ec0 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_64e14c0991864f7ebfb09c248d761e85.setIcon(beautify_icon_a78277341ae046b0b32af69b76880ec0);
marker_64e14c0991864f7ebfb09c248d761e85.bindTooltip(
`<div>
Council
</div>`,
{"sticky": true}
);
var marker_7d01176aa3574ca2841cc7afd0fe2005 = L.marker(
[49.25155015498478, -123.2159295028355],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_87a9b50d9d5743ce9a39b69433731c81 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_7d01176aa3574ca2841cc7afd0fe2005.setIcon(beautify_icon_87a9b50d9d5743ce9a39b69433731c81);
marker_7d01176aa3574ca2841cc7afd0fe2005.bindTooltip(
`<div>
Council
</div>`,
{"sticky": true}
);
var marker_408edc4602bd4376a6d0df0988b10306 = L.marker(
[49.251701423044786, -123.22921852583814],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_1b7a4842ed71441b9f461e4afef7368e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_408edc4602bd4376a6d0df0988b10306.setIcon(beautify_icon_1b7a4842ed71441b9f461e4afef7368e);
marker_408edc4602bd4376a6d0df0988b10306.bindTooltip(
`<div>
Council
</div>`,
{"sticky": true}
);
var marker_51bf0e783cf04a2bb2d637e67a94a2cf = L.marker(
[49.251724533220234, -123.22838185408527],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a1151cf9c6e34b9c876375963fc99a7f = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_51bf0e783cf04a2bb2d637e67a94a2cf.setIcon(beautify_icon_a1151cf9c6e34b9c876375963fc99a7f);
marker_51bf0e783cf04a2bb2d637e67a94a2cf.bindTooltip(
`<div>
Council
</div>`,
{"sticky": true}
);
var marker_830da42403a847da937c0c3df267b2e6 = L.marker(
[49.251948632158964, -123.22784767148168],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_2ebde24bcc27415c8d3afffd9f628e76 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_830da42403a847da937c0c3df267b2e6.setIcon(beautify_icon_2ebde24bcc27415c8d3afffd9f628e76);
marker_830da42403a847da937c0c3df267b2e6.bindTooltip(
`<div>
Council
</div>`,
{"sticky": true}
);
var marker_4ee8c032ee024e5095b3856bb1861c92 = L.marker(
[49.25202286464399, -123.22546087175357],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_f47965be313c466c98d12d205bbf5276 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4ee8c032ee024e5095b3856bb1861c92.setIcon(beautify_icon_f47965be313c466c98d12d205bbf5276);
marker_4ee8c032ee024e5095b3856bb1861c92.bindTooltip(
`<div>
Council
</div>`,
{"sticky": true}
);
var marker_968bf2e5da634aaa9f399a92a47306b1 = L.marker(
[49.25228127634392, -123.2213657241134],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_8ecc13ef2619488c8902ad070c88177c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_968bf2e5da634aaa9f399a92a47306b1.setIcon(beautify_icon_8ecc13ef2619488c8902ad070c88177c);
marker_968bf2e5da634aaa9f399a92a47306b1.bindTooltip(
`<div>
Council
</div>`,
{"sticky": true}
);
var marker_5f84faced8bd48ecb69b765df761dbd6 = L.marker(
[49.254414353498156, -123.21482410380209],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_bc5c20b6d3f4462883fd3911c8fef597 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5f84faced8bd48ecb69b765df761dbd6.setIcon(beautify_icon_bc5c20b6d3f4462883fd3911c8fef597);
marker_5f84faced8bd48ecb69b765df761dbd6.bindTooltip(
`<div>
DeerFern
</div>`,
{"sticky": true}
);
var marker_82853c2da8174cfb8c3e6a73fdecef93 = L.marker(
[49.25480650834432, -123.22927171538599],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_9a703b52634c4066a237d48a588be2ab = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_82853c2da8174cfb8c3e6a73fdecef93.setIcon(beautify_icon_9a703b52634c4066a237d48a588be2ab);
marker_82853c2da8174cfb8c3e6a73fdecef93.bindTooltip(
`<div>
DouglasFir
</div>`,
{"sticky": true}
);
var marker_d95f76fe4abe4981ae3317ef7ad2e6f3 = L.marker(
[49.270955172164186, -123.2293803226852],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_29c808c714134369a95c5bc0ffa3e26b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d95f76fe4abe4981ae3317ef7ad2e6f3.setIcon(beautify_icon_29c808c714134369a95c5bc0ffa3e26b);
marker_d95f76fe4abe4981ae3317ef7ad2e6f3.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_c65bf5405f834ee89483d0759c95ed04 = L.marker(
[49.271323741033676, -123.2294267721951],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_7b4bfc314601488f8ca404d18e8e85aa = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c65bf5405f834ee89483d0759c95ed04.setIcon(beautify_icon_7b4bfc314601488f8ca404d18e8e85aa);
marker_c65bf5405f834ee89483d0759c95ed04.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_9d60b0f4365f4db4b4dcdeac944e27d8 = L.marker(
[49.27245567977517, -123.22986593146656],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_f9e0cb9d5ebc4aa5a568feeb54b23145 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9d60b0f4365f4db4b4dcdeac944e27d8.setIcon(beautify_icon_f9e0cb9d5ebc4aa5a568feeb54b23145);
marker_9d60b0f4365f4db4b4dcdeac944e27d8.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_fbe990b9941b42a6a4ecab04ca1aa57e = L.marker(
[49.27302164060763, -123.22965976506511],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e7f26cb4f20045e4aea86bac079a6b91 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_fbe990b9941b42a6a4ecab04ca1aa57e.setIcon(beautify_icon_e7f26cb4f20045e4aea86bac079a6b91);
marker_fbe990b9941b42a6a4ecab04ca1aa57e.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_4d5e69cac45e4ef5b57bc2a56133dbac = L.marker(
[49.27425889093808, -123.23057514864767],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_4ed7de855cb04c17bd05f017fc2c2ab3 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4d5e69cac45e4ef5b57bc2a56133dbac.setIcon(beautify_icon_4ed7de855cb04c17bd05f017fc2c2ab3);
marker_4d5e69cac45e4ef5b57bc2a56133dbac.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_be12813ffb0b47c1980b7a84c094725f = L.marker(
[49.27629022342389, -123.23071030370826],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_2a34b2d6215747fcaa1c944ddd9ec202 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_be12813ffb0b47c1980b7a84c094725f.setIcon(beautify_icon_2a34b2d6215747fcaa1c944ddd9ec202);
marker_be12813ffb0b47c1980b7a84c094725f.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_3796f696ba124223970a0bcd7cb83d2d = L.marker(
[49.2772533616488, -123.23020452602734],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_8f932c99e9b84354afd028595549ec13 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3796f696ba124223970a0bcd7cb83d2d.setIcon(beautify_icon_8f932c99e9b84354afd028595549ec13);
marker_3796f696ba124223970a0bcd7cb83d2d.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_0d64e85230074a759a98157a565ded80 = L.marker(
[49.24805827227578, -123.24406965669253],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_1488df0fda4f46fc9c700d22f8545b98 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_0d64e85230074a759a98157a565ded80.setIcon(beautify_icon_1488df0fda4f46fc9c700d22f8545b98);
marker_0d64e85230074a759a98157a565ded80.bindTooltip(
`<div>
Foreshore
</div>`,
{"sticky": true}
);
var marker_84e8aa003376455288b661d09742b895 = L.marker(
[49.255489960771136, -123.25460554754565],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_72dc2111ca0b4fd7ad1388ebeed33d00 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_84e8aa003376455288b661d09742b895.setIcon(beautify_icon_72dc2111ca0b4fd7ad1388ebeed33d00);
marker_84e8aa003376455288b661d09742b895.bindTooltip(
`<div>
Foreshore
</div>`,
{"sticky": true}
);
var marker_e34411d036db46f49f86f9a8721bccef = L.marker(
[49.25761729668581, -123.25633895953075],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_40eecc61e8744ba8b467da401dc5eb39 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e34411d036db46f49f86f9a8721bccef.setIcon(beautify_icon_40eecc61e8744ba8b467da401dc5eb39);
marker_e34411d036db46f49f86f9a8721bccef.bindTooltip(
`<div>
Foreshore
</div>`,
{"sticky": true}
);
var marker_938264b77fec4f8f851de8568fdb4f3d = L.marker(
[49.24690825926302, -123.20649395986956],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_bdd06d00291a4f97b1595030e1dec646 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_938264b77fec4f8f851de8568fdb4f3d.setIcon(beautify_icon_bdd06d00291a4f97b1595030e1dec646);
marker_938264b77fec4f8f851de8568fdb4f3d.bindTooltip(
`<div>
Hemlock
</div>`,
{"sticky": true}
);
var marker_56319f63bfeb42b096a8254a7658a2c1 = L.marker(
[49.250795211724615, -123.21183964193173],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_89237e90b5154a04b34d199351c130fb = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_56319f63bfeb42b096a8254a7658a2c1.setIcon(beautify_icon_89237e90b5154a04b34d199351c130fb);
marker_56319f63bfeb42b096a8254a7658a2c1.bindTooltip(
`<div>
Hemlock
</div>`,
{"sticky": true}
);
var marker_3755babca5f740b5bcb1fe9c60c4a9a7 = L.marker(
[49.25225816728398, -123.21371159239975],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_617c0b7c8a8e45a8978b891dc7aa438b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3755babca5f740b5bcb1fe9c60c4a9a7.setIcon(beautify_icon_617c0b7c8a8e45a8978b891dc7aa438b);
marker_3755babca5f740b5bcb1fe9c60c4a9a7.bindTooltip(
`<div>
Hemlock
</div>`,
{"sticky": true}
);
var marker_e1a45b255558471a815e1101395d9ddd = L.marker(
[49.25310342577818, -123.21682304034601],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_6b5bfc2b5a0f4ddba9d68db96c34446f = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e1a45b255558471a815e1101395d9ddd.setIcon(beautify_icon_6b5bfc2b5a0f4ddba9d68db96c34446f);
marker_e1a45b255558471a815e1101395d9ddd.bindTooltip(
`<div>
Hemlock
</div>`,
{"sticky": true}
);
var marker_4f1f312eb88748008e3c0283fcf45cdf = L.marker(
[49.25364754913639, -123.22066801678287],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_0c70bc0259ab47398f996a97520543ab = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4f1f312eb88748008e3c0283fcf45cdf.setIcon(beautify_icon_0c70bc0259ab47398f996a97520543ab);
marker_4f1f312eb88748008e3c0283fcf45cdf.bindTooltip(
`<div>
Hemlock
</div>`,
{"sticky": true}
);
var marker_9009330a1a684e1e908861f79f24acb4 = L.marker(
[49.25874464956123, -123.21896105165592],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a5bb4099ab8a4fc3b4f4b555b1d2701e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9009330a1a684e1e908861f79f24acb4.setIcon(beautify_icon_a5bb4099ab8a4fc3b4f4b555b1d2701e);
marker_9009330a1a684e1e908861f79f24acb4.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_f6fdaa5e9eaf4ecd9935f0fabb3dbafd = L.marker(
[49.25949527021685, -123.22151906618171],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_7e2b85fe9840419f84c1916f8f7a3adc = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f6fdaa5e9eaf4ecd9935f0fabb3dbafd.setIcon(beautify_icon_7e2b85fe9840419f84c1916f8f7a3adc);
marker_f6fdaa5e9eaf4ecd9935f0fabb3dbafd.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_2e785a65905843cb926228845f6eec73 = L.marker(
[49.25967172094799, -123.23033273075205],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_fdc1d62dec5d4f6f94fa856cb1f8f509 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2e785a65905843cb926228845f6eec73.setIcon(beautify_icon_fdc1d62dec5d4f6f94fa856cb1f8f509);
marker_2e785a65905843cb926228845f6eec73.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_bed45d1031f14d62896bfd0de28900a8 = L.marker(
[49.26018723857225, -123.23321028062318],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_23aecc3908154d56b054b0f5dbfec2b6 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bed45d1031f14d62896bfd0de28900a8.setIcon(beautify_icon_23aecc3908154d56b054b0f5dbfec2b6);
marker_bed45d1031f14d62896bfd0de28900a8.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_41d4487dd87d41b185b2914f40fe2149 = L.marker(
[49.26035143299998, -123.23285362247212],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_4ebdabed2aad4861ae34ba9fde7cf821 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_41d4487dd87d41b185b2914f40fe2149.setIcon(beautify_icon_4ebdabed2aad4861ae34ba9fde7cf821);
marker_41d4487dd87d41b185b2914f40fe2149.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_26aea16153f24e26822cadf7d05a92da = L.marker(
[49.260391518864836, -123.23184201170109],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_dd8d94f47c1e4ec2a3c08e04caaf880b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_26aea16153f24e26822cadf7d05a92da.setIcon(beautify_icon_dd8d94f47c1e4ec2a3c08e04caaf880b);
marker_26aea16153f24e26822cadf7d05a92da.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_cdb82c84d7f04312afe395fc1ad53e72 = L.marker(
[49.2604027218579, -123.23294337190019],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_9ab404e02db84356a480262d36331c2c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_cdb82c84d7f04312afe395fc1ad53e72.setIcon(beautify_icon_9ab404e02db84356a480262d36331c2c);
marker_cdb82c84d7f04312afe395fc1ad53e72.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_1d1d0ace6bae44c184f0caab5d811521 = L.marker(
[49.26041112414111, -123.22677722648264],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a76eced1436a472cb3297adf2b8c45be = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1d1d0ace6bae44c184f0caab5d811521.setIcon(beautify_icon_a76eced1436a472cb3297adf2b8c45be);
marker_1d1d0ace6bae44c184f0caab5d811521.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_9c0abe45e05b413f8e7f7b4ebcbcf4ef = L.marker(
[49.26043563069881, -123.23010579798104],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ad82b75baf214f0eb966b1da8a576ed8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9c0abe45e05b413f8e7f7b4ebcbcf4ef.setIcon(beautify_icon_ad82b75baf214f0eb966b1da8a576ed8);
marker_9c0abe45e05b413f8e7f7b4ebcbcf4ef.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_000b2f6b59d74eb7baa9d156e9ffe78c = L.marker(
[49.26046398823978, -123.23325712380753],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e07156fbcbb14a6897a2eba110bb755d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_000b2f6b59d74eb7baa9d156e9ffe78c.setIcon(beautify_icon_e07156fbcbb14a6897a2eba110bb755d);
marker_000b2f6b59d74eb7baa9d156e9ffe78c.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_ea138170c58a40198dea88a7537fe7fc = L.marker(
[49.25272946911107, -123.21410109952554],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_cc397bbb4b7849ae9d90b6bfca5754cf = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_ea138170c58a40198dea88a7537fe7fc.setIcon(beautify_icon_cc397bbb4b7849ae9d90b6bfca5754cf);
marker_ea138170c58a40198dea88a7537fe7fc.bindTooltip(
`<div>
Huckleberry
</div>`,
{"sticky": true}
);
var marker_1f458f5bd7a34802b12a72542e9ccd1c = L.marker(
[49.253975980905665, -123.21228727214111],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_4cfbe355617a446a9f3aa4e430c98a57 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1f458f5bd7a34802b12a72542e9ccd1c.setIcon(beautify_icon_4cfbe355617a446a9f3aa4e430c98a57);
marker_1f458f5bd7a34802b12a72542e9ccd1c.bindTooltip(
`<div>
Huckleberry
</div>`,
{"sticky": true}
);
var marker_ebd0e281a14c4a99b19f1b0a81ba3f72 = L.marker(
[49.25513562939522, -123.20912126298352],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a2f39e63c8b9485d9ac0f1734a7e6c64 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_ebd0e281a14c4a99b19f1b0a81ba3f72.setIcon(beautify_icon_a2f39e63c8b9485d9ac0f1734a7e6c64);
marker_ebd0e281a14c4a99b19f1b0a81ba3f72.bindTooltip(
`<div>
Huckleberry
</div>`,
{"sticky": true}
);
var marker_dfb94c811d5d4860b7d3f86a37724957 = L.marker(
[49.25698498784965, -123.20568661836877],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_75be621eea0e4fedb0f78c7df6f4a7d2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_dfb94c811d5d4860b7d3f86a37724957.setIcon(beautify_icon_75be621eea0e4fedb0f78c7df6f4a7d2);
marker_dfb94c811d5d4860b7d3f86a37724957.bindTooltip(
`<div>
Huckleberry
</div>`,
{"sticky": true}
);
var marker_9e0b436fbb3a4ec192196822da3804ac = L.marker(
[49.2457666302785, -123.22703894280102],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_540a0e87eef44f0aa9275e672a7073f3 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9e0b436fbb3a4ec192196822da3804ac.setIcon(beautify_icon_540a0e87eef44f0aa9275e672a7073f3);
marker_9e0b436fbb3a4ec192196822da3804ac.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_662b2976195248d38653771f1c60f531 = L.marker(
[49.24649083365288, -123.22431010543744],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_3701ff8a9ba745b191e80da5ac1533b4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_662b2976195248d38653771f1c60f531.setIcon(beautify_icon_3701ff8a9ba745b191e80da5ac1533b4);
marker_662b2976195248d38653771f1c60f531.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_5d7c991ef86a4483a8276e7d92bc3363 = L.marker(
[49.24814091364694, -123.21965002753038],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_2a9bb7502e264f0aaba598e7c491ec48 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5d7c991ef86a4483a8276e7d92bc3363.setIcon(beautify_icon_2a9bb7502e264f0aaba598e7c491ec48);
marker_5d7c991ef86a4483a8276e7d92bc3363.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_fc7466c6e7384581b6bf3d5ff71733d1 = L.marker(
[49.2492369671851, -123.21722878274943],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_d18a9ae85a33419b970e735d5e02b8a4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_fc7466c6e7384581b6bf3d5ff71733d1.setIcon(beautify_icon_d18a9ae85a33419b970e735d5e02b8a4);
marker_fc7466c6e7384581b6bf3d5ff71733d1.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_33b3f10121c64eb285554d5ec9945181 = L.marker(
[49.24919844813672, -123.21555007596322],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_5350d20314b04d1a86fe5b233ae93847 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_33b3f10121c64eb285554d5ec9945181.setIcon(beautify_icon_5350d20314b04d1a86fe5b233ae93847);
marker_33b3f10121c64eb285554d5ec9945181.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_2b5b8c860fbe4e8c9a5c4cd5bcea5b92 = L.marker(
[49.24907308587069, -123.21297248317428],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_5f06801524a948c09f585b2dd05203e2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2b5b8c860fbe4e8c9a5c4cd5bcea5b92.setIcon(beautify_icon_5f06801524a948c09f585b2dd05203e2);
marker_2b5b8c860fbe4e8c9a5c4cd5bcea5b92.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_7f867a3c9a6644259b493a4c2f78405f = L.marker(
[49.248941420177204, -123.21058796880955],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_1fd4535e6fd7406b8c4500b9663c9b8b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_7f867a3c9a6644259b493a4c2f78405f.setIcon(beautify_icon_1fd4535e6fd7406b8c4500b9663c9b8b);
marker_7f867a3c9a6644259b493a4c2f78405f.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_af7b40b691c24b3993d6c34ae8b6f439 = L.marker(
[49.24898694292271, -123.20761242070814],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_64d1417c40db46ccb62547d8bd466191 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_af7b40b691c24b3993d6c34ae8b6f439.setIcon(beautify_icon_64d1417c40db46ccb62547d8bd466191);
marker_af7b40b691c24b3993d6c34ae8b6f439.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_b313d922e6604811850468b93e7d1505 = L.marker(
[49.249312254168984, -123.20513537354506],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_5b0773c526aa447b9e250bf3bdedcf84 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b313d922e6604811850468b93e7d1505.setIcon(beautify_icon_5b0773c526aa447b9e250bf3bdedcf84);
marker_b313d922e6604811850468b93e7d1505.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_0adde78b8a604786b76109b03016eeba = L.marker(
[49.24924046875497, -123.20546523861384],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_16c6d2f074fd4070867039b9d7724436 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_0adde78b8a604786b76109b03016eeba.setIcon(beautify_icon_16c6d2f074fd4070867039b9d7724436);
marker_0adde78b8a604786b76109b03016eeba.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_dcccda01075f4bc9847fb7300c2c3ff2 = L.marker(
[49.24918619190925, -123.20489458560488],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_7e0dafe266b94e0cafeaf65239bb0fe0 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_dcccda01075f4bc9847fb7300c2c3ff2.setIcon(beautify_icon_7e0dafe266b94e0cafeaf65239bb0fe0);
marker_dcccda01075f4bc9847fb7300c2c3ff2.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_62b6f68980e44842a7c88e5f9a891096 = L.marker(
[49.2524157349326, -123.22336033758386],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_87dc295dfd1a47459bdadd774be7dc1a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_62b6f68980e44842a7c88e5f9a891096.setIcon(beautify_icon_87dc295dfd1a47459bdadd774be7dc1a);
marker_62b6f68980e44842a7c88e5f9a891096.bindTooltip(
`<div>
IronKnee
</div>`,
{"sticky": true}
);
var marker_bb12f5634b294d5089e0835768a47fa4 = L.marker(
[49.25073918577631, -123.22405970948772],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e78854f3bf5e4cb8a39371e3dd0b172d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bb12f5634b294d5089e0835768a47fa4.setIcon(beautify_icon_e78854f3bf5e4cb8a39371e3dd0b172d);
marker_bb12f5634b294d5089e0835768a47fa4.bindTooltip(
`<div>
IronKnee
</div>`,
{"sticky": true}
);
var marker_7d6dc1d99dea44dea7abd4003132ee5c = L.marker(
[49.24944987135155, -123.22369719053619],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e0b69d2d8c9a4ce8b8ac7020e47d2099 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_7d6dc1d99dea44dea7abd4003132ee5c.setIcon(beautify_icon_e0b69d2d8c9a4ce8b8ac7020e47d2099);
marker_7d6dc1d99dea44dea7abd4003132ee5c.bindTooltip(
`<div>
IronKnee
</div>`,
{"sticky": true}
);
var marker_e36ff4f4085448c3b828106635affed9 = L.marker(
[49.24812970674851, -123.22318055238928],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_1c0ec20070154da5b7fa06dd77853239 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e36ff4f4085448c3b828106635affed9.setIcon(beautify_icon_1c0ec20070154da5b7fa06dd77853239);
marker_e36ff4f4085448c3b828106635affed9.bindTooltip(
`<div>
IronKnee
</div>`,
{"sticky": true}
);
var marker_e3483acf2b834030a137393c05616cdc = L.marker(
[49.261220534552244, -123.22180519817867],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_5765ec56ef004b98ab18756a63cdc65a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e3483acf2b834030a137393c05616cdc.setIcon(beautify_icon_5765ec56ef004b98ab18756a63cdc65a);
marker_e3483acf2b834030a137393c05616cdc.bindTooltip(
`<div>
LilyOfTheValley
</div>`,
{"sticky": true}
);
var marker_f04749617f9d47fbbe80e614b88c92e7 = L.marker(
[49.261363370217595, -123.22737657484453],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_b44beae300eb44369c93a46505726825 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f04749617f9d47fbbe80e614b88c92e7.setIcon(beautify_icon_b44beae300eb44369c93a46505726825);
marker_f04749617f9d47fbbe80e614b88c92e7.bindTooltip(
`<div>
LilyOfTheValley
</div>`,
{"sticky": true}
);
var marker_66dcf81901864b94b9b4c8a6ca3480f8 = L.marker(
[49.261592326571694, -123.21780764100585],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ac7120220e224256812cc4c350f17881 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_66dcf81901864b94b9b4c8a6ca3480f8.setIcon(beautify_icon_ac7120220e224256812cc4c350f17881);
marker_66dcf81901864b94b9b4c8a6ca3480f8.bindTooltip(
`<div>
LilyOfTheValley
</div>`,
{"sticky": true}
);
var marker_55691309555d4a888d484d3fadbdeda9 = L.marker(
[49.261896899492776, -123.21588849533929],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_aa7c6c3a6a28486b81a8df0fce3164b8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_55691309555d4a888d484d3fadbdeda9.setIcon(beautify_icon_aa7c6c3a6a28486b81a8df0fce3164b8);
marker_55691309555d4a888d484d3fadbdeda9.bindTooltip(
`<div>
LilyOfTheValley
</div>`,
{"sticky": true}
);
var marker_28e6a06c19b24a5683df3c2d0d05e8eb = L.marker(
[49.2486395680387, -123.22681640867367],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_4612996eb3f84cc2a71517bb8352bae8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_28e6a06c19b24a5683df3c2d0d05e8eb.setIcon(beautify_icon_4612996eb3f84cc2a71517bb8352bae8);
marker_28e6a06c19b24a5683df3c2d0d05e8eb.bindTooltip(
`<div>
Long
</div>`,
{"sticky": true}
);
var marker_b948d0ba83df4c158ae052cdda285c37 = L.marker(
[49.24901005415512, -123.22440614997345],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_05bf2732488640c4a26212af101fd5e6 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b948d0ba83df4c158ae052cdda285c37.setIcon(beautify_icon_05bf2732488640c4a26212af101fd5e6);
marker_b948d0ba83df4c158ae052cdda285c37.bindTooltip(
`<div>
Long
</div>`,
{"sticky": true}
);
var marker_5c2b70801bf445dd832e7215c3921dec = L.marker(
[49.24931050303928, -123.2220473789621],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_b903025ffadc401cb5918254950eaf4a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5c2b70801bf445dd832e7215c3921dec.setIcon(beautify_icon_b903025ffadc401cb5918254950eaf4a);
marker_5c2b70801bf445dd832e7215c3921dec.bindTooltip(
`<div>
Long
</div>`,
{"sticky": true}
);
var marker_e81a2c8b2a454b938fddda11f4072a41 = L.marker(
[49.24934622066505, -123.21909757454151],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_941678b0a8264d80805b4a21a27d80fe = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e81a2c8b2a454b938fddda11f4072a41.setIcon(beautify_icon_941678b0a8264d80805b4a21a27d80fe);
marker_e81a2c8b2a454b938fddda11f4072a41.bindTooltip(
`<div>
Long
</div>`,
{"sticky": true}
);
var marker_4fd6deb1f21149af98a79fee6391f28f = L.marker(
[49.25455510856313, -123.21876597583544],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c2c5ffb8a76541ea87bfc83a70478681 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4fd6deb1f21149af98a79fee6391f28f.setIcon(beautify_icon_c2c5ffb8a76541ea87bfc83a70478681);
marker_4fd6deb1f21149af98a79fee6391f28f.bindTooltip(
`<div>
Nature
</div>`,
{"sticky": true}
);
var marker_5fe3f9aada8b4512b4e478b934543de8 = L.marker(
[49.25518534809546, -123.2170722519294],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a4b363401c8644beb4dfca13038abaf2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5fe3f9aada8b4512b4e478b934543de8.setIcon(beautify_icon_a4b363401c8644beb4dfca13038abaf2);
marker_5fe3f9aada8b4512b4e478b934543de8.bindTooltip(
`<div>
Nature
</div>`,
{"sticky": true}
);
var marker_bfcbfe6fb12e4cb885ecf980a38321ef = L.marker(
[49.25692266688955, -123.21489190607875],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_d7104950f8d944a188b6c7b32f6ca0ed = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bfcbfe6fb12e4cb885ecf980a38321ef.setIcon(beautify_icon_d7104950f8d944a188b6c7b32f6ca0ed);
marker_bfcbfe6fb12e4cb885ecf980a38321ef.bindTooltip(
`<div>
Nature
</div>`,
{"sticky": true}
);
var marker_1feca5c72f9440ae92aeaa64d73bc5cb = L.marker(
[49.26074196164327, -123.2161798281786],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_d759d5dabd934792aecd3c5f5567bfff = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1feca5c72f9440ae92aeaa64d73bc5cb.setIcon(beautify_icon_d759d5dabd934792aecd3c5f5567bfff);
marker_1feca5c72f9440ae92aeaa64d73bc5cb.bindTooltip(
`<div>
NewtLoop
</div>`,
{"sticky": true}
);
var marker_939e15f0c09a4f4db0d7a8b64eb82141 = L.marker(
[49.26116767099691, -123.21572341297808],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_795619aa195342e79c95c68376ecd0b7 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_939e15f0c09a4f4db0d7a8b64eb82141.setIcon(beautify_icon_795619aa195342e79c95c68376ecd0b7);
marker_939e15f0c09a4f4db0d7a8b64eb82141.bindTooltip(
`<div>
NewtLoop
</div>`,
{"sticky": true}
);
var marker_3cded3a60e26422e80c8f6b780c8bc96 = L.marker(
[49.26145649318973, -123.2161193466862],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_4df2e90f74104099b1f20eeb50d9e68a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3cded3a60e26422e80c8f6b780c8bc96.setIcon(beautify_icon_4df2e90f74104099b1f20eeb50d9e68a);
marker_3cded3a60e26422e80c8f6b780c8bc96.bindTooltip(
`<div>
NewtLoop
</div>`,
{"sticky": true}
);
var marker_21855d6a58b045eaa1f5dd8822161c34 = L.marker(
[49.26901567872852, -123.22868189178706],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_feec82934c80466dae8fc3bb67ff5e93 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_21855d6a58b045eaa1f5dd8822161c34.setIcon(beautify_icon_feec82934c80466dae8fc3bb67ff5e93);
marker_21855d6a58b045eaa1f5dd8822161c34.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_79748ec6071e4f16995d8f4e0751fab0 = L.marker(
[49.27066990652504, -123.22859816753724],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_72ccc91eba3847d384c7a7ceab69ac4e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_79748ec6071e4f16995d8f4e0751fab0.setIcon(beautify_icon_72ccc91eba3847d384c7a7ceab69ac4e);
marker_79748ec6071e4f16995d8f4e0751fab0.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_001ff18430044a6e828cb25cc22730fc = L.marker(
[49.271967066203835, -123.22860348645277],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_daefcb2cd17b47cb89a407aedd1a395c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_001ff18430044a6e828cb25cc22730fc.setIcon(beautify_icon_daefcb2cd17b47cb89a407aedd1a395c);
marker_001ff18430044a6e828cb25cc22730fc.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_6675c14ddb21484782eeb69f70e204c3 = L.marker(
[49.272849087800644, -123.22902933072545],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_677131d603894a769df29af608020818 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_6675c14ddb21484782eeb69f70e204c3.setIcon(beautify_icon_677131d603894a769df29af608020818);
marker_6675c14ddb21484782eeb69f70e204c3.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_b9c3e88929124d9e87bc8d3455a33263 = L.marker(
[49.27408949187421, -123.22922903300501],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_dad53a46593346bc93d37afd2bc16ceb = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b9c3e88929124d9e87bc8d3455a33263.setIcon(beautify_icon_dad53a46593346bc93d37afd2bc16ceb);
marker_b9c3e88929124d9e87bc8d3455a33263.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_8b061e5b695648d6a855a8d549588c98 = L.marker(
[49.275247967589465, -123.23016049789722],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_3b1a02defe2e4cdb87ff6188dc8dc5f1 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_8b061e5b695648d6a855a8d549588c98.setIcon(beautify_icon_3b1a02defe2e4cdb87ff6188dc8dc5f1);
marker_8b061e5b695648d6a855a8d549588c98.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_39005f57578546ca9a0e19f218c56d38 = L.marker(
[49.27582754500957, -123.22985422935977],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_94bf78158e4c4c388ba8adb708e08827 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_39005f57578546ca9a0e19f218c56d38.setIcon(beautify_icon_94bf78158e4c4c388ba8adb708e08827);
marker_39005f57578546ca9a0e19f218c56d38.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_d69c9ed77c6a48c98d1d74878d46ed80 = L.marker(
[49.27586114373477, -123.22675939096546],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_93890c0e138547d389a7da1266eed841 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d69c9ed77c6a48c98d1d74878d46ed80.setIcon(beautify_icon_93890c0e138547d389a7da1266eed841);
marker_d69c9ed77c6a48c98d1d74878d46ed80.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_c414a4dd8da0463fb9c380a209a7a3d1 = L.marker(
[49.27602213618289, -123.22633569180857],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c7608010cba946288326c5cdcd494938 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c414a4dd8da0463fb9c380a209a7a3d1.setIcon(beautify_icon_c7608010cba946288326c5cdcd494938);
marker_c414a4dd8da0463fb9c380a209a7a3d1.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_2c8bc4c722bb469c9076e71366435de8 = L.marker(
[49.276249624615865, -123.2267218480022],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_5d3653f7b34042e28e28ae00b58c55e8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2c8bc4c722bb469c9076e71366435de8.setIcon(beautify_icon_5d3653f7b34042e28e28ae00b58c55e8);
marker_2c8bc4c722bb469c9076e71366435de8.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_eff7ea5151de459f8b3353821cd10527 = L.marker(
[49.27625067457073, -123.22851208642129],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_47b4becd88f748b3afda16c9324d073c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_eff7ea5151de459f8b3353821cd10527.setIcon(beautify_icon_47b4becd88f748b3afda16c9324d073c);
marker_eff7ea5151de459f8b3353821cd10527.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_a3a471f722074ddfbf8beca3731b1230 = L.marker(
[49.27664860184877, -123.22994378881488],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_8f1d4f67d0694499a8c74fa0f1eb8213 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a3a471f722074ddfbf8beca3731b1230.setIcon(beautify_icon_8f1d4f67d0694499a8c74fa0f1eb8213);
marker_a3a471f722074ddfbf8beca3731b1230.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_b7a31c9c214546f5ad8e6dcc12a93dca = L.marker(
[49.276809416700544, -123.22603622821373],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_225fc9982ab44937b4ce82201b8dcd0d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b7a31c9c214546f5ad8e6dcc12a93dca.setIcon(beautify_icon_225fc9982ab44937b4ce82201b8dcd0d);
marker_b7a31c9c214546f5ad8e6dcc12a93dca.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_b8bfd57932ca40a499d01c6a8490384b = L.marker(
[49.24971460054638, -123.2287023290655],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_8879b4808bf54d0490130677640bd640 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b8bfd57932ca40a499d01c6a8490384b.setIcon(beautify_icon_8879b4808bf54d0490130677640bd640);
marker_b8bfd57932ca40a499d01c6a8490384b.bindTooltip(
`<div>
Powerline
</div>`,
{"sticky": true}
);
var marker_68542178ff094d759d02dee486db7a69 = L.marker(
[49.24973000809374, -123.22688846754605],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_723139f5ec3044aeb7beae44622d379b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_68542178ff094d759d02dee486db7a69.setIcon(beautify_icon_723139f5ec3044aeb7beae44622d379b);
marker_68542178ff094d759d02dee486db7a69.bindTooltip(
`<div>
Powerline
</div>`,
{"sticky": true}
);
var marker_74af9c96844748f4b94578f06b80ed81 = L.marker(
[49.24973701148393, -123.22462838118993],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_f691dcde306b427fba7b3dc59ecb951e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_74af9c96844748f4b94578f06b80ed81.setIcon(beautify_icon_f691dcde306b427fba7b3dc59ecb951e);
marker_74af9c96844748f4b94578f06b80ed81.bindTooltip(
`<div>
Powerline
</div>`,
{"sticky": true}
);
var marker_63d599606b404e5e861ea18ae71737ca = L.marker(
[49.24960674811446, -123.2222374309868],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_f21c9d23166e42ef950375f2da12c42a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_63d599606b404e5e861ea18ae71737ca.setIcon(beautify_icon_f21c9d23166e42ef950375f2da12c42a);
marker_63d599606b404e5e861ea18ae71737ca.bindTooltip(
`<div>
Powerline
</div>`,
{"sticky": true}
);
var marker_0e42f34d45aa4158b26ab10b0607b128 = L.marker(
[49.25766561229445, -123.21883223688657],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ee11864c7b774d8a93d2edd152584ee4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_0e42f34d45aa4158b26ab10b0607b128.setIcon(beautify_icon_ee11864c7b774d8a93d2edd152584ee4);
marker_0e42f34d45aa4158b26ab10b0607b128.bindTooltip(
`<div>
Salal
</div>`,
{"sticky": true}
);
var marker_5815e8c82279490b9f3b585a39b6e094 = L.marker(
[49.25968432410487, -123.21862289669356],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c886e3693b874990be6c529cc7236aed = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5815e8c82279490b9f3b585a39b6e094.setIcon(beautify_icon_c886e3693b874990be6c529cc7236aed);
marker_5815e8c82279490b9f3b585a39b6e094.bindTooltip(
`<div>
Salal
</div>`,
{"sticky": true}
);
var marker_4a3748f209a146cebc055b8fda272624 = L.marker(
[49.23717062906145, -123.2023274682292],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_02cdbec027eb41a2a904c35bdbc20591 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4a3748f209a146cebc055b8fda272624.setIcon(beautify_icon_02cdbec027eb41a2a904c35bdbc20591);
marker_4a3748f209a146cebc055b8fda272624.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_c0e3a8ca79d84695875efeecce704493 = L.marker(
[49.24460676084016, -123.2127021974411],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_9ffb72a55e224b0dba0f7af280a970ea = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c0e3a8ca79d84695875efeecce704493.setIcon(beautify_icon_9ffb72a55e224b0dba0f7af280a970ea);
marker_c0e3a8ca79d84695875efeecce704493.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_16136434485e4afeb651fc93c5266b2c = L.marker(
[49.250994103926, -123.2179313486018],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_cb55fca8bd4a45069bce565125708bbf = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_16136434485e4afeb651fc93c5266b2c.setIcon(beautify_icon_cb55fca8bd4a45069bce565125708bbf);
marker_16136434485e4afeb651fc93c5266b2c.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_de867a73f72c43b3af26664c295cddd8 = L.marker(
[49.25277568806114, -123.22042031733946],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_054ecbd2a4ce412d94debd519447ef17 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_de867a73f72c43b3af26664c295cddd8.setIcon(beautify_icon_054ecbd2a4ce412d94debd519447ef17);
marker_de867a73f72c43b3af26664c295cddd8.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_700a80fcaac84197b773905dd52f0170 = L.marker(
[49.25320531806571, -123.22263174057468],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_7806d3751c9343968c03f5e45f45de12 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_700a80fcaac84197b773905dd52f0170.setIcon(beautify_icon_7806d3751c9343968c03f5e45f45de12);
marker_700a80fcaac84197b773905dd52f0170.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_6cf6615d4e0547c79f0e7851e17347d5 = L.marker(
[49.2550445951482, -123.22485140301244],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_4442ca2ccb05407b81920454cac047ba = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_6cf6615d4e0547c79f0e7851e17347d5.setIcon(beautify_icon_4442ca2ccb05407b81920454cac047ba);
marker_6cf6615d4e0547c79f0e7851e17347d5.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_d98ee256097446b283d2393420ee264c = L.marker(
[49.25831261739348, -123.22858243066761],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a1629c6993dd415ba35983ce9e76fc49 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d98ee256097446b283d2393420ee264c.setIcon(beautify_icon_a1629c6993dd415ba35983ce9e76fc49);
marker_d98ee256097446b283d2393420ee264c.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_55c6cd76f94a44fca4912260304baba2 = L.marker(
[49.25868583182979, -123.22907799758634],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_f490496dfa3b477d9a15f645b689739e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_55c6cd76f94a44fca4912260304baba2.setIcon(beautify_icon_f490496dfa3b477d9a15f645b689739e);
marker_55c6cd76f94a44fca4912260304baba2.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_2e60d170af1f448da127f24f7fa02e48 = L.marker(
[49.25978935367037, -123.229477642343],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e9183223a4a840079c5f6ac85476a471 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2e60d170af1f448da127f24f7fa02e48.setIcon(beautify_icon_e9183223a4a840079c5f6ac85476a471);
marker_2e60d170af1f448da127f24f7fa02e48.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_be4688746f76418fa0975dafc975dc0e = L.marker(
[49.260932060876236, -123.2293391480532],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e569910faf6147e68389d22af0889439 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_be4688746f76418fa0975dafc975dc0e.setIcon(beautify_icon_e569910faf6147e68389d22af0889439);
marker_be4688746f76418fa0975dafc975dc0e.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_2d69b51fa4474ad6ba564fc3fbb7c845 = L.marker(
[49.26253544725521, -123.22915786891156],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_9f60d567d97d4c5b90eea4f1cf708a87 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2d69b51fa4474ad6ba564fc3fbb7c845.setIcon(beautify_icon_9f60d567d97d4c5b90eea4f1cf708a87);
marker_2d69b51fa4474ad6ba564fc3fbb7c845.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_d97dace2127b4d83bc1ffc60ae8339d8 = L.marker(
[49.265369603240536, -123.23298825563292],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_61086752e30f42498221b5ad174506ed = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d97dace2127b4d83bc1ffc60ae8339d8.setIcon(beautify_icon_61086752e30f42498221b5ad174506ed);
marker_d97dace2127b4d83bc1ffc60ae8339d8.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_2e8c47e89aab4f9fb24e6fd8adf06682 = L.marker(
[49.26730608898525, -123.23539445795662],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_2abb0f72c95742058a03eff9bcbbc02c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2e8c47e89aab4f9fb24e6fd8adf06682.setIcon(beautify_icon_2abb0f72c95742058a03eff9bcbbc02c);
marker_2e8c47e89aab4f9fb24e6fd8adf06682.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_174f99c70eca4e9592c944cd83a532d2 = L.marker(
[49.26916969288675, -123.23711985141821],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ec503683ce0049c19095e24b7a623e2a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_174f99c70eca4e9592c944cd83a532d2.setIcon(beautify_icon_ec503683ce0049c19095e24b7a623e2a);
marker_174f99c70eca4e9592c944cd83a532d2.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_d2b8b91d5369423c8396625b7f4674fb = L.marker(
[49.271010824913, -123.23824740495861],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_f0a0692e74e648c38046172a01fb59b3 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d2b8b91d5369423c8396625b7f4674fb.setIcon(beautify_icon_f0a0692e74e648c38046172a01fb59b3);
marker_d2b8b91d5369423c8396625b7f4674fb.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_8ad015139b3649a59bed9c0d64a51b26 = L.marker(
[49.27269788556626, -123.23863230593781],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ccd872b0e083496d8efd948a80b575a9 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_8ad015139b3649a59bed9c0d64a51b26.setIcon(beautify_icon_ccd872b0e083496d8efd948a80b575a9);
marker_8ad015139b3649a59bed9c0d64a51b26.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_f0a6b3635b374b9fad558854ed5f60e5 = L.marker(
[49.275888442768924, -123.24069904963605],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_57344554417d48b8a0c5230d5b7180bf = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f0a6b3635b374b9fad558854ed5f60e5.setIcon(beautify_icon_57344554417d48b8a0c5230d5b7180bf);
marker_f0a6b3635b374b9fad558854ed5f60e5.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_387a750f61e048ff93f568d9a6bc4ad0 = L.marker(
[49.279092091660544, -123.24361397558427],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e2c4e84a49a341b8b9382d59d3a4a1bb = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_387a750f61e048ff93f568d9a6bc4ad0.setIcon(beautify_icon_e2c4e84a49a341b8b9382d59d3a4a1bb);
marker_387a750f61e048ff93f568d9a6bc4ad0.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_e9e7f844c2984203ae7ae2f3f96f6f5b = L.marker(
[49.24258112866778, -123.19765475330254],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_0e7c3c2c9e7b4392b654ffb71c6787b8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e9e7f844c2984203ae7ae2f3f96f6f5b.setIcon(beautify_icon_0e7c3c2c9e7b4392b654ffb71c6787b8);
marker_e9e7f844c2984203ae7ae2f3f96f6f5b.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_21e31dffbfef48c8806c5b847c80fd44 = L.marker(
[49.24259513747525, -123.19895266717558],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_8987d9b091b549cebf68e9ba6b859796 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_21e31dffbfef48c8806c5b847c80fd44.setIcon(beautify_icon_8987d9b091b549cebf68e9ba6b859796);
marker_21e31dffbfef48c8806c5b847c80fd44.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_5cf6ea32e9bb45d588282d7982c4d8c4 = L.marker(
[49.24380548238857, -123.20151080261854],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_194f0a3dead24f77948dd805d934c344 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5cf6ea32e9bb45d588282d7982c4d8c4.setIcon(beautify_icon_194f0a3dead24f77948dd805d934c344);
marker_5cf6ea32e9bb45d588282d7982c4d8c4.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_2d4ccb3e01b244ca8084f2596a6dda0f = L.marker(
[49.246032779557034, -123.20186391132458],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_48a00131d4bd419fb59dc2a495b70863 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2d4ccb3e01b244ca8084f2596a6dda0f.setIcon(beautify_icon_48a00131d4bd419fb59dc2a495b70863);
marker_2d4ccb3e01b244ca8084f2596a6dda0f.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_f7c075f2ff464b55823e906e8db597ed = L.marker(
[49.2481605224002, -123.20376687630021],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_7cabc0d149f242bfa18232d65ad0d3b2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f7c075f2ff464b55823e906e8db597ed.setIcon(beautify_icon_7cabc0d149f242bfa18232d65ad0d3b2);
marker_f7c075f2ff464b55823e906e8db597ed.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_9dec6b1693a548b68ecb2e3c664cb369 = L.marker(
[49.248272580085974, -123.2032627279363],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_8257ccd7d93d46f78510ab6f383e93bb = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9dec6b1693a548b68ecb2e3c664cb369.setIcon(beautify_icon_8257ccd7d93d46f78510ab6f383e93bb);
marker_9dec6b1693a548b68ecb2e3c664cb369.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_54f0576ef3e04758a9dbcb0f6e55dc7c = L.marker(
[49.24854571962957, -123.20408330984777],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_0ac1146c355a469d9b0f15d6a12c248c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_54f0576ef3e04758a9dbcb0f6e55dc7c.setIcon(beautify_icon_0ac1146c355a469d9b0f15d6a12c248c);
marker_54f0576ef3e04758a9dbcb0f6e55dc7c.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_ac4da92e6f3f41c1855edb6dad6f7345 = L.marker(
[49.248697697024824, -123.2052539552183],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c717b577302b4c4dbd44b7024cd5b2eb = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_ac4da92e6f3f41c1855edb6dad6f7345.setIcon(beautify_icon_c717b577302b4c4dbd44b7024cd5b2eb);
marker_ac4da92e6f3f41c1855edb6dad6f7345.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_5e827ef2118d4ebba8214f2dd0614f41 = L.marker(
[49.24934972153255, -123.20598115270622],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_86f428b0dac04b259bcd77b335c5846b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5e827ef2118d4ebba8214f2dd0614f41.setIcon(beautify_icon_86f428b0dac04b259bcd77b335c5846b);
marker_5e827ef2118d4ebba8214f2dd0614f41.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_1202c38d55914c40af541bd7820809f9 = L.marker(
[49.252454950959084, -123.20919683676077],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_93d5d45a94a84292a9d4d8211eb6a30e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1202c38d55914c40af541bd7820809f9.setIcon(beautify_icon_93d5d45a94a84292a9d4d8211eb6a30e);
marker_1202c38d55914c40af541bd7820809f9.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_19fc72d2e1024a5e9a403344cbc9e7db = L.marker(
[49.255899609410235, -123.21139981294691],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_2dd774a2df0d4fc3b97dd4681de4ffe1 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_19fc72d2e1024a5e9a403344cbc9e7db.setIcon(beautify_icon_2dd774a2df0d4fc3b97dd4681de4ffe1);
marker_19fc72d2e1024a5e9a403344cbc9e7db.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_68d0adb52e2b456d9a20f4fd9f24fb99 = L.marker(
[49.25695277655975, -123.21046014225477],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_51d6cf427b3d492aba40e3e816d50e75 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_68d0adb52e2b456d9a20f4fd9f24fb99.setIcon(beautify_icon_51d6cf427b3d492aba40e3e816d50e75);
marker_68d0adb52e2b456d9a20f4fd9f24fb99.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_a5e23093653547788c07cf23fc6f8f7a = L.marker(
[49.25749685727255, -123.2098656119698],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_3cfe87031a9340fbb8bd2d045bf048b3 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a5e23093653547788c07cf23fc6f8f7a.setIcon(beautify_icon_3cfe87031a9340fbb8bd2d045bf048b3);
marker_a5e23093653547788c07cf23fc6f8f7a.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_aa560c441f2a41ef9313dad3148cb761 = L.marker(
[49.25798001283702, -123.20948481905664],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_f9725238a96740efbe1b38d4457e8ec5 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_aa560c441f2a41ef9313dad3148cb761.setIcon(beautify_icon_f9725238a96740efbe1b38d4457e8ec5);
marker_aa560c441f2a41ef9313dad3148cb761.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_52e92902f6dc42a8b8d8fe39721e7200 = L.marker(
[49.257719528935354, -123.22974591719282],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_4a07a20d2703434d9aa582ef67566ac1 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_52e92902f6dc42a8b8d8fe39721e7200.setIcon(beautify_icon_4a07a20d2703434d9aa582ef67566ac1);
marker_52e92902f6dc42a8b8d8fe39721e7200.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_d413948d7cdf4cf785c14347127ea31c = L.marker(
[49.25812425862052, -123.20653955432931],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a4b610213f2c4b918ae7c399fb39f51d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d413948d7cdf4cf785c14347127ea31c.setIcon(beautify_icon_a4b610213f2c4b918ae7c399fb39f51d);
marker_d413948d7cdf4cf785c14347127ea31c.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_e022c3a57e0548fa89049eeee8efd19d = L.marker(
[49.258187278912885, -123.21084067596733],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c8e85d849d37410eb35639ee15e840af = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e022c3a57e0548fa89049eeee8efd19d.setIcon(beautify_icon_c8e85d849d37410eb35639ee15e840af);
marker_e022c3a57e0548fa89049eeee8efd19d.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_e338c3170b60421ca46cae7e531967bf = L.marker(
[49.25822228985484, -123.21319408337084],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_742f16e6bda24b3097cb8ee990e05bf9 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e338c3170b60421ca46cae7e531967bf.setIcon(beautify_icon_742f16e6bda24b3097cb8ee990e05bf9);
marker_e338c3170b60421ca46cae7e531967bf.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_750f2e4be329493d96592f76c8e3caa8 = L.marker(
[49.258239445079134, -123.21475192791627],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_dfe8d3900e9b47eba9722e15d5e86862 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_750f2e4be329493d96592f76c8e3caa8.setIcon(beautify_icon_dfe8d3900e9b47eba9722e15d5e86862);
marker_750f2e4be329493d96592f76c8e3caa8.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_3a505111fff546d9a8b997ebb631a0c0 = L.marker(
[49.25825239873222, -123.21734547615053],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_cafe78098c1c4db291a018d1ceb4766f = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3a505111fff546d9a8b997ebb631a0c0.setIcon(beautify_icon_cafe78098c1c4db291a018d1ceb4766f);
marker_3a505111fff546d9a8b997ebb631a0c0.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_a2f739dded1e49ab9637963636b8288e = L.marker(
[49.258281107711326, -123.22467649031778],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c7c5983860664ff4851a6c61961190cc = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a2f739dded1e49ab9637963636b8288e.setIcon(beautify_icon_c7c5983860664ff4851a6c61961190cc);
marker_a2f739dded1e49ab9637963636b8288e.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_62eed9b7aa2d4db2aa242f161164e1c3 = L.marker(
[49.258281107711326, -123.22028195922982],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_9607dccaa4b24047938b14155b7a5c43 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_62eed9b7aa2d4db2aa242f161164e1c3.setIcon(beautify_icon_9607dccaa4b24047938b14155b7a5c43);
marker_62eed9b7aa2d4db2aa242f161164e1c3.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_0f4616b946e74a80b7d066997f6952a8 = L.marker(
[49.26699174812226, -123.2275451457667],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ff36cc7c6cf249cab75f8c068c7cd95d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_0f4616b946e74a80b7d066997f6952a8.setIcon(beautify_icon_ff36cc7c6cf249cab75f8c068c7cd95d);
marker_0f4616b946e74a80b7d066997f6952a8.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_118bfd04cfa84a2086aecb18efa590e9 = L.marker(
[49.267807351138906, -123.22588786772252],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_45a574d87f4d4928b1f1910123486eb6 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_118bfd04cfa84a2086aecb18efa590e9.setIcon(beautify_icon_45a574d87f4d4928b1f1910123486eb6);
marker_118bfd04cfa84a2086aecb18efa590e9.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_550d29a5d0864530b7200b04f357fdd8 = L.marker(
[49.26836671373096, -123.23667965143653],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_71f5951c29a249b692efaa7c154598be = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_550d29a5d0864530b7200b04f357fdd8.setIcon(beautify_icon_71f5951c29a249b692efaa7c154598be);
marker_550d29a5d0864530b7200b04f357fdd8.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_f6af53a2243b43f1a02246f755ef55f9 = L.marker(
[49.26861243941978, -123.23609851940927],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e21e7996d1d74719a9e4871edc122fde = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f6af53a2243b43f1a02246f755ef55f9.setIcon(beautify_icon_e21e7996d1d74719a9e4871edc122fde);
marker_f6af53a2243b43f1a02246f755ef55f9.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_4965d5286f314d508324a37186d94a17 = L.marker(
[49.26914134034848, -123.23218396320507],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_89f2354e4b3e476e9caaf1c85f1ad54d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4965d5286f314d508324a37186d94a17.setIcon(beautify_icon_89f2354e4b3e476e9caaf1c85f1ad54d);
marker_4965d5286f314d508324a37186d94a17.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_b0fa4eac4d8f4dc8a41ea1773475e6a0 = L.marker(
[49.26925300030199, -123.22508963029917],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_d48162c4156a454ab91cef7e778e28d4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b0fa4eac4d8f4dc8a41ea1773475e6a0.setIcon(beautify_icon_d48162c4156a454ab91cef7e778e28d4);
marker_b0fa4eac4d8f4dc8a41ea1773475e6a0.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_d25232a0f7294925b720df49106d5c34 = L.marker(
[49.269410514232334, -123.236824664439],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_d27a0cb48e1e40068204a79dfe2c7084 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d25232a0f7294925b720df49106d5c34.setIcon(beautify_icon_d27a0cb48e1e40068204a79dfe2c7084);
marker_d25232a0f7294925b720df49106d5c34.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_dfdb94a4802f40de80f6e7354a9a34c5 = L.marker(
[49.269463018586016, -123.23824655926265],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_2ce56259eb4d4ae0a3c6a252c7b4de89 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_dfdb94a4802f40de80f6e7354a9a34c5.setIcon(beautify_icon_2ce56259eb4d4ae0a3c6a252c7b4de89);
marker_dfdb94a4802f40de80f6e7354a9a34c5.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_ed3334362dae40a48acfb69c638ad20f = L.marker(
[49.269517973077306, -123.2396608563873],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_fd3861e205da4ae89b351c5a3a5d65c1 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_ed3334362dae40a48acfb69c638ad20f.setIcon(beautify_icon_fd3861e205da4ae89b351c5a3a5d65c1);
marker_ed3334362dae40a48acfb69c638ad20f.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_f5290eff41da43f7ad6fbfcaa2ec53c4 = L.marker(
[49.269935555468216, -123.22464750117899],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e4b5e0d175f441bfbdfb2ff84ba4e76b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f5290eff41da43f7ad6fbfcaa2ec53c4.setIcon(beautify_icon_e4b5e0d175f441bfbdfb2ff84ba4e76b);
marker_f5290eff41da43f7ad6fbfcaa2ec53c4.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_6bc29758d2a84cbf8039e1bcbd454f98 = L.marker(
[49.273416093707475, -123.22652292641796],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_119f5373305b414492a35270c876c4e3 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_6bc29758d2a84cbf8039e1bcbd454f98.setIcon(beautify_icon_119f5373305b414492a35270c876c4e3);
marker_6bc29758d2a84cbf8039e1bcbd454f98.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_9ae2fc09ef1c4ab085ca97b42b30ac46 = L.marker(
[49.276369318151325, -123.22566353169596],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_008138ec27914761ae9ac427781a1d35 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9ae2fc09ef1c4ab085ca97b42b30ac46.setIcon(beautify_icon_008138ec27914761ae9ac427781a1d35);
marker_9ae2fc09ef1c4ab085ca97b42b30ac46.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_3638618c2efe4b4984a46b46a5552918 = L.marker(
[49.277224663173136, -123.22475370104767],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e709fb70bc6e40f783a0daaa5c33cee2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3638618c2efe4b4984a46b46a5552918.setIcon(beautify_icon_e709fb70bc6e40f783a0daaa5c33cee2);
marker_3638618c2efe4b4984a46b46a5552918.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_c07e02724fab46c0a1e3573b90f650ad = L.marker(
[49.235906879671695, -123.19732040461656],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_6d1e5c2f14424e39813e3cef8e468919 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c07e02724fab46c0a1e3573b90f650ad.setIcon(beautify_icon_6d1e5c2f14424e39813e3cef8e468919);
marker_c07e02724fab46c0a1e3573b90f650ad.bindTooltip(
`<div>
StGeorges
</div>`,
{"sticky": true}
);
var marker_61026c561bfa4c7d9557a99c13f389d2 = L.marker(
[49.24460115666956, -123.19866919610129],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_f41fff1f9b484f64a866c4335d4c26ef = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_61026c561bfa4c7d9557a99c13f389d2.setIcon(beautify_icon_f41fff1f9b484f64a866c4335d4c26ef);
marker_61026c561bfa4c7d9557a99c13f389d2.bindTooltip(
`<div>
StGeorges
</div>`,
{"sticky": true}
);
var marker_5b48ec8aac1d4fb9971e0fc672b386ee = L.marker(
[49.24065628050064, -123.19805555088485],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_19679aa0235f4ad3a33c42f7ae0c7c10 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5b48ec8aac1d4fb9971e0fc672b386ee.setIcon(beautify_icon_19679aa0235f4ad3a33c42f7ae0c7c10);
marker_5b48ec8aac1d4fb9971e0fc672b386ee.bindTooltip(
`<div>
StGeorges
</div>`,
{"sticky": true}
);
var marker_3339d9363f794bcca60f271e8752720f = L.marker(
[49.235261334425765, -123.19719307452199],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ce5a55ded0d645299d2d6e8caab7d150 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3339d9363f794bcca60f271e8752720f.setIcon(beautify_icon_ce5a55ded0d645299d2d6e8caab7d150);
marker_3339d9363f794bcca60f271e8752720f.bindTooltip(
`<div>
SWMarine
</div>`,
{"sticky": true}
);
var marker_579495f3a00043cfb38b1e47145d8f80 = L.marker(
[49.235976935113186, -123.19963935867693],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_8b051a5cea764db7a34bb2d709c92c9d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_579495f3a00043cfb38b1e47145d8f80.setIcon(beautify_icon_8b051a5cea764db7a34bb2d709c92c9d);
marker_579495f3a00043cfb38b1e47145d8f80.bindTooltip(
`<div>
SWMarine
</div>`,
{"sticky": true}
);
var marker_23b3a0d94492456f871d95967e369c65 = L.marker(
[49.236817568930825, -123.20255493499178],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_47446a5278174b40a2dd1de22d1b88c4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_23b3a0d94492456f871d95967e369c65.setIcon(beautify_icon_47446a5278174b40a2dd1de22d1b88c4);
marker_23b3a0d94492456f871d95967e369c65.bindTooltip(
`<div>
SWMarine
</div>`,
{"sticky": true}
);
var marker_fbbcebb0ead7413e91fb2ca6ff578d82 = L.marker(
[49.23913203905868, -123.21319816578028],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c8a27670806a4a9dba53cb68495fba0f = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_fbbcebb0ead7413e91fb2ca6ff578d82.setIcon(beautify_icon_c8a27670806a4a9dba53cb68495fba0f);
marker_fbbcebb0ead7413e91fb2ca6ff578d82.bindTooltip(
`<div>
SWMarine
</div>`,
{"sticky": true}
);
var marker_47de750e5a5b4ac3be34dddf0a7515b2 = L.marker(
[49.24169856669397, -123.22657827077154],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_1fa868b33a764f388465bd645fa1a635 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_47de750e5a5b4ac3be34dddf0a7515b2.setIcon(beautify_icon_1fa868b33a764f388465bd645fa1a635);
marker_47de750e5a5b4ac3be34dddf0a7515b2.bindTooltip(
`<div>
SWMarine
</div>`,
{"sticky": true}
);
var marker_4d1e3d2df68840e5a612ee8fe5f4cc9b = L.marker(
[49.24280877231211, -123.22917528727058],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_6bb3a3e2b27f411e8ec47317ef1e3ffb = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4d1e3d2df68840e5a612ee8fe5f4cc9b.setIcon(beautify_icon_6bb3a3e2b27f411e8ec47317ef1e3ffb);
marker_4d1e3d2df68840e5a612ee8fe5f4cc9b.bindTooltip(
`<div>
SWMarine
</div>`,
{"sticky": true}
);
var marker_a0325fe489184376a1ac8d8ddcb731a7 = L.marker(
[49.244152892993725, -123.22571937721548],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c961cb904bce47c481c6934df7bab165 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a0325fe489184376a1ac8d8ddcb731a7.setIcon(beautify_icon_c961cb904bce47c481c6934df7bab165);
marker_a0325fe489184376a1ac8d8ddcb731a7.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_2f328eeab4fb41bd925170f289f3cc1e = L.marker(
[49.24761844043816, -123.22539114536748],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_2ba26b977a2544f299b972c93b7726ef = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2f328eeab4fb41bd925170f289f3cc1e.setIcon(beautify_icon_2ba26b977a2544f299b972c93b7726ef);
marker_2f328eeab4fb41bd925170f289f3cc1e.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_cf263e72b0c74329a383ba4ffb46adc2 = L.marker(
[49.249332213665966, -123.22563092656476],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_295b3b695ab24daab7592e28e5d87994 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_cf263e72b0c74329a383ba4ffb46adc2.setIcon(beautify_icon_295b3b695ab24daab7592e28e5d87994);
marker_cf263e72b0c74329a383ba4ffb46adc2.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_6b09bc87aa5c4ec18982de8c037a40d6 = L.marker(
[49.25074759018555, -123.22706200443643],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_44b1b63b8f804e5789fb1142aef871f9 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_6b09bc87aa5c4ec18982de8c037a40d6.setIcon(beautify_icon_44b1b63b8f804e5789fb1142aef871f9);
marker_6b09bc87aa5c4ec18982de8c037a40d6.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_5892ced1bf524cf0a00f9df55c948807 = L.marker(
[49.25509501355131, -123.22802586958822],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_8684dfca45354c62984064d312845bd2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5892ced1bf524cf0a00f9df55c948807.setIcon(beautify_icon_8684dfca45354c62984064d312845bd2);
marker_5892ced1bf524cf0a00f9df55c948807.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_4aa75cdbab3e4fe895924d9bed776344 = L.marker(
[49.25745414324946, -123.22724728795409],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a46be45d2c2b433aa475a1267818e961 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4aa75cdbab3e4fe895924d9bed776344.setIcon(beautify_icon_a46be45d2c2b433aa475a1267818e961);
marker_4aa75cdbab3e4fe895924d9bed776344.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_bb5c9fb027f04718a1d5bd261c4996ee = L.marker(
[49.25919138261423, -123.23231456337898],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_bf48d36eb29a4c3fbe03df0db0b2c00b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bb5c9fb027f04718a1d5bd261c4996ee.setIcon(beautify_icon_bf48d36eb29a4c3fbe03df0db0b2c00b);
marker_bb5c9fb027f04718a1d5bd261c4996ee.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_9fe1d5acf9b04b6ca9acfca42b578bee = L.marker(
[49.260384866994656, -123.23315819132735],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_684ad83a7ff0408a805e5e8302388b81 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9fe1d5acf9b04b6ca9acfca42b578bee.setIcon(beautify_icon_684ad83a7ff0408a805e5e8302388b81);
marker_9fe1d5acf9b04b6ca9acfca42b578bee.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_42f5183d3750479da88767eb6752d4c7 = L.marker(
[49.26061400305219, -123.23368234579458],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_519f0d135aef407285a4c59f2c457241 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_42f5183d3750479da88767eb6752d4c7.setIcon(beautify_icon_519f0d135aef407285a4c59f2c457241);
marker_42f5183d3750479da88767eb6752d4c7.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_be3b7f21cc4d41f4b27b9c98f2463456 = L.marker(
[49.26742790482839, -123.23652978623842],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_e2dc1e37d5814bba8bee949d1d16720b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_be3b7f21cc4d41f4b27b9c98f2463456.setIcon(beautify_icon_e2dc1e37d5814bba8bee949d1d16720b);
marker_be3b7f21cc4d41f4b27b9c98f2463456.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_bacc8d3ca2dc41ea99149260e9c4faa5 = L.marker(
[49.26895967378132, -123.23792415270513],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c69979d884f04faaa093581f448c5988 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bacc8d3ca2dc41ea99149260e9c4faa5.setIcon(beautify_icon_c69979d884f04faaa093581f448c5988);
marker_bacc8d3ca2dc41ea99149260e9c4faa5.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_c9a38b55db5e43a49a4bc180e6fdca5d = L.marker(
[49.271038826924624, -123.23952455572746],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c216940401274ab283d8d63c03d37052 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c9a38b55db5e43a49a4bc180e6fdca5d.setIcon(beautify_icon_c216940401274ab283d8d63c03d37052);
marker_c9a38b55db5e43a49a4bc180e6fdca5d.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_e7ad9c41f97146d8bce04da56db8fe31 = L.marker(
[49.27226457601742, -123.23931623186071],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_b904ece74b7346a987b8488a99402fec = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e7ad9c41f97146d8bce04da56db8fe31.setIcon(beautify_icon_b904ece74b7346a987b8488a99402fec);
marker_e7ad9c41f97146d8bce04da56db8fe31.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_0761f66492d342f48aae5bc823bf64a2 = L.marker(
[49.27231707744041, -123.24068386837985],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_ac6381ba89564534ba36c1179ac3def9 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_0761f66492d342f48aae5bc823bf64a2.setIcon(beautify_icon_ac6381ba89564534ba36c1179ac3def9);
marker_0761f66492d342f48aae5bc823bf64a2.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_34974b559dc14e6a966fcf9339c36baf = L.marker(
[49.24961655396423, -123.19659844469622],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_40c705fed57048b1a9a1ecbc64642076 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_34974b559dc14e6a966fcf9339c36baf.setIcon(beautify_icon_40c705fed57048b1a9a1ecbc64642076);
marker_34974b559dc14e6a966fcf9339c36baf.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_69a5efb6f09049488617a65a0711ca67 = L.marker(
[49.24969149001777, -123.20346136911543],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_dd928f4a52ba4dadbc0918454f39ee44 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_69a5efb6f09049488617a65a0711ca67.setIcon(beautify_icon_dd928f4a52ba4dadbc0918454f39ee44);
marker_69a5efb6f09049488617a65a0711ca67.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_1907bb3614a8475d97076ac2dbb4c968 = L.marker(
[49.2499964868117, -123.19769718017821],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_dcf51296fb49478a93cfde059bd69e9e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1907bb3614a8475d97076ac2dbb4c968.setIcon(beautify_icon_dcf51296fb49478a93cfde059bd69e9e);
marker_1907bb3614a8475d97076ac2dbb4c968.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_c74ed8f8d49e49e28b038093c2260880 = L.marker(
[49.250014695194515, -123.2013588349101],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c809f3f7205e42b48097c547f5d76c64 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c74ed8f8d49e49e28b038093c2260880.setIcon(beautify_icon_c809f3f7205e42b48097c547f5d76c64);
marker_c74ed8f8d49e49e28b038093c2260880.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_d66718b52dfa474ba9156f98ae61080e = L.marker(
[49.250025900596434, -123.2017251470642],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_1b7118f1cc3b4ce08a11bcf1ada899b7 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d66718b52dfa474ba9156f98ae61080e.setIcon(beautify_icon_1b7118f1cc3b4ce08a11bcf1ada899b7);
marker_d66718b52dfa474ba9156f98ae61080e.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_60e8b9f9874e4501b8cc72d64333152d = L.marker(
[49.25009628601198, -123.19516363894176],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_05da58786f744deea9a351aa84272b8b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_60e8b9f9874e4501b8cc72d64333152d.setIcon(beautify_icon_05da58786f744deea9a351aa84272b8b);
marker_60e8b9f9874e4501b8cc72d64333152d.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_b4d77f20b1c5478faaadc2cf356e811d = L.marker(
[49.25014968458406, -123.20250884257015],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_62d2de1bc7204033b510d9f719704ebf = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b4d77f20b1c5478faaadc2cf356e811d.setIcon(beautify_icon_62d2de1bc7204033b510d9f719704ebf);
marker_b4d77f20b1c5478faaadc2cf356e811d.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_b8685f6581864863a8fd82daecc8a013 = L.marker(
[49.2501561627531, -123.19898916914221],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_273a85f983674a6787e50a8b901d89d3 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b8685f6581864863a8fd82daecc8a013.setIcon(beautify_icon_273a85f983674a6787e50a8b901d89d3);
marker_b8685f6581864863a8fd82daecc8a013.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_dc301a75cbf1434d8720a71e48dc6bae = L.marker(
[49.25017752316746, -123.20017965282354],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_f105dac7a9dd4a388250f0a4c7479f37 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_dc301a75cbf1434d8720a71e48dc6bae.setIcon(beautify_icon_f105dac7a9dd4a388250f0a4c7479f37);
marker_dc301a75cbf1434d8720a71e48dc6bae.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_b6c12168371949c6901760ed84574ae8 = L.marker(
[49.253707074372755, -123.20591064578846],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a161f72aab394829922538e6b0a27202 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b6c12168371949c6901760ed84574ae8.setIcon(beautify_icon_a161f72aab394829922538e6b0a27202);
marker_b6c12168371949c6901760ed84574ae8.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_d351a5b0f90f463aae43af457d71c300 = L.marker(
[49.2565753478446, -123.20868433795873],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_7985f2448a784b9aa4a2ac07ddb9b939 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d351a5b0f90f463aae43af457d71c300.setIcon(beautify_icon_7985f2448a784b9aa4a2ac07ddb9b939);
marker_d351a5b0f90f463aae43af457d71c300.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_a5c8116d99ad49609aa3980ebe6f10c8 = L.marker(
[49.256987088339024, -123.2099409545067],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a09f8e808f6644d4b3da6aa5da996f35 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a5c8116d99ad49609aa3980ebe6f10c8.setIcon(beautify_icon_a09f8e808f6644d4b3da6aa5da996f35);
marker_a5c8116d99ad49609aa3980ebe6f10c8.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_4d5be1197f1f4b9fb72a8244892adccf = L.marker(
[49.25770622570259, -123.21143460691229],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_d032cb8a15eb4d55b3de0fd49cecfe47 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4d5be1197f1f4b9fb72a8244892adccf.setIcon(beautify_icon_d032cb8a15eb4d55b3de0fd49cecfe47);
marker_4d5be1197f1f4b9fb72a8244892adccf.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_c7691096c2924b0aa74603ed46ae70ee = L.marker(
[49.272353478212686, -123.25557951783816],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_c08c231d0c014ac6bac9f20a67fbc982 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c7691096c2924b0aa74603ed46ae70ee.setIcon(beautify_icon_c08c231d0c014ac6bac9f20a67fbc982);
marker_c7691096c2924b0aa74603ed46ae70ee.bindTooltip(
`<div>
Trail3
</div>`,
{"sticky": true}
);
var marker_5815377ff02341f5935d2e3d17aa58cc = L.marker(
[49.26270768550325, -123.26013187186993],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_b96e04e0a2ff47258f6f2cece13af63a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5815377ff02341f5935d2e3d17aa58cc.setIcon(beautify_icon_b96e04e0a2ff47258f6f2cece13af63a);
marker_5815377ff02341f5935d2e3d17aa58cc.bindTooltip(
`<div>
Trail6
</div>`,
{"sticky": true}
);
var marker_cfcf06eb406849b4baae4ba72986ac01 = L.marker(
[49.251882104228436, -123.25109696206337],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_468db707a79b4b249697f80fd14d3179 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_cfcf06eb406849b4baae4ba72986ac01.setIcon(beautify_icon_468db707a79b4b249697f80fd14d3179);
marker_cfcf06eb406849b4baae4ba72986ac01.bindTooltip(
`<div>
Trail7
</div>`,
{"sticky": true}
);
var marker_34efe070d708477fb29d109954da9277 = L.marker(
[49.259746641524444, -123.21631657719769],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_a2237d7acc20478eba45ca9d419de6d8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_34efe070d708477fb29d109954da9277.setIcon(beautify_icon_a2237d7acc20478eba45ca9d419de6d8);
marker_34efe070d708477fb29d109954da9277.bindTooltip(
`<div>
VineMaple
</div>`,
{"sticky": true}
);
var marker_f159f568d3d747dea7e629cadd94caf5 = L.marker(
[49.26043142953275, -123.21779789941863],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_52d997dd06014b54a3337d08716b980d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f159f568d3d747dea7e629cadd94caf5.setIcon(beautify_icon_52d997dd06014b54a3337d08716b980d);
marker_f159f568d3d747dea7e629cadd94caf5.bindTooltip(
`<div>
VineMaple
</div>`,
{"sticky": true}
);
var marker_d090ed5bc5d943b0a9581afe1e2d21e1 = L.marker(
[49.274789480143426, -123.23226658719038],
{"riseOnHover": true}
).addTo(feature_group_d36b501836134986af718e9dfce71fb0);
var beautify_icon_460dc3aaa30b4587af2a9a3cd9699656 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#cc0000;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d090ed5bc5d943b0a9581afe1e2d21e1.setIcon(beautify_icon_460dc3aaa30b4587af2a9a3cd9699656);
marker_d090ed5bc5d943b0a9581afe1e2d21e1.bindTooltip(
`<div>
WestCanyon
</div>`,
{"sticky": true}
);
var feature_group_fa170148eedb4839b41434d10d4c34af = L.featureGroup(
{}
).addTo(map_5a07e6abfd7149ed9d82ac92cdadc74b);
var marker_1b996456183741a5aff00824db2dcce5 = L.marker(
[49.279367161347785, -123.2415175867091],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_5a6eda3ef18341a79baf33bbdca702f1 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1b996456183741a5aff00824db2dcce5.setIcon(beautify_icon_5a6eda3ef18341a79baf33bbdca702f1);
marker_1b996456183741a5aff00824db2dcce5.bindTooltip(
`<div>
AcadiaBeach
</div>`,
{"sticky": true}
);
var marker_8fd59a76715545c48158fc1d36b15df6 = L.marker(
[49.277086773057036, -123.22542452176616],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_59a4fe200db64549855ba6a96d01538a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_8fd59a76715545c48158fc1d36b15df6.setIcon(beautify_icon_59a4fe200db64549855ba6a96d01538a);
marker_8fd59a76715545c48158fc1d36b15df6.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_842c11bc9ea04e27ac4d0e1461b122a5 = L.marker(
[49.277411549383096, -123.2281130458741],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_0760511d34f04a9d83e5565753ea1f72 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_842c11bc9ea04e27ac4d0e1461b122a5.setIcon(beautify_icon_0760511d34f04a9d83e5565753ea1f72);
marker_842c11bc9ea04e27ac4d0e1461b122a5.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_1bf615e8bbfc47569f895f65aa2ade0a = L.marker(
[49.277415748889865, -123.23157294794753],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_401527a515f74d9b9bbc12357ac9b560 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1bf615e8bbfc47569f895f65aa2ade0a.setIcon(beautify_icon_401527a515f74d9b9bbc12357ac9b560);
marker_1bf615e8bbfc47569f895f65aa2ade0a.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_f96a4fd2f8764d56894ee9fd6f532281 = L.marker(
[49.277465445144415, -123.23061039535486],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_6f6af89ddf64484f98e3401ae4c96b46 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f96a4fd2f8764d56894ee9fd6f532281.setIcon(beautify_icon_6f6af89ddf64484f98e3401ae4c96b46);
marker_f96a4fd2f8764d56894ee9fd6f532281.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_21dc80e156ae4d139b9f0400e6605aed = L.marker(
[49.278299072800586, -123.23659531243227],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_d80c9a46179d4e5c867614eeba1482df = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_21dc80e156ae4d139b9f0400e6605aed.setIcon(beautify_icon_d80c9a46179d4e5c867614eeba1482df);
marker_21dc80e156ae4d139b9f0400e6605aed.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_07ec552625d845d7a9412e032f5ef519 = L.marker(
[49.27887581508334, -123.24255526064007],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_24ec3d3374994a3d893a7e16e8cc8df4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_07ec552625d845d7a9412e032f5ef519.setIcon(beautify_icon_24ec3d3374994a3d893a7e16e8cc8df4);
marker_07ec552625d845d7a9412e032f5ef519.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_2a6fe12b813446d9b194b715e9740549 = L.marker(
[49.27912008855083, -123.24128794767657],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_de046456656640bdb64c93654302bf87 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2a6fe12b813446d9b194b715e9740549.setIcon(beautify_icon_de046456656640bdb64c93654302bf87);
marker_2a6fe12b813446d9b194b715e9740549.bindTooltip(
`<div>
Admiralty
</div>`,
{"sticky": true}
);
var marker_504d773a0743462081a9d9a57ef7b7d8 = L.marker(
[49.25036241002851, -123.1991790738853],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_a5b7c2d3f3194c128f2e484ca0b15477 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_504d773a0743462081a9d9a57ef7b7d8.setIcon(beautify_icon_a5b7c2d3f3194c128f2e484ca0b15477);
marker_504d773a0743462081a9d9a57ef7b7d8.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_41ffa922fbec454fb1844f74f8628239 = L.marker(
[49.25146191592837, -123.19949840154771],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_cbd1de14d66843ee873b2378f3c07e7c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_41ffa922fbec454fb1844f74f8628239.setIcon(beautify_icon_cbd1de14d66843ee873b2378f3c07e7c);
marker_41ffa922fbec454fb1844f74f8628239.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_62195a1587fd4a01a2da686c7fb1471f = L.marker(
[49.25213736475354, -123.19979137418355],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_2bcab0e9097a4e14b14d126c9097003b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_62195a1587fd4a01a2da686c7fb1471f.setIcon(beautify_icon_2bcab0e9097a4e14b14d126c9097003b);
marker_62195a1587fd4a01a2da686c7fb1471f.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_c4a2488dd2fa4e48b76047e8431afe26 = L.marker(
[49.2525852078819, -123.19963866360983],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_fdbf9649de8a413f9897f063422a1362 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c4a2488dd2fa4e48b76047e8431afe26.setIcon(beautify_icon_fdbf9649de8a413f9897f063422a1362);
marker_c4a2488dd2fa4e48b76047e8431afe26.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_da6065f00d994ba1995f1ae7230a2d67 = L.marker(
[49.25351169426171, -123.19909478573177],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_248202eb536d403ea3fcaf9138ff964b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_da6065f00d994ba1995f1ae7230a2d67.setIcon(beautify_icon_248202eb536d403ea3fcaf9138ff964b);
marker_da6065f00d994ba1995f1ae7230a2d67.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_362905985ed948a8873da4c6fdce505c = L.marker(
[49.25413564504425, -123.19790011911398],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_1918a0e29ca549acb4d54ef71e231864 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_362905985ed948a8873da4c6fdce505c.setIcon(beautify_icon_1918a0e29ca549acb4d54ef71e231864);
marker_362905985ed948a8873da4c6fdce505c.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_1f7d8e7da4f04096a254666a52313a45 = L.marker(
[49.2543597327169, -123.1993278244398],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_1f963d8e237a4efe92b97ad706659dca = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1f7d8e7da4f04096a254666a52313a45.setIcon(beautify_icon_1f963d8e237a4efe92b97ad706659dca);
marker_1f7d8e7da4f04096a254666a52313a45.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_70f56f9eea794adf93053a8524255c95 = L.marker(
[49.25437583867633, -123.19693670213738],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_86a6778b5e614be3918bb67d8d27757b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_70f56f9eea794adf93053a8524255c95.setIcon(beautify_icon_86a6778b5e614be3918bb67d8d27757b);
marker_70f56f9eea794adf93053a8524255c95.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_30f961e2499d42bc8756be35f9c72d7d = L.marker(
[49.25440174910239, -123.19976225015763],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_40bc39d69e654804b81fcd61b52978db = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_30f961e2499d42bc8756be35f9c72d7d.setIcon(beautify_icon_40bc39d69e654804b81fcd61b52978db);
marker_30f961e2499d42bc8756be35f9c72d7d.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_9516ceee8db54959bf3336311487c4b0 = L.marker(
[49.25443256083923, -123.19702720576947],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_4d31babf2b23450ab3dbd37d890bca6a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9516ceee8db54959bf3336311487c4b0.setIcon(beautify_icon_4d31babf2b23450ab3dbd37d890bca6a);
marker_9516ceee8db54959bf3336311487c4b0.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_396c9e7cb08a4db3900861afa663f768 = L.marker(
[49.254461272574474, -123.19731552154306],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_4d7acbe9a30d4b009a3d55cd54ec36ec = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_396c9e7cb08a4db3900861afa663f768.setIcon(beautify_icon_4d7acbe9a30d4b009a3d55cd54ec36ec);
marker_396c9e7cb08a4db3900861afa663f768.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_48d54bfeabee4a6eba7623409eeaaef9 = L.marker(
[49.25454180346234, -123.19955844549989],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_98767b1c415f4550b95ef903e482bb6b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_48d54bfeabee4a6eba7623409eeaaef9.setIcon(beautify_icon_98767b1c415f4550b95ef903e482bb6b);
marker_48d54bfeabee4a6eba7623409eeaaef9.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_63e57334e2ad498ebbafd8aa3aa6336d = L.marker(
[49.254572615646026, -123.1986059266925],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_c64583df941c440aa8e4b762cce13745 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_63e57334e2ad498ebbafd8aa3aa6336d.setIcon(beautify_icon_c64583df941c440aa8e4b762cce13745);
marker_63e57334e2ad498ebbafd8aa3aa6336d.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_49743b9d05bb44d7a2d1691a2cc70b26 = L.marker(
[49.25474138055923, -123.19762659181015],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_7925c598e9114377be3e030b1c5d1a09 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_49743b9d05bb44d7a2d1691a2cc70b26.setIcon(beautify_icon_7925c598e9114377be3e030b1c5d1a09);
marker_49743b9d05bb44d7a2d1691a2cc70b26.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_f744754b5559440897559f02bfcf3acd = L.marker(
[49.25481070699733, -123.19666120132608],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_ed0c05d130514919b3b0960a0c6f2e69 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f744754b5559440897559f02bfcf3acd.setIcon(beautify_icon_ed0c05d130514919b3b0960a0c6f2e69);
marker_f744754b5559440897559f02bfcf3acd.bindTooltip(
`<div>
Camosun
</div>`,
{"sticky": true}
);
var marker_40cb4d9fafc94cc3be59a578a5177e7f = L.marker(
[49.26902057980597, -123.2236407793207],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_5e9938d9c88b46f9aa5d4896119dc3cc = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_40cb4d9fafc94cc3be59a578a5177e7f.setIcon(beautify_icon_5e9938d9c88b46f9aa5d4896119dc3cc);
marker_40cb4d9fafc94cc3be59a578a5177e7f.bindTooltip(
`<div>
Chancellor
</div>`,
{"sticky": true}
);
var marker_c961023073cb43738ddfd530cad09ec0 = L.marker(
[49.270760211921264, -123.22665678758698],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_107910b8cf184adfb25bb44f233cf684 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c961023073cb43738ddfd530cad09ec0.setIcon(beautify_icon_107910b8cf184adfb25bb44f233cf684);
marker_c961023073cb43738ddfd530cad09ec0.bindTooltip(
`<div>
Chancellor
</div>`,
{"sticky": true}
);
var marker_58b64e7db6694f10bafc383da7dc5a0c = L.marker(
[49.27099752451536, -123.22886167332753],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_a18b64bc7ab5442da0abcfb72d6b9f97 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_58b64e7db6694f10bafc383da7dc5a0c.setIcon(beautify_icon_a18b64bc7ab5442da0abcfb72d6b9f97);
marker_58b64e7db6694f10bafc383da7dc5a0c.bindTooltip(
`<div>
Chancellor
</div>`,
{"sticky": true}
);
var marker_56670521e67649c38079ac34b42a5403 = L.marker(
[49.256059967672115, -123.21889919428973],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_d3bf1541edfa4c92acf5d5c88c8a5207 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_56670521e67649c38079ac34b42a5403.setIcon(beautify_icon_d3bf1541edfa4c92acf5d5c88c8a5207);
marker_56670521e67649c38079ac34b42a5403.bindTooltip(
`<div>
Cleveland
</div>`,
{"sticky": true}
);
var marker_158b60af6fff4359acac5acf2f9f761a = L.marker(
[49.25756688117963, -123.22096083715711],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_0f17d92896a548dd9822a5279633a77d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_158b60af6fff4359acac5acf2f9f761a.setIcon(beautify_icon_0f17d92896a548dd9822a5279633a77d);
marker_158b60af6fff4359acac5acf2f9f761a.bindTooltip(
`<div>
Cleveland
</div>`,
{"sticky": true}
);
var marker_bf23402c1e0246c2b4cd2ecbc689abe7 = L.marker(
[49.26060857735795, -123.22510343446619],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_53cc40416c284d4e915a65885a827030 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bf23402c1e0246c2b4cd2ecbc689abe7.setIcon(beautify_icon_53cc40416c284d4e915a65885a827030);
marker_bf23402c1e0246c2b4cd2ecbc689abe7.bindTooltip(
`<div>
Cleveland
</div>`,
{"sticky": true}
);
var marker_479e049caa744327bc18c6e20a9899e9 = L.marker(
[49.26224978304391, -123.22780223759005],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_0f3ee29e06c24a298a00126ced8bdfa0 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_479e049caa744327bc18c6e20a9899e9.setIcon(beautify_icon_0f3ee29e06c24a298a00126ced8bdfa0);
marker_479e049caa744327bc18c6e20a9899e9.bindTooltip(
`<div>
Cleveland
</div>`,
{"sticky": true}
);
var marker_7920ee225cab49c8b25a220f947df40a = L.marker(
[49.24104853993467, -123.2032413388453],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_1423d2d0b6644bbfaeb4b4ddc8995c8d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_7920ee225cab49c8b25a220f947df40a.setIcon(beautify_icon_1423d2d0b6644bbfaeb4b4ddc8995c8d);
marker_7920ee225cab49c8b25a220f947df40a.bindTooltip(
`<div>
Clinton
</div>`,
{"sticky": true}
);
var marker_9bfccc0c126f4ede84eb702cef8d8596 = L.marker(
[49.257129936924855, -123.20959368261413],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_87a9313d65d9415e99d702df7295d93b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9bfccc0c126f4ede84eb702cef8d8596.setIcon(beautify_icon_87a9313d65d9415e99d702df7295d93b);
marker_9bfccc0c126f4ede84eb702cef8d8596.bindTooltip(
`<div>
ConcreteMystery
</div>`,
{"sticky": true}
);
var marker_af5e44ee770149a798a9b828d3b02cfb = L.marker(
[49.25659145332148, -123.21012321536087],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_06552bdb5cd74f74ba19befc52231eea = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_af5e44ee770149a798a9b828d3b02cfb.setIcon(beautify_icon_06552bdb5cd74f74ba19befc52231eea);
marker_af5e44ee770149a798a9b828d3b02cfb.bindTooltip(
`<div>
ConcreteMystery
</div>`,
{"sticky": true}
);
var marker_2f9f78fb72d740e18baf2a56326cd613 = L.marker(
[49.256258837379846, -123.2096566099602],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_090f21098c17453b8814cb0fc1a5c838 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2f9f78fb72d740e18baf2a56326cd613.setIcon(beautify_icon_090f21098c17453b8814cb0fc1a5c838);
marker_2f9f78fb72d740e18baf2a56326cd613.bindTooltip(
`<div>
ConcreteMystery
</div>`,
{"sticky": true}
);
var marker_7a42b41c139545e8abe19e45e1cc6a9a = L.marker(
[49.251948632158964, -123.22784767148168],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_aa64eb1d339c43eea0e00a4f72adee37 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_7a42b41c139545e8abe19e45e1cc6a9a.setIcon(beautify_icon_aa64eb1d339c43eea0e00a4f72adee37);
marker_7a42b41c139545e8abe19e45e1cc6a9a.bindTooltip(
`<div>
Council
</div>`,
{"sticky": true}
);
var marker_3cd553c884e74e1294cce3b1315081e1 = L.marker(
[49.270955172164186, -123.2293803226852],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_dab15944fcea40758c70d5dfec3397da = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3cd553c884e74e1294cce3b1315081e1.setIcon(beautify_icon_dab15944fcea40758c70d5dfec3397da);
marker_3cd553c884e74e1294cce3b1315081e1.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_87fa0baf385f4e609a3603885c8dae08 = L.marker(
[49.271323741033676, -123.2294267721951],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_894abb83ea7e4be3aecec4ac5c5e8068 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_87fa0baf385f4e609a3603885c8dae08.setIcon(beautify_icon_894abb83ea7e4be3aecec4ac5c5e8068);
marker_87fa0baf385f4e609a3603885c8dae08.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_b6a54895aa9546a880b5a2f4aa63b2d5 = L.marker(
[49.27245567977517, -123.22986593146656],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_6f4b7981d97a499797a8a1c7f6800d41 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_b6a54895aa9546a880b5a2f4aa63b2d5.setIcon(beautify_icon_6f4b7981d97a499797a8a1c7f6800d41);
marker_b6a54895aa9546a880b5a2f4aa63b2d5.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_e7854bb6f1f44169a170c6bfb5ab1699 = L.marker(
[49.27302164060763, -123.22965976506511],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_0f4328eff6014be0bbbe604f8a274793 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e7854bb6f1f44169a170c6bfb5ab1699.setIcon(beautify_icon_0f4328eff6014be0bbbe604f8a274793);
marker_e7854bb6f1f44169a170c6bfb5ab1699.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_e4c87e03b6a74be4beced1df8272a52f = L.marker(
[49.27425889093808, -123.23057514864767],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_c44b3f83268c4e708cc5f33534b05d83 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e4c87e03b6a74be4beced1df8272a52f.setIcon(beautify_icon_c44b3f83268c4e708cc5f33534b05d83);
marker_e4c87e03b6a74be4beced1df8272a52f.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_c7008b3ba9024ad09c59cc123a8f98ae = L.marker(
[49.27629022342389, -123.23071030370826],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_ac8154b6f5824980815a39df94df8cbc = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c7008b3ba9024ad09c59cc123a8f98ae.setIcon(beautify_icon_ac8154b6f5824980815a39df94df8cbc);
marker_c7008b3ba9024ad09c59cc123a8f98ae.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_8675e1bedd9d43eb975ce15c04d75a37 = L.marker(
[49.2772533616488, -123.23020452602734],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_3026ee4ec1a041d38cab877fc00c54f2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_8675e1bedd9d43eb975ce15c04d75a37.setIcon(beautify_icon_3026ee4ec1a041d38cab877fc00c54f2);
marker_8675e1bedd9d43eb975ce15c04d75a37.bindTooltip(
`<div>
EastCanyon
</div>`,
{"sticky": true}
);
var marker_4bd2b82ea18840e4bb61e7016079eb49 = L.marker(
[49.24690825926302, -123.20649395986956],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_a45690e9488345c3af4cab0bcae17391 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4bd2b82ea18840e4bb61e7016079eb49.setIcon(beautify_icon_a45690e9488345c3af4cab0bcae17391);
marker_4bd2b82ea18840e4bb61e7016079eb49.bindTooltip(
`<div>
Hemlock
</div>`,
{"sticky": true}
);
var marker_36e02a8d3abb4c5a8a470580a47dad4b = L.marker(
[49.250795211724615, -123.21183964193173],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_be51af5ca5a241359fded6eb64bf148b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_36e02a8d3abb4c5a8a470580a47dad4b.setIcon(beautify_icon_be51af5ca5a241359fded6eb64bf148b);
marker_36e02a8d3abb4c5a8a470580a47dad4b.bindTooltip(
`<div>
Hemlock
</div>`,
{"sticky": true}
);
var marker_5d3b84a91e5b4b6da1642abaffc7a28a = L.marker(
[49.25225816728398, -123.21371159239975],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_11b13a06baf84ccb8017b75410bc7047 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5d3b84a91e5b4b6da1642abaffc7a28a.setIcon(beautify_icon_11b13a06baf84ccb8017b75410bc7047);
marker_5d3b84a91e5b4b6da1642abaffc7a28a.bindTooltip(
`<div>
Hemlock
</div>`,
{"sticky": true}
);
var marker_aa9bc38d65c140d885b6e05ec2bec928 = L.marker(
[49.25310342577818, -123.21682304034601],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_5d18d34adc69474c95e194aac3c92b69 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_aa9bc38d65c140d885b6e05ec2bec928.setIcon(beautify_icon_5d18d34adc69474c95e194aac3c92b69);
marker_aa9bc38d65c140d885b6e05ec2bec928.bindTooltip(
`<div>
Hemlock
</div>`,
{"sticky": true}
);
var marker_2306f8ddf85c43688beb4cb1bf414d53 = L.marker(
[49.25874464956123, -123.21896105165592],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_bfa6a1b284154a6ca84ffa676079503a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2306f8ddf85c43688beb4cb1bf414d53.setIcon(beautify_icon_bfa6a1b284154a6ca84ffa676079503a);
marker_2306f8ddf85c43688beb4cb1bf414d53.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_cf0ddce012a24cad97a020c3b235fd3f = L.marker(
[49.25949527021685, -123.22151906618171],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_88a1ae9c2c854c5d95e31da77739b339 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_cf0ddce012a24cad97a020c3b235fd3f.setIcon(beautify_icon_88a1ae9c2c854c5d95e31da77739b339);
marker_cf0ddce012a24cad97a020c3b235fd3f.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_4b2397cc7fd74cfbbeb79a7cfe7af089 = L.marker(
[49.26018723857225, -123.23321028062318],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_6585be66056749e0a111c32255e42041 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_4b2397cc7fd74cfbbeb79a7cfe7af089.setIcon(beautify_icon_6585be66056749e0a111c32255e42041);
marker_4b2397cc7fd74cfbbeb79a7cfe7af089.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_19ebff7ea352415fb313fcc838f28d49 = L.marker(
[49.26035143299998, -123.23285362247212],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_a5e0ce12501e40dfa41975e46279adcf = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_19ebff7ea352415fb313fcc838f28d49.setIcon(beautify_icon_a5e0ce12501e40dfa41975e46279adcf);
marker_19ebff7ea352415fb313fcc838f28d49.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_e1399ee94b8c419386f2d123c9e99f1a = L.marker(
[49.2604027218579, -123.23294337190019],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_580751db5cca4c9c8480fd0baa857081 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e1399ee94b8c419386f2d123c9e99f1a.setIcon(beautify_icon_580751db5cca4c9c8480fd0baa857081);
marker_e1399ee94b8c419386f2d123c9e99f1a.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_40c30440d6d841809cf693d965b372e3 = L.marker(
[49.26046398823978, -123.23325712380753],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_4c908ef6b4734f5482dea04c34596268 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_40c30440d6d841809cf693d965b372e3.setIcon(beautify_icon_4c908ef6b4734f5482dea04c34596268);
marker_40c30440d6d841809cf693d965b372e3.bindTooltip(
`<div>
Heron
</div>`,
{"sticky": true}
);
var marker_e9226f0293ad423a9e3ddc986a215b94 = L.marker(
[49.248941420177204, -123.21058796880955],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_e3a94914976045fc9425a124664ef6f4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e9226f0293ad423a9e3ddc986a215b94.setIcon(beautify_icon_e3a94914976045fc9425a124664ef6f4);
marker_e9226f0293ad423a9e3ddc986a215b94.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_aa60c782f1494578b0429e597b795e9a = L.marker(
[49.249312254168984, -123.20513537354506],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_c06c0f2b2fb447b79fcb411c94669fe9 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_aa60c782f1494578b0429e597b795e9a.setIcon(beautify_icon_c06c0f2b2fb447b79fcb411c94669fe9);
marker_aa60c782f1494578b0429e597b795e9a.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_f45c86951ae74f20a05e3a97c2a56477 = L.marker(
[49.24924046875497, -123.20546523861384],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_a0ab665c569e45a38b5784ff4e526517 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f45c86951ae74f20a05e3a97c2a56477.setIcon(beautify_icon_a0ab665c569e45a38b5784ff4e526517);
marker_f45c86951ae74f20a05e3a97c2a56477.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_f56f78d74dc7444c81045690eeac7984 = L.marker(
[49.24918619190925, -123.20489458560488],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_6ffca4e72b6e4fef83ac2756cadcac3a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f56f78d74dc7444c81045690eeac7984.setIcon(beautify_icon_6ffca4e72b6e4fef83ac2756cadcac3a);
marker_f56f78d74dc7444c81045690eeac7984.bindTooltip(
`<div>
Imperial
</div>`,
{"sticky": true}
);
var marker_de736316b62d44e2a6883f0c2988ad21 = L.marker(
[49.24944987135155, -123.22369719053619],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_307e0b6837c44272acb97ee2f039465a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_de736316b62d44e2a6883f0c2988ad21.setIcon(beautify_icon_307e0b6837c44272acb97ee2f039465a);
marker_de736316b62d44e2a6883f0c2988ad21.bindTooltip(
`<div>
IronKnee
</div>`,
{"sticky": true}
);
var marker_772f3419aa054dc7902e676ed751dd85 = L.marker(
[49.24812970674851, -123.22318055238928],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_da59b93efd414cb6afdd11e923ec3c6e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_772f3419aa054dc7902e676ed751dd85.setIcon(beautify_icon_da59b93efd414cb6afdd11e923ec3c6e);
marker_772f3419aa054dc7902e676ed751dd85.bindTooltip(
`<div>
IronKnee
</div>`,
{"sticky": true}
);
var marker_f5c9fa90f16d4c0a9394753d1284f932 = L.marker(
[49.261363370217595, -123.22737657484453],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_7c14993bbf8d43c8adf77a31bb77f017 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f5c9fa90f16d4c0a9394753d1284f932.setIcon(beautify_icon_7c14993bbf8d43c8adf77a31bb77f017);
marker_f5c9fa90f16d4c0a9394753d1284f932.bindTooltip(
`<div>
LilyOfTheValley
</div>`,
{"sticky": true}
);
var marker_2ee4455b9e084de1a6cd033fa4935229 = L.marker(
[49.26901567872852, -123.22868189178706],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_32beb45886184f47b5a67aabb3d5f1b9 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2ee4455b9e084de1a6cd033fa4935229.setIcon(beautify_icon_32beb45886184f47b5a67aabb3d5f1b9);
marker_2ee4455b9e084de1a6cd033fa4935229.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_d09f2b029a1b467d89f976f9d3f7103d = L.marker(
[49.27066990652504, -123.22859816753724],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_b62a2ee530a642d9be1b6359e7f02c10 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d09f2b029a1b467d89f976f9d3f7103d.setIcon(beautify_icon_b62a2ee530a642d9be1b6359e7f02c10);
marker_d09f2b029a1b467d89f976f9d3f7103d.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_bf70f46aa23844e9a8cedb380f3bb4cb = L.marker(
[49.271967066203835, -123.22860348645277],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_5444f46bda9c4c3a80f65fdda9b1f688 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bf70f46aa23844e9a8cedb380f3bb4cb.setIcon(beautify_icon_5444f46bda9c4c3a80f65fdda9b1f688);
marker_bf70f46aa23844e9a8cedb380f3bb4cb.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_32597fb574cd4ee4ad8b7179d835cda5 = L.marker(
[49.272849087800644, -123.22902933072545],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_4ee07713a7a24cbbaa397cbc3d54060d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_32597fb574cd4ee4ad8b7179d835cda5.setIcon(beautify_icon_4ee07713a7a24cbbaa397cbc3d54060d);
marker_32597fb574cd4ee4ad8b7179d835cda5.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_0d8301d9c1e94ee185828ee1675fdec6 = L.marker(
[49.27408949187421, -123.22922903300501],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_928a5fa566054612bef6c37f23e32ead = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_0d8301d9c1e94ee185828ee1675fdec6.setIcon(beautify_icon_928a5fa566054612bef6c37f23e32ead);
marker_0d8301d9c1e94ee185828ee1675fdec6.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_bfa7142ff3954423a7bbd412afbea923 = L.marker(
[49.27582754500957, -123.22985422935977],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_bab6e86e1aac46e3944286889aa1d952 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bfa7142ff3954423a7bbd412afbea923.setIcon(beautify_icon_bab6e86e1aac46e3944286889aa1d952);
marker_bfa7142ff3954423a7bbd412afbea923.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_16195001ba274290983b6a95900aae33 = L.marker(
[49.27586114373477, -123.22675939096546],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_9825461c03334e6c861c02ff077fe98c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_16195001ba274290983b6a95900aae33.setIcon(beautify_icon_9825461c03334e6c861c02ff077fe98c);
marker_16195001ba274290983b6a95900aae33.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_a1595109767f4f9bad9a699a31105a7f = L.marker(
[49.27602213618289, -123.22633569180857],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_57aea38ecc42400f816c12b14830bbba = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_a1595109767f4f9bad9a699a31105a7f.setIcon(beautify_icon_57aea38ecc42400f816c12b14830bbba);
marker_a1595109767f4f9bad9a699a31105a7f.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_bd66c9c7a1c040e48bc36496de9ac342 = L.marker(
[49.276249624615865, -123.2267218480022],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_36936ed6406d4e339aa73c0ad1f3d814 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_bd66c9c7a1c040e48bc36496de9ac342.setIcon(beautify_icon_36936ed6406d4e339aa73c0ad1f3d814);
marker_bd66c9c7a1c040e48bc36496de9ac342.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_348c89fe1373441aa95cc77d33361c04 = L.marker(
[49.27625067457073, -123.22851208642129],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_22b00a6f12214ec4bb8bc400479d8483 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_348c89fe1373441aa95cc77d33361c04.setIcon(beautify_icon_22b00a6f12214ec4bb8bc400479d8483);
marker_348c89fe1373441aa95cc77d33361c04.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_399c1b91fe894c7d9f730bd4bcf59447 = L.marker(
[49.27664860184877, -123.22994378881488],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_39f57d3a30df44ff9bba17f79a356031 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_399c1b91fe894c7d9f730bd4bcf59447.setIcon(beautify_icon_39f57d3a30df44ff9bba17f79a356031);
marker_399c1b91fe894c7d9f730bd4bcf59447.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_63dfdb7975a449e7ac88455dae7cd28a = L.marker(
[49.276809416700544, -123.22603622821373],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_241438ad59064630937453099c5d5299 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_63dfdb7975a449e7ac88455dae7cd28a.setIcon(beautify_icon_241438ad59064630937453099c5d5299);
marker_63dfdb7975a449e7ac88455dae7cd28a.bindTooltip(
`<div>
Pioneer
</div>`,
{"sticky": true}
);
var marker_e065b8ad6b2c4f469f5061dbb71ee2a9 = L.marker(
[49.24460676084016, -123.2127021974411],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_7c5ec3a52f05472386a689d03d9dc501 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e065b8ad6b2c4f469f5061dbb71ee2a9.setIcon(beautify_icon_7c5ec3a52f05472386a689d03d9dc501);
marker_e065b8ad6b2c4f469f5061dbb71ee2a9.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_5693f9dc0ee24869851240ee5ee919f1 = L.marker(
[49.25831261739348, -123.22858243066761],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_be23f42b768f4bc6bb7806a021650384 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5693f9dc0ee24869851240ee5ee919f1.setIcon(beautify_icon_be23f42b768f4bc6bb7806a021650384);
marker_5693f9dc0ee24869851240ee5ee919f1.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_e2ddf5a606104c7eb01144a93a21a49a = L.marker(
[49.25868583182979, -123.22907799758634],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_fb2d1f2df4fc48cdb03262d3e78a4ba3 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e2ddf5a606104c7eb01144a93a21a49a.setIcon(beautify_icon_fb2d1f2df4fc48cdb03262d3e78a4ba3);
marker_e2ddf5a606104c7eb01144a93a21a49a.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_ec37289c2f5145099a4fc57ba5d2ce19 = L.marker(
[49.25978935367037, -123.229477642343],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_92a85a58940047dea0bcc80fc15b5ca0 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_ec37289c2f5145099a4fc57ba5d2ce19.setIcon(beautify_icon_92a85a58940047dea0bcc80fc15b5ca0);
marker_ec37289c2f5145099a4fc57ba5d2ce19.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_e9fc7d041c2a466481bda9378c0eb112 = L.marker(
[49.260932060876236, -123.2293391480532],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_b63de3f652a04002b3f14d3854e07fe2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e9fc7d041c2a466481bda9378c0eb112.setIcon(beautify_icon_b63de3f652a04002b3f14d3854e07fe2);
marker_e9fc7d041c2a466481bda9378c0eb112.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_170932f47be345fba1590de805bfcaa3 = L.marker(
[49.26253544725521, -123.22915786891156],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_5d3a2229fa2849f29e6791148c2d0413 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_170932f47be345fba1590de805bfcaa3.setIcon(beautify_icon_5d3a2229fa2849f29e6791148c2d0413);
marker_170932f47be345fba1590de805bfcaa3.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_688054b737dd495fb44a55f9c8ce7bb5 = L.marker(
[49.265369603240536, -123.23298825563292],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_092b9508a6f04186a7f40a9f69b898f3 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_688054b737dd495fb44a55f9c8ce7bb5.setIcon(beautify_icon_092b9508a6f04186a7f40a9f69b898f3);
marker_688054b737dd495fb44a55f9c8ce7bb5.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_5d773b1806d24af680e29e5154a605ff = L.marker(
[49.26730608898525, -123.23539445795662],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_bc0ea29f07aa44299c71f9a6f2f173ad = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5d773b1806d24af680e29e5154a605ff.setIcon(beautify_icon_bc0ea29f07aa44299c71f9a6f2f173ad);
marker_5d773b1806d24af680e29e5154a605ff.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_7de957002d8e40b5841a48f3398a1eb2 = L.marker(
[49.26916969288675, -123.23711985141821],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_2764aea5e2fb4903a90dba7c4f7be6b1 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_7de957002d8e40b5841a48f3398a1eb2.setIcon(beautify_icon_2764aea5e2fb4903a90dba7c4f7be6b1);
marker_7de957002d8e40b5841a48f3398a1eb2.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_fcaa3405d8a94160997a0c8525e8298f = L.marker(
[49.271010824913, -123.23824740495861],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_f97c2ef72c584c47bdf22563d42cbf81 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_fcaa3405d8a94160997a0c8525e8298f.setIcon(beautify_icon_f97c2ef72c584c47bdf22563d42cbf81);
marker_fcaa3405d8a94160997a0c8525e8298f.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_8950ec864c8a484caac9ddcc36a557e4 = L.marker(
[49.27269788556626, -123.23863230593781],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_24485333651441d0b28547dec6a40d5e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_8950ec864c8a484caac9ddcc36a557e4.setIcon(beautify_icon_24485333651441d0b28547dec6a40d5e);
marker_8950ec864c8a484caac9ddcc36a557e4.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_1f95a6df298045d0bcb4adf9dcdf98d0 = L.marker(
[49.275888442768924, -123.24069904963605],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_62dc191f7e5447e2a637248ca062ab76 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1f95a6df298045d0bcb4adf9dcdf98d0.setIcon(beautify_icon_62dc191f7e5447e2a637248ca062ab76);
marker_1f95a6df298045d0bcb4adf9dcdf98d0.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_dfc70a0a4445407b99a8a617ec232927 = L.marker(
[49.279092091660544, -123.24361397558427],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_23a97328f0aa40c9a92f154b00ccefc8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_dfc70a0a4445407b99a8a617ec232927.setIcon(beautify_icon_23a97328f0aa40c9a92f154b00ccefc8);
marker_dfc70a0a4445407b99a8a617ec232927.bindTooltip(
`<div>
Salish
</div>`,
{"sticky": true}
);
var marker_0737db47de814bdf9f100da97ca53fec = L.marker(
[49.24380548238857, -123.20151080261854],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_c2dbf3b11a2a4b5da0a68c0c4025c8c4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_0737db47de814bdf9f100da97ca53fec.setIcon(beautify_icon_c2dbf3b11a2a4b5da0a68c0c4025c8c4);
marker_0737db47de814bdf9f100da97ca53fec.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_5b35658240164af4a5ba20987f8702a8 = L.marker(
[49.24934972153255, -123.20598115270622],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_70baa5b8a07e4afb9fd0810d906326e6 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5b35658240164af4a5ba20987f8702a8.setIcon(beautify_icon_70baa5b8a07e4afb9fd0810d906326e6);
marker_5b35658240164af4a5ba20987f8702a8.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_dcf461499d1b470b8e54f6d3be00ca73 = L.marker(
[49.252454950959084, -123.20919683676077],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_27dfbb20c9a24a8b804672659a780637 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_dcf461499d1b470b8e54f6d3be00ca73.setIcon(beautify_icon_27dfbb20c9a24a8b804672659a780637);
marker_dcf461499d1b470b8e54f6d3be00ca73.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_d1b5fd9ee22141f0bab2f31b1aff2281 = L.marker(
[49.255899609410235, -123.21139981294691],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_127b305446334609b8212052aba6183e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d1b5fd9ee22141f0bab2f31b1aff2281.setIcon(beautify_icon_127b305446334609b8212052aba6183e);
marker_d1b5fd9ee22141f0bab2f31b1aff2281.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_317b418483894247851cb9f550161f52 = L.marker(
[49.25798001283702, -123.20948481905664],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_4dd0b5227361486c807a5038789935f4 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_317b418483894247851cb9f550161f52.setIcon(beautify_icon_4dd0b5227361486c807a5038789935f4);
marker_317b418483894247851cb9f550161f52.bindTooltip(
`<div>
Sasamat
</div>`,
{"sticky": true}
);
var marker_5fb86af6f74b4f8fa7ee8a9d78787568 = L.marker(
[49.258187278912885, -123.21084067596733],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_fb24d65182884727b1244c950562482e = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_5fb86af6f74b4f8fa7ee8a9d78787568.setIcon(beautify_icon_fb24d65182884727b1244c950562482e);
marker_5fb86af6f74b4f8fa7ee8a9d78787568.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_453bdc0840364d2a8fe961c33de05c18 = L.marker(
[49.25822228985484, -123.21319408337084],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_941c9e5a40b1449f93c9c2c45f18c746 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_453bdc0840364d2a8fe961c33de05c18.setIcon(beautify_icon_941c9e5a40b1449f93c9c2c45f18c746);
marker_453bdc0840364d2a8fe961c33de05c18.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_f14e63cd9d2b402fa5c359d5919ca160 = L.marker(
[49.258239445079134, -123.21475192791627],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_f5b2d8ca9d514514bf43aef63c3d8bec = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_f14e63cd9d2b402fa5c359d5919ca160.setIcon(beautify_icon_f5b2d8ca9d514514bf43aef63c3d8bec);
marker_f14e63cd9d2b402fa5c359d5919ca160.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_fc20dbddd33140fe991a0ee719986d8e = L.marker(
[49.258281107711326, -123.22467649031778],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_61d0e3ab423f41b8a0e57bd70aac0a16 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_fc20dbddd33140fe991a0ee719986d8e.setIcon(beautify_icon_61d0e3ab423f41b8a0e57bd70aac0a16);
marker_fc20dbddd33140fe991a0ee719986d8e.bindTooltip(
`<div>
SherrySakamoto
</div>`,
{"sticky": true}
);
var marker_fb5a67b8ab424728abdabbffdf01bbcf = L.marker(
[49.267807351138906, -123.22588786772252],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_545be52f2c3d42a5ab6ff63284c8a00a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_fb5a67b8ab424728abdabbffdf01bbcf.setIcon(beautify_icon_545be52f2c3d42a5ab6ff63284c8a00a);
marker_fb5a67b8ab424728abdabbffdf01bbcf.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_60638d1162d94151968b8882f4966e45 = L.marker(
[49.26836671373096, -123.23667965143653],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_1bd8204b08de4c9f9fed6f0c2b74a3f2 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_60638d1162d94151968b8882f4966e45.setIcon(beautify_icon_1bd8204b08de4c9f9fed6f0c2b74a3f2);
marker_60638d1162d94151968b8882f4966e45.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_3f50439feaa94611b24cb6b8a0343602 = L.marker(
[49.26861243941978, -123.23609851940927],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_0bb1c468fd3f4f33b2c181cadea56fb9 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_3f50439feaa94611b24cb6b8a0343602.setIcon(beautify_icon_0bb1c468fd3f4f33b2c181cadea56fb9);
marker_3f50439feaa94611b24cb6b8a0343602.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_be67856f60504d00b996cb134c469e0e = L.marker(
[49.26914134034848, -123.23218396320507],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_02dc05e6bae343b690ac03d5dbaf4cea = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_be67856f60504d00b996cb134c469e0e.setIcon(beautify_icon_02dc05e6bae343b690ac03d5dbaf4cea);
marker_be67856f60504d00b996cb134c469e0e.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_ee539ff3fd324436ad5baad811c6b0d9 = L.marker(
[49.26925300030199, -123.22508963029917],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_2bd7443d784640f4bd0f36796b5d2eda = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_ee539ff3fd324436ad5baad811c6b0d9.setIcon(beautify_icon_2bd7443d784640f4bd0f36796b5d2eda);
marker_ee539ff3fd324436ad5baad811c6b0d9.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_fb9b325a093c41aca3060e9aeab9ba85 = L.marker(
[49.269410514232334, -123.236824664439],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_cc3deb3a930343ae88829150e4a85c04 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_fb9b325a093c41aca3060e9aeab9ba85.setIcon(beautify_icon_cc3deb3a930343ae88829150e4a85c04);
marker_fb9b325a093c41aca3060e9aeab9ba85.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_c4c2d9e2cf3345edb12aac5b62a6b5fb = L.marker(
[49.269463018586016, -123.23824655926265],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_df44cb1018124125bccc6f09ce2622aa = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c4c2d9e2cf3345edb12aac5b62a6b5fb.setIcon(beautify_icon_df44cb1018124125bccc6f09ce2622aa);
marker_c4c2d9e2cf3345edb12aac5b62a6b5fb.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_c2ad6e0b9408407ba3ef1e9bde101429 = L.marker(
[49.269517973077306, -123.2396608563873],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_8ba33dc676074fe79b2347cbc9145e4a = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_c2ad6e0b9408407ba3ef1e9bde101429.setIcon(beautify_icon_8ba33dc676074fe79b2347cbc9145e4a);
marker_c2ad6e0b9408407ba3ef1e9bde101429.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_61741da30de24dbdade46501e06d5b30 = L.marker(
[49.269935555468216, -123.22464750117899],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_876a636e1d6a4dc78d6c22cdd6d3614b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_61741da30de24dbdade46501e06d5b30.setIcon(beautify_icon_876a636e1d6a4dc78d6c22cdd6d3614b);
marker_61741da30de24dbdade46501e06d5b30.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_59e1d67c982647bb86a74f42ec3ef154 = L.marker(
[49.273416093707475, -123.22652292641796],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_fa94da3927b44e8db88a1eb66e0a25ef = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_59e1d67c982647bb86a74f42ec3ef154.setIcon(beautify_icon_fa94da3927b44e8db88a1eb66e0a25ef);
marker_59e1d67c982647bb86a74f42ec3ef154.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_8ed748572f3541c080e64892b9848d4d = L.marker(
[49.276369318151325, -123.22566353169596],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_6762ea087ff64d1cab2ba2419d06e157 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_8ed748572f3541c080e64892b9848d4d.setIcon(beautify_icon_6762ea087ff64d1cab2ba2419d06e157);
marker_8ed748572f3541c080e64892b9848d4d.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_2748755025c54f74b52ef64c0524c8d8 = L.marker(
[49.277224663173136, -123.22475370104767],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_a44af28c16224b56930a82341e319491 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2748755025c54f74b52ef64c0524c8d8.setIcon(beautify_icon_a44af28c16224b56930a82341e319491);
marker_2748755025c54f74b52ef64c0524c8d8.bindTooltip(
`<div>
Spanish
</div>`,
{"sticky": true}
);
var marker_9addffae98c140c0b2d4a80fdf46f25c = L.marker(
[49.25074759018555, -123.22706200443643],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_c0c2193406654a229e9a8ff1f5d366d5 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_9addffae98c140c0b2d4a80fdf46f25c.setIcon(beautify_icon_c0c2193406654a229e9a8ff1f5d366d5);
marker_9addffae98c140c0b2d4a80fdf46f25c.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_2ad7da0093474782be4f784c9292fcef = L.marker(
[49.25509501355131, -123.22802586958822],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_b5e94d2b04b2482799aa310ca5669c2c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_2ad7da0093474782be4f784c9292fcef.setIcon(beautify_icon_b5e94d2b04b2482799aa310ca5669c2c);
marker_2ad7da0093474782be4f784c9292fcef.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_1007864d5c924e5eb7a56e3a78beddb9 = L.marker(
[49.25745414324946, -123.22724728795409],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_e8193ce295d448ffacc1a62b5dda7d5f = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_1007864d5c924e5eb7a56e3a78beddb9.setIcon(beautify_icon_e8193ce295d448ffacc1a62b5dda7d5f);
marker_1007864d5c924e5eb7a56e3a78beddb9.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_8204074164c74479868b4181c89b013c = L.marker(
[49.25919138261423, -123.23231456337898],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_f7b58ba67a8c46b58a4abe95e44e3160 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_8204074164c74479868b4181c89b013c.setIcon(beautify_icon_f7b58ba67a8c46b58a4abe95e44e3160);
marker_8204074164c74479868b4181c89b013c.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_d6a3c857ba4b4b0aa45c528874ae518a = L.marker(
[49.260384866994656, -123.23315819132735],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_888a0ca4af174b3abc180f347354c9ff = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_d6a3c857ba4b4b0aa45c528874ae518a.setIcon(beautify_icon_888a0ca4af174b3abc180f347354c9ff);
marker_d6a3c857ba4b4b0aa45c528874ae518a.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_20dcf63a5b9c432facc4b93addd33cae = L.marker(
[49.26061400305219, -123.23368234579458],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_51ba6ecb91944e6ab46c13a0f74f2b0c = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_20dcf63a5b9c432facc4b93addd33cae.setIcon(beautify_icon_51ba6ecb91944e6ab46c13a0f74f2b0c);
marker_20dcf63a5b9c432facc4b93addd33cae.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_38d0980e370847f598e56381cb889895 = L.marker(
[49.26895967378132, -123.23792415270513],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_b0d84a259c5741349cf9c5fc9e80745b = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_38d0980e370847f598e56381cb889895.setIcon(beautify_icon_b0d84a259c5741349cf9c5fc9e80745b);
marker_38d0980e370847f598e56381cb889895.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_33df300288f740caaea243479f63a603 = L.marker(
[49.271038826924624, -123.23952455572746],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_dbd5870a414047fba4bd70047f5999bc = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_33df300288f740caaea243479f63a603.setIcon(beautify_icon_dbd5870a414047fba4bd70047f5999bc);
marker_33df300288f740caaea243479f63a603.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_78bb1cb6d17e49cca35671e7b72fc0be = L.marker(
[49.27226457601742, -123.23931623186071],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_b6e66ae3bfd7484182b763f6f3bbce9d = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_78bb1cb6d17e49cca35671e7b72fc0be.setIcon(beautify_icon_b6e66ae3bfd7484182b763f6f3bbce9d);
marker_78bb1cb6d17e49cca35671e7b72fc0be.bindTooltip(
`<div>
SwordFern
</div>`,
{"sticky": true}
);
var marker_e2b57e4e59454e209712e7baa91a659c = L.marker(
[49.24969149001777, -123.20346136911543],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_6c007bf425414ad4afcb1f32c56b98a8 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_e2b57e4e59454e209712e7baa91a659c.setIcon(beautify_icon_6c007bf425414ad4afcb1f32c56b98a8);
marker_e2b57e4e59454e209712e7baa91a659c.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_13f2bfcfc95540168b276f9db58057f0 = L.marker(
[49.250014695194515, -123.2013588349101],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_37cbceca2d544a9a94d2cc38bddeb4cb = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_13f2bfcfc95540168b276f9db58057f0.setIcon(beautify_icon_37cbceca2d544a9a94d2cc38bddeb4cb);
marker_13f2bfcfc95540168b276f9db58057f0.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_588fcbd0bb1f4448b636a045238df5e9 = L.marker(
[49.250025900596434, -123.2017251470642],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_3ad6170cb5c94b00a0e5aa125f16d652 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_588fcbd0bb1f4448b636a045238df5e9.setIcon(beautify_icon_3ad6170cb5c94b00a0e5aa125f16d652);
marker_588fcbd0bb1f4448b636a045238df5e9.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_db78fb68b6a040de8356e64f59d4e41b = L.marker(
[49.25017752316746, -123.20017965282354],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_6e2c5bf6c69d4b4394ddfd4ea91e4961 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_db78fb68b6a040de8356e64f59d4e41b.setIcon(beautify_icon_6e2c5bf6c69d4b4394ddfd4ea91e4961);
marker_db78fb68b6a040de8356e64f59d4e41b.bindTooltip(
`<div>
Top
</div>`,
{"sticky": true}
);
var marker_cd3fd4c47523491dab7de42bd423caff = L.marker(
[49.274789480143426, -123.23226658719038],
{"riseOnHover": true}
).addTo(feature_group_fa170148eedb4839b41434d10d4c34af);
var beautify_icon_43ff4819fa08490b89cf177d90330bf6 = new L.BeautifyIcon.icon(
{"backgroundColor": "transparent", "borderColor": "transparent", "borderWidth": 3, "icon": "star", "innerIconStyle": "color:#dfb10d;font-size:15px;", "isAlphaNumericIcon": false, "spin": false, "textColor": "#000"}
)
marker_cd3fd4c47523491dab7de42bd423caff.setIcon(beautify_icon_43ff4819fa08490b89cf177d90330bf6);
marker_cd3fd4c47523491dab7de42bd423caff.bindTooltip(
`<div>
WestCanyon
</div>`,
{"sticky": true}
);
var lat_lng_popup_6f14c7315c09429dbbdf757355f7fb48 = L.popup();
function latLngPop(e) {
lat_lng_popup_6f14c7315c09429dbbdf757355f7fb48
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_29f3580048b549afa3d692dc060e2176 = L.popup();
function latLngPop(e) {
lat_lng_popup_29f3580048b549afa3d692dc060e2176
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_ced8a5464dfd4cc79a173a79e174ef0c = L.popup();
function latLngPop(e) {
lat_lng_popup_ced8a5464dfd4cc79a173a79e174ef0c
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_e0587d88681148d78296bbbea2046f1d = L.popup();
function latLngPop(e) {
lat_lng_popup_e0587d88681148d78296bbbea2046f1d
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_1d1670980bdf421c9c28384cb6cf5062 = L.popup();
function latLngPop(e) {
lat_lng_popup_1d1670980bdf421c9c28384cb6cf5062
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_04ac2142c8da4f208de3d31b134b237a = L.popup();
function latLngPop(e) {
lat_lng_popup_04ac2142c8da4f208de3d31b134b237a
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_d429efeae4dc4ddea9ca6ef121cdf083 = L.popup();
function latLngPop(e) {
lat_lng_popup_d429efeae4dc4ddea9ca6ef121cdf083
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_474d6271a48f4b36a9c8853c71525f03 = L.popup();
function latLngPop(e) {
lat_lng_popup_474d6271a48f4b36a9c8853c71525f03
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_41a54b4de1b4463abb75b1cf4d4066cd = L.popup();
function latLngPop(e) {
lat_lng_popup_41a54b4de1b4463abb75b1cf4d4066cd
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_3d372cb794724ddfa99db95afc93bc42 = L.popup();
function latLngPop(e) {
lat_lng_popup_3d372cb794724ddfa99db95afc93bc42
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_bfdfac7f36624ac6a4e0e4cbd21451a0 = L.popup();
function latLngPop(e) {
lat_lng_popup_bfdfac7f36624ac6a4e0e4cbd21451a0
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_e201fad9719149b8b651a84221ff2cdf = L.popup();
function latLngPop(e) {
lat_lng_popup_e201fad9719149b8b651a84221ff2cdf
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_38266967c6e646538ff39773f0b52172 = L.popup();
function latLngPop(e) {
lat_lng_popup_38266967c6e646538ff39773f0b52172
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_6055a7a4876141dfb35e0367d2a7f9a4 = L.popup();
function latLngPop(e) {
lat_lng_popup_6055a7a4876141dfb35e0367d2a7f9a4
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_706393b839294be78d5f4a1fc5b68e08 = L.popup();
function latLngPop(e) {
lat_lng_popup_706393b839294be78d5f4a1fc5b68e08
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_370276ea1de9401f933d88023a5aad8e = L.popup();
function latLngPop(e) {
lat_lng_popup_370276ea1de9401f933d88023a5aad8e
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_9e569747411a485bbf41db06d8d0705e = L.popup();
function latLngPop(e) {
lat_lng_popup_9e569747411a485bbf41db06d8d0705e
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_0e5deb7e523445b9964159f4f18dde07 = L.popup();
function latLngPop(e) {
lat_lng_popup_0e5deb7e523445b9964159f4f18dde07
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_45f4948b02f34420996e14738abc07b3 = L.popup();
function latLngPop(e) {
lat_lng_popup_45f4948b02f34420996e14738abc07b3
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_74cc8c0b02e14ed39047b05ec8d53b83 = L.popup();
function latLngPop(e) {
lat_lng_popup_74cc8c0b02e14ed39047b05ec8d53b83
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_fe5b992111814774976f6ccae69b1de4 = L.popup();
function latLngPop(e) {
lat_lng_popup_fe5b992111814774976f6ccae69b1de4
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_0f9898cf795347c99ce2c1be843f954a = L.popup();
function latLngPop(e) {
lat_lng_popup_0f9898cf795347c99ce2c1be843f954a
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_a366d7f3d3f7403fa86345aecfb43eaf = L.popup();
function latLngPop(e) {
lat_lng_popup_a366d7f3d3f7403fa86345aecfb43eaf
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_7f59fae2d178402ebf19e12b94bf9f7a = L.popup();
function latLngPop(e) {
lat_lng_popup_7f59fae2d178402ebf19e12b94bf9f7a
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_87358525ea534a7a95e809d54bf140bc = L.popup();
function latLngPop(e) {
lat_lng_popup_87358525ea534a7a95e809d54bf140bc
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_0509671bf36244c1840789385fb3367b = L.popup();
function latLngPop(e) {
lat_lng_popup_0509671bf36244c1840789385fb3367b
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_43413be25aa64efb8ca7a36e51cd89fb = L.popup();
function latLngPop(e) {
lat_lng_popup_43413be25aa64efb8ca7a36e51cd89fb
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_50c6b7ad51de4caf84af6c0daac72fae = L.popup();
function latLngPop(e) {
lat_lng_popup_50c6b7ad51de4caf84af6c0daac72fae
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_0527e3fb0c4b4e9ba189f157b1c894fb = L.popup();
function latLngPop(e) {
lat_lng_popup_0527e3fb0c4b4e9ba189f157b1c894fb
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_566bd90361314eb0b04e7aacbfafd4b4 = L.popup();
function latLngPop(e) {
lat_lng_popup_566bd90361314eb0b04e7aacbfafd4b4
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_9f0a47eef3b94bab8e49a5d825006bee = L.popup();
function latLngPop(e) {
lat_lng_popup_9f0a47eef3b94bab8e49a5d825006bee
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_61243152862142d7a15c35c063f821bb = L.popup();
function latLngPop(e) {
lat_lng_popup_61243152862142d7a15c35c063f821bb
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_8f7ee3e43966469d8855f628d6296d59 = L.popup();
function latLngPop(e) {
lat_lng_popup_8f7ee3e43966469d8855f628d6296d59
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_76ebe18b1a8f4b95b216dddb84e7eacb = L.popup();
function latLngPop(e) {
lat_lng_popup_76ebe18b1a8f4b95b216dddb84e7eacb
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_5e63d71e258a420ca6d087afe6571871 = L.popup();
function latLngPop(e) {
lat_lng_popup_5e63d71e258a420ca6d087afe6571871
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_9c11b7ae58ff474a852332333ebd75e6 = L.popup();
function latLngPop(e) {
lat_lng_popup_9c11b7ae58ff474a852332333ebd75e6
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_d9b1ded34d39489b9c12b6f6f02bf1c5 = L.popup();
function latLngPop(e) {
lat_lng_popup_d9b1ded34d39489b9c12b6f6f02bf1c5
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var lat_lng_popup_11a8fab2564c464eb7dce850f3edc705 = L.popup();
function latLngPop(e) {
lat_lng_popup_11a8fab2564c464eb7dce850f3edc705
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_5a07e6abfd7149ed9d82ac92cdadc74b);
}
map_5a07e6abfd7149ed9d82ac92cdadc74b.on('click', latLngPop);
var tile_layer_d8aa6718aa9640bb8cd938f57d641759 = L.tileLayer(
"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.jpg",
{"attribution": "Map tiles by \u003ca href=\"http://stamen.com\"\u003eStamen Design\u003c/a\u003e, under \u003ca href=\"http://creativecommons.org/licenses/by/3.0\"\u003eCC BY 3.0\u003c/a\u003e. Data by \u0026copy; \u003ca href=\"http://openstreetmap.org\"\u003eOpenStreetMap\u003c/a\u003e, under \u003ca href=\"http://creativecommons.org/licenses/by-sa/3.0\"\u003eCC BY SA\u003c/a\u003e.", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
).addTo(map_5a07e6abfd7149ed9d82ac92cdadc74b);
var tile_layer_84e8628f931349b78ca4a6838a2c50fa = L.tileLayer(
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
{"attribution": "Data by \u0026copy; \u003ca href=\"http://openstreetmap.org\"\u003eOpenStreetMap\u003c/a\u003e, under \u003ca href=\"http://www.openstreetmap.org/copyright\"\u003eODbL\u003c/a\u003e.", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
).addTo(map_5a07e6abfd7149ed9d82ac92cdadc74b);
var layer_control_4e6bc2d8558d423794d576e610ac5e62 = {
base_layers : {
"cartodbpositron" : tile_layer_b41da7f7e5564f92b71d8aebf90cd853,
"stamenterrain" : tile_layer_d8aa6718aa9640bb8cd938f57d641759,
"openstreetmap" : tile_layer_84e8628f931349b78ca4a6838a2c50fa,
},
overlays : {
"All Stars" : feature_group_d36b501836134986af718e9dfce71fb0,
"Progress" : feature_group_fa170148eedb4839b41434d10d4c34af,
},
};
L.control.layers(
layer_control_4e6bc2d8558d423794d576e610ac5e62.base_layers,
layer_control_4e6bc2d8558d423794d576e610ac5e62.overlays,
{"autoZIndex": true, "collapsed": true, "position": "topright"}
).addTo(map_5a07e6abfd7149ed9d82ac92cdadc74b);
tile_layer_d8aa6718aa9640bb8cd938f57d641759.remove();
tile_layer_84e8628f931349b78ca4a6838a2c50fa.remove();
map_5a07e6abfd7149ed9d82ac92cdadc74b.fitBounds(
[[49.225, -123.275], [49.285, -123.19]],
{}
);
</script> | 46.073853 | 545 | 0.579785 |