escendants()) do
			if (ch:IsA("BasePart")) then
			ch.CFrame = lplayer.Character.HumanoidRootPart.CFrame
			ch.CanCollide = false
			ch.Transparency = 0.7
			wait()
			ch.CFrame = lplayer.Character["Left Leg"].CFrame
			wait()
			ch.CFrame = lplayer.Character["Right Leg"].CFrame
			wait()
			ch.CFrame = lplayer.Character["Head"].CFrame
			end
			end
			end
			end
			end
			while wait() do
				bringmodw()
			end
			game:GetService("StarterGui"):SetCore("SendNotification", {
			Title = "BringMod";
			Text = "BringMod enabled.";
			})
		end
		if string.sub(CMDBAR.Text, 1, 7) == ("respawn") then
			local mod = Instance.new('Model', workspace) mod.Name = 're '..lplayer.Name
			local hum = Instance.new('Humanoid', mod)
			local ins = Instance.new('Part', mod) ins.Name = 'Torso' ins.CanCollide = false ins.Transparency = 1
			lplayer.Character = mod
		end
		if string.sub(CMDBAR.Text, 1, 8) == ("shutdown") then
			game:GetService'RunService'.Stepped:Connect(function()
			pcall(function()
			    for i,v in pairs(game:GetService'Players':GetPlayers()) do
			        if v.Character ~= nil and v.Character:FindFirstChild'Head' then
			            for _,x in pairs(v.Character.Head:GetChildren()) do
			                if x:IsA'Sound' then x.Playing = true x.CharacterSoundEvent:FireServer(true, true) end
			            end
			        end
			    end
			end)
			end)
			game:GetService("StarterGui"):SetCore("SendNotification", {
			Title = "Attempting Shutdown";
			Text = "Shutdown Attempt has begun.";
			})
		end
		if string.sub(CMDBAR.Text, 1, 7) == ("delobj ") then
			objtodel = (string.sub(CMDBAR.Text, 8))
			for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
				if v.Name == objtodel then
					v:Destroy()
				end
			end
		end
		if string.sub(CMDBAR.Text, 1, 7) == ("getplrs") then
			for i,v in pairs(game:GetService("Players"):GetPlayers())do
				print(v)
			end
			game:GetService("StarterGui"):SetCore("SendNotification", {
			Title = "Printed";
			Text = "Players have been printed to console. (F9)";
			})
		end
		if string.sub(CMDBAR.Text, 1, 8) == ("deldecal") then
			for i,v in pairs(game:GetService("Workspace"):GetDescendants())do
				if (v:IsA("Decal")) then
					v:Destroy()
				end
			end
		end
		if string.sub(CMDBAR.Text, 1, 10) == ("opfinality") then
			loadstring(game:GetObjects("rbxassetid://1294358929")[1].Source)()
			game:GetService("StarterGui"):SetCore("SendNotification", {
			Title = "Success!";
			Text = "OpFinality GUI has loaded.";
			})
		end
		if string.sub(CMDBAR.Text, 1, 7) == ("remotes") then
			remotes = true
			added = true
			game.DescendantAdded:connect(function(rmt)
			if added == true then
			if remotes == true then
			if rmt:IsA("RemoteEvent") then
			print("A RemoteEvent was added!")
			print(" game." .. rmt:GetFullName() .. " | Remote


Aes">podstarosta lwowski w [[1640|1643 roku]][[1645|,]]</tt>” --WTM (dyskusja) 22:46, 11 paź 2018 (CEST)

Wg mnie ta edycja , jako nie spełniająca wymagań wikipedii, powinna zostać anulowana. Ale może @Mathiasrex by pomógł? --Kriis bis (dyskusja) 09:11, 12 paź 2018 (CEST)

„Cyklon B” czy „cyklon B”?

W rozbudowywanym artykule Kurt Gerstein wielokrotnie używana jest nazwa handlowa insektycydu stosowanego przez nazistów w komorach gazowych. Nie jestem pewny, czy nazwę pisać z dużej litery, czy z małej: „Cyklon B” vs. „cyklon B”. Za pierwszą wersją przemawia fakt, że nie jest nazwa własna, ale nazwa handlowa i dlatego powinna być pisana z dużej litery. Proszę o opinie. Jacek555  ✉  14:50, 6 paź 2018 (CEST)

Ale jeżeli „cyklon”, to „


CFI_CALL(Lp256_montjscalarmul_p256_montjdouble)

        leaq    ACC(%rsp), %rsi
        leaq    ACC(%rsp), %rdi
        CFI_CALL(Lp256_montjscalarmul_p256_montjdouble)

        leaq    ACC(%rsp), %rsi
        leaq    ACC(%rsp), %rdi
        CFI_CALL(Lp256_montjscalarmul_p256_montjdouble)

        leaq    ACC(%rsp), %rsi
        leaq    ACC(%rsp), %rdi
        CFI_CALL(Lp256_montjscalarmul_p256_montjdouble)

        movq    %rbp, %rax
        shrq    $6, %rax
        movq    (%rsp,%rax,8), %rdi
        movq    %rbp, %rcx
        shrq    %cl, %rdi
        andq    $15, %rdi

        subq    $8, %rdi
        sbbq    %rsi, %rsi // %rsi = sign of digit (-1 = negative)
        xorq    %rsi, %rdi
        subq    %rsi, %rdi // %rdi = absolute value of digit

        xorl    %eax, %eax
        xorl    %ebx, %ebx
        xorl    %ecx, %ecx
        xorl    %edx, %edx
        xorl    %r8d, %r8d
        xorl    %r9d, %r9d
        xorl    %r10d, %r10d
        xorl    %r11d, %r11d
        xorl    %r12d, %r12d
        xorl    %r13d, %r13d
        xorl    %r14d, %r14d
        xorl    %r15d, %r15d

        selectblock(1)
        selectblock(2)
        selectblock(3)
        selectblock(4)
        selectblock(5)
        selectblock(6)
        selectblock(7)
        selectblock(8)

// Store it to "tabent" with the y coordinate optionally negated
// Again, do it carefully to give coordinates < p_256 even in
// the degenerate case y = 0 (when z = 0 for points on the curve).

        movq     %rax, TABENT(%rsp)
        movq     %rbx, TABENT+8(%rsp)
        movq     %rcx, TABENT+16(%rsp)
        movq     %rdx, TABENT+24(%rsp)

        movq     %r12, TABENT+64(%rsp)
        movq     %r13, TABENT+72(%rsp)
        movq     %r14, TABENT+80(%rsp)
        movq     %r15, TABENT+88(%rsp)

        movq    %r8, %rax
        xorl    %r14d, %r14d
        orq     %r9, %rax
        leaq    -1(%r14), %r12
        movq    %r10, %rcx
        movq    $0x00000000ffffffff, %r15
        orq     %r11, %rcx
        movq    %r15, %r13
        negq    %r15
        orq     %rcx, %rax
        cmovzq  %rax, %rsi

        subq    %r8, %r12
        sbbq    %r9, %r13
        sbbq    %r10, %r14
        sbbq    %r11, %r15

        testq   %rsi, %rsi
        cmovnzq  %r12, %r8
        cmovnzq  %r13, %r9
        cmovnzq  %r14, %r10
        cmovnzq  %r15, %r11

        movq     %r8, TABENT+32(%rsp)


/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright(c) 2017 Intel Corporation
 */

#ifndef TEST_BBDEV_VECTOR_H_
#define TEST_BBDEV_VECTOR_H_

#include <rte_bbdev_op.h>

/* Flags which are set when specific parameter is define in vector file */
enum {
	TEST_BBDEV_VF_E = (1ULL << 0),
	TEST_BBDEV_VF_EA = (1ULL << 1),
	TEST_BBDEV_VF_EB = (1ULL << 2),
	TEST_BBDEV_VF_K = (1ULL << 3),
	TEST_BBDEV_VF_K_NEG = (1ULL << 4),
	TEST_BBDEV_VF_K_POS = (1ULL << 5),
	TEST_BBDEV_VF_C_NEG = (1ULL << 6),
	TEST_BBDEV_VF_C = (1ULL << 7),
	TEST_BBDEV_VF_CAB = (1ULL << 8),
	TEST_BBDEV_VF_RV_INDEX = (1ULL << 9),
	TEST_BBDEV_VF_ITER_MAX = (1ULL << 10),
	TEST_BBDEV_VF_ITER_MIN = (1ULL << 11),
	TEST_BBDEV_VF_EXPECTED_ITER_COUNT = (1ULL << 12),
	TEST_BBDEV_VF_EXT_SCALE = (1ULL << 13),
	TEST_BBDEV_VF_NUM_MAPS = (1ULL << 14),
	TEST_BBDEV_VF_NCB = (1ULL << 15),
	TEST_BBDEV_VF_NCB_NEG = (1ULL << 16),
	TEST_BBDEV_VF_NCB_POS = (1ULL << 17),
	TEST_BBDEV_VF_R = (1ULL << 18),
	TEST_BBDEV_VF_BG = (1ULL << 19),
	TEST_BBDEV_VF_ZC = (1ULL << 20),
	TEST_BBDEV_VF_F = (1ULL << 21),
	TEST_BBDEV_VF_QM = (1ULL << 22),
	TEST_BBDEV_VF_CODE_BLOCK_MODE = (1ULL << 23),
	TEST_BBDEV_VF_OP_FLAGS = (1ULL << 24),
	TEST_BBDEV_VF_EXPECTED_STATUS = (1ULL << 25),
};

enum op_data_type {
	DATA_INPUT = 0,
	DATA_SOFT_OUTPUT,
	DATA_HARD_OUTPUT,
	DATA_HARQ_INPUT,
	DATA_HARQ_OUTPUT,
	DATA_NUM_TYPES,
};

struct op_data_buf {
	uint32_t *addr;
	uint32_t length;
};

struct op_data_entries {
	struct op_data_buf segments[RTE_BBDEV_TURBO_MAX_CODE_BLOCKS];
	unsigned int nb_segments;
};

struct test_bbdev_vector {
	enum rte_bbdev_op_type op_type;
	int expected_status;
	int mask;
	union {
		struct rte_bbdev_op_turbo_dec turbo_dec;
		struct rte_bbdev_op_turbo_enc turbo_enc;
		struct rte_bbdev_op_ldpc_dec ldpc_dec;
		struct rte_bbdev_op_ldpc_enc ldpc_enc;
	};
	/* Additional storage for op data entries */
	struct op_data_entries entries[DATA_NUM_TYPES];
};

/* fills test vector parameters based on test file */
int
test_bbdev_vector_read(const char *filename,
		struct test_bbdev_vector *vector);

#endif /* TEST_BBDEV_VECTOR_H_ */


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 entity

import (
	"github.com/coze-dev/coze-studio/backend/api/model/crossdomain/knowledge"
)

type Slice = knowledge.Slice

type WhereSliceOpt struct {
	KnowledgeID int64
	DocumentID  int64
	DocumentIDs []int64
	Keyword     *string
	PageSize    int64
	Offset      int64
	NotEmpty    *bool
}

type WherePhotoSliceOpt struct {
	KnowledgeID int64
	DocumentIDs []int64
	Limit       *int
	Offset      *int
	HasCaption  *bool
}
/*
 * Copyright 2025 coze-dev 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 repository

import (
	"context"

	"gorm.io/gorm"

	"github.com/coze-dev/coze-studio/backend/domain/knowledge/entity"
	"github.com/coze-dev/coze-studio/backend/domain/knowledge/internal/dal/dao"
	"github.com/coze-dev/coze-studio/backend/domain/knowledge/internal/dal/model"
	"github.com/coze-dev/coze-studio/backend/domain/knowledge/internal/dal/query"
)

func NewKnowledgeDAO(db *gorm.DB) KnowledgeRepo {
	return &dao.KnowledgeDAO{DB: db, Query: query.Use(db)}
}

func NewKnowledgeDocumentDAO(db *gorm.DB) KnowledgeDocumentRepo {
	return &dao.KnowledgeDocumentDAO{DB: db, Query: query.Use(db)}
}

func NewKnowledgeDocumentReviewDAO(db *gorm.DB) KnowledgeDocumentReviewRepo {
	return &dao.KnowledgeDocumentReviewDAO{DB: db, Query: query.Use(db)}
}

func NewKnowledgeDocumentSliceDAO(db *gorm.DB) KnowledgeDocumentSliceRepo {
	return &dao.KnowledgeDocumentSliceDAO{DB: db, Query: query.Use(db)}
}

//go:generate mockgen -destination ../internal/mock/dal/dao/knowledge.go --package dao -source knowledge.go
type KnowledgeRepo interface {
	Create(ctx context.Context, knowledge *model.Knowledge) error
	Upsert(ctx context.Context, knowledge *model.Knowledge) error
	Update(ctx context.Context, knowledge *model.Knowledge) error
	Delete(ctx context.Context, id int64) error
	GetByID(ctx context.Context, id int64) (*model.Knowledge, error)
	MGetByID(ctx context.Context, ids []int64) ([]*model.Knowledge, error)
	FilterEnableKnowledge(ctx context.Context, ids []int64) ([]*model.Knowledge, error)
	InitTx() (tx *gorm.DB, err error)
	UpdateWithTx(ctx context.Context, tx *gorm.DB, knowledgeID int64, updateMap map[string]interface{}) error
	FindKnowledgeByCondition(ctx context.Context, opts *entity.WhereKnowledgeOption) ([]*model.Knowledge, int64, error)
}

//go:generate mockgen -destination ../internal/mock/dal/dao/knowledge_document.go --package dao -source knowledge_document.go
type KnowledgeDocumentRepo interface {
	Create(ctx context.Context, document *model.KnowledgeDocument) error
	Update(ctx context.Context, document *model.KnowledgeDocument) error
	Delete(ctx context.Context, id int64) error


on === (<JSONState> other).lastWasColon;
	}

	public getMode():Modes.IMode {
		return this._mode;
	}

	public tokenize(stream:any):Modes.ITokenizationResult {
		throw new Error();
	}

	public getStateData():Modes.IState {
		return this._state;
	}

	public setStateData(state:Modes.IState):void {
		this._state = state;
	}
}

function tokenize(mode:Modes.IMode, comments:boolean, line:string, state:JSONState, offsetDelta:number = 0, stopAtOffset?:number):Modes.ILineTokens {

	// handle multiline strings and block comments
	var numberOfInsertedCharacters = 0,
		adjustOffset = false;

	switch(state.scanError) {
		case json.ScanError.UnexpectedEndOfString:
			line = '"' + line;
			numberOfInsertedCharacters = 1;
			break;
		case json.ScanError.UnexpectedEndOfComment:
			line = '/*' + line;
			numberOfInsertedCharacters = 2;
			break;
	}

	var scanner = json.createScanner(line),
		kind: json.SyntaxKind,
		ret:Modes.ILineTokens,
		lastWasColon = state.lastWasColon;

	ret = {
		tokens: <Modes.IToken[]>[],
		actualStopOffset: line.length,
		endState: state.clone(),
		modeTransitions: [{ startIndex: 0, mode: mode }],
	};

	while(true) {

		var offset = offsetDelta + scanner.getPosition(),
			bracket = Modes.Bracket.None,
			type = '';

		kind = scanner.scan();
		if(kind === json.SyntaxKind.EOF) {
			break;
		}

		// Check that the scanner has advanced
		if (offset === offsetDelta + scanner.getPosition()) {
			throw new Error('Scanner did not advance, next 3 characters are: ' + line.substr(scanner.getPosition(), 3));
		}

		// In case we inserted /* or " character, we need to
		// adjust the offset of all tokens (except the first)
		if(adjustOffset) {
			offset -= numberOfInsertedCharacters;
		}
		adjustOffset = numberOfInsertedCharacters > 0;

		// brackets and type
		switch(kind) {
			case json.SyntaxKind.OpenBraceToken:
				bracket = Modes.Bracket.Open;
				type = jsonTokenTypes.TOKEN_DELIM_OBJECT;
				lastWasColon = false;
				break;
			case json.SyntaxKind.CloseBraceToken:
				bracket = Modes.Bracket.Close;
				type = jsonTokenTypes.TOKEN_DELIM_OBJECT;
				lastWasColon = false;
				break;
			case json.SyntaxKind.OpenBracketToken:
				bracket = Modes.Bracket.Open;
				type = jsonTokenTypes.TOKEN_DELIM_ARRAY;
				lastWasColon = false;
				break;
			case json.SyntaxKind.CloseBracketToken:
				bracket = Modes.Bracket.Close;
				type = jsonTokenTypes.TOKEN_DELIM_ARRAY;
				lastWasColon = false;
				break;
			case json.SyntaxKind.ColonToken:
				type = jsonTokenTypes.TOKEN_DELIM_COLON;
				lastWasColon = true;
				break;
			case json.SyntaxKind.CommaToken:
				type = jsonTokenTypes.TOKEN_DELIM_COMMA;
				lastWasColon = false;
				break;
			case json.SyntaxKind.TrueKeyword:
			case json.SyntaxKind.FalseKeyword:
				type = jsonTokenTypes.TOKEN_VALUE_BOOLEAN;
				lastWasColon = false;
				break;
			case json.SyntaxKind.NullKeyword:
				type = jsonTokenTypes.TOKEN_VALUE_NULL;
				lastWasColon = false;
				break;
			case json.SyntaxKind.StringLiteral:
				type = lastWasColon ? jsonTokenTypes.TOKEN_VALUE_STRING : jsonTokenTypes.TOKEN_PROPERTY_NA


 (interval - (departure % interval), interval))
            .min()
            .unwrap();

        (wait * id).to_string()
    }

    fn part2(&mut self, input: &mut dyn Read) -> String {
        let line = Lines::new(input).nth(1).unwrap();

        let mut period = 1;
        let mut wait = 0;

        for (offset, freq) in line
            .split(',')
            .enumerate()
            .filter_map(|(i, s)| s.parse().ok().map(|n| (i as u64, n)))
        {
            let offset = (freq - (offset % freq)) % freq;

            // Modular integer division does this faster but this works.
            while wait % freq != offset {
                wait += period;
            }

            period = period.lcm(&freq);
        }

        wait.to_string()
    }
}

#[cfg(test)]
mod tests {
    use crate::test_implementation;

    use super::*;

    const SAMPLE: &[u8] = include_bytes!("../samples/13.txt");

    #[test]
    fn sample_part1() {
        test_implementation(Day13, 1, SAMPLE, 295);
    }

    #[test]
    fn sample_part2() {
        test_implementation(Day13, 2, SAMPLE, 1068781);
    }
}
<filename>src/fun.rs
use std::fmt::Write;
use syntax::ast;
use syntax::parse::ParseSess;
use syntax::attr::AttrMetaMethods;

pub fn translate(sess: &ParseSess,
                 out: &mut String,
                 name: ast::Ident,
                 inputs: &[ast::Arg],
                 output: Option<&ast::Ty>,
                 block: &ast::Block) {
    let diag = &sess.span_diagnostic;

    match output {
        None => write!(out, "void").unwrap(),
        Some(ty) => ::ty::translate(sess, out, ty),
    }

    write!(out, " {}(", name.name.as_str()).unwrap();
    for (i, &ast::Arg { ref ty, ref pat, ..}) in inputs.iter().enumerate() {
        if i != 0 {
            write!(out, ", ").unwrap();
        }
        ::ty::translate(sess, out, &**ty);
        match ::util::pat_to_var(&**pat) {
            Some(v) => write!(out, " {}", v).unwrap(),
            _ => {
                diag.span_err(pat.span, "can't translate this sort of pattern");
            }
        }
    }
    write!(out, ") {{\n").unwrap();

    ::block::translate(sess, out, block, true);

    write!(out, "}}\n").unwrap();
}
<filename>src/can2/fdcrc.rs
#[doc = "Reader of register FDCRC"]
pub type R = crate::R<u32, super::FDCRC>;
#[doc = "Reader of field `FD_TXCRC`"]
pub type FD_TXCRC_R = crate::R<u32, u32>;
#[doc = "Reader of field `FD_MBCRC`"]
pub type FD_MBCRC_R = crate::R<u8, u8>;
impl R {
    #[doc = "Bits 0:20 - Extended Transmitted CRC value"]
    #[inline(always)]
    pub fn fd_txcrc(&self) -> FD_TXCRC_R {
        FD_TXCRC_R::new((self.bits & 0x001f_ffff) as u32)
    }
    #[doc = "Bits 24:30 - CRC Mailbox Number for FD_TXCRC"]
    #[inline(always)]
    pub fn fd_mbcrc(&self) -> FD_MBCRC_R {
        FD_MBCRC_R::new(((self.bits >> 24) & 0x7f) as u8)
    }
}
//! Functionality to load a [`Catalog`](crate::db::catalog::Catalog) and other information from a
//! [`PreservedCatalog`](parquet_catalog::core::PreservedCatalog).

use super::catalog::{chunk::ChunkStage, table::TableSchemaUpsertHandle, Catalog};
use iox_object_store::{IoxObjectStore, ParquetFilePath};
use observability_deps::tracing


("cardinal")([[0, 0], [1, 1], [2, 0], [3, 1], [4, 0]]), "M0,0Q0.6666666666666667,1,1,1C1.5,1,1.5,0,2,0S2.5,1,3,1Q3.3333333333333335,1,4,0");
        assert.pathEqual(l.interpolate("cardinal-open")([[0, 0], [1, 1], [2, 0], [3, 1], [4, 0]]), "M1,1C1.5,1,1.5,0,2,0S2.5,1,3,1");
        assert.pathEqual(l.interpolate("cardinal-closed")([[0, 0], [1, 1], [2, 0], [3, 1], [4, 0]]), "M0,0C-0.75,0.25,0.5,1,1,1S1.5,0,2,0S2.5,1,3,1S4.75,0.25,4,0S0.75,-0.25,0,0");
      }
    },

    "interpolate(monotone)": {
      "supports monotone interpolation": function(line) {
        var l = line().interpolate("monotone");
        assert.pathEqual(l([[0, 0], [1, 1], [2, 1], [3, 0], [4, 0]]), "M0,0C0.08333333333333333,0.08333333333333333,0.6666666666666667,1,1,1S1.6666666666666667,1,2,1S2.6666666666666665,0,3,0S3.8333333333333335,0,4,0");
      },
      "monotone interpolation reverts to linear with fewer than three points": function(line) {
        var l = line().interpolate("monotone"), d = line();
        assert.pathEqual(l([[0, 0]]), d([[0, 0]]));
        assert.pathEqual(l([[0, 0], [1, 1]]), d([[0, 0], [1, 1]]));
      }
    }
  }
});

suite.export(module);
require("../env");
require("../../d3");
require("../../d3.csv");

var vows = require("vows"),
    assert = require("assert");

var suite = vows.describe("d3.csv.parse");

suite.addBatch({
  "parse": {
    topic: function() {
      return d3.csv.parse;
    },
    "returns an array of objects": function(parse) {
      assert.deepEqual(parse("a,b,c\n1,2,3\n"), [{a: "1", b: "2", c: "3"}]);
    },
    "does not strip whitespace": function(parse) {
      assert.deepEqual(parse("a,b,c\n 1, 2,3\n"), [{a: " 1", b: " 2", c: "3"}]);
    },
    "parses quoted values": function(parse) {
      assert.deepEqual(parse("a,b,c\n\"1\",2,3"), [{a: "1", b: "2", c: "3"}]);
      assert.deepEqual(parse("a,b,c\n\"1\",2,3\n"), [{a: "1", b: "2", c: "3"}]);
    },
    "parses quoted values with quotes": function(parse) {
      assert.deepEqual(parse("a\n\"\"\"hello\"\"\""), [{a: "\"hello\""}]);
    },
    "parses quoted values with newlines": function(parse) {
      assert.deepEqual(parse("a\n\"new\nline\""), [{a: "new\nline"}]);
      assert.deepEqual(parse("a\n\"new\rline\""), [{a: "new\rline"}]);
      assert.deepEqual(parse("a\n\"new\r\nline\""),


iesen auch darauf hin, dass die negativen Auswirkungen einer Hard Fork alle Mitglieder des Netzwerks belasten würden, unabhängig davon, ob sie DAO-Token-Inhaber sind oder nicht. Im Gegensatz dazu wären die Nutznießer der Abspaltung nur eine kleine Teilmenge der Betroffenen. Diese Realität der "privatisierten Gewinne und sozialisierten Verluste" erinnerte an die Finanzkrise von 2008, wobei die Hard Fork von vielen als "Rettungsaktion" bezeichnet wurde, mit den unterschiedlichsten Konnotationen.

Als Reaktion auf diese Bedenken wurden Pro-Forker dazu angeregt, die Risiken einer Kettenspaltung herunterzuspielen und sie unter der Kategorie „Mach dir keine Sorgen, das ist eine Verschwörungstheorie, die von Bitcoin-Maximalisten geschaffen wurde“ zurückzustellen. Darüber hinaus wurden keinerlei Vorbereitungen für eine Kettenaufspaltung getroffen, wie z. B. die Implementierung eines Schutzes vor Wiederholungsangriffen oder die Information der Börsen über dieses mögliche Ergebnis, um sie vor doppelten Ausgaben zu schützen, da dies die Möglichkeit einer Kettenaufspaltung bekräftigen und damit die Wahrscheinlichkeit einer solchen erhöhen würde.

![Und so war die Hard Fork der einzig akzeptable Weg nach vorne.](./forkyou.jpeg)

### Die dunkelste Stunde von Ethereum

Als der Termin für die Abspaltung von Child DAO näher rückte, entwickelte sich die Debatte schnell zu einem äußerst giftigen Streit, der durch finanzielle Interessen und philosophische Ängste angeheizt wurde. Das Zerwürfnis war so groß, dass von beiden Seiten Anschuldigungen wegen Kriminalität und mangelnder Ethik erhoben wurden. Um den Kampf zu gewinnen, der sich zu einem Kampf auf Leben und Tod entwickelte, wurde jede erdenkliche Taktik eingesetzt.

Die traurige Angelegenheit wurde durch Drohungen mit Doxxing und anderen Formen der Vergeltung gegen diejenigen, die gegen eine Hard Fork waren, gekrönt. slock.it rief dazu auf, die Identitäten derjenigen zu offenbaren, die sich gegen die Hard Fork aussprachen, was einen abschreckenden Effekt hatte und prominente Anti-Forcer einschüchterte, sich nicht zu äußern:

> Ich wäre SEHR daran interessiert, zu erfahren, wer die Bemühungen zur Bekämpfung einer Hardfork koordiniert. PM an [redacted]@slock.it
>
> - [slock.it, Juni 2016](https://twitter.com/slockitproject/status/743790901877706752)

Ironischerweise wurden zur gleichen Zeit, als diese Hexenjagd stattfand, auf der Website der DAO, die von slock.it betrieben wurde, die angeblichen Werte der DAO hervorgehoben:

> Wir, als DAO, bekennen uns zu folgenden Werten:
> \- Privatsphäre und das Recht auf Anonymität
>
> - [Die DAO-Website](https://web.archive.org/web/20160622212427/https://daohub.org/manifesto.html)

Mittlerweile glich die Hard Fork-Debatte eher einem religiösen Kreuzzug ohne jegliche Hemmungen als einer gesunden Diskussion darüber, was im besten Interesse des Ethereum-Projekts ist. Aber vielleicht ging es auch nie darum.

### Hergestellter Konsens


--[[
	Bagnon_Overrides
		Function Overrides
		Yeah I know the formatting doesn't resemble my normal formatting
--]]

--[[
	The overrides
--]]

local bToggleBag = ToggleBag;
ToggleBag = function(id)
	--bag slots
	if( (id == 0 or Bagnon_FrameHasBag("Bagnon", id) ) and IsAddOnEnabled("Bagnon") ) then
		BagnonCore_Toggle("Bagnon");
	--bank slots
	elseif( IsAddOnEnabled("Banknon") and Bagnon_FrameHasBag("Banknon", id) and BagnonSets.overrideBank ) then
		return;
	--the blizzard way
	else
		bToggleBag(id);
	end
end;

local bToggleBackpack = ToggleBackpack;
ToggleBackpack = function()
	if(IsAddOnEnabled("Bagnon")) then
		BagnonCore_Toggle("Bagnon");
	else
		bToggleBackpack();
	end
end;

local bOpenBag = OpenBag;
OpenBag = function(id)
	if( (id == 0 or Bagnon_FrameHasBag("Bagnon", id) ) and IsAddOnEnabled("Bagnon") ) then
		BagnonCore_Open("Bagnon");
	else
		bOpenBag(id);
	end
end;

local bCl


div class="linker-container children-linker" path-d="M0,0 L0,120.00048828125 Q0,128.00048828125 8,128.00048828125 L186,128.00048828125" style="top: 252px;"><svg xmlns="http://www.w3.org/2000/svg" width="186" height="128.00048828125" stroke="#dfcef2" stroke-width="2px" fill="none" version="1.1"><g><path d="M0,0 L0,120.00048828125 Q0,128.00048828125 8,128.00048828125 L186,128.00048828125"></path></g></svg>

■新民主主义革命理论的实践基础

旧民主主义革命的失败呼唤新的革命理论

鸦片战争后

太平天国运动

戊戌变法

义和团运动

辛亥革命

<svg xmlns="http://www.w3.org/2000/svg" width="116" height="54" stroke="#dfcef2" stroke-width="2px" fill="none" version="1.1"><g><path d="M0,54 L0,8 Q0,


ble,Computer & Electronics Retailers (TRBC level 4),Entertainment Production (TRBC level 4),Software (TRBC level 4),Television,United States"/>
      <meta name="analyticsAttributes.keywordSlug" content="US-AWARDS-SAG"/>
      <meta name="analyticsAttributes.inlineType" content="Slideshow-Video"/>
      <meta name="analyticsAttributes.title" content="'Parasite' scores historic upset at SAG awards, boosting Oscar chances"/>
      <meta name="analyticsAttributes.channel" content="News"/>
      <meta name="analyticsAttributes.contentType" content="Article"/>
      <meta name="analyticsAttributes.contentChannel" content="Business - Media & Telecoms"/>
      <meta name="analyticsAttributes.topicChannel" content="Business"/>
      <meta name="analyticsAttributes.topicSubChannel" content="Media & Telecoms"/>
      <meta name="analyticsAttributes.topicN2Codes" content="ASIA,CLEB,CMPNY,ENT,FLM,KR,LIF,MTPIX,MTVID,NETSV1,PHONES,PXP,RETE,SHOW,SOFW,TELE,US"/>
      <meta name="analyticsAttributes.topicN2Names" content="Asia / Pacific,Celebrities,Company News,Arts / Culture / Entertainment,Film,South Korea,Living / Lifestyle,Pictures,Video Available,Online Services (NEC) (TRBC level 5),Phones & Smart Phones (TRBC level 5),Picture Available,Computer & Electronics Retailers (TRBC level 4),Entertainment Production (TRBC level 4),Software (TRBC level 4),Television,United States"/>
      <meta name="analyticsAttributes.backendChannelList" content="topNews;newsOne;entertainmentNews;BigStory12;rcom-apac;media-industry;USWire_EL;everythingNews;companies-semi;rcom-media-telecoms;academy-awards-slideshows"/>
      <meta name="sailthru.title" content="'Parasite' scores historic upset at SAG awards, boosting Oscar chances"/>
      <meta name="sailthru.description" content="South Korean thriller "Parasite" was the upset winner at the Screen Actors Guild (SAG) awards on Sunday, while Joaquin Phoenix and Renee Zellweger were named best actors, cementing their roles as frontrunners at the Oscars next month."/>
      <meta name="sailthru.image.full" content="https://static.reuters.com/resources/r/?m=02&d=20200120&t=2&i=1478767273&r=LYNXMPEG0J09P&w=800"/>
      <meta name="sailthru.date" content="2020-01-20T09:49:32Z"/>
      <meta name="sailthru.author" content="Jill Serjeant"/>
      <meta property="og:site_name" content="U.S."/>
      <meta property="og:locale" content="en_US"/>
      <meta property="og:title" content="'Parasite' scores historic upset at SAG awards, boosting Oscar chances"/>
      <meta property="og:description" content="South Korean thriller "Parasite" was the upset winner at the Screen Actors Guild (SAG) awards on Sunday, while Joaquin Phoenix and Renee Zellweger were named best actors, cementing their roles as frontrunners at the Oscars next month."/>
      <meta property="og:image" content="https://static.reuters.com/resources/r/?m=02&d=20200120&t=2&i=1478767273&r=LYNXMPEG0J09P&w=800"/>
      <meta property="og:url" content="https://www.reuters.com/article/us-awards-sag-idUSKBN1ZI0EH"/>


  entorno.numero + " = Heap["+ auxi + "];\n";
                    entorno.direccion +=  "if(t" + entorno.numero + " == -1 ) goto L" + Etiqueta2 + ";\n";
                    entorno.direccion += auxi + " = " + auxi + " + 1;\n";
                    entorno.direccion += auxi2 + " = " + auxi2 + " + 1;\n";
                    entorno.direccion += "goto L" + Etiqueta1 + ";\n";

                    entorno.direccion += "L" + Etiqueta2 + ":\n";
                    entorno.etiquetas +=1;
                    var Etiqueta3 = entorno.etiquetas;
                    entorno.etiquetas +=1;
                    var Etiqueta4 = entorno.etiquetas;
                    entorno.direccion += "if(" + auxi2 + "== 5) goto L" + Etiqueta4 + ";\n";
                    entorno.direccion += auxi2 + " = 1;\n";
                    entorno.direccion += "goto L" + Etiqueta3 + ";\n";
                    entorno.direccion += "L" + Etiqueta4 + ":\n";
                    entorno.direccion += auxi2 + " = 0;\n";
                    entorno.direccion += "L" + Etiqueta3 + ":\n";
                    Cad3dExpresion  = auxi2;
            }

            entorno.etiquetas +=1;
            var Etiqueta1 = entorno.etiquetas;
            entorno.etiquetas +=1;
            var Etiqueta2 = entorno.etiquetas;
            entorno.direccion += "##traduciendo if\n";
            entorno.direccion += "if(" + Cad3dExpresion + " == 0) goto L" + Etiqueta1 + ";\n";
            //
            for(var x = 0; x< this.Hijos[0].ListaSentencias.length;x++){
                this.Hijos[0].ListaSentencias[x].Ejecutar(entorno);
                entorno.direccion += this.Hijos[0].ListaSentencias[x].MiCadena;
            }

            //
            //entorno.direccion += entorno.direccionIF;
            entorno.direccion += "goto L" + Etiqueta2 + ";\n";
            entorno.direccion += "L" + Etiqueta1 + ":\n";
            entorno.direccionIF = "";
            //EMPEZAMOS CON LA TRADUCCION xd DE LOS ELSE IF
            for(var x = 0; x < this.Hijos[1].ListaSentencias.length;x++){
                entorno.direccion += "##traduciendo EL ELSEIFxd\n";
                this.Hijos[1].ListaSentencias[x].Ejecutar(entorno);
                entorno.direccion += this.Hijos[1].ListaSentencias[x].MiCadena;
                //alert(this.Hijos[1].ListaSentencias[x].MiCadena);
                //cambiando el coso XD
                TipoExpresion = this.Hijos[1].ListaSentencias[x].Hijos[0].TipoDato;
                Cad3dExpresion  = this.Hijos[1].ListaSentencias[x].Hijos[0].CadenaDe3D;
                if(TipoExpresion.toUpperCase() == "BOOLEAN" || TipoExpresion.toUpperCase() == "BOOLEANO"){
                    entorno.direccion += "##traduciendo EL ELSEIFxxd\n";
                    //alert(TipoExpresion);
                    if(this.Hijos[1].ListaSentencias[x].Hijos[0].Nombre == "BOOLEANO"){
                        if(Cad3dExpresion.toUpperCase() == "FALSE"){
                            Cad3dExpresion = "0";
                        }else{


tions.
(p6)	fnma.s1 f11 = f9, f10, f1
(p6)	fmpy.s1 f12 = f8, f10
	;;
(p6)	fmpy.s1 f13 = f11, f11
(p6)	fma.s1 f12 = f11, f12, f12
	;;
(p6)	fma.s1 f10 = f11, f10, f10
(p6)	fma.s1 f11 = f13, f12, f12
	;;
(p6)	fma.s1 f10 = f13, f10, f10
(p6)	fnma.s1 f12 = f9, f11, f8
	;;
(p6)	fma.s1 f10 = f12, f10, f11
	;;
	// Round quotient to an unsigned integer.
	fcvt.fxu.trunc.s1 f10 = f10
	;;
	// Transfer result to GP registers.
	getf.sig ret0 = f10
	br.ret.sptk rp
	;;
END_PROC (__udivdi3)

BEG_PROC (__divdi3)

	.regstk 2,0,0,0
	// Transfer inputs to FP registers.
	setf.sig f8 = in0
	setf.sig f9 = in1
	;;
	// Convert the inputs to FP, so that they won't be treated as unsigned.
	fcvt.xf f8 = f8
	fcvt.xf f9 = f9
	;;
	// Compute the reciprocal approximation.
	frcpa.s1 f10, p6 = f8, f9
	;;
	// 3 Newton-Raphson iterations.
(p6)	fnma.s1 f11 = f9, f10, f1
(p6)	fmpy.s1 f12 = f8, f10
	;;
(p6)	fmpy.s1 f13 = f11, f11
(p6)	fma.s1 f12 = f11, f12, f12
	;;
(p6)	fma.s1 f10 = f11, f10, f10
(p6)	fma.s1 f11 = f13, f12, f12
	;;
(p6)	fma.s1 f10 = f13, f10, f10
(p6)	fnma.s1 f12 = f9, f11, f8
	;;
(p6)	fma.s1 f10 = f12, f10, f11
	;;
	// Round quotient to an integer.
	fcvt.fx.trunc.s1 f10 = f10
	;;
	// Transfer result to GP registers.
	getf.sig ret0 = f10
	br.ret.sptk rp
	;;

END_PROC (__divdi3)

/**
 * Save upper floating-point registers (f32--f127).
 *
 * @param buf		location to store registers (1536 bytes)
 */
BEG_PROC (ia64_save_highfp)

	.regstk 1,0,0,0

ptr0	= in0
ptr1	= r14

	add	ptr1 = 16, in0
	;;
	stf.spill [ptr0] = f32, 32
	stf.spill [ptr1] = f33, 32
	;;
	stf.spill [ptr0] = f34, 32
	stf.spill [ptr1] = f35, 32
	;;
	stf.spill [ptr0] = f36, 32
	stf.spill [ptr1] = f37, 32
	;;
	stf.spill [ptr0] = f38, 32
	stf.spill [ptr1] = f39, 32
	;;
	stf.spill [ptr0] = f40, 32
	stf.spill [ptr1] = f41, 32
	;;
	stf.spill [ptr0] = f42, 32
	stf.spill [ptr1] = f43, 32
	;;
	stf.spill [ptr0] = f44, 32
	stf


 9, cardId: 5, status: "", path: "5.png" },
    { id: 10, cardId: 5, status: "", path: "5.png" },
    { id: 11, cardId: 6, status: "", path: "6.png" },
    { id: 12, cardId: 6, status: "", path: "6.png" },
    { id: 13, cardId: 7, status: "", path: "7.png" },
    { id: 14, cardId: 7, status: "", path: "7.png" },
    { id: 15, cardId: 8, status: "", path: "8.png" },
    { id: 16, cardId: 8, status: "", path: "8.png" },
    { id: 17, cardId: 9, status: "", path: "9.png" },
    { id: 18, cardId: 9, status: "", path: "9.png" },
    { id: 19, cardId: 10, status: "", path: "10.png" },
    { id: 20, cardId: 10, status: "", path: "10.png" },
  ];
}

export function getStartDeck(difficult: IDifficult = getStartDifficult()) {
  const result = getAllDeck().splice(0, difficult.countCards);
  shuffle(result);

  return result;
}

function shuffle(array: any) {
  array.sort(() => Math.random() - 0.5);
}
import { Builder } from '../engine/Builder';
import { RegisteredFunction } from '../engine/TransformationEngine';

export function transformProperty(builder: Builder): void {
  builder
    .exec((ctx) => {
      ctx.obj.name = ctx.tmp._name;
    })
    .str('type') // Tag.Type
    .bufferStart('_tagSize', false) // Tag.Size
    .int('index', undefined, false) // Tag.ArrayIndex

    .switch('type', {
      IntProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformIntProperty),
      BoolProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformBoolProperty),
      FloatProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformFloatProperty),
      StrProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformStringProperty),
      NameProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformStringProperty),
      TextProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformTextProperty),
      ByteProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformByteProperty),
      EnumProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformEnumProperty),
      ObjectProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformObjectProperty),
      StructProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformStructProperty),
      ArrayProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformArrayProperty),
      MapProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformMapProperty),
      SetProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformSetProperty),
      Int64Property: (builder: Builder) =>
        builder.call(RegisteredFunction.transformInt64Property),
      InterfaceProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformObjectProperty),
      Int8Property: (builder: Builder) =>
        builder.call(RegisteredFunction.transformInt8Property),
      UInt64Property: (builder: Builder) =>
        builder.call(RegisteredFunction.transformInt64Property),
      DoubleProperty: (builder: Builder) =>
        builder.call(RegisteredFunction.transformInt64Property), // TODO
      $default: (builder: Builder) =>
        builder.error((ctx) => `Unknown property: ${c


し売りとかが多いんじゃが

空き巣や強盗の可能性もあるな

在外面世界很多都是用来准备推销

但也有可能是准备入室行窃或抢劫

奥野田美宵

ひっ

噫

二岩猯藏

ま　狸の儂に任せとけ
この手の暗号解読は得意なんじゃ

没事 就交给老身我这只狸吧
我最擅长解读这样的暗号了

奥野田美宵

そうなの？

真的吗？

伊吹萃香

お前が得意な暗号ってタヌキ暗号だろ？

你擅长的暗号就是所谓的狸暗号吧？

たげい
たどたんてい
↓
<s>た</s>げい
<s>た</s>ど<s>た</s>んてい

鱼兒天
狸狸口狸亭
↓
鱼兒天
<s>狸</s><s>狸</s>口<s>狸</s>亭<a href="#


MAX_STACKTRACE_SIZE) + "<truncated>"
                        else
                            it
                    }
                    putExtra(LogActivity.CRASH_STACK_TRACE, truncated)
                }
                exitProcess(10)
            }
        }

        instance = this
        // we don't have AppPrefs available yet
        val sharedPrefs = PreferenceManager.getDefaultSharedPreferences(ctx)
        Timber.setupForest(verbose = sharedPrefs.getBoolean("verbose_log", false))

        Timber.d("isDirectBootMode=$isDirectBootMode")

        AppPrefs.init(sharedPrefs)
        // record last pid for crash logs
        AppPrefs.getInstance().internal.pid.apply {
            val currentPid = Process.myPid()
            lastPid = getValue()
            Timber.d("Last pid is $lastPid. Set it to current pid: $currentPid")
            setValue(currentPid)
        }
        ClipboardManager.init(ctx)
        ThemeManager.init(resources.configuration)
        Locales.onLocaleChange(resources.configuration)
        registerReceiver(shutdownReceiver, IntentFilter(Intent.ACTION_SHUTDOWN))
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && !isDirectBootMode) {
            AppPrefs.getInstance().syncToDeviceEncryptedStorage()
            ThemeManager.syncToDeviceEncryptedStorage()
        }
        ContextCompat.registerReceiver(
            this,
            restartFcitxInstanceReceiver,
            IntentFilter(ACTION_RESTART_FCITX_INSTANCE),
            PERMISSION_TEST_INPUT_METHOD,
            null,
            ContextCompat.RECEIVER_EXPORTED
        )
    }

    override fun onConfigurationChanged(newConfig: Configuration) {
        super.onConfigurationChanged(newConfig)
        ThemeManager.onSystemPlatteChange(newConfig)
        Locales.onLocaleChange(newConfig)
    }

    companion object {
        private var lastPid: Int? = null
        private var instance: FcitxApplication? = null
        fun getInstance() =
            instance ?: throw IllegalStateException("FcitxApplication has not been created!")

        fun getLastPid() = lastPid
        private const val MAX_STACKTRACE_SIZE = 128000

        const val ACTION_RESTART_FCITX_INSTANCE =
            "${BuildConfig.APPLICATION_ID}.action.RESTART_FCITX_INSTANCE"

        /**
         * This permission is requested by com.android.shell, makes it possible to restart
         * fcitx instance from `adb shell am` command:
         * ```sh
         * adb shell am broadcast -a org.fcitx.fcitx5.android.action.RESTART_FCITX_INSTANCE
         * ```
         * https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-7.0.0_r1/packages/Shell/AndroidManifest.xml#67
         *
         * other candidate: android.permission.TEST_INPUT_METHOD requires Android 14
         * https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r1/packages/Shell/AndroidManifest.xml#628
         */
        const val PERMISSION_TEST_INPUT_METHOD = "android.permission.READ_INPUT_STATE"
    }
}/*
 * SPDX-License-Identifier: LGPL-2.1-or-later
 * SPDX-FileCopyrightText: Copyright 2024 Fcitx5 for Android Contributors
 */

package org.fcitx.fcitx5.android.utils

import android.provider.Settings

fun errInvalidType(cls: Class<*>): Nothing {
    throw IllegalArgumentException("Invalid settings type ${cls.name}")
}

inline fun <reified T> getGlobalSettings(name: String): T {
    return when (T::class.java) {
        String::class.java -> Settings.Global.getString(appContext.contentResolver, name)
        Float::class.java


filePath)) {
            return false;
        }
        fs.writeFileSync(this.filePath, this.content);
        return true;
    }

    public createFileOverwrite() {
        fs.writeFileSync(this.filePath, this.content);
    }

    public reloadFileFromDisk() {
        this.content = fs.readFileSync(this.filePath).toString();
    }

    public get isSyncedToCloud(): boolean {
        return this.synced;
    }
}import app from './app';
import * as http from 'http';
import * as fs from 'fs';
import * as WebSocket from 'ws';
import * as config from 'config'

var PORT = 3000;

const httpsOptions = {
    key: fs.readFileSync('./config/key.pem'),
    cert: fs.readFileSync('./config/cert.pem')
}

const server = http.createServer( app);
const wss = new WebSocket.Server({ server });
var dbConfig = config.get('Customer.dbConfig');
console.log(dbConfig.host)
PORT = config.get('Customer.port');
wss.on('connection', (ws: any, req) => {
    ws.id = req.headers['sec-websocket-key'];

    //connection is up, let's add a simple simple event
    ws.on('message', (msg: string) => {

        //log the received message and send it back to the client
        // console.log('received: %s', message);
        // ws.send(`Hello, you sent -> ${message}`);

        const message = JSON.parse(msg) as Message;

        setTimeout(() => {
            if (message.isBroadcast) {

                //send back the message to the other clients
                wss.clients
                    .forEach(client => {
                        let test : any = client;
                        console.log(test.id)
                        if (client != ws) {
                            client.send(createMessage(message.content, true, message.sender));
                        }
                    });

            }

            ws.send(createMessage(`You sent -> ${message.content}`, message.isBroadcast));

        }, 1000);
    });

    //send immediatly a feedback to the incoming connection
    ws.send('Hi there, I am a WebSocket server');
    ws.on('error', (err) => {
        console.warn(`Client disconnected - reason: ${err}`);
    })
});

server.listen(PORT, () => {
    console.log('Express server listening on port ' + PORT);
})

function createMessage(content: string, isBroadcast = false, sender = 'NS'): string {
    return JSON.stringify(new Message(content, isBroadcast, sender));
}

export class Message {
    constructor(
        public content: string,
        public isBroadcast = false,
        public sender: string
    ) { }
}import { BaseState } from './BaseState';
import { BusinessConfig } from '../config/BusinessConfig';

interface IBusiness {
    id: string;
    amount: number;
    workTimestamp: number;
}

export class BusinessState extends BaseState {
    private config: BusinessConfig;

    public constructor(config: BusinessConfig) {
        super('business');
        this.config = config;
    }

    protected initializeState(): void {
        //console.log('initializeState business');
        const businesses: {[id: string]: IBusiness} = {};
        this.state = {
            businesses,
        };
    }

    private get businesses(): {[id: string]: IBusiness} {
        return this.state.businesses;
    }

    public hasUnlockedBusiness(id: string) : boolean


#line default
            #line hidden
WriteLiteral("\' : \'");

            #line 143 "..\..\Views\Upload\MultiFileUpload.cshtml"
                                                                                Write(RootGlobalization.Button_Cancel);

            #line default
            #line hidden
WriteLiteral("\'\" title=\"");

            #line 143 "..\..\Views\Upload\MultiFileUpload.cshtml"
                                                                                Write(RootGlobalization.Button_Remove);

            #line default
            #line hidden
WriteLiteral("\">
\r\n
\r\n
\r\n           " +
"
\r\n            </script>\r\n");

            #line 148 "..\..\Views\Upload\MultiFileUpload.cshtml"
        }

            #line default
            #line hidden
WriteLiteral("
\r\n
\r\n");

        }
    }
}
#pragma warning restore 1591


# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
import insightconnect_plugin_runtime
import json

class Component:
    DESCRIPTION = "Lookup IPStack Information for a Host"

class Input:
    HOST = "host"

class Output:
    ADDRESS = "address"
    CITY = "city"
    COUNTRY_CODE = "country_code"
    COUNTRY_NAME = "country_name"
    LATITUDE = "latitude"
    LONGITUDE = "longitude"
    REGION_CODE = "region_code"
    REGION_NAME = "region_name"
    TIME_ZONE = "time_zone"
    ZIP_CODE = "zip_code"

class LookupInput(insightconnect_plugin_runtime.Input):
    schema = json.loads(r"""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "host": {
      "type": "string",
      "title": "Host",
      "description": "Host to Lookup",
      "order": 1
    }
  },
  "required": [
    "host"
  ],
  "definitions": {}
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)

class LookupOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads(r"""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "address": {
      "type": "string",
      "title": "IP Address",
      "description": "IP address",
      "order": 1
    },
    "city": {
      "type": "string",
      "title": "City",
      "description": "City",
      "order": 2
    },
    "country_code": {
      "type": "string",
      "title": "Country Code",
      "description": "Country code",
      "order": 4
    },
    "country_name": {
      "type": "string",
      "title": "Country Name",
      "description": "Country name",
      "order": 3
    },
    "latitude": {
      "type": "string",
      "title": "Latitude",
      "description": "Latitude",
      "order": 5
    },
    "longitude": {
      "type": "string",
      "title": "Latitude",
      "description": "Longitude",
      "order": 6
    },
    "region_code": {
      "type": "string",
      "title": "Region Code",
      "description": "Region code",
      "order": 7
    },
    "region_name": {
      "type": "string",
      "title": "Region Name",
      "description": "Region name",
      "order": 8
    },
    "time_zone": {
      "$ref": "#/definitions/time_zone",
      "title": "Time Zone",
      "description": "Time zone information at IP location",
      "order": 9
    },
    "zip_code": {
      "type": "string",
      "title": "ZIP Code",
      "description": "ZIP code for current IP lookup",
      "order": 10
    }
  },
  "definitions": {
    "time_zone": {
      "type": "object",
      "title": "time_zone",
      "properties": {
        "id": {
          "type": "string",
          "title": "ID",
          "description": "Time zone identifier",
          "order": 1
        },
        "current_time": {
          "type": "string",
          "title": "Current Time",
          "description": "Current time in this timezone at time of request",
          "order": 2
        },
        "gmt_offset": {
          "type": "integer",
          "title": "GMT Offset",
          "description": "Greenwich Mean Time offset in seconds",
          "order": 3
        },
        "code": {
          "type": "string",
          "title": "Code",
          "description": "Universal code of the given time zone https://www.timeanddate.com/time/zones/",
          "order": 4
        },
        "is_daylight_saving": {
          "type": "boolean",
          "title": "Daylight Savings",
          "description": "Indicator for if this timezone is currently in daylight savings",
          "order": 5
        }
      }
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


64(),
        iosArm64(),
        iosSimulatorArm64(),
        macosArm64(),
        macosX64()
    ).forEach {
        it.binaries.framework {
            baseName = "shared"
            isStatic = true
            export(projects.eungabi)
        }
    }

    @OptIn(ExperimentalWasmDsl::class)
    listOf(
        js(IR),
        wasmJs()
    ).forEach {
        it.moduleName = "shared"
        it.browser {
            val rootDirPath = project.rootDir.path
            val projectDirPath = project.projectDir.path
            commonWebpackConfig {
                outputFileName = "EungabiSampleApp.js"
                devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply {
                    static = (static ?: mutableListOf()).apply {
                        // Serve sources to debug inside browser
                        add(rootDirPath)
                        add(projectDirPath)
                    }
                }
            }
        }
        it.binaries.executable()
    }

    jvm("desktop")

    sourceSets {
        val desktopMain by getting
        val desktopTest by getting

        commonMain.dependencies {
            api(projects.eungabi)
            implementation(compose.ui)
            implementation(compose.runtime)
            implementation(compose.foundation)
            implementation(compose.material3)
            implementation(compose.components.resources)
        }
        desktopMain.dependencies {
            implementation(compose.desktop.macos_arm64)
            implementation(libs.kotlinx.coroutines.swing)
        }
        desktopTest.dependencies {
            implementation(compose.desktop.currentOs)
            @OptIn(ExperimentalComposeLibrary::class)
            implementation(compose.uiTest)
            implementation(project.dependencies.platform(libs.koin.bom))
            implementation(libs.koin.core)
            implementation(libs.koin.compose.viewModel)
            implementation(libs.koin.compose.viewModel.navigation)
            implementation(libs.koin.test)
            implementation(libs.koin.test.junit4)
        }
        commonTest.dependencies {
            implementation(libs.kotlin.test)
        }
    }
}

compose.desktop {
    application {
        mainClass = "com.easternkite.eungabi.MainKt"
    }
}

dependencies {
    debugImplementation(compose.uiTooling)
}

compose.resources {
    publicResClass = false
    packageOfResClass = "com.easternkite.sample.resources"
    generateResClass = auto
}

android {
    namespace = "com.easternkite.eungabi"
    compileSdk = 35
    defaultConfig {
        minSdk = 24
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
}
/*
 * Copyright 2024 easternkite
 *
 * 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.easternkite.eungabi.navigation

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier

/**
 * The navigation container composable.
 *
 * It is the entry point of the navigation.
 *
 * It retrieves the current destination from the [EunGabiController.backStack].
 * and also process the transition between the destinations as well.
 *
 * @param modifier The modifier to apply to this layout.
 * @param controller The controller


chers,
				),
				dashboards.AddQueryDataSource(datasourceName),
				query.SeriesNameFormat("{{cluster}} {{instance}} binding"),
			),
		),
		panel.AddQuery(
			query.PromQL(
				promql.SetLabelMatchers(
					"sum(rate(scheduler_scheduling_algorithm_duration_seconds_count{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance)",
					labelMatchers,
				),
				dashboards.AddQueryDataSource(datasourceName),
				query.SeriesNameFormat("{{cluster}} {{instance}} scheduling algorithm"),
			),
		),
		panel.AddQuery(
			query.PromQL(
				promql.SetLabelMatchers(
					"sum(rate(scheduler_volume_scheduling_duration_seconds_count{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance)",
					labelMatchers,
				),
				dashboards.AddQueryDataSource(datasourceName),
				query.SeriesNameFormat("{{cluster}} {{instance}} volume"),
			),
		),
	)
}

func SchedulingLatency(datasourceName string, labelMatchers ...promql.LabelMatcher) panelgroup.Option {
	return panelgroup.AddPanel("Scheduling Latency 99th Quantile",
		panel.Description("Shows the 99th quantile latency of scheduling events."),
		timeSeriesPanel.Chart(
			timeSeriesPanel.WithYAxis(timeSeriesPanel.YAxis{
				Format: &commonSdk.Format{
					Unit: &dashboards.SecondsUnit,
				},
			}),
			timeSeriesPanel.WithLegend(timeSeriesPanel.Legend{
				Position: timeSeriesPanel.BottomPosition,
				Mode:     timeSeriesPanel.ListMode,
				Size:     timeSeriesPanel.SmallSize,
			}),
			timeSeriesPanel.WithVisual(timeSeriesPanel.Visual{
				Display:      timeSeriesPanel.LineDisplay,
				ConnectNulls: false,
				LineWidth:    0.25,
				AreaOpacity:  0.5,
				Palette:      timeSeriesPanel.Palette{Mode: timeSeriesPanel.AutoMode},
			}),
		),
		panel.AddQuery(
			query.PromQL(
				promql.SetLabelMatchers(
					"histogram_quantile(0.99, sum(rate(scheduler_e2e_scheduling_duration_seconds_bucket{cluster=\"$cluster\", job=\"kube-scheduler\",instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance, le))",
					labelMatchers,
				),
				dashboards.AddQueryDataSource(datasourceName),
				query.SeriesNameFormat("{{cluster}} {{instance}} e2e"),
			),
		),
		panel.AddQuery(
			query.PromQL(
				promql.SetLabelMatchers(
					"histogram_quantile(0.99, sum(rate(scheduler_binding_duration_seconds_bucket{cluster=\"$cluster\", job=\"kube-scheduler\",instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance, le))",
					labelMatchers,
				),
				dashboards.AddQueryDataSource(datasourceName),
				query.SeriesNameFormat("{{cluster}} {{instance}} binding"),
			),
		),
		panel.AddQuery(
			query.PromQL(
				promql.SetLabelMatchers(
					"histogram_quantile(0.99, sum(rate(scheduler_scheduling_algorithm_duration_seconds_bucket{cluster=\"$cluster\", job=\"kube-scheduler\",instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance, le))",
					labelMatchers,
				),
				dashboards.AddQueryDataSource(datasourceName),
				query.SeriesNameFormat("{{cluster}} {{instance}} scheduling algorithm"),
			),
		),
		panel.AddQuery(
			query.PromQL(


DM_GETITEM %d failed.", me.index))
	}
	return int(hdi.Cxy)
}
//go:build windows

package ui

import (
	"unsafe"

	"github.com/rodrigocfd/windigo/co"
	"github.com/rodrigocfd/windigo/internal/utl"
	"github.com/rodrigocfd/windigo/win"
	"github.com/rodrigocfd/windigo/wstr"
)

// Raw [message] parameters to any message: [WPARAM] and [LPARAM].
//
// [message]: https://learn.microsoft.com/en-us/windows/win32/learnwin32/window-messages
// [WPARAM]: https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#wparam
// [LPARAM]: https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#lparam
type Wm struct {
	Msg    co.WM      // Window message ID.
	WParam win.WPARAM // First parameter.
	LParam win.LPARAM // Second parameter.
}

// [WM_ACTIVATE] parameters.
//
// [WM_ACTIVATE]: https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-activate
type WmActivate struct{ Raw Wm }

func (p WmActivate) Event() co.WA                         { return co.WA(p.Raw.WParam.LoWord()) }
func (p WmActivate) IsMinimized() bool                    { return p.Raw.WParam.HiWord() != 0 }
func (p WmActivate) HwndActivatedOrDeactivated() win.HWND { return win.HWND(p.Raw.LParam) }

// [WM_ACTIVATEAPP] parameters.
//
// [WM_ACTIVATEAPP]: https://learn.microsoft.com/en-us/windows/win32/winmsg/wm-activateapp
type WmActivateApp struct{ Raw Wm }

func (p WmActivateApp) IsBeingActivated() bool { return p.Raw.WParam != 0 }
func (p WmActivateApp) ThreadId() uint32       { return uint32(p.Raw.LParam) }

// [WM_APPCOMMAND] parameters.
//
// [WM_APPCOMMAND]: https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-appcommand
type WmAppCommand struct{ Raw Wm }

func (p WmAppCommand) OwnerWindow() win.HWND { return win.HWND(p.Raw.WParam) }
func (p WmAppCommand) AppCommand() co.APPCOMMAND {
	return co.APPCOMMAND(p.Raw.LParam.HiWord() &^ 0xf000)
}
func (p WmAppCommand) UDevice() co.FAPPCOMMAND { return co.FAPPCOMMAND(p.Raw.LParam.HiWord() & 0xf000) }
func (p WmAppCommand) Keys() co.MK             { return co.MK(p.Raw.LParam.LoWord()) }

// [WM_ASKCBFORMATNAME] parameters.
//
// [WM_ASKCBFORMATNAME]: https://learn.microsoft.com/en-us/windows/win32/dataxchg/wm-askcbformatname
type WmAskCbFormatName struct{ Raw Wm }

func (p WmAskCbFormatName) Buffer() []uint16 {
	return unsafe.Slice((*uint16)(unsafe.Pointer(p.Raw.LParam)), p.Raw.WParam)
}

// [WM_CAPTURECHANGED] parameters.
//
// [WM_CAPTURECHANGED]: https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-capturechanged
type WmCaptureChanged struct{ Raw Wm }


ap<KType, AxisType> = mapOf(
        typeOf<String>() to AxisType.CATEGORY, typeOf<String?>() to AxisType.CATEGORY,
        typeOf<Char>() to AxisType.CATEGORY, typeOf<Char?>() to AxisType.CATEGORY,
        typeOf<Number>() to AxisType.VALUE, typeOf<Number?>() to AxisType.VALUE,
        typeOf<LocalDateTime>() to AxisType.TIME, typeOf<LocalDateTime?>() to AxisType.TIME,
        typeOf<java.time.LocalDateTime>() to AxisType.TIME, typeOf<java.time.LocalDateTime?>() to AxisType.TIME,
        typeOf<LocalDate>() to AxisType.TIME, typeOf<LocalDate?>() to AxisType.TIME,
        typeOf<java.time.LocalDate>() to AxisType.TIME, typeOf<java.time.LocalDate?>() to AxisType.TIME,
        typeOf<LocalTime>() to AxisType.CATEGORY, typeOf<LocalTime?>() to AxisType.CATEGORY,
        typeOf<Month>() to AxisType.CATEGORY, typeOf<Month?>() to AxisType.CATEGORY,
        typeOf<DayOfWeek>() to AxisType.CATEGORY, typeOf<DayOfWeek?>() to AxisType.CATEGORY,
        typeOf<java.time.LocalTime>() to AxisType.CATEGORY, typeOf<java.time.LocalTime?>() to AxisType.CATEGORY,
        typeOf<java.time.Month>() to AxisType.CATEGORY, typeOf<java.time.Month?>() to AxisType.CATEGORY,
        typeOf<java.time.DayOfWeek>() to AxisType.CATEGORY, typeOf<java.time.DayOfWeek?>() to AxisType.CATEGORY
    )

    /**
     * Processes a NamedData dataset by filling null values based on mappings.
     *
     * @param dataset The dataset to process
     * @param globalMappings The global mappings to apply
     * @param layerMappings The layer-specific mappings to apply
     * @return The processed dataset with null values filled
     */
    private fun processNamedDataset(
        dataset: NamedData,
        globalMappings: Map<Aes, Mapping>,
        layerMappings: Map<Aes, Mapping>
    ): NamedData {
        var processedDataFrame = dataset.dataFrame

        // Apply fillNA for global mappings
        globalMappings.values.forEach { mapping ->
            processedDataFrame = processedDataFrame.fillNA(mapping)
        }

        // Apply fillNA for layer-specific mappings
        layerMappings.values.forEach { mapping ->
            processedDataFrame = processedDataFrame.fillNA(mapping)
        }

        // Return a new NamedData if the dataframe was modified
        return if (processedDataFrame !== dataset.dataFrame) {
            NamedData(processedDataFrame)
        } else {
            dataset
        }
    }

    internal fun parse(): Option {
        val layout = features[EChartsLayout.FEATURE_NAME] as? EChartsLayout
        val mainDataset = datasets.first()

        // Process global mappings
        with(globalMappings) {
            this[X]?.also { xAxis.add(it.toAxis(mainDataset.getType(it))) }
            this[Y]?.also { yAxis.add(it.toAxis(mainDataset.getType(it))) }
        }

        val title = layout?.title?.toEchartsTitle()
        val legend = layout?.legend?.toEchartsLegend()
        val grid = layout?.grid?.toEchartsGrid()
        val tooltip = layout?.tooltip?.toEchartsTooltip()
        val textStyle = layout?.textStyle?.toTextStyle()
        val animation = layout?.animation?.toAnimationPlotFeature()

        val visualMaps


提前发现野火，Solugen利用生物原料制造化学品。Ceibo采用低影响提取技术开发新铜矿，Rondo Energy提供廉价、零排放的热能，Rumin8开发补充剂减少牛产生的甲烷。比亚迪以价格实惠的电动汽车获得国际认可，First Solar扩大薄膜太阳能电池生产。Electric Hydrogen开发新型电解槽低成本生产绿氢，Pivot Bio利用基因编辑微生物提供农作物所需氮。Form Energy创新铁空气电池技术，Gogoro在台湾建立电池交换站网络，Sublime Systems开发新的水泥生产方法。Sun King通过即用即付模式，帮助社区获得太阳能和清洁烹饪设备。这些公司的技术和解决方案对于实现全球碳中和目标具有重要意义。

## 技术博客
### [一文搞懂第三方支付系统架构设计](https://mp.weixin.qq.com/s/Z2sNg-VjdmGD5kymZPrrYQ)

本文概述了第三方支付系统的架构设计，从第一方现金支付、第二方银行支付，到第三方网络支付的演进，并提及了第四方支付。文章定义了第三方支付中的角色（用户、商户、银行、支付工具），并解释了账户体系，包括用户账户U账户、商户账户M账户和银行账户。通过菜市场买菜的例子，文章说明了支付过程的复杂性。文章还描述了支付系统的运作模式，包括充值、提现、转账等操作的资金流动和账户变动。最后，文章对支付系统的主要领域进行了概述，并预告了后续文章将深入探讨支付系统的各个环节。

## 开源项目
### [roughViz：可重复使用的手绘风JavaScript画图库](https://github.com/jwilber/roughViz)

![](https://cdn.jsdelivr.net/gh/Xiaoxie1994/images/images/202411262033366.webp)

roughViz.js 是一个可重复使用的 JavaScript 库，用于在浏览器中创建基于 D3v5、rough.js 和 handy 库的多种图表类型，包括条形图、水平条形图、甜甜圈图、折线图、饼图、散点图和堆叠条形图等。

### [graphql-editor：Graphql可视化编辑器](https://github.com/graphql-editor/graphql-editor)

![](https://cdn.


ge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 296 83% 25%;--s: 200 100% 37%;--a: 31 94% 51%;--n: 215 28% 17%;--b1: 0 0% 100%;--bc: 215 28% 17%}[data-theme=wireframe]{color-scheme:light;--pf: 0 0% 65%;--sf: 0 0% 65%;--af: 0 0% 65%;--nf: 0 0% 85%;--bc: 146 0% 19%;--pc: 145 0% 15%;--sc: 145 0% 15%;--ac: 145 0% 15%;--nc: 145 0% 18%;--inc: 263 100% 91%;--suc: 105 32% 85%;--wac: 58 21% 11%;--erc: 17 100% 90%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,sanssecondaryerif;--p: 0 0% 72%;--s: 0 0% 72%;--a: 0 0% 72%;--n: 0 0% 92%;--b1: 0 0% 100%;--b2: 0 0% 93%;--b3: 0 0% 87%;--in: 240 100% 50%;--su: 120 100% 25%;--wa: 60 30% 50%;--er: 0 100% 50%;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black]{color-scheme:dark;--pf: 0 2% 13%;--sf: 0 2% 13%;--af: 0 2% 13%;--bc: 145 0% 78%;--pc: 0 1% 82%;--sc: 0 1% 82%;--ac: 0 1% 82%;--nc: 0 0% 81%;--inc: 263 100% 91%;--suc: 105 32% 85%;--wac: 58 45% 13%;--erc: 17 100% 90%;--border-btn: 1px;--tab-border: 1px;--p: 0 2% 20%;--s: 0 2% 20%;--a: 0 2% 20%;--b1: 0 0% 0%;--b2: 0 0% 5%;--b3: 0 2% 10%;--n: 0 1% 15%;--nf: 0 2% 20%;--in: 240 100% 50%;--su: 120 100% 25%;--wa: 60 100% 50%;--er: 0 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-text-case: lowercase;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury]{color-scheme:dark;--pf: 0 0% 93%;--sf: 218 54% 11%;--af: 319 22% 19%;--nf: 28 100% 3%;--pc: 146 0% 19%;--sc: 227 12% 82%;--ac: 322 9% 84%;--inc: 205 27% 15%;--suc: 88 35% 12%;--wac: 52 28% 14%;--erc: 3 31% 15%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 0 0% 100%;--s: 218 54% 18%;--a: 319 22% 26%;--n: 28 100% 10%;--nc: 44 100% 82%;--b1: 240 10% 4%;--b2: 270 4% 9%;--b3: 270 2% 18%;--bc: 37 67% 58%;--in: 202 100% 70%;--su:


      lolim = [-10]
        hilim = [+10]
        pm.setLimits( lowLimits=lolim, highLimits=hilim )
        Tools.printclass( pm )

        ns = NestedSampler( x, pm, y, seed=2031967 )
#        ns.verbose = 4

        ns.distribution.setLimits( [0.01, 100] )
#        ns.distribution.scale = 0.02

        if not self.dofull :
            ns.ensemble = 10

        logE = ns.sample( plot=self.doplot )
        print( "scale  ", ns.scale )

    def testNestedSampler3( self ) :
        print( "========================" )
        print( "  Test Nested Sampler 3" )
        print( "========================" )

        numpy.random.seed( 1315 )
        N = 200
        x = numpy.arange( N, dtype=float ) / 40
        y = 0.1 * numpy.random.randn( N )
        gm = GaussModel()
        for k in range( 1, 6 ) :
            par = [5.0/k, k-0.5, 0.1]
            y += gm.result( x, par )

        pm = RepeatingModel( 1, gm )
        pm.growPrior.scale = 5
        lolim = [0.0,0.0,0.0]
        hilim = [+10,5.0,1.0]
        pm.setLimits( lowLimits=lolim, highLimits=hilim )
        Tools.printclass( pm )

        ns = NestedSampler( x, pm, y, seed=2031967 )
        ns.distribution.setLimits( [0.01, 100] )
#        ns.distribution.scale = 0.02
        ns.verbose = 2
        ns.bestBoost = True

        if not self.dofull :
            ns.ensemble = 10

        logE = ns.sample( plot=self.doplot )
        sl = ns.samples
        print( "maxlik   ", fmt( sl.maxLikelihoodParameters, max=None, indent=10 ) )
        print( "median   ", fmt( sl.medianParameters, max=None, indent=10 ) )
        print( "modus    ", fmt( sl.modusParameters, max=None, indent=10 ) )
        print( "scale    ", fmt( ns.scale ) )

    def suite( cls ):
        return unittest.TestCase.suite( TestDynamicModel.__class__ )

if __name__ == '__main__':
    unittest.main()


Painter.<anonymous> (VectorPainter.kt:167)	125ms 282us 628ns	13
androidx.compose.ui.graphics.vector.RenderVectorGroup (VectorPainter.kt:327)	124ms 229us 320ns	13
AndroidOwner:measureAndLayout	118ms 531us 243ns	45
com.coldstar.compass.stack.PageStack.<anonymous>.<anonymous>.<anonymous>.<anonymous> (PageStack.kt:99)	98ms 731us 85ns	10
com.coldstar.compass.stack.PageStack.<anonymous>.<anonymous>.<anonymous>.LayerContent (PageStack.kt:56)	98ms 67us 627ns	10
com.coldstar.compass.stack.Render (StackGraph.kt:167)	94ms 693us 856ns	10
com.coldstar.compass.LocalOwnersProvider (NavEntry.kt:144)	89ms 271us 162ns	10
androidx.compose.animation.AnimatedVisibility (AnimatedVisibility.kt:600)	86ms 815us 393ns	2
androidx.compose.ui.platform.WrappedComposition.setContent.<anonymous>.<anonymous> (Wrapper.android.kt:141)	80ms 958us 239ns	1
androidx.compose.ui.platform.WrappedComposition.setContent.<anonymous>.<anonymous>.<anonymous> (Wrapper.android.kt:156)	76ms 789us 853ns	1
androidx.compose.ui.platform.ProvideAndroidCompositionLocals (AndroidCompositionLocals.android.kt:80)	76ms 6us 162ns	1
androidx.compose.ui.graphics.vector.Path (VectorCompose.kt:99)	74ms 789us 777ns	624
androidx.compose.material.Surface (Surface.kt:104)	72ms 773us 930ns	3
androidx.compose.ui.platform.ProvideAndroidCompositionLocals.<anonymous> (AndroidCompositionLocals.android.kt:117)	70ms 391us 315ns	1
com.coldstar.compass.LocalOwnersProvider.<anonymous> (NavEntry.kt:151)	69ms 266us 544ns	10
androidx.compose.ui.platform.ProvideCommonCompositionLocals (CompositionLocals.kt:189)	68ms 943us 469ns	1
com.coldstar.compass.SaveableStateProvider (NavEntry.kt:156)	67ms 553us 314ns	10
androidx.compose.material.Surface.<anonymous> (Surface.kt:117)	67ms 407us 698ns	3
androidx.compose.ui.platform.AbstractComposeView.ensureCompositionCreated.<anonymous> (ComposeView.android.kt:250)	65ms 315us 391ns	1
androidx.compose.ui.platform.ComposeView.Content (ComposeView.android.kt:426)	65ms 116us 853ns	1
com.coldstar.compass_sample.ComposableSingletons.MainActivityKt.lambda-3.<anonymous> (MainActivity.kt:26)	64ms 889us 545ns	1
com.coldstar.compass_sample.ui.theme.CompassSampleTheme (Theme.kt:18)	63ms 945us 929ns	1
androidx.compose.material.Text (Text.kt:92)	63ms 77us 623ns	15
Choreographer#doFrame 11095073	62ms 508us 622ns	1
androidx.compose.material.MaterialTheme (MaterialTheme.kt:58)	58ms 541us 237ns	1
androidx.compose.foundation.text.BasicText (BasicText.kt:79)	56ms 44us 930ns	15
androidx.compose.material.ProvideTextStyle (Text.kt:393)	53ms 879us 928ns	2
measure	53ms 360us 313ns	6
androidx.compose.ui.res.loadVectorResource (PainterResources.android.kt:81)	52ms 292us 541ns	13
androidx.compose.material.MaterialTheme


from pimoroni_i2c import PimoroniI2C
from pimoroni import BREAKOUT_GARDEN_I2C_PINS  # or PICO_EXPLORER_I2C_PINS or HEADER_I2C_PINS
from breakout_encoder_wheel import BreakoutEncoderWheel, NUM_BUTTONS

"""
How to read the buttons and rotary dial of the Encoder Wheel breakout, only when an interrupt occurs.

Press Ctrl+C to stop the program.
"""

# Constants
BUTTON_NAMES = ["Up", "Down", "Left", "Right", "Centre"]

# Create a new BreakoutEncoderWheel with a pin on the Pico specified as an interrupt
i2c = PimoroniI2C(**BREAKOUT_GARDEN_I2C_PINS)
wheel = BreakoutEncoderWheel(i2c, interrupt=3)  # 3 for BG_BASE, 22 for EXPLORER_BASE, or 19 for some RP2040 boards
# If wiring the breakout via the qw/st connector, use the below line instead
# wheel = BreakoutEncoderWheel(i2c)

# Variables
last_pressed = [False] * NUM_BUTTONS
pressed = [False] * NUM_BUTTONS
position = 0
hue = 0.0

# Set the first LED
wheel.clear()
wheel.set_hsv(position, hue, 1.0, 1.0)
wheel.show()

# Clear any left over interrupt from previous code
wheel.clear_interrupt_flag()

# Loop forever
while True:

    # Check if the interrupt has fired
    if wheel.get_interrupt_flag():
        wheel.clear_interrupt_flag()

        # Read all of the encoder wheel's buttons
        for b in range(NUM_BUTTONS):
            pressed[b] = wheel.pressed(b)
            if pressed[b] != last_pressed[b]:
                print(BUTTON_NAMES[b], "Pressed" if pressed[b] else "Released")
            last_pressed[b] = pressed[b]

        # The interrupt may have come from several sources,
        # so check if it was a position change
        new_position = wheel.step()
        if new_position != position:
            # Record the new position (from 0 to 23)
            position = new_position
            print("Position = ", position)

            # Record a colour hue from 0.0 to 1.0
            hue = wheel.revolutions() % 1.0

            # Set the LED at the new position to the new hue
            wheel.clear()
            wheel.set_hsv(position, hue, 1.0, 1.0)
            wheel.show()


7, r8, r9, fp, sp, pc}
.L164:
	mov	r2, #140
	mov	r1, r5
	mov	r0, r7
	bl	Vp6_Vfmw_DecodeBool
	cmp	r0, #0
	beq	.L157
	mov	r0, r6, asl #4
	sub	r0, r0, r6, asl #2
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L163:
	mov	r1, r5
	mov	r0, r7
	mov	r2, #83
	bl	Vp6_Vfmw_DecodeBool
	rsb	r0, r0, #3
	mov	r0, r6, asl r0
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L157:
	mov	r2, #125
	mov	r1, r5
	mov	r0, r7
	bl	Vp6_Vfmw_DecodeBool
	cmp	r0, #0
	beq	.L158
	mov	r0, r6, asl #4
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L158:
	mov	r1, r5
	mov	r0, r7
	mov	r2, #104
	bl	Vp6_Vfmw_DecodeBool
	cmp	r0, #0
	movne	r0, r6, asl #4
	addne	r0, r0, r6, lsl #2
	moveq	r0, r6, asl #5
	subeq	r0, r0, r6, asl #3
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
	UNWIND(.fnend)
	.size	VP6_decodeModeDiff, .-VP6_decodeModeDiff
	.align	2
	.global	VP6_DecodeModeProbs
	.type	VP6_DecodeModeProbs, %function
VP6_DecodeModeProbs:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #12)
	sub	sp, sp, #12
	add	r9, r0, #412
	add	r9, r9, #1
	add	r7, r2, #72
	mov	r6, r2
	mov	r5, r1
	mov	r8, #0
	str	r0, [fp, #-48]
.L172:
	mov	r2, #174
	mov	r1, r7
	mov	r0, r5
	bl	Vp6_Vfmw_DecodeBool
	cmp	r0, #0
	beq	.L166
	mov	r10, #0
	mov	r4, #3
.L167:
	mov	r1, r7
	mov	r0, r5
	bl	Vp6_Vfmw_DecodeBool128
	orr	r10, r10, r0, asl r4
	subs	r4, r4, #1
	bcs	.L167
	mov	r3, r10, a


, SERIALIZED_TEXT)
  }

  //endregion

  //region GET
  @Test fun getNullKey() {
    assertThat(hawkFacade.get<Any>(null)).isNull()
  }

  @Test fun getWithDefault() {
    `when`(hawkFacade.get<Any>(anyString())).thenReturn(null)

    assertThat(hawkFacade.get("key", "default")).isEqualTo("default")
    assertThat(hawkFacade.get(null, "default")).isEqualTo("default")
  }

  @Test fun getSuccess() {
    `when`(storage.get<Any>(KEY)).thenReturn(SERIALIZED_TEXT)
    `when`(serializer.deserialize(SERIALIZED_TEXT)).thenReturn(DATA_INFO)
    `when`(encryption.decrypt(KEY, CIPHER_TEXT)).thenReturn(CONVERTED_TEXT)
    `when`(converter.fromString<Any>(CONVERTED_TEXT, DATA_INFO)).thenReturn(VALUE)

    assertThat(hawkFacade.get<Any>(KEY)).isEqualTo(VALUE)

    val inOrder = inOrder(converter, encryption, serializer, storage)
    inOrder.verify(storage).get<Any>(KEY)
    inOrder.verify(serializer).deserialize(SERIALIZED_TEXT)
    inOrder.verify(encryption).decrypt(KEY, CIPHER_TEXT)
    inOrder.verify(converter).fromString<Any>(CONVERTED_TEXT, DATA_INFO)
  }

  @Test fun getFailsOnStorage() {
    `when`(storage.get<Any>(KEY)).thenReturn(null)

    assertThat(hawkFacade.get<Any>(KEY)).isEqualTo(null)

    verify(storage).get<Any>(KEY)
    verifyZeroInteractions(encryption, serializer, converter)
  }

  @Test fun getFailsOnDeserialize() {
    `when`(storage.get<Any>(KEY)).thenReturn(SERIALIZED_TEXT)
    `when`(serializer.deserialize(SERIALIZED_TEXT)).thenReturn(null)

    assertThat(hawkFacade.get<Any>(KEY)).isEqualTo(null)

    val inOrder = inOrder(converter, encryption, serializer, storage)
    inOrder.verify(storage).get<Any>(KEY)
    inOrder.verify(serializer).deserialize(SERIALIZED_TEXT)

    verifyZeroInteractions(encryption, converter)
  }

  @Test fun getFailsOnDecrypt() {
    `when`(storage.get<Any>(KEY)).thenReturn(SERIALIZED_TEXT)
    `when`(serializer.deserialize(SERIALIZED_TEXT)).thenReturn(DATA_INFO)
    `when`(encryption.decrypt(KEY, CIPHER_TEXT)).thenReturn(null)

    assertThat(hawkFacade.get<Any>(KEY)).isEqualTo(null)

    val inOrder = inOrder(converter, encryption, serializer, storage)
    inOrder.verify(storage).get<Any>(KEY)
    inOrder.verify(serializer).deserialize(SERIALIZED_TEXT)
    inOrder.verify(encryption).decrypt(KEY, CIPHER_TEXT)

    verifyZeroInteractions(converter)
  }

  @Test fun getFailsOnConvert() {
    `when`(storage.get<Any>(KEY)).thenReturn(SERIALIZED_TEXT)
    `when`(serializer.deserialize(SERIALIZED_TEXT)).thenReturn(DATA_INFO)
    `when`(encryption.decrypt(KEY, CIPHER_TEXT)).thenReturn(CONVERTED_TEXT)
    `when`(converter.fromString<Any>(CONVERTED_TEXT, DATA_INFO)).thenReturn(null)

    assertThat(hawkFacade.get<Any>(KEY)).isEqualTo(null)

    val inOrder = inOrder(converter, encryption, serializer, storage)
    inOrder.verify(storage).get<Any>(KEY)
    inOrder.verify(serializer).deserialize(SERIALIZED_TEXT)
    inOrder.ve


ArchiveWriter {
    fun write(writer: Writer, archive: XmlArchive)
}

fun XmlArchiveWriter.write(archive: XmlArchive): String =
    StringWriter().also { write(it, archive) }.buffer.toString()

fun XmlArchiveWriter(): XmlArchiveWriter =
    XmlArchiveWriterImpl()

private class XmlArchiveWriterImpl : XmlArchiveWriter {
    override fun write(writer: Writer, archive: XmlArchive) {
        writer.appendLine(XmlArchiveTag.HEADER)
        writer.appendLine(XmlArchiveTag.ID_BEGIN)
        archive.ids?.also { ids ->
            writer.appendLine(ids.joinToString(XmlArchiveTag.ID_DELIMITER))
        }
        writer.appendLine(XmlArchiveTag.ID_END)
        writer.appendLine(XmlArchiveTag.DATA_BEGIN)
        archive.data?.also { data ->
            writer.appendLine(data.value)
        }
        writer.appendLine(XmlArchiveTag.DATA_END)
        writer.appendLine(XmlArchiveTag.FILE_BEGIN)
        writer.appendLine(XmlArchiveTag.FILE_END)
    }
}package com.dashlane.hermes

import java.time.LocalDate
import java.time.ZonedDateTime
import java.util.UUID

interface TrackingLog {
    val name: String
    val category: Category
    val priority: Boolean

    fun collect(collector: Collector)

    interface Collector {
        operator fun set(
            key: String,
            value: Boolean?,
        )

        operator fun set(
            key: String,
            value: Int?,
        )

        operator fun set(
            key: String,
            value: Float?,
        )

        operator fun set(
            key: String,
            value: Double?,
        )

        operator fun set(
            key: String,
            value: String?,
        )

        operator fun set(
            key: String,
            value: UUID?,
        )

        operator fun set(
            key: String,
            value: Enum?,
        )

        operator fun set(
            key: String,
            value: PageEnum?,
        )

        operator fun set(
            key: String,
            value: Long?,
        )

        operator fun set(
            key: String,
            value: LocalDate?,
        )

        operator fun set(
            key: String,
            value: ZonedDateTime?,
        )

        operator fun set(
            key: String,
            value: Sha256Hash?,
        )

        operator fun set(
            key: String,
            value: Object?,
        )

        @Suppress("INAPPLICABLE_JVM_NAME")
        @JvmName("setSha256HashList")
        operator fun set(
            key: String,
            value: List<Sha256Hash?>?,
        )

        @Suppress("INAPPLICABLE_JVM_NAME")
        @JvmName("setEnumList")
        operator fun set(
            key: String,
            value: List<Enum>?,
        )

        operator fun set(
            key: String,
            value: DataObject?,
        )
    }

    interface Enum {
        val code: String
    }

    interface PageEnum {
        val code: String
        val priority: Boolean
    }

    interface Object {
        fun collect(collector: Collector)
    }

    interface DataObject {
        val code: String
    }

    enum class Category(val code: String) {
        USER("user"),
        ANONYMOUS("anonymous"),
        ACTIVITY_LOG("activity_log"),
    }
}package com.dashlane.hermes.generated.definitions

import com.dashlane.hermes.TrackingLog
import javax.annotation.proces


  exists: (nameOrInitials: string) => {
    if (isNamePresent(nameOrInitials)) {
      return true;
    }

    return isInitialsPresent(nameOrInitials);
  },

  values: [
    { name: "Acre", initials: "AC" },
    { name: "Alagoas", initials: "AL" },
    { name: "Amapá", initials: "AP" },
    { name: "Amazonas", initials: "AM" },
    { name: "Bahia", initials: "BA" },
    { name: "Ceará", initials: "CE" },
    { name: "Distrito Federal", initials: "DF" },
    { name: "Espírito Santo", initials: "ES" },
    { name: "Goiás", initials: "GO" },
    { name: "Maranhão", initials: "MA" },
    { name: "Mato Grosso", initials: "MT" },
    { name: "Mato Grosso do Sul", initials: "MS" },
    { name: "Minas Gerais", initials: "MG" },
    { name: "Pará", initials: "PA" },
    { name: "Paraíba", initials: "PB" },
    { name: "Paraná", initials: "PR" },
    { name: "Pernambuco", initials: "PE" },
    { name: "Piauí", initials: "PI" },
    { name: "Rio de Janeiro", initials: "RJ" },
    { name: "Rio Grande do Norte", initials: "RN" },
    { name: "Rio Grande do Sul", initials: "RS" },
    { name: "Rondônia", initials: "RO" },
    { name: "Roraima", initials: "RR" },
    { name: "Santa Catarina", initials: "SC" },
    { name: "São Paulo", initials: "SP" },
    { name: "Sergipe", initials: "SE" },
    { name: "Tocantins", initials: "TO" }
  ]
};

// auxiliary methods

function isNamePresent(name: string): boolean {
  return getIndexByName(name) !== -1;
}

function isInitialsPresent(initials: string): boolean {
  return getIndexByInitials(initials) !== -1;
}

function getIndexByName(name: string): number {
  return states.values
    .map((s: CountryState) => s.name.toLowerCase())
    .indexOf(name.toLowerCase());
}

function getIndexByInitials(initials: string): number {
  return states.values
    .map((s: CountryState) => s.initials.toLowerCase())
    .indexOf(initials.toLowerCase());
}
export interface Coords {
  latitude: number,
  longitude: number
}

export interface AreaForecast {
  publishTime: Date,
  pointForecasts: PointForecast[]
}

export interface PointForecast extends Coords {
  publishTime: Date,
  forecastItems: ForecastItem[]
}

export interface ForecastItem {
  prate: number,
  windSpeedMs: number,
  windDir: number,
  pressureMbar: number,
  time: string
}
import createDimensions, {Dimensions} from "../../game/map/coordinates/dimensions";
import createPosition, {Position} from "../../game/map/coordinates/position";
import getSettings from "../../settings/settings";
import {subscribe} from "../../tools/pubSub";
import createCache, {Cache} from "../../tools/storage/cache";
import createCanvas, {Canvas} from "../canvas/canvas";
import animations, {Animations} from "./animations";
import createLineTool, {DrawingTool, LineController} from "./lineTool";

export interface DrawingController {
  [key: string]: any;
}

export default function(dimensions: Dimensions, currentScreenPosition: Position): DrawingController {
  const screenConfiguration: any = getSettings().toObject("screenConfiguration");
  let offset: Dimensions;
  let gridSquare: Dimensions;
  let screenPosition: Position = currentScreenPosition;
  let numberOfVerticalGridSquares: number = screenConfiguration.numberOfVerticalGridSquares;
  let numberOfHorizon


margin:-6px -10px;padding:6px 10px;height:100%;color:#59afcc}table.grp-table thead th a:hover{color:#444}table.grp-table tfoot td{vertical-align:top;padding:6px 10px 6px;font-size:11px;line-height:12px;color:#888;white-space:nowrap}table.grp-table tbody tr td,table.grp-table tbody tr th{border-bottom:1px solid #e0e0e0;border-left:1px solid #e4e4e4;vertical-align:top}table.grp-table tbody tr td:first-child,table.grp-table tbody tr th:first-child{border-left:0 !important}table.grp-table tbody tr th{font-size:12px;font-weight:bold}table.grp-table tbody tr.grp-row-even td,table.grp-table tbody tr.grp-row-even th,table.grp-table tbody tr.grp-alt td,table.grp-table tbody tr.grp-alt th{border-left:1px solid #e0e0e0;background:#f4f4f4}table.grp-table tbody tr.grp-row-odd td,table.grp-table tbody tr.grp-row-odd th{background:#fff}table.grp-table tbody tr.grp-selected{background:#ffd}table.grp-table tbody tr.grp-row-label td{border-bottom:0;color:#666}table.grp-table tbody tr:last-child td,table.grp-table tbody tr:last-child th{border-bottom:0}table.grp-table tbody tr:last-child td:first-child,table.grp-table tbody tr:last-child th:first-child{border-bottom-left-radius:2px}table.grp-table tbody tr:last-child td:last-child,table.grp-table tbody tr:last-child th:last-child{border-bottom-right-radius:2px}table.grp-table tbody tr a.related-lookup+strong{top:0}table.grp-table tbody tr.grp-errors td,table.grp-table tbody tr.grp-errors th{padding-top:6px;padding-bottom:0}table.grp-table tbody tr.grp-errors td ul.errorlist,table.grp-table tbody tr.grp-errors th ul.errorlist{margin:0 0 3px !important}table.grp-table tfoot td{border-bottom:0;border-top:1px solid #d4d4d4}table.grp-table tfoot td:first-child{border-left:0}@media screen and (-webkit-min-device-pixel-ratio: 0){table.grp-table td>a:first-child,table.grp-table th>a:first-child{position:relative;top:1px}}table.grp-table td>input[type=checkbox],table.grp-table td>input[type=radio],table.grp-table th>input[type=checkbox],table.grp-table th>input[type=radio]{margin:-5px 0 !important}table.grp-table td>input[type=file],table.grp-table td>select,table.grp-table td p input[type=text],table.grp-table th>input[type=file],table.grp-table th>select,table.grp-table th p input[type=text]{position:relative;margin-top:-7px !important;margin-bottom:-5px !important}table.grp-table td>input[type=text],table.grp-table td>input[type=password],table.grp-table td>input[type=url],table.grp-table td>input[type=email],table.grp-table td>input[type=number],table.grp-table td>input[type=button],table.


// $Id$

/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (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.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Deadly Rooms of Death.
 *
 * The Initial Developer of the Original Code is
 * Caravel Software.
 * Portions created by the Initial Developer are Copyright (C) 2003, 2005
 * Caravel Software. All Rights Reserved.
 *
 * Contributor(s):
 *
 * ***** END LICENSE BLOCK ***** */

//Util1_6.h
//Declarations for CUtil1_6.

//1.6 is unimplemented.  To work with 1.6 data, you would need to get a version of drodutil
//from CVS that corresponded to the 1.6 format that was distributed.  I've removed the
//implementation to avoid confusion.  Also, long-term I would like to late-bind these CUtil-derived
//objects to compatibility DLLs.

#ifndef UTIL1_6_H
#define UTIL1_6_H

#include "Util.h"

class CUtil1_6 : public CUtil
{
private:
	 typedef map<string,UINT> ASSIGNEDMIDS;
public:
	CUtil1_6(const WCHAR* pszSetPath) : CUtil(v1_6, pszSetPath) { };

  //All unimplemented.  See notes above.
};

#endif //...#ifndef UTIL1_6_H


S,
                "cells", a))
        } finally {
            this.model.endUpdate()
        }
    }
    return b
};
mxGraph.prototype.removeCellsFromParent = function (a) {
    null == a && (a = this.getSelectionCells());
    this.model.beginUpdate();
    try {
        var b = this.getDefaultParent(),
            c = this.model.getChildCount(b);
        this.cellsAdded(a, b, c, null, null, !0);
        this.fireEvent(new mxEventObject(mxEvent.REMOVE_CELLS_FROM_PARENT, "cells", a))
    } finally {
        this.model.endUpdate()
    }
    return a
};
mxGraph.prototype.updateGroupBounds = function (a, b, c) {
    null == a && (a = this.getSelectionCells());
    b = null != b ? b : 0;
    c = null != c ? c : !1;
    this.model.beginUpdate();
    try {
        for (var d = 0; d < a.length; d++) {
            var e = this.getCellGeometry(a[d]);
            if (null != e) {
                var f = this.getChildCells(a[d]);
                if (null != f && 0 < f.length) {
                    var g = this.getBoundingBoxFromGeometry(f);
                    if (0 < g.width && 0 < g.height) {
                        var h = this.isSwimlane(a[d]) ? this.getStartSize(a[d]) : new mxRectangle,
                            e = e.clone();
                        c && (e.x += g.x - h.width - b, e.y += g.y - h.height - b);
                        e.width = g.width + h.width + 2 * b;
                        e.height =
                            g.height + h.height + 2 * b;
                        this.model.setGeometry(a[d], e);
                        this.moveCells(f, -g.x + h.width + b, -g.y + h.height + b)
                    }
                }
            }
        }
    } finally {
        this.model.endUpdate()
    }
    return a
};
mxGraph.prototype.cloneCells = function (a, b) {
    b = null != b ? b : !0;
    var c = null;
    if (null != a) {
        for (var d = {}, c = [], e = 0; e < a.length; e++) {
            var f = mxCellPath.create(a[e]);
            d[f] = a[e];
            c.push(a[e])
        }
        if (0 < c.length)
            for (var f = this.view.scale, g = this.view.translate, c = this.model.cloneCells(a, !0), e = 0; e < a.length; e++)
                if (!b && this.model.isEdge(c[e]) && null != this.getEdgeValidationError(c[e], this.model.getTerminal(c[e], !0), this.model.getTerminal(c[e], !1))) c[e] = null;
                else {
                    var h = this.model.getGeometry(c[e]);
                    if (null != h) {
                        var k = this.view.getState(a[e]),
                            l = this.view.getState(this.model.getParent(a[e]));
                        if (null != k && null != l) {
                            var m = l.origin.x,
                                l = l.origin.y;
                            if (this.model.isEdge(c[e])) {
                                for (var k = k.absolutePoints, n = this.model.getTermin


 &response)

	if err != nil {
		log.Fatal("failed to unmarshal", err)
	}
	fmt.Println("Prompt:\n", prompt)
	fmt.Println("Response from Anthropic Claude:\n", response.Completion)
}

// snippet-end:[gov2.bedrock-runtime.Hello]
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package scenarios

// snippet-start:[gov2.bedrock-runtime.Scenario_InvokeModels]

import (
	"context"
	"encoding/base64"
	"fmt"
	"log"
	"math/rand"
	"os"
	"path/filepath"
	"strings"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/service/bedrockruntime"
	"github.com/awsdocs/aws-doc-sdk-examples/gov2/bedrock-runtime/actions"
	"github.com/awsdocs/aws-doc-sdk-examples/gov2/demotools"
)

// InvokeModelsScenario demonstrates how to use the Amazon Bedrock Runtime client
// to invoke various foundation models for text and image generation
//
// 1. Generate text with Anthropic Claude 2
// 2. Generate text with Meta Llama 2 Chat
// 3. Generate text and asynchronously process the response stream with Anthropic Claude 2
// 4. Generate an image with the Amazon Titan image generation model
type InvokeModelsScenario struct {
	sdkConfig             aws.Config
	invokeModelWrapper    actions.InvokeModelWrapper
	responseStreamWrapper actions.InvokeModelWithResponseStreamWrapper
	questioner            demotools.IQuestioner
}

// NewInvokeModelsScenario constructs an InvokeModelsScenario instance from a configuration.
// It uses the specified config to get a Bedrock Runtime client and create wrappers for the
// actions used in the scenario.
func NewInvokeModelsScenario(sdkConfig aws.Config, questioner demotools.IQuestioner) InvokeModelsScenario {
	client := bedrockruntime.NewFromConfig(sdkConfig)
	return InvokeModelsScenario{
		sdkConfig:             sdkConfig,
		invokeModelWrapper:    actions.InvokeModelWrapper{BedrockRuntimeClient: client},
		responseStreamWrapper: actions.InvokeModelWithResponseStreamWrapper{BedrockRuntimeClient: client},
		questioner:            questioner,
	}
}

// Runs the interactive scenario.
func (scenario InvokeModelsScenario) Run(ctx context.Context) {
	defer func() {
		if r := recover(); r != nil {
			log.Printf("Something went wrong with the demo: %v\n", r)
		}
	}()

	log.Println(strings.Repeat("=", 77))
	log.Println("Welcome to the Amazon Bedrock Runtime model invocation demo.")
	log.Println(strings.Repeat("=", 77))

	log.Printf("First, let's invoke a few large-language models using the synchronous client:\n\n")

	text2textPrompt := "In one paragraph, who are you?"

	log.Println(strings.Repeat("-", 77))
	log.Printf("Invoking Claude with prompt: %v\n", text2textPrompt)
	scenario.InvokeClaude(ctx, text2textPrompt)

	log.Println(strings.Repeat("=", 77))
	log.Printf("Now, let's invoke Claude with the asynchronous client and process the response stream:\n\n")

	log.Println(strings.Repeat("-", 77))
	log.Printf("Invoking Claude with prompt: %v\n", text2textPrompt)
	scenario.InvokeWithResponseStream(ctx, text2textPrompt)

	log.Println(strings.Repeat("=", 77))
	log.Printf("Now, let's create an image with the Amazon Titan image generation


 hold of Norwegian krone
    */
    val Number.NOK : NorwegianKrone
        /**
        * Returns value of object for hold of Norwegian krone
        */
        get() = NorwegianKrone(this.toDouble())

    /**
    * Holder for  of Norwegian krone
    */
    @JsExport
    @JsName("NOK")
    @JvmField
    val NOK = NorwegianKrone()

/**
* Creates an object to hold Norwegian krone
*/
val Number.nkr : NorwegianKrone
    /**
    * Returns the value of the object holding Norwegian krone
    */
    get() = NorwegianKrone(this.toDouble())

/**
* One unit of Norwegian krone
*/
val nkr = NorwegianKrone()

package eu.sirotin.kotunil.derived

import eu.sirotin.kotunil.core.*
import eu.sirotin.kotunil.base.*
import kotlin.jvm.JvmField
import kotlin.js.JsExport
import kotlin.math.pow
import kotlin.jvm.JvmName

private val formula =  kg*(m*m)/(s `^` 3)

@JsExport
@Suppress("NON_EXPORTABLE_TYPE")
/**
* System International Unit for power, radiant flux.
*/
class Watt(value: Number): DerivedUnit(value, formula)

/**
* System International Unit for power, radiant flux.
*/
@JsExport
@JvmField
val W = Watt(1.0)

/**
* Creates a Watt object for the current number value. Watt is a System International Unit for power, radiant flux.
*/
val Number.W : Watt
   /**
   * Returns a Watt object for the current number value. Watt is a System International Unit for power, radiant flux.
   */
    get() = Watt(this.toDouble())

/**
* QW, 10^30 of watt, derived SI-Unit for measurement of power, radiant flux
*/
val Number.QW : Watt
    @JvmName("getQW_prop")
    /**
    * Returns QW, 10^30 of watt, derived SI-Unit for measurement of power, radiant flux
    */
    get() = Watt(this.toDouble() * 10.0.pow(30))

/**
* quettawatt, 10^30 of watt, derived SI-Unit for measurement of power, radiant flux
*/
val Number.quettawatt : Watt
    /**
    * Returns quettawatt, 10^30 of watt, derived SI-Unit for measurement of power, radiant flux
    */
    get() = Watt(this.toDouble() * 10.0.pow(30))

@JsExport
@JvmField
/**
* QW, 10^30 of watt, derived SI-Unit for measurement of power, radiant flux
*/
val QW = 10.0.pow(30) * (kg*(m*m)/(s `^` 3))

/**
* quettawatt, 10^30 of watt, derived SI-Unit for measurement of power, radiant flux
*/

@JsExport
@JvmField
val quettawatt = QW

/**
* RW, 10^27 of watt, derived SI-Unit for measurement of power, radiant flux
*/
val Number.RW : Watt
    @JvmName("getRW_prop")
    /**
    * Returns RW, 10^27 of watt, derived SI-Unit for measurement of power, radiant flux
    */
    get() = Watt(this.toDouble() * 10.0.pow(27))

/**
* ronnawatt, 10^27 of watt, derived SI-Unit for measurement of power, radiant flux
*/
val Number.ronnawatt : Watt
    /**
    * Returns ronnawatt, 10^27 of watt, derived SI-Unit for measurement of power, radiant flux


 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 aerospike_test

import (
	"math"
	"strconv"

	gg "github.com/onsi/ginkgo/v2"
	gm "github.com/onsi/gomega"

	as "github.com/aerospike/aerospike-client-go/v8"
	ast "github.com/aerospike/aerospike-client-go/v8/types"
)

var _ = gg.Describe("HyperLogLog Test", func() {

	// connection data
	var ns = *namespace
	var set = randString(50)
	var binName string = "ophbin"
	var nEntries int = 1 << 8

	var minIndexBits int = 4
	var maxIndexBits int = 16
	var minMinhashBits int = 4
	var maxMinhashBits int = 51

	key, _ := as.NewKey(ns, set, "ophkey")
	key0, _ := as.NewKey(ns, set, "ophkey0")
	key1, _ := as.NewKey(ns, set, "ophkey1")
	key2, _ := as.NewKey(ns, set, "ophkey2")
	keys := []*as.Key{key0, key1, key2}

	var entries []as.Value
	var legalIndexBits []int
	var legalDescriptions [][]int
	var illegalDescriptions [][]int

	gg.BeforeEach(func() {
		for i := 0; i < nEntries; i++ {
			entries = append(entries, as.StringValue("key "+strconv.Itoa(i)))
		}

		for index_bits := minIndexBits; index_bits <= maxIndexBits; index_bits += 4 {
			combined_bits := maxMinhashBits + index_bits
			max_allowed_minhash_bits := maxMinhashBits

			if combined_bits > 64 {
				max_allowed_minhash_bits -= combined_bits - 64
			}

			mid_minhash_bits := (max_allowed_minhash_bits + index_bits) / 2
			var legal_zero []int
			var legal_min []int
			var legal_mid []int
			var legal_max []int

			legalIndexBits = append(legalIndexBits, index_bits)
			legal_zero = append(legal_zero, index_bits)
			legal_min = append(legal_min, index_bits)
			legal_mid = append(legal_mid, index_bits)
			legal_max = append(legal_max, index_bits)

			legal_zero = append(legal_zero, 0)
			legal_min = append(legal_min, minMinhashBits)
			legal_mid = append(legal_mid, mid_minhash_bits)
			legal_max = append(legal_max, max_allowed_minhash_bits)

			legalDescriptions = append(legalDescriptions, legal_zero)
			legalDescriptions = append(legalDescriptions, legal_min)
			legalDescriptions = append(legalDescriptions, legal_mid)
			legalDescriptions = append(legalDescriptions, legal_max)
		}

		for index_bits := minIndexBits - 1; index_bits <= maxIndexBits+5; index_bits += 4 {
			if index_bits < minIndexBits || index_bits > maxIndexBits {
				var illegal_zero []int
				var illegal_min []int
				var illegal_max []int

				illegal_zero = append(illegal_zero, index_bits)
				illegal_min = append(illegal_min, index_bits)
				illegal_max = append(illegal_max, index_bits)

				illegal_zero = append(illegal_zero, 0)
				illegal_min = append(illegal_min, minMinhashBits-


-- =============================================================================
--
-- Settings copied from 'zoxide init'. Run `clink set` to modify these options, e.g. `clink set zoxide.cmd f`
--

settings.add('zoxide.cmd', 'z', 'Changes the prefix of the aliases')
settings.add('zoxide.hook', { 'pwd', 'prompt', 'none' }, 'Changes when directory scores are incremented')
settings.add('zoxide.no_aliases', false, "Don't define aliases")

-- =============================================================================
--
-- Utility functions for zoxide.
--

-- Generate `cd` command
local function __zoxide_cd(dir)
  if os.getenv '_ZO_ECHO' == '1' then
    print(dir)
  end

  -- 'cd /d -' doesn't work for clink versions before v1.2.41 (https://github.com/chrisant996/clink/issues/191)
  -- lastest cmder release (v1.3.18) uses clink v1.1.45
  if dir == '-' and (clink.version_encoded or 0) < 10020042 then
    return 'cd -'
  end

  return 'cd /d ' .. dir
end

-- Run `zoxide query` and generate `cd` command from result
local function __zoxide_query(options, keywords)
  options = table.concat(options, ' ')
  keywords = table.concat(keywords, ' ')

  local file = io.popen('zoxide query ' .. options .. ' -- ' .. keywords)
  local result = file:read '*line'
  local ok = file:close()

  if ok then
    return __zoxide_cd(result)
  else
    return 'call' -- no-op that just sets %ERRORLEVEL% to 1
  end
end

-- Add directory to the database.
local function __zoxide_add(dir)
  os.execute('zoxide add -- "' .. dir .. '"')
end

-- =============================================================================
--
-- Hook configuration for zoxide.
--

local __zoxide_oldpwd
local __zoxide_prompt = clink.promptfilter()

function __zoxide_prompt:filter()
  local zoxide_hook = settings.get 'zoxide.hook'

  if zoxide_hook == 'none' then
    -- do nothing
    return
  elseif zoxide_hook == 'prompt' then
    -- run `zoxide add` on every prompt
    __zoxide_add(os.getcwd())
  elseif zoxide_hook == 'pwd' then
    -- run `zoxide add` when the working directory changes
    local cwd = os.getcwd()
    if __zoxide_oldpwd and __zoxide_o